/* ---------- Lumba Laju */
.feature-roof.lumba { background: repeating-conic-gradient(#1a1033 0 25%, #ffffff 0 50%) 0 0 / 20px 20px; }
.feature-roof.lumba::after { display: none; }
.feature[data-game="lumba"] .feature-art { background: linear-gradient(#ffd9cf, #fff1e8); }

.lb { position: relative; height: 100%; color: var(--white); background: #1d1046; }
.lb-menu { height: 100%; overflow-y: auto; padding: calc(var(--safe-t) + 64px) 16px calc(var(--safe-b) + 24px); background: linear-gradient(#3b1f74, #1d1046); max-width: 620px; margin: 0 auto; }
.lb-title { text-align: center; margin-bottom: 14px; }
.lb-title h2 { font-size: 32px; text-shadow: 0 4px 0 var(--ink); }
.lb-title p { margin: 2px 0 0; font-weight: 800; }
.lb-title b { color: var(--gold); }
.lb-track { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: var(--line); border-radius: 20px; padding: 12px; margin-bottom: 12px; color: var(--ink); box-shadow: 0 5px 0 #0b0620; }
.lb-track:active { transform: translateY(3px); box-shadow: 0 2px 0 #0b0620; }
.lb-track.t-kampung { background: linear-gradient(110deg, #c8f5b0, #fff6c9); }
.lb-track.t-pantai { background: linear-gradient(110deg, #9fe2ff, #fff1c9); }
.lb-track.t-bandar { background: linear-gradient(110deg, #ffc9a8, #e8e3f7); }
.lb-track.locked { filter: grayscale(.7); opacity: .7; box-shadow: none; }
.lb-track-ic { font-size: 40px; }
.lb-track-txt { flex: 1; display: flex; flex-direction: column; }
.lb-track-txt b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.lb-track-txt small { font-weight: 700; font-size: 13px; color: var(--muted); }
.lb-medal { font-size: 30px; }
.lb-help { text-align: center; font-weight: 700; font-size: 14px; margin: 12px 4px 0; opacity: .9; }
.lb-ups { display: flex; flex-direction: column; gap: 10px; }
.lb-up { display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border: var(--line); border-radius: 16px; padding: 10px; }
.lb-up > div { flex: 1; display: flex; flex-direction: column; }
.lb-up b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.lb-up small { font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-up-ic { font-size: 30px; }
.lb-lv { color: var(--tang); letter-spacing: 2px; font-size: 12px; }
.lb-max { font-weight: 800; font-size: 13px; color: var(--muted); }
.lb-h { font-size: 20px; margin: 16px 0 8px; }
.lb-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.lb-color { border: var(--line); border-radius: 14px; background: var(--white); padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); }
.lb-color i { width: 36px; height: 24px; border-radius: 6px; background: var(--c); border: 2.5px solid var(--ink); }
.lb-color small { font-weight: 800; font-size: 11px; }
.lb-color.on { background: var(--lime); }
.lb-color.poor { opacity: .5; }

.lb-race { position: relative; height: 100%; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb-view { position: absolute; inset: 0; }
.lb-view canvas { display: block; }
.lb-hud { position: absolute; top: calc(var(--safe-t) + 8px); left: 62px; right: 8px; display: flex; align-items: flex-start; gap: 8px; z-index: 2; pointer-events: none; }
.lb-pos { background: rgba(26,16,51,.82); border: 3px solid var(--ink); border-radius: 16px; padding: 2px 12px; font-family: var(--display); }
.lb-pos b { font-size: 34px; color: var(--gold); }
.lb-pos small { font-size: 18px; }
.lb-info { flex: 1; display: flex; flex-direction: column; background: rgba(26,16,51,.72); border-radius: 14px; padding: 4px 10px; font-weight: 800; font-size: 13.5px; line-height: 1.35; }
.lb-info b { color: var(--gold); }
.lb-map { width: 92px; height: 92px; flex: none; }
.lb-msg { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--display); font-size: 46px; color: var(--gold); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); z-index: 2; pointer-events: none; }
.lb-msg.pop { animation: popin .3s cubic-bezier(.2,1.6,.4,1); }
.lb-speed { position: absolute; right: 12px; bottom: calc(var(--safe-b) + 196px); z-index: 2; text-align: center; background: rgba(26,16,51,.8); border: 3px solid var(--ink); border-radius: 50%; width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.lb-speed b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.lb-speed small { font-size: 11px; font-weight: 800; }
.lb-cam { position: absolute; right: 10px; top: calc(var(--safe-t) + 112px); z-index: 3; width: 46px; height: 46px; border: var(--line); border-radius: 14px; background: var(--white); font-size: 22px; box-shadow: 0 3px 0 var(--ink); padding: 0; }
.lb-item { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 150px); z-index: 3; width: 92px; height: 92px; border: var(--line); border-radius: 26px; background: #e8e3f7; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); touch-action: none; }
.lb-item[hidden] { display: none; }
.lb-item span { font-size: 38px; line-height: 1; }
.lb-item b { font-family: var(--display); font-weight: 400; font-size: 13px; }
.lb-item small { position: absolute; top: 4px; right: 8px; font-weight: 900; font-size: 13px; }
.lb-item.ready { background: linear-gradient(135deg, #ff4f9a, #ffcf33); animation: lbpulse .8s infinite; }
@keyframes lbpulse { 50% { transform: translateX(-50%) scale(1.07); } } /* keeps the button centred while it pulses */
.lb-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 12px calc(var(--safe-b) + 14px); z-index: 3; pointer-events: none; }
.lb-steer, .lb-pedals { display: flex; gap: 10px; align-items: flex-end; pointer-events: auto; }
.lb-btn { width: 80px; height: 96px; border: var(--line); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 5px 0 var(--ink); font-size: 34px; color: var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--display); padding: 0; }
.lb-btn.on { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); background: var(--gold); }
.lb-brake { width: 74px; height: 70px; font-size: 15px; background: #ffd0cc; }
.lb-gas { width: 96px; height: 128px; font-size: 17px; background: var(--lime); }
.lb-over { position: absolute; inset: 0; z-index: 4; background: rgba(26,16,51,.7); display: grid; place-items: center; padding: 20px; }
.lb-over[hidden] { display: none; }
.lb-card { width: min(100%, 340px); background: var(--white); color: var(--ink); border: var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 18px; text-align: center; animation: pop .28s cubic-bezier(.2,1.4,.4,1); }
.lb-big { font-size: 64px; line-height: 1; }
.lb-card h2 { font-size: 30px; }
.lb-sub { margin: 2px 0 8px; font-weight: 700; color: var(--muted); }
.lb-sum { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.lb-sum li { display: flex; justify-content: space-between; padding: 6px 2px; font-weight: 700; }
.lb-sum li + li { border-top: 2px dashed rgba(26,16,51,.15); }
.lb-sum b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.lb-sum .tot b { color: var(--tang); font-size: 24px; }
.lb-tip { font-weight: 700; font-size: 14px; margin: 10px 0 0; color: var(--muted); }
/* speed feeling */
.lb-boost .lb-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(255,207,51,.35)); }
.lb-star .lb-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 50%, rgba(255,79,154,.4)); animation: steam .4s infinite; }
@media (orientation: landscape) { .lb-speed { bottom: calc(var(--safe-b) + 150px); } .lb-item { bottom: calc(var(--safe-b) + 18px); } }
