/* Ashen Days: the whole stylesheet. Dark cinematic UI over full-bleed generated art (the "scene" layer), warm firelight
   and rust accents plus one signal red.
   Type: Sofia Sans Condensed (titles, numbers) + Manrope (text) + Ubuntu Mono (notes), self-hosted in css/fonts.css. Mobile first. */
:root {
  --paper: #0d0c0a; --card: rgba(24, 21, 18, .86); --card2: rgba(255, 236, 210, .07); --card3: rgba(255, 236, 210, .14);
  --ink: #f1e9dc; --ink2: #cbbfad; --mute: #958b7b;
  --accent: #d63a2b; --accent-d: #a8281d; --accent-soft: rgba(214, 58, 43, .2);
  --fire: linear-gradient(180deg, #ee6a35 0%, #c8321f 100%); --fire-h: linear-gradient(180deg, #f57c45 0%, #d63a2b 100%);
  --ember: #f08a45;
  --ok: #8fc06c; --ok-soft: rgba(143, 192, 108, .16); --warn: #eba04a; --warn-soft: rgba(235, 160, 74, .16); --info: #6ea6cf;
  --night: #0a0908; --night2: #15130f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .35);
  --shadow-h: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(240, 138, 69, .25);
  --r: 14px; --r-s: 9px;
  --fd: 'Sofia Sans Condensed', 'Sofia Fallback', 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --fb: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm: 'Ubuntu Mono', ui-monospace, monospace;
  /* names the shared view code uses inline */
  --text: var(--ink); --line: rgba(255, 236, 210, .08); --line2: rgba(255, 236, 210, .16);
  --cyan: var(--info); --mag: var(--accent); --yel: var(--warn); --green: var(--ok); --red: var(--accent);
  --font-d: var(--fd); --font-b: var(--fb);
  --r-common: #9a9384; --r-uncommon: #8fc06c; --r-rare: #5aa2e8; --r-epic: #b580dc; --r-legendary: #f2aa3c;
  --gut: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--fb); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fd); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; } h4 { font-size: 13px; }
p { margin: 0 0 8px; }
img { max-width: 100%; }
.small { font-size: 13px; } .mute { color: var(--mute); } .num { font-family: var(--fm); font-variant-numeric: tabular-nums; }
.warn { color: var(--warn); } .bad { color: var(--accent); } .accent { color: var(--accent); }
.sp { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mobile-only { display: none; }
input, select, textarea { font: 15px var(--fb); color: var(--ink); background: var(--card); border: 0; border-radius: var(--r-s); padding: 10px 12px; box-shadow: inset 0 0 0 1.5px var(--card3); outline: none; max-width: 100%; }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--ink2); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; padding: 0; box-shadow: none; }
input[type=range] { accent-color: var(--accent); box-shadow: none; padding: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 600 12px var(--fb); color: var(--mute); padding: 8px 10px; }
table.t td { padding: 9px 10px; background: var(--card); }
table.t tr:nth-child(odd) td { background: rgba(34, 30, 26, .9); }
details summary { cursor: pointer; }

/* ---------- buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 var(--fb); color: #fff; background: var(--fire);
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; text-decoration: none; transition: box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { box-shadow: var(--shadow-h); text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.sm { font-size: 13px; padding: 7px 13px; }
.btn:hover { background: var(--fire-h); }
.btn.big { font-size: 16px; padding: 15px 28px; box-shadow: 0 8px 28px rgba(214, 58, 43, .35); }
.btn.big:hover { box-shadow: 0 10px 34px rgba(240, 106, 53, .5); }
.btn.ghost, .btn.ghost:hover { background: rgba(255, 236, 210, .1); color: var(--ink); }
.btn.mag { background: var(--accent); } .btn.yel { background: var(--warn); } .btn.red-t { color: var(--accent); }
.btn.on { background: var(--ink); color: var(--night); }
.tag { display: inline-block; font: 600 12px var(--fb); padding: 3px 9px; border-radius: 999px; background: var(--card2); color: var(--ink2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.bad { background: var(--accent-soft); color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px var(--fb); font-style: normal; }
.tmr { margin-left: 6px; font: 500 11px var(--fm); color: var(--mute); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.chip .k { color: var(--mute); font-size: 12px; } .chip .v { font-weight: 600; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--card2); border-radius: 999px; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 600 13px var(--fb); color: var(--ink2); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs, .dist-tabs, .chat-tabs, .legal-tabs, .p2p-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dist-tab, .tabs > *, .p2p-tabs > *, .legal-tabs > * { padding: 8px 14px; border-radius: 999px; background: var(--card2); font: 600 13px var(--fb); cursor: pointer; color: var(--ink2); border: 0; }
.dist-tab.on, .tabs > .on, .p2p-tabs > .on, .legal-tabs > .on { background: var(--ink); color: var(--night); }
.dist-tab.lock { opacity: .45; cursor: default; }

/* ---------- bars ---------- */
.bar, .meter { display: block; position: relative; height: 6px; border-radius: 99px; background: var(--card3); overflow: hidden; min-width: 40px; }
.bar > i, .meter > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--ink2); transition: width .5s; }
.bar.hp > i, .meter.hp > i { background: var(--accent); }
.meter.st > i { background: var(--warn); } .meter.xp > i, .bar.xp > i { background: var(--ok); }
.bar.load > i { background: var(--info); } .bar.load.over > i { background: var(--accent); }

/* ---------- panels and page heads ---------- */
.panel { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.panel.mag { background: rgba(60, 26, 20, .88); } .panel h3 { margin-bottom: 10px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 4px 0 16px; }
.page-head > div:first-child { flex: 1 1 320px; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 6px 0 0; color: var(--ink2); max-width: 720px; }
.page-head .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kicker { font: 600 12px var(--fb); color: var(--mute); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; } .kv span { color: var(--mute); }
.hint-bar { display: grid; gap: 8px; margin-bottom: 14px; }
.hint { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-s); background: var(--warn-soft); font-size: 14px; }
.hint-t { flex: 1 1 200px; } .hint-links { display: flex; gap: 6px; flex-wrap: wrap; }
.first-win, .note { padding: 12px 14px; border-radius: var(--r-s); background: var(--card2); margin: 0 0 14px; font-size: 14px; }
.note.warm, .first-win.mag { background: var(--warn-soft); }
.verify-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-s); background: var(--warn-soft); font-size: 14px; }

/* ---------- art and placeholders ---------- */
.art { position: relative; background: var(--card2) center / cover no-repeat; overflow: hidden; }
.art:not(.loaded)::after { content: attr(data-label); position: absolute; inset: auto 8px 8px; font: 600 11px var(--fb); color: var(--mute); text-align: center; }
.art.loaded::after { display: none; }

