/* МОТО-ЛЕГЕНДА: неон ночного города — розовый, бирюзовый, золотой; кнопка «Играть» — самое тёплое пятно. */
body { background: #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; }
button { font-family: inherit; cursor: pointer; }

/* ---------- экран «тапните» */
#scr-tap { background: #000; }
.tapgo { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; color: #9a9a9a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.tapgo * { pointer-events: none; }
.tap-done { font-size: 12px; letter-spacing: 3px; color: #6a6a6a; }
.tap-line { width: 200px; height: 4px; border-radius: 2px; background: #9a9a9a; }
.tap-go { font-size: 17px; font-weight: 700; color: #e8e8e8; letter-spacing: 1px; animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ---------- меню */
#scr-menu { background: #05030c; }
.mm { position: absolute; inset: 0; overflow: hidden; font-weight: 900; }
.m-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.mm { pointer-events: none; }
.mm button, .mm [data-act] { pointer-events: auto; }
.m-fx, .m-vign, .m-cover { pointer-events: none; }
.m-vign { position: absolute; inset: 0; background: radial-gradient(ellipse at 35% 55%, rgba(0, 0, 0, 0) 45%, rgba(4, 0, 18, .65) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, rgba(8, 2, 24, .55) 100%); }
.m-cover { position: absolute; inset: 0; background: #000; opacity: 1; }
.m-cover.gone { animation: uncover 1.6s ease-in .15s forwards; }
@keyframes uncover { 0% { opacity: 1; } 12% { opacity: .2; } 20% { opacity: .9; } 40% { opacity: .1; } 55% { opacity: .5; } 100% { opacity: 0; } }

.m3-top { position: absolute; left: 12px; top: 10px; display: flex; gap: 12px; }
.m3-stat { position: relative; display: flex; align-items: center; height: 36px; padding: 3px 3px 3px 24px; margin-left: 14px; border-radius: 11px;
  background: linear-gradient(#3a3550, #1c1830 55%, #120f22); border: 2px solid #ff2fb0; box-shadow: 0 0 10px rgba(255, 47, 176, .55), inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 8px rgba(0, 0, 0, .5); }
.m3-stat svg { position: absolute; left: -18px; top: -5px; width: 42px; height: 42px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
.m3-stat * { pointer-events: none; }
.m3-val { min-width: 64px; height: 100%; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(#05040a, #15121f); box-shadow: inset 0 2px 4px #000; color: #ffe27a; font-size: 17px; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(255, 190, 40, .7); }
.m3-val small { color: #9a8fb5; font-size: 12px; margin-left: 4px; text-shadow: none; }
.m3-plus { width: 26px; height: 26px; margin-left: 3px; border-radius: 7px; border: 2px solid #0d4a14; position: relative; background: linear-gradient(#7df067, #1f9e2c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 2px 0 #0b3510; }
.m3-plus::before, .m3-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; }
.m3-plus::before { width: 12px; height: 4px; margin: -2px 0 0 -6px; } .m3-plus::after { width: 4px; height: 12px; margin: -6px 0 0 -2px; }

.m-side { position: absolute; right: 12px; top: 8px; bottom: 8px; width: 262px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.m-plate { position: relative; width: 262px; padding: 9px 0 6px; border-radius: 14px; line-height: 0; text-align: center;
  background: linear-gradient(#2a2440, #15112a 50%, #0c0919); border: 3px solid #2ae0ff; box-shadow: 0 0 14px rgba(42, 224, 255, .6), inset 0 0 12px rgba(42, 224, 255, .25), 0 8px 18px rgba(0, 0, 0, .6); }
.m-plate i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ff2fb0 70%); box-shadow: 0 0 6px #ff2fb0; }
.m-plate i:nth-child(1) { left: 7px; top: 7px; } .m-plate i:nth-child(2) { right: 7px; top: 7px; } .m-plate i:nth-child(3) { left: 7px; bottom: 7px; } .m-plate i:nth-child(4) { right: 7px; bottom: 7px; }
.m-sub { line-height: 1; margin-top: 3px; font-size: 11px; letter-spacing: 2px; color: #ff8ad8; text-shadow: 0 0 6px #ff2fb0; text-transform: uppercase; }
.m3-guest { display: none; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(13, 7, 23, .78); color: #ffd9a0; font-size: 10px; font-weight: 600; max-width: 262px; }
.m3-guest.show { display: flex; }
.m-play { position: relative; width: 240px; height: 66px; border-radius: 18px; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 0;
  background: linear-gradient(#ffc233, #ff8a00 48%, #f25c00 52%, #ff7a00);
  box-shadow: 0 0 0 3px #7a2a00, 0 0 0 6px #ffd98a, 0 0 0 8px #7a2a00, 0 8px 0 8px #3a1200, 0 14px 26px rgba(255, 120, 0, .45); transition: transform .06s; animation: pulse 1.6s ease-in-out infinite; }
.m-play::before { content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 32%; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .1)); pointer-events: none; }
.m-play:active { transform: translateY(5px); }
.m-play > * { position: relative; pointer-events: none; }
.m-play small { line-height: 1; margin-top: 2px; font-size: 11px; font-weight: 800; color: #6a2000; letter-spacing: .5px; }
#m-play-txt { display: flex; align-items: center; gap: 6px; }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
.m-row { display: flex; gap: 16px; }
.m-rb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: #f4ecff; font-size: 10px; font-weight: 800; text-shadow: 0 1px 2px #000; width: 64px; }
.m-rb b { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #14101f;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 4px 0 #07040d, 0 0 12px var(--glow); transition: transform .06s; }
.m-rb b svg { width: 26px; height: 26px; }
.m-rb:active b { transform: translateY(3px); }
.m-rb * { pointer-events: none; }
.c-map { --glow: rgba(42, 224, 255, .7); } .c-map b { background: radial-gradient(circle at 35% 25%, #9ff0ff, #1290c8 70%); }
.c-gar { --glow: rgba(255, 106, 58, .7); } .c-gar b { background: radial-gradient(circle at 35% 25%, #ffb08f, #e0461a 70%); }
.c-top { --glow: rgba(155, 255, 47, .7); } .c-top b { background: radial-gradient(circle at 35% 25%, #8df27a, #1f9e2c 70%); }
.c-all { --glow: rgba(180, 92, 255, .7); } .c-all b { background: radial-gradient(circle at 35% 25%, #d6a8ff, #7a2ad8 70%); }
.c-snd { --glow: rgba(255, 210, 63, .7); } .c-snd b { background: radial-gradient(circle at 35% 25%, #ffe98a, #e0a100 70%); }
.c-pri { --glow: rgba(200, 204, 212, .5); } .c-pri b { background: radial-gradient(circle at 35% 25%, #c7ccd4, #5c626c 70%); }
.locked { filter: grayscale(.85) brightness(.75); }
.m-rb.locked::after { content: ""; position: absolute; right: 6px; top: -2px; width: 18px; height: 18px; border-radius: 50%; background: #ffd23f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='11' width='12' height='9' rx='2' fill='%2314161a'/%3E%3Cpath d='M9 11V8a3 3 0 0 1 6 0v3' fill='none' stroke='%2314161a' stroke-width='2.4'/%3E%3C/svg%3E") center / 13px no-repeat; border: 2px solid #14161a; filter: none; }

/* ---------- игровой экран */
#scr-game { background: #000; }
#gcv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
.hud { pointer-events: none; font-weight: 900; }
.hud .h-pause { pointer-events: auto; }
.h-plate { position: absolute; left: 10px; top: 8px; width: 214px; padding: 6px 10px 8px; border-radius: 12px; background: linear-gradient(rgba(30, 24, 52, .88), rgba(12, 9, 26, .88)); border: 2px solid #2ae0ff; box-shadow: 0 0 8px rgba(42, 224, 255, .45); }
.h-name { font-size: 12px; color: #dff8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.h-prog { position: relative; height: 10px; margin-top: 6px; margin-right: 18px; border-radius: 5px; background: #05040a; box-shadow: inset 0 1px 3px #000; }
.h-fill { position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(90deg, #ff2fb0, #ffd23f); transform-origin: 0 50%; transform: scaleX(0); }
.h-dots i, .h-me { position: absolute; top: -3px; width: 10px; height: 16px; margin-left: -5px; border-radius: 5px; border: 2px solid #111; }
.h-me { background: #fff; box-shadow: 0 0 6px #fff; z-index: 2; }
.h-flag { position: absolute; right: -20px; top: -6px; width: 20px; height: 20px; }
.h-goal { position: absolute; left: 50%; top: 8px; width: 210px; margin-left: -105px; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 12px;
  background: linear-gradient(rgba(30, 24, 52, .9), rgba(12, 9, 26, .9)); border: 2px solid #ff2fb0; box-shadow: 0 0 10px rgba(255, 47, 176, .5); }
.h-goal.warn { border-color: #ff3a3a; animation: warn .5s ease-in-out infinite alternate; }
@keyframes warn { from { box-shadow: 0 0 6px rgba(255, 58, 58, .5); } to { box-shadow: 0 0 18px rgba(255, 58, 58, 1); } }
.h-gico { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.h-gtx { flex: 1; min-width: 0; }
.h-gtx b { display: block; font-size: 18px; line-height: 1; color: #ffe27a; text-shadow: 0 0 8px rgba(255, 190, 40, .6); white-space: nowrap; }
.h-gtx small { display: block; font-size: 10px; color: #c9b8ff; line-height: 1.3; }
.h-gbar { height: 6px; border-radius: 3px; background: #05040a; overflow: hidden; }
.h-gbar i { display: block; height: 100%; background: linear-gradient(90deg, #2ae0ff, #9bff2f); transform-origin: 0 50%; }
.g-milk .h-gbar i { background: linear-gradient(90deg, #ffffff, #cfeeff); }
.h-coins { position: absolute; right: 64px; top: 12px; display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 5px; border-radius: 16px; background: rgba(12, 9, 26, .85); border: 2px solid #ffc21a; }
.h-coins svg { width: 24px; height: 24px; }
.h-coins b { font-size: 16px; color: #ffe27a; min-width: 20px; }
.h-pause { position: absolute; right: 10px; top: 8px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid #2ae0ff; color: #fff; background: linear-gradient(#2a2440, #120f22); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(42, 224, 255, .5); }
.h-speed { position: absolute; left: 50%; bottom: 10px; width: 120px; margin-left: -60px; text-align: center; line-height: 1; text-shadow: 0 0 10px rgba(255, 47, 176, .8), 0 2px 2px #000; }
.h-speed b { display: block; font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; }
.h-speed small { font-size: 11px; color: #ff8ad8; }
.h-msgs { position: absolute; left: 50%; top: 128px; width: 300px; margin-left: -150px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h-msgs div { padding: 3px 12px; border-radius: 10px; font-size: 16px; background: rgba(12, 9, 26, .75); text-shadow: 0 2px 2px #000; animation: pop .25s ease-out; }
.m-good { color: #9bff2f; border: 2px solid #9bff2f; } .m-bad { color: #ff7a5a; border: 2px solid #ff4a3a; } .m-info { color: #2ae0ff; border: 2px solid #2ae0ff; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#hud-big { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-size: 64px; color: #fff; opacity: 0; text-shadow: 0 0 18px #ff2fb0, 0 0 4px #2ae0ff, 0 4px 0 #3a0a2a; }
#hud-big.show { animation: big .9s ease-out forwards; }
@keyframes big { 0% { transform: scale(2.2); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.h-tip { position: absolute; left: 50%; top: 64px; width: 400px; margin-left: -200px; padding: 7px 12px; border-radius: 12px; background: rgba(12, 9, 26, .85); border: 2px solid #ffd23f; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; opacity: 0; }
.h-tip b { display: block; color: #ffd23f; font-size: 13px; }
.h-tip.show { animation: tip 7s ease forwards; }
@keyframes tip { 0% { opacity: 0; transform: translateY(10px); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* управление */
.ctrl { position: absolute; inset: 0; pointer-events: none; }
.ctrl-group { position: absolute; bottom: 12px; display: flex; gap: 14px; align-items: flex-end; pointer-events: auto; }
.cl { left: 14px; transform-origin: 0 100%; } .cr { right: 14px; transform-origin: 100% 100%; }
.gascol { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kb { position: relative; border-radius: 50%; border: 3px solid #14101f; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; font-weight: 900; touch-action: none; overflow: hidden;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 rgba(0, 0, 0, .3), 0 5px 0 #07040d, 0 0 14px var(--glow); transition: transform .05s; opacity: .93; }
.kb * { pointer-events: none; }
.kb.on { transform: translateY(4px); filter: brightness(1.2); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), 0 1px 0 #07040d, 0 0 22px var(--glow); }
.kb svg { width: 34px; height: 34px; }
.kb span { position: relative; font-size: 13px; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.arr { width: 74px; height: 74px; --glow: rgba(42, 224, 255, .7); background: radial-gradient(circle at 35% 25%, #8fe8ff, #1877d8 70%); }
.gas { width: 92px; height: 92px; --glow: rgba(255, 140, 0, .8); background: radial-gradient(circle at 35% 25%, #ffd36a, #ff7a00 60%, #e04a00); }
.gas span { font-size: 18px; }
.brake { width: 70px; height: 70px; --glow: rgba(255, 60, 60, .7); background: radial-gradient(circle at 35% 25%, #ff9d8f, #d8261e 70%); }
.brake span { font-size: 11px; }
.nitro { width: 62px; height: 62px; --glow: rgba(255, 47, 176, .8); background: #3a1040; }
.nitro i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(#ff8ad8, #ff2fb0 60%, #9a0a62); }
.nitro span { font-size: 10px; }

/* ---------- окна */
.overlay { background: rgba(4, 2, 12, .72); }
.panel { width: 360px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(#2a2440, #15112a 40%, #0c0919); border: 3px solid #ff2fb0;
  box-shadow: 0 0 20px rgba(255, 47, 176, .55), inset 0 0 18px rgba(42, 224, 255, .15), 0 14px 30px rgba(0, 0, 0, .6); animation: panelIn .28s cubic-bezier(.2, 1.4, .4, 1); gap: 8px; }
.panel.wide { width: 470px; }
@keyframes panelIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.panel-title { font-size: 22px; font-weight: 900; text-align: center; color: #fff; text-shadow: 0 0 10px #ff2fb0, 0 2px 0 #3a0a2a; letter-spacing: 1px; }
.btn { min-height: 46px; padding: 0 16px; border: 0; border-radius: 13px; font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); flex: 1;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .28), 0 4px 0 #07040d; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 #07040d; }
.btn-play { min-height: 52px; font-size: 19px; background: linear-gradient(#ffc233, #ff8a00 50%, #f25c00); color: #fff; }
.btn-b { background: linear-gradient(#8fe8ff, #1877d8); }
.btn-c { background: linear-gradient(#ff8ad8, #b8147a); }
.btn-sm { min-height: 42px; font-size: 14px; background: linear-gradient(#5c5470, #2c2640); flex: none; }
.p-row { display: flex; gap: 10px; }

/* итог */
.panel.res { width: 430px; gap: 6px; overflow: hidden; }
.res-conf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 15px; }
.res-conf i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: conf 1.8s ease-in forwards; }
@keyframes conf { to { top: 105%; transform: rotate(540deg); } }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; line-height: 0; }
.res-title { flex: 1; text-align: left; }
.res-title svg { width: 220px; height: auto; }
.res-stars { display: flex; gap: 4px; }
.st { display: block; width: 36px; height: 36px; filter: grayscale(1) brightness(.4); }
.st svg { width: 100%; height: 100%; }
.res-stars .st.on { animation: starIn .45s cubic-bezier(.2, 1.6, .4, 1) both; filter: drop-shadow(0 0 6px #ffd23f); }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.res-level { font-size: 13px; color: #9ff0ff; }
.res-reason { font-size: 14px; font-weight: 800; }
.res-reason.ok { color: #9bff2f; } .res-reason.bad { color: #ff8a6a; }
.res-lines { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.res-lines div { padding: 5px 6px; border-radius: 9px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(42, 224, 255, .35); text-align: center; }
.res-lines span { display: block; font-size: 10px; color: #c9b8ff; }
.res-lines b { font-size: 15px; color: #fff; }
.res-sum { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c9b8ff; }
.res-sum b { color: #ffe27a; font-size: 16px; }
.res-earn { display: flex; align-items: center; gap: 3px; }
.res-earn svg { width: 20px; height: 20px; }
.res-ach { min-height: 0; font-size: 12px; color: #ffd23f; }
.res-ach:empty { display: none; }

/* карта уровней */
#map-list { max-height: 216px; display: flex; flex-direction: column; gap: 7px; padding: 2px; }
.lvrow { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 13px; border: 2px solid rgba(42, 224, 255, .5); color: #fff; text-align: left; flex-shrink: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15)), var(--bg); }
.lvrow * { pointer-events: none; }
.env-corn { --bg: linear-gradient(90deg, #6a8a1a, #c9a030); } .env-village { --bg: linear-gradient(90deg, #2f8a3a, #8fcf58); } .env-settle { --bg: linear-gradient(90deg, #8a4a6a, #f2965a); }
.env-highway { --bg: linear-gradient(90deg, #6a2a6a, #ff7a3a); } .env-city { --bg: linear-gradient(90deg, #1a0a3a, #b8147a); }
.lv-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; background: #120f22; border: 2px solid #ffd23f; color: #ffd23f; }
.lv-tx { flex: 1; min-width: 0; }
.lv-tx b { display: block; font-size: 15px; text-shadow: 0 1px 2px #000; }
.lv-tx small { display: block; font-size: 11px; color: #f4ecff; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-st { display: flex; gap: 2px; }
.lv-st .st { width: 20px; height: 20px; }
.lv-st .st.on { filter: drop-shadow(0 0 3px #ffd23f); }
.lv-lock { position: absolute; right: 8px; top: 50%; width: 26px; height: 26px; margin-top: -13px; }
.lvrow.locked { filter: grayscale(.8) brightness(.7); }

/* гараж */
.gar-head { display: flex; align-items: center; justify-content: space-between; }
.gar-coins { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 14px; background: #05040a; border: 2px solid #ffc21a; color: #ffe27a; font-size: 16px; }
.gar-coins svg { width: 24px; height: 24px; }
.tabs { display: flex; gap: 8px; }
.tab { flex: 1; min-height: 40px; border-radius: 11px; border: 2px solid #2ae0ff; background: #120f22; color: #9ff0ff; font-size: 14px; font-weight: 900; }
.tab.on { background: linear-gradient(#2ae0ff, #1290c8); color: #08121a; }
.glist { max-height: 176px; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.uprow, .achrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 47, 176, .4); flex-shrink: 0; }
.up-ic, .ach-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid #14101f; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35); }
.up-ic svg, .ach-ic svg { width: 26px; height: 26px; }
.ach-ic { background: #3a3550; }
.achrow.got .ach-ic { background: linear-gradient(#ffe98a, #e0a100); }
.achrow:not(.got) { opacity: .75; }
.up-tx { flex: 1; min-width: 0; }
.up-tx b { display: block; font-size: 14px; }
.up-tx small { display: block; font-size: 11px; color: #c9b8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pips { display: flex; gap: 3px; margin-top: 3px; }
.pips i { width: 16px; height: 6px; border-radius: 3px; background: #2a2440; }
.pips i.on { background: #9bff2f; box-shadow: 0 0 4px #9bff2f; }
.buy { min-width: 78px; height: 40px; border-radius: 11px; border: 0; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 15px; font-weight: 900; color: #fff;
  background: linear-gradient(#7df067, #1f9e2c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #07040d; }
.buy svg { width: 18px; height: 18px; }
.buy.poor { background: linear-gradient(#6a6478, #3a3550); }
.buy.max { background: linear-gradient(#ffd23f, #e0a100); color: #3a1500; }
.ach-r { font-size: 14px; color: #ffe27a; }

/* рейтинг */
#lb-list { max-height: 200px; }
.lb-row { border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 14px; }
.lb-row.top-1 { background: linear-gradient(90deg, rgba(255, 194, 26, .55), rgba(255, 194, 26, .1)); }
.lb-row.top-2 { background: linear-gradient(90deg, rgba(200, 210, 230, .45), rgba(200, 210, 230, .08)); }
.lb-row.top-3 { background: linear-gradient(90deg, rgba(220, 120, 60, .5), rgba(220, 120, 60, .08)); }
.lb-row.me { outline: 2px solid #2ae0ff; box-shadow: 0 0 8px #2ae0ff; }
.lb-medal { font-weight: 900; color: #c9b8ff; }
.lb-medal.gold, .lb-medal.silver, .lb-medal.bronze { width: 28px; height: 28px; border-radius: 50%; line-height: 28px; color: #2a1200; border: 2px solid #14101f; }
.lb-medal.gold { background: radial-gradient(circle at 35% 30%, #fff59a, #ffc21a 60%, #c97a00); }
.lb-medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c5ccd8 60%, #7a8494); }
.lb-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffcf9a, #d8843a 60%, #8a4a1a); }
.lb-avatar { background: #b8147a; font-weight: 900; }
.lb-score { font-weight: 900; color: #ffe27a; }
.lb-empty { color: #c9b8ff; }

#toast { bottom: 22px; padding: 9px 16px; border-radius: 12px; background: rgba(12, 9, 26, .92); border: 2px solid #2ae0ff; font-size: 14px; font-weight: 800; }

/* заставка старта */
.intro { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; z-index: 40; pointer-events: none; opacity: 1; transition: opacity .3s; }
.intro.show { display: block; }
.intro.fade { opacity: 0; }
