@font-face { font-family: 'Tablo'; src: url('../fonts/DejaVuSansCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { --y: #ffc61a; --y2: #f5a800; --k: #17151a; --r: #e2352b; --r2: #a81a16; --p: #2a2630; --p2: #3a3542; --w: #fff8e6; --g: #58c04a;
  --font: 'Tablo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body { height: 100%; overflow: hidden; background: #0e0d10; font-family: var(--font); font-weight: 700; color: var(--w);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior: none; }
button { font-family: inherit; font-weight: 700; border: 0; outline: 0; cursor: pointer; color: inherit; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
#pcbg { position: fixed; inset: 0; background: repeating-linear-gradient(45deg, #1c1a20 0 26px, #141217 26px 52px); }
#app { position: fixed; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; background: #1b1920; }
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.screen { position: absolute; inset: 0; display: none; }
.screen.show { display: block; }
i[data-ic] { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; }
i[data-ic] svg { width: 100%; height: 100%; display: block; }

/* ---------- логотип, таблички ---------- */
.logo { position: relative; display: inline-block; line-height: 1; transform: rotate(-3deg); }
.lg-a { display: block; font-size: 46px; letter-spacing: 1px; color: var(--y); text-shadow: 0 3px 0 #7a5200, 0 6px 0 #17151a, 3px 0 0 #17151a, -3px 0 0 #17151a, 0 -3px 0 #17151a, 0 10px 18px rgba(0,0,0,.5); }
.lg-b { position: absolute; right: -22px; bottom: -34px; font-size: 34px; color: #fff; background: linear-gradient(#f0483c, #a81a16); border: 3px solid #17151a; border-radius: 8px; padding: 3px 12px 5px; transform: rotate(7deg);
  box-shadow: 0 4px 0 #5c0c0a, 0 10px 16px rgba(0,0,0,.45); text-shadow: 0 2px 0 #5c0c0a; animation: wob 2.6s ease-in-out infinite; }
.logo.small .lg-a { font-size: 34px; } .logo.small .lg-b { font-size: 24px; bottom: -26px; right: -14px; }
@keyframes wob { 0%,100% { transform: rotate(7deg) } 50% { transform: rotate(3deg) translateY(-2px) } }
.placard { background: #fffdf2; color: #1d1a16; border: 2px solid #17151a; border-radius: 4px; padding: 7px 12px; font-size: 13px; line-height: 1.25; text-align: center; transform: rotate(-1.5deg);
  box-shadow: 0 4px 0 rgba(0,0,0,.35); position: relative; }
.placard::before, .placard::after { content: ''; position: absolute; top: -7px; width: 34px; height: 13px; background: rgba(255, 214, 80, .85); border: 1px solid rgba(0,0,0,.2); }
.placard::before { left: 10px; transform: rotate(-8deg); } .placard::after { right: 10px; transform: rotate(6deg); }
.hazard { position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--y) 0 14px, #17151a 14px 28px); }
.hazard.top { top: 0; } .hazard.bot { bottom: 0; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; font-size: 15px; color: #17151a; white-space: nowrap;
  background: linear-gradient(#ffdc55, var(--y2)); border: 2px solid #17151a; border-radius: 10px; box-shadow: 0 4px 0 #7a5200, 0 7px 10px rgba(0,0,0,.35); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn::before, .btn::after { content: ''; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn::before { left: 5px; } .btn::after { right: 5px; }
.btn:active, .btn.down { transform: translateY(3px); box-shadow: 0 1px 0 #7a5200, 0 2px 4px rgba(0,0,0,.35); }
.btn.dark { background: linear-gradient(#45404e, #2d2933); color: var(--y); box-shadow: 0 4px 0 #121014, 0 7px 10px rgba(0,0,0,.35); }
.btn.dark:active { box-shadow: 0 1px 0 #121014; }
.btn.big { height: 62px; font-size: 24px; color: #fff; background: linear-gradient(#f4544a, var(--r2)); border-color: var(--y); box-shadow: 0 5px 0 #5c0c0a, 0 10px 16px rgba(0,0,0,.45); text-shadow: 0 2px 0 #5c0c0a; animation: pulse 1.8s ease-in-out infinite; }
.btn.big i { width: 30px; height: 30px; }
.btn.big span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn.big small { font-size: 12px; color: #ffe9a8; text-shadow: none; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.btn.tiny { height: 34px; font-size: 10px; flex: 1; min-width: 0; gap: 4px; letter-spacing: -.2px; background: linear-gradient(#45404e, #2d2933); color: #cfc8da; box-shadow: 0 3px 0 #121014; padding: 0 6px; }
.btn.tiny i { width: 14px; height: 14px; } .btn.tiny::before, .btn.tiny::after { display: none; }
.btn[disabled] { filter: grayscale(1) brightness(.7); pointer-events: none; }
@keyframes pulse { 0%,100% { filter: brightness(1) } 50% { filter: brightness(1.14) } }
.ibtn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(#45404e, #2d2933); border: 2px solid #17151a; box-shadow: 0 3px 0 #121014; flex: 0 0 auto; }
.ibtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #121014; }
.ibtn.off { filter: grayscale(1) brightness(.6); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 6px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,198,26,.6); border-radius: 16px; font-size: 15px; color: var(--y); }

/* ---------- загрузка ---------- */
#loader { background: radial-gradient(ellipse at 50% 30%, #3a3442, #151318 75%); }
#loader.show { display: flex; align-items: center; justify-content: center; }
.ld-in { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 330px; transform-origin: 50% 50%; }
.ld-bar { position: relative; width: 320px; height: 20px; margin-top: 26px; border-radius: 10px; background: #111; border: 2px solid var(--y); }
#ldFill { height: 100%; width: 0%; border-radius: 8px; background: repeating-linear-gradient(-45deg, var(--y) 0 10px, #e89a00 10px 20px); transition: width .2s; }
.ld-bus { position: absolute; top: -27px; left: 0%; width: 54px; height: 26px; margin-left: -27px; background: url('../img/ui/title.png') center/contain no-repeat; transition: left .2s; }
#ldTxt { font-size: 14px; color: #d9d2e4; }
#ldJoke { max-width: 300px; }

/* ---------- меню ---------- */
#menu { background: radial-gradient(ellipse at 28% 40%, #57506a 0%, #2a2630 55%, #151318 100%); overflow: hidden; }
#menuIn { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.m-left { position: absolute; left: 22px; top: 26px; width: 350px; bottom: 22px; }
.m-left .logo { margin: 6px 0 0 8px; }
#titleArt { position: absolute; left: -6px; top: 92px; width: 350px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.5)); animation: idle 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 0%,100% { transform: translateY(0) rotate(0) } 25% { transform: translateY(-2px) rotate(-.4deg) } 75% { transform: translateY(1px) rotate(.4deg) } }
#menuJoke { position: absolute; left: 20px; bottom: 6px; width: 290px; }
.m-right { position: absolute; right: 20px; top: 22px; width: 296px; display: flex; flex-direction: column; gap: 9px; }
.chips { display: flex; gap: 8px; justify-content: flex-end; }
.row2 { display: flex; gap: 8px; } .row2 .btn { flex: 1; padding: 0 8px; font-size: 14px; }
.row3 { display: flex; gap: 8px; align-items: center; } .row3.center { justify-content: center; }
.row4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; } .row4 .btn { font-size: 11px; padding: 0 4px; gap: 4px; height: 38px; } .row4 .btn i { width: 16px; height: 16px; }

/* ---------- окна ---------- */
.ovl { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(12, 10, 14, .74); z-index: 30; }
.ovl.show { display: flex; }
.panel { position: relative; display: none; flex-direction: column; gap: 10px; width: 470px; padding: 16px 18px 18px; background: linear-gradient(#35303d, #24212a); border: 3px solid var(--y); border-radius: 16px;
  box-shadow: 0 0 0 3px #17151a, 0 18px 40px rgba(0,0,0,.6); flex: 0 0 auto; }
.panel.show { display: flex; animation: pop .28s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg) } to { opacity: 1; transform: none } }
.panel h2 { font-size: 22px; color: var(--y); text-shadow: 0 2px 0 #17151a; }
.p-head { display: flex; align-items: center; gap: 10px; } .p-head h2 { flex: 1; }
.x { width: 34px; height: 34px; border-radius: 10px; background: var(--r); border: 2px solid #17151a; box-shadow: 0 3px 0 #5c0c0a; display: flex; align-items: center; justify-content: center; }
.x i { width: 16px; height: 16px; }
.scroll { overflow-y: auto; overflow-x: hidden; touch-action: none; overscroll-behavior: contain; padding: 2px 4px 6px 0; scrollbar-width: thin; scrollbar-color: var(--y) #17151a; }
.scroll::-webkit-scrollbar { width: 6px; } .scroll::-webkit-scrollbar-thumb { background: var(--y); border-radius: 3px; } .scroll::-webkit-scrollbar-track { background: #17151a; border-radius: 3px; }
#pMap { width: 560px; }
#worldTabs { display: flex; gap: 5px; }
.wtab { flex: 1; height: 34px; border-radius: 8px 8px 0 0; background: #1c1a20; color: #9a93a6; font-size: 11px; border: 2px solid #17151a; border-bottom: 0; padding: 0 2px; line-height: 1.05; }
.wtab.on { background: var(--wc, var(--y)); color: #17151a; }
.wtab.lock { opacity: .45; }
#worldSub { font-size: 12px; color: #cfc8da; margin-top: -4px; }
#routeList { height: 176px; display: flex; flex-direction: column; gap: 7px; }
.rcard { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #1c1a20; border: 2px solid #4a4456; border-radius: 10px; text-align: left; width: 100%; color: var(--w); flex: 0 0 auto; }
.rcard .num { width: 34px; height: 34px; border-radius: 8px; background: var(--y); color: #17151a; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto; }
.rcard.boss .num { background: var(--r); color: #fff; }
.rcard .nm { flex: 1; min-width: 0; } .rcard .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rcard .nm small { font-size: 11px; color: #a9a1b6; }
.rcard .st { display: flex; gap: 1px; } .rcard .st i { width: 20px; height: 20px; } .rcard .st i.no { filter: grayscale(1) brightness(.45); }
.rcard.lock { opacity: .5; } .rcard:active:not(.lock) { transform: translateY(2px); border-color: var(--y); }
#pGarage { width: 560px; }
#garageScroll { height: 226px; }
.g-title { font-size: 12px; color: #a9a1b6; margin: 4px 0 6px; text-transform: uppercase; letter-spacing: 1px; }
#livList { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.liv { height: 56px; border-radius: 10px; border: 2px solid #4a4456; background: #1c1a20; font-size: 10px; color: #cfc8da; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px; line-height: 1.05; }
.liv .sw { width: 46px; height: 18px; border-radius: 5px; border: 2px solid #17151a; }
.liv.on { border-color: var(--y); background: #3a3542; color: var(--y); } .liv.lock { opacity: .5; }
.up { display: flex; align-items: center; gap: 10px; padding: 7px 8px; background: #1c1a20; border: 2px solid #4a4456; border-radius: 10px; margin-bottom: 6px; }
.up .ui { flex: 1; min-width: 0; } .up .ui b { font-size: 14px; } .up .ui small { display: block; font-size: 11px; color: #a9a1b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up .pips { display: flex; gap: 3px; margin-top: 3px; } .up .pips span { width: 18px; height: 6px; border-radius: 3px; background: #3a3542; } .up .pips span.on { background: var(--y); }
.up .val { font-size: 11px; color: var(--g); white-space: nowrap; }
.up .btn { height: 36px; font-size: 13px; min-width: 96px; padding: 0 10px; } .up .btn i { width: 16px; height: 16px; }
#pAch { width: 540px; } #achList { height: 220px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.ach { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: #1c1a20; border: 2px solid #4a4456; border-radius: 10px; }
.ach i { width: 30px; height: 30px; } .ach b { font-size: 12px; display: block; } .ach small { font-size: 10px; color: #a9a1b6; line-height: 1.1; display: block; }
.ach.no { opacity: .45; filter: grayscale(.9); } .ach.yes { border-color: var(--y); }
#achCount { color: var(--y); font-size: 14px; }
#pLb { width: 460px; } #lb-list { height: 210px; display: flex; flex-direction: column; gap: 5px; }
.lb-my { font-size: 13px; color: #cfc8da; } .lb-my b { color: var(--y); font-size: 16px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 5px 10px; background: #1c1a20; border: 2px solid #4a4456; border-radius: 10px; flex: 0 0 auto; }
.lb-row.top-1 { border-color: #ffd21f; background: #3a3320; } .lb-row.top-2 { border-color: #c9d0d8; } .lb-row.top-3 { border-color: #d98a4a; }
.lb-medal { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a9a1b6; flex: 0 0 auto; }
.lb-medal.gold { background: radial-gradient(circle at 35% 30%, #fff3a8, #f0b400 60%, #a87600); color: #5a3d00; box-shadow: 0 2px 0 #7a5200; }
.lb-medal.silver { background: radial-gradient(circle at 35% 30%, #fff, #b9c2cc 60%, #7d8894); color: #333; box-shadow: 0 2px 0 #5a636e; }
.lb-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffd2a8, #d9853f 60%, #8a4a1a); color: #4a2408; box-shadow: 0 2px 0 #6b3a14; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--p2); border: 2px solid var(--y); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--y); flex: 0 0 auto; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.lb-score { font-size: 15px; color: var(--y); }
.lb-empty { text-align: center; color: #a9a1b6; font-size: 14px; padding: 60px 10px; }
#pPause { width: 360px; } #pauseJoke { margin: 4px 8px; }
#pResult { width: 500px; align-items: stretch; text-align: center; gap: 6px; padding: 12px 16px 14px; }
#pResult h2 { font-size: 20px; } #pResult .btn.big { height: 50px; font-size: 22px; } #pResult.fail #rStars { display: none; } #pResult.fail .row4 { grid-template-columns: 1fr 1fr 1fr; }
#rSub { font-size: 13px; color: #cfc8da; margin-top: -4px; }
#rStars { display: flex; justify-content: center; gap: 8px; height: 42px; }
#rStars i { width: 42px; height: 42px; transform: scale(0) rotate(-40deg); }
#rStars i.on { animation: starIn .5s cubic-bezier(.2, 1.8, .4, 1) forwards; } #rStars i.no { filter: grayscale(1) brightness(.4); transform: scale(.8); }
@keyframes starIn { to { transform: scale(1) rotate(0) } }
#rRows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 14px; text-align: left; background: #1c1a20; border-radius: 10px; padding: 8px 12px; }
#rRows div { display: flex; justify-content: space-between; gap: 6px; } #rRows b { color: var(--y); } #rRows .tot { grid-column: 1 / 3; font-size: 18px; border-top: 2px dashed #4a4456; padding-top: 4px; margin-top: 2px; } #rRows .bad b { color: #ff7a6e; }
#rGoal { font-size: 12px; color: #ffe9a8; min-height: 15px; }
#pResult.fail { border-color: var(--r); } #pResult.fail h2 { color: #ff6a5e; }
#confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 14px; }
#confetti span { position: absolute; top: -12px; width: 8px; height: 12px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(420px) rotate(720deg); opacity: .2 } }
#pDaily { width: 380px; text-align: center; } #dText { font-size: 14px; color: #cfc8da; }
#dDays { display: flex; gap: 5px; justify-content: center; } #dDays span { width: 40px; height: 44px; border-radius: 8px; background: #1c1a20; border: 2px solid #4a4456; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #a9a1b6; }
#dDays span.on { border-color: var(--y); color: var(--y); background: #3a3320; } #dDays span b { font-size: 12px; }
#pErr { width: 360px; text-align: center; } #errText { font-size: 14px; color: #cfc8da; }

/* ---------- игровой интерфейс ---------- */
#hud { pointer-events: none; } #hud button { pointer-events: auto; }
.hgrp { position: absolute; }
.hgrp.tl { left: 8px; top: 6px; transform-origin: 0 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hgrp.tr { right: 8px; top: 6px; transform-origin: 100% 0; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.hgrp.tc { left: 50%; top: 4px; translate: -50% 0; transform-origin: 50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hgrp.bc { left: 50%; bottom: 6px; translate: -50% 0; transform-origin: 50% 100%; display: flex; align-items: flex-end; gap: 10px; }
.hgrp.bl { left: 12px; bottom: 10px; transform-origin: 0 100%; display: flex; gap: 10px; }
.hgrp.br { right: 12px; bottom: 10px; transform-origin: 100% 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.br-row { display: flex; gap: 10px; align-items: flex-end; }
.stat { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 4px; background: rgba(18, 16, 22, .72); border: 2px solid rgba(255, 198, 26, .55); border-radius: 14px; font-size: 15px; min-width: 92px; }
.stat i { width: 19px; height: 19px; } .stat.warn { border-color: var(--r); color: #ff8a80; animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55 } }
.bar { display: flex; align-items: center; gap: 4px; } .bar i { width: 17px; height: 17px; }
.bar-t { width: 88px; height: 10px; background: rgba(18, 16, 22, .75); border: 2px solid #17151a; border-radius: 6px; overflow: hidden; }
.bar-f { height: 100%; width: 100%; background: linear-gradient(#7be07b, #2fa33f); transition: width .15s; } #hDmg { background: linear-gradient(#ff8a5c, #d9331f); width: 0; }
#hPat.low { background: linear-gradient(#ff8a5c, #d9331f); }
#hFx { display: flex; gap: 3px; height: 26px; } #hFx img { width: 26px; height: 26px; animation: fxin .3s; } #hFx img.end { animation: blink .3s steps(2) infinite; }
@keyframes fxin { from { transform: scale(2) } }
.mirror { position: relative; width: 228px; height: 104px; padding: 2px; border-radius: 16px; background: linear-gradient(#2a2630, #0e0d10); border: 2px solid var(--y); box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.mirror::before { content: ''; position: absolute; left: 50%; top: -8px; width: 26px; height: 10px; margin-left: -13px; background: #17151a; border-radius: 4px 4px 0 0; }
#mirror { width: 220px; height: 96px; display: block; border-radius: 12px; }
.mir-l { position: absolute; left: 10px; bottom: 4px; font-size: 8px; letter-spacing: 2px; color: rgba(255,255,255,.35); }
#caps { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 330px; height: 0; }
.cap { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 2px; background: #fffdf2; color: #1d1a16; border: 2px solid #17151a; border-radius: 15px; font-size: 13px; white-space: nowrap; animation: capIn .22s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 3px 0 rgba(0,0,0,.4); flex: 0 0 auto; }
.cap img { width: 24px; height: 24px; } .cap.noimg { padding-left: 12px; }
.cap.bad { background: #ffd9d4; border-color: #a81a16; } .cap.stop { background: var(--y); animation: capIn .22s, blink .35s steps(2) 3; } .cap.coin { background: #ffeeb0; } .cap.good { background: #d8f5cf; }
.cap.out { opacity: 0; transition: opacity .3s; }
@keyframes capIn { from { transform: scale(.4) translateY(-10px); opacity: 0 } }
#nextStop { width: 150px; padding: 5px 9px 6px; background: rgba(18, 16, 22, .78); border: 2px solid rgba(255, 198, 26, .55); border-radius: 10px; text-align: right; line-height: 1.15; }
#nextStop small { display: block; font-size: 8px; letter-spacing: 1.5px; color: #a9a1b6; } #nsName { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #nsDist { font-size: 16px; color: var(--y); }
#nsBell { display: none; align-items: center; justify-content: flex-end; gap: 4px; font-size: 9px; color: #fff; margin-top: 3px; } #nsBell i { width: 14px; height: 14px; }
#nextStop.req { border-color: var(--r); background: rgba(120, 16, 12, .85); animation: blink .4s steps(2) infinite; } #nextStop.req #nsBell { display: flex; }
#nextStop.near { border-color: var(--g); }
#speed { position: relative; width: 62px; height: 46px; background: rgba(18, 16, 22, .78); border: 2px solid rgba(255, 198, 26, .55); border-radius: 10px; text-align: center; line-height: 1; padding-top: 5px; }
#hSpeed { font-size: 22px; display: block; } #speed small { font-size: 9px; color: #a9a1b6; }
#hLimit { display: none; position: absolute; left: -16px; top: -16px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--r); color: #111; font-size: 12px; line-height: 22px; }
#speed.lim #hLimit { display: block; } #speed.over { border-color: var(--r); color: #ff8a80; }
#strip { position: relative; width: 250px; height: 46px; }
#stripLine { position: absolute; left: 6px; right: 6px; top: 30px; height: 5px; background: rgba(18, 16, 22, .8); border-radius: 3px; border: 1px solid rgba(255,198,26,.5); }
#stripDots span { position: absolute; top: 25px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #2a2630; border: 2px solid var(--y); font-size: 9px; color: #fff; line-height: 11px; text-align: center; }
#stripDots span.has { background: var(--g); border-color: #fff; } #stripDots span.done { opacity: .4; } #stripDots span.fin { border-radius: 3px; background: var(--r); }
#stripBus { position: absolute; top: 6px; width: 26px; height: 16px; margin-left: -13px; border-radius: 4px 6px 3px 3px; background: var(--y); border: 2px solid #17151a; transition: left .12s linear; }
#stripBus::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--y); }
#stripRival { display: none; position: absolute; top: 9px; width: 20px; height: 13px; margin-left: -10px; border-radius: 3px; background: #fff; border: 2px solid #1c5fb0; color: #1c5fb0; font-size: 8px; line-height: 9px; text-align: center; transition: left .12s linear; }
.pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 18px; background: rgba(24, 21, 28, .6); border: 3px solid rgba(255, 198, 26, .85); color: var(--y); font-size: 10px; touch-action: none; box-shadow: 0 5px 0 rgba(0,0,0,.4); }
.pad.on { background: rgba(255, 198, 26, .9); color: #17151a; transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.4); }
#pL, #pR { width: 80px; height: 80px; } #pL i, #pR i { width: 42px; height: 42px; }
.pad.brake { width: 96px; height: 92px; background: rgba(190, 30, 24, .7); border-color: #ff9a90; color: #fff; } .pad.brake i { width: 40px; height: 40px; } .pad.brake.on { background: #ff4a3c; color: #fff; }
.pad.horn { width: 70px; height: 70px; } .pad.horn i { width: 32px; height: 32px; }
.pad.fare { display: none; flex-direction: row; gap: 8px; width: 178px; height: 54px; background: linear-gradient(#ffe36b, #f0a800); border-color: #fff; color: #17151a; font-size: 15px; animation: farePulse .5s ease-in-out infinite alternate; }
.pad.fare.show { display: flex; } .pad.fare i { width: 32px; height: 32px; } .pad.fare b { min-width: 24px; height: 24px; border-radius: 12px; background: var(--r); color: #fff; font-size: 14px; line-height: 24px; padding: 0 5px; }
@keyframes farePulse { to { transform: scale(1.07); box-shadow: 0 0 18px rgba(255, 220, 80, .9) } }
#hint { position: absolute; left: 10px; top: 46%; max-width: 30%; padding: 8px 16px; background: rgba(18, 16, 22, .88); border: 2px solid var(--y); border-radius: 12px; font-size: 14px; color: var(--y); text-align: left; line-height: 1.25; opacity: 0; transition: opacity .3s; }
#hint.show { opacity: 1; }
#floats { position: absolute; left: 50%; top: 52%; width: 0; height: 0; }
.flt { position: absolute; left: 0; top: 0; translate: -50% 0; white-space: nowrap; font-size: 20px; color: #9cf08a; text-shadow: 0 2px 0 #17151a, 2px 0 0 #17151a, -2px 0 0 #17151a, 0 -2px 0 #17151a; animation: flt 1.2s ease-out forwards; }
.flt.bad { color: #ff7a6e; }
@keyframes flt { 0% { transform: translateY(10px) scale(.5); opacity: 0 } 15% { transform: translateY(0) scale(1.15); opacity: 1 } 100% { transform: translateY(-70px) scale(1); opacity: 0 } }
#toasts { position: absolute; right: 8px; top: 34%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 34%; }
.tst { padding: 5px 14px; background: rgba(18, 16, 22, .9); border: 2px solid var(--y); border-radius: 10px; font-size: 12px; line-height: 1.15; text-align: right; animation: tst 2.4s forwards; transform-origin: 100% 50%; }
.tst.bad { border-color: var(--r); color: #ffb3ac; } .tst.good { border-color: var(--g); color: #c9f5bf; } .tst.ach { background: var(--y); color: #17151a; border-color: #fff; }
@keyframes tst { 0% { transform: scale(.6); opacity: 0 } 8% { transform: scale(1.06); opacity: 1 } 14% { transform: scale(1) } 85% { opacity: 1 } 100% { opacity: 0 } }
#flash { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 40, 20, .55)); opacity: 0; pointer-events: none; }
#gtoast { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 7px 16px; background: var(--y); color: #17151a; border: 2px solid #17151a; border-radius: 10px; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 50; }
#gtoast.show { opacity: 1; }
