/* Steel Verdict skin, direction C "War film" (owner's pick, mockup proto/ui-mockups/c/). Every screen is a frame of a war film:
   black letterbox bars, huge condensed film-title type (Anton), calm text (Archivo), warm white on black and one accent,
   subtitle yellow = "your move / act now". No side menu, no HUD bar, no bordered panels: a minimal top bar (logo,
   resources, Menu) and a full-screen index of every area. Separation by space and soft tints, never by hairlines.
   Hover = a soft shadow only. Loaded after the core CSS; layout changes that need markup come from themes/tanks/theme.js.
   Colours: theme.json (var(--token)); --ink / --dim / --tint are this skin's own tokens. */

:root {
  --bar: 64px;            /* height of the top letterbox bar */
  --gut: 40px;            /* side gutter of every screen */
  --rad: 6px;
  --lift: 0 10px 30px color-mix(in srgb, var(--shade) 55%, transparent);
  --soft: 0 6px 20px color-mix(in srgb, var(--shade) 60%, transparent);
}
@media (max-width: 760px) { :root { --bar: 58px; --gut: 16px; } }

/* ---------- Ground and type ---------- */
html { scrollbar-color: var(--line-solid) var(--bg); }
body { background: var(--bg); background-image: none; color: var(--text); font: 400 16px/1.45 var(--font-b); }
body::after { content: none; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-solid); border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--mute2); }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--strong); }
h1, h2, h3, h4 { margin: 0; }
h1, h2, .lp-h { font-family: var(--font-f); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; color: var(--ink); }
h1 { font-size: 40px; } h2 { font-size: 30px; }
h3 { font: 700 18px/1.25 var(--font-b); text-transform: none; letter-spacing: 0; color: var(--ink); display: block; }
h3::before { content: none; }
h4 { font: 700 16px/1.3 var(--font-b); text-transform: none; letter-spacing: 0; color: var(--ink); }
.num { font-family: var(--font-b); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mute { color: var(--dim); } .small { font-size: 14px; }
.kicker { font: 500 15px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
.logo, .lp-top .logo { font-family: var(--font-f); font-weight: 400; letter-spacing: 0.04em; color: var(--ink); }
.logo b, .logo i { color: var(--ink); font-weight: 400; font-style: normal; }
.logo-img { display: block; height: 28px; width: auto; }
.create .logo .logo-img { height: clamp(64px, 11vw, 120px); margin: 0 auto; }
.sf-brand .logo-img { height: 40px; }
.lp-title-logo .logo-img { height: auto; width: min(78vw, 720px); margin: 0 auto; }
.auth-box .logo-img, .verify-wall .logo-img, .panel .logo-img { height: auto !important; width: 100%; max-width: 260px; margin: 0 auto 10px; }

/* ---------- Shell: no side menu, a minimal top bar ---------- */
#app { display: block; min-height: 100vh; }
html #top { position: sticky; top: 0; z-index: 60; height: var(--bar); min-height: var(--bar); display: flex; flex-wrap: nowrap; align-items: center; gap: 22px;
  padding: 0 calc(var(--gut) + 124px) 0 var(--gut); background: var(--bg); border: 0; box-shadow: none; overflow: visible; }
#top .logo { flex: none; cursor: pointer; }
#top .logo-img { height: 28px; }
html #top .res { flex: 0 1 auto; margin-left: auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 26px; min-width: 0; }
html #top .res .chip { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: row; align-items: baseline; gap: 5px; flex: none; white-space: nowrap;
  font: 400 16px/1 var(--font-b); color: var(--dim); position: static; min-width: 0; padding: 0; }
html #top .res .chip .v { order: 0; font: 700 16px/1 var(--font-b); color: var(--ink); white-space: nowrap; }
html #top .res .chip .k { order: 1; font: 400 16px/1 var(--font-b); text-transform: none; letter-spacing: 0; color: var(--dim); }
html #top .res .chip .bar, html #top .res .chip .bar ~ .k, html #top .res .chip-plus, html #top .res .chip.opt { display: none; }
#top .res .chip-link { cursor: pointer; border-radius: var(--rad); padding: 8px 10px; margin: -8px -10px; transition: box-shadow .2s; }
#top .res .chip-link:hover { box-shadow: var(--soft); background: var(--tint); }
#top .res .tag { font: 500 14px var(--font-b); color: var(--dim); background: none; box-shadow: none; padding: 0; letter-spacing: 0; text-transform: none; }
html #top .top-sfx, html #top .top-loc { position: static; margin: 0; }
#top .top-sfx:first-of-type { margin-left: 8px; }
/* sound and language: quiet text buttons */
.sfx-btn { width: 36px; height: 36px; border: 0 !important; border-radius: var(--rad); background: none !important; color: var(--dim) !important; clip-path: none !important; box-shadow: none !important; transition: box-shadow .2s; }
.sfx-btn.on { color: var(--ink) !important; }
.sfx-btn:hover { color: var(--strong) !important; box-shadow: var(--soft) !important; }
.loc-btn, .loc-btn.loc-lang, .loc-btn.loc-cur { height: 36px; padding: 0 10px; border: 0 !important; border-radius: var(--rad); clip-path: none !important; background: none !important;
  color: var(--dim) !important; box-shadow: none !important; font: 700 14px/1 var(--font-b) !important; letter-spacing: 0.02em; text-transform: none; transition: box-shadow .2s; }
.loc-btn:hover { color: var(--strong) !important; box-shadow: var(--soft) !important; }
.loc-btn i { color: inherit !important; }
#loc-menu { background: var(--panel2); border: 0; border-radius: 10px; box-shadow: var(--lift); padding: 16px; }
#loc-menu .loc-h { font: 700 14px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
#loc-menu button { border: 0 !important; border-radius: var(--rad); padding: 8px 10px; color: var(--text2); background: var(--tint); transition: box-shadow .2s; }
#loc-menu button:hover { box-shadow: var(--soft); color: var(--strong); }
#loc-menu button.on { background: var(--cyan) !important; color: var(--on-acc) !important; }
.vol-pop { background: var(--panel2); border: 0; border-radius: 10px; box-shadow: var(--lift); }

/* the Menu button (theme.js): top right, over the bar */
.tk-menu-btn { position: fixed; top: 0; right: calc(var(--gut) - 14px); z-index: 330; height: var(--bar); display: inline-flex; align-items: center; gap: 12px;
  padding: 0 14px; border: 0; background: none; color: var(--ink); font: 700 17px/1 var(--font-b); cursor: pointer; }
.tk-menu-btn span { padding: 10px 0; }
.tk-menu-btn i { width: 24px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) top / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) bottom / 100% 3px no-repeat; }
.tk-menu-open .tk-menu-btn i { height: 3px; background: var(--ink); }
.tk-menu-btn:hover { text-shadow: 0 4px 18px var(--shade); }
.tk-menu-btn[hidden] { display: none; }
body[data-route="fight"]:not(.tk-menu-open) .tk-menu-btn { display: none; }
.tk-menu-open .chat-fab, .tk-menu-open .chat { display: none; }

/* the menu: a full-screen index of every area, in film-title type, three columns */
html #nav { position: fixed; inset: 0; z-index: 320; display: none; height: auto; width: auto; overflow-y: auto; border: 0; padding: calc(var(--bar) + 28px) 64px 48px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), var(--bg) 70%), url('/assets/img/lp_fight_wide.jpg') center / cover var(--bg);
  columns: 3; column-gap: 56px; }
.tk-menu-open #nav { display: block; }
.tk-menu-open { overflow: hidden; }
.tk-menu-open #top { z-index: 325; background: transparent; }
.tk-menu-open #top .res, .tk-menu-open #top .top-sfx, .tk-menu-open #top .top-loc { visibility: hidden; }
#nav .nav-group { display: none; }
#nav > div[style] { display: none; }
html #nav .nav-item { display: block; break-inside: avoid; padding: 2px 0 14px; margin: 0; border: 0; background: none; box-shadow: none; clip-path: none;
  font: 400 clamp(32px, 3.4vw, 50px)/1 var(--font-f); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
#nav .nav-item .ic { display: none; }
#nav .nav-item:hover { background: none; color: var(--strong); text-shadow: 0 8px 26px var(--shade); }
html #nav .nav-item.on { color: var(--cyan); background: none; box-shadow: none; }
#nav .tk-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font: 400 15px/1.3 var(--font-b); text-transform: none; letter-spacing: 0; color: var(--dim); text-shadow: none; }
html #nav .nav-item .badge, html #nav .nav-item .tmr { position: static; margin: 0; padding: 0; background: none; border-radius: 0; font: 700 15px/1.3 var(--font-b); color: var(--cyan); }

html #nav .nav-item.fightnow { color: var(--cyan); background: none; box-shadow: none; padding-bottom: 22px; }
.nav-item.fightnow .ic { display: none; }

/* ---------- Main area ---------- */
html #main { padding: 36px var(--gut) 40px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; margin: 6px 0 34px; padding: 0; background: none; }
.page-head h1 { font-size: clamp(56px, 7.2vw, 112px); line-height: 0.9; color: var(--ink); }
.page-head p { margin: 14px 0 0; max-width: 720px; color: var(--dim); font-size: 18px; line-height: 1.45; }
.page-head .right { margin-left: auto; }

/* ---------- Surfaces: no frames, a slightly lighter black, soft corners ---------- */
.panel, .enemy, .cls-card, .role-card, .dlg, .tour-card, .auth-box, .chat, .reward, .ach, .card-item, .step, .st-row, .dly, .adm-card, .adm-stat, .fstat, .mrow, .tier, .pack, .topup, .tu-r {
  border: 0 !important; clip-path: none !important; border-radius: 10px; box-shadow: none; }
.panel { background: var(--panel); padding: 22px 24px; }
.panel::before, .panel::after, .panel.mag::before { content: none; display: none; }
.panel h3 { margin-bottom: 14px; }
.panel .panel { background: var(--tint); }
.grid { gap: 18px; }
.card-item, .reward, .st-row, .adm-stat, .fstat { background: var(--tint); }
.reward { padding: 14px 18px; font-family: var(--font-b); }
.reward b { font: 400 30px/1 var(--font-f); color: var(--ink); }
.hero { border: 0; border-radius: 10px; height: 300px; box-shadow: none; }
.hero .ovl { padding: 28px 32px; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 50%, transparent) 45%, transparent 75%); }
.hero h1 { font-size: clamp(48px, 6vw, 88px); text-shadow: none; }
.art { background-color: var(--art-bg); }
.art::after { font: 500 13px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--mute2); }

/* ---------- Buttons: plain text on a soft tint; the accent only for the move that matters ---------- */
.btn { font: 700 15px/1.2 var(--font-b); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--tint2); border: 0; border-radius: var(--rad);
  padding: 11px 18px; clip-path: none; box-shadow: none; text-shadow: none; filter: none; transition: box-shadow .2s, background-color .2s; }
.btn:hover { filter: none; color: var(--strong); background: var(--tint2); box-shadow: var(--soft); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn.sm { padding: 8px 13px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text2); box-shadow: none; }
.btn.ghost:hover { color: var(--strong); background: var(--tint); box-shadow: var(--soft); }
.btn.mag { background: var(--tint2); color: var(--ink); }
.btn.red { background: color-mix(in srgb, var(--red) 22%, transparent); color: var(--red-pale); }
.btn.red:hover { background: color-mix(in srgb, var(--red) 30%, transparent); color: var(--strong); }
.btn.red-t { color: var(--red-soft); }
.btn.yel, .btn.big, .lp-cta { background: var(--cyan); color: var(--on-acc); }
.btn.yel:hover, .btn.big:hover, .lp-cta:hover { background: var(--cyan); color: var(--on-acc); box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 55%, transparent); }
.btn.big { font: 400 26px/1 var(--font-f); text-transform: uppercase; letter-spacing: 0.02em; padding: 15px 26px; }
.btn.big.mag { background: var(--ink); color: var(--on-mag); }
.btn.big.red { background: var(--red); color: var(--strong); }
.btn[disabled], .btn[disabled]:hover, .btn.big[disabled] { background: var(--off-bg); color: var(--off-fg); box-shadow: none; cursor: not-allowed; }
.btn.on { background: var(--ink); color: var(--on-mag); }
.chat-fab { clip-path: none; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-mag); box-shadow: var(--lift); }

/* ---------- Inputs ---------- */
input, select, textarea { background: var(--input); color: var(--text); border: 0; border-radius: var(--rad); box-shadow: none; font: 400 16px var(--font-b); padding: 11px 13px; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 40%, transparent); border: 0; }
input[type=checkbox], input[type=radio] { box-shadow: none; background: none; accent-color: var(--cyan); padding: 0; }
input[type=range] { background: none; box-shadow: none; accent-color: var(--ink); padding: 0; }
label.small { color: var(--dim); }

/* ---------- Bars: thin warm-white lines ---------- */
.bar, .prog, .adm-bar { height: 4px; border: 0; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: none; }
.bar > i, .prog > i { background: var(--ink); box-shadow: none; border-radius: 2px; }
.bar.xp > i { background: var(--ink); }
.bar.hp > i { background: var(--ink); }
.bar.load > i { background: var(--ink); }
.bar.load.over > i { background: var(--red); }
.hpbar { height: 8px; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: none; overflow: visible; }
.hpbar > i, .hpbar > .hp-ghost { border-radius: 4px; box-shadow: none; }
.hpbar > i { background: var(--ink); }
.hpbar.mid > i { background: var(--yel); }
.hpbar.low > i { background: var(--red); }
.hpbar > .hp-ghost { background: color-mix(in srgb, var(--red) 55%, transparent); }
.hpbar span { font: 700 14px var(--font-b); text-shadow: none; color: var(--ink); letter-spacing: 0; }

/* ---------- Slots and items: film frames ---------- */
.slot { border: 0; border-radius: 6px; clip-path: none; background: var(--tint); box-shadow: none; transition: box-shadow .2s; }
.slot:hover { box-shadow: var(--soft); }
.slot.filled { box-shadow: inset 0 -3px 0 currentColor; background: var(--frame); }
.slot.implant { border: 0; }
.slot .ph { opacity: .18; color: var(--ink); }
.slot .lbl { font: 500 11px var(--font-b); letter-spacing: 0; text-transform: none; }
.slot .art { inset: 0; border-radius: 6px; }
.item { border: 0; border-radius: 6px; background: var(--frame); box-shadow: inset 0 -3px 0 currentColor; transition: box-shadow .2s; }
.item:hover { box-shadow: inset 0 -3px 0 currentColor, var(--soft); }
.item .art { inset: 0; border-radius: 6px; }
.item.empty { border: 0; background: var(--tint); box-shadow: none; }
.item .lv { font: 700 11px var(--font-b); }
.fslot.empty { border: 0; background: var(--tint); box-shadow: none; }
.portrait, .fportrait, .fighter .art { border: 0; border-radius: 10px; box-shadow: none; }
.portrait::before, .fportrait::before { content: none; }
.portrait .ovl { background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 92%, transparent)); }
.portrait .cls, .pinfo .cls { font: 500 16px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
.portrait .shutter { background: var(--deep); border: 0 !important; }
.portrait .scan { background: var(--ink); box-shadow: none; height: 2px; }
.portrait .refit-txt b { font: 400 40px var(--font-f); color: var(--ink); letter-spacing: 0.02em; }
.portrait .refit-txt span { font: 500 15px var(--font-b); color: var(--dim); }

/* ---------- Tabs, tags, choices ---------- */
.dist-tabs { gap: 8px; margin-bottom: 22px; }
.dist-tab { border: 0; border-radius: var(--rad); background: var(--tint); color: var(--text2); font: 700 15px var(--font-b); letter-spacing: 0; text-transform: none; padding: 10px 16px; box-shadow: none; clip-path: none; transition: box-shadow .2s; }
.dist-tab:hover { color: var(--strong); box-shadow: var(--soft); }
.dist-tab.on { background: var(--ink); color: var(--on-mag); box-shadow: none; }
.dist-tab.lock { opacity: .45; }
.seg { border: 0; border-radius: var(--rad); background: var(--tint); box-shadow: none; overflow: hidden; }
.seg button { font: 700 15px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); border-radius: 0; }
.seg button.on, .seg button.on.buy, .seg button.on.sell, .auth-tabs button.on, .auth-tabs button.on.buy { background: var(--ink); color: var(--on-mag); }
.chat-tab { font: 700 14px var(--font-b); letter-spacing: 0; text-transform: none; border: 0; border-radius: var(--rad); }
.chat-tab.on { background: var(--tint2); color: var(--ink); box-shadow: none; }
.tag { font: 600 13px var(--font-b); letter-spacing: 0; text-transform: none; border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
.diff { font: 700 14px var(--font-b); letter-spacing: 0; text-transform: none; }
.diff.ok { color: var(--text2); } .diff.hard { color: var(--yel); }
table.t { font-size: 15px; }
table.t th { font: 500 14px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); border: 0; padding: 10px; }
table.t td { border: 0; padding: 11px 10px; }
table.t tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
table.t tr.me td { background: color-mix(in srgb, var(--cyan) 14%, transparent) !important; color: var(--strong); }
.avatar { border: 0; border-radius: 6px; }

/* ---------- Dialogs, toasts, tooltips, hints ---------- */
.dlg-bg, .modal-bg { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.dlg { background: var(--panel2); padding: 30px 30px 24px; box-shadow: var(--lift); }
.dlg::before { content: none; }
.dlg h2 { font: 400 40px/0.95 var(--font-f); text-transform: uppercase; color: var(--ink); }
.dlg-k { font: 500 15px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
.dlg-m { color: var(--dim); }
.dlg-x { border: 0; background: none; color: var(--dim); border-radius: var(--rad); }
.dlg-x:hover { color: var(--strong); box-shadow: var(--soft); }
.dlg-note { border-left: 0; padding-left: 0; }
.mic { border: 0; border-radius: 6px; box-shadow: none; background: var(--tint); }
.toast-wrap { left: 50%; right: auto; bottom: 28px; translate: -50% 0; align-items: center; }
.toast { border: 0; border-radius: var(--rad); background: var(--panel2); color: var(--ink); font: 500 17px/1.35 var(--font-b); padding: 12px 18px; box-shadow: var(--lift); text-align: center; }
.toast.err { color: var(--red-pale); background: color-mix(in srgb, var(--red) 24%, var(--panel2)); }
#tip { border: 0; border-radius: 10px; background: var(--panel2); box-shadow: var(--lift); padding: 14px 16px; }
#tip .t { font: 700 17px var(--font-b); }
#tip .sub { font: 400 14px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
#tip .cmp { border-top: 0; color: var(--dim); }
.tut { border: 0; border-radius: var(--rad); background: var(--tint); box-shadow: none; }
.tut-hl { box-shadow: 0 0 0 2px var(--cyan) !important; }
.hint-bar { gap: 8px; margin: 0 0 22px; }
.hint { border: 0; border-radius: var(--rad); background: var(--tint); box-shadow: none; padding: 12px 16px; }
.hint-ic { display: none; }
.hint-t { color: var(--text2); }
.verify-bar { border: 0; border-radius: var(--rad); background: var(--tint); box-shadow: none; }
#cookie-bar { border: 0; border-radius: 10px; background: var(--panel2); box-shadow: var(--lift); }
#cookie-bar .cb-t b { font: 700 16px var(--font-b); text-transform: none; letter-spacing: 0; color: var(--ink); }
.tour-spot { border: 0; border-radius: 10px; box-shadow: 0 0 0 9999px color-mix(in srgb, var(--bg) 78%, transparent), 0 0 0 2px var(--cyan); }
.tour-card { background: var(--panel2); box-shadow: var(--lift); }
.tour-k { font: 500 14px var(--font-b); color: var(--dim); letter-spacing: 0; }
.tour-card h3 { font: 400 30px/1 var(--font-f); text-transform: uppercase; }
.loadout-bar { background: var(--tint); }
.first-win { border: 0; border-radius: var(--rad); background: var(--tint); }

/* footer inside the game: quiet */
#main .site-foot.in-game { margin: 64px 0 0; padding: 28px 0 10px; background: none; border: 0; }
.site-foot { border-top: 0; background: var(--deep); }
.sf-legal { border-top: 0; }

/* chat */
.chat { background: var(--panel2); box-shadow: var(--lift); }
.chat-hd { border: 0; }
.chat-in { border: 0; border-radius: var(--rad); background: var(--input); }
.chm-h { color: var(--ink); }
.chm.me .chm-h { color: var(--cyan); }
.chat-close { border: 0; background: none; color: var(--dim); }

/* =====================================================================================================================
   Tank screen (operative): the poster. theme.js builds .tk-poster from the core's parts (portrait, name, attributes, slots).
   ===================================================================================================================== */
body[data-route="operative"] #main { max-width: none; }
.tk-poster { position: relative; height: calc(100vh - var(--bar)); min-height: 640px; max-height: 1000px; margin: -36px calc(-1 * var(--gut)) 48px; overflow: hidden; background: var(--frame); }
.tk-shot { position: absolute; inset: 0; }
.tk-shot .portrait { position: absolute; right: -2%; top: -4%; width: 66%; height: 108%; min-height: 0; border-radius: 0; background-size: cover; background-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--shade) 32%); mask-image: linear-gradient(90deg, transparent 0, var(--shade) 32%); }
.tk-shot::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0, color-mix(in srgb, var(--bg) 55%, transparent) 38%, transparent 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent) 0, transparent 34%); }
.tk-shot .portrait .portrait-gear { left: auto; right: 8%; bottom: auto; top: 10%; translate: none; z-index: 5; animation: none; background: var(--cyan); color: var(--on-acc); }
.tk-poster > .tk-card { position: relative; z-index: 2; padding: 5vh 64px 0; width: min(700px, 54vw); }
.tk-name h2 { white-space: nowrap; font: 400 min(clamp(84px, 12vw, 184px), calc(50vw / (var(--len, 7) * 0.55))) / 0.88 var(--font-f) !important; color: var(--ink); text-transform: uppercase;
  letter-spacing: 0.005em; overflow-wrap: anywhere; }
