/* «Угадай танк» v2 (/games/guess-tank): игровой экран серии мини-игр, родня «Пробей меня».
   Классы .gt-*, общие куски (.mg-hero, .mg-panel, .mg-tabs, .mg-row) — из minigames.css.
   Над сценой нет backdrop-filter: подложки HUD — сплошной полупрозрачный цвет.
   Анимации только украшают: логика ступеней и таймеров живёт в JS на setInterval. */
.guess-page [hidden] { display: none !important; }
.gt-hero .mg-hero-inner { max-width: 1020px; padding-top: 14px; padding-bottom: 12px; }

.gt {
  --gt-plate: rgba(15, 14, 20, .82);
  --gt-line: rgba(255, 255, 255, .09);
  --gt-ok: var(--green, #8fd13f);
  --gt-bad: #ff5a5a;
  --gt-w: min(100%, 980px);
  max-width: 1020px; margin: 0 auto; padding: 14px 20px 34px;
  display: flex; flex-direction: column; gap: 18px;
}

/* --- игровое поле ---------------------------------------------------------- */
.gt-game {
  position: relative; isolation: isolate; width: var(--gt-w); margin: 0 auto; box-sizing: border-box;
  border-radius: 12px; overflow: hidden;
  background: radial-gradient(130% 90% at 50% 0%, #24232b 0%, #141319 60%, #0f0e13 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.gt-view {
  position: relative; overflow: hidden;
  height: clamp(300px, calc(100svh - 400px), 470px);
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(255, 201, 77, .07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #1d1c23, #121117);
}
/* Кадр: все ступени показываются в одной рамке одного размера */
.gt-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform, opacity; }
/* Деталь (ступени 1–3) — с мягкой виньеткой, чтобы края кропа не резали глаз */
.gt-shot.crop {
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.gt-shot.anim { transition: transform .62s cubic-bezier(.2, .7, .2, 1), opacity .42s ease-out; }
.gt-shot.full { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.gt-shot.enter { animation: gt-focus .45s ease-out; }
/* В разгадке машина приподнимается над подписью */
.gt-frame { transition: top .4s ease, height .4s ease; }
.gt-game[data-state=reveal] .gt-frame { top: 40%; height: 64%; }
/* Уголки видоискателя */
/* Кадр сервера 320×240 (4:3, прозрачный фон): шире ~540 CSS px не растягиваем, иначе мыло */
.gt-frame, .gt-corners { position: absolute; left: 50%; top: 52%; height: 78%; aspect-ratio: 4 / 3; max-width: min(92%, 540px); max-height: 405px; transform: translate(-50%, -50%); }
.gt-corners { transform: translate(-50%, -50%) scale(1.04); pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--amber), var(--amber)) left top / 22px 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) left top / 2px 22px no-repeat,
    linear-gradient(var(--amber), var(--amber)) right top / 22px 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) right top / 2px 22px no-repeat,
    linear-gradient(var(--amber), var(--amber)) left bottom / 22px 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) left bottom / 2px 22px no-repeat,
    linear-gradient(var(--amber), var(--amber)) right bottom / 22px 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) right bottom / 2px 22px no-repeat; }
.gt-game[data-state=reveal] .gt-corners, .gt-game[data-state=intro] .gt-corners { opacity: 0; }
.gt-teaser { position: absolute; left: 50%; top: 52%; height: 70%; transform: translate(-50%, -50%); pointer-events: none;
  filter: brightness(0) drop-shadow(0 0 1px rgba(255, 201, 77, .8)) drop-shadow(0 0 14px rgba(255, 201, 77, .25)); opacity: .9; }

