/* Hillroad (tepalik) — o'yin ekrani butun oyna: canvas + ustidagi interfeys. Sahifa hech qachon skroll/zoom bo'lmaydi (ro'yxatlar — faqat ichki .scroll). */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; touch-action: none; background: var(--bg); }
:root { --hudbg: rgba(12, 15, 21, .58); --hudfg: #f2f4f7; --card: rgba(19, 22, 30, .94); --pedal: rgba(255, 255, 255, .92); --pedalbg: rgba(12, 15, 21, .3); --pedalln: rgba(255, 255, 255, .16); }
:root[data-theme="light"] { --hudbg: rgba(255, 255, 255, .78); --hudfg: #141820; --card: rgba(255, 255, 255, .96); --pedal: rgba(20, 24, 32, .8); --pedalbg: rgba(255, 255, 255, .38); --pedalln: rgba(20, 24, 32, .14); }
#cv { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; }
#ui { position: fixed; inset: 0; z-index: 5; pointer-events: none; color: var(--fg); }
.scr { position: absolute; inset: 0; pointer-events: auto; z-index: 10; }
.hud .hud-top, .hud .prog, .hud .pedal { transition: opacity .2s; }
.hud.off .hud-top, .hud.off .prog, .hud.off .pedal { opacity: 0; pointer-events: none; }
.rb { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 13px; background: var(--hudbg); color: var(--hudfg); cursor: pointer; text-decoration: none; font-weight: 750; font-size: 13px; flex: none; transition: transform .08s; }
.rb:active { transform: scale(.94); }
.rb svg { width: 21px; height: 21px; }

/* ---- o'yin interfeysi */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-top { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; }
.hud-top .rb { pointer-events: auto; }
.hud-r { display: flex; gap: 8px; }
.hud-c { display: grid; justify-items: center; gap: 1px; min-width: 132px; padding: 6px 14px 7px; border-radius: 14px; background: var(--hudbg); color: var(--hudfg); }
.hud-c b { font-size: 22px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hud-c small { font-size: 11.5px; font-weight: 650; opacity: .72; white-space: nowrap; }
.hud-c .hs { height: 14px; }
.prog { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 70px); width: 132px; height: 3px; margin-left: -66px; border-radius: 2px; background: var(--hudbg); overflow: hidden; z-index: 3; }
.prog i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }
.zone { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 54px); bottom: 0; width: 50%; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.zl { left: 0; } .zr { right: 0; }
.pedal { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); width: 88px; height: 112px; display: grid; justify-items: center; align-content: center; gap: 6px; padding-top: 4px; border-radius: 24px; background: var(--pedalbg); box-shadow: inset 0 0 0 1.5px var(--pedalln); color: var(--pedal); pointer-events: none; transition: transform .07s ease, background .1s, color .1s; z-index: 2; }
.pedal svg { width: 44px; height: 44px; }
.pedal span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.pl { left: max(16px, env(safe-area-inset-left)); } .pr { right: max(16px, env(safe-area-inset-right)); }
.pedal.on { transform: scale(.94); background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.tip { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 84px); transform: translateX(-50%); width: max-content; max-width: min(540px, calc(100vw - 210px)); padding: 9px 15px; border-radius: 13px; background: var(--hudbg); color: var(--hudfg); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; pointer-events: none; transition: opacity .4s; animation: rise .25s ease; z-index: 4; }
.tip.out { opacity: 0; }
.tip span { display: block; }
.tip span + span { margin-top: 3px; font-weight: 550; opacity: .88; }
.hold-hint { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 12px 18px; border-radius: 14px; background: var(--hudbg); color: var(--hudfg); font-weight: 700; font-size: 15px; pointer-events: none; animation: pulse 1.6s ease-in-out infinite; z-index: 4; max-width: 80vw; text-align: center; }
.rot { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 84px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--hudbg); color: var(--hudfg); font-size: 13px; font-weight: 600; pointer-events: auto; width: max-content; max-width: calc(100vw - 32px); z-index: 4; }
.rot .rb { width: 36px; height: 36px; background: transparent; }
@media (orientation: portrait) { .tip { top: calc(max(10px, env(safe-area-inset-top)) + 136px); max-width: calc(100vw - 32px); } .pedal { width: 104px; height: 128px; } .pedal svg { width: 50px; height: 50px; } }