.tk-tag { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 21px; color: var(--dim); }
.tk-tag .cls { font: 500 21px var(--font-b); color: var(--ink); }
.tk-tag .tk-lv b { color: var(--ink); font-weight: 600; }
/* attributes as film credits: big number, name under it, train button next to the number */
.tk-credits { margin-top: 30px; }
.tk-attrs.panel { background: none; padding: 0; border-radius: 0; }
.tk-attrs h3 { display: none; }
.tk-attrs { display: grid; grid-template-columns: repeat(3, max-content); gap: 18px 40px; }
.tk-attrs .stat-row { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "v btn cost" "nm nm nm"; justify-content: start; align-items: center; gap: 2px 8px;
  padding: 0; border: 0; }
.tk-attrs .stat-row .v { grid-area: v; min-width: 0; text-align: left; font: 400 46px/1 var(--font-f); color: var(--ink); }
.tk-attrs .stat-row .v em { font: 600 15px var(--font-b); color: var(--green); margin-left: 4px; vertical-align: top; }
.tk-attrs .stat-row .nm { grid-area: nm; font: 400 16px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
.tk-attrs .stat-row .nm small { display: none; }
.tk-attrs .stat-row .btn { grid-area: btn; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; font: 700 18px/30px var(--font-b); text-align: center; background: var(--tint2); }
.tk-attrs .stat-row .btn[disabled] { background: var(--tint); color: var(--mute2); }
.tk-attrs .stat-row .num.small { grid-area: cost; font: 500 14px var(--font-b); color: var(--dim) !important; }
.tk-cta { display: flex; gap: 12px; margin-top: 34px; align-items: stretch; }
.tk-go, .tk-alt { display: block; border-radius: var(--rad); padding: 16px 24px; text-decoration: none; transition: box-shadow .2s; }
.tk-go { background: var(--cyan); color: var(--on-acc); }
.tk-go b { display: block; font: 400 32px/1 var(--font-f); text-transform: uppercase; letter-spacing: 0.02em; }
.tk-go span { font: 500 15px var(--font-b); }
.tk-alt { background: var(--tint2); color: var(--ink); }
.tk-alt b { display: block; font: 700 17px/1.3 var(--font-b); }
.tk-alt span { color: var(--dim); font-size: 15px; }
.tk-go:hover, .tk-alt:hover { box-shadow: var(--lift); color: var(--ink); }
.tk-go:hover { color: var(--on-acc); }
/* the slots as a strip of film frames */
.tk-strip { position: absolute; z-index: 2; left: 64px; right: 64px; bottom: 26px; display: flex; gap: 10px; align-items: flex-end; }
.tk-fr { flex: 0 1 112px; min-width: 0; }
.tk-fr .slot { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.tk-fr .slot .art { position: absolute; inset: 0; }
.tk-fr-n { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-more { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 2px; margin-left: 14px; padding: 0 14px 20px; border: 0; border-radius: var(--rad);
  background: none; color: var(--ink); font: 700 16px var(--font-b); text-align: left; cursor: pointer; transition: box-shadow .2s; }
.tk-more span { font-weight: 500; color: var(--dim); }
.tk-more:hover { box-shadow: var(--soft); }
/* under the poster: the rest of the tank file */
body[data-route="operative"] #main > :not(.tk-poster):not(.site-foot) { max-width: 1420px; margin-left: auto; margin-right: auto; }
.tk-file .paperdoll { display: block; }
.tk-file .paperdoll > .slots { display: none; }
.tk-file .pinfo { padding: 0; }
.tk-file .pinfo .look { color: var(--dim); }
.op-syn, .op-syn.in { border: 0; border-radius: var(--rad); background: var(--tint); padding: 10px 14px; margin-top: 12px; }
.op-syn-name { font: 700 16px var(--font-b); letter-spacing: 0; color: var(--ink); }
.brief .starter { gap: 8px; }
.st-row { border-radius: 8px; padding: 12px 14px; }
.st-row .st-n { border: 0; border-radius: 50%; background: var(--tint2); box-shadow: none; font: 700 14px var(--font-b); color: var(--ink); }
.st-row.done .st-n { background: var(--cyan); color: var(--on-acc); }
.st-row .st-r { font: 500 14px var(--font-b); color: var(--dim); }
.stat-row { border-bottom: 0; }
.stat-row .nm { font: 600 16px var(--font-b); letter-spacing: 0; text-transform: none; }
.stat-row .v { font: 400 26px var(--font-f); }
.kv b { font: 600 15px var(--font-b); }

/* =====================================================================================================================
   Fight: the whole viewport is a letterboxed film frame. Names and HP in the top bar, the round in the middle,
   subtitle lines over the picture, big Aim / Maneuver / Fire controls in the bottom bar. The stage (the core square
   video scene with the cockpit) is scaled so the vision port fills the picture between the bars.
   ===================================================================================================================== */
body[data-route="fight"] { --ft: 112px; --fb: 214px; --H: 100vh; overflow: hidden; }
@supports (height: 100dvh) { body[data-route="fight"] { --H: 100dvh; } }
body[data-route="fight"] { --vis: calc(var(--H) - var(--ft) - var(--fb)); --S: min(100vw, calc(var(--vis) * 2));
  --T: calc(var(--ft) + var(--vis) / 2 - 0.42 * var(--S)); }
body[data-route="fight"] #top, body[data-route="fight"] .site-foot, body[data-route="fight"] .chat-fab, body[data-route="fight"] .verify-bar { display: none; }
body[data-route="fight"] #main { padding: 0; max-width: none; }
.fp { display: block; }
/* the cockpit picture is wider than the square stage: let it fill the sides of the frame (act 2, outside, keeps black sides) */
html .fp .fp-vid { overflow: visible; }
.fp-vid .fp-black { inset: 0 calc(50% - 50vw); }
/* the picture */
html .fp .fp-scene { position: fixed; z-index: 1; left: calc(50vw - var(--S) / 2); top: var(--T); width: var(--S); height: var(--S); max-width: none; aspect-ratio: auto; margin: 0; box-shadow: none; background: var(--deep); }
.fp-scene::after { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 46%, color-mix(in srgb, var(--shade) 50%, transparent)); }
html .fp-vid .fp-cap { z-index: 7; top: auto; bottom: calc(var(--T) + var(--S) - var(--H) + var(--fb) + 16px); width: min(780px, calc(100vw - 32px)); max-width: none; padding: 0; background: none;
  font: 500 23px/1.35 var(--font-b); color: var(--ink); text-shadow: 0 2px 4px var(--shade), 0 0 18px var(--shade); }
html .fp-vid .fp-cap .num { font-family: var(--font-b); font-weight: 700; color: var(--cyan); }
html .fp-vid .fp-load { bottom: calc(var(--T) + var(--S) - var(--H) + var(--fb) + 24px); border-radius: 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); font: 500 15px var(--font-b); }
.fp-load b { font-family: var(--font-b); color: var(--ink); }
.fp-load u { background: var(--cyan); }
.fp-title { transform: translateY(calc(-0.08 * var(--S))); }
.fp-title h2 { font: 400 clamp(40px, 6vw, 88px)/0.95 var(--font-f); letter-spacing: 0.01em; color: var(--ink); }
.fp-title h2 .sep { color: var(--dim); }
.fp-title p { font: 500 19px/1.45 var(--font-b); color: var(--dim); }
.fp-float { font-family: var(--font-f); font-weight: 400; color: var(--cyan); }
.fp-float span { font-family: var(--font-b); font-weight: 600; letter-spacing: 0; }
.fp-float.hurt b, .fp-res .fp-r.hurt b { color: var(--red-soft); }
.fp-float.crit b, .fp-res .fp-r.crit b { color: var(--cyan); }

/* top letterbox: me | round | the enemy */
html .fp .fp-hud { position: fixed; z-index: 5; left: 0; right: 0; top: 0; height: var(--ft); margin: 0; padding: 0 48px; border-radius: 0; background: var(--bg);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.fp-whos { display: contents; }
.fp-who.me { grid-column: 1; grid-row: 1; }
.fp-who.foe { grid-column: 3; grid-row: 1; }
.fp-top { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.fp-top h1 { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; font-size: 0; line-height: 1; }
.fp-top h1 > span:first-child { font: 500 15px/1.2 var(--font-b); text-transform: none; letter-spacing: 0; color: var(--dim); }
.fp-top h1 > span.mute { display: none; }
.fp-top h1 > span:last-child { font: 400 48px/1 var(--font-f); color: var(--ink); }
.fp-top > .small { font-size: 13px; color: var(--mute2); }
.fp-who { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "nm nm" "lv bar"; align-items: center; gap: 8px 16px; min-width: 0; }
.fp-n { display: contents; }
.fp-n b { grid-area: nm; font: 400 42px/1 var(--font-f); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-n span { grid-area: lv; font-size: 16px; color: var(--dim); }
html .fp-who .hpbar { grid-area: bar; position: relative; height: 6px; max-width: 280px; margin: 0 96px 0 0; border: 0; border-radius: 3px; overflow: visible;
  background: color-mix(in srgb, var(--ink) 16%, transparent); box-shadow: none; }
html .fp-who .hpbar > i, html .fp-who .hpbar > .hp-ghost { border-radius: 3px; }
html .fp-who .hpbar > i { background: var(--ink); }
html .fp-who .hpbar.mid > i { background: var(--yel); }
html .fp-who .hpbar.low > i { background: var(--red); }
html .fp-who .hpbar > span { position: absolute; top: 50%; right: -96px; width: 86px; translate: 0 -50%; text-align: left; font: 700 16px/1 var(--font-b); color: var(--ink); text-shadow: none; letter-spacing: 0; }
.fp-who.foe { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm nm" "bar lv"; text-align: right; }
html .fp-who.foe .hpbar { margin: 0 0 0 96px; justify-self: end; width: 100%; }
html .fp-who.foe .hpbar > i, html .fp-who.foe .hpbar > .hp-ghost { left: auto; right: 0; }
html .fp-who.foe .hpbar > span { right: auto; left: -96px; text-align: right; }

/* bottom letterbox: aim and maneuver rows, Fire, the small tools */
html .fp .fp-panel { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: var(--fb); margin: 0; padding: 18px 48px 16px; border-radius: 0; background: var(--bg);
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: auto auto 1fr; grid-template-areas: "atk fire" "blk fire" "tools tools"; gap: 10px 28px; align-content: start; }
.fp-row.atk { grid-area: atk; } .fp-row.blk { grid-area: blk; }
.fp-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 0 8px; }
.fp-row > .small { display: none; }
html .fp-rt { margin: 0; font: 400 26px/1 var(--font-f); letter-spacing: 0.01em; text-transform: uppercase; color: var(--dim); }
html .fp-row.atk .fp-rt, html .fp-row.blk .fp-rt { color: var(--dim); }
.fp-slots { gap: 8px; }
html .fp-slot { min-height: 60px; border-radius: 8px; background: var(--off-bg); color: var(--ink); font: 700 17px/1.15 var(--font-b); gap: 6px; transition: box-shadow .2s; }
html .fp-slot:hover:not([disabled]) { box-shadow: 0 8px 22px var(--shade); color: var(--strong); }
html .fp-row.atk .fp-slot.on, html .fp-row.blk .fp-slot.on { background: var(--cyan); color: var(--on-acc); }
.fp-dg i { border-radius: 1px; width: 7px; height: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
html .fp-row.atk .fp-dg i.in, html .fp-row.blk .fp-dg i.in { background: color-mix(in srgb, var(--ink) 60%, transparent); }
html .fp-slot.on .fp-dg i { background: color-mix(in srgb, var(--on-acc) 20%, transparent); }
html .fp-slot.on .fp-dg i.in { background: var(--on-acc); }
html .fp #fgo { grid-area: fire; height: 100%; min-height: 60px; width: 100%; border-radius: 8px; padding: 0; font: 400 50px/1 var(--font-f); letter-spacing: 0.03em; }
html .fp #fgo[disabled] { background: var(--off-bg); color: var(--mute2); }
.fp-tools { grid-area: tools; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 6px; }
.fp-tools .btn.sm { background: none; color: var(--dim); font: 500 15px var(--font-b); padding: 7px 10px; min-height: 0; }
.fp-tools .btn.sm:hover:not([disabled]) { color: var(--strong); box-shadow: var(--soft); }
.fp-tools .btn.sm[disabled] { color: var(--mute2); background: none; }
.fp-tools .tk-tool[data-tk="log"] { margin-left: auto; }
html .fp-tools .fp-heal { width: auto; color: var(--ink); background: var(--tint); }
.fp-panel .tut { position: fixed; z-index: 4; left: 50%; bottom: calc(var(--fb) + 14px); translate: -50% 0; width: max-content; max-width: min(760px, calc(100vw - 32px)); margin: 0;
  padding: 10px 16px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); font: 500 17px/1.4 var(--font-b); text-align: center; color: var(--ink); }
.fp-panel .tut b { color: var(--cyan); }
.fp.busy .fp-panel .tut { opacity: 0; }
html .fp .tut-hl { box-shadow: 0 0 0 2px var(--cyan) !important; border-radius: 8px; }
.fp-panel > .rules { display: none; }
/* the fight log: a drawer on the right (theme.js: Log button) */
html .fp .fp-log { position: fixed; z-index: 7; top: var(--ft); bottom: var(--fb); right: 0; width: min(460px, 100vw); margin: 0; padding: 22px 24px; border-radius: 10px 0 0 10px;
  background: var(--panel2); box-shadow: var(--lift); overflow-y: auto; translate: 105% 0; transition: translate .3s ease; }
.tk-log-open .fp .fp-log { translate: 0 0; }
.fp-log .tk-log-x { position: absolute; right: 16px; top: 16px; border: 0; background: none; color: var(--dim); font: 700 15px var(--font-b); cursor: pointer; padding: 6px 8px; border-radius: var(--rad); }
.fp-log .tk-log-x:hover { color: var(--strong); box-shadow: var(--soft); }
.fp-log h3 { margin-bottom: 12px; }
.fp-log .rules { margin: 18px 0 0; color: var(--dim); }
.lr { border: 0; }
.lr-h { font: 700 15px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); border: 0; }
.le { border-left: 0; padding-left: 0; }
.le .d { color: var(--cyan); }

@media (max-width: 760px) {
  body[data-route="fight"] { --ft: 92px; --fb: 304px; --S: min(100vw, calc(var(--vis) * 2)); }   /* Vova: always inside the tank, the cockpit frame stays on screen */
  html .fp .fp-hud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 16px 0; align-items: start; gap: 4px 16px; }
  .fp-top { position: fixed; left: 50%; top: calc(var(--ft) + 8px); translate: -50% 0; z-index: 6; text-shadow: 0 2px 10px var(--shade); }
  .fp-who.foe { grid-column: 2; }
  .fp-top h1 > span:last-child { font-size: 30px; }
  .fp-top h1 > span:first-child { font-size: 13px; color: var(--ink); }
  .fp-top > .small { display: none; }
  .fp-who, .fp-who.foe { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nm" "lv" "bar"; gap: 3px; }
  .fp-n b { font-size: 26px; }
  .fp-n span { font-size: 13px; }
  html .fp-who .hpbar, html .fp-who.foe .hpbar { margin: 4px 0 0; max-width: none; width: 100%; height: 5px; }
  html .fp-who .hpbar > span { top: -16px; right: 0; width: auto; translate: none; font-size: 13px; }
  html .fp-who.foe .hpbar > span { left: 0; right: auto; }
  html .fp-vid .fp-cap { font-size: 17px; }
  html .fp .fp-panel { padding: 12px 16px 14px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "atk" "blk" "fire" "tools"; gap: 10px; }
  .fp-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html .fp-rt { font-size: 18px; }
  .fp-slots { gap: 6px; }
  html .fp-slot { min-height: 52px; font-size: 14px; padding: 6px 2px; }
  html .fp #fgo { height: 58px; font-size: 36px; }
  .fp-tools { gap: 2px; }
  .fp-tools .btn.sm { font-size: 14px; padding: 6px 8px; }
  .fp-panel .tut { font-size: 15px; bottom: calc(var(--fb) + 10px); }
  html .fp .fp-log { top: 0; bottom: 0; width: 100vw; border-radius: 0; padding: 20px 16px; }
  .fp-title h2 { font-size: clamp(32px, 9vw, 48px); }
}

/* ---------- Phones: shell and poster ---------- */
@media (max-width: 760px) {
  html #main { padding: 22px var(--gut) 32px; }
  html #top { gap: 10px; padding: 0 100px 0 var(--gut); }   /* clear of the fixed Menu button (EN overlapped it) */
  #top .logo-img { height: 22px; }
  html #top .res { gap: 10px; }
  html #top .res .chip, html #top .res .chip .v, html #top .res .chip .k { font-size: 14px; }
  html #top .res .enchip, html #top .res .chip.sh, html #top .res .tag, html #top .top-sfx, html #top .top-loc.loc-cur { display: none; }
  html #top .res .chip.chip-link { align-items: center; min-height: 40px; padding: 0 6px; margin: -13px -6px; }   /* taps of 40 px (phone audit) */
  .loc-btn, .loc-btn.loc-lang, html #top .top-loc { height: 40px; min-width: 40px; justify-content: center; padding: 0 4px; }
  .site-foot a { display: inline-block; padding: 10px 0; }
  .tk-menu-btn { right: 2px; gap: 8px; padding: 0 10px 0 8px; font-size: 16px; }
  .tk-menu-btn i { width: 20px; height: 10px; }
  /* menu open: the resources come along as one line under the bar */
  .tk-menu-open #top .res { visibility: visible; position: absolute; left: var(--gut); right: var(--gut); top: var(--bar); margin: 0; padding: 0; width: auto; min-width: 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; }
  .tk-menu-open #top .res .enchip, .tk-menu-open #top .res .chip.sh { display: inline-flex; }
  .tk-menu-open #top .logo { visibility: hidden; }
  html #nav { columns: 2; column-gap: 20px; padding: calc(var(--bar) + 44px) var(--gut) 40px; }
  html #nav .nav-item { font-size: 27px; padding-bottom: 12px; }
  #nav .tk-sub { font-size: 13px; gap: 2px 8px; }
  html #nav .nav-item .badge, html #nav .nav-item .tmr { font-size: 13px; }
  .page-head { margin-bottom: 24px; }
  .page-head h1 { font-size: clamp(48px, 15vw, 72px); }
  .page-head p { font-size: 16px; }
  .panel { padding: 18px 16px; }

  .tk-poster { height: auto; min-height: 0; max-height: none; margin: -22px calc(-1 * var(--gut)) 32px; padding: 236px 0 22px; }
  .tk-shot { bottom: auto; height: 340px; }
  .tk-shot .portrait { left: 0; right: 0; top: 0; width: 100%; height: 100%; background-position: 50% 55%;
    -webkit-mask-image: linear-gradient(0deg, transparent 0, var(--shade) 42%); mask-image: linear-gradient(0deg, transparent 0, var(--shade) 42%); }
  .tk-shot::after { background: linear-gradient(0deg, var(--bg) 0, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 62%); }
  .tk-shot .portrait .portrait-gear { top: 12px; right: 12px; }
  .tk-poster > .tk-card { width: auto; padding: 0 var(--gut); }
  .tk-name h2 { font-size: min(96px, calc((100vw - 32px) / (var(--len, 7) * 0.55))) !important; }
  .tk-tag, .tk-tag .cls { font-size: 16px; }
  .tk-tag { margin-top: 8px; }
  .tk-credits { margin-top: 18px; }
  .tk-attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .tk-attrs .stat-row { gap: 2px 6px; }
  .tk-attrs .stat-row .v { font-size: 34px; }
  .tk-attrs .stat-row .btn { width: 28px; height: 28px; font-size: 16px; line-height: 28px; }
  .tk-attrs .stat-row .num.small { font-size: 12px; }
  .tk-attrs .stat-row .nm { font-size: 14px; }
  .tk-cta { margin-top: 20px; }
  .tk-go { flex: 1; padding: 14px 16px; }
  .tk-go b { font-size: 28px; }
  .tk-alt { flex: 1; padding: 14px 16px; }
  .tk-strip { position: static; margin: 22px var(--gut) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .tk-fr-n { font-size: 12px; }
  .tk-more { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; margin: 0; padding: 12px 14px; background: var(--tint); }
}

/* ---------- Small labels of the core: calm sentence case, the text face ---------- */
.p2p-lbl, .enemy .nm, .fhead, .zt, .intro-h, .cr-h, .lp-ch b, .fstat span, .adm-stat .k, .adm-card h4, .dly-d, .dly-it, .ach-t b, .set-h, .vol-pop .vp-h, .tk-label, .lp-title-sub, .lp-scroll,
.portrait .cls, #loc-menu .loc-h, .chip .k, .slot .lbl, #tip .sub, .lr-h, .stat-row .nm, .zb span, .tier .n, .lp-soon {
  font-family: var(--font-b); text-transform: none; letter-spacing: 0; }
.enemy .nm, .card-item .nm { font: 700 17px/1.25 var(--font-b); color: var(--ink); }
.tk-label { background: var(--ink); color: var(--on-mag); font-weight: 700; }
.ticker { border: 0; border-radius: var(--rad); background: var(--tint); }
.set-h { font: 700 15px var(--font-b); color: var(--ink); }
.dly { border: 0; border-radius: 8px; background: var(--tint); box-shadow: none; }
.dly-d { font: 600 13px var(--font-b); color: var(--dim); }
.dly-cr, .dly-sh { font: 400 22px/1 var(--font-f); color: var(--ink); }
.dly-cr span, .dly-sh span { font: 500 12px var(--font-b); color: var(--dim); }
.dly-it { font: 600 12px var(--font-b); color: var(--cyan); }
.dly.now { box-shadow: 0 0 0 2px var(--cyan); }
.dly.got { opacity: .55; }
.ach-t { border: 0; border-radius: 6px; background: var(--tint); }
.ach-t.on { background: var(--tint2); }
.ach-t b { font: 600 12px var(--font-b); }
.ach-ic { border: 0; border-radius: 8px; background: var(--tint); box-shadow: none; }
.enemy { background: var(--panel); overflow: hidden; }
.enemy .art { border-radius: 0; }
.enemy.boss { box-shadow: inset 0 -3px 0 var(--red); }
.fighter h3 { font: 400 34px/1 var(--font-f) !important; text-transform: uppercase; }
.vs { font: 400 56px/1 var(--font-f); color: var(--dim); text-shadow: none; }
.result-banner { font: 400 clamp(72px, 10vw, 150px)/0.9 var(--font-f); letter-spacing: 0.01em; margin: 10px 0 26px; }
.result-banner.w { color: var(--ink); text-shadow: none; }
.result-banner.l { color: var(--red-soft); text-shadow: none; }
.clog div, .clog .a, .clog .b { border-left: 0; padding-left: 0; }
.clog { font: 400 15px/1.6 var(--font-b); }
.clog .r { color: var(--mute2); }
.clog .crit { color: var(--cyan); }
.tier { background: var(--tint); }
.tier .n { border: 0; font: 400 26px/1 var(--font-f); }
.tier.reached .n { color: var(--cyan); }
.tier .cell.prem { border-top: 0; background: color-mix(in srgb, var(--ink) 4%, transparent); }
/* slot icons are emoji from the content (🪖 💥 🔫 📡 👥): coloured cartoon glyphs next to the plain ⚙ 🛡 ⛓ were a leftover of the
   old look; one neutral tone for all of them (HQ market tabs, Hangar empty slots, Market categories, the paper doll) */
.tk-tabs .ico, .tk-mod .ph, .slot .ph, a[href^="#market/"] > i { filter: grayscale(1) brightness(1.5) contrast(.9); opacity: .85; }
/* the season track fits its panel: rows of tiers instead of a strip scrolling sideways (3592 px inside a 1160 px panel) */
.tiers { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); overflow: visible; padding-bottom: 0; }
/* the Proving Ground list on phones: Class and Regiment columns off, so name, level, rating and Attack fit (it scrolled 536/358) */
@media (max-width: 760px) { table.t:has([data-act="atk"]) tr > :is(:nth-child(2), :nth-child(5)) { display: none; } table.t:has([data-act="atk"]) td, table.t:has([data-act="atk"]) th { padding-left: 6px; padding-right: 6px; }
  html table.t:has([data-act="atk"]) { min-width: 0; } table.t:has([data-act="atk"]) td .row { flex-wrap: wrap; row-gap: 2px; min-width: 0; } table.t:has([data-act="atk"]) td .row * { white-space: normal; overflow-wrap: anywhere; } }
/* phone taps: the small buttons grow to 40 px */
@media (max-width: 760px) { html #main .btn.sm { min-height: 40px; } }
@media (max-width: 760px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .tier .cell { padding: 8px 4px; } }
.pack .art { border: 0; border-radius: 8px; }
.pack .price { font: 400 34px/1 var(--font-f); color: var(--ink); }
.tu-bal { font: 400 44px/1 var(--font-f); color: var(--ink); }
.snd-row { border: 0; }
.mrow { border: 0; border-radius: 8px; background: none; }
.mrow:hover, .mrow:focus-visible { background: var(--tint); box-shadow: none; }
.mrow.unread::before { background: var(--cyan); }
.raid-hp { border: 0; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.raid-hpbar { background: var(--red); }
.loc-approx { color: var(--dim); }

/* ---------- Create (new tank) and the sign-up box ---------- */
.create { max-width: 1240px; padding: 48px var(--gut); }
.create > p.mute { font-size: 19px; }
.intro { border: 0; background: none; padding: 0; }
.intro-h { font: 400 clamp(34px, 4.4vw, 60px)/0.95 var(--font-f); text-transform: uppercase; color: var(--ink); text-align: center; margin: 34px 0 22px; }
.intro-steps { gap: 12px; }
.step { background: var(--panel); padding: 18px; }
.step > b { display: none; }
.step h4 { font: 400 26px/1 var(--font-f); text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--dim); }
.cr-h { margin: 42px 0 16px; font: 400 clamp(40px, 5vw, 72px)/0.95 var(--font-f); text-transform: uppercase; color: var(--ink); }
.cr-h b { display: none; }
.cr-h .mute { font: 400 18px var(--font-b); text-transform: none; margin-left: 12px; color: var(--dim); }
.cls-card, .role-card { background: var(--panel); overflow: hidden; transition: box-shadow .2s; }
.cls-card:hover, .role-card:hover { transform: none; box-shadow: var(--lift); }
.cls-card.on, .role-card.on { box-shadow: 0 0 0 2px var(--cyan); }
.cls-card .b h3, .role-card h3 { font: 400 30px/1 var(--font-f); text-transform: uppercase; }
.cls-card .art { border-radius: 0; }
.role-card { padding: 18px; }
.auth-box { background: var(--panel2); padding: 26px; box-shadow: var(--lift); }
.auth-box h3 { font: 400 34px/1 var(--font-f); text-transform: uppercase; }
.auth-tabs { margin-bottom: 6px; }

/* ---------- Landing: a film's poster, then its scenes ---------- */
.lp2 .lp-top, .lp-top { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent), transparent); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0 var(--gut); height: var(--bar); gap: 8px; }
/* past the poster the bar turns into the game's own top bar (solid, as #top in the app): the section titles no longer run
   under the logo (scroll-driven; browsers without it keep the fade) */
@keyframes lpTopSolid { to { background: var(--bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); } }
@supports (animation-timeline: scroll()) {
  body:has(.lp2) { scroll-timeline: --lpScroll block; }   /* the body is what scrolls here, not the root */
  html body:has(.lp2) { timeline-scope: --lpScroll; }
  .lp2 .lp-top { animation: lpTopSolid linear both; animation-timeline: --lpScroll; animation-range: 40vh 70vh; }
}
@media (max-width: 760px) {   /* phone taps of the bar: 40 px, as in the game's bar */
  html .lp2 .lp-top .lp-music, html .lp2 .lp-top .loc-btn { height: 40px; min-width: 40px; }
  html .lp2 .lp-top .btn { min-height: 40px; }
}
.lp2 .lp-top .logo .logo-img { height: 28px; }
.lp2 .lp-top .btn { height: auto; padding: 10px 16px; font-size: 15px; }
.lp2 .lp-top .btn.ghost { color: var(--ink); }
.lp2 .lp-top [data-go="register"] { background: var(--cyan); color: var(--on-acc); }
.lp-hero3 .lp-shade { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0, color-mix(in srgb, var(--bg) 40%, transparent) 42%, transparent 70%),
  linear-gradient(0deg, var(--bg) 0, transparent 40%); }