/* --- HUD ------------------------------------------------------------------- */
.gt-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px; pointer-events: none; }
.gt-top > * { pointer-events: auto; }
.gt-plate { background: var(--gt-plate); border: 1px solid var(--gt-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); color: var(--text); }
.gt-q { justify-self: start; padding: 8px 12px 10px; min-width: 150px; }
.gt-q span { display: block; font-size: 12px; color: var(--text-dim); }
.gt-q strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gt-q strong small { font-size: 14px; color: var(--text-faint); font-weight: 700; }
.gt-pips { display: flex; gap: 3px; margin-top: 6px; }
.gt-pips i { width: 12px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.gt-pips i.now { background: var(--amber); box-shadow: 0 0 6px rgba(255, 201, 77, .6); }
.gt-pips i.ok { background: var(--gt-ok); }
.gt-pips i.bad { background: var(--gt-bad); }

.gt-clock { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--gt-plate); box-shadow: 0 8px 24px rgba(0, 0, 0, .3), inset 0 0 0 1px var(--gt-line); }
.gt-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gt-clock circle { fill: none; stroke-width: 5; }
.gt-clock-bg { stroke: rgba(255, 255, 255, .08); }
.gt-clock-arc { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; transition: stroke-dashoffset .1s linear, stroke .2s; }
.gt-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.gt-clock.low .gt-clock-arc { stroke: var(--gt-bad); }
.gt-clock.low b { color: #ffb0a6; animation: gt-beat 1s ease-in-out infinite; }

.gt-stats { justify-self: end; padding: 8px 12px 10px; min-width: 150px; text-align: right; }
.gt-stats span { display: block; font-size: 12px; color: var(--text-dim); }
.gt-stats strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gt-stats strong.pop { animation: gt-pop .5s ease-out; }
.gt-streak { margin-top: 5px; font-size: 12.5px; color: var(--text-dim); min-height: 18px; }
.gt-streak b { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--amber); color: var(--accent-ink); font-weight: 800; }
.gt-streak small { color: var(--text-faint); }
.gt-streak.burn { color: #ff9c90; }

/* Индикатор ступени и «Отдалить» — низ кадра */
.gt-stage { position: absolute; z-index: 5; left: 12px; bottom: 12px; padding: 8px 12px 9px; min-width: 196px; }
.gt-steps { display: flex; gap: 4px; }
.gt-steps i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; transition: background .25s; }
.gt-steps i.past { background: rgba(255, 255, 255, .3); }
.gt-steps i.on { background: var(--amber); box-shadow: 0 0 8px rgba(255, 201, 77, .5); }
.gt-worth { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.gt-worth strong { font-size: 26px; font-weight: 800; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; transition: color .2s; }
.gt-worth strong.drop { animation: gt-drop .5s ease-out; }
.gt-worth span { font-size: 12px; color: var(--text-dim); }
.gt-melt { height: 3px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gt-melt i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f2a93b, #ffd166); transform-origin: left; transition: transform .1s linear; }
.gt-stage.last .gt-melt { visibility: hidden; }
.gt-zoom { position: absolute; z-index: 5; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; color: var(--text);
  background: var(--gt-plate); box-shadow: inset 0 0 0 1px var(--gt-line), 0 8px 24px rgba(0, 0, 0, .3); }
.gt-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gt-zoom kbd, .gt-opt kbd, .gt-fifty kbd, .gt-next kbd { font: inherit; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: var(--text-faint); background: rgba(0, 0, 0, .35); }
.gt-zoom:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .6), 0 8px 24px rgba(0, 0, 0, .3); }
.gt-zoom:disabled { opacity: .45; cursor: default; }

/* Ответы */
.gt-bottom { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--gt-line); background: rgba(10, 10, 14, .5); }
.gt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gt-opt { position: relative; min-height: 62px; padding: 10px 16px; border: 0; border-radius: 9px; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; font: inherit; font-size: 17px; font-weight: 800; color: var(--text);
  background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--gt-line); transition: background .12s, box-shadow .12s, opacity .2s, transform .12s; }