/* ---------- items, slots, tooltip ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.item { aspect-ratio: 1; position: relative; border-radius: 10px; background: var(--card2); cursor: pointer; overflow: hidden; box-shadow: inset 0 -3px 0 currentColor; color: var(--r-common); }
.item .art { position: absolute; inset: 4px; background-color: transparent; border-radius: 8px; }
.item.empty { background: rgba(255, 236, 210, .04); box-shadow: none; cursor: default; }
.item.r1, .r1 { color: var(--r-uncommon); } .item.r2, .r2 { color: var(--r-rare); } .item.r3, .r3 { color: var(--r-epic); } .item.r4, .r4 { color: var(--r-legendary); }
.item.r0, .r0 { color: var(--r-common); }
.item .lv { position: absolute; top: 3px; right: 5px; font: 600 10px var(--fm); color: var(--ink2); z-index: 2; }
#tip { position: fixed; z-index: 500; display: none; pointer-events: none; width: 260px; background: var(--night); color: #efe9de; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); font-size: 13px; }
#tip .t { font: 700 14px var(--fb); color: currentColor; } #tip .sub { color: #a59d8f; font-size: 12px; margin-bottom: 6px; }
#tip .ln { color: #efe9de; } #tip .ln.af { color: #a8cf8e; } #tip .ln.bad { color: #f0907f; } #tip .cmp { margin-top: 6px; color: #a59d8f; }
#tip.r1 .t { color: #a8cf8e; } #tip.r2 .t { color: #8cbbe8; } #tip.r3 .t { color: #cfa3e2; } #tip.r4 .t { color: #f0c068; }

/* ---------- toasts, dialogs ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 86px; display: grid; gap: 8px; z-index: 600; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--night); color: #f4efe6; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; animation: tin .2s; }
.toast.err { background: var(--accent-d); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 900px) { .toast-wrap { bottom: 24px; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 4, 3, .72); display: grid; place-items: center; z-index: 400; padding: 16px; overflow-y: auto; }
.dlg { position: relative; width: min(480px, 100%); background: #1b1815; border-radius: 18px; padding: 22px 20px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--card2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.dlg-k { font: 600 12px var(--fb); color: var(--accent); margin-bottom: 4px; } .dlg-m { color: var(--mute); font-size: 13px; margin-top: 4px; }
.dlg-b { margin: 12px 0 16px; } .dlg-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--night); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #f08a5d 0 30%, var(--accent) 31% 60%, transparent 61%); }
.brand-name { font: 900 15px/1 var(--fd); letter-spacing: .02em; text-transform: uppercase; }

/* ---------- app shell ---------- */
#app { min-height: 100vh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
#top { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px var(--gut); background: rgba(10, 9, 8, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#top .brand { order: 0; } #top .brand-name { font-size: 13px; }
#top .top-tools { order: 1; margin-left: auto; display: flex; gap: 6px; align-items: center; }
#top .res { order: 2; flex: 1 1 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.pill .k { color: var(--mute); font-size: 12px; } .pill .v { font-weight: 600; } .pill small { color: var(--mute); font-weight: 500; }
.pill .meter { width: 38px; height: 5px; }
.pill.who b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.who .lv { color: var(--mute); }
.pill.prem { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.coin { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.coin.tk { background: radial-gradient(circle at 35% 35%, #e9d39a, #a8741a); }
.coin.ig { border-radius: 3px; width: 16px; height: 10px; background: linear-gradient(160deg, #f6dc8a, #c0901e); }
@media (max-width: 699px) { .pill.who, .pill.st .meter, .pill.hp .meter { display: none; } }
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(10, 9, 8, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
html #nav { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.tabs-main { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; max-width: 640px; margin: 0 auto; }
.tabs-main .tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: #a69e90; font: 600 11px var(--fb); text-decoration: none !important; }
.tabs-main .tab svg { width: 22px; height: 22px; fill: currentColor; }
.tabs-main .tab.on { color: #fff; background: rgba(255, 236, 210, .08); }
.tabs-main .tab.on .ti, .tabs-main .tab.on svg { color: var(--ember); }
.tabs-main .tab .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
#subnav { padding: 4px var(--gut) 0; max-width: 1180px; margin: 0 auto; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 6px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs .sub { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card2); color: var(--ink2); font: 600 13px var(--fb); text-decoration: none !important; display: inline-flex; align-items: center; }
.subtabs .sub.on { background: var(--ink); color: var(--night); }
.fightnow { display: block; margin: 6px 0; padding: 10px 14px; border-radius: 12px; background: var(--fire); color: #fff !important; font-weight: 600; text-align: center; }
#main { max-width: 1180px; margin: 0 auto; padding: 8px var(--gut) 30px; }
@media (min-width: 900px) {
  #app { padding-bottom: 0; }
  #top { flex-wrap: nowrap; padding: 12px 28px; }
  #top .res { order: 1; flex: 1; justify-content: flex-end; }
  #top .top-tools { order: 2; margin-left: 0; }
  #nav, html #nav { position: sticky; top: 58px; bottom: auto; padding: 0 28px 6px; background: linear-gradient(180deg, rgba(10, 9, 8, .72), rgba(10, 9, 8, 0)); backdrop-filter: none; box-shadow: none; z-index: 49; }
  .tabs-main { display: flex; gap: 4px; max-width: 1180px; padding: 0 0 2px; }
  .tabs-main .tab { flex-direction: row; gap: 8px; padding: 10px 18px; font-size: 14px; color: var(--ink2); border-radius: 999px; }
  .tabs-main .tab svg { width: 18px; height: 18px; }
  .tabs-main .tab:hover { background: var(--card2); }
  .tabs-main .tab.on { background: var(--fire); color: #fff; } .tabs-main .tab.on svg { color: #fff; }
  .tabs-main .tab .dot { top: 8px; right: 8px; }
  #subnav { padding: 10px 28px 0; }
  #main { padding: 14px 28px 40px; }
}
.site-foot { max-width: 1180px; margin: 30px auto 0; padding: 20px var(--gut); color: var(--mute); font-size: 13px; }
.site-foot a { color: var(--ink2); } .site-foot.in-game { padding: 20px 0 0; }
.sf-links, .sf-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.sf-cards, .sf-pay { display: flex; gap: 6px; flex-wrap: wrap; }
.sf-card { padding: 2px 8px; border-radius: 6px; background: var(--card2); font-size: 11px; }
.sf-brand { font-family: var(--fd); }

/* ---------- camp (home hub) ---------- */
.camp-hero { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 20px; overflow: hidden; background: var(--night); color: #f4efe6; min-height: 230px; }
.camp-hero-in { position: relative; z-index: 1; padding: 22px 20px; background: linear-gradient(90deg, rgba(29,27,23,.92), rgba(29,27,23,.55) 70%, transparent); }
.camp-where { font-size: 13px; color: #cfc6b6; }
.camp-hero h1 { font-size: 28px; margin: 6px 0 4px; word-break: break-word; }
.camp-hero p { color: #d8cfc0; font-size: 14px; }
.camp-vitals { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 14px; margin-top: 14px; }
.camp-vitals span { display: block; font-size: 12px; color: #b9b0a1; } .camp-vitals b { font-size: 14px; }
.camp-vitals .meter { margin-top: 5px; background: rgba(255,255,255,.15); }
.camp-me { display: none; }
@media (min-width: 700px) { .camp-hero { grid-template-columns: 1fr 200px; } .camp-me { display: block; position: relative; z-index: 1; margin: 16px 16px 0 0; border-radius: 14px 14px 0 0; } .camp-hero-in { padding: 30px 28px; } .camp-hero h1 { font-size: 34px; } }
.camp-grid { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 1000px) { .camp-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.sec-h { font-size: 15px; margin: 4px 0 12px; }
.act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
@media (min-width: 700px) { .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.act-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 92px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: box-shadow .15s; }
.act-card:hover { box-shadow: var(--shadow-h); }
.act-card b { font: 700 14px var(--fd); } .act-card span { font-size: 13px; color: var(--mute); }
.act-card.primary { background: var(--fire); color: #fff; box-shadow: 0 10px 30px rgba(214, 58, 43, .3); } .act-card.primary span { color: #ffe1d6; }
.act-card .badge { position: absolute; top: 10px; right: 10px; }
.city-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.city-route li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.city-route li .cr-art { width: 64px; height: 64px; border-radius: 10px; } .city-route li .cr-art::after { display: none; }
.city-route li b { display: block; font-size: 14px; } .city-route li .small { color: var(--ink2); display: block; }
.city-route li.lock { opacity: .55; box-shadow: none; background: var(--card2); }
.city-route li.here { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.camp-side { display: grid; gap: 12px; align-content: start; }
.side-card { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; font-size: 14px; }
.side-card.warm { background: var(--warn-soft); }
.log-ln { font-size: 13px; }

/* ---------- survivor (character) ---------- */
.op-wrap { display: grid; gap: 16px; }
@media (min-width: 1000px) { .op-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.paperdoll { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; gap: 10px; }
@media (min-width: 700px) { .paperdoll { grid-template-columns: 82px minmax(0, 1fr) 82px; } }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 12px; background: var(--card2); cursor: pointer; color: var(--r-common); }
.slot.filled { box-shadow: inset 0 -3px 0 currentColor; }
.slot.implant { background: var(--card3); }
.slot .art { position: absolute; inset: 6px; background-color: transparent; }
.slot .ph { font-size: 22px; opacity: .4; }
.pcol { display: grid; gap: 10px; align-content: start; min-width: 0; }
.portrait { aspect-ratio: 3 / 4; border-radius: 14px; }
.portrait-gear { position: absolute; left: 10px; bottom: 10px; z-index: 3; }
.pinfo h2 { font-size: 22px; word-break: break-word; } .pinfo .cls { font-size: 13px; color: var(--mute); }
.op-syn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.stat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 0; }
.stat-row + .stat-row { box-shadow: inset 0 1px 0 var(--line); }
.stat-row .nm { font-weight: 600; } .stat-row .nm small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }
.stat-row .v { font: 600 16px var(--fm); } .stat-row .v em { font-style: normal; color: var(--ok); font-size: 12px; margin-left: 3px; }
.brief { margin-bottom: 14px; } .starter { display: grid; gap: 6px; }
.st-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--card); font-size: 14px; }
.st-row.got { opacity: .55; } .st-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); font: 600 12px var(--fm); }
.st-r { font-size: 12px; color: var(--warn); }
@media (max-width: 520px) { .st-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .st-r { grid-column: 2; } }
.loadout-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.shutter, .scan, .refit-txt { display: none; }

/* ---------- sorties ---------- */
.hero { border-radius: 18px; min-height: 180px; display: flex; align-items: flex-end; margin-bottom: 14px; }
.hero::after { display: none; }
.hero .ovl { width: 100%; padding: 18px; background: linear-gradient(0deg, rgba(29,27,23,.88), rgba(29,27,23,.2)); color: #f4efe6; }
.hero .ovl h1 { color: #fff; font-size: 24px; } .hero .ovl p { color: #ddd4c5; } .hero .ovl .tag { background: rgba(255,255,255,.15); color: #fff !important; }
.enemy { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.enemy > .art { aspect-ratio: 4 / 5; }
.enemy .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.enemy .nm { font: 700 14px var(--fd); }
.diff { font: 600 12px var(--fb); padding: 2px 8px; border-radius: 999px; }
.diff.easy { background: var(--ok-soft); color: var(--ok); } .diff.ok { background: var(--card2); color: var(--ink2); }
.diff.hard { background: var(--warn-soft); color: var(--warn); } .diff.deadly { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 699px) { .grid.g4:has(.enemy) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .enemy .body { padding: 10px; } .enemy .btn { width: 100%; } }

/* ---------- fight: concept B "edges" (js/views-fight.js) ----------
   The living enemy fills the screen; the interface lives at the edges, thin and quiet: dark translucent glass,
   hairlines, bone white plus one blood red. Blood and cracks are generated sprites (assets/img/fx). */
.fight.fb { --bone: #ece6da; --bone2: rgba(236, 230, 218, .62); --red: #c8241b; --red2: #ff4a3a; --glass: rgba(12, 14, 16, .52);
  position: relative; color: var(--bone); background: #050607; overflow: hidden; max-width: 560px; margin: 0 auto; font-family: var(--fb); }
@media (max-width: 899px) { .fight.fb { margin: 0 calc(-1 * var(--gut)); } }
@media (min-width: 900px) { .fight.fb { border-radius: 18px; } }
.fb .glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 30px rgba(0, 0, 0, .35); }

/* the stage: a blurred copy of the picture behind, the enemy picture/video on top, sized like cover */
.fb .fstage { position: relative; height: 640px; overflow: hidden; container-type: size; isolation: isolate; }
.fb .fbg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(22px) brightness(.45) saturate(.8); transform: scale(1.1); }
.fb .fmedia { position: absolute; top: 0; left: 50%; width: max(100cqw, calc((100cqh - 70px) * .75)); aspect-ratio: 3 / 4; transform: translateX(-50%); }
/* the 16:9 set: the frame as tall as the stage over the bottom strip, cropped at the sides (the body stands in the middle) */
.fb .fmedia.wide { aspect-ratio: 16 / 9; width: max(100cqw, calc((100cqh - 70px) * 16 / 9)); }
.fb .fmedia::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(5, 6, 7, .55), transparent 18%, transparent 62%, rgba(5, 6, 7, .9) 100%),
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }
.fb .fanim { position: absolute; inset: 0; overflow: hidden; background: #0d0c0a; }
.fb .fanim .fv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center / cover no-repeat; filter: contrast(1.06) saturate(.92); }
/* a new picture (a wound or a stage) comes in through black under the hit flash: ~.25 s out, then the wounded creature
   fades in (~.35 s); the damage clip plays on top and is cut away on its last frame, where the wounded loop starts */
.fb .fanim .prev { z-index: 4; animation: dipprev .26s steps(1) forwards; }
@keyframes dipprev { to { visibility: hidden; } }
.fb .fanim .fv.dmgclip { z-index: 3; }
.fb .fanim .fv.dmgclip.flinch { transition: opacity .3s ease; }
.fb .fanim .fv.dmgclip.flinch.out { opacity: 0; }
.fb .fanim .dip { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #000; opacity: 0; animation: dip .62s linear both; }
@keyframes dip { 0% { opacity: 0; } 40% { opacity: 1; animation-timing-function: ease-out; } 44% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fb .fanim .dip { animation-duration: .3s; } }
.fb .fanim.st2 .fv, .fb .fanim.st3 .fv { filter: contrast(1.08) saturate(.85) brightness(.92); }
/* deeper stages the picture may not show (the filter refused it): darker, drained, and from stage 3 it staggers */
.fb .fanim.w2 .fv { filter: contrast(1.1) saturate(.75) brightness(.86); }
.fb .fanim.w3 .fv { filter: contrast(1.12) saturate(.6) brightness(.78) sepia(.12); }
.fb .fmedia:has(.fanim.w3), .fb .fmedia:has(.fanim.ov) { animation: stagger 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes stagger { 0%, 100% { rotate: 0deg; translate: 0; } 22% { rotate: -1.6deg; translate: -1% 0; } 30% { rotate: .4deg; } 62% { rotate: 1.2deg; translate: .6% 0; } 70% { rotate: -.3deg; } }
@media (prefers-reduced-motion: reduce) { .fb .fmedia:has(.fanim.w3), .fb .fmedia:has(.fanim.ov) { animation: none; } }

/* zones on the body: no markers; a soft translucent red band lights the zone hovered or picked in the Strike row */
.fb .zband { position: absolute; z-index: 4; left: 18%; right: 18%; height: 15%; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 60, 40, .34), rgba(255, 40, 25, .12) 60%, transparent); mix-blend-mode: screen; }
.fb .zband.z-head { height: 11%; left: 30%; right: 30%; }
/* (Vova 2026-11-30: the picked zones kept the body washed red for whole rounds) only a hover lights a band now, faint,
   and on the 16:9 frame the band is the body's width, not the street's; the picks show on the buttons */
.fb .fmedia.wide .zband { left: 40%; right: 40%; } .fb .fmedia.wide .zband.z-head { left: 45%; right: 45%; }
.fight:has(.zrow.atk .zbtn[data-z="head"]:hover) .zband.z-head, .fight:has(.zrow.atk .zbtn[data-z="chest"]:hover) .zband.z-chest,
.fight:has(.zrow.atk .zbtn[data-z="gut"]:hover) .zband.z-gut, .fight:has(.zrow.atk .zbtn[data-z="hips"]:hover) .zband.z-hips,
.fight:has(.zrow.atk .zbtn[data-z="legs"]:hover) .zband.z-legs { opacity: .45; }
.fb .more-btn { display: none; }
.fb .fside, .fb .fvig { display: none; }
/* the bottom panel: Strike row (red picks) above the Cover row */
.fb .guards { display: grid; gap: 6px; }
.fb .zrow.atk .zbtn.on { color: #fff; }
.fb .zrow .zbtn:hover { color: #fff; }

/* the rail: five diamonds on the left edge, each with a hairline to its zone and a small name */

/* top: the enemy's name and a thin HP line; the round */
.fb .fs-tag { position: absolute; z-index: 7; left: 12px; top: 12px; max-width: 62%; min-width: 180px; padding: 10px 14px 11px; border-radius: 14px; }
.fb .fs-name { display: flex; align-items: baseline; gap: 8px; }
/* a long name (DE / FR, narrow screens) wraps to a second line instead of being cut (Vova) */
.fb .fs-name b { font: 600 20px/1.08 var(--fd); letter-spacing: .02em; min-width: 0; overflow-wrap: anywhere; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fb .fs-name span { font: 500 11px var(--fb); color: var(--bone2); letter-spacing: .06em; white-space: nowrap; }
.fb .thin { position: relative; height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fb .thin > i, .fb .thin > b { position: absolute; inset: 0 auto 0 0; transition: width .6s ease; border-radius: 3px; }
.fb .thin > b { background: rgba(236, 230, 218, .7); transition-delay: .45s; }
.fb .thin > i { background: linear-gradient(90deg, #8e130c, var(--red2)); box-shadow: 0 0 8px rgba(255, 74, 58, .6); }
.fb .fs-tag .hpn { display: block; margin-top: 5px; font: 500 11px var(--fd); letter-spacing: .08em; color: var(--bone2); }
.fb .fs-round { position: absolute; z-index: 7; right: 12px; top: 12px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; text-align: center; }
.fb .fs-round span { font: 600 8.5px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--bone2); }
.fb .fs-round b { font: 600 22px/1 var(--fd); margin-top: 2px; }

/* our strikes landing: blood sprite on the body, a white flash, the number; the creature recoils */
.fb .hitfx { position: absolute; z-index: 6; width: 0; height: 0; pointer-events: none; }
.fb .hitfx .spl { position: absolute; left: 0; top: 0; width: 140px; height: 140px; transform: translate(-50%, -50%) rotate(var(--r)); background: center / contain no-repeat;
  animation: spl .7s var(--d) ease-out both; }
@keyframes spl { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.2); } 8% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1.05); }
  20% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } }
.fb .hitfx .flash { position: absolute; left: 0; top: 0; width: 160px; height: 160px; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 240, 220, .9), rgba(255, 120, 80, .3) 40%, transparent); animation: hflash .45s var(--d) ease-out both; }
@keyframes hflash { from { opacity: 1; transform: translate(-50%, -50%) scale(.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.2); } }
/* machines: the splat turns to black oil, a dark dent sits under it, sparks burst out; same .7 s and the same point */
.fb .hitfx.mech .spl { width: 110px; height: 110px; filter: grayscale(1) brightness(.28) contrast(1.6); }
.fb .hitfx.mech .dent { position: absolute; left: 0; top: 0; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 10, 12, .85), rgba(40, 40, 44, .6) 55%, rgba(200, 200, 210, .35) 72%, transparent);
  animation: spl .7s var(--d) ease-out both; }
.fb .hitfx.mech .sparks { position: absolute; left: 0; top: 0; width: 150px; height: 150px; transform: translate(-50%, -50%); mix-blend-mode: screen;
  background: radial-gradient(6px 6px at 18% 30%, #fff3c4, transparent), radial-gradient(4px 4px at 80% 22%, #ffd27a, transparent),
    radial-gradient(6px 6px at 70% 78%, #ffb347, transparent), radial-gradient(4px 4px at 26% 74%, #fff, transparent),
    radial-gradient(4px 4px at 50% 10%, #ffe08a, transparent), radial-gradient(6px 6px at 92% 55%, #ffc061, transparent),
    radial-gradient(4px 4px at 8% 52%, #ffd27a, transparent), radial-gradient(4px 4px at 44% 90%, #fff3c4, transparent);
  animation: sparks .5s var(--d) ease-out both; }
@keyframes sparks { from { opacity: 1; transform: translate(-50%, -50%) scale(.25); } 60% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
.fb .hitfx.mech .flash { background: radial-gradient(closest-side, rgba(255, 250, 230, .95), rgba(255, 170, 60, .4) 40%, transparent); }
.fb .hitfx .num { position: absolute; left: 34px; top: -40px; font: 700 38px/1 var(--fd); color: #fff; letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(255, 60, 40, .75), 0 2px 10px rgba(0, 0, 0, .8); animation: num .75s var(--d) ease-out both; }
.fb .hitfx.crit .num { font-size: 54px; color: #ffd9d2; text-shadow: 0 0 24px rgba(255, 40, 20, 1), 0 2px 12px rgba(0, 0, 0, .9); }
.fb .hitfx em { position: absolute; left: 36px; top: -58px; font: 600 11px var(--fb); font-style: normal; letter-spacing: .3em; color: var(--red2); animation: num .75s var(--d) both; }
.fb .hitfx.soft .num { left: 24px; top: -14px; font: 600 12px var(--fb); letter-spacing: .22em; color: var(--bone2); text-shadow: 0 1px 8px #000; }
@keyframes num { 0% { opacity: 0; transform: scale(.85); } 12% { opacity: 1; transform: scale(1); } 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
/* the marks ride the body: their layer recoils with it (Vova 2026-11-30: they drifted off and lived too long) */
.fb .fmedia .fhits { position: absolute; inset: 0; z-index: 6; pointer-events: none; transform-origin: 50% 100%; }
/* recoil by zone (--s = side, --k = strength): head and trunk snap back from the feet, hips and legs buckle */
.fb .fmedia .fanim { transform-origin: 50% 100%; }
.fb .fmedia.fx-hit .fanim, .fb .fmedia.fx-hit .fhits { animation: recoil .62s cubic-bezier(.2, .8, .3, 1); }
.fb .fmedia.rz-head { --k: 1.5; } .fb .fmedia.rz-chest { --k: 1.15; } .fb .fmedia.rz-gut { --k: 1; }
.fb .fmedia.fx-hit.rz-hips .fanim, .fb .fmedia.fx-hit.rz-legs .fanim, .fb .fmedia.fx-hit.rz-hips .fhits, .fb .fmedia.fx-hit.rz-legs .fhits { animation-name: recoil-low; }
@keyframes recoil { 9% { transform: translate(calc(var(--s, 1) * 2.4% * var(--k, 1)), -1%) rotate(calc(var(--s, 1) * 2.6deg * var(--k, 1))) scale(.965); filter: brightness(1.8); }
  32% { transform: translate(calc(var(--s, 1) * -1.1%), .5%) rotate(calc(var(--s, 1) * -1.1deg * var(--k, 1))); filter: none; } 58% { transform: translate(calc(var(--s, 1) * .4%), 0) rotate(calc(var(--s, 1) * .4deg)); } }
@keyframes recoil-low { 10% { transform: translate(calc(var(--s, 1) * 1.2%), 2.6%) rotate(calc(var(--s, 1) * -1.4deg)) scale(.975, .95); filter: brightness(1.7); }
  34% { transform: translate(calc(var(--s, 1) * -.5%), -.6%) rotate(calc(var(--s, 1) * .6deg)) scale(1, 1.01); filter: none; } 60% { transform: translate(0, .4%); } }
/* a critical: the moment freezes in the extreme pose (hit stop), bleached, then the body lurches back */
.fb .fmedia.fx-crit .fanim, .fb .fmedia.fx-crit .fhits { animation: recoil-crit 1s cubic-bezier(.2, .8, .3, 1); }
@keyframes recoil-crit { 3%, 24% { transform: translate(calc(var(--s, 1) * 3.4%), -1.6%) rotate(calc(var(--s, 1) * 4deg)) scale(1.05); filter: brightness(2.1) saturate(.25) contrast(1.2); }
  44% { transform: translate(calc(var(--s, 1) * -1.6%), .8%) rotate(calc(var(--s, 1) * -1.6deg)) scale(1.01); filter: none; } 70% { transform: translate(calc(var(--s, 1) * .5%), 0) rotate(calc(var(--s, 1) * .5deg)); } }
.fb .fmedia.fx-crit .hitfx.crit .num, .fb .fmedia.fx-crit .hitfx.crit em { animation-delay: calc(var(--d) + .2s); }
/* the killing blow: a flash over the stage, a short shake (<= 6 px, 300 ms), then a fade to black into the finale */
.fb .fstage .koflash { position: absolute; inset: 0; z-index: 30; pointer-events: none; animation: koflash .45s ease-out both; }
.fb .fstage .koflash.win { background: radial-gradient(ellipse at 50% 40%, rgba(255, 248, 235, .85), rgba(255, 230, 200, .35) 60%, transparent); }
.fb .fstage .koflash.lose { background: radial-gradient(ellipse at 50% 40%, rgba(255, 60, 40, .7), rgba(150, 0, 0, .45) 60%, rgba(60, 0, 0, .3)); }
@keyframes koflash { 0% { opacity: 1; } 100% { opacity: 0; } }
.fb .fstage.ko-shake { animation: koshake .3s linear; }
@keyframes koshake { 15% { translate: -6px 2px; } 35% { translate: 5px -3px; } 55% { translate: -4px 1px; } 75% { translate: 2px -1px; } 100% { translate: 0 0; } }
.fb .fstage .kofade { position: absolute; inset: 0; z-index: 31; pointer-events: none; background: #050505; animation: kofade .26s ease-in both; }
@keyframes kofade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fb .fstage.ko-shake { animation: none; } }
.fb .fstage.slowmo .fmedia { animation: slowmo 1.4s ease-out forwards; }
@keyframes slowmo { 0% { filter: brightness(1.8); } 30% { transform: translateX(-50%) scale(1.05) rotate(-1.5deg); filter: saturate(.3) contrast(1.25); } 100% { transform: translateX(-50%) scale(1.08) rotate(-2deg); filter: grayscale(.85) brightness(.55); } }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.fb .fx-shake { animation: shake .5s; }

/* the bottom glass strip: face in an HP ring, guards, the Strike button */
.fb .fhud { position: absolute; z-index: 9; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 10px 10px 10px; border-radius: 22px; }
.fb .me { position: relative; display: grid; justify-items: center; gap: 2px; }
.fb .ring { position: relative; width: 64px; height: 64px; }
.fb .ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fb .ring circle { fill: none; stroke-width: 2.5; }
.fb .ring .tr { stroke: rgba(255, 255, 255, .12); }
.fb .ring .hp { stroke: var(--red2); stroke-linecap: round; transition: stroke-dasharray .7s ease; filter: drop-shadow(0 0 4px rgba(255, 74, 58, .7)); }
.fb .fface { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; background: #111; }
.fb .fface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb .fface .flinch { z-index: 1; animation: flinch .9s ease-out forwards; }
@keyframes flinch { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
.fb .me .hpn { font: 600 12px/1 var(--fd); letter-spacing: .04em; } .fb .me .hpn i { font-style: normal; color: var(--bone2); font-weight: 500; }
/* what happened to us: above the right end of the strip, clear of the zone rail and its labels on the left */
@keyframes hurtnum { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.fb .guards { min-width: 0; }
.fb .gt { display: flex; justify-content: space-between; padding: 0 4px 5px; font: 600 9.5px var(--fb); letter-spacing: .16em; text-transform: uppercase; color: var(--bone2); }
.fb .gt span { color: var(--bone); letter-spacing: .06em; }
.fb .gz { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.fb .zbtn { display: grid; justify-items: center; gap: 3px; padding: 4px 0 2px; border: 0; background: none; color: var(--bone2); cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.fb .zbtn span { font: 600 11px/1 var(--fb); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* picked: strike = solid red, cover = solid light; a cover that held flashes light, one that was hit flashes red */
.fb .zbtn { color: var(--bone); background: rgba(255, 255, 255, .1); padding: 9px 2px; }
.fb .zrow.atk .zbtn.on { background: var(--red); color: #fff; } .fb .zrow.blk .zbtn.on { background: var(--bone); color: #141414; }
.fb .zbtn.held { animation: held .6s ease-out; } .fb .zbtn.took { box-shadow: inset 0 0 0 2px var(--red2); }
@keyframes held { 30% { box-shadow: inset 0 0 0 2px #fff, 0 0 12px rgba(255, 255, 255, .5); } }
.fb .fgo { position: relative; width: 72px; height: 72px; border: 0; padding: 0; border-radius: 50%; background: none; color: var(--bone); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fb .fgo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fb .fgo .sg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2.5; transition: stroke .25s; }
.fb .fgo .sg.on { stroke: var(--red2); filter: drop-shadow(0 0 3px rgba(255, 74, 58, .8)); }
.fb .fgo .core { position: absolute; inset: 7px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 1px; background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s; }
.fb .fgo .core svg { position: static; width: 22px; height: 22px; transform: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fb .fgo .core span { font: 600 10px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; }
.fb .fgo:disabled { cursor: default; } .fb .fgo:disabled .core { color: var(--bone2); }
.fb .fgo.ready .core { background: radial-gradient(circle at 50% 40%, #e0352a, #8c140d 75%); box-shadow: 0 0 22px rgba(255, 60, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; animation: ready 1.8s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 34px rgba(255, 60, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .25); } }

/* hits on us: blood on the lens at the edges, sliding down; a crack on a crit; a faint red vignette */
.fb .fp-hurt { position: absolute; inset: 0; z-index: 6; pointer-events: none; animation: hurt .6s ease-out both;
  background: radial-gradient(ellipse 85% 80% at 50% 45%, transparent 62%, rgba(120, 0, 0, .4)); }
@keyframes hurt { 0% { opacity: 0; } 12% { opacity: 1; } 45% { opacity: 1; } 100% { opacity: 0; } }
.fb .fp-hurt .ls { position: absolute; width: clamp(90px, 13%, 170px); aspect-ratio: 1; background: center / contain no-repeat; transform: rotate(var(--r)); opacity: 0; animation: ls .6s var(--d) ease-out both; }
.fb .fp-hurt .ls.drip { width: 22%; animation-name: drip; }
@keyframes ls { 0% { transform: rotate(var(--r)) scale(.6); } 12% { opacity: .8; transform: rotate(var(--r)) scale(1); } 45% { opacity: .75; } 100% { opacity: 0; transform: rotate(var(--r)) scale(1); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(-30px); } 8% { opacity: .95; } 80% { opacity: .85; } 100% { opacity: 0; transform: translateY(50px); } }
.fb .fp-hurt .crack { position: absolute; right: -4%; bottom: -6%; width: 16%; aspect-ratio: 1; background: center / contain no-repeat; opacity: 0; animation: crack .6s ease-out both; }
@keyframes crack { 0% { opacity: 0; } 10% { opacity: .6; } 50% { opacity: .5; } 100% { opacity: 0; } }

/* below the scene: the tutorial line, small text actions, the rules */
.fb .fsub { padding: 12px 16px 16px; display: grid; gap: 8px; background: #050607; }
.fb .tut { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.45; color: var(--bone); }
.fb .tut b { color: #fff; }
.fb .fc-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fb .lnk { border: 0; padding: 4px 0; background: none; color: var(--bone2); font: 600 12px var(--fb); letter-spacing: .06em; cursor: pointer; }
.fb .lnk:hover { color: var(--bone); } .fb .lnk.red-t { color: #d0675c; margin-left: auto; }
.fb .rules { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(236, 230, 218, .45); }
.fb .tut-hl { outline: 1px solid rgba(255, 74, 58, .7); outline-offset: 3px; border-radius: 14px; }
@keyframes tutdia { 50% { box-shadow: 0 0 0 5px rgba(255, 74, 58, .35); } }
.flog .lr { margin-bottom: 10px; } .flog .lr-h { font: 600 12px var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--mute, #a69e90); margin-bottom: 4px; }
.flog .le { font-size: 13px; line-height: 1.5; } .flog .le.foe { color: #d98a7f; } .flog .le .d { color: #ff6a5a; }

/* the shell while fighting: quiet dark top bar and menu; the chat button moves to the right edge of the scene */
body:has(.fight.fb) #top { background: rgba(8, 9, 10, .92); box-shadow: none; }
body:has(.fight.fb) #nav { background: rgba(8, 9, 10, .94); box-shadow: none; }
@media (max-width: 899px) { body:has(.fight) .chat-fab { top: 46vh; bottom: auto; right: 10px; width: 40px; height: 40px; opacity: .8; background: rgba(12, 14, 16, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); } }

/* ---------- end screen, concept B: the end clip fills the stage, one quiet title, a glass panel with the spoils ---------- */
.endscreen { --bone: #ece6da; --bone2: rgba(236, 230, 218, .62); --red: #c8241b; --red2: #ff4a3a; --glass: rgba(12, 14, 16, .55); margin: 0 calc(-1 * var(--gut)); color: var(--bone); }
@media (min-width: 900px) { .endscreen { margin: 0; } }
.end-stage { position: relative; aspect-ratio: 3 / 4; max-height: 74vh; width: 100%; overflow: hidden; background: #050607; }
@media (min-width: 700px) { .end-stage { aspect-ratio: 16 / 9; border-radius: 18px; } }
.end-stage .end-bg { position: absolute; inset: 0; filter: brightness(.55) saturate(.8); }
.end-stage .art::after { display: none; }
.end-actors { position: absolute; inset: 8% 4% 0; display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.end-actors .art { width: 40%; max-width: 280px; aspect-ratio: 3 / 4; background-color: transparent; border-radius: 12px; }
.end-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.endscreen.clip .end-clip { display: block; } .endscreen.clip .end-actors, .endscreen.clip .end-ph { display: none; }
.end-hit { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.end-vig { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: linear-gradient(180deg, rgba(5, 6, 7, .5), transparent 22%, transparent 55%, rgba(5, 6, 7, .92)), radial-gradient(ellipse 80% 70% at 50% 45%, transparent 50%, rgba(0, 0, 0, .6)); }
.lose .end-vig { background: linear-gradient(180deg, rgba(5, 6, 7, .5), transparent 22%, transparent 55%, rgba(5, 6, 7, .92)), radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(90, 6, 3, .7)); }
.end-ph { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(12, 14, 16, .6); color: var(--bone2); font: 500 11px var(--fb); }
.end-title { position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%); margin: 0; text-align: center; pointer-events: none; opacity: 0; }
.end-title > span { display: inline-block; font: 600 clamp(38px, 11.5vw, 104px)/.95 var(--fd); letter-spacing: .14em; text-transform: uppercase; padding-left: .14em;
  color: var(--bone); text-shadow: 0 2px 24px rgba(0, 0, 0, .75); }
.lose .end-title > span { color: var(--red2); text-shadow: 0 0 28px rgba(255, 40, 20, .45), 0 2px 18px rgba(0, 0, 0, .85); }
.end-title::after { content: ''; display: block; width: 56px; height: 2px; margin: 14px auto 0; border-radius: 2px; background: var(--red2); box-shadow: 0 0 10px rgba(255, 74, 58, .8); }
.end-names { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 12px; align-items: baseline; font: 500 12px var(--fb); color: var(--bone2); opacity: 0; transition: opacity .8s .3s; }
.end-names b { font: 600 15px var(--fd); letter-spacing: .04em; color: var(--bone); }
/* the placeholder "clip" (no end clip for this enemy yet): ~3 s of motion, then the frame freezes and the title lands */
.endscreen.play.scene .end-bg { animation: endbg 3.2s ease-out forwards; }
.endscreen.play.scene.win .end-a { animation: lunge 3.2s ease-in-out forwards; } .endscreen.play.scene.win .end-b { animation: fall 3.2s ease-in forwards; }
.endscreen.play.scene.lose .end-b { animation: lungeR 3.2s ease-in-out forwards; } .endscreen.play.scene.lose .end-a { animation: fall 3.2s ease-in forwards; }
.endscreen.play.scene .end-hit { animation: hitflash 3.2s forwards; }
@keyframes endbg { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes lunge { 0%, 30% { transform: translateX(-30%); } 62% { transform: translateX(18%) rotate(4deg); } 100% { transform: translateX(8%); } }
@keyframes lungeR { 0%, 30% { transform: translateX(30%); } 62% { transform: translateX(-18%) rotate(-4deg); } 100% { transform: translateX(-8%); } }
@keyframes fall { 0%, 60% { transform: none; } 75% { transform: translateY(6%) rotate(8deg); } 100% { transform: translateY(40%) rotate(80deg); opacity: .85; } }
@keyframes hitflash { 0%, 59% { opacity: 0; } 62% { opacity: .8; } 70%, 100% { opacity: 0; } }
.endscreen.frozen .end-clip, .endscreen.done .end-clip, .endscreen.frozen .end-bg, .endscreen.done .end-bg { filter: saturate(.7) brightness(.8); transition: filter 1.2s; }
.endscreen.frozen .end-title, .endscreen.done .end-title { opacity: 1; }
.endscreen.frozen .end-vig, .endscreen.done .end-vig, .endscreen.frozen .end-names, .endscreen.done .end-names { opacity: 1; }
.endscreen.frozen .end-title > span { animation: titlein .25s ease-out both; }
.endscreen.frozen .end-title::after { animation: linein .35s .15s ease-out both; }
@keyframes titlein { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
/* the reveal: a vignette pulse and the last frame tinted, warm-white on a win, red and drained on a loss */
.endscreen { --vp: rgba(255, 236, 205, .32); } .endscreen.lose { --vp: rgba(190, 14, 6, .6); }
.endscreen.frozen .end-vig { animation: vigpulse .7s ease-out; }
@keyframes vigpulse { 0% { box-shadow: inset 0 0 0 0 transparent; } 30% { box-shadow: inset 0 0 240px 60px var(--vp); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.endscreen.win.frozen .end-clip, .endscreen.win.done .end-clip { filter: sepia(.22) saturate(.85) brightness(.9) contrast(1.04); }
.endscreen.lose.frozen .end-clip, .endscreen.lose.done .end-clip { filter: grayscale(.55) sepia(.45) hue-rotate(-30deg) saturate(1.6) brightness(.72); }
@keyframes linein { from { width: 0; opacity: 0; } }
.endscreen.done.win .end-a, .endscreen.frozen.win .end-a { transform: translateX(8%); }
.endscreen.done.win .end-b, .endscreen.frozen.win .end-b { transform: translateY(40%) rotate(80deg); }
.endscreen.done.lose .end-b, .endscreen.frozen.lose .end-b { transform: translateX(-8%); }
.endscreen.done.lose .end-a, .endscreen.frozen.lose .end-a { transform: translateY(40%) rotate(-80deg); }
@media (prefers-reduced-motion: reduce) { .endscreen.frozen .end-title > span, .endscreen.frozen .end-title::after { animation: none; } }
/* the glass panel rises over the bottom of the stage */
.end-panel { position: relative; z-index: 2; margin: -44px 12px 0; padding: 18px 16px 16px; border-radius: 20px; display: grid; gap: 14px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
@media (min-width: 900px) { .end-panel { margin: -56px 24px 0; padding: 20px 22px; } }
.end-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.end-head h2 { margin: 0; font: 600 22px/1.1 var(--fd); letter-spacing: .02em; color: var(--bone); text-shadow: none; }
.end-head .small { color: var(--bone2); }
.end-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.endscreen .end-btns .btn { min-height: 44px; padding: 0 20px; border-radius: 14px; font: 600 14px var(--fb); letter-spacing: .02em; }
.endscreen .end-btns .btn:not(.ghost) { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(200, 36, 27, .35); }
.endscreen .end-btns .btn.ghost { background: rgba(255, 255, 255, .07); color: var(--bone); box-shadow: none; }
.endscreen .end-btns .btn:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .45); }
.end-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.reward { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font: 500 12px var(--fb); color: var(--bone2); }
.reward b { font: 600 24px/1 var(--fd); color: var(--bone); letter-spacing: .02em; } .reward b.up { color: #8fd18a; } .reward b.down { color: var(--red2); }
.reward.loot { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; } .reward.loot .item { width: 48px; } .reward.loot > div { display: grid; gap: 2px; } .reward.loot b { font: 600 15px var(--fb); }
.endscreen .note { background: rgba(255, 255, 255, .05); box-shadow: none; color: var(--bone); }
.end-stats { color: var(--bone2); } .end-stats b { color: var(--bone); font-family: var(--fd); font-size: 14px; }
.end-log summary { font: 600 13px var(--fb); padding: 6px 0; color: var(--bone2); cursor: pointer; }
.endscreen .clog { max-height: 260px; overflow: auto; font-size: 12px; color: var(--bone2); }
body:has(.endscreen) #top { background: rgba(8, 9, 10, .92); box-shadow: none; }
body:has(.endscreen) #nav { background: rgba(8, 9, 10, .94); box-shadow: none; }
.clog { display: grid; gap: 4px; font-size: 13px; max-height: 360px; overflow-y: auto; padding: 10px 12px; background: var(--card); border-radius: 12px; }
.clog .r { font: 600 11px var(--fm); color: var(--mute); margin-right: 6px; } .clog .b { color: var(--accent-d); }
/* the old report screen classes (used by other screens) */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; } .vs { font: 900 18px var(--fd); color: var(--mute); }
.fighter .art { aspect-ratio: 3 / 4; border-radius: 12px; }
.result-banner { font: 900 40px var(--fd); text-align: center; margin: 10px 0; } .result-banner.w { color: var(--warn); } .result-banner.l { color: var(--accent); }

/* ---------- create ---------- */
.create2 { max-width: 1060px; margin: 0 auto; padding: 18px var(--gut) 60px; }
.cr2-top { padding: 4px 0 18px; }
.cr2-intro h1 { font-size: 30px; } .cr2-intro p { color: var(--ink2); max-width: 560px; margin-top: 8px; }
.cr2-step { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.cr2-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font: 700 13px var(--fd); }
.cr2-looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 800px) { .cr2-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.look-card, .role2 { display: grid; gap: 4px; align-content: start; text-align: left; padding: 10px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: var(--ink); }
.look-card .art { aspect-ratio: 3 / 4; border-radius: 10px; margin-bottom: 6px; }
.look-card b, .role2 b { font: 700 14px var(--fd); }
.look-card.on, .role2.on { box-shadow: inset 0 0 0 3px var(--accent), var(--shadow); }
.cr2-roles { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .cr2-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cr2-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role2 { padding: 14px; } .role2 .stats { margin-top: 6px; color: var(--ink2); }
.cr2-name { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cr2-name input { flex: 1 1 220px; }

/* ---------- landing ---------- */
.ad-land { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.ad-top { display: flex; align-items: center; gap: 8px; padding: 14px 0; position: sticky; top: 0; z-index: 20; }
.ad-top .brand-name { font-size: 13px; }
@media (max-width: 420px) { .ad-top .brand-name { display: none; } }
.ad-hero { display: grid; gap: 24px; padding: 20px 0 40px; align-items: center; }
@media (min-width: 900px) { .ad-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 40px 0 70px; } }
.ad-place { font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.ad-hero h1 { font: 900 clamp(34px, 7vw, 68px)/1.02 var(--fd); text-transform: uppercase; letter-spacing: -.01em; }
.ad-lead { font-size: 17px; color: var(--ink2); max-width: 560px; margin: 18px 0 22px; }
.ad-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ad-sec { padding: 40px 0; }
.ad-h { font: 900 clamp(24px, 4.5vw, 40px)/1.1 var(--fd); text-transform: uppercase; max-width: 760px; }
.ad-p { font-size: 16px; color: var(--ink2); max-width: 640px; margin: 14px 0 22px; }
.ad-how { display: grid; gap: 12px; }
@media (min-width: 800px) { .ad-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-card { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.how-card b { font: 700 16px var(--fd); } .how-card span:last-child { color: var(--ink2); font-size: 14px; }
.how-ic { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; position: relative; }
.how-ic.strike { background: var(--accent); } .how-ic.cover { background: var(--info); } .how-ic.read { background: var(--night); }
.how-ic::after { content: ''; position: absolute; inset: 11px; border-radius: 4px; background: rgba(255,255,255,.85); }
.how-ic.strike::after { clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); border-radius: 0; }
.how-ic.cover::after { clip-path: polygon(50% 0, 100% 18%, 92% 70%, 50% 100%, 8% 70%, 0 18%); border-radius: 0; }
.how-ic.read::after { border-radius: 50%; inset: 13px; }
.ad-split { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .ad-split { grid-template-columns: 1fr 1fr; } .ad-split.rev > :first-child { order: 2; } }
.ad-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad-items .item { display: grid; align-content: end; cursor: default; aspect-ratio: auto; height: 120px; padding: 6px; }
.ad-items .item .art { inset: 6px 6px 26px; } .ad-items .item .small { color: var(--ink2); text-align: center; position: relative; }
.ad-final { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 60px 0; }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; } .rv.in { opacity: 1; transform: none; }
.auth-pop .auth-pop-in { position: relative; width: min(420px, 100%); }
.auth-box { display: grid; gap: 8px; padding: 22px 20px; border-radius: 18px; }
.auth-box .seg { display: grid; grid-template-columns: 1fr 1fr; }
.auth-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.auth-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.verify-wall { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.verify-wall .auth-box { width: min(440px, 100%); }
body.legal-open { overflow: hidden; }

/* ---------- other screens: lean styling on top of the primitives ---------- */
.dly-panel, .tour, .chm { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(520px, 100%); position: relative; }
.dly { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin: 12px 0; }
.dly-d { padding: 8px 4px; border-radius: 10px; background: var(--card2); text-align: center; font-size: 12px; }
.dly-d.dly-ok { background: var(--ok-soft); } .dly-d.on { box-shadow: inset 0 0 0 2px var(--accent); }
.chat-fab { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55; border: 0; border-radius: 999px; padding: 10px 14px; background: var(--card); box-shadow: var(--shadow-h); font: 600 13px var(--fb); cursor: pointer; color: var(--ink); }
@media (min-width: 900px) { .chat-fab { bottom: 20px; } }
.chat { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; width: min(360px, calc(100vw - 32px)); max-height: 60vh; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
@media (min-width: 900px) { .chat { bottom: 20px; } }
.chat-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card2); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; align-content: start; }
.chat-f { display: flex; gap: 6px; padding: 8px; } .chat-f input { flex: 1; min-width: 0; }
.chat-close, .chm-x { border: 0; background: transparent; cursor: pointer; font-size: 16px; }
.loc-btn, .sfx-btn { border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 10px; font: 600 12px var(--fb); color: var(--ink); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.sfx-btn.on { background: var(--ink); color: var(--night); }
.loc-caret, .loc-globe { font-size: 11px; }
.legal-modal { background: var(--card); border-radius: 18px; padding: 20px; width: min(760px, 100%); max-height: 86vh; overflow-y: auto; position: relative; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ach { padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.raid-card, .syn-row, .fr-card, .p2p-card, .card-item { background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.syn-list, .p2p-cards, .p2p-rows { display: grid; gap: 8px; }
.p2p-in { min-width: 0; } .p2p-grow { flex: 1 1 160px; }
.p2p-h { font-size: 14px; margin: 18px 0 10px; }
.p2p-form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--card2); }
.adm-card, .adm-stat { background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tf-chart svg, .chart { width: 100%; height: auto; background: var(--night); border-radius: 12px; }
.season-hd { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; } .tier { padding: 8px; border-radius: 10px; background: var(--card2); font-size: 12px; text-align: center; }
.tier.on { background: var(--ok-soft); }
.pack { padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 6px; }
.enchip, .hpchip { display: none; }

/* ---------- widgets shared with the engine code ---------- */
.chat { display: none; } .chat.open { display: flex; }
body.chat-open .chat-fab { display: none; }
.chat-fab { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; }
.chat-fab.new::after { content: ''; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.chat-tab { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font: 600 12px var(--fb); cursor: pointer; color: var(--ink2); position: relative; }
.chat-tab.on { background: var(--card); } .chat-tab[disabled] { opacity: .4; }
.chat-tabs { margin: 0; }
#cookie-bar { position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 600; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: var(--night); color: #efe9de; box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: 13px; }
#cookie-bar.out { display: none; } #cookie-bar .cb-t { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 4px 8px; } #cookie-bar a { color: #f0a58f; }
#cookie-bar .cb-b { display: flex; gap: 8px; } #cookie-bar .btn.ghost { background: rgba(255,255,255,.12); color: #efe9de; } #cookie-bar .btn:not(.ghost) { background: var(--fire); color: #fff; }
.ad-land ~ #cookie-bar, body:not(:has(#nav)) #cookie-bar { bottom: 16px; }
@media (min-width: 900px) { #cookie-bar { bottom: 16px; } }
#loc-menu { position: fixed; z-index: 500; padding: 12px; background: var(--card); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
#loc-menu .loc-h { font: 600 12px var(--fb); color: var(--mute); margin: 0 0 6px; } #loc-menu .loc-h:not(:first-child) { margin-top: 10px; }
#loc-menu .loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; } #loc-menu .loc-grid.cur { grid-template-columns: repeat(3, 1fr); }
#loc-menu button { border: 0; background: var(--card2); border-radius: 8px; padding: 7px 9px; font: 13px var(--fb); cursor: pointer; text-align: left; color: var(--ink); }
#loc-menu button.on { background: var(--ink); color: var(--night); } #loc-menu .loc-note { font-size: 11px; color: var(--mute); margin-top: 8px; }
.vol-pop { position: fixed; z-index: 500; padding: 10px 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-h); }
.sfx-btn { width: 34px; height: 34px; padding: 0; justify-content: center; background: var(--card); color: var(--ink); }
.sfx-btn.on { background: var(--ink); color: var(--night); } .sfx-btn svg { width: 16px; height: 16px; }
.tour-spot { position: fixed; z-index: 700; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(5, 4, 3, .7), 0 0 0 3px #f0c068; transition: all .3s ease; }
.tour-card { position: fixed; z-index: 701; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-width: calc(100vw - 32px); }
.tour-card h3 { margin: 4px 0 6px; } .tour-card p { margin: 0; font-size: 14px; } .tour-k { font: 600 12px var(--fb); color: var(--accent); } .tour-f { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.snd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(80px, 160px) 44px; align-items: center; gap: 10px; padding: 8px 0; }
.mlist { display: grid; gap: 6px; } .mrow { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; }
.mrow.unread { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.panel:has(> table.t), .panel:has(table.t) { overflow-x: auto; }
.sf-pay img, .sf-cards img { display: none; }
.sf-pay, .sf-cards { display: none; }

/* ================= cinematic layer: full-bleed scene art behind every screen ================= */
/* --scene / --scene-m are set by ui.js per screen (camp, the chosen district, the fight's district). */
body { background: var(--paper); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, .55) 70%, rgba(10, 9, 8, .9) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, .25) 0%, rgba(10, 9, 8, .62) 38%, rgba(10, 9, 8, .9) 75%, #0d0c0a 100%),
    var(--scene, none) center top / cover no-repeat, #0d0c0a; }
@media (max-width: 699px) { body::before { background-image: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, .55) 70%, rgba(10, 9, 8, .9) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, .2) 0%, rgba(10, 9, 8, .55) 34%, rgba(10, 9, 8, .9) 62%, #0d0c0a 100%), var(--scene-m, var(--scene, none)); } }
h1, h2, .sec-h { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.mute { color: var(--mute); }
input, select, textarea { background: rgba(10, 9, 8, .6); box-shadow: inset 0 0 0 1.5px rgba(255, 236, 210, .14); }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--ember); }
.panel, .act-card, .side-card, .enemy, .reward, .how-card { box-shadow: var(--shadow); }
.endscreen .reward { box-shadow: none; }
.hint, .verify-bar, .tut { color: var(--ink); }

/* brand: the burnt-steel emblem + a typeset wordmark */
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: #000 url('/assets/img/logo_mark.jpg') center / 128% no-repeat; box-shadow: 0 0 18px rgba(240, 106, 53, .35); }
.brand-mark::after { display: none; }
.brand-name { font: 900 15px/1 var(--fd); letter-spacing: .08em; color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* camp: the camp art itself is the hero; the survivor stands over it */
.camp-hero { background: transparent; min-height: clamp(250px, 40vh, 420px); align-items: end; overflow: visible; border-radius: 0; }
.camp-hero-in { background: none; padding: 20px 0 6px; }
.camp-where { color: var(--ember); font-weight: 600; }
.camp-hero h1 { font-size: clamp(30px, 8vw, 52px); text-transform: uppercase; letter-spacing: .02em; }
.camp-hero p { color: var(--ink2); }
.camp-vitals { display: inline-grid; grid-template-columns: repeat(2, minmax(120px, 170px)); padding: 12px 14px; border-radius: 14px; background: rgba(10, 9, 8, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.camp-vitals .meter { background: rgba(255, 255, 255, .12); }
@media (min-width: 700px) { .camp-hero { grid-template-columns: 1fr 230px; } .camp-me { margin: 0; border-radius: 16px; aspect-ratio: 3 / 4; align-self: end; background-color: rgba(10, 9, 8, .4); box-shadow: var(--shadow); } .camp-hero-in { padding: 30px 0 6px; } }
.act-card { background: rgba(22, 19, 16, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-height: 96px; }
.act-card b { font-size: 15px; }
/* city route: each district is a picture card */
.city-route { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .city-route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.city-route li { position: relative; overflow: hidden; min-height: 132px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 14px; background: #15130f; }
.city-route li .cr-art { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; transition: transform .6s; }
.city-route li::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10, 9, 8, .92) 10%, rgba(10, 9, 8, .25) 70%, rgba(10, 9, 8, .1)); }
.city-route li > div, .city-route li > .btn { position: relative; z-index: 2; }
.city-route li b { font: 700 15px var(--fd); text-shadow: 0 2px 8px #000; }
.city-route li.lock { opacity: 1; background: #15130f; } .city-route li.lock .cr-art { filter: grayscale(1) brightness(.5); }
.city-route li.here { box-shadow: inset 0 0 0 2px var(--ember), var(--shadow); }
.side-card { background: rgba(22, 19, 16, .82); }
.side-card.warm { background: linear-gradient(135deg, rgba(120, 52, 22, .9), rgba(60, 26, 16, .9)); }

/* sorties: district picture header */
.hero { min-height: 220px; box-shadow: var(--shadow); }
.enemy { background: rgba(22, 19, 16, .86); }


/* landing: one full-bleed hero, then contained sections */
.ad-land { max-width: none; padding: 0; }
.ad-land > .ad-sec, .ad-land > .site-foot { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.ad-top { position: absolute; left: 0; right: 0; top: 0; padding: 14px var(--gut); z-index: 5; }
@media (min-width: 900px) { .ad-top { padding: 20px 40px; } }
.ad-hero { position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 900px); padding: 110px var(--gut) 44px;
  background: linear-gradient(0deg, #0d0c0a 0%, rgba(13, 12, 10, .55) 30%, rgba(13, 12, 10, 0) 60%), linear-gradient(90deg, rgba(10, 9, 8, .82) 0%, rgba(10, 9, 8, .35) 45%, rgba(10, 9, 8, 0) 70%),
    url('/assets/img/lp_hero.jpg') 62% center / cover no-repeat, #0d0c0a; }
@media (max-width: 699px) { .ad-hero { background: linear-gradient(0deg, #0d0c0a 0%, rgba(13, 12, 10, .8) 38%, rgba(13, 12, 10, .1) 70%, rgba(13, 12, 10, .45) 100%), url('/assets/img/lp_hero_m.jpg') center top / cover no-repeat, #0d0c0a; } }
@media (min-width: 900px) { .ad-hero { display: flex; padding: 140px 40px 80px; } }
.ad-hero-text { max-width: 640px; }
.ad-place { color: var(--ember); }
.ad-hero h1 { font-size: clamp(40px, 7.4vw, 86px); text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.ad-lead { color: var(--ink2); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.ad-cta .mute { color: var(--ink2); }
.ad-h { text-shadow: none; }
.how-card { background: #17140f; }
.ad-final { position: relative; }

/* landing first screen: slow camera push-in, drifting fog, embers (canvas, js/views-ashen.js G.FX.embers) */
.ad-hero { background: #0d0c0a; overflow: hidden; isolation: isolate; }
.ad-hero::before { content: ''; position: absolute; inset: -2%; z-index: -3; background: url('/assets/img/lp_hero.jpg') 62% center / cover no-repeat; animation: push 26s ease-out both; transform-origin: 66% 40%; }
.ad-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, #0d0c0a 0%, rgba(13, 12, 10, .55) 26%, rgba(13, 12, 10, 0) 58%), linear-gradient(90deg, rgba(10, 9, 8, .85) 0%, rgba(10, 9, 8, .35) 45%, rgba(10, 9, 8, 0) 72%); }
@media (max-width: 699px) {
  .ad-hero { background: #0d0c0a; }
  .ad-hero::before { background-image: url('/assets/img/lp_hero_m.jpg'); background-position: center top; transform-origin: 50% 30%; }
  .ad-hero::after { background: linear-gradient(0deg, #0d0c0a 0%, rgba(13, 12, 10, .85) 34%, rgba(13, 12, 10, .1) 66%, rgba(13, 12, 10, .5) 100%); }
}
@keyframes push { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.ad-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ad-fx .fog { position: absolute; left: -50%; width: 200%; height: 55%; bottom: 8%; opacity: .5;
  background: radial-gradient(ellipse 30% 45% at 25% 60%, rgba(190, 180, 165, .22), transparent 70%), radial-gradient(ellipse 25% 40% at 70% 50%, rgba(190, 180, 165, .18), transparent 70%);
  animation: fog 38s linear infinite alternate; filter: blur(6px); }
.ad-fx .fog.f2 { bottom: 25%; opacity: .32; animation-duration: 54s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.ad-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ad-hero-text { position: relative; z-index: 1; animation: rise 1.2s .3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.ad-hero .btn.big { font-size: 17px; padding: 17px 34px; animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 10px 40px rgba(240, 106, 53, .6); } }
.ad-hero h1 .ember { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .ad-hero::before, .ad-fx .fog, .ad-hero-text, .ad-hero .btn.big { animation: none; } }
/* camp: a few embers over the camp art too */
.camp-hero { position: relative; }
.camp-fx { position: absolute; inset: -20px calc(-1 * var(--gut)) 0; z-index: 0; pointer-events: none; }
.camp-hero-in, .camp-me { position: relative; z-index: 1; }
.ad-hero::before { translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px + var(--sy, 0) * .3px); }
.ad-fx canvas { translate: calc(var(--mx, 0) * -40px) calc(var(--my, 0) * -24px); }
@media (max-width: 699px) {
  .ad-hero { padding-bottom: 92px; }
  .ad-hero::before { background-size: 100% auto; background-position: center top; }
  .ad-hero::after { background: linear-gradient(0deg, #0d0c0a 0%, #0d0c0a 22%, rgba(13, 12, 10, .55) 40%, rgba(13, 12, 10, 0) 58%, rgba(13, 12, 10, .45) 100%); }
  .ad-hero .ad-lead { display: none; }
  .ad-hero h1 { font-size: 40px; }
  .ad-cta .btn.big { width: 100%; }
}
/* cookie notice: a small card in the corner, never over the first-screen button */
#cookie-bar { padding: 10px 12px; gap: 8px 12px; font-size: 12px; background: rgba(15, 13, 11, .94); }
#cookie-bar .cb-t { flex-basis: 220px; }
#cookie-bar .btn { padding: 7px 12px; font-size: 12px; }
@media (min-width: 900px) { #cookie-bar { left: auto; right: 20px; bottom: 20px; max-width: 400px; } }
@media (max-width: 699px) { .ad-land ~ #cookie-bar, body:not(:has(#nav)) #cookie-bar { bottom: 10px; left: 10px; right: 10px; } }
@media (max-width: 699px) { #cookie-bar .cb-t > span { display: none; } #cookie-bar { flex-wrap: nowrap; align-items: center; } #cookie-bar .cb-t { flex: 1 1 auto; } .ad-hero { padding-bottom: 96px; } }
.city-route li::before { background: linear-gradient(0deg, rgba(10, 9, 8, .95) 0%, rgba(10, 9, 8, .7) 45%, rgba(10, 9, 8, .15) 100%); }
.city-route li .small { text-shadow: 0 1px 6px #000; }

/* landing hero video (the still underneath stays as poster and fallback) and the sound toggle */
.ad-vid { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; opacity: 0; transition: opacity 1.2s;
  translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px + var(--sy, 0) * .3px); scale: 1.04; }
.ad-vid.on { opacity: 1; }
@media (max-width: 699px) { .ad-vid { object-fit: cover; object-position: center top; height: auto; aspect-ratio: 9 / 16; bottom: auto; } }
.snd-tg { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(10, 9, 8, .6); color: var(--ink); font: 600 12px var(--fb); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.snd-tg svg { width: 18px; height: 18px; fill: currentColor; } .snd-tg .snd-on { display: none; }
.snd-tg.on { background: var(--fire); color: #fff; } .snd-tg.on .snd-on { display: block; } .snd-tg.on .snd-off { display: none; }
@media (max-width: 420px) { .snd-tg span { display: none; } .snd-tg { width: 34px; padding: 0; justify-content: center; } }
/* phone: lift the hero picture so the survivor stands above the title, not behind it */
@media (max-width: 699px) {
  .ad-vid { top: -110px; }
  .ad-hero::before { background-position: center -110px; }
}


/* 8 districts: two rows of four on wide screens */


/* ---- landing, below the hero ---- */
/* story beats: big picture + one punchy line, alternating sides */
.ad-story { display: grid; gap: 0; }
.beat { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.beat-img { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.08); transition: transform 6s ease-out; }
.beat.in .beat-img { transform: scale(1); }
.beat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0d0c0a 0%, rgba(13, 12, 10, .55) 40%, rgba(13, 12, 10, .1) 75%, #0d0c0a 100%); }
.beat-t { position: relative; z-index: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 var(--gut) 8vh; font: 800 clamp(26px, 5vw, 56px)/1.08 var(--fd); text-shadow: 0 4px 24px #000; }
.beat-t b { display: block; color: var(--ember); font-size: .55em; margin-bottom: 10px; }
@media (min-width: 900px) { .beat.r .beat-t { text-align: right; } .beat-t { padding-left: 40px; padding-right: 40px; } }
/* showreel */
.reel { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(240, 138, 69, .15); background: #000; aspect-ratio: 16 / 9; }
.reel-v { width: 100%; height: 100%; display: block; object-fit: cover; }
/* boss gallery */
.bossgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .bossgal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.boss-card { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #15130f; box-shadow: var(--shadow); }
.boss-card .art { position: absolute; inset: 0; transition: transform .6s; } .boss-card:hover .art { transform: scale(1.04); }
.boss-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .96) 6%, rgba(10, 9, 8, .2) 48%, transparent); }
.boss-in { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 4px; }
.boss-in b { font: 800 clamp(15px, 2.2vw, 20px)/1.15 var(--fd); text-shadow: 0 2px 10px #000; }
.boss-in span { font-size: 12px; color: var(--ink2); }
.threat { display: flex; gap: 4px; margin-top: 4px; } .threat i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 236, 210, .18); } .threat i.on { background: var(--accent); box-shadow: 0 0 8px rgba(214, 58, 43, .7); }
/* the horde: an endless strip of enemy faces */
.horde { margin: 22px calc(-1 * var(--gut)) 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.horde-in { display: flex; gap: 8px; width: max-content; animation: horde 90s linear infinite; }
.horde-c { width: 96px; height: 128px; flex: none; border-radius: 10px; background: #15130f center top / cover no-repeat; filter: saturate(.85); }
@keyframes horde { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .horde-in { animation: none; } }
.horde-t { margin-top: 16px; }
/* district route: a horizontal strip in story order */
.route { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 10px; scrollbar-width: none; max-width: 1180px; margin: 0 auto; }
.route::-webkit-scrollbar { display: none; }
.route-c { position: relative; flex: 0 0 min(78vw, 300px); aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #15130f; }
.route-c .art { position: absolute; inset: 0; }
.route-c::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .96) 12%, rgba(10, 9, 8, .3) 55%, rgba(10, 9, 8, .05)); }
.route-in { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.route-lv { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--fire); color: #fff; font: 600 12px var(--fb); margin-bottom: 8px; }
.route-in b { display: block; font: 800 17px/1.15 var(--fd); } .route-in p { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
/* roles */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.role-c { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #15130f; }
.role-c .art { position: absolute; inset: 0; }
.role-c::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .95) 10%, transparent 55%); }
.role-in { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: grid; gap: 2px; } .role-in b { font: 800 15px var(--fd); } .role-in span { font-size: 12px; color: var(--ink2); }
/* clan: full-bleed camp picture */
.ad-clan { position: relative; margin-top: 40px; padding: 18vh var(--gut); background: linear-gradient(90deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .55) 55%, rgba(10, 9, 8, .2)), url('/assets/img/camp_bg.jpg') center / cover no-repeat; }
.ad-clan::before, .ad-clan::after { content: ''; position: absolute; left: 0; right: 0; height: 120px; }
.ad-clan::before { top: 0; background: linear-gradient(180deg, #0d0c0a, transparent); } .ad-clan::after { bottom: 0; background: linear-gradient(0deg, #0d0c0a, transparent); }
.clan-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; } .clan-in .ad-p { max-width: 560px; color: var(--ink); }
@media (min-width: 900px) { .ad-clan { padding-left: 40px; padding-right: 40px; } }


/* the exchange: a short impact beat on Strike, then what each side lost */
.fb .impact { position: fixed; inset: 0; z-index: 30; pointer-events: none; animation: impact .42s steps(7) both;
  background: linear-gradient(transparent 0 38%, rgba(255, 255, 255, .5) 38% 41%, transparent 41% 63%, rgba(255, 74, 58, .45) 63% 65%, transparent 65%), rgba(255, 240, 230, .16); mix-blend-mode: screen; }
@keyframes impact { 0% { opacity: 1; transform: translateX(-6px); } 30% { opacity: .85; transform: translateX(8px) scaleY(1.02); } 60% { opacity: .5; transform: translateX(-3px); } 100% { opacity: 0; transform: none; } }
.fb .xres { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: flex; gap: 8px; pointer-events: none; animation: xres .35s .38s ease-out both; }
.fb .xres .xl { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 12, 14, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px var(--fb); color: var(--bone2); }
.fb .xres .xl b { font: 600 19px/1 var(--fd); color: #fff; }
.fb .xres .xl.me:not(.zero) b { color: var(--red2); text-shadow: 0 0 10px rgba(255, 74, 58, .55); }
.fb .xres .xl.zero b { color: var(--bone2); }
@keyframes xres { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* one centred row of equal pills (Vova 2026-11-30): what we lost, what it lost, the weapon of this strike - the same
   glass, height and padding, everything centred on the middle line */
.fb .xres { width: max-content; gap: var(--gap, 12px); align-items: center; }
.fb .xres .xl { box-sizing: border-box; height: 36px; align-items: center; padding: 0 14px; gap: 7px; line-height: 1; }
.fb .xres .xl > span { line-height: 1; }
.fb .xres .xl.wpn { padding-left: 5px; color: var(--bone); font-weight: 600; }
.fb .xres .wic { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
/* phone: the plates never reach the scene edges; the weapon chip drops to its own line when it does not fit */
@media (max-width: 520px) {
  .fb .xres { left: 8px; right: 8px; width: auto; transform: none; animation-name: xres-m; flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .fb .xres .xl { padding: 6px 10px; }
  .fb .xres .xl b { font-size: 17px; }
}
@keyframes xres-m { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* past the end of the wound tree (no new clip) the blood on each hit is bigger */
.fb .fmedia:has(.fanim.ov) .hitfx .spl { width: 200px; height: 200px; }

/* ---- during a fight: no section sub-tabs; on a phone no second row of resources (QA P1-10) ---- */
body:has(.fight.fb) #subnav { display: none; }
@media (max-width: 699px) { body:has(.fight.fb) #top .res { display: none; } }
/* desktop cards and the round log live in the wide scene only */
.fb .fs-me, .fb .fs-log { display: none; }


/* ---- desktop (QA P2-5, Vova: full screen): the fight fills the whole window under the top bars; the district fills
   the screen behind, the creature's video large in the middle with its sides fading into it; HUD laid over the scene
   at the edges: zone dots with labels on the body, its card and the last rounds of the log on the right, our card bottom
   left, the strip under the body. --hdr (the height of the top bars) and --mw (the body's width) come from fitStage. ---- */
.fb .fdist { display: none; }
@media (min-width: 700px) {
  .fight.fb { position: fixed; inset: 0; z-index: 40; max-width: none; margin: 0; border-radius: 0; }
  body:has(.fight.fb) .flog { display: none; }
  body:has(.fight.fb) #top, body:has(.fight.fb) #nav { z-index: 60; }
  .fb .fstage { --mw: min(calc((100cqh - var(--hdr, 112px) - var(--ftr, 0px) - var(--hudr, 104px)) * .75), calc(100cqw - 32px)); --side: calc(50% - var(--mw) / 2); }
  /* Vova 2026-11-30 (v4): the sides are the same live video, scaled to cover and heavily blurred under a vignette; the
     HUD uses them: our card and the ⋯ menu on the left, its card and the log on the right, glass panels in the frame of
     every other screen (margin --m, gap --gap from css/hud.css); the zone picks sit in the bottom panel. --hudr (the
     panel's height + gap), --lcol / --rcol (where the second panel of each column starts) come from fitStage. */
  .fb .fdist, .fb .fbg { display: none; }
  .fb .fside { display: block; position: absolute; z-index: 0; left: -80px; top: -80px; width: calc(100% + 160px); height: calc(100% + 160px); object-fit: cover;
    background: center / cover no-repeat; filter: blur(26px) brightness(.78) saturate(.9); pointer-events: none; }
  .fb .fvig { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .35) 100%); }
  .fb .fmedia { z-index: 2; }
  .fb .fstage { --col: clamp(240px, calc(var(--side) - var(--m) - var(--gap)), 400px); }
  .fb .fmedia { top: var(--hdr, 112px); width: var(--mw);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(180deg, #000 82%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(180deg, #000 82%, transparent); mask-composite: intersect; }
  /* 16:9: the body spans 21..97% of the frame's height; the frame is sized so it stands from one gap under the top bar
     to one gap over the bottom panel (head and feet always in view), centred; past the frame's sides the blurred copy */
  /* 16:9 (Vova 2026-11-30, laptop): the video covers the whole stage; the box is the rendered cover box itself (16:9,
     at least as wide and as tall as the stage), so the zone anchors and the sway tracks (% of the box) stay true. Its
     top: the head (21% down the frame) one gap and a bit under the top bar where the crop allows; the feet may go behind
     the see-through bottom panel. Centred, the side crop on tall windows keeps the body in the middle. */
  .fb .fstage { --wh: max(calc(100cqw * 9 / 16), 100cqh); }
  .fb .fmedia.wide { width: calc(var(--wh) * 16 / 9); top: clamp(calc(100cqh - var(--wh)), calc(var(--hdr, 112px) + var(--gap) + 20px - var(--wh) * .21), 0px);
    -webkit-mask-image: none; mask-image: none; }
  /* the HUD over the video: light frosted glass */
  .fb .fstage:has(.fmedia.wide) { --glass: rgba(18, 20, 22, .34); }
  .fb .fstage:has(.fmedia.wide) .glass, .fb .fstage:has(.fmedia.wide) .fhud { -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
  .fb .fs-tag { left: auto; right: var(--m); top: calc(var(--hdr, 112px) + var(--gap)); width: var(--col); max-width: none; min-width: 0; padding: 14px 18px; border-radius: 18px; }
  .fb .fs-tag .fs-name b { font-size: 24px; }
  .fb .fs-tag .thin { height: 5px; }
  .fb .fs-tag .hpn { font-size: 13px; }
  .fb .fs-me { display: flex; position: absolute; z-index: 8; left: var(--m); top: calc(var(--hdr, 112px) + var(--gap)); bottom: auto; width: var(--col); gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; }
  .fb .fs-me .ring { flex: none; width: 64px; height: 64px; }
  .fb .fs-me .fface { inset: 0; }
  .fb .fs-me-t { min-width: 0; flex: 1; }
  .fb .fs-me .fs-name b { font-size: 20px; }
  .fb .fs-me .thin { height: 5px; }
  .fb .fs-me .hpn { display: block; margin-top: 5px; font: 500 13px var(--fd); letter-spacing: .08em; color: var(--bone2); }
  .fb .fs-round { left: var(--m); right: auto; top: var(--lcol, 220px); }
  .fb .fs-log { display: block; position: absolute; z-index: 7; right: var(--m); top: var(--rcol, 220px); width: var(--col); max-height: calc(100% - var(--rcol, 220px) - var(--hudr, 160px) - var(--ftr, 0px));
    padding: 14px 18px; border-radius: 18px; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--bone2);
    -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .fb .fs-log-h { font: 600 10px var(--fb); letter-spacing: .16em; text-transform: uppercase; color: var(--bone2); margin-bottom: 8px; }
  .fb .fs-log .lr { margin-bottom: 10px; } .fb .fs-log .lr-h { font: 600 11px var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); margin-bottom: 3px; }
  .fb .fs-log .le.foe { color: #e59a8f; } .fb .fs-log .le .d { color: #ff6a5a; } .fb .fs-log .mute { opacity: .7; }
  .fb .fhud { left: 50%; right: auto; bottom: calc(var(--ftr, 0px) + var(--m)); width: min(860px, calc(100% - 2 * var(--m))); transform: translateX(-50%);
    grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 14px 12px 18px; border-radius: 22px; }
  .fb .fhud > .me { display: none; }
  .fb .zrow { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; }
  .fb .zrow .gt { display: grid; gap: 2px; padding: 0; justify-content: start; }
  .fb .zrow .gz { gap: 6px; }
  .fb .zrow .zbtn { grid-auto-flow: column; justify-content: center; align-items: center; padding: 10px 4px; border-radius: 12px; transition: background-color .2s, color .2s; }
  .fb .zrow .zbtn:not(.on):hover { background: rgba(255, 255, 255, .18); }
  .fb .zrow .zbtn span { font-size: 13.5px; }
  .fight.fb > .fsub { position: absolute; z-index: 9; left: calc(var(--m) + 66px); top: var(--lcol, 220px); bottom: auto; width: calc(var(--col) - 66px); max-width: none; padding: 0; background: none;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .fight.fb > .fsub .rules { display: none; }
  .fight.fb > .fsub .more-btn { display: grid; order: -1; width: 54px; height: 54px; place-content: center; border: 0; border-radius: 50%; color: var(--bone); font: 600 22px/1 var(--fb); cursor: pointer; }
  .fight.fb > .fsub .fc-row { display: none; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
  .fight.fb.more-open > .fsub .fc-row { display: flex; }
  .fight.fb > .fsub .tut { order: 1; box-sizing: border-box; width: var(--col); max-width: none; margin-left: -66px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 14px; }
  /* only the top bar stays over the fight (Vova): no section tabs */
  body:has(.fight.fb) #nav, body:has(.fight.fb) #subnav { display: none; }
  html:has(.fight.fb), body:has(.fight.fb) { overflow: hidden; }
}

@media (min-width: 700px) and (max-width: 1099px), (min-width: 700px) and (max-aspect-ratio: 7/5) {
  .fb .fstage { --col: min(280px, calc(50% - var(--m) - var(--gap) / 2)); }
  .fb .fs-log, .fb .fs-me { display: none; }
  .fb .fhud { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fb .fhud > .me { display: grid; }
  .fb .fs-round { top: calc(var(--hdr, 112px) + var(--gap)); }
  .fight.fb > .fsub { left: var(--m); top: var(--lcol, 220px); width: min(320px, calc(100% - var(--col) - 2 * var(--m) - var(--gap))); }
  .fight.fb > .fsub .tut { width: auto; margin-left: 0; }
}

/* ---- fight results (QA P2-4): one frame, the title in its middle, rewards as a glass strip at the bottom.
   Desktop: the frame fills the whole window like the fight; phone: the frame is 45% of the screen, title always on. ---- */
@media (max-width: 699px) { .end-stage { aspect-ratio: auto; height: 45vh; min-height: 260px; max-height: none; } }
.end-sub { display: none; }
.end-side, .end-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
/* rewards with an icon or the salvage's art (all sizes) */
.reward.rw { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.reward.rw .rw-t { display: grid; gap: 2px; min-width: 0; } .reward.rw small { font: 500 12px/1.2 var(--fb); color: var(--bone2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #ffcf6a; }
.rw-ic svg { width: 18px; height: 18px; } .rw-ic.xp { color: #cfe0ff; } .rw-ic .coin { width: 20px; height: 20px; }
.rw-ic.art-ic { overflow: hidden; background: none; } .rw-ic .rw-art { width: 100%; height: 100%; border-radius: 10px; }
.end-notes:empty { display: none; }
.end-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* Desktop (Vova 2026-11-30): the finale fills the window and nothing covers it. A big title and the run's name centred
   at the top over a soft gradient, the notes in a line or two under it; at the bottom over a soft gradient one calm
   symmetric row: the rewards | the two big buttons in the centre | the antidote (when infected) and the log link. The
   full log opens in a popup. */
@media (min-width: 700px) {
  .endscreen { --top: calc(var(--hdr, 58px) + var(--gap)); --tf: min(clamp(72px, 15vw, 260px), 30vh); }
  .endscreen .end-stage { position: fixed; inset: 0; z-index: 40; aspect-ratio: auto; max-height: none; border-radius: 0; }
  .endscreen .end-actors, .endscreen .end-names, .endscreen .end-panel > .end-head, .endscreen .end-main:not(:has(.end-stages)) { display: none; }
  .endscreen .end-vig { background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0, rgba(0, 0, 0, .25) calc(var(--top) + var(--tf) + 90px), transparent calc(var(--top) + var(--tf) + 160px)),
    linear-gradient(0deg, rgba(6, 7, 8, .85) 0, rgba(6, 7, 8, .55) 90px, transparent 220px); }
  .endscreen .end-title { left: 50%; right: auto; top: var(--ctop, calc(var(--top) + 2vh)); width: max-content; max-width: calc(100% - 2 * var(--m)); transform: translateX(-50%); text-align: center; }
  /* a film's final card: huge, see-through, the video readable behind it */
  .endscreen .end-title > span { font: 800 var(--tf)/.9 var(--fd); letter-spacing: .04em; text-transform: uppercase; padding-left: .04em; color: rgba(255, 255, 255, .42); text-shadow: 0 0 40px rgba(255, 255, 255, .12), 0 2px 24px rgba(0, 0, 0, .35); }
  .endscreen.lose .end-title > span { color: rgba(255, 74, 58, .45); text-shadow: 0 0 40px rgba(255, 40, 20, .2), 0 2px 24px rgba(0, 0, 0, .35); }
  .endscreen.frozen .end-title > span { animation-name: titlein-d; }
  .endscreen.frozen .end-title > span { animation-duration: .25s; animation-timing-function: ease-out; }
  @keyframes titlein-d { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
  .endscreen .end-title::after { display: none; }
  .endscreen .end-sub { display: block; margin-top: 4px; font: 600 15px/1.3 var(--fb); letter-spacing: .02em; color: var(--bone); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
  /* the notes: small, centred, a line each, under the title */
  .endscreen .end-notes { position: fixed; z-index: 45; left: 50%; top: var(--ntop, calc(var(--top) + 2vh + var(--tf) * .9 + 40px)); transform: translateX(-50%); width: max-content; max-width: min(720px, calc(100% - 2 * var(--m)));
    display: grid; justify-items: center; gap: 3px; text-align: center; opacity: 0; transition: opacity .8s .3s; }
  .endscreen.frozen .end-notes, .endscreen.done .end-notes { opacity: 1; }
  .endscreen .end-notes .note, .endscreen .end-notes > div:not([class]) { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; font-size: 13.5px; line-height: 1.4; color: var(--bone2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
  .endscreen .end-notes .note b { color: var(--bone); }
  /* the bottom row */
  .endscreen .end-panel { position: fixed; z-index: 45; left: var(--m); right: var(--m); bottom: var(--m); top: auto; width: auto; height: auto; transform: none;
    margin: 0; padding: 0; max-height: none; overflow: visible; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; column-gap: var(--gap); row-gap: var(--gap); }
  /* the rewards and buttons come with the title, not over the finale (Vova 2026-11-30) */
  .endscreen.play:not(.frozen) .end-panel { opacity: 0; pointer-events: none; }
  .endscreen.play.frozen .end-panel { animation: endpanel .35s .15s ease-out both; }
  @keyframes endpanel { from { opacity: 0; } to { opacity: 1; } }
  .endscreen .end-main { grid-column: 1 / -1; grid-row: 1; justify-self: center; padding: 0; background: none; }
  .endscreen .rewards { grid-column: 1; grid-row: 2; justify-self: start; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 10vw, 172px); gap: var(--gap); }
  .endscreen .reward { min-height: 56px; box-sizing: border-box; padding: 0 12px; background: rgba(255, 255, 255, .08); } .endscreen .reward b { font-size: 20px; }
  .endscreen .reward.loot { grid-column: auto; }
  .endscreen .end-btns { grid-column: 3; grid-row: 2; justify-self: end; display: grid; grid-template-columns: auto auto; gap: var(--gap); }
  .endscreen .end-btns .btn { min-height: 56px; padding: 0 30px; font-size: 16px; justify-content: center; }
  .endscreen .end-btns .btn:not(.ghost) { min-width: 210px; }
  .endscreen .end-btns .btn.ghost { min-width: 150px; background: rgba(255, 255, 255, .1); }
  /* under the notes, stacked and centred: the antidote (its own red pill, when infected), then the fight log as a text link */
  .endscreen .end-notes:has(.end-extra) { display: grid; }
  .endscreen .end-extra { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
  .endscreen .end-extra > .btn { margin: 0; }
  .endscreen .end-log > summary { list-style: none; cursor: pointer; font: 600 13px/1.3 var(--fb); color: var(--bone); text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 230, 218, .4); }
  .endscreen .end-log > summary:hover { text-decoration-color: var(--bone); }
  .endscreen .end-log > summary::-webkit-details-marker { display: none; }
  .endscreen .end-log[open] .clog { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); top: calc(100% + 10px); width: min(440px, 40vw); max-height: calc(100vh - var(--top) - var(--tf) - 230px); overflow: auto;
    padding: 14px 16px; border-radius: 14px; background: rgba(12, 14, 16, .95); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
  .endscreen .clog .end-stats { margin-bottom: 8px; font-size: 13px; color: var(--bone); }
  body:has(.endscreen) #top { z-index: 60; }
  body:has(.endscreen) #nav, body:has(.endscreen) #subnav, body:has(.endscreen) .chat-fab { display: none; }
}
/* narrower windows (840): the rewards above, then the buttons with the antidote / log beside them */
@media (min-width: 700px) and (max-width: 1100px) {
  .endscreen .end-panel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .endscreen .rewards { grid-column: 1 / -1; grid-row: 2; justify-self: start; } .endscreen .end-btns { grid-column: 1 / -1; grid-row: 3; }
  .endscreen .end-log[open] .clog { width: min(440px, 80vw); }
}

/* the row labels' one icon each (crossed blades / shield), high contrast; the big Strike button's blades */
.fb .zrow .gt .gi { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: #fff; }
.fb .zrow.atk .gt .gi { color: var(--red2); }
.fb .zrow .gt .gi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fb .fgo .core svg { stroke-width: 1.8; }
@media (min-width: 700px) {
  .fb .zrow .gt { grid-template-columns: auto auto; column-gap: 6px; align-items: center; justify-content: start; }
  .fb .zrow .gt .gi { grid-row: 1 / 3; margin: 0; }
}
/* loot among the rewards (Vova 2026-11-30): every tile the same height; the loot tile a bit wider, the item's thumbnail
   with its rarity rim and its name in the small label type, at most two lines */
@media (min-width: 700px) {
  .endscreen .rewards { display: flex; gap: var(--gap); }
  .endscreen .rewards > .reward { flex: none; width: auto; min-width: clamp(132px, 10vw, 172px); height: 56px; min-height: 0; }   /* a long label widens its tile, never cut */
  .endscreen .rewards > .reward.rw small { overflow: visible; text-overflow: clip; }
  .endscreen .rewards > .reward.loot { width: clamp(290px, 20vw, 320px); flex-direction: row; align-items: center; gap: 10px; padding: 0 12px 0 8px; }
  .endscreen .reward.loot .item { flex: none; width: 40px; height: 40px; border-radius: 10px; }
  .endscreen .reward.loot > div { display: grid; gap: 1px; min-width: 0; font: 500 11px/1.2 var(--fb); color: var(--bone2); }
  .endscreen .reward.loot b { font: 600 12.5px/1.2 var(--fb); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
/* the run line with the infection words in it (moved there by bind) */
@media (min-width: 700px) { .endscreen .end-sub .end-inf { font-weight: 500; color: var(--bone2); } .endscreen .end-sub .end-inf b { font-weight: 600; color: var(--bone); } }
/* no jump on entering / reloading the fight (Vova 2026-11-30): the creature shows only once fitStage has given the stage
   its bars (--hdr), so its first visible frame already has the final cover geometry */
@media (min-width: 700px) { .fight.fb:not([style*="--hdr"]) .fmedia { visibility: hidden; } }