.lp2 .lp-hero3 .lp-hero-text { top: auto; bottom: 9vh; translate: none; left: var(--gut); max-width: min(820px, 64vw); padding: 0; background: none; box-shadow: none; }
.lp-hero-text .kicker { font: 500 18px var(--font-b); color: var(--dim); }
.lp2 .lp-hero3 .lp-hero-text h1 { font: 400 clamp(64px, 8.4vw, 136px)/0.88 var(--font-f); letter-spacing: 0.005em; text-transform: uppercase; margin: 12px 0 22px; text-shadow: none; }
.lp2 .lp-hero3 .lp-hero-text p { font-size: 19px; color: var(--text2); max-width: 600px; }
.lp-hero-text .lp-cta { min-width: 260px; }
.lp-hero-text .row .small { color: var(--dim); }
.lp-scroll { font: 500 14px var(--font-b); color: var(--dim); }
.lp-title-line { background: var(--ink); height: 2px; }
.lp-title-sub { font: 500 18px var(--font-b); color: var(--dim); }

.tk-sec { position: relative; max-width: 1360px; margin: 140px auto 0; padding: 0 var(--gut); }
.tk-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 40px; }
.tk-head .lp-h { margin: 0; font-size: clamp(56px, 7.4vw, 120px); line-height: 0.9; }
.tk-head .lp-p { margin: 0; max-width: 560px; color: var(--dim); font-size: 19px; line-height: 1.5; }
.tk-sec .small { color: var(--dim); font-size: 15px; }
/* the duel in three stills */
.tk-duel-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tk-step { display: flex; flex-direction: column; gap: 10px; }
.tk-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--frame); }
.tk-frame > .art { position: absolute; inset: 0; background-position: center 40%; }
.tk-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 40%); }
.tk-frame .tk-ret { display: none; }
.tk-frame .tk-ro { position: absolute; z-index: 2; left: 20px; bottom: 14px; font: 400 64px/1 var(--font-f); color: var(--ink); letter-spacing: 0.01em; }
.tk-step b { font: 700 21px/1.3 var(--font-b); color: var(--ink); margin-top: 8px; }
.tk-step p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
/* hulls: the cast */
.tk-hulls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.tk-card { display: flex; flex-direction: column; gap: 10px; }
.tk-card > .art { aspect-ratio: 4 / 3; border-radius: 6px; background-position: center 55%; }
.tk-card-t { display: flex; flex-direction: column; gap: 4px; }
.tk-card-t b { font: 400 44px/1 var(--font-f); text-transform: uppercase; color: var(--ink); }
.tk-card-t .tk-type { font: 600 15px var(--font-b); color: var(--dim); }
.tk-card-t p { margin: 4px 0 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
/* fronts: the locations */
.tk-route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tk-stop { display: flex; flex-direction: column; gap: 6px; }
.tk-stop-img { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.tk-stop-img > .art { position: absolute; inset: 0; }
.tk-stop b { font: 400 30px/1 var(--font-f); text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.tk-stop .tk-lvl { font: 600 15px var(--font-b); color: var(--dim); }
.tk-stop p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--dim); }
/* targets: wanted posters without the frame */
.tk-targets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tk-target { display: flex; flex-direction: column; gap: 6px; }
.tk-target-img { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.tk-target-img > .art { position: absolute; inset: 0; background-position: center top; }
.tk-target-t { display: flex; flex-direction: column; gap: 4px; }
.tk-target-t b { font: 400 30px/1 var(--font-f); text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.tk-threat { display: flex; align-items: center; gap: 10px; font: 500 14px var(--font-b); color: var(--dim); }
.tk-threat i { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(var(--red), var(--red)) left / var(--t) 100% no-repeat, color-mix(in srgb, var(--ink) 14%, transparent); }
/* regiments: names as opening credits */
.tk-regs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 34px; }
.tk-reg { display: block; }
.tk-reg .tk-ins { display: none; }
.tk-reg > div { display: flex; flex-direction: column; gap: 8px; }
.tk-reg b { font: 400 40px/0.95 var(--font-f); text-transform: uppercase; color: var(--ink); }
.tk-regs-cta .btn { background: var(--tint2); color: var(--ink); }
/* the last scene */
.tk-final { max-width: none; padding: 0; margin: 150px 0 0; }
.tk-final-in { position: relative; min-height: 78vh; display: grid; align-items: end; padding: 0 var(--gut) 9vh; overflow: hidden; }
.tk-final-in > .art { position: absolute; inset: 0; background-position: center 30%; }
.tk-final-in::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--bg) 0, color-mix(in srgb, var(--bg) 55%, transparent) 45%, color-mix(in srgb, var(--bg) 20%, transparent) 75%, var(--bg)); }
.tk-final-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 900px; }
.tk-final-c .lp-h { margin: 0; font-size: clamp(64px, 9vw, 150px); line-height: 0.88; }
.tk-final-c .lp-p { margin: 0; color: var(--text2); font-size: 19px; }
.tk-final-c .lp-cta { min-width: min(320px, 100%); }
.lp2 + .site-foot, .landing .site-foot { margin-top: 0; }

@media (max-width: 1100px) {
  .tk-hulls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-route, .tk-targets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-regs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lp2 .lp-top .logo .logo-img { height: 22px; }
  .lp2 .lp-top .btn { padding: 9px 12px; font-size: 14px; }
  .lp2 .lp-hero3 .lp-hero-text { left: var(--gut); right: var(--gut); bottom: 28px; max-width: none; }
  .lp2 .lp-hero3 .lp-hero-text h1 { font-size: clamp(40px, 11.5vw, 58px); line-height: 0.96; margin: 8px 0 14px; }
  .lp2 .lp-hero3 .lp-hero-text p { font-size: 16px; }
  .lp-hero-text .lp-cta { width: 100%; }
  .lp-hero3 .lp-shade { background: linear-gradient(0deg, var(--bg) 0, color-mix(in srgb, var(--bg) 85%, transparent) 40%, transparent 70%); }
  .tk-sec { margin-top: 90px; }
  .tk-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
  .tk-head .lp-h { font-size: clamp(48px, 14vw, 72px); }
  .tk-head .lp-p { font-size: 16px; }
  .tk-duel-g { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tk-frame { aspect-ratio: 4 / 3; }
  .tk-frame .tk-ro { font-size: 48px; }
  .tk-hulls { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tk-card-t b { font-size: 38px; }
  .tk-route, .tk-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .tk-stop b, .tk-target-t b { font-size: 24px; }
  .tk-target:last-child:nth-child(odd), .tk-stop:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tk-target:last-child:nth-child(odd) .tk-target-img, .tk-stop:last-child:nth-child(odd) .tk-stop-img { aspect-ratio: 16 / 10; }
  .tk-regs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tk-reg b { font-size: 34px; }
  .tk-final-in { min-height: 70vh; padding-bottom: 40px; }
  .tk-final-c .lp-h { font-size: clamp(48px, 14vw, 72px); }
  .tk-final-c .lp-cta { width: 100%; }
  .create { padding: 28px var(--gut); }
  .intro-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fight: sector rule controls, the outside camera across the whole frame, a heavy Fire button ---------- */
/* five sectors per row (the core grid has four columns) */
.fp-slots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
/* act 2 (outside camera): the clip covers the whole picture between the bars, edge to edge, like the cockpit view */
html .fp-vid.fp-out .fp-win { left: calc(50% - 50vw) !important; top: calc(var(--ft) - var(--T)) !important; width: 100vw !important; height: var(--vis) !important; }
html .fp-vid.fp-out .fp-v { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
/* Fire: a matte signal-yellow push button in an even dark-steel bezel. The face (::before) sits centred with the same
   gap on all four sides; its bottom lip gives the depth. Pressed: the face goes down 2px and the lip shrinks. */
html .fp #fgo { position: relative; isolation: isolate; height: 100%; width: 100%; margin: 0; padding: 0 0 4px; border: 0; border-radius: 12px; overflow: hidden;
  color: #241a06; text-shadow: none; background: linear-gradient(#3b3834, #262420); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 3px 8px rgba(0, 0, 0, .45);
  transform: none; transition: padding .06s ease; }
html .fp #fgo::before { content: ''; position: absolute; z-index: -1; inset: 9px 9px 13px; border-radius: 7px;
  background: linear-gradient(#e6b947, #d8a734); box-shadow: inset 0 1px 0 rgba(255, 240, 200, .45), 0 4px 0 #8d6519, 0 5px 2px rgba(0, 0, 0, .35);
  transition: transform .06s ease, box-shadow .06s ease; }
html .fp #fgo:hover:not([disabled])::before { background: linear-gradient(#ecc254, #ddad3a); }
html .fp #fgo:hover:not([disabled]) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 5px 14px rgba(0, 0, 0, .55); }
html .fp #fgo:active:not([disabled]) { padding-top: 4px; padding-bottom: 0; }
html .fp #fgo:active:not([disabled])::before { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 240, 200, .3), 0 2px 0 #8d6519, 0 2px 1px rgba(0, 0, 0, .35); }
html .fp #fgo[disabled] { color: #6c665b; background: linear-gradient(#3b3834, #262420); }
html .fp #fgo[disabled]::before { transform: translateY(2px); background: linear-gradient(#3e3b36, #34322d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 #1d1b18, 0 2px 1px rgba(0, 0, 0, .35); }
html .fp.busy #fgo[disabled] { color: #2e2208; padding-top: 4px; padding-bottom: 0; }
html .fp.busy #fgo[disabled]::before { background: linear-gradient(#a8873a, #9a7a30); box-shadow: inset 0 1px 0 rgba(255, 240, 200, .2), 0 2px 0 #5f4512, 0 2px 1px rgba(0, 0, 0, .35); }
@media (max-width: 760px) {
  html .fp #fgo { height: 62px; font-size: 34px; }
  html .fp #fgo::before { inset: 7px 7px 11px; }
  .fp-slots { gap: 4px; }
  html .fp-slot { font-size: 13px; padding: 6px 1px; }
}

/* still-picture scene: the whole finished frame (16:9) sits in the film frame between the bars, never cropped */
html body[data-route="fight"] .fp-sout { position: fixed; left: 0; width: 100vw; top: var(--ft); height: var(--vis); background: var(--bg); }
html body[data-route="fight"] .fp-sout img { object-fit: cover; object-position: 50% 52%; }   /* full width (Vova); the band from the horizon to our tracks stays in view */
html body[data-route="fight"] .fp-sout img.res, html body[data-route="fight"] .fp-sout video.res { object-position: 50% 24%; }   /* our shot's result, full frame: the enemy on the horizon stays in view */

/* Steel Verdict hero (Vova 2026-11-26: nothing like the earlier games): a real fight frame full-bleed, the drawn logo in
   the middle, one line and the two buttons. The core's video hero is not used on this site. */
.lp2 .lp-hero3, .lp2 .lp-scroll { display: none; }
.sv-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.sv-bg, .sv-bg .art { position: absolute; inset: 0; }
.sv-bg .art { background-size: cover; background-position: 50% 45%; animation: svDrift 26s ease-in-out infinite alternate; }
@keyframes svDrift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
@media (prefers-reduced-motion: reduce) { .sv-bg .art { animation: none; } }
.sv-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--bg) 35%, transparent) 0, color-mix(in srgb, var(--bg) 62%, transparent) 55%, var(--bg) 100%),
  linear-gradient(0deg, var(--bg) 0, transparent 30%); }
.sv-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 96px var(--gut) 64px; text-align: center; }
.sv-logo { width: min(640px, 82vw); height: auto; filter: drop-shadow(0 18px 40px var(--shade)); }
.sv-line { margin: 0; font: 500 clamp(19px, 2vw, 24px)/1.4 var(--font-b); color: var(--ink); text-shadow: 0 2px 12px var(--shade); }
.sv-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sv-cta .btn { min-width: 220px; }
.sv-note { color: var(--dim); text-shadow: 0 1px 6px var(--shade); }
@media (max-width: 640px) {
  .sv-in { gap: 18px; padding: 88px 20px 40px; }
  .sv-cta { flex-direction: column; width: 100%; }
  .sv-cta .btn { width: 100%; min-width: 0; }
}

/* Music / sound switches on the fight screen (Vova 2026-11-27: at the bottom they fell below a laptop screen):
   stacked in the right margin of the fixed fight header, always in sight. Phones: under the header, top right. */
.fp-snd { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 4px; z-index: 7; }
.fp-snd .sfx-btn { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .fp-snd { position: fixed; top: calc(var(--ft) + 8px); right: 8px; translate: none; flex-direction: row; }
}