.gt-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-opt kbd { flex: none; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font-size: 13px; }
.gt-opt:hover:not(:disabled) { background: rgba(255, 201, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .6); }
.gt-opt:active:not(:disabled) { transform: translateY(1px); }
.gt-opt:disabled { cursor: default; }
.gt-game[data-state=loading] .gt-opt, .gt-game[data-state=intro] .gt-opt { opacity: .45; }
.gt-opt.gone { opacity: .22; text-decoration: line-through; }
.gt-opt.picked { box-shadow: inset 0 0 0 2px var(--amber); background: rgba(255, 201, 77, .1); }
.gt-opt.ok { opacity: 1; background: rgba(143, 209, 63, .2); box-shadow: inset 0 0 0 2px var(--gt-ok); color: #d9f5b5; }
.gt-opt.ok kbd { background: var(--gt-ok); color: #14200a; }
.gt-opt.bad { opacity: 1; background: rgba(255, 90, 90, .18); box-shadow: inset 0 0 0 2px var(--gt-bad); color: #ffc9c2; animation: gt-shake .4s ease-out; }
.gt-game[data-state=reveal] .gt-opt:not(.ok):not(.bad) { opacity: .35; }
.gt-opt.empty { visibility: hidden; }

.gt-tools { display: flex; align-items: center; gap: 12px; }
.gt-fifty { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: var(--text); background: var(--gt-plate); box-shadow: inset 0 0 0 1px var(--gt-line); }
.gt-fifty b { color: var(--amber); }
.gt-fifty small { font-size: 12px; font-weight: 600; color: var(--text-faint); }
.gt-fifty:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .6); }
.gt-fifty:disabled { opacity: .4; cursor: default; }
.gt-fifty.used { opacity: .4; text-decoration: line-through; }
.gt-keys { margin-left: auto; font-size: 12px; color: var(--text-faint); }

/* --- разгадка --------------------------------------------------------------- */
.gt-reveal { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 14, .86) 42%, rgba(10, 9, 14, .95)); animation: gt-up .3s ease-out; }
.gt-verdict { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gt-reveal.ok .gt-verdict { color: var(--gt-ok); }
.gt-reveal.bad .gt-verdict { color: #ff8475; }
.gt-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.gt-name strong { font-size: 28px; font-weight: 800; letter-spacing: -.015em; line-height: 1.1; color: #fff; }
.gt-tier { font-size: 13px; font-weight: 800; color: var(--amber); padding: 1px 7px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .55); align-self: center; }
.gt-meta { font-size: 13px; color: var(--text-dim); }
.gt-line { grid-column: 1; margin-top: 4px; font-size: 13.5px; color: var(--text-dim); }
.gt-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.gt-line .gt-plus { color: var(--amber); }
.gt-gain { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; font-size: 40px; font-weight: 800; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; animation: gt-pop .5s ease-out; }
.gt-reveal.bad .gt-gain { color: var(--text-faint); }
.gt-next { grid-column: 2; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 140px; height: 42px; padding: 0 16px;
  border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; color: var(--accent-ink); background: var(--accent-grad, linear-gradient(135deg, #ffd166, #f2a93b)); }
.gt-next kbd { color: rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .12); }
.gt-next i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(0, 0, 0, .35); transform-origin: left; transform: scaleX(0); }
.gt-next.run i { transform: scaleX(1); transition: transform var(--gt-auto, 2.5s) linear; }

.gt-loading { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center;
  background: rgba(14, 13, 19, .55); color: var(--text); font-size: 14px; font-weight: 600; }
.gt-loading i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--amber); animation: gt-spin .8s linear infinite; }

/* Видимость частей по состоянию */
.gt-game[data-state=intro] .gt-top, .gt-game[data-state=intro] .gt-stage, .gt-game[data-state=intro] .gt-zoom { visibility: hidden; }
.gt-game[data-state=reveal] .gt-stage, .gt-game[data-state=reveal] .gt-zoom { visibility: hidden; }
.gt-game[data-state=final] .gt-top, .gt-game[data-state=final] .gt-view, .gt-game[data-state=final] .gt-bottom { display: none; }

/* --- интро и итог -------------------------------------------------------------- */
.gt-screen { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; overflow: auto;
  background: linear-gradient(90deg, rgba(14, 13, 19, .97) 0%, rgba(14, 13, 19, .92) 40%, rgba(14, 13, 19, .45) 70%, rgba(14, 13, 19, .1) 100%); }
.gt-screen-body { width: min(500px, 100%); padding: 34px 44px; box-sizing: border-box; }
.gt-kicker { font-size: 13px; font-weight: 700; color: var(--amber); }
.gt-screen h2 { margin: 6px 0 16px; font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: #fff; }
.gt-rules { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.gt-rules li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; color: var(--text-dim); }
.gt-rules li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.gt-rules b { color: var(--text); }
.gt-scale { display: flex; gap: 6px; margin: -8px 0 22px 22px; }
.gt-scale span { padding: 3px 8px; border-radius: 5px; background: rgba(255, 201, 77, .1); font-size: 12.5px; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.gt-scale span:nth-child(2) { opacity: .85; } .gt-scale span:nth-child(3) { opacity: .7; } .gt-scale span:nth-child(4) { opacity: .55; }
.gt-go { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 56px; padding: 0 32px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 800; color: var(--accent-ink); background: var(--accent-grad, linear-gradient(135deg, #ffd166, #f2a93b));
  box-shadow: 0 10px 30px rgba(242, 169, 59, .35); transition: transform .12s, filter .12s; text-decoration: none; }
.gt-go:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.gt-go:disabled { opacity: .55; cursor: default; box-shadow: none; }
.gt-go-ghost { color: var(--text); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; font-size: 16px; }
.gt-auth { margin: 16px 0 0; font-size: 13px; color: var(--text-dim); }
.gt-auth a, .gt-final-note a { color: var(--amber); }
.gt-keys-intro { margin: 8px 0 0; font-size: 12px; color: var(--text-faint); }

.gt-final { position: static; display: block; background: none; }
.gt-final-body { width: min(720px, 100%); margin: 0 auto; text-align: center; padding: 34px 24px 30px; box-sizing: border-box; }
.gt-final-score { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.gt-final-score strong { font-size: 64px; font-weight: 800; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gt-final-score span { font-size: 16px; color: var(--text-dim); }
.gt-final-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gt-final-stats span { padding: 7px 12px; border-radius: 7px; background: rgba(255, 255, 255, .06); font-size: 13px; color: var(--text-dim); }
.gt-final-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.gt-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 460px; margin: 6px auto 6px; }
.gt-strip i { height: 34px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .06); color: var(--text-faint); }
.gt-strip i.ok { color: #14200a; background: var(--gt-ok); }
.gt-strip i.ok.s2 { background: #a9d86e; } .gt-strip i.ok.s3 { background: #c0dc94; } .gt-strip i.ok.s4 { background: #d3dfc0; }
.gt-strip i.bad { color: rgba(0, 0, 0, .6); background: var(--gt-bad); }
.gt-strip-legend { margin: 0 0 14px; font-size: 12px; color: var(--text-faint); }
.gt-final-note { margin: 0 0 18px; font-size: 14px; color: var(--text-dim); }
.gt-final-note b { color: var(--text); }
.gt-final-note .gt-record { color: var(--amber); }
.gt-final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.gt-final-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; text-align: left; }
.gt-final-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 56px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .04); font-size: 12.5px; }
.gt-final-list li span { color: var(--text-faint); font-weight: 700; }
.gt-final-list li b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-final-list li em { font-style: normal; color: var(--text-dim); white-space: nowrap; }
.gt-final-list li strong { text-align: right; font-variant-numeric: tabular-nums; }
.gt-final-list li.ok { box-shadow: inset 2px 0 0 var(--gt-ok); }
.gt-final-list li.bad { box-shadow: inset 2px 0 0 var(--gt-bad); }
.gt-final-list li.ok strong { color: var(--amber); }

/* --- сообщения -------------------------------------------------------------- */
.gt-alert { position: absolute; z-index: 20; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 24px)); box-sizing: border-box;
  padding: 18px 20px; border-radius: 12px; background: rgba(20, 16, 18, .97); border: 1px solid rgba(255, 90, 90, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); text-align: center; }
.gt-alert p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.gt-alert div { display: flex; justify-content: center; gap: 8px; }
.gt-btn, .gt-btn-ghost { min-height: 40px; padding: 0 18px; border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.gt-btn { color: var(--accent-ink); background: var(--accent-grad, linear-gradient(135deg, #ffd166, #f2a93b)); }
.gt-btn-ghost { color: var(--text); background: rgba(255, 255, 255, .08); }
.gt-toast { position: absolute; z-index: 15; left: 50%; top: 96px; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  padding: 8px 14px; border-radius: 8px; background: rgba(15, 14, 20, .94); border: 1px solid var(--gt-line); font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.gt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --- таблица лидеров: ширина как у сцены ------------------------------------- */
.gt-board { width: var(--gt-w); margin: 0 auto; box-sizing: border-box; }
.gt-row-head, .gt-row { grid-template-columns: 38px minmax(0, 1fr) 64px 76px 86px; }
.gt-row-head { display: grid; gap: 10px; padding: 0 12px 4px; font-size: 12px; color: var(--text-faint); }
.gt-row-head span:nth-child(n+3) { text-align: right; }
.gt-row .mg-row-time { color: var(--amber); }
.gt-row-ms { font-size: 12.5px; color: var(--text-dim); text-align: right; }
.gt-row.top1 { background: linear-gradient(90deg, rgba(255, 209, 102, .16), rgba(255, 255, 255, .035) 60%); box-shadow: inset 3px 0 0 #ffd166; }
.gt-row.top2 { background: linear-gradient(90deg, rgba(207, 216, 220, .12), rgba(255, 255, 255, .035) 60%); box-shadow: inset 3px 0 0 #cfd8dc; }
.gt-row.top3 { background: linear-gradient(90deg, rgba(224, 160, 112, .13), rgba(255, 255, 255, .035) 60%); box-shadow: inset 3px 0 0 #e0a070; }
.gt-row.top1 .mg-row-place { color: #ffd166; } .gt-row.top2 .mg-row-place { color: #cfd8dc; } .gt-row.top3 .mg-row-place { color: #e0a070; }
.gt-row.is-me { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .6); }
a.gt-row .mg-row-name { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .18); text-underline-offset: 3px; }
a.gt-row:hover .mg-row-name { color: var(--amber); text-decoration-color: currentColor; }

/* --- движение ------------------------------------------------------------------ */
@keyframes gt-pop { 0% { transform: scale(1); } 35% { transform: scale(1.18); color: var(--amber); } 100% { transform: scale(1); } }
@keyframes gt-drop { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes gt-beat { 50% { transform: scale(1.08); } }
@keyframes gt-spin { to { transform: rotate(360deg); } }
@keyframes gt-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gt-focus { from { opacity: 0; filter: blur(6px); transform: scale(1.06); } to { opacity: 1; filter: none; transform: none; } }
@keyframes gt-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.gt-game :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

@media (hover: none) and (pointer: coarse) {
  .gt-zoom kbd, .gt-opt kbd, .gt-fifty kbd, .gt-next kbd, .gt-keys, .gt-keys-intro { display: none; }
}

/* Узкий экран: HUD уходит в полосу над кадром, ответы 2×2 */
@media (max-width: 760px) {
  .gt-hero .mg-hero-inner { padding: 10px 14px 8px; }
  .gt { padding: 8px 10px 26px; gap: 14px; }
  .gt-game { border-radius: 10px; }
  .gt-top { position: static; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 8px; }
  .gt-q, .gt-stats { min-width: 0; padding: 6px 9px 7px; }
  .gt-q strong, .gt-stats strong { font-size: 19px; }
  .gt-q span, .gt-stats span { font-size: 11px; }
  .gt-pips { gap: 2px; }
  .gt-pips i { width: auto; flex: 1; height: 4px; }
  .gt-clock { width: 56px; height: 56px; }
  .gt-clock b { font-size: 20px; }
  .gt-streak { font-size: 11.5px; min-height: 0; }
  .gt-streak small { display: none; }
  .gt-view { height: auto; aspect-ratio: 4 / 3; max-height: 46svh; }
  .gt-frame, .gt-corners { top: 46%; height: 74%; }
  .gt-stage { left: 8px; bottom: 8px; min-width: 0; padding: 6px 9px 7px; }
  .gt-worth strong { font-size: 20px; }
  .gt-worth span { font-size: 11px; }
  .gt-zoom { right: 8px; bottom: 8px; height: 44px; padding: 0 12px; font-size: 13.5px; }
  .gt-bottom { padding: 8px; gap: 8px; }
  .gt-opts { gap: 6px; }
  .gt-opt { min-height: 58px; padding: 8px 10px; font-size: 14.5px; gap: 8px; }
  .gt-opt span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .gt-opt kbd { display: none; }
  .gt-fifty { height: 44px; }
  /* Разгадка на телефоне — под машиной, а не поверх неё */
  .gt-game[data-state=reveal] .gt-view { aspect-ratio: auto; max-height: none; height: auto; padding-top: 186px; }
  .gt-game[data-state=reveal] .gt-frame { top: 96px; height: 172px; }
  .gt-reveal { position: relative; padding: 4px 10px 10px; gap: 6px 10px; background: none; }
  .gt-name strong { font-size: 20px; }
  .gt-meta { font-size: 12px; }
  .gt-line { font-size: 12.5px; }
  .gt-gain { font-size: 28px; }
  .gt-next { min-width: 104px; height: 40px; }
  .gt-screen { background: linear-gradient(180deg, rgba(14, 13, 19, .97) 0%, rgba(14, 13, 19, .92) 70%, rgba(14, 13, 19, .8) 100%); align-items: flex-start; }
  .gt-screen-body { padding: 20px 16px; }
  /* Интро на телефоне — обычный блок вместо оверлея: кнопка «В бой» всегда видна без прокрутки внутри */
  .gt-game[data-state=intro] .gt-top, .gt-game[data-state=intro] .gt-view, .gt-game[data-state=intro] .gt-bottom { display: none; }
  .gt-intro { position: static; display: block; }
  .gt-rules { gap: 7px; margin-bottom: 16px; }
  .gt-scale { margin: -4px 0 16px 22px; }
  .gt-screen h2 { font-size: 27px; margin-bottom: 12px; }
  .gt-rules li { font-size: 14px; }
  .gt-go { width: 100%; min-height: 52px; font-size: 18px; }
  .gt-final-body { padding: 22px 12px 18px; }
  .gt-final-score strong { font-size: 48px; }
  .gt-strip i { height: 28px; font-size: 12px; }
  .gt-final-list { grid-template-columns: 1fr; }
  .gt-row-head, .gt-row { grid-template-columns: 28px minmax(0, 1fr) 40px 64px; gap: 8px; }
  .gt-row-ms, .gt-row-head span:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-shot.anim { transition: opacity .2s; }
  .gt-shot.enter, .gt-opt.bad, .gt-stats strong.pop, .gt-gain, .gt-reveal, .gt-worth strong.drop { animation: none; }
}
