/* ============ основа ============ */
:root {
  --bg: #000; --card: #121316; --card2: #1b1c20; --card3: #25262b; --line: #26272c;
  --text: #fff; --muted: #8b8f98; --blue: #0a84ff; --green: #30d158; --red: #ff453a; --gold: #ffd24a;
  --D: #8a8f98; --C: #3b82f6; --B: #a855f7; --A: #f59e0b; --S: #ef4444;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(130% 55% at 50% -8%, rgba(10, 132, 255, .16), transparent 62%), radial-gradient(90% 40% at 100% 0%, rgba(168, 85, 247, .10), transparent 70%), #000;
  background-attachment: fixed;
  overscroll-behavior: none; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
#app { max-width: 480px; margin: 0 auto; padding: 0 14px calc(112px + var(--safe-b)); min-height: 100vh; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pad { padding: 18px 0; }
.up { color: var(--green); font-style: normal; font-size: .72em; margin-left: 4px; font-weight: 700; }
.warn { color: #ff9f0a; }
.note { color: var(--muted); font-size: 12.5px; text-align: center; margin: 10px 4px 0; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ico { width: 22px; height: 22px; } .ico.s { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.chev { width: 16px; height: 16px; color: #5a5d66; flex: none; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2a2b30; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ шапка ============ */
.head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 0 10px; margin: 0 -14px 4px; padding-left: 14px; padding-right: 14px;
  background: linear-gradient(#000 60%, rgba(0, 0, 0, 0)); }
.head h1 { flex: 1; font-size: 32px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { position: relative; width: 46px; height: 46px; flex: none; }
.avatar .ring { position: absolute; inset: 0; }
.av-in { position: absolute; inset: 5px; border-radius: 50%; background: linear-gradient(145deg, #2b2d33, #17181b); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: #aeb3bd; }
.av-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lvl { position: absolute; right: -5px; bottom: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--blue); font: 800 12px/21px inherit; font-style: normal; text-align: center; border: 2px solid #000; }
.head.sub h1 { font-size: 26px; }
.head.sub .balance { padding: 11px 12px; font-size: 14px; }
.head-right { display: flex; align-items: center; gap: 8px; }
.iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--card2); font-size: 20px; display: grid; place-items: center; }
.iconbtn.back { font-size: 30px; line-height: 1; padding-bottom: 4px; }
.notify { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #000; }
.balance { background: var(--card2); padding: 11px 14px; border-radius: 22px; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ============ нижнее меню ============ */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: calc(100% - 28px); max-width: 452px; z-index: 30;
  display: flex; gap: 2px; padding: 5px; border-radius: 30px; background: rgba(28, 29, 33, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 10px 34px rgba(0, 0, 0, .6); }
.tabs button { flex: 1; padding: 13px 2px; border-radius: 25px; color: #8f939c; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.tabs button.on { background: rgba(255, 255, 255, .13); color: #fff; }

/* ============ кнопки, карточки ============ */
.btn { display: block; width: 100%; padding: 16px; margin-top: 10px; border-radius: 18px; background: var(--card3); font-size: 17px; font-weight: 700; text-align: center; transition: transform .1s, opacity .2s, filter .2s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .38; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #2b95ff, #0a7af5); box-shadow: 0 6px 20px rgba(10, 132, 255, .28); }
.btn.ghost { background: var(--card3); }
.btn.danger { background: rgba(255, 69, 58, .12); color: #ff6b63; }
.btn.link { background: none; color: #3d9bff; padding: 14px; font-size: 16px; }
.btn.link small { color: var(--muted); font-weight: 500; }
.btn.big { padding: 19px; font-size: 18px; }
.btn.small { width: auto; padding: 9px 12px; font-size: 13px; border-radius: 12px; margin: 0; }
.btn.inline { width: auto; padding: 11px 18px; margin: 0; font-size: 15px; }
.card { background: linear-gradient(180deg, #15161a, #101114); border: 1px solid var(--line); border-radius: 24px; padding: 16px; margin-bottom: 12px; }
.card.info { color: #b4b8c1; font-size: 14px; }
.card.info b { color: #fff; }
.big { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 12px; }
.big.sm { font-size: 24px; margin: 2px 0 0; letter-spacing: -.4px; }
.income .note { margin-top: 12px; }
.bar { height: 6px; background: #2a2b30; border-radius: 4px; overflow: hidden; margin: 8px 0 14px; }
.bar.thick { height: 7px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #0a84ff, #5ac8fa); border-radius: 4px; transition: width .5s; }
.bar.amber i { background: linear-gradient(90deg, #ff9f0a, #ffd24a); }
.seg { display: flex; gap: 3px; background: var(--card2); border-radius: 14px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 11px 4px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 15px; }
.seg button.on { background: #4a4b52; color: #fff; }
.section { display: flex; justify-content: space-between; gap: 10px; margin: 20px 4px 9px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rc); margin-right: 3px; }
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-ico { font-size: 54px; } .empty p { color: var(--muted); max-width: 280px; margin-bottom: 8px; }
.empty b { font-size: 19px; } .empty .btn { max-width: 260px; }
.switch { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; position: relative; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.switch i { width: 50px; height: 30px; background: #3a3b41; border-radius: 16px; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--green); } .switch input:checked + i::after { transform: translateX(20px); }
.input { width: 100%; margin-top: 14px; padding: 16px; border-radius: 16px; border: 1px solid #34353b; background: #0c0d0f; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 2px; text-align: center; text-transform: uppercase; outline: none; }
.input:focus { border-color: var(--blue); }
.skeleton { background: linear-gradient(100deg, #17181c 30%, #212227 50%, #17181c 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 18px; }
.skeleton.rows { height: 240px; } .tier.skeleton { height: 150px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ плашки ============ */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 8px; border-radius: 10px; background: var(--card3); font-size: 12.5px; font-weight: 600; color: #d9dce2; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; } .pills.center { justify-content: center; margin: 0 0 4px; }
.pchip { display: inline-block; padding: 4px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--rc) 80%, #000); }
.pchip.ok { background: rgba(48, 209, 88, .18); color: #4be07a; }
.rchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; border-radius: 14px; background: color-mix(in srgb, var(--rc) 20%, #15161a); color: color-mix(in srgb, var(--rc) 60%, #fff); font-size: 12.5px; font-weight: 700; }
.rchip.sm { padding: 3px; }
.rchip .badge { position: static; width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--rc); font: 800 12px/1 inherit; font-style: normal; color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--rc) 50%, transparent); }
.country { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.car-meta { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; } .car-meta.c { margin-top: 6px; }

/* ============ карточки машин ============ */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.car { position: relative; overflow: hidden; padding: 12px; border-radius: 22px; min-width: 0;
  background: linear-gradient(165deg, color-mix(in srgb, var(--rc, #444) 15%, #17181c), #0f1013 62%); border: 1px solid color-mix(in srgb, var(--rc, #444) 36%, #24252a); transition: transform .12s; }
.car.tap { cursor: pointer; } .car.tap:active { transform: scale(.975); }
.car .pic { margin: 22px -4px 4px; } .car .pic svg, .car .pic img { width: 100%; height: auto; display: block; }
.car-photo { object-fit: contain; }
.car .name { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.car .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrench { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 8px; border-radius: 9px; background: rgba(0, 0, 0, .45); color: #b7bbc4; font-size: 11.5px; font-weight: 600; }
.show-mark { position: absolute; top: 38px; left: 12px; z-index: 2; color: var(--gold); font-size: 14px; text-shadow: 0 0 8px rgba(255, 210, 74, .6); }
.car.r-A::after, .car.r-S::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .09) 50%, transparent 58%); transform: translateX(-120%); animation: shine 5s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.car.empty, .car.lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; border-style: dashed; background: rgba(255, 255, 255, .02); border-color: #2c2d33; color: #5d606a; text-align: center; font-size: 12.5px; }
.car.empty .plus { font-size: 30px; line-height: 1; color: #3d3f46; }
.car.lock { opacity: .55; } .car.lock b { font-size: 16px; color: #aeb3bd; } .car.lockico, .lockico { font-size: 24px; }
.car.lock.buyable { opacity: 1; border-color: rgba(10, 132, 255, .6); background: rgba(10, 132, 255, .07); color: #66b2ff; }
.car.locked .pic { opacity: .9; } .car.locked .name { color: #5d606a; }
.car .new-tag.s { position: absolute; right: 8px; top: 8px; }
.sold { display: block; font-size: 11.5px; color: #ff9f0a; margin-top: 3px; }
.car .plate { margin-top: 6px; }

/* ============ списки ============ */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 10px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: default; }
.lrow + .lrow { border-top: 1px solid #202125; }
.lrow[data-act] { cursor: pointer; } .lrow[data-act]:active { background: #1a1b1f; }
.lrow.off { opacity: .5; }
.lico { width: 42px; height: 42px; border-radius: 13px; background: var(--card3); color: #9aa0aa; display: grid; place-items: center; font-size: 22px; flex: none; overflow: hidden; }
.lrow.on .lico { background: rgba(168, 85, 247, .16); color: #c9a7ff; box-shadow: inset 0 0 0 1.5px rgba(168, 85, 247, .65); }
.lrow.big .lico { width: 72px; height: 46px; border-radius: 12px; }
.lrow.big .lico svg, .lrow.big .lico img { width: 100%; }
.lmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lmain b { font-size: 16px; font-weight: 600; } .lmain span { color: var(--muted); font-size: 13px; }
.lright { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; flex: none; }
.price { font-weight: 700; color: #fff; } .price.lack { color: #ff6b63; }
.clsdot { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--rc); }
.thumb { width: 100%; } .thumb svg, .thumb img { width: 100%; height: auto; display: block; }

/* ============ окно ============ */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 92vh; display: flex; flex-direction: column; transform: translate(-50%, 100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  background: #101114; border-radius: 30px 30px 0 0; border: 1px solid #25262b; border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .7); }
.sheet-wrap.open .sheet-back { opacity: 1; } .sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #3a3b41; margin: 9px auto 4px; flex: none; }
.sheet-body { padding: 8px 16px calc(18px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 8px; }
.sheet-head b { font-size: 17px; text-align: center; } .sheet-head > :last-child { justify-self: end; }
.x { width: 32px; height: 32px; border-radius: 50%; background: var(--card3); color: #c6c9d0; font-size: 14px; }
.back { color: #3d9bff; font-size: 16px; font-weight: 600; justify-self: start; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 0 4px; }
.lockbig { font-size: 52px; } .price-card { width: 100%; text-align: center; margin: 10px 0 0; }
.sheet-body > h2 { margin: 4px 0 6px; }

/* ============ карточка машины ============ */
.car-hero { position: relative; padding: 18px 8px 0; }
.car-hero svg, .car-hero img { position: relative; width: 100%; height: auto; display: block; }
.hero-glow { position: absolute; left: 50%; top: 52%; width: 86%; aspect-ratio: 2.4; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, #555) 55%, transparent), transparent); filter: blur(18px); opacity: .7; }
.hero-glow.big { width: 110%; opacity: .95; }
.car-title { text-align: center; margin: 6px 0 12px; } .car-title h2 { font-size: 24px; margin-bottom: 8px; letter-spacing: -.3px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--card2); border-radius: 16px; padding: 12px 4px; text-align: center; border: 1px solid #202125; min-width: 0; }
.stat b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stat span { color: var(--muted); font-size: 11.5px; }
.stat.gold b { color: var(--gold); }
.reveal { position: relative; text-align: center; } .reveal h2 { margin: 8px 0 12px; font-size: 26px; }
.new-tag { display: inline-block; background: linear-gradient(135deg, #ffd24a, #ff9f0a); color: #2a1a00; font-weight: 900; font-size: 11px; letter-spacing: 1px; padding: 4px 9px; border-radius: 8px; }
.reveal > .new-tag { position: absolute; right: 4px; top: 4px; z-index: 3; }
.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(14px); } to { opacity: 1; transform: none; } }
.drops { margin: 10px 0; }

/* ============ кейсы ============ */
.case-head { display: flex; justify-content: center; gap: 10px; margin: 2px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 24px; background: var(--card2); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; border: 1px solid transparent; }
.chip.on { color: #fff; border-color: #4a4b52; background: #2a2b30; }
.chip.pick { color: #fff; padding: 8px 16px 8px 10px; } .chip.pick b { font-size: 16px; } .chev-d { color: var(--muted); margin-top: -4px; }
.chip.round { width: 42px; height: 42px; justify-content: center; padding: 0; font-style: italic; font-family: Georgia, serif; font-size: 18px; color: #c6c9d0; }
.pick-ic { width: 34px; height: 34px; display: grid; place-items: center; flex: none; } .pick-ic .case-ico, .pick-ic .flag { width: 32px; height: auto; }
.pick-ic .flag { width: 34px; height: 23px; border-radius: 4px; }
.case-ico { width: 100%; height: 100%; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; } .pick-row + .pick-row { border-top: 1px solid #202125; } .pick-row:active { background: #1a1b1f; }
.pick-row .pick-ic { width: 44px; height: 44px; } .pick-row .pick-ic .case-ico { width: 38px; height: 38px; }
.pick-main { flex: 1; min-width: 0; } .pick-main b { font-weight: 600; font-size: 16px; }
.pick-price { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 8px; } .chk { color: var(--blue); font-size: 17px; }
.stage { position: relative; min-height: 250px; margin: 6px 0 12px; display: grid; place-items: center; overflow: hidden; }
.stage > svg { width: 84%; position: relative; filter: drop-shadow(0 0 1px #000); }
.stage-glow { position: absolute; width: 80%; aspect-ratio: 2; background: radial-gradient(closest-side, rgba(10, 132, 255, .18), transparent); filter: blur(14px); }
.stage .q { position: absolute; font-size: 66px; font-weight: 800; color: rgba(255, 255, 255, .25); }
.stage.shake > svg { animation: shake .45s infinite; } .stage.shake .q { animation: pulse .6s infinite alternate; }
@keyframes shake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-7px) rotate(-1deg); } 75% { transform: translateX(7px) rotate(1deg); } }
@keyframes pulse { to { transform: scale(1.25); color: #fff; } }
.reel { position: relative; width: 100%; height: 168px; overflow: hidden; border-radius: 22px; background: #0b0c0e; border: 1px solid #25262b; cursor: pointer; }
.reel::before, .reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 3; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0b0c0e, transparent); } .reel::after { right: 0; background: linear-gradient(-90deg, #0b0c0e, transparent); }
.reel-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--blue); box-shadow: 0 0 14px 2px rgba(10, 132, 255, .9); z-index: 4; }
.reel-track { display: flex; gap: 8px; padding: 16px 0; height: 100%; will-change: transform; width: max-content; }
.rcard { flex: none; width: 118px; padding: 8px 6px 6px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, #15161a), #111215); border-bottom: 3px solid var(--rc); }
.rcard .pic svg, .rcard .pic img { width: 100%; height: auto; display: block; } .rcard b { display: block; font-size: 11px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ мастерская ============ */
.wlist { display: flex; flex-direction: column; gap: 10px; }
.wcar { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 13%, #17181c), #0f1013 65%); border: 1px solid color-mix(in srgb, var(--rc) 30%, #24252a); cursor: pointer; }
.wcar:active { transform: scale(.985); } .wpic { width: 104px; flex: none; } .wpic svg, .wpic img { width: 100%; height: auto; display: block; }
.wmain { flex: 1; min-width: 0; } .wtitle { display: flex; align-items: center; gap: 8px; } .wtitle .badge { position: static; width: 20px; height: 20px; font-size: 11px; flex: none; border-radius: 6px; }
.wtitle b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wmain .muted { font-size: 12.5px; }
.segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 8px 0 6px; } .segs i { height: 6px; border-radius: 3px; background: #2a2b30; }
.wright { text-align: right; flex: none; } .wright b { display: block; font-size: 15px; } .wright span { color: var(--muted); font-size: 11.5px; }

/* ============ меню ============ */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 128px; padding: 16px; border-radius: 26px; text-align: left; color: #fff; border: 1.5px solid; background: rgba(255, 255, 255, .03); overflow: hidden; transition: transform .12s; }
.tile:active { transform: scale(.97); }
.tile .tico { position: absolute; left: 16px; top: 14px; font-size: 32px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.tile b { font-size: 18px; } .tile > span:not(.tico) { color: #9a9ea8; font-size: 13px; margin-top: 2px; }
.tile.wide { min-height: 88px; width: 100%; margin-bottom: 12px; } .tile.wide .tico { top: 50%; transform: translateY(-50%); } .tile.wide b, .tile.wide > span:not(.tico) { margin-left: 46px; }
.t-red { border-color: #7a2a30; background: radial-gradient(120% 100% at 0 0, rgba(255, 59, 74, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-gold { border-color: #7a6320; background: radial-gradient(120% 100% at 0 0, rgba(255, 196, 58, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-purple { border-color: #5b2f88; background: radial-gradient(120% 100% at 0 0, rgba(168, 85, 247, .22), transparent 70%), rgba(255, 255, 255, .02); }
.t-green { border-color: #1f6b3a; background: radial-gradient(120% 100% at 0 0, rgba(34, 197, 94, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-pink { border-color: #86294b; background: radial-gradient(120% 100% at 0 0, rgba(236, 72, 153, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-blue { border-color: #1f4d86; background: radial-gradient(120% 100% at 0 0, rgba(59, 130, 246, .22), transparent 70%), rgba(255, 255, 255, .02); }
.t-teal { border-color: #1d6a72; background: radial-gradient(120% 100% at 0 0, rgba(45, 212, 191, .18), transparent 70%), rgba(255, 255, 255, .02); }
.t-gray { border-color: #3a3b41; }

/* ============ гонки ============ */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 14px 6px; margin: 0 -14px; scrollbar-width: none; scroll-snap-type: x proximity; } .hscroll::-webkit-scrollbar { display: none; }
.hscroll.chips { margin-bottom: 2px; }
.rsel { flex: none; width: 132px; padding: 10px; border-radius: 20px; background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 12%, #17181c), #101114); border: 1.5px solid #25262b; cursor: pointer; scroll-snap-align: start; }
.rsel.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
.rsel .pic svg, .rsel .pic img { width: 100%; height: auto; display: block; } .rsel b { display: block; font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rsel span { color: var(--muted); font-size: 12px; }
.tiers { display: flex; flex-direction: column; gap: 10px; } .tier { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px 6px; }
.tier .bar { margin: 10px 0 0; } .tier-top { display: flex; justify-content: space-between; align-items: baseline; } .tier-top b { font-size: 18px; }
.tier-mid { display: flex; justify-content: space-between; margin-top: 8px; } .tier-mid .right { text-align: right; } .tier-mid .muted { font-size: 12px; }
.chance { font-size: 30px; font-weight: 800; letter-spacing: -1px; } .reward { font-size: 18px; font-weight: 800; color: var(--gold); margin-top: 7px; }
.track-wrap { padding-top: 4px; } .track { position: relative; margin: 12px 0; padding: 8px 0; border-radius: 20px; background: repeating-linear-gradient(90deg, #121317 0 40px, #14151a 40px 80px); border: 1px solid #25262b; overflow: hidden; }
.lane { position: relative; height: 74px; display: flex; align-items: center; padding: 0 8px; } .lane + .lane { border-top: 2px dashed #2b2c32; }
.lane-tag { position: absolute; left: 10px; top: 5px; font-size: 11px; color: var(--muted); z-index: 2; max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcar { width: 112px; flex: none; will-change: transform; } .rcar svg, .rcar img { width: 100%; height: auto; display: block; }
.finish { position: absolute; right: 6px; top: 0; bottom: 0; width: 12px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 12px 12px; opacity: .9; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 900; z-index: 5; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); pointer-events: none; }
.countdown.pulse { animation: cd .65s ease-out; } @keyframes cd { from { transform: scale(1.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.race-res .res-ico { font-size: 64px; } .race-res h2 { font-size: 30px; } .race-res.win h2 { color: var(--gold); }

/* ============ рейтинг, друзья, магазин ============ */
.rlist { display: flex; flex-direction: column; gap: 8px; }
.rrow { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.rrow.me { border-color: rgba(10, 132, 255, .7); background: rgba(10, 132, 255, .07); }
.rrow.top1 { background: linear-gradient(90deg, rgba(255, 210, 74, .13), var(--card) 60%); border-color: rgba(255, 210, 74, .4); }
.rank { width: 30px; text-align: center; font-weight: 800; font-size: 17px; color: #9a9ea8; } .rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rmain small { color: var(--muted); font-weight: 500; } .rmain .muted { font-size: 12px; }
.rthumb { width: 64px; flex: none; } .rthumb svg, .rthumb img { width: 100%; height: auto; display: block; }
.score { font-weight: 700; font-size: 14px; white-space: nowrap; }
.card.me { text-align: center; padding: 12px; font-size: 14px; } .card.prize { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(120deg, rgba(255, 210, 74, .14), #121316); border-color: rgba(255, 210, 74, .35); }
.week-card .note { text-align: left; margin-top: 10px; } .prize-row { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; } .prize-row::-webkit-scrollbar { display: none; }
.pz { flex: none; min-width: 52px; text-align: center; padding: 6px 4px; border-radius: 12px; background: var(--card2); font-weight: 800; font-size: 14px; } .pz small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; margin-top: 2px; } .pz.top { background: rgba(255, 210, 74, .12); }
.hero-card { text-align: center; } .hero-card h3 { font-size: 22px; margin: 4px 0 6px; } .big-emoji { font-size: 52px; }
.linkbox { margin: 14px 0 4px; padding: 12px; border-radius: 14px; background: #0b0c0e; border: 1px dashed #34353b; color: #aeb3bd; font-size: 13px; word-break: break-all; user-select: all; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shopc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px 12px; border-radius: 22px; background: linear-gradient(180deg, #17181c, #101114); border: 1px solid var(--line); }
.shopc .sico { font-size: 40px; } .shopc b { font-size: 17px; } .shopc .muted { font-size: 12.5px; } .shopc .btn { margin-top: 10px; padding: 12px; font-size: 15px; color: #fff; }
.shopc.fuel { border-color: rgba(255, 159, 10, .35); }
.prow { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--rc); } .plist { display: flex; flex-direction: column; gap: 10px; }
.pmain { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .pmain .muted { font-size: 12.5px; } .pbtns { display: flex; gap: 8px; }
.plate-big { padding: 14px 0 6px; }

/* ============ номер ============ */
.plate { display: inline-flex; align-items: stretch; background: #fcfcfc; color: #111; border: .13em solid #111; border-radius: .38em; font: 800 12px/1 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif; height: 3em; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); vertical-align: middle; }
.plate-main { display: flex; align-items: center; gap: .18em; padding: 0 .55em; } .plate-main b { font-size: 1.75em; font-weight: 800; letter-spacing: .01em; }
.plate-reg { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 .45em; border-left: .13em solid #111; } .plate-reg b { font-size: 1.3em; line-height: 1; } .plate-reg small { font-size: .5em; font-weight: 700; line-height: 1.1; margin-top: .15em; }
.plate-reg i { display: inline-block; width: 1.1em; height: .7em; vertical-align: middle; margin-left: .15em; background: linear-gradient(#fff 33%, #0039a6 33% 66%, #d52b1e 66%); border: .05em solid #777; }
.plate.mini { font-size: 8.5px; } .plate.big { font-size: 20px; }

/* ============ подарок, профиль ============ */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 16px; background: var(--card2); border: 1.5px solid #25262b; text-align: center; }
.day small { color: var(--muted); font-size: 10.5px; } .day b { font-size: 13px; } .dico { font-size: 24px; }
.day.last { grid-column: span 2; background: linear-gradient(135deg, rgba(255, 210, 74, .14), var(--card2)); }
.day.done { opacity: .5; } .day.cur { border-color: var(--blue); background: rgba(10, 132, 255, .1); box-shadow: 0 0 18px rgba(10, 132, 255, .3); }
.tick { position: absolute; top: 6px; right: 8px; color: var(--green); font-style: normal; font-weight: 800; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 14px; } .profile-head h2 { font-size: 24px; } .profile-head small { color: var(--muted); font-weight: 500; font-size: 14px; }
.avatar.big { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(145deg, #2f3239, #17181b); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #aeb3bd; overflow: hidden; border: 3px solid var(--blue); }
.avatar.big img { width: 100%; height: 100%; object-fit: cover; }

/* ============ уведомление ============ */
.toast { position: fixed; top: calc(14px + var(--safe-t)); left: 50%; z-index: 80; max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 18px; background: #2b2c31; font-weight: 600; font-size: 14.5px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, -20px) scale(.96); transition: opacity .2s, transform .25s; pointer-events: none; border: 1px solid rgba(255, 255, 255, .08); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); } .toast.good { background: #14301e; color: #6df09b; border-color: rgba(48, 209, 88, .4); } .toast.err { background: #3a1a1a; color: #ffb4ad; border-color: rgba(255, 69, 58, .4); }

.screen.enter { animation: enter .28s ease-out; } @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) { .head h1 { font-size: 27px; } .balance { padding: 10px 11px; font-size: 14px; } .big { font-size: 33px; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ============ крутящийся номер ============ */
.plate .ch { text-decoration: none; display: inline-block; min-width: .62em; text-align: center; transition: transform .18s, color .18s; }
.plate .ch.spin { color: #777; transform: translateY(-1px); filter: blur(.4px); }
.plate .ch.lock { animation: chlock .28s ease-out; }
@keyframes chlock { 0% { transform: translateY(-.35em) scale(1.25); color: #0a84ff; } 100% { transform: none; color: #111; } }
.plate-big .plate { box-shadow: 0 0 0 0 transparent, 0 8px 30px rgba(0, 0, 0, .55); }

/* ============ кейсы деталей ============ */
.pc-ico { font-size: 28px; } .pc-big { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(10, 132, 255, .4)); }
.pick-price.lack { color: #ff6b63; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; } .pt-grid.n1 { grid-template-columns: 1fr; max-width: 220px; margin-left: auto; margin-right: auto; }
.pt-grid.n5 .pt-cell:last-child { grid-column: span 2; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 20px; text-align: center; min-height: 128px; justify-content: center;
  background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 24%, #17181c), #0f1013 70%); border: 1.5px solid color-mix(in srgb, var(--rc) 55%, #25262b); }
.ptile .pt-ico .ico { width: 38px; height: 38px; color: var(--rc); } .ptile b { font-size: 14px; }
.ptile.spin { opacity: .85; } .ptile.spin .pt-ico { filter: blur(.6px); }

.head h1.long { font-size: 25px; letter-spacing: -.3px; }

/* ============ апгрейд ============ */
.t-orange { border-color: #8a4a12; background: radial-gradient(120% 100% at 0 0, rgba(255, 149, 0, .22), transparent 70%), rgba(255, 255, 255, .02); }
.t-casino { border-color: #1f6b3a; background: radial-gradient(120% 100% at 0 0, rgba(34, 197, 94, .26), transparent 70%), rgba(255, 255, 255, .02); }
.up-row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 10px; }
.up-arrow { align-self: center; color: #5a5d66; font-size: 22px; }
.up-slot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 22px; cursor: pointer; text-align: center; min-height: 160px; justify-content: center;
  background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 16%, #17181c), #0f1013 70%); border: 1.5px solid color-mix(in srgb, var(--rc) 45%, #25262b); }
.up-slot.empty { border-style: dashed; background: rgba(255, 255, 255, .02); }
.up-slot .pic { width: 100%; } .up-slot .pic svg, .up-slot .pic img { width: 100%; height: auto; display: block; }
.up-slot b { font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-title { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; } .up-plus { font-size: 34px; color: #3d3f46; }
.gauge-wrap { display: grid; place-items: center; margin: 4px 0; } .gauge { width: 210px; height: 210px; }
.gauge-t { fill: #fff; font: 800 26px -apple-system, Arial, sans-serif; }
#needle { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }

/* ============ блэкджек ============ */
.bj-table { border-radius: 26px; padding: 14px 10px 16px; margin-bottom: 12px; background: radial-gradient(120% 90% at 50% 0, #14502e, #0b2a1a 70%); border: 1.5px solid #1f6b3a; box-shadow: inset 0 0 40px rgba(0, 0, 0, .45); }
.bj-hand { text-align: center; min-height: 118px; } .bj-label { font-size: 13px; color: #9fd8b4; margin-bottom: 8px; font-weight: 600; } .bj-label b { color: #fff; font-size: 17px; margin-left: 4px; } .bj-label b.bust { color: #ff6b63; }
.bj-cards { display: flex; justify-content: center; } .bj-cards .pcard + .pcard { margin-left: -22px; }
.pcard { position: relative; width: 62px; height: 88px; border-radius: 10px; background: #fafafa; color: #111; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 7px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.pcard.red { color: #d92d20; } .pcard b { font-size: 19px; line-height: 1; } .pcard i { font-style: normal; font-size: 16px; line-height: 1.1; }
.pcard span { position: absolute; right: 7px; bottom: 5px; font-size: 26px; line-height: 1; }
.pcard.back { background: repeating-linear-gradient(45deg, #1d4ed8 0 6px, #1e3a8a 6px 12px); border: 3px solid #fafafa; }
.pcard.deal { animation: dealin .38s cubic-bezier(.2, .9, .3, 1) both; } @keyframes dealin { from { opacity: 0; transform: translateY(-40px) rotate(-14deg) scale(.8); } to { opacity: 1; transform: none; } }
.bj-vs { text-align: center; color: #5fa97c; font-weight: 800; letter-spacing: 2px; font-size: 12px; margin: 4px 0; }
.bj-out { text-align: center; margin: 6px 0; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 2px; }
.bj-out b { font-size: 20px; } .bj-out.win b, .bj-out.win span { color: #6df09b; } .bj-out.lose b, .bj-out.lose span { color: #ff8a80; } .bj-out.push b { color: #ffd24a; }
.bj-btns { display: flex; gap: 8px; margin-top: 10px; } .bj-btns .btn { margin: 0; padding: 15px 8px; }
.chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.chipb { padding: 11px 13px; border-radius: 22px; background: var(--card3); font-weight: 700; font-size: 14px; border: 1.5px dashed #5a5d66; } .chipb:disabled { opacity: .3; } .chipb:active { transform: scale(.94); }

.reel-stack { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; } .reel.sm { height: 124px; } .reel.sm .reel-track { padding: 9px 0; }
.rcard.pt { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px; }
.rcard.pt .pt-ico .ico { width: 40px; height: 40px; color: var(--rc); } .rcard.pt b { margin: 0; } .rcard.pt .pt-cls { font-size: 10.5px; color: color-mix(in srgb, var(--rc) 55%, #fff); font-weight: 700; }

.plate-stage { display: grid; place-items: center; padding: 26px 8px; margin-bottom: 12px; border-radius: 24px; background: radial-gradient(100% 120% at 50% 0, #1d1f26, #0d0e11); border: 1px solid var(--line); }
.plate-stage .plate { font-size: 26px; max-width: 100%; }
.pl-res { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; text-align: center; } .pl-res .bj-btns { width: 100%; }
.pick-main span.muted { display: block; font-size: 12.5px; }
.switch small { font-size: 12px; }

/* ============ новые плитки меню ============ */
.t-quest { border-color: #6b4a1f; background: radial-gradient(120% 100% at 0 0, rgba(255, 190, 70, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-job { border-color: #1d5f72; background: radial-gradient(120% 100% at 0 0, rgba(56, 189, 248, .20), transparent 70%), rgba(255, 255, 255, .02); }
.t-wheel { border-color: #6b2f88; background: radial-gradient(120% 100% at 0 0, rgba(217, 70, 239, .22), transparent 70%), rgba(255, 255, 255, .02); }
.tile-dot { top: 12px; right: 12px; border-color: #14151a; }

/* ============ апгрейд со ставкой ============ */
.up-stage { display: grid; place-items: center; margin: 6px 0 14px; } .up-wrap { position: relative; width: min(78vw, 300px); aspect-ratio: 1; }
.up-ring { width: 100%; height: 100%; overflow: visible; }
.up-center { position: absolute; inset: 22%; border-radius: 50%; background: #17181c; border: 1px solid #25262b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.up-center b { font-size: 40px; font-weight: 800; letter-spacing: -1px; } .up-center span { color: var(--green); font-weight: 700; font-size: 17px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 16px 0 12px; border-radius: 4px; background: #2d2e33; outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); border: 3px solid #0d2a16; box-shadow: 0 0 0 2px var(--green); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 3px solid #0d2a16; }
.pillrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mini { padding: 9px 15px; border-radius: 18px; background: var(--card3); color: #4da3ff; font-weight: 700; font-size: 14px; } .mini.on { background: var(--green); color: #04210e; } .mini:active { transform: scale(.95); }
.input.bet { text-align: left; letter-spacing: 0; text-transform: none; font-size: 22px; margin-top: 10px; }
.up-win { margin-top: 14px; font-size: 18px; } .good { color: var(--green); }
.btn.grad { background: linear-gradient(90deg, #22c55e, #0a84ff); box-shadow: 0 8px 24px rgba(34, 197, 94, .25); }

/* ============ покраска ============ */
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.paints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 4px; }
.paint { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--c); border: 2px solid rgba(255, 255, 255, .12); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; box-shadow: inset 0 -18px 18px rgba(0, 0, 0, .28); }
.paint span { font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.paint.sel { border-color: #fff; transform: scale(1.06); } .paint.cur::after { content: '✓'; position: absolute; top: 4px; right: 7px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

/* ============ задания ============ */
.qlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.qrow.claimed { opacity: .5; } .qrow.bonus { background: linear-gradient(120deg, rgba(255, 210, 74, .14), var(--card)); border-color: rgba(255, 210, 74, .35); margin-top: 6px; }
.qico { width: 44px; height: 44px; border-radius: 14px; background: var(--card3); display: grid; place-items: center; font-size: 22px; flex: none; }
.qmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .qmain b { font-size: 15px; } .qmain .bar { margin: 6px 0 4px; } .qmain .muted { font-size: 12px; }
.qbtn { flex: none; }

/* ============ подработка ============ */
.jlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.jslot { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.jslot.free { border-style: dashed; cursor: pointer; background: rgba(255, 255, 255, .02); } .jslot.lock { opacity: .5; } .jslot.done { border-color: rgba(48, 209, 88, .6); background: rgba(48, 209, 88, .07); }
.jico { width: 46px; height: 46px; border-radius: 14px; background: var(--card3); display: grid; place-items: center; font-size: 24px; flex: none; }
.jmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .jmain .bar { margin: 6px 0 2px; } .jmain .muted { font-size: 12.5px; }

/* ============ колесо удачи ============ */
.wheel-wrap { position: relative; width: min(84vw, 340px); margin: 6px auto 16px; } .wheel { width: 100%; display: block; filter: drop-shadow(0 10px 30px rgba(168, 85, 247, .25)); }
.wheel-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 2; font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.wtxt { fill: #fff; font: 800 17px -apple-system, Arial, sans-serif; }
.head.sub h1.long { font-size: 22px; }
.wtxt { font-size: 15px; }

/* ============ меню: разделы и свечение ============ */
.menu-sec { margin: 18px 4px 8px; color: #8b8f98; font-size: 13px; font-weight: 700; letter-spacing: .6px; }
.menu .tile, .tile { box-shadow: 0 0 20px -6px var(--glow, transparent), inset 0 0 26px -14px var(--glow, transparent); }
.t-red { --glow: #ff3b4a; } .t-gold { --glow: #ffc43a; } .t-purple { --glow: #a855f7; } .t-green { --glow: #22c55e; } .t-pink { --glow: #ec4899; } .t-blue { --glow: #3b82f6; }
.t-teal { --glow: #2dd4bf; } .t-quest { --glow: #ffbe46; } .t-job { --glow: #38bdf8; } .t-wheel { --glow: #d946ef; } .t-orange { --glow: #ff9500; } .t-casino { --glow: #22c55e; } .t-orange2 { --glow: #fb923c; }
.t-orange2 { border-color: #8a4a12; background: radial-gradient(120% 100% at 0 0, rgba(251, 146, 60, .2), transparent 70%), rgba(255, 255, 255, .02); }
.menu-grid { margin-bottom: 12px; } .tile.wide { margin-bottom: 12px; min-height: 76px; }
.passbar { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; padding: 14px 16px; margin: 4px 0 4px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #7c3aed, #a855f7 55%, #d946ef); box-shadow: 0 8px 28px -8px rgba(168, 85, 247, .8); }
.passbar .bar { background: rgba(0, 0, 0, .3); margin: 0; } .passbar .bar i { background: #fff; } .passbar span { font-size: 13px; opacity: .95; }
.pass-prem, .pass-lvl { background: rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.passbar .tile-dot { top: 10px; right: 10px; }

/* ============ пропуск ============ */
.pass-hero { background: linear-gradient(120deg, #6d28d9, #a855f7); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pass-hero .bar { background: rgba(0, 0, 0, .3); margin: 0; } .pass-hero .bar i { background: #fff; } .pass-hero .muted { color: rgba(255, 255, 255, .8); font-size: 12.5px; }
.prem-on { text-align: center; font-weight: 700; background: linear-gradient(120deg, rgba(255, 210, 74, .18), #121316); border-color: rgba(255, 210, 74, .4); }
.prem-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, rgba(255, 210, 74, .14), #121316); border-color: rgba(255, 210, 74, .35); } .prem-buy .btn { flex: none; }
.pass-head { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; margin: 14px 0 6px; color: #8b8f98; font-size: 12px; font-weight: 700; text-align: center; }
.pass-list { display: flex; flex-direction: column; gap: 6px; }
.prow2 { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; align-items: stretch; } .prow2.cur .plvl { outline: 2px solid #a5b4fc; }
.plvl { display: grid; place-items: center; border-radius: 12px; background: #2a2b30; color: #8b8f98; font-weight: 800; font-size: 17px; } .plvl.on { background: #6366f1; color: #fff; }
.pcell { position: relative; display: flex; align-items: center; min-height: 54px; padding: 8px 26px 8px 10px; border-radius: 12px; background: #17181c; border: 1px solid #25262b; font-size: 12.5px; line-height: 1.25; }
.pcell.prem { background: #1f1a12; border-color: #3a2f18; } .pcell.ok { background: rgba(48, 209, 88, .12); border-color: rgba(48, 209, 88, .7); cursor: pointer; box-shadow: 0 0 14px -4px rgba(48, 209, 88, .6); }
.pcell.done { opacity: .55; } .pcell.lock { opacity: .6; } .pc-mark { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 13px; color: #30d158; }

/* ============ площадка ============ */
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: linear-gradient(165deg, color-mix(in srgb, var(--rc) 11%, #17181c), #101114 70%); border: 1px solid color-mix(in srgb, var(--rc) 28%, #25262b); }
.mpic { width: 92px; flex: none; } .mpic svg, .mpic img { width: 100%; height: auto; display: block; }
.mmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .mmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mmain .muted { font-size: 11.5px; }
.mbuy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; } .mbuy b { font-size: 15px; color: var(--gold); }

/* ============ гонки: список и заезд ============ */
.tsegs { display: flex; gap: 3px; margin-top: 6px; } .tsegs i { flex: 1; height: 5px; border-radius: 3px; background: #2f3036; } .tsegs i.on { background: #30d158; }
.rsel { position: relative; width: 142px; } .rsel .badge { top: 8px; left: 8px; }
.card.fuel .small { font-size: 12px; margin: 8px 0 2px; } .card.fuel .bar { margin: 8px 0; }
.opps { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.opp { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; } .opp + .opp { border-top: 1px solid #202125; } .opp:active { background: #1a1b1f; }
.opic { width: 86px; flex: none; } .opic svg, .opic img { width: 100%; height: auto; display: block; }
.omain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .omain b { font-size: 16px; } .omain .muted { font-size: 12.5px; }
.orow { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.dchip { display: inline-block; padding: 4px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, #141518); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); } .dchip.gray { --c: #9aa0aa; }
.oright { text-align: right; flex: none; display: flex; flex-direction: column; gap: 2px; } .oright b { font-size: 17px; } .oright .muted { font-size: 11.5px; }
.bad { color: var(--red); }
.rv { position: fixed; inset: 0; z-index: 50; background: #000; overflow-y: auto; } .rv-in { max-width: 480px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 14px calc(24px + var(--safe-b)); min-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; } .rv-head h1 { font-size: 32px; font-weight: 800; }
.rv-card { background: #121316; border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.rv-top { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #25262b; margin-bottom: 12px; } .rv-top .right { text-align: right; }
.rv-top span { display: block; font-size: 11px; letter-spacing: .5px; } .rv-top b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-lane { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .rv-pic { width: 86px; flex: none; } .rv-pic svg, .rv-pic img { width: 100%; height: auto; display: block; } .rv-l { flex: 1; min-width: 0; }
.rv-bar { position: relative; height: 10px; border-radius: 6px; background: #2a2b30; margin-top: 6px; overflow: hidden; } .rv-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; }
.rv-bar i.you { background: linear-gradient(90deg, #0a84ff, #5ac8fa); } .rv-bar i.opp { background: linear-gradient(90deg, #ff453a, #ff9f0a); } .rv-bar u { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #5a5d66; }
.rv-scale { display: flex; justify-content: space-between; color: #8b8f98; font-size: 11px; margin-left: 98px; }
.rv-lights { display: flex; gap: 14px; justify-content: center; width: fit-content; margin: 4px auto; padding: 14px 22px; border-radius: 40px; background: #17181c; }
.rv-lights i { width: 38px; height: 38px; border-radius: 50%; background: #25262b; transition: background .1s, box-shadow .1s; } .rv-lights i.red { background: #ff3b30; box-shadow: 0 0 22px #ff3b30; } .rv-lights i.green { background: #30d158; box-shadow: 0 0 26px #30d158; }
.rv-speed { display: flex; align-items: center; gap: 14px; background: #1b1c20; border-radius: 22px; padding: 16px 18px; }
.rv-big { display: flex; align-items: baseline; gap: 6px; } .rv-big b { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 80px; } .rv-big span { color: var(--muted); font-size: 15px; }
.rv-meter { flex: 1; height: 8px; border-radius: 5px; background: #2d2e33; overflow: hidden; } .rv-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #30d158, #ffd24a, #ff453a); border-radius: 5px; }
.rv-gear { text-align: center; } .rv-gear span { display: block; font-size: 10px; letter-spacing: .4px; } .rv-gear b { font-size: 34px; }
.rv-msg { text-align: center; font-weight: 700; font-size: 18px; min-height: 26px; } .rv-msg.good { color: var(--green); } .rv-msg.bad { color: #ff8a80; }
.rv-gas { margin-top: auto; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #22c55e, #15803d); color: #fff; font-size: 26px; font-weight: 900; letter-spacing: 2px; box-shadow: 0 10px 30px -8px rgba(34, 197, 94, .7); touch-action: manipulation; user-select: none; }
.rv-gas:active { transform: scale(.98); } .rv-gas.off { background: #123a1f; color: #4a7a58; box-shadow: none; }
.sheet-wrap { z-index: 70; }