/* =====================================================================================================================
   The cabin fight (ui.fpCab; Vova's approved mockup proto/ui-mockups/hangar/fight.html ?ui=c). While choosing, one 2:1
   photograph of the cabin per turret position fills the frame under the header, the gunner's stadia scale and sight mark
   in its glass; the HUD ring (aim + maneuver) lies over the picture bottom left, FIRE and three icon actions bottom right.
   Phones: the picture under the header, the ring and FIRE side by side under it. The acts (black, shot, result) as before.
   ===================================================================================================================== */
body[data-route="fight"]:has(.fp-cabin) { --fb: 0px; --one-h: calc(var(--S) / 2); --one-t: calc(var(--ft) + (var(--vis) - var(--one-h)) / 2); }
.fp-one { display: none; }
.fp-scene.one .fp-one { display: block; position: fixed; z-index: 1; left: calc(50vw - var(--S) / 2); top: var(--one-t); width: var(--S); height: var(--one-h); background: #0d0c0b; }
.fp-scene.one .fp-cam, .fp-scene.one .fp-still { visibility: hidden; }
.fp-scene.one::after { opacity: 0; }
.fp-one > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-port { position: absolute; left: 17.08%; right: 16.91%; top: 8.82%; bottom: 16.94%; cursor: crosshair;   /* no box of its own: the glass mask shapes what is in it */
  color: #ffcf5c; font-family: 'Share Tech Mono', 'PT Mono', ui-monospace, monospace; text-shadow: 0 0 6px rgba(0, 0, 0, .8); }
.fp-scale { position: absolute; left: 0; right: 0; top: 9%; height: 44px; }
.fp-scale .ln { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: currentColor; opacity: .75; }
.fp-scale .tk { position: absolute; top: 14px; width: 2px; height: 18px; background: currentColor; translate: -1px 0; transition: left .35s ease; }
.fp-scale .tk.s { top: 18px; height: 10px; opacity: .7; }
.fp-scale .lb { position: absolute; top: -6px; translate: -50% 0; font-size: 15px; font-weight: 400; transition: left .35s ease; }
.fp-scale .lb.on { color: #fff; }
.fp-scale .fp-sec { position: absolute; top: -30px; bottom: -60px; width: 8.6%; transition: left .35s ease; }
.fp-scale .fp-sec:hover { background: rgba(255, 207, 92, .06); }
.fp-mark { position: absolute; left: 50%; top: calc(24% - 26px); translate: -50% 0; pointer-events: none; }
.fp-mark svg { display: block; overflow: visible; }

/* the controls over the picture */
html .fp-cabin .fp-panel { position: fixed; z-index: 5; left: calc(50vw - var(--S) / 2); top: var(--one-t); width: var(--S); height: var(--one-h); bottom: auto;
  display: block; padding: 0; background: none; pointer-events: none; }
.fp-cabin .fp-panel > * { pointer-events: auto; transition: opacity .3s ease; }
.fp-cabin.busy .fp-panel > .fp-ringp, .fp-cabin.busy .fp-panel > .fp-fire { opacity: 0; pointer-events: none; }
.fp-ringp, .fp-fire { position: absolute; bottom: 4%; width: 16.6%; }
.fp-ringp { left: 1.2%; background: rgba(12, 12, 10, .88); border-radius: 12px; padding: 10px 12px 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
html .fp-ringp.fp-row { display: block; }
.fp-ringp h5 { margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px;
  font: 400 16px/1.1 var(--font-f), 'Oswald', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.fp-ringp h5 .rh { font: 700 12px/1.2 var(--font-b); letter-spacing: 0; text-transform: none; color: var(--cyan); }
.fp-ring { display: block; width: 100%; }
.fp-ring image { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.fp-ring .tur { transition: transform .4s cubic-bezier(.35, .05, .3, 1); }   /* = the panorama's main move (cabPan) and the scale: they turn together */
.fp-ring .rb { fill: #151513; } .fp-ring .ri { fill: #0f0f0d; }
.fp-ring .seg { fill: #26261f; stroke: #0c0c0a; stroke-width: 2; cursor: pointer; } .fp-ring .seg:hover { fill: #33332a; }
.fp-ring .seg.on { fill: #f2c14e; }
.fp-ring .lb { font: 400 15px 'Share Tech Mono', 'PT Mono', ui-monospace, monospace; fill: #8a8577; text-anchor: middle; pointer-events: none; }
.fp-ring .lb.on { fill: #1d1404; }
.fp-ring .chev { cursor: pointer; }
.fp-mv { display: none; }   /* phones only (the maneuver row) */
.fp-ring .chev rect { fill: #1d1d1a; } .fp-ring .chev:hover rect { fill: #26261f; }
.fp-ring .chev.on rect { fill: #f2c14e; }
.fp-ring .chev text { font: 400 18px var(--font-f), 'Oswald', sans-serif; fill: #9d978a; text-anchor: middle; pointer-events: none; } .fp-ring .chev.on text { fill: #1d1404; }
.fp-fire { right: 1.2%; display: flex; flex-direction: column; gap: 8px; }
html .fp-cabin #fgo { height: 84px; min-height: 0; font-size: 40px; }
.fp-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fp-acts button { border: 0; border-radius: 8px; background: rgba(12, 12, 10, .88); color: #cfc9bd; font: 600 12px/1.2 var(--font-b); padding: 8px 4px 7px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-align: center; }
.fp-acts button:hover:not([disabled]) { box-shadow: var(--soft); color: #fff; }
.fp-acts button b { color: var(--cyan); }
.fp-acts button[disabled] { opacity: .45; cursor: default; }
.fp-acts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fp-acts .give { color: #e59a8b; }
/* header icons: log, music, sound, menu in one row at the top right */
.fp-cabin .fp-snd { flex-direction: row; right: 16px; gap: 6px; }
.fp-snd .tk-ico { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--dim); }
.fp-snd .tk-ico:hover { color: var(--strong); box-shadow: var(--soft); }
.fp-snd .tk-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html .fp-cabin .fp-hud { padding-right: 190px; }
/* the typed opening of our shot (Vova: like the Terminator titles) */
.fp-title.typed { transform: none; text-align: left; }
.fp-type { font: 400 clamp(20px, 2.4vw, 34px)/1.5 'Share Tech Mono', 'PT Mono', ui-monospace, 'Courier New', monospace; letter-spacing: .08em; text-transform: uppercase; color: #e8e2d4; }
/* the black of the acts covers the whole picture area, not only the square stage (the cabin rim showed around it on phones) */
.fp-cabin .fp-black { position: fixed; inset: var(--ft) 0 var(--fb) 0; }
.fp-type div:last-child::after { content: '_'; animation: fpCaret .8s steps(1) infinite; }
@keyframes fpCaret { 50% { opacity: 0; } }
/* all title cards of the cabin fight typed alike: the heading amber, the explanation a smaller typed line under it */
.fp-type > div:first-child { color: var(--cyan); }
.fp-type.card { max-width: min(900px, 88vw); }
.fp-type.card .p { margin-top: 12px; font-size: clamp(14px, 1.45vw, 20px); line-height: 1.55; letter-spacing: .03em; text-transform: none; color: #d6d0c3; }
/* the exact glass opening, measured on the photos (proto/ui-mockups/hangar/cab_glassmask.py): inside the thin lip of the chrome rim,
   a different elliptical radius in each corner (Vova: the rounded-rect clip showed a second corner inside the rim) */
.fp-glass { position: absolute; inset: 0; z-index: 1; pointer-events: none; -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the turn (Vova: "it just swaps pictures"): .fp-view pans two gun-free frames inside the glass, the gun (fp_gun.png, cut from
   the photo) lies still over them; visibility and opacities are set inline by cabTurn(), nothing stays after the turn */
.fp-view { position: absolute; inset: 0; z-index: 2; pointer-events: none; -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity, filter;
  -webkit-mask: url("/assets/img/fp_glass_in.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_in.png?v=3") 0 0 / 100% 100% no-repeat; }   /* the view only, never a frame's own rim or bevel; the mask slides with the frame */
.fp-view img.gun { z-index: 3; inset: auto; left: 45.833%; top: 52.604%; width: 8.854%; height: 30.729%; -webkit-mask: none; mask: none; will-change: auto; }   /* its box in the frame (cab_gun.py) */
.fp-port { z-index: 3; }
/* the glass after hits (dmgSync, layers by proto/ui-mockups/hangar/glass_layers.py, already cut to the glass): a warm heat tint,
   soot along the bottom, dust, mud thrown on from outside, a wisp of smoke; all scale with --dmg; only on the planning screen */
.fp-dmg { --dmg: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .5s ease;
  -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-cabin.busy .fp-dmg { opacity: 0; }
.fp-dmg::before { content: ""; position: absolute; inset: 0; background: rgb(214, 168, 64); mix-blend-mode: multiply; opacity: calc(var(--dmg) * .22 + clamp(0, var(--lost, 0) - .6, .3) * .6); }   /* yellowed by the heat, more at high damage */
.fp-dmg i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.fp-dmg .soot { background-image: url("/assets/img/fp_dmg_soot.png?v=1"); opacity: var(--dmg); }
.fp-dmg .dust { background-image: url("/assets/img/fp_dmg_dust.png?v=1"); opacity: clamp(0, calc(var(--dmg) * 1.4), 1); }
.fp-dmg .smoke { background-image: url("/assets/img/fp_dmg_smoke.png?v=1"); opacity: clamp(0, calc(var(--dmg) * 1.3 - .1), 1); }
.fp-dmg .mud { background-image: url("/assets/img/fp_dmg_mud.png?v=2"); opacity: clamp(0, calc(var(--dmg) * 1.6 - .15), 1); }
.fp-dmg .milk { background-image: url("/assets/img/fp_dmg_milk.png?v=2"); mix-blend-mode: screen; opacity: clamp(0, calc((var(--lost, 0) - .45) * 2), .75); }   /* delamination, from ~50% lost, up to ~80% */
.fp-dmg .crack { display: none; background-image: url("/assets/img/fp_crack.png?v=2"); }   /* the generated crack in thick glass (proto/fp-test/cons/crack.py), from 60% HP lost */
.fp-dmg.cr .crack { display: block; }
/* the turn on ONE panorama (Vova: sliding between 5 photos "glitches"): the strip (fp_pano.jpg, proto/ui-mockups/hangar/cab_pano.py)
   slides inside the exact glass; the enemy is baked into it (cab_pano_foe.py), our gun stays in front. Hidden (not display:none: the
   strip keeps its size for the maths) until its pictures are decoded; then the 5 photos give way */
.fp-pano { position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; overflow: hidden;
  -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-one.pano .fp-pano { visibility: visible; }
.fp-one.pano .fp-glass, .fp-one.pano .fp-view, .fp-one.pano .fp-port .fp-amb .wisp { display: none; }
.fp-pano .strip { position: absolute; left: -16.204%; top: -17.11%; width: 132.407%; height: 108.333%; will-change: transform; }
.fp-pano .strip > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-pano .strip > img.pb { will-change: opacity; }
.fp-pano img.gun { position: absolute; left: 45.833%; top: 56.354%; width: 8.854%; height: 30.729%; }   /* fp_gun.png (cab_gun2.py), 36 px lower than in the photo: the collar goes on under the lip */
.fp-scale .tk, .fp-scale .lb, .fp-scale .fp-sec { transition: left .4s cubic-bezier(.35, .05, .3, 1); }   /* = 80 % of the 500 ms pan (cabPan) */
.fp-scale { clip-path: inset(-40px 0 -80px 0); }   /* marks of the far sectors slide past the glass edge: cut at the port sides (CAB_STEP 22.89) */
/* the life in the glass (Vova: "nothing moves"): the enemy's exhaust, dust in the air, haze, wind over the grass, the idle hull */
.fp-port .fp-amb { z-index: 0; overflow: hidden;   /* the whole picture as its box (port 17.08% / 8.82%, 66.01% x 74.24%), the glass mask on it */
  inset: auto; left: -25.875%; top: -11.88%; width: 151.49%; height: 134.70%;
  -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-port .fp-amb .haze { opacity: .4; top: 16.24%; height: 29.7%; }   /* the life layer is the picture box now (was 10% / 40% of the port) */
.fp-port .fp-amb .dust { opacity: .4; } .fp-port .fp-amb .dust.d2 { opacity: .35; }
.fp-port .fp-amb .wisp { top: 24%; width: 3.63%; height: auto; aspect-ratio: 1 / 2.4; transition: left .45s cubic-bezier(.25, .1, .2, 1); }
.fp-port .fp-amb .wisp::before, .fp-port .fp-amb .wisp::after { filter: blur(4px); background: radial-gradient(circle, rgba(52, 48, 44, .62), rgba(52, 48, 44, 0) 70%); }
.fp-amb .grass { position: absolute; left: -30%; right: -30%; top: 44.46%; bottom: 0; mix-blend-mode: soft-light; filter: blur(16px); opacity: .55;
  background: repeating-linear-gradient(62deg, transparent 0 120px, rgba(255, 230, 180, .35) 190px, transparent 260px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%);
  animation: fpGrass 9s linear infinite; }
@keyframes fpGrass { from { transform: translateX(0); } to { transform: translateX(-260px); } }
@media (prefers-reduced-motion: reduce) { .fp-amb .grass { animation: none; } }
/* the sides (Vova: the plating ends with an ugly edge, then grey bands): a blurred, darkened cabin fills the picture area
   behind, the photograph's edges fade into it */
.fp-oneb { display: none; }
.fp-scene.one .fp-oneb { display: block; position: fixed; z-index: 0; left: 0; right: 0; top: var(--ft); height: var(--vis); background: #0d0c0b center / cover no-repeat;
  filter: blur(26px) brightness(.42) saturate(.8); transform: scale(1.12); pointer-events: none; }
.fp-scene.one .fp-one { background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect; }
/* the fight entry (Vova 2026-11-29 "everything jerks"): while the battle loads (body.fp-pre, views-fight-fp.js) only the loading
   bar shows: the blurred poster, the cabin, the panels and the HUD wait hidden until the cabin's pictures are decoded and in place,
   then all of it fades in once (body.fp-in) */
body.fp-pre .fp-cabin > :not(.fp-scene), body.fp-pre .fp-cabin .fp-scene > :not(.fp-load) { opacity: 0 !important; }
body.fp-in .fp-cabin > :not(.fp-scene), body.fp-in .fp-cabin .fp-scene > :not(.fp-load):not(.fp-black):not(.fp-shade):not(.fp-cap) { animation: fpEnter .45s ease-out backwards; }
@keyframes fpEnter { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.fp-in .fp-cabin > *, body.fp-in .fp-cabin .fp-scene > * { animation: none !important; } }
/* the keyboard hint under the actions (desktop only) */
.fp-keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font: 500 11px/1.4 var(--font-b); color: #9d978a; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.fp-keys kbd { display: inline-block; min-width: 16px; margin-right: 2px; padding: 0 4px; border-radius: 4px; background: rgba(12, 12, 10, .88); color: #e8e2d4; font: 600 10px/16px var(--font-b); text-align: center; }
@media (hover: none), (max-width: 760px) { .fp-keys { display: none; } }
/* the fight header in the language of the console top bar (Vova: "still the old style"): our side and the enemy's in their own
   panels, the level as the amber chip, thick HP bars with the numbers inside (green: us, red-amber: the enemy), ROUND as a
   centred badge, the icons as the top bar's icon buttons */
/* Vova: the round and both sides centred on the screen axis: the icons on the right (176 px) are balanced by the game logo in
   an equally wide block on the left */
html body .fp-cabin .fp-hud::before { content: ""; display: block; border: 0; box-shadow: none; background-color: transparent; position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 160px; height: 64px;
  background: url("/assets/img/brand_logo.png?v=2") left center / contain no-repeat; pointer-events: none; }
@media (max-width: 760px) { html body .fp-cabin .fp-hud::before { display: none; } }
html .fp-cabin .fp-hud { padding: 10px 196px; gap: 16px; background: var(--surface); box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 50%, transparent); }
html .fp-cabin .fp-who { align-self: stretch; align-content: center; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm lv" "bar bar"; gap: 8px 12px;
  padding: 10px 16px 12px; border-radius: 12px; background: var(--panel); }
html .fp-cabin .fp-who.foe { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lv nm" "bar bar"; }
html .fp-cabin .fp-n b { font-size: 30px; }
html .fp-cabin .fp-n span { justify-self: start; padding: 4px 7px; border-radius: 4px; background: var(--cyan); color: var(--on-acc); font: 700 13px/1 var(--font-b); white-space: nowrap; }
html .fp-cabin .fp-who.foe .fp-n span { justify-self: start; }
html .fp-cabin .fp-who.foe .fp-n b { justify-self: end; }
html .fp-cabin .fp-who .hpbar { height: 20px; max-width: none; width: 100%; margin: 0; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .07); }
html .fp-cabin .fp-who .hpbar > i, html .fp-cabin .fp-who .hpbar > .hp-ghost { border-radius: 6px; }
html .fp-cabin .fp-who.me .hpbar > i { background: linear-gradient(180deg, #8fd16a, #5aa33c); }
html .fp-cabin .fp-who.me .hpbar.low > i { background: linear-gradient(180deg, #e0634f, #b23a2a); }
html .fp-cabin .fp-who.foe .hpbar > i { background: linear-gradient(90deg, #f2c14e, #d9542f); }
html .fp-cabin .fp-who .hpbar > span, html .fp-cabin .fp-who.foe .hpbar > span { position: absolute; inset: 0; left: 0; right: 0; top: 0; width: auto; translate: none; display: grid; place-items: center;
  font: 700 13px/1 var(--font-b); color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
html .fp-cabin .fp-top { align-self: center; padding: 8px 22px 9px; border-radius: 12px; background: var(--panel); gap: 2px; }
html .fp-cabin .fp-top h1 > span:last-child { font-size: 34px; }
html .fp-cabin .fp-top h1 > span:first-child { font-size: 13px; color: var(--cyan); }
html .fp-cabin .fp-top > .small { font-size: 11px; }

@media (max-width: 760px) {
  body[data-route="fight"]:has(.fp-cabin) { --fb: 290px; }   /* + the maneuver row (.fp-mv) */
  html .fp-cabin .fp-panel { top: auto; bottom: 0; left: 0; width: 100%; height: var(--fb); background: var(--bg); padding: 10px 12px 14px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; pointer-events: auto; }
  .fp-ringp, .fp-fire { position: static; width: auto; }
  .fp-scene.one .fp-one { transform: scale(1.4); transform-origin: 50.08% 45.94%; }   /* the glass as wide as the phone, the cabin rim cut off */
  html .fp-cabin .fp-ringp { grid-area: 1 / 1; } html .fp-cabin .fp-fire { grid-area: 1 / 2; }
  .fp-ringp { padding: 8px 10px 10px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
  .fp-ringp h5 { font-size: 14px; }
  .fp-ringp h5 .rh { font-size: 11px; }
  .fp-ring { max-height: 168px; }
  /* the maneuver as a row of real buttons across the phone (the ring's own chevrons are ~25x19 px there: too small to tap) */
  html .fp-cabin .fp-mv { display: flex; grid-area: 2 / 1 / 3 / 3; gap: 6px; }
  .fp-mv button { flex: 1; height: 44px; border: 0; border-radius: 10px; background: #1d1d1a; color: #9d978a; font: 400 20px var(--font-f), 'Oswald', sans-serif; cursor: pointer; }
  .fp-mv button.on { background: #f2c14e; color: #1d1404; }
  .fp-mv button:disabled { opacity: .5; }
  .fp-ring .chev { display: none; }
  .fp-snd .tk-ico, .fp-snd .sfx-btn { width: 40px; height: 40px; }
  .fp-log .tk-log-x { min-height: 40px; min-width: 40px; }
  html .fp-cabin #fgo { height: 92px; font-size: 38px; }
  html .fp-cabin.busy #fgo { font-size: 24px; }
  .fp-cabin.busy .fp-panel > .fp-ringp, .fp-cabin.busy .fp-panel > .fp-fire { opacity: .35; }
  .fp-cabin .fp-snd { right: 8px; top: calc(var(--ft) + 60px); }
  html .fp-cabin .fp-hud { padding: 8px 10px; gap: 8px; }
  html .fp-cabin .fp-who { padding: 7px 10px 9px; gap: 6px 8px; border-radius: 10px; }
  html .fp-cabin .fp-n b { font-size: 19px; }
  html .fp-cabin .fp-n span { font-size: 11px; padding: 3px 5px; }
  html .fp-cabin .fp-who .hpbar { height: 16px; }
  html .fp-cabin .fp-who .hpbar > span { font-size: 11px; }
  html .fp-cabin .fp-top { padding: 4px 14px 5px; }
  html .fp-cabin .fp-top h1 > span:last-child { font-size: 24px; }
  .fp-scale { height: 30px; } .fp-scale .ln { top: 15px; } .fp-scale .tk { top: 9px; height: 13px; } .fp-scale .tk.s { top: 12px; height: 7px; }
  .fp-scale .lb { top: -5px; font-size: 11px; }
  .fp-mark svg { width: 64px; height: 80px; }
  .fp-mark { top: calc(24% - 14px); }
}
/* a phone held sideways (844x390): a slim header; the tank ring and FIRE in columns at the two sides, the glass between them,
   the maneuver as a row of buttons on the rim under the glass, the hint over the glass's foot (phone audit 2026-11-28) */
@media (max-height: 500px) and (min-width: 600px) {
  body[data-route="fight"]:has(.fp-cabin) { --ft: 58px; --fb: 0px; --side: 168px; }
  html body .fp-cabin .fp-hud::before { display: none; }
  html .fp-cabin .fp-hud { padding: 6px 196px 6px 12px; gap: 10px; }
  html .fp-cabin .fp-who { padding: 4px 10px 6px; gap: 4px 8px; border-radius: 8px; }
  html .fp-cabin .fp-n b { font-size: 17px; }
  html .fp-cabin .fp-n span { font-size: 11px; padding: 2px 5px; }
  html .fp-cabin .fp-who .hpbar { height: 13px; }
  html .fp-cabin .fp-who .hpbar > span { font-size: 11px; }
  html .fp-cabin .fp-top { padding: 3px 12px 4px; }
  html .fp-cabin .fp-top h1 > span:last-child { font-size: 20px; }
  html .fp-cabin .fp-top h1 > span:first-child { font-size: 11px; }
  html .fp-cabin .fp-top > .small { display: none; }
  .fp-cabin .fp-snd { top: 9px; right: 8px; gap: 2px; }
  .fp-snd .tk-ico, .fp-snd .sfx-btn { width: 40px; height: 40px; }
  .fp-log .tk-log-x { min-height: 40px; min-width: 40px; }
  .fp-keys { display: none; }
  html .fp-cabin .fp-panel { left: 0; top: var(--ft); width: 100vw; height: calc(var(--H) - var(--ft)); }
  .fp-ringp, .fp-fire { top: 8px; bottom: 8px; width: var(--side); }
  .fp-ringp { left: 8px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
  .fp-fire { right: 8px; justify-content: center; }
  .fp-ring .chev { display: none; }
  html .fp-cabin #fgo { height: 76px; font-size: 34px; }
  html .fp-cabin.busy #fgo { font-size: 22px; }
  .fp-acts button { min-height: 52px; font-size: 11px; padding: 6px 2px; }
  html .fp-cabin .fp-mv { display: flex; position: absolute; left: 50%; translate: -50% 0; bottom: 8px; width: min(440px, calc(100vw - 2 * var(--side) - 40px)); gap: 6px; }
  .fp-mv button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: rgba(29, 29, 26, .92); color: #9d978a; font: 400 20px var(--font-f), 'Oswald', sans-serif; cursor: pointer; }
  .fp-mv button.on { background: #f2c14e; color: #1d1404; }
  .fp-mv button:disabled { opacity: .5; }
  .fp-cabin.busy .fp-panel > .fp-mv { opacity: 0; pointer-events: none; }
  .fp-panel .tut { bottom: 60px; max-width: calc(100vw - 2 * var(--side) - 40px); font-size: 13px; padding: 8px 12px; }
  /* the other screens sideways: the top bar's taps at 40 px too */
  html #top .res .chip.chip-link { align-items: center; min-height: 40px; padding: 0 6px; margin: -12px -6px; }
  html #top .sfx-btn, .loc-btn, .loc-btn.loc-lang, .loc-btn.loc-cur, html #top .top-loc { height: 40px; min-width: 40px; justify-content: center; }
  .site-foot a { display: inline-block; padding: 10px 0; }
  /* only 390 px of height: the bar keeps HP and Marks (as on a phone held upright), the dock gets slim, VICTORY smaller */
  html #top .res .enchip, html #top .res .chip.sh, html #top .res .tag, html #top .top-sfx, html #top .top-loc.loc-cur { display: none; }
  html.tk-dock-on { --dock: 52px; }   /* html.: these win over the general rules further down the file */
  html #tk-dock a { font-size: 15px; white-space: nowrap; gap: 6px; }
  html body.rep-film[data-route="report"] #main .result-banner { font-size: 84px; margin-bottom: 10px; }
}

/* ---------- Console screens (theme ui.dock, themes/tanks/theme.js): one top bar, the bottom dock, HQ and the hangar ----------
   Vova 2026-11-28: like a console game, every main screen fits one screen; mockups proto/ui-mockups/hangar/index.html ?v=c / ?v=a. */
.tk-dock-on { --dock: 68px; }
/* top bar: the commander (name, level, XP) on the left, resources on the right, the same on every screen */
.tk-dock-on #top .res { flex: 1 1 auto; }
html.tk-dock-on #top .res .chip.opt:first-child { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
html.tk-dock-on #top .res .chip.opt:first-child .k { order: 0; font: 400 22px/1 var(--font-f); text-transform: uppercase; color: var(--ink); }
html.tk-dock-on #top .res .chip.opt:first-child .v { order: 1; font: 700 13px/1 var(--font-b); color: var(--on-acc); background: var(--cyan); border-radius: 4px; padding: 4px 6px; }
html.tk-dock-on #top .res .chip.opt:first-child .bar { order: 2; display: block; width: 120px; height: 5px; margin: 0; border: 0; border-radius: 3px; background: var(--tint2); }
html.tk-dock-on #top .res .chip.opt:first-child .bar i { border-radius: 3px; background: var(--cyan); }
/* long numbers / languages: the commander block gives way (XP bar, then the name with an ellipsis) instead of the row
   overflowing to the left over the logo (seen at 1280 in Russian with 4-digit Marks and Bonds) */
html.tk-dock-on #top .res { justify-content: flex-start; }
html.tk-dock-on #top .res .chip.opt:first-child { flex: 0 1 auto; min-width: 0; }
html.tk-dock-on #top .res .chip.opt:first-child .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
html.tk-dock-on #top .res .chip.opt:first-child .v { flex: none; }
html.tk-dock-on #top .res .chip.opt:first-child .k { flex: 0 1 auto; }
html.tk-dock-on #top .res .chip.opt:first-child .bar { flex: 0 40 auto; width: 120px; min-width: 0; }
@media (max-width: 1440px) {
  html.tk-dock-on #top .res .chip.opt:first-child .bar { display: none; }   /* the XP bar is in the Hangar too */
}
@media (max-width: 1180px) {
  html.tk-dock-on #top .res { gap: 16px; }
  html.tk-dock-on #top .res .chip.opt:first-child { flex: none; }
  html.tk-dock-on #top .res .chip.opt:first-child .k { max-width: 150px; font-size: 19px; }
}
@media (max-width: 1080px) {
  html.tk-dock-on #top .res .chip.opt:first-child .k { display: none; }   /* the name is in the Hangar; the level stays */
}
/* the dock */
#tk-dock { display: none; }
.tk-dock-on #tk-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; height: var(--dock); display: flex; justify-content: center; gap: 6px;
  padding: 8px var(--gut); background: var(--surface); box-shadow: 0 -10px 30px color-mix(in srgb, var(--shade) 50%, transparent); }
.tk-dock-on #tk-dock[hidden], .tk-dock-on body[data-route="fight"] #tk-dock, .tk-menu-open #tk-dock { display: none; }
#tk-dock a { position: relative; flex: 1 1 0; max-width: 210px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px;
  font: 400 19px/1 var(--font-f); text-transform: uppercase; letter-spacing: 0.02em; color: var(--dim); text-decoration: none; transition: box-shadow .2s; }
#tk-dock a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#tk-dock a:hover { color: var(--strong); box-shadow: var(--soft); }
#tk-dock a.on { color: var(--ink); background: var(--tint2); box-shadow: inset 0 -3px 0 var(--cyan); }
#tk-dock .badge { position: absolute; top: 6px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--strong);
  font: 700 11px/18px var(--font-b); text-align: center; }
.tk-dock-on body:not([data-route="fight"]) #main { padding-bottom: calc(var(--dock) + 40px); }
/* the chat button and its panel sit above the dock */
.tk-dock-on .chat-fab { bottom: calc(var(--dock) + 14px); }
@media (min-width: 761px) { .tk-dock-on .chat { bottom: calc(var(--dock) + 10px); max-height: calc(100vh - var(--bar) - var(--dock) - 20px); } }
/* the two one-screen views */
.tk-dock-on body[data-route="hq"] #main, .tk-dock-on body[data-route="operative"] #main {
  max-width: none; height: calc(100vh - var(--bar) - var(--dock)); padding: 14px var(--gut); overflow: hidden; }
.tk-dock-on body[data-route="hq"] .site-foot.in-game, .tk-dock-on body[data-route="operative"] .site-foot.in-game { display: none; }
.tk-dock-on body[data-route="operative"] .verify-bar { position: fixed; left: 50%; bottom: calc(var(--dock) + 10px); transform: translateX(-50%); z-index: 250; margin: 0; }
.tk-h { display: flex; align-items: baseline; gap: 12px; }
.tk-h h2 { font-size: 28px; } .tk-h h3 { margin: 0; font-size: 17px; }
.tk-h > .mute, .tk-h > .tk-rew { margin-left: auto; font-size: 14px; white-space: nowrap; }
.tk-rew { display: inline-flex; gap: 5px; }
.tk-dash a.btn, .tk-hangar a.btn { text-decoration: none; text-align: center; }
.tk-tankpic .art, .tk-hg-pic .portrait { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 55%, transparent 100%); }
.tk-h b.num { color: var(--ink); }
.tk-rew { text-decoration: none; color: var(--dim); } .tk-rew b { color: var(--cyan) !important; }
.tk-dash, .tk-hangar { height: 100%; display: grid; gap: 14px; min-height: 0; }
.tk-dash { grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.55fr) minmax(300px, 1fr); }
.tk-col, .tk-hg-side, .tk-hg-stage { min-height: 0; background: var(--panel); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: thin; }
.tk-col .art, .tk-hangar .art { background-size: cover; background-position: center; }
/* HQ: my tank */
/* Vova: "my tank is very small on my screen" (laptop 1280x764): the picture gets more height and is zoomed into the tank, the slots are shorter */
.tk-tankpic { flex: 1 1 220px; min-height: 170px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, var(--tint2), transparent 70%); }
.tk-tankpic .art { width: 100%; height: 100%; background-size: auto 150%; background-position: center 58%; background-repeat: no-repeat; background-color: transparent; }
.tk-hp, .tk-hg-foot { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.tk-hp .bar, .tk-hg-foot .bar { flex: 1; height: 8px; border: 0; border-radius: 4px; background: var(--tint2); }
.tk-hp .bar i, .tk-hg-foot .bar i { border-radius: 4px; background: var(--green); }
.tk-hp b, .tk-hg-foot b { color: var(--ink); }
.tk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-stats div { background: var(--tint); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--dim); }
.tk-stats b { font-size: 17px; color: var(--ink); }
.tk-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; border-radius: 8px; background: var(--tint); text-decoration: none; transition: box-shadow .2s; }
.tk-slot:hover { box-shadow: var(--soft); }
.tk-slot .art { width: 100%; aspect-ratio: 1.45; border-radius: 6px; background-color: var(--art-bg); }
.tk-slot b { font: 600 12px/1.15 var(--font-b); color: var(--text2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tk-slot .lv { position: absolute; top: 8px; left: 8px; min-width: 18px; padding: 2px 4px; border-radius: 4px; background: var(--cyan); color: var(--on-acc); font-size: 11px; text-align: center; }
.tk-slot .ph { position: absolute; top: 18%; left: 0; right: 0; text-align: center; font-size: 26px; color: var(--mute2); }
.tk-links { display: flex; gap: 8px; } .tk-links .btn { flex: 1; text-align: center; }
/* HQ: to battle */
.tk-mode { position: relative; display: flex; align-items: flex-end; min-height: 120px; border-radius: 10px; overflow: hidden; text-decoration: none; transition: box-shadow .2s; }
.tk-mode:hover { box-shadow: var(--lift); }
.tk-mode .art { position: absolute; inset: 0; }
.tk-mode::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, color-mix(in srgb, var(--bg) 88%, transparent)); }
.tk-mode .tx, .tk-mode .rt { position: relative; z-index: 1; padding: 14px 16px; }
.tk-mode .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-mode .tx b { font: 400 30px/0.95 var(--font-f); text-transform: uppercase; color: var(--strong); }
.tk-mode .tx span { font-size: 14px; color: var(--text2); }
.tk-mode .rt { margin-left: auto; text-align: right; font-size: 13px; color: var(--text2); white-space: nowrap; }
.tk-mode .rt b { color: var(--cyan); }
.tk-mode.big { flex: 1 1 180px; } .tk-mode.big .tx b { font-size: clamp(30px, 3.2vw, 48px); white-space: nowrap; }   /* on a 1280 laptop the 48px title wrapped and its top was cut off */
.tk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .tk-two .tk-mode { min-height: 140px; }
.tk-blk { display: flex; flex-direction: column; gap: 10px; }
.tk-rows { display: flex; flex-direction: column; gap: 6px; }
.tk-task { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 11px; border-radius: 8px; background: var(--tint); font-size: 14px; overflow: hidden; }
.tk-task .t { flex: 1; min-width: 0; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-task .r { color: var(--dim); white-space: nowrap; }
.tk-task .ok { color: var(--green); font-weight: 700; }
.tk-task.got .t { color: var(--dim); }
.tk-task > i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cyan); }
.tk-task .btn { flex: none; }
/* HQ: market */
.tk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tabs button, .tk-modes button { border: 0; border-radius: 6px; padding: 7px 11px; background: var(--tint); color: var(--dim); font: 600 13px var(--font-b); cursor: pointer; transition: box-shadow .2s; }
.tk-tabs button:hover, .tk-modes button:hover { box-shadow: var(--soft); color: var(--ink); }
.tk-tabs button.on { background: var(--tint2); color: var(--ink); }
.tk-offers { display: flex; flex-direction: column; gap: 8px; }
.tk-offer, .tk-mod { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.tk-offer .art, .tk-mod .art { position: relative; flex: none; width: 52px; height: 52px; border-radius: 8px; background-color: var(--art-bg); }
.tk-offer .tx, .tk-mod .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-offer .tx b, .tk-mod .tx b { font: 700 14px/1.2 var(--font-b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-offer .tx > span, .tk-mod .tx > span { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-offer .tx > span b, .tk-mod .tx > span b { font-size: 13px; color: var(--green); }
.tk-offer .btn { flex: none; min-width: 64px; }
.tk-deal { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--cyan) 16%, var(--panel)), var(--tint)); transition: box-shadow .2s; }
.tk-deal:hover { box-shadow: var(--soft); }
.tk-deal .tx { flex: 1; display: flex; flex-direction: column; gap: 3px; } .tk-deal .tx b { color: var(--ink); } .tk-deal .tx span { font-size: 13px; color: var(--dim); }
.tk-deal > .num { color: var(--cyan); font-size: 18px; }
/* Hangar */
.tk-hangar { position: relative; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(290px, 340px); }
.tk-mods { display: flex; flex-direction: column; gap: 6px; }
.tk-mod { padding: 6px 8px; gap: 10px; } .tk-mod .art { width: 46px; height: 46px; }
.tk-mod .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: var(--mute2); }
.tk-mod.empty .tx b { color: var(--dim); }
.tk-mod .btn { flex: none; padding: 6px 10px; }
.tk-buy { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
/* 8 module rows + the Inventory/Market buttons fit the 1280x764 laptop: rows a bit tighter when the window is short */
@media (min-width: 901px) and (max-height: 820px) { .tk-mods { gap: 4px; } .tk-mod { padding: 4px 8px; } .tk-mod .art { width: 40px; height: 40px; } .tk-hg-mods { gap: 8px; } }
.tk-buy .btn { text-align: center; text-decoration: none; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-hg-stage { background: radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--ink) 9%, var(--panel)), var(--panel) 68%); padding: 18px 24px; }
/* Vova: the chips belong top-right next to the name (empty space there), a long name just gets smaller */
.tk-hg-title { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 10px 16px; position: relative; z-index: 1; }
.tk-hg-title > div:first-child { flex: 1 1 auto; min-width: 0; }
.tk-hg-title .tk-hg-chips { flex: none; flex-direction: column; align-items: flex-end; flex-wrap: nowrap; gap: 6px; }
.tk-hg-title .tk-hg-chips > span { padding: 6px 10px; font-size: 13px; }
.tk-hg-title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-hg-title h1 { font-size: clamp(30px, 3.8vw, 64px); line-height: .92; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-hg-title p { margin: 6px 0 0; color: var(--dim); }
.tk-hg-chips { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tk-hg-chips > span { padding: 8px 12px; border-radius: 6px; background: var(--tint2); font-size: 14px; color: var(--text2); white-space: nowrap; }
.tk-hg-chips b { color: var(--cyan); }
.tk-hg-pic { flex: 1 1 auto; min-height: 0; position: relative; container-type: size; }
.tk-hg-pic .portrait { position: absolute; inset: 0; width: auto; max-width: none; margin: 0; min-height: 0; height: auto; aspect-ratio: auto; border: 0; border-radius: 10px; background-color: transparent;
  background-size: auto min(170cqh, 118cqw); background-repeat: no-repeat; background-position: center 65%;
  --pich: min(170cqh, 118cqw); -webkit-mask-image: radial-gradient(ellipse 50% 30% at 50% 56%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 30% at 50% 56%, #000 62%, transparent 100%);
  -webkit-mask-size: calc(var(--pich) * .7467) var(--pich); mask-size: calc(var(--pich) * .7467) var(--pich); -webkit-mask-position: center 65%; mask-position: center 65%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }   /* the mask sits on the picture itself: no visible rectangle of its backdrop */   /* Vova: the tank centred and whole at any window height (the tank is rows ~33-79% of the 896x1200 picture) */
.tk-hg-foot { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
/* Hangar header (Vova: "more interesting"): a level badge + the name, and one plate of three stats with icons */
.tk-hg-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tk-hg-id > div { min-width: 0; }
.tk-hg-title .tk-hg-chips { flex-direction: row; align-items: stretch; gap: 2px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tk-hg-title .tk-hg-chips > span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 12px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tk-hg-chips svg { grid-row: 1 / 3; width: 22px; height: 22px; fill: var(--cyan); stroke: none; }
.tk-hg-chips svg path:last-child { fill: var(--cyan); }
.tk-hg-chips em { font: 400 26px/1 var(--font-f); font-style: normal; color: var(--strong); display: flex; gap: 6px; }
.tk-hg-chips em b { color: var(--strong); font-weight: 400; }
.tk-hg-chips em b.w { color: var(--green); } .tk-hg-chips em b.l { color: var(--red-pale, #e07a6a); }
.tk-hg-chips em b.w::after { content: "–"; color: var(--dim); margin-left: 6px; }
.tk-hg-chips small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.tk-hg-title p { margin-top: 4px; }
/* the stats plate is its own row under the name (it covered a long name on a 1280 laptop), three equal columns */
/* Vova: the stats plate on the same row as the name (not wrapped under it); the name shrinks with the stage instead */
.tk-hg-stage { container-type: inline-size; }
.tk-hg-stage .tk-hg-title { flex-wrap: nowrap; align-items: stretch; }   /* Vova: the stats plate exactly as tall as the name + class block */
.tk-hg-stage .tk-hg-title > .tk-hg-id { align-self: center; } .tk-hg-stage .tk-hg-title .tk-hg-chips { align-items: center; padding-top: 0; padding-bottom: 0; } .tk-hg-stage .tk-hg-title .tk-hg-chips > span { align-content: center; height: 100%; }
.tk-hg-stage .tk-hg-title > .tk-hg-id { flex: 1 1 auto; min-width: 0; }
.tk-hg-stage .tk-hg-title h1 { font-size: clamp(24px, 8cqi, 64px); }
.tk-hg-stage .tk-hg-title .tk-hg-chips { flex: none; margin-left: auto; display: grid; grid-template-columns: repeat(3, auto); max-width: 62cqi; }
.tk-hg-stage .tk-hg-chips em { font-size: clamp(18px, 3.6cqi, 26px); } .tk-hg-stage .tk-hg-chips svg { width: clamp(16px, 3cqi, 22px); height: clamp(16px, 3cqi, 22px); }
.tk-hg-stage .tk-hg-title .tk-hg-chips > span { padding: 5px clamp(6px, 1.6cqi, 12px); column-gap: clamp(4px, 1cqi, 8px); }
.tk-hg-stage .tk-hg-chips small { font-size: clamp(10px, 1.9cqi, 12px); }
/* the Inventory button shows its count whole */
.tk-buy { grid-template-columns: auto 1fr; } .tk-buy .tk-invbtn { position: relative; overflow: visible; text-overflow: clip; padding-left: 12px; padding-right: 12px; }
.tk-invbtn .tk-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 12px/1 var(--font-b); font-style: normal; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.tk-hg-stage .tk-hg-chips > span { min-width: 0; }
.tk-hg-chips small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .tk-hg-stage .tk-hg-title { flex-wrap: wrap; } .tk-hg-stage .tk-hg-title > .tk-hg-id { flex-basis: 100%; } .tk-hg-stage .tk-hg-title .tk-hg-chips { max-width: 100%; margin-left: 0; } .tk-hg-stage .tk-hg-title .tk-hg-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .tk-hg-title .tk-hg-chips > span { padding: 6px 8px; column-gap: 6px; } .tk-hg-chips em { font-size: 22px; } }
/* Vova: the tank over the whole stage (nothing cuts it with a band), the name, chips and the durability bar float over it
   on dark see-through plates, so the tank's outline still shows through. Desktop only; phones keep the stacked layout. */
@media (min-width: 901px) {
  .tk-hg-stage { position: relative; }
  .tk-hg-stage > .tk-hg-pic { position: absolute; inset: 0; z-index: 0; }
  .tk-hg-stage > .tk-hg-title { margin-bottom: auto; }
  .tk-hg-stage > .tk-hg-foot { position: relative; z-index: 1; background: color-mix(in srgb, var(--bg) 52%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .tk-hg-stage .portrait { --pich: min(150cqh, 112cqw); background-size: auto var(--pich); background-position: center 60%; -webkit-mask-position: center 60%; mask-position: center 60%; }
}
.tk-kv { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 7px 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 14px; color: var(--dim); }
.tk-kv b { color: var(--ink); text-align: right; }
.tk-attrs { display: flex; flex-direction: column; gap: 4px; }
.tk-attr { display: flex; align-items: center; gap: 10px; padding: 3px 3px 3px 12px; border-radius: 8px; background: var(--tint); font-size: 14px; }
.tk-attr .nm { flex: 1; min-width: 0; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-attr > b { color: var(--ink); min-width: 26px; text-align: right; }
.tk-attr .btn { flex: none; min-width: 78px; padding: 5px 10px; } .tk-attr .btn:not(:disabled) .num { color: var(--cyan); }
.tk-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk-modes button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; }
.tk-modes button b { color: var(--ink); font-size: 14px; } .tk-modes button span { font-size: 12px; }
.tk-modes button.on { background: var(--tint2); box-shadow: inset 0 -3px 0 var(--cyan); }
.tk-fight { display: block; padding: 14px; border-radius: 8px; background: var(--cyan); color: var(--on-acc); text-align: center; text-decoration: none;
  font: 400 34px/1 var(--font-f); text-transform: uppercase; letter-spacing: .02em; transition: box-shadow .2s; }
.tk-fight:hover { color: var(--on-acc); box-shadow: var(--lift); }
.tk-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(620px, 100%); display: none; flex-direction: column; gap: 12px; padding: 18px 20px;
  border-radius: 12px; background: var(--panel2); box-shadow: -20px 0 50px color-mix(in srgb, var(--shade) 70%, transparent); overflow: auto; }
.inv-open .tk-drawer { display: flex; }
.tk-drawer .tk-h .btn { margin-left: auto; }
.tk-drawer-in .panel { padding: 0; background: none; margin-bottom: 16px; } .tk-drawer-in .panel h3 { margin-bottom: 10px; }
.tk-drawer-in .hint-bar { margin-bottom: 14px; }
@media (max-width: 1180px) {
  .tk-dash { grid-template-columns: 1fr 1.3fr 1fr; } .tk-mode.big .tx b { font-size: clamp(28px, 2.9vw, 38px); }
  .tk-hangar { grid-template-columns: 250px minmax(0, 1fr) 280px; }
}
/* phones and narrow windows: the columns stack, the page scrolls, the dock stays at the bottom */
@media (max-width: 900px) {
  html.tk-dock-on #top .res .chip.opt:first-child { display: none; }
  .tk-dock-on body[data-route="hq"] #main, .tk-dock-on body[data-route="operative"] #main { height: auto; overflow: visible; padding-bottom: calc(var(--dock) + 24px); }
  .tk-dash, .tk-hangar { display: flex; flex-direction: column; height: auto; }
  .tk-col, .tk-hg-side, .tk-hg-stage { overflow: visible; }
  .tk-tankpic { flex: none; height: 190px; }
  .tk-hg-pic { flex: none; height: 240px; }
  .tk-hg-stage { order: -1; }
  .tk-drawer { position: fixed; top: var(--bar); bottom: var(--dock); left: 0; right: 0; width: auto; border-radius: 0; z-index: 310; }
}
@media (max-width: 760px) {
  .tk-dock-on { --dock: 62px; }
  #tk-dock { gap: 2px; padding: 6px 10px; }
  #tk-dock a { flex-direction: column; gap: 4px; font: 600 11px/1 var(--font-b); text-transform: none; letter-spacing: 0; }
  #tk-dock a.wide { display: none; }
  #tk-dock .badge { top: 2px; right: 6px; }
  .tk-col, .tk-hg-side, .tk-hg-stage { padding: 14px; }
  .tk-mode.big .tx b { font-size: 34px; } .tk-mode .tx b { font-size: 24px; }
  .tk-two { grid-template-columns: 1fr; } .tk-two .tk-mode { min-height: 110px; }
  .tk-stats { grid-template-columns: repeat(2, 1fr); }
  .tk-hg-title { flex-direction: column; gap: 10px; } .tk-hg-title > div:first-child { flex: none; width: 100%; } .tk-hg-chips { margin-left: 0; justify-content: flex-start; }
  .tk-hg-foot { flex-wrap: wrap; } .tk-hg-foot .bar { flex-basis: 40%; }
  .tk-kv { grid-template-columns: 1fr auto; }
  .tk-task .t { white-space: normal; }
}
/* Vova: a red strip peeked over the bottom menu after "Update look" = the message toast hidden behind the dock; above it now */
.tk-dock-on .toast-wrap { bottom: calc(var(--dock) + 16px); z-index: 320; }

/* ===== new-style screens (all but fight) =====
   Vova 2026-11-28: "in the new style absolutely everything must be redone". Every other screen speaks the HQ / Hangar
   language: a compact screen header on a panel instead of the huge film title, content on dark panels with rounded
   corners, Anton for panel titles, and the amber accent (a bottom bar, like the dock) marks the active tab or choice. */
.tk-dock-on body:not([data-route="fight"]):not([data-route="hq"]):not([data-route="operative"]) #main { max-width: none; padding-top: 16px; }
.tk-dock-on #main .page-head { align-items: center; gap: 8px 20px; margin: 0 0 14px; padding: 16px 22px; background: var(--panel); border-radius: 12px; }
.tk-dock-on #main .page-head h1 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.tk-dock-on #main .page-head p { margin: 5px 0 0; max-width: 900px; font-size: 15px; line-height: 1.4; }
.tk-dock-on #main .page-head { flex-wrap: nowrap; }
.tk-dock-on #main .page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.tk-dock-on #main .page-head .right { flex: none; gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
/* the main action of a card is the accent button, like HQ's "Buy" */
.tk-dock-on #main .enemy .btn:not([disabled]):not(.ghost), .tk-dock-on #main .card-item .btn[data-act="buy"]:not([disabled]) { background: var(--cyan); color: var(--on-acc); }
.tk-dock-on #main .enemy .art { aspect-ratio: 16 / 9; background-position: center 42%; }   /* whole tank in view, the top was cut */
.tk-dock-on #main .enemy .body { padding: 10px 14px 14px; gap: 5px; }
@media (min-width: 1280px) { .tk-dock-on #main .grid.g3:has(> .card-item) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tk-dock-on #main .hero { height: auto; min-height: 150px; border-radius: 12px; }   /* grows with its text, nothing clipped */
.tk-dock-on #main .hero p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-dock-on #main .dist-tabs { margin-bottom: 14px; }
.tk-dock-on #main .hero h1 { font-size: clamp(34px, 3.8vw, 58px); }
.tk-dock-on #main .hero .ovl { padding: 22px 26px; position: relative; min-height: inherit; }   /* in the flow, so the banner grows with its text */
/* panels: titles in Anton like HQ's "My tank", cards on the panel colour */
.tk-dock-on body:not([data-route="fight"]) #main .panel { border-radius: 12px; padding: 18px 20px; }   /* not the fight: its header and panel have their own */
.tk-dock-on #main .panel > h3:first-child { font: 400 24px/1 var(--font-f); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 14px; }
.tk-dock-on #main .card-item, .tk-dock-on #main .enemy, .tk-dock-on #main .ach, .tk-dock-on #main .pack, .tk-dock-on #main .tier, .tk-dock-on #main .mrow { background: var(--panel); border-radius: 12px; }
.tk-dock-on #main .panel .card-item, .tk-dock-on #main .panel .mrow, .tk-dock-on #main .panel .pack { background: var(--tint); }
.tk-dock-on #main .card-item, .tk-dock-on #main .enemy { transition: box-shadow .2s; }
.tk-dock-on #main .card-item:hover, .tk-dock-on #main .enemy:hover { box-shadow: var(--soft); }
/* the active tab / choice: the dock's look (lighter tint, amber bar at the bottom) instead of a white block */
.tk-dock-on .dist-tab, .tk-dock-on .seg button, .tk-dock-on .chat-tab, .tk-dock-on .auth-tabs button { border-radius: 8px; }
.tk-dock-on .dist-tab { background: var(--panel); }
.tk-dock-on .dist-tab.on, .tk-dock-on .btn.on, .tk-dock-on .seg button.on, .tk-dock-on .seg button.on.buy, .tk-dock-on .seg button.on.sell,
.tk-dock-on .auth-tabs button.on, .tk-dock-on .auth-tabs button.on.buy, .tk-dock-on .chat-tab.on {
  background: var(--tint2); color: var(--ink); box-shadow: inset 0 -3px 0 var(--cyan); }
.tk-dock-on .seg { background: var(--panel); border-radius: 8px; }
/* prices and key numbers in the accent, like the HQ market */
.tk-dock-on #main .card-item b.num[style*="--yel"] { color: var(--cyan) !important; }
/* tables (rankings): rows as soft bars */
.tk-dock-on #main table.t { border-collapse: separate; border-spacing: 0 4px; }
.tk-dock-on #main table.t tbody td { background: var(--tint); }
.tk-dock-on #main table.t tbody tr:nth-child(odd) td { background: var(--tint); }
.tk-dock-on #main table.t tbody td:first-child { border-radius: 8px 0 0 8px; } .tk-dock-on #main table.t tbody td:last-child { border-radius: 0 8px 8px 0; }
/* the fight report (result screen) */
.tk-dock-on #main .result-banner { font-size: clamp(56px, 6.4vw, 96px); margin: 4px 0 16px; }
.tk-dock-on #main .result-banner.w { color: var(--cyan); }
.tk-dock-on #main .reward { background: var(--tint); border-radius: 10px; }
/* the menu: a grid of panels (same tiles as HQ) instead of the full-screen film index */
.tk-dock-on #nav { columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start;
  padding: calc(var(--bar) + 18px) var(--gut) 32px; background: color-mix(in srgb, var(--bg) 96%, transparent); }
.tk-dock-on .tk-menu-open #nav { display: grid; }
html.tk-dock-on #nav .nav-item { padding: 18px 20px 16px; border-radius: 12px; background: var(--panel); font-size: clamp(22px, 2vw, 28px); transition: box-shadow .2s; }
html.tk-dock-on #nav .nav-item:hover { box-shadow: var(--soft); text-shadow: none; }
html.tk-dock-on #nav .nav-item.on { color: var(--ink); background: var(--tint2); box-shadow: inset 0 -3px 0 var(--cyan); }
html.tk-dock-on #nav .nav-item.fightnow { background: var(--cyan); color: var(--on-acc); padding-bottom: 16px; }
html.tk-dock-on #nav .nav-item.fightnow .tk-sub, html.tk-dock-on #nav .nav-item.fightnow .tk-sub * { color: var(--on-acc); }
.tk-dock-on #nav .tk-sub { font-size: 14px; margin-top: 6px; }
/* dialogs, the chat, hints: the same rounded dark panels */
.tk-dock-on .dlg { border-radius: 14px; }
.tk-dock-on .dlg h2 { font-size: clamp(30px, 3vw, 38px); }
.tk-dock-on .chat { border-radius: 14px; }
.tk-dock-on #main .hint, .tk-dock-on #main .tut, .tk-dock-on #main .first-win { background: var(--panel); border-radius: 10px; }
@media (max-width: 1100px) { .tk-dock-on #nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tk-dock-on #main .page-head { padding: 14px 16px; flex-wrap: wrap; }
  .tk-dock-on #main .page-head .right { flex: 1 1 100%; max-width: none; margin-left: 0; justify-content: flex-start; }
  .tk-dock-on #main .page-head .right .btn { white-space: normal; text-align: left; }
  .tk-dock-on #main .page-head h1 { font-size: 30px; }
  .tk-dock-on #main .hero { height: auto; min-height: 170px; }
  .tk-dock-on #nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: calc(var(--bar) + 72px) var(--gut) 24px; }   /* below the resources (up to two lines under the bar), audit 2026-11-29 */
  html.tk-dock-on #nav .nav-item { padding: 14px 14px 12px; font-size: 21px; }
  .tk-dock-on #main .result-banner { font-size: 56px; }
  /* leaderboards on a phone: tighter cells so the rank column fits without sideways scrolling */
  .tk-dock-on #main table.t { font-size: 13px; }
  .tk-dock-on #main table.t th, .tk-dock-on #main table.t td { padding: 8px 5px; }
  .tk-dock-on #main table.t .avatar, .tk-dock-on #main table.t td .art { width: 30px; height: 30px; }
  .tk-dock-on #main .panel:has(> table.t), .tk-dock-on #main .panel:has(> div > table.t) { padding: 10px 8px; }
}
/* buy -> inventory -> put on (Vova: "I bought something, where did it go?") */
.tk-bought { position: fixed; left: 50%; bottom: calc(var(--dock, 0px) + 18px); transform: translateX(-50%); z-index: 340; width: min(620px, calc(100vw - 2 * var(--gut)));
  display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; border-radius: 14px; background: var(--panel2); box-shadow: var(--lift), inset 0 -3px 0 var(--cyan); animation: fadein .2s; }
.tk-bought .art { flex: none; width: 64px; height: 64px; border-radius: 10px; background-color: var(--art-bg); background-size: cover; }
.tk-bought .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--text2); }
.tk-bought .tx > b { font: 700 16px/1.2 var(--font-b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-bought .bt { flex: none; display: flex; flex-direction: column; gap: 6px; }
.tk-bought .bt .btn { padding: 9px 14px; white-space: nowrap; }
.tk-bought .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--dim); cursor: pointer; }
.tk-bought .x:hover { color: var(--strong); box-shadow: var(--soft); }
body:has(.tk-bought) .chat-fab { display: none; }   /* the chat button sat on the card's Inventory button on phones */
.tk-diff { font-size: 13px; }
.tk-diff .up, .tk-bought .up, .tk-ready .up { color: var(--green); }
.tk-diff .down, .tk-bought .down { color: var(--red-soft); }
.tk-better { color: var(--cyan) !important; }
.tk-mod.can, .tk-mod.better { box-shadow: inset 3px 0 0 var(--cyan); }
.tk-mod.better [data-act="unequip"] { display: none; }   /* room for the name and "Put on"; taking it off stays in the inventory */
.tk-dock-on .tk-invbtn.yel { background: var(--cyan); color: var(--on-acc); }
.tk-dock-on .tk-invbtn.yel b { color: var(--on-acc); }
.tk-ready { margin-bottom: 14px; }
.tk-ready h3 { font: 400 22px/1 var(--font-f) !important; text-transform: uppercase; }
.tk-ready-list { display: flex; flex-direction: column; gap: 6px; }
.tk-ready-it { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.tk-ready-it.hl { box-shadow: inset 0 0 0 2px var(--cyan); }
.tk-ready-it .art { flex: none; width: 52px; height: 52px; border-radius: 8px; background-color: var(--art-bg); background-size: cover; }
.tk-ready-it .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--dim); }
.tk-ready-it .tx b { font: 700 14px/1.2 var(--font-b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* market categories: All + one tab per slot (icon, name, how many on sale) */
.tk-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tk-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; background: var(--panel); color: var(--text2); font: 700 14px var(--font-b); text-decoration: none; transition: box-shadow .2s; }
.tk-cats a:hover { box-shadow: var(--soft); color: var(--strong); }
.tk-cats a.on { background: var(--tint2); color: var(--ink); box-shadow: inset 0 -3px 0 var(--cyan); }
.tk-cats a.none { opacity: .5; }
.tk-cats i { font-style: normal; }
.tk-cats b { font-size: 12px; color: var(--dim); }
.tk-mk-empty p { margin: 0 0 12px; color: var(--text2); }
.tk-tabs button.ico { padding: 6px 9px; font-size: 15px; line-height: 1; }
.tk-tabs button.none { opacity: .45; }
.tk-tabs button.on { box-shadow: inset 0 -3px 0 var(--cyan); }
.tk-mk-cat { font-size: 14px; color: var(--dim); } .tk-mk-cat b { color: var(--ink); margin-right: 8px; }
.tk-mk-none { padding: 12px; border-radius: 8px; background: var(--tint); font-size: 14px; color: var(--text2); line-height: 1.5; }
@media (max-width: 760px) {
  .tk-bought { flex-wrap: wrap; padding: 12px 40px 12px 12px; }
  .tk-bought .bt { flex-direction: row; width: 100%; } .tk-bought .bt .btn { flex: 1; }
}
/* his return fire in the cabin (foeFireAct, Vova 2026-11-28), a quiet stand-in until his clips come: muzzle flash at the enemy,
   earth thrown up, a faint dust haze in the exact glass on a hit (no flash, no red: Vova) */
.fp-ff { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden;
  -webkit-mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/fp_glass_mask.png?v=3") 0 0 / 100% 100% no-repeat; }
.fp-ff i { position: absolute; display: block; }
.fp-ff .mz { width: 7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff8e0 0, #ffd27a 22%, rgba(255, 140, 40, .7) 42%, rgba(255, 120, 30, 0) 70%); animation: ffMz .32s ease-out forwards; }
@keyframes ffMz { 0% { opacity: 0; scale: .3; } 15% { opacity: 1; scale: 1.15; } 100% { opacity: 0; scale: 1.6; } }
.fp-ff .dust { inset: 0; background: radial-gradient(ellipse at 30% 70%, rgba(120, 92, 60, .55), rgba(120, 92, 60, 0) 55%), radial-gradient(ellipse at 72% 40%, rgba(140, 110, 76, .45), rgba(140, 110, 76, 0) 50%), linear-gradient(rgba(96, 74, 50, .25), rgba(96, 74, 50, .45)); animation: ffDust 3.2s ease-out forwards; }
@keyframes ffDust { 0% { opacity: 0; } 15% { opacity: .38; } 100% { opacity: .14; } }   /* a faint haze thrown up outside, not a wall of dust */
.fp-ff .dirt { width: 24%; aspect-ratio: .8; translate: -50% -82%; border-radius: 44% 56% 30% 30%; filter: blur(3px); transform-origin: 50% 90%;   /* a dark column of earth (was too small and light to read on the grass) */
  background: radial-gradient(ellipse 40% 30% at 50% 88%, rgba(255, 196, 96, .95) 0, rgba(255, 150, 60, 0) 100%), radial-gradient(ellipse 50% 60% at 50% 62%, rgba(34, 26, 20, .97) 0, rgba(52, 40, 30, .9) 45%, rgba(52, 40, 30, 0) 100%),
    radial-gradient(ellipse 50% 42% at 50% 34%, rgba(110, 88, 64, .85) 0, rgba(140, 116, 88, 0) 100%); animation: ffDirt 2.2s cubic-bezier(.15, .7, .3, 1) forwards; }
.fp-ff .dirt.near { width: 36%; }
@keyframes ffDirt { 0% { opacity: 0; scale: .2 .15; } 6% { opacity: 1; } 30% { opacity: 1; scale: 1 1; } 100% { opacity: 0; scale: 1.3 1.35; } }
/* the report as one shot with the fight (filmKeep in views-fight-fp.js, Vova 2026-11-28): the enemy's wreck keeps burning full
   bleed behind the report (a defeat: the dark cabin), VICTORY across the width, the combat log rolls up like film credits */
#repFilm { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #000; transition: top .9s ease, left .9s ease, right .9s ease, bottom .9s ease; }
#repFilm.pre { z-index: 30; background: none; transition: none; }   /* during the kill: the wreck loop waits right over the film box (filmVideo) */
#repFilm.pre::after { display: none; }
#repFilm video:not(.on) { opacity: 0; }
#repFilm video, #repFilm img, #repFilm canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: none; }
#repFilm::after { content: ""; position: absolute; inset: 0; animation: repDim 1.2s ease-out both; background: linear-gradient(rgba(6, 6, 5, .55), rgba(6, 6, 5, .30) 38%, rgba(6, 6, 5, .62) 78%, rgba(6, 6, 5, .85)); }
#repFilm.l img { filter: grayscale(.4) brightness(.45); }
#repFilm.l::after { background: linear-gradient(rgba(6, 6, 5, .62), rgba(6, 6, 5, .74) 50%, rgba(6, 6, 5, .9)); }   /* a defeat: plain and dark until our own burning-tank clips exist (Vova: no drawn effects) */
#repWarm { position: fixed; inset: 0; z-index: 40; padding: 16px 40px; opacity: .01; pointer-events: none; overflow: hidden; }   /* warmReport(): drawn once while the battle loads */
body.rep-film[data-route="report"] #main .page-head, body.rep-film[data-route="report"] #main .panel, #repWarm .page-head, #repWarm .panel { background: rgba(10, 10, 9, .58); box-shadow: none; }
body.rep-film[data-route="report"] #main .fx-art, #repWarm .fx-art { display: none; }
body.rep-film[data-route="report"] #main .result-banner, #repWarm .result-banner { font-size: clamp(84px, 15vw, 230px); line-height: .86; margin: 4px 0 18px; text-shadow: 0 6px 40px rgba(0, 0, 0, .75); animation: repBanner 1.4s ease-out both; }
@keyframes repDim { from { opacity: 0; } to { opacity: 1; } }
@keyframes repBanner { from { opacity: 0; letter-spacing: .12em; } to { opacity: 1; letter-spacing: .01em; } }
body.rep-film[data-route="report"] #main .versus, #repWarm .versus { display: none; }   /* the film shows the two tanks: the panel keeps the rewards */
body.rep-film[data-route="report"] #main .rewards, #repWarm .rewards { margin-top: 0 !important; }
/* the credits: the log scrolls from below the panel up and out, slowly, centred, in the typed font; then again */
body.rep-film[data-route="report"] #main .panel.mag:has(.clog), #repWarm .panel.mag:has(.clog) { position: relative; height: 340px; overflow: hidden;
  -webkit-mask: linear-gradient(transparent 0, #000 22%, #000 80%, transparent); mask: linear-gradient(transparent 0, #000 22%, #000 80%, transparent); }
body.rep-film[data-route="report"] #main .panel.mag:has(.clog) h3, #repWarm .panel.mag:has(.clog) h3 { display: none; }
body.rep-film[data-route="report"] #main .clog, #repWarm .clog { max-height: none; overflow: visible; text-align: center; font: 500 15px/1.9 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #e9e2d0;
  animation: repCredits 24s linear infinite; }
body.rep-film[data-route="report"] #main .clog div, #repWarm .clog div { border: 0; padding: 2px 6px; animation: none; }
body.rep-film[data-route="report"] #main .clog .r, #repWarm .clog .r { color: #d9b24a; }
@keyframes repCredits { from { transform: translateY(330px); } to { transform: translateY(-100%); } }

/* ---------- The fight header, cinematic (Vova 2026-11-28: "childish, sticks out"): no slab; the picture (cabin, films,
   title cards) runs up under it and a dark-to-clear gradient carries slim, quiet type. --hud = the header's own height,
   --ft = 0: the picture starts at the top of the screen. Readable over a bright sky (gradient + text shadow) and on black. */
body[data-route="fight"]:has(.fp-cabin) { --hud: 104px; --ft: 0px; }
html body .fp-cabin .fp-hud { height: var(--hud); padding: 0 244px 12px; align-items: start; padding-top: 16px; gap: 28px; box-shadow: none;
  background: linear-gradient(180deg, rgba(6, 6, 5, .86) 0%, rgba(6, 6, 5, .58) 48%, rgba(6, 6, 5, 0) 100%); }
html body .fp-cabin .fp-hud::before { width: 112px; height: 44px; top: 14px; translate: none; opacity: .85; }
html .fp-cabin .fp-who, html .fp-cabin .fp-who.foe { padding: 0; border-radius: 0; background: none; gap: 6px 10px; align-content: start; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
html .fp-cabin .fp-n b { font-size: 22px; letter-spacing: .02em; color: #ece6d8; }
html .fp-cabin .fp-n b { min-width: 0; max-width: 100%; }
@media (max-width: 1180px) and (min-width: 761px) { html body .fp-cabin .fp-hud { padding-left: 128px; padding-right: 232px; gap: 18px; } html body .fp-cabin .fp-hud::before { width: 92px; } html .fp-cabin .fp-n b { font-size: 18px; } }   /* narrower laptops: more room for the names */   /* a long name ends in … and never reaches the icons (5 of them: 244 px reserved each side) */
html .fp-cabin .fp-n span, html .fp-cabin .fp-who.foe .fp-n span { padding: 0; border-radius: 0; background: none; color: rgba(236, 230, 216, .55); font: 500 12px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; align-self: center; }
html .fp-cabin .fp-who .hpbar { height: 3px; border-radius: 0; overflow: visible; background: rgba(236, 230, 216, .16); margin-bottom: 14px; }
html .fp-cabin .fp-who .hpbar > i, html .fp-cabin .fp-who .hpbar > .hp-ghost { border-radius: 0; }
html .fp-cabin .fp-who.me .hpbar > i { background: #a9b693; }
html .fp-cabin .fp-who .hpbar.mid > i { background: #c8a75a; }
html .fp-cabin .fp-who.me .hpbar.low > i, html .fp-cabin .fp-who .hpbar.low > i { background: #b8604a; }
html .fp-cabin .fp-who.foe .hpbar > i { background: #c49a55; }
html .fp-cabin .fp-who.foe .hpbar.low > i { background: #b8604a; }
html .fp-cabin .fp-who .hpbar > .hp-ghost { background: rgba(184, 96, 74, .45); }
html .fp-cabin .fp-who .hpbar > span, html .fp-cabin .fp-who.foe .hpbar > span { inset: auto; top: 8px; left: 0; right: auto; display: block; width: auto;
  font: 500 11px/1 var(--font-b); letter-spacing: .04em; color: rgba(236, 230, 216, .7); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
html .fp-cabin .fp-who.foe .hpbar > span { left: auto; right: 0; }
html .fp-cabin .fp-top { padding: 0; border-radius: 0; background: none; gap: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
html .fp-cabin .fp-top h1 > span:last-child { font: 400 15px/1 'Share Tech Mono', 'PT Mono', ui-monospace, monospace; letter-spacing: .28em; text-transform: uppercase; color: #ece6d8; }
html .fp-cabin .fp-top h1 > span:first-child { font: 500 11px/1 var(--font-b); letter-spacing: .12em; text-transform: uppercase; color: rgba(236, 230, 216, .5); }
html .fp-cabin .fp-top > .small { font-size: 11px; color: rgba(236, 230, 216, .5); }
html .fp-cabin .fp-snd { top: 14px; translate: none; }
html .fp-cabin .fp-snd .tk-ico, html .fp-cabin .fp-snd .sfx-btn { color: rgba(236, 230, 216, .6); background: none; box-shadow: none; opacity: .8; }
html .fp-cabin .fp-snd .tk-ico:hover, html .fp-cabin .fp-snd .sfx-btn:hover { opacity: 1; color: #ece6d8; }
html .fp-cabin .fp-log { top: var(--hud); }
@media (max-width: 760px) {
  body[data-route="fight"]:has(.fp-cabin) { --hud: 84px; --ft: 0px; }
  html body .fp-cabin .fp-hud { padding: 12px 16px 0; gap: 4px 16px; }
  html .fp-cabin .fp-n b { font-size: 18px; }
  html .fp-cabin .fp-top { top: calc(var(--hud) - 6px); }
  html .fp-cabin .fp-snd { top: calc(var(--hud) + 34px); }
}
@media (max-height: 500px) and (min-width: 600px) {
  body[data-route="fight"]:has(.fp-cabin) { --hud: 50px; --ft: 0px; }
  html body .fp-cabin .fp-hud { padding: 8px 236px 0 14px; gap: 14px; }
  html .fp-cabin .fp-n b { font-size: 15px; }
  html .fp-cabin .fp-who .hpbar { margin-bottom: 0; }
  html .fp-cabin .fp-who .hpbar > span, html .fp-cabin .fp-who.foe .hpbar > span { display: none; }
  html .fp-cabin .fp-top h1 > span:first-child { display: none; }
  html .fp-cabin .fp-top h1 > span:last-child { font-size: 12px; letter-spacing: .18em; white-space: nowrap; }
  html .fp-cabin .fp-panel { top: var(--hud); height: calc(var(--H) - var(--hud)); }
}
/* ---------- Fight screen fit + a softer header (Vova 2026-11-28) ----------
   1) the side columns fill the height: the loadout + TANK ring on the left, the radio + calls + FIRE + buttons on the right
      run from the header (--hud) to the bottom with the same gap top and bottom; the tiles and the radio set take what is left.
      The panel is the picture box (--one-t from the top, --one-h tall), so the columns are placed back in screen terms.
   2) the header's dark fade is a long eased gradient that ends in true transparent (no visible band), a bit taller than the
      header itself (::after, behind its text); on phones the same fade carries ROUND, and the icons sit in one row at the top. */
html body .fp-cabin .fp-hud { background: none; }
html body .fp-cabin .fp-hud::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--hud) + 16px); pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, .62) 0%, rgba(8, 8, 8, .55) 14%, rgba(8, 8, 8, .44) 28%, rgba(8, 8, 8, .32) 42%, rgba(8, 8, 8, .2) 56%,
    rgba(8, 8, 8, .11) 69%, rgba(8, 8, 8, .05) 80%, rgba(8, 8, 8, .015) 90%, rgba(8, 8, 8, 0) 100%); }
/* a film full screen (.fp-out): the picture can be bright sky or fire, so there the fade is the stronger one Vova liked */
html body:has(.fp-vid.fp-out) .fp-cabin .fp-hud::after { height: calc(var(--hud) + 40px);
  background: linear-gradient(180deg, rgba(8, 8, 8, .84) 0%, rgba(8, 8, 8, .76) 14%, rgba(8, 8, 8, .62) 28%, rgba(8, 8, 8, .46) 42%, rgba(8, 8, 8, .3) 56%,
    rgba(8, 8, 8, .17) 69%, rgba(8, 8, 8, .08) 80%, rgba(8, 8, 8, .025) 90%, rgba(8, 8, 8, 0) 100%); }
/* Vova 2026-11-29: the cabin wall shows now, so behind the header: black at the top easing to transparent a little under it
   (a viewport layer of the cabin scene, under the header, over the cabin picture and its wall; not over a full-screen film) */
html body:has(.fp-cabin) .fp-scene.one:not(.fp-out)::before { content: ""; position: fixed; z-index: 2; left: 0; right: 0; top: 0; height: calc(var(--hud) + var(--hfade, 44px)); pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 4, 4, .94) 0%, rgba(4, 4, 4, .9) 30%, rgba(4, 4, 4, .8) 52%, rgba(4, 4, 4, .6) 66%, rgba(4, 4, 4, .38) 77%,
    rgba(4, 4, 4, .18) 87%, rgba(4, 4, 4, .06) 94%, rgba(4, 4, 4, 0) 100%); }
@media (max-width: 760px) { body[data-route="fight"]:has(.fp-cabin) { --hfade: 30px; } }
@media (max-height: 500px) and (min-width: 600px) { body[data-route="fight"]:has(.fp-cabin) { --hfade: 26px; } }
/* legibility from the type itself (the fade is light): a soft dark halo under every header text and icon */
html .fp-cabin .fp-who, html .fp-cabin .fp-top, html .fp-cabin .fp-who .hpbar > span { text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .85), 0 0 16px rgba(0, 0, 0, .6); }
/* the small labels (LV, HP numbers, MISSION, crit) were 50-70% ink: over a bright film they vanished */
html .fp-cabin .fp-n span, html .fp-cabin .fp-who.foe .fp-n span, html .fp-cabin .fp-who .hpbar > span, html .fp-cabin .fp-who.foe .hpbar > span,
html .fp-cabin .fp-top h1 > span:first-child, html .fp-cabin .fp-top > .small { color: rgba(236, 230, 216, .88); }
html .fp-cabin .fp-snd .tk-ico, html .fp-cabin .fp-snd .sfx-btn, html body .fp-cabin .fp-hud::before { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .9)) drop-shadow(0 0 8px rgba(0, 0, 0, .6)); }
/* the cabin picture (.fp-one, the box --one-t ... + --one-h) sat on its wider backdrop (.fp-oneb, a lighter copy) with a hard
   seam right under the header: its top and bottom edges now melt into the backdrop, which is dimmed at the very top */
html .fp-cabin .fp-scene.one .fp-one {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect; }
html .fp-cabin .fp-scene.one .fp-oneb::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, .35) 8%, rgba(8, 8, 8, 0) 18%, rgba(8, 8, 8, 0) 82%, rgba(8, 8, 8, .35) 92%, rgba(8, 8, 8, .7) 100%); }
/* phones (Vova 2026-11-29 on a real phone: "dark areas that are not fully dark, bands"): at scale 1.4 the cabin's sides are off
   screen, so the blurred backdrop only showed as a murky grey-brown field over and under the cabin (up to 220 px on tall phones),
   a blurred, offset copy of the rivets that did not line up with the sharp ones, its dark 8-bit blur and gradient in visible
   steps, and a step where it met the panel; there the backdrop is the panel's own flat black and the cabin's edges fade into it */
/* the old outside camera's poster (fpv_<front>_start.jpg) and the old cockpit (fp_cockpit_<chassis>.png + its lamps) belong to
   the cyber fight: in the tanks cabin they never show, whatever path a failed clip takes (black under the caption instead) */
html .fp-cabin .fp-cam .fp-post, html .fp-cabin .fp-cam .fp-ck, html .fp-cabin .fp-cam .fp-ckfx { display: none !important; }
@media (max-width: 760px) {
  html .fp-cabin .fp-scene.one .fp-oneb { background-image: none !important; background-color: var(--bg); filter: none; transform: none; }
  html .fp-cabin .fp-scene.one .fp-oneb::after { display: none; }
}
@media (min-width: 761px) and (min-height: 501px) {
  body[data-route="fight"]:has(.fp-cabin) { --hpl: 47px; --one-t: calc((var(--hpl) + var(--H)) / 2 - .5266 * var(--one-h)); }   /* Vova: the window frame (bezel 16.0%-89.3% of the box) is centred between the HP bar line and the screen bottom */
  html .fp-cabin .fp-panel > .fp-ringp, html .fp-cabin .fp-panel > .fp-fire { --g: 14px; top: calc(var(--hud) + var(--g) - var(--one-t)); bottom: calc(var(--one-t) + var(--one-h) - var(--H) + var(--g));
    display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; }
  html .fp-cabin .fp-panel > .fp-ringp { padding: 0; background: none; box-shadow: none; }
  html .fp-cabin .fp-ringp > h5 { margin: 0; padding: 10px 12px 6px; border-radius: 12px 12px 0 0; background: rgba(12, 12, 10, .88); }
  html .fp-cabin .fp-ringp > svg.fp-ring { display: block; box-sizing: border-box; width: 100%; height: auto; flex: none; padding: 0 12px 12px; border-radius: 0 0 12px 12px;
    background: rgba(12, 12, 10, .88); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
  html .fp-cabin .fp-ringp > h5 + svg.fp-ring { margin-top: -8px; }   /* one card: the column gap is not between the head and the ring */
  html .fp-cabin .fp-fire > #fgo { flex: none; height: 84px; }
  html .fp-cabin .fp-fire > .fp-acts, html .fp-cabin .fp-fire > .fp-keys { flex: none; }
  html .fp-cabin .fp-panel > * > .sv-fx { position: static; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  html .fp-cabin .sv-fx.l .sv-grid { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  html .fp-cabin .sv-fx.l .sv-t { height: auto; min-height: 0; }
  html .fp-cabin .sv-fx.l .sv-t .art { height: auto; bottom: 44px; }
  html .fp-cabin .sv-fx.r .sv-radio { flex: 1 1 0; height: auto; min-height: 56px; }
  html .fp-cabin .sv-fx.r .sv-calls { flex: none; }
}
@media (max-width: 760px) {
  /* the aim overlay inside the glass is magnified 1.4x with the cabin: ~65% of its old phone size (thinner lines, smaller chevron, labels) */
  html .fp-cabin .fp-scale { height: 20px; } html .fp-cabin .fp-scale .ln { top: 10px; height: 1.3px; }
  html .fp-cabin .fp-scale .tk { top: 6px; width: 1.4px; height: 9px; translate: -.7px 0; } html .fp-cabin .fp-scale .tk.s { top: 8px; height: 5px; }
  html .fp-cabin .fp-scale .lb { top: -4px; font-size: 8px; }
  html .fp-cabin .fp-mark svg { width: 42px; height: 52px; } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 9px); } html .fp-cabin .fp-scale { top: calc(var(--sc-line) - 10px); }
  /* the top bar: the icons in one row along the top edge (the small logo left), names + HP under them, ROUND under those */
  body[data-route="fight"]:has(.fp-cabin) { --hud: 112px; }
  html body .fp-cabin .fp-hud { padding: 50px 12px 0; }
  html body .fp-cabin .fp-hud::before { display: block; left: 12px; top: 6px; width: 64px; height: 30px; translate: none; opacity: .85; }
  html .fp-cabin .fp-snd { top: 2px; right: 4px; gap: 0; }
  html .fp-cabin .fp-top { top: calc(var(--hud) - 22px); }
  html body .fp-cabin .fp-hud::after { height: calc(var(--hud) + 10px); }
  /* the loadout band fills the gap between the glass and the controls, centred in it */
  html .fp-cabin .sv-fx { --sp: calc((var(--vis) - var(--one-h)) / 2 - .22 * var(--one-h)); --th2: clamp(64px, calc(var(--sp) - 24px), 108px);
    --sv-gap: max(6px, calc((var(--sp) - var(--th2)) / 2)); }
  html .fp-cabin .sv-fx .sv-t { height: var(--th2); }
  html .fp-cabin .sv-fx .sv-t .art { height: calc(var(--th2) - 40px); }
  html .fp-cabin .sv-fx.r .sv-radio { height: var(--th2); }
}
@media (max-height: 500px) and (min-width: 600px) {
  html body .fp-cabin .fp-hud::after { height: calc(var(--hud) + 14px); }
  /* sideways the glass is small too: the aim overlay at ~65% of the desktop size */
  html .fp-cabin .fp-scale { height: 30px; } html .fp-cabin .fp-scale .ln { top: 15px; height: 1.5px; }
  html .fp-cabin .fp-scale .tk { top: 9px; width: 1.5px; height: 12px; translate: -.75px 0; } html .fp-cabin .fp-scale .tk.s { top: 12px; height: 6px; }
  html .fp-cabin .fp-scale .lb { top: -5px; font-size: 11px; }
  html .fp-cabin .fp-mark svg { width: 78px; height: 98px; } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 17px); } html .fp-cabin .fp-scale { top: calc(var(--sc-line) - 15px); }
}
/* ---- plug-in art start ---- */
/* generated art that plugs in by file name (js/views-fight-fp.js panoFront / cabUp; none of it exists today) */
html .fp-pano .strip > video.pl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; pointer-events: none; }   /* fp_pano_live*.mp4 over the picture, under the turn blur */
html .fp-pano .strip > img.pb.css { filter: blur(7px); }   /* a front's panorama without its own blurred copy */
/* the cabin outpainted upward (--cab-up > 0): the box keeps today's 2:1 crop (the bottom of the taller picture), .fp-oneup shows
   the part above it, running down under the box's faded top edge so both meet without a seam; its own top melts into the backdrop */
html .fp-scene.cabup .fp-one > img.base, html .fp-scene.cabup .fp-glass img { object-position: 50% 100%; }   /* the 2:1 photos of the other turret positions are unaffected */
html #repFilm img { object-position: 50% 100%; }
.fp-oneup { display: none; }
html .fp-scene.one.cabup .fp-oneup { display: block; position: fixed; z-index: 1; left: calc(50vw - var(--S) / 2); width: var(--S); pointer-events: none;
  top: calc(var(--one-t) - var(--cab-up) * var(--one-h)); height: calc((var(--cab-up) + .1) * var(--one-h)); background: center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 14%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 14%); mask-composite: intersect; }
@media (max-width: 760px) {   /* phones show the cabin at scale(1.4): the part above it too, about the same point */
  html .fp-scene.one.cabup .fp-oneup { transform: scale(1.4); transform-origin: 49.792% calc((var(--cab-up) + .52656) * var(--one-h)); }
}
/* ---- the new cabin (Vova 2026-11-29: even corner radii, the window higher; proto/fp-test/cons/cab2.py, p0_cabin_up): its glass
   x 317..1595, y 191..820 of the 1920 x 960 box, the frame mirrored top to bottom so all 4 corners match (was 328..1595 x 85..797, uneven radii); the far tank sits high in the glass,
   ABOVE the aim scale line (Vova: it was hidden behind it) */
html .fp-cabin { --sc-line: 35.53%; --mk-apex: 26.41%; }   /* in % of the glass: the scale line under the tank, the chevron's apex just under it */
html .fp-cabin .fp-glass, html .fp-cabin .fp-view, html .fp-cabin .fp-dmg, html .fp-cabin .fp-pano, html .fp-cabin .fp-port .fp-amb, html .fp-cabin .fp-ff {
  -webkit-mask-image: url("/assets/img/fp_glass_mask2.png?v=2"); mask-image: url("/assets/img/fp_glass_mask2.png?v=2"); }
html .fp-cabin .fp-port { left: 16.510%; right: 16.927%; top: 19.896%; bottom: 14.583%; }
html .fp-cabin .fp-pano .strip { left: -23.125%; top: 11.4583%; width: 145.8333%; height: 82.2917%; }   /* pano-z.py: box x -444..2356, y 110..900 (4 sectors each way); the tank on x 956, ~22% down the glass */
html .fp-cabin .fp-pano img.gun { left: 45.542%; top: 58.708%; }   /* the barrel's root 39 px under the glass bottom, as before */
html .fp-cabin .fp-port .fp-amb { left: -24.804%; top: -30.366%; width: 150.23%; height: 152.62%; }   /* the whole box again, from the new port */
html .fp-cabin .fp-port .fp-amb .haze { top: 25.33%; }   /* follows the horizon (pano-z.py: box y 266) */
html .fp-cabin .fp-dmg i { inset: auto; left: -0.208%; top: 12.254%; width: 100%; height: 86.867%; }   /* glass damage pictures (and the crack) drawn for the old glass box, mapped onto the new one */
html .fp-cabin .fp-scale { top: calc(var(--sc-line) - 22px); } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 26px); }
@media (max-width: 760px) {
  html .fp-cabin { --sc-line: 44.17%; }   /* the small chevron's bars would sit on the 0 label: the line a little lower */
  html .fp-cabin .fp-scale { top: calc(var(--sc-line) - 10px); } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 9px); }
  html .fp-cabin .fp-scene.one .fp-one { transform-origin: 49.792% 52.656%; }   /* the 1.4x phone zoom about the new glass centre */
}
@media (max-height: 500px) and (min-width: 600px) {
  html .fp-cabin { --sc-line: 42.25%; }
  html .fp-cabin .fp-scale { top: calc(var(--sc-line) - 15px); } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 17px); }
}
/* desktop: a slightly narrower window (Vova 2026-11-29: the loadout / support panels end at x 342 and start at 1578 of the box on
   every desktop size; cab4.py takes 300 px out of the middle: glass 467..1445, the frame 360..1556); fp_one_Cd.jpg via theme.json
   ui.fpCabDesk, the turret step in views-fight-fp.js cabStep(); phones keep the wide window */
@media (min-width: 761px) and (min-height: 501px) {
  html .fp-cabin .fp-glass, html .fp-cabin .fp-view, html .fp-cabin .fp-dmg, html .fp-cabin .fp-pano, html .fp-cabin .fp-port .fp-amb, html .fp-cabin .fp-ff {
    -webkit-mask-image: url("/assets/img/fp_glass_mask_d.png?v=3"); mask-image: url("/assets/img/fp_glass_mask_d.png?v=3"); }
  html .fp-cabin .fp-port { left: 26.406%; right: 26.823%; }
  html .fp-cabin .fp-port .fp-amb { left: -56.459%; width: 213.808%; }
  html .fp-cabin .fp-dmg i { left: 14.589%; width: 70.405%; }   /* the damage pictures (drawn for 318..1602) onto 504..1408, just outside the glass 507..1405 */
  /* Vova (1280 x 700 laptop): the window bigger, mainly taller: the whole cabin x1.18 about the glass centre (CUT 380 keeps it
     only a little wider); the glass stays clear of the panels, the frame may tuck under their outer edge */
  html .fp-cabin .fp-scene.one .fp-one { transform: scale(1.18); transform-origin: 49.792% 52.656%; }
  html .fp-scene.one.cabup .fp-oneup { transform: scale(1.18); transform-origin: 49.792% calc((var(--cab-up) + .52656) * var(--one-h)); }
  /* a finer aim scale and chevron (sizes before the x1.18): thin line, small digits and ticks */
  html .fp-cabin .fp-scale { height: 26px; top: calc(var(--sc-line) - 13px); } html .fp-cabin .fp-scale .ln { top: 13px; height: 1px; opacity: .7; }
  html .fp-cabin .fp-scale .tk { top: 8px; width: 1px; height: 10px; translate: -.5px 0; } html .fp-cabin .fp-scale .tk.s { top: 10px; height: 6px; }
  html .fp-cabin .fp-scale .lb { top: -7px; font-size: 11px; }
  html .fp-cabin .fp-mark svg { width: 56px; height: 70px; } html .fp-cabin .fp-mark { top: calc(var(--mk-apex) - 12px); }
}
/* Vova 2026-11-29: every side block is the Loadout kind of container: the same translucent panel (rgba(12, 12, 10, .88)),
   padding 10 / 12 / 12, radius 12, 8 px between blocks; inside, cards in the shell cards' grey (radius 10, 6 px apart) */
@media (min-width: 761px) and (min-height: 501px) {
  html .fp-cabin .fp-panel > * > .sv-fx.r { gap: 8px; }
  html .fp-cabin .sv-radio { box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
  html .fp-cabin .sv-radio::before { left: 12px; right: 12px; top: 10px; bottom: 64px; }
  html .fp-cabin .sv-hs { left: 12px; right: 12px; bottom: 12px; }
  html .fp-cabin .sv-calls { gap: 6px; padding: 10px 12px 12px; background: rgba(12, 12, 10, .88); }
  html .fp-cabin .sv-row { background: radial-gradient(120% 90% at 50% 30%, #2a2822, #171613 72%); }
  /* FIRE, the three buttons and the keys: one panel behind them (the column has no wrapper: the panel is drawn under its last 3 children) */
  html .fp-cabin .fp-panel > .fp-fire { isolation: isolate; }
  html .fp-cabin .fp-panel > .fp-fire::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 197px;
    border-radius: 12px; background: rgba(12, 12, 10, .88); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); pointer-events: none; }
  @supports (anchor-name: --a) {
    html .fp-cabin .fp-fire > #fgo { anchor-name: --tk-fire; }
    html .fp-cabin .fp-panel > .fp-fire::after { top: calc(anchor(--tk-fire top) - 10px); height: auto; }
  }
  html .fp-cabin .fp-fire > #fgo { width: auto; margin: 18px 12px 0; }   /* 8 px under the block above + the panel's 10 px top padding */
  html .fp-cabin .fp-fire > .fp-acts { margin: 0 12px; }
  html .fp-cabin .fp-fire > .fp-keys { margin: 0 6px 12px; flex-wrap: nowrap; white-space: nowrap; gap: 4px 10px; }
}
/* Vova 2026-11-29: the side block panels more transparent (.88 -> .72) so the cabin wall shows through; the inner cards stay */
html .fp-cabin .sv-fx.l, html .fp-cabin .fp-ringp > h5, html .fp-cabin .fp-ringp > svg.fp-ring, html .fp-cabin .sv-calls { background: rgba(12, 12, 10, .72); }
@media (min-width: 761px) and (min-height: 501px) { html .fp-cabin .sv-radio { background: rgba(12, 12, 10, .72); } html .fp-cabin .fp-panel > .fp-fire::after { background: rgba(12, 12, 10, .72); } }
/* the header icons (Vova 2026-11-29): one outline style and size; music / sound off are crossed out (proto/fp-test/cons/icons.py) */
html .sfx-btn > svg { display: none; }
html .sfx-btn::before { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor; -webkit-mask: var(--ico) center / 100% 100% no-repeat; mask: var(--ico) center / 100% 100% no-repeat; }
html .sfx-btn[data-sfx="music"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5.5l10-2V16'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='16.5' cy='16' r='2.5'/%3E%3Cpath d='M3.5 3.5l17 17' stroke-width='2'/%3E%3C/svg%3E"); }
html .sfx-btn[data-sfx="music"].on { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5.5l10-2V16'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='16.5' cy='16' r='2.5'/%3E%3C/svg%3E"); }
html .sfx-btn[data-sfx="fx"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3Cpath d='M3.5 3.5l17 17' stroke-width='2'/%3E%3C/svg%3E"); }
html .sfx-btn[data-sfx="fx"].on { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E"); }
html .sfx-btn { display: inline-grid; place-items: center; }
html .fp-cabin .fp-snd .sfx-btn, html .fp-cabin .fp-snd .sfx-btn.on { color: rgba(236, 230, 216, .6) !important; }   /* on or off: the same ink as the other icons, the strike says it */
html .fp-cabin .fp-snd .sfx-btn:hover { color: #ece6d8 !important; }
html .fp-cabin .fp-snd > * { vertical-align: middle; }
/* the support rows: the name is never cut by the Call button (Vova 2026-11-29, proto/fp-test/cons/rows-fit.py) */
html .fp-cabin .sv-row { position: relative; }
html .fp-cabin .sv-row .sv-call:not(.ask) { gap: 0; padding: 0 9px; }
html .fp-cabin .sv-row .sv-call kbd { position: absolute; left: 5px; top: 5px; background: rgba(10, 10, 9, .78); color: #c9c1b2; }
html .fp-cabin .sv-row .t b { overflow-wrap: break-word; }
/* the support block (Vova 2026-11-29): one Loadout-style container: title, radio, rows (proto/fp-test/cons/sup-block.py) */
@media (min-width: 761px) and (min-height: 501px) {
  html .fp-cabin .fp-panel .sv-fx.r { gap: 6px; padding: 10px 12px 12px; border-radius: 12px; background: rgba(12, 12, 10, .72); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
  html .fp-cabin .fp-panel .sv-fx.r .sv-radio { background: radial-gradient(120% 90% at 50% 30%, #2a2822, #171613 72%); border-radius: 10px; box-shadow: none; }
  html .fp-cabin .fp-panel .sv-fx.r .sv-radio::before { display: none; }
  html .fp-cabin .fp-panel .sv-fx.r .sv-radio .set { top: 50%; width: min(100% - 16px, 100cqh - 12px, 340px); }
  html .fp-cabin .fp-panel .sv-fx.r .sv-calls { padding: 0; gap: 6px; border-radius: 0; background: none; box-shadow: none; }
}
/* the live aim panorama (Vova 2026-11-29): fp_pano_live.mp4 covers only the clip's own columns of the strip, its edges
   already blended into the still inside the video (proto/fp-test/cons/live-pano.py prints this box) */
html .fp-cabin .fp-pano .strip > video.pl { left: 0; width: 63.7381%; right: auto; object-fit: fill; }   /* from the strip's left edge (its side extension too) to the feathered right edge */
/* its right edge lies inside the glass: a browser that decodes the video's colours a shade off the JPEG's (Safari, some Android
   GPUs) showed it as a vertical seam; the last 6 % fade out in CSS too, so any mismatch melts instead of standing as a line */
html .fp-cabin .fp-pano .strip > video.pl { -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
/* ---- plug-in art end ---- */
/* ---------- end fight screen fit ---------- */
/* the step hints in the cabin (Vova 2026-11-28: less clutter): no slab, small typed text on a soft dark haze, a ✕ that hides
   them for good; the header's ? brings them back (body.tk-help) */
html .fp-cabin .fp-panel .tut { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 22px; border-radius: 0; box-shadow: none;
  background: radial-gradient(ellipse at center, rgba(6, 6, 5, .72) 0%, rgba(6, 6, 5, .45) 55%, rgba(6, 6, 5, 0) 100%);
  font: 400 13px/1.5 'Share Tech Mono', 'PT Mono', ui-monospace, monospace; letter-spacing: .04em; color: rgba(236, 230, 216, .82); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
html .fp-cabin .fp-panel .tut b { color: #e2c27a; font-weight: 400; }
html .fp-cabin .fp-panel .tut.off { display: none; }
html body.tk-help .fp-cabin .fp-panel .tut.off { display: flex; }
.tut .tut-x { all: unset; box-sizing: border-box; flex: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; margin: -10px -6px -10px 0;
  font: 400 14px/1 var(--font-b); color: rgba(236, 230, 216, .55); }
.tut .tut-x:hover { color: #ece6d8; }
html .fp-cabin .tut-hl { box-shadow: 0 0 0 1px rgba(226, 194, 122, .7) !important; }
/* final polish pass (2026-11-28, all routes at 1280 and 390) */
.dist-tab .sic { margin-right: 5px; font-style: normal; filter: grayscale(1) brightness(1.5) contrast(.9); opacity: .85; }   /* Workshop slot tabs: the same neutral icons */
.tk-hg-chips small { font-size: 11px; }                                                                      /* the Hangar's KPI captions were 10 px */
@media (max-width: 760px) {
  html #main .dist-tab { min-height: 40px; display: inline-flex; align-items: center; }                     /* phone taps */
  html #main .tk-tabs button { min-height: 40px; }
  /* tables fit the phone: no 520 px minimum, tighter cells, long names wrap (Swap Yard, Rankings scrolled 536/358) */
  html #main table.t { min-width: 0; }
  .snd-row { grid-template-columns: auto minmax(0, 1fr) 44px; row-gap: 4px; } .snd-row .snd-l { grid-column: 1 / -1; }   /* Settings: the label above its switch and slider (it was squeezed into a 1-word column) */
  html #main table.t td, html #main table.t th { padding-left: 5px; padding-right: 5px; overflow-wrap: anywhere; }
  html #main table.t th { overflow-wrap: normal; }
}

/* ---- product art is big and whole; the text sits on a scrim over the empty floor under the object (owner's rule, 2026-11-28) ----
   no masks on the picture itself: the gradient lives on the text block that overlaps the picture's lower edge */
.tk-dock-on #main .enemy:not(.boss) { container-type: inline-size; }
.tk-dock-on #main .enemy:not(.boss) .art { --nat: 100cqw; --slot: clamp(140px, calc(100vh - 622px), var(--nat)); aspect-ratio: auto; height: min(var(--slot), var(--nat)); margin-bottom: 0; background-position: center 60%; }
.tk-dock-on #main .enemy .body { position: relative; margin-top: -48px; padding-top: 30px;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0) 0, rgba(20, 20, 19, .85) 28px, var(--panel) 56px); }
.tk-dock-on body:not([data-route="fight"]) #main .pack { container-type: inline-size; padding: 0 0 20px; overflow: hidden; background: var(--panel); }
.tk-dock-on #main .panel .pack { background: #232321; }   /* = --tint over --panel, solid so the scrim can end in it */
.tk-dock-on #main .pack .art { --nat: 75cqw; --slot: clamp(160px, calc(100vh - 600px), var(--nat)); height: min(var(--slot), var(--nat)); max-height: none; aspect-ratio: auto; margin: 0; border-radius: 0; background-size: cover; background-position: center; }
.tk-dock-on #main .pack > :not(.art) { position: relative; margin-left: 20px; margin-right: 20px; }
.tk-dock-on #main .pack > h3:not(.art) { margin: -60px 0 0; padding: 34px 20px 4px;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0) 0, rgba(20, 20, 19, .85) 30px, var(--panel) 60px); }
.tk-dock-on #main .panel .pack > h3:not(.art) { background: linear-gradient(180deg, rgba(35, 35, 33, 0) 0, rgba(35, 35, 33, .85) 30px, #232321 60px); }
.tk-dock-on #main .card-item { container-type: inline-size; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.tk-dock-on #main .panel .card-item { background: #232321; }
.tk-dock-on #main .card-item > .item { --nat: min(75cqw, 250px); --slot: clamp(96px, calc(100vh - 660px), var(--nat)); width: 100%; aspect-ratio: auto; flex: 1 0 var(--slot); height: auto; margin: 0; overflow: visible; border-radius: 0; box-shadow: none; background: none; }
.tk-dock-on #main .card-item > .item .art { inset: auto auto auto 50%; top: calc(50% + 10px); height: min(calc(100% + 26px), calc(var(--nat) - 28px)); width: auto; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 0; background-size: cover; background-position: center;   /* the whole square render, room for the text below it */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }   /* only the empty margins of the render blend into the card */
.tk-dock-on #main .card-item > .item + * { position: relative; margin-top: -46px; padding: 30px 14px 14px;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0) 0, rgba(20, 20, 19, .85) 26px, var(--panel) 52px); }
.tk-dock-on #main .panel .card-item > .item + * { background: linear-gradient(180deg, rgba(35, 35, 33, 0) 0, rgba(35, 35, 33, .85) 26px, #232321 52px); }
@media (max-width: 560px) {
  .tk-dock-on #main .card-item > .item { --nat: 56cqw; }
}
@media (max-width: 760px) {   /* the base theme puts a small picture left of the text here; the tanks keep the big picture on top */
  .tk-dock-on #main .enemy:not(.boss) { flex-direction: column; }
  .tk-dock-on #main .enemy:not(.boss) .art { width: auto; --nat: 80cqw; --slot: clamp(140px, calc(100vh - 600px), var(--nat)); }
  .tk-dock-on #main .enemy:not(.boss) .body { padding: 30px 14px 14px; }
}
/* Swap Yard: three post cards a row on a wide screen (with two, each picture was a small island in a very wide card) */
@media (min-width: 1100px) { .tk-dock-on #main .grid.p2p-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Raids, "Open a raid": a row of picture cards (the boss on top, the name, the button) instead of cramped bordered rows */
.tk-dock-on #main .raid-pick { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tk-dock-on #main .raid-opt { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 14px; border: 0; border-radius: 12px; background: #232321; overflow: hidden; }
.tk-dock-on #main .raid-opt-pic { width: 100%; aspect-ratio: 16 / 10; border-radius: 0; }
.tk-dock-on #main .raid-opt-t { padding: 12px 14px 10px; }
.tk-dock-on #main .raid-opt-t b { font-size: 16px; }
.tk-dock-on #main .raid-opt .btn { margin: auto 14px 0; }
@media (max-width: 560px) {   /* phone: one card a row, the boss picture fills its left side */
  .tk-dock-on #main .raid-pick { grid-template-columns: 1fr; gap: 8px; }
  .tk-dock-on #main .raid-opt { display: grid; grid-template-columns: 32% minmax(0, 1fr); grid-template-rows: 1fr auto; padding: 0; }
  .tk-dock-on #main .raid-opt-pic { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 0; }
  .tk-dock-on #main .raid-opt-t { padding: 8px 12px 4px; } .tk-dock-on #main .raid-opt-t b { font-size: 15px; }
  .tk-dock-on #main .raid-opt .btn { margin: 0 12px 8px; justify-self: start; }
}
.tk-dock-on #main .card-item > .item + * { align-self: stretch; }   /* the body spans the card (the swap cards set align-items: start) */
/* ---- adaptive: without the height for picture-on-top cards (most laptops, phones) the picture moves to the card's left and
   fills it top to bottom, the text beside it; the cards are no taller than before the picture work ---- */
@media (max-height: 900px) {
  .tk-dock-on #main .card-item { display: grid; grid-template-columns: minmax(88px, 32%) minmax(0, 1fr); align-items: stretch; }
  .tk-dock-on #main .card-item > .item { flex: none; height: auto; min-height: 88px; }
  .tk-dock-on #main .card-item > .item .art { inset: 0; top: 0; height: auto; width: auto; aspect-ratio: auto; transform: none; background-size: contain; background-repeat: no-repeat; }
  .tk-dock-on #main .card-item > .item + *, .tk-dock-on #main .panel .card-item > .item + * { margin-top: 0; padding: 14px 14px 14px 4px; background: none; align-self: stretch; }
}
@media (max-width: 760px) and (max-height: 900px) {
  .tk-dock-on #main .enemy:not(.boss) { flex-direction: row; }
  .tk-dock-on #main .enemy:not(.boss) .art { width: 40%; flex: none; height: auto; min-height: 140px; margin: 0; background-position: center 60%; }
  .tk-dock-on #main .enemy:not(.boss) .body { margin-top: 0; padding: 12px 14px; background: none; }
}
@media (max-width: 560px) and (max-height: 900px) {   /* phone: a narrower picture column, so the text wraps no more than it did */
  .tk-dock-on #main .card-item { grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); }
  .tk-dock-on #main .card-item > .item + *, .tk-dock-on #main .panel .card-item > .item + * { padding: 12px 12px 12px 2px; }
}
/* the fence grid (Sell tab): the tiles share the row out instead of sitting in a corner of empty tracks */
.tk-dock-on #main .items:not(.p2p-picks) { grid-template-columns: repeat(auto-fit, minmax(80px, 104px)); gap: 10px; }
@media (max-width: 560px) { .tk-dock-on #main .items:not(.p2p-picks) { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
@media (max-height: 900px) {
  .tk-dock-on #main .card-item > .item .art { -webkit-mask-image: radial-gradient(circle closest-side, #000 66%, transparent); mask-image: radial-gradient(circle closest-side, #000 66%, transparent); }
}
@media (max-width: 560px) {
  .tk-dock-on #main .raid-opt-pic { -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent); mask-image: linear-gradient(90deg, #000 68%, transparent); }
}