/* ---- yulduzlar */
.stars { display: inline-flex; gap: .18em; vertical-align: middle; }
.stars i { display: block; width: 1em; height: 1em; color: rgba(127, 127, 127, .38); }
.stars i.on { color: var(--amber); }
.stars svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.stars.xs { font-size: 11px; } .stars.sm { font-size: 13px; } .stars.big { font-size: 34px; gap: 8px; margin: 2px 0 4px; }
.stars.big i.on { animation: pop .32s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.stars.big i:nth-child(2) { animation-delay: .1s; } .stars.big i:nth-child(3) { animation-delay: .2s; }

/* ---- halokat, pauza, natija */
.crash { display: grid; place-items: center; pointer-events: none; background: transparent; }
.ccard { pointer-events: auto; display: grid; justify-items: center; gap: 10px; padding: 16px 20px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 20px 50px var(--shadow); animation: rise .2s ease; max-width: 88vw; text-align: center; }
.ccard b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ccard small { color: var(--mut); font-size: 12.5px; }
.ccard .gu-btn { min-width: 170px; min-height: 48px; }
.over { display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(5, 7, 11, .32); animation: fade .2s ease; }
.over .card { width: min(430px, 100%); max-height: 100%; overflow: auto; display: grid; justify-items: center; gap: 4px; padding: 16px 18px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 24px 60px var(--shadow); text-align: center; animation: rise .24s cubic-bezier(.2, .8, .3, 1); }
.over h2 { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.over .lbl { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }
.over .time { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.over .sub { margin: 0 0 6px; color: var(--mut); font-size: 13.5px; }
.over .sub .nb { color: var(--acc-text); }
.over .acts { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.over .acts .gu-btn { flex: 1 1 auto; white-space: nowrap; padding: 0 14px; }
.over .acts .gu-btn.icon { flex: none; padding: 0; }
.over .acts .primary { flex: 2 1 auto; }
@media (max-width: 480px) { .over .acts .rt { flex: none; width: 44px; padding: 0; } .over .acts .rt span { display: none; } }
.over .acts .primary svg { order: 2; }
.over .slot { width: 100%; margin-top: 8px; }
.over .slot:empty { display: none; }
@media (max-height: 430px) { .over .time { font-size: 32px; } .stars.big { font-size: 26px; } .over .card { gap: 2px; padding: 12px 16px; } }

/* ---- menyu */
.mtop { position: relative; display: flex; align-items: center; gap: 6px; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
.mtop .mt { font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin-left: 4px; }
.mtop .sp { flex: 1; }
.mtop .gu-menu2 { top: calc(100% - 2px); right: max(10px, env(safe-area-inset-right)); }
.menu { display: flex; flex-direction: column; }
.mbody { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 6px max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); min-height: 0; }
.mlogo h1 { margin: 0; font-size: clamp(34px, 6.2vw, 58px); font-weight: 850; letter-spacing: -.035em; line-height: .98; color: var(--hudfg); text-shadow: 0 1px 18px var(--hudbg); }
.mlogo p { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--hudfg); opacity: .78; }
.mbtns { display: grid; gap: 10px; width: min(460px, 100%); }
.bigplay { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 20px; border: 0; border-radius: 18px; background: var(--acc); color: var(--acc-ink); cursor: pointer; text-align: left; box-shadow: 0 10px 30px rgba(25, 211, 197, .22); transition: transform .08s, filter .15s; }
.bigplay:hover { filter: brightness(1.06); } .bigplay:active { transform: scale(.985); }
.bigplay svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.bigplay b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.bigplay small { display: block; font-size: 13px; font-weight: 650; opacity: .72; }
.mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mbtn { display: grid; justify-items: start; align-content: start; gap: 6px; min-height: 76px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--fg); cursor: pointer; text-align: left; transition: transform .08s, border-color .15s; }
.mbtn:hover { border-color: var(--line2); } .mbtn:active { transform: scale(.98); }
.mbtn svg { width: 21px; height: 21px; color: var(--acc-text); }
.mbtn b { display: block; font-size: 14.5px; font-weight: 750; }
.mbtn small { display: block; font-size: 11.5px; color: var(--mut); line-height: 1.3; }
.menu .gu-sponsors { margin-top: 10px; color: var(--hudfg); }
@media (orientation: landscape) and (max-height: 520px) { .mlogo h1 { font-size: 38px; } .mlogo p { margin-top: 4px; font-size: 13.5px; } .bigplay { min-height: 58px; } .mbtn { min-height: 64px; padding: 9px 11px; } .mbtns { width: min(440px, 56vw); } }
@media (orientation: portrait) { .mbody { justify-content: space-between; } .mlogo { margin-top: 8px; } }

/* ---- ro'yxatlar */
.list { display: flex; flex-direction: column; background: var(--bg); }
.list .mtop { border-bottom: 1px solid var(--line); }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
.lwrap { max-width: 780px; margin: 0 auto; padding: 6px max(16px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.lwrap h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; font-size: 13px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }
.lwrap h3 span { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (min-width: 700px) { .lgrid { grid-template-columns: repeat(10, 1fr); } }
.lv { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 1 / 1; min-height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--sur); color: var(--fg); cursor: pointer; transition: transform .08s, border-color .15s; }
.lv:active { transform: scale(.96); }
.lv b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv.done { border-color: var(--line2); }
.lv.locked { color: var(--mut); opacity: .55; cursor: default; }
.lv.locked svg { width: 15px; height: 15px; }
.lv.locked b { font-size: 13px; }
.lv.ch { background: linear-gradient(180deg, var(--sur2), var(--sur)); }
.lv .chb { position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 50%); padding: 1px 6px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.cwrap { max-width: 720px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: grid; gap: 10px; }
.carrow { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--sur); }
.carrow.locked .cinfo > b, .carrow.locked .bar { opacity: .55; }
.cinfo { display: grid; gap: 5px; min-width: 0; }
.cinfo b { font-size: 16px; font-weight: 800; }
.cinfo small { color: var(--mut); font-size: 12.5px; line-height: 1.35; }
.cinfo .from { font-size: 11.5px; }
.bar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: 11.5px; color: var(--mut); }
.bar i { display: block; height: 5px; border-radius: 3px; background: var(--sur3); overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; }
@media (max-width: 520px) { .carrow { grid-template-columns: 1fr; justify-items: center; } .cinfo { width: 100%; } }

@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.ccard, .over .card { animation-name: rise2; }
@keyframes rise2 { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hold-hint { animation: none; } }
