/* One-screen game layout (Vova, 2026-11-29): inside the game no page scrolls. The shell fills the window; #main gets the
   rest of the height and each screen fits in it. Long lists run sideways (.hs carousels with snap, the next card peeking)
   or sit in their own panel. The landing and story pages are outside #app and scroll as before. */

/* ---------- the shell: top bar + sections + #main, exactly one window high ---------- */
html:has(#app #main), html:has(#app #main) body { height: 100%; overflow: hidden; }
#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
#app > #top { flex: none; position: relative; }
#app > #subnav { flex: none; width: 100%; max-width: none; padding-inline: max(var(--gut), calc((100% - 1180px) / 2)); }
#app > #main { flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px max(var(--gut), calc((100% - 1180px) / 2)) 84px; }
@media (min-width: 900px) {
  #app > #nav, html #app > #nav { position: relative; top: auto; flex: none; }
  #app > #main { padding: 10px max(28px, calc((100% - 1180px) / 2)) 16px; }
  #app > #subnav { padding: 6px max(28px, calc((100% - 1180px) / 2)) 0; }
}
/* the legal footer lives on the Settings page inside the game */
#app .site-foot.in-game { display: none; }
#app #main:has(#snd-panel) .site-foot.in-game { display: block; }
/* page headings: compact, they share the window with the content */
#app .page-head { margin-bottom: 10px; }
#app .page-head h1 { font-size: clamp(24px, 4vw, 32px); }
#app .page-head p { margin-top: 2px; font-size: 13.5px; max-width: 760px; }

/* buttons: one line, a real icon */
.btn { white-space: nowrap; }
.btn > svg, .btn > .ic svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm > svg { width: 15px; height: 15px; }

/* horizontal carousel: cards in one row, swipe or wheel sideways, snap, the next card peeks in */
.hs { display: grid; grid-auto-flow: column; grid-auto-columns: var(--hs-w, minmax(220px, 72%)); gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 2px 2px 8px; scrollbar-width: thin; }
.hs > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 700px) { .hs { --hs-w: minmax(230px, 31%); } }
@media (min-width: 1200px) { .hs { --hs-w: minmax(230px, 23.5%); } }

/* Horde Night: the call to fight */
.hd-cta { display: flex; }
.hd-cta .btn { min-width: 220px; }

/* ---------- The Collector: paged listings ---------- */
.mk-pager { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.mk-cards > *, .p2p-cards > * { margin: 0; }

/* ---------- Survivor: portrait + tabs (Kit, Bag, Attributes, Getting started) ---------- */
.op-kit .op-tabs { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.op-kit .op-tabs .dist-tab { border: 0; cursor: pointer; white-space: nowrap; }
.op-kit .op-brief { order: 0; }
.op-kit [data-op] { display: none; }
.op-on-kit [data-op="kit"], .op-on-bag [data-op="bag"], .op-on-stats [data-op="stats"], .op-on-start [data-op="start"] { display: grid; gap: 12px; }
.op-stats { display: grid; gap: 12px; }
@media (max-width: 999px) {
  .op-kit { grid-template-columns: minmax(0, 1fr); }
  .op-kit .op-hero { order: -2; padding: 10px; grid-template-columns: 96px minmax(0, 1fr); }
  .op-kit .op-hero .portrait { aspect-ratio: 3 / 4; }
  .op-kit .op-tabs { order: -1; }
}
@media (min-width: 1000px) {
  .op-kit { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: 'hero mid tabs' 'hero mid side'; grid-template-rows: auto 1fr; align-items: start; }
  .op-kit > .op-hero { grid-area: hero; } .op-kit > .op-mid { grid-area: mid; } .op-kit > .op-tabs { grid-area: tabs; }
  .op-kit > .op-side, .op-kit > .op-brief { grid-area: side; }
  .op-kit .op-t-kit, .op-kit .op-t-bag { display: none; }
  .op-kit .op-mid [data-op] { display: grid; gap: 12px; }
  .op-on-kit .op-stats, .op-on-bag .op-stats { display: grid; }
  .op-kit .op-hero .portrait { aspect-ratio: auto; height: min(46vh, 420px); }
  .op-kit .op-items { max-height: 150px; }
}

/* ---------- Runs, Sweeps, Big Game, Odd Jobs: one row of cards sideways ---------- */
.en-row { --hs-w: minmax(170px, 46%); }
@media (min-width: 700px) { .en-row { --hs-w: minmax(170px, 24%); } }
@media (min-width: 1200px) { .en-row { --hs-w: minmax(170px, 15.8%); } }
.en-row .enemy > .art { aspect-ratio: 3 / 4; }
.en-row .enemy .body { padding: 10px 12px 12px; gap: 4px; }
.en-row .enemy .btn { width: 100%; }
#app #main .art.hero { height: clamp(120px, 20vh, 190px) !important; min-height: 0; }
#app #main .art.hero h1 { font-size: clamp(22px, 3.4vw, 34px); }
#app #main .first-win { padding: 10px 14px; margin: 8px 0; }
#app #main .hint-bar { margin: 6px 0; }

/* ---------- phone: one row for every strip of tabs and pills, short texts ---------- */
@media (max-width: 699px) {
  #app #top .res { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #app #top .res::-webkit-scrollbar { display: none; }
  #app #top .res .pill { flex: none; }
  #app #main .dist-tabs, #app #main .p2p-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #app #main .dist-tabs::-webkit-scrollbar { display: none; }
  #app #main .dist-tabs > *, #app #main .p2p-tabs > * { flex: none; }
  #app .page-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #app #main .art.hero .dist-radio { display: none; }
  #app #main .art.hero p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
}
/* the starter list in the side column: short rows */
.op-brief .brief > p.small { display: none; }
.op-brief .st-row { min-height: 0; }

/* ---------- Camp yard (markup in views-ashen.js, CSS only here): short hero, districts sideways ---------- */
#app #main .camp-hero { min-height: 0; }
#app #main .camp-hero h1 { font-size: clamp(28px, 4.4vw, 46px); margin: 2px 0; }
#app #main .camp-hero-in { padding: 6px 0 4px; }
#app #main .camp-me { max-height: min(22vh, 200px); width: auto; aspect-ratio: 3 / 4; align-self: end; }
#app #main .camp-grid { margin-top: 12px; gap: 16px; }
#app #main .act-grid { margin-bottom: 14px; }
#app #main .act-card { min-height: 0; padding: 12px 14px; }
#app #main .sec-h { margin: 0 0 8px; }
#app #main .city-route { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(220px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
#app #main .city-route > li { scroll-snap-align: start; min-height: 130px; }
@media (min-width: 700px) { #app #main .city-route { grid-auto-columns: minmax(220px, 40%); } }
@media (min-width: 1200px) { #app #main .city-route { grid-auto-columns: minmax(220px, 31.5%); } }
@media (max-width: 699px) {
  #app #main .camp-grid { grid-template-columns: minmax(0, 1fr); }
  #app #main .camp-vitals { margin-top: 6px; }
  #app #main .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #app #main .act-card { padding: 10px; font-size: 12px; } #app #main .act-card span { display: none; }
  #app #main .camp-side { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; }
  #app #main .camp-side > * { scroll-snap-align: start; }
}

/* ---------- Camp buildings and The Last Row: cards sideways ---------- */
.cp-tabs { margin: 0 0 8px; }
.cp-tabs .dist-tab { border: 0; cursor: pointer; }
#app #main .cp-hero { padding: 0; margin-bottom: 8px; }
#app #main .cp-hero h1 { font-size: clamp(24px, 4vw, 34px); }
#app #main .cp-lead { margin: 2px 0 0; font-size: 13.5px; }
#app #main .bld-grid.hs, #app #main .food-grid.hs { grid-template-columns: none; }
.food-grid.hs { --hs-w: minmax(220px, 80%); }
@media (min-width: 700px) { .food-grid.hs { --hs-w: minmax(220px, 46%); } }
#app #main .inf-shop { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
#app #main .inf-shop > * { scroll-snap-align: start; }
#app #main .city-route li .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app #main .city-route > li { min-height: 120px; }

/* ---------- crews: the ranking runs sideways ---------- */
#app #main .syn-list.hs { display: grid; }
#app #main .syn-list.hs .syn-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; }
#app #main .syn-list.hs .syn-act { margin-top: auto; }

/* ---------- Supply Drop: five token packs + your own amount, one row ---------- */
.sd-bal { margin: 0 0 10px; }
.sd-packs { --hs-w: minmax(170px, 46%); }
@media (min-width: 700px) { .sd-packs { --hs-w: minmax(170px, 31%); } }
@media (min-width: 1100px) { .sd-packs { display: grid; grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; } }
.sd-pack { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.sd-pack > .art { aspect-ratio: 4 / 3; }
.sd-b { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.sd-b > b { font: 600 16px var(--fd); }
.sd-tk { font: 700 20px var(--fd); color: #fff; }
.sd-bonus { align-self: flex-start; color: var(--green); }
.sd-b .btn { margin-top: auto; width: 100%; justify-content: center; }
.sd-custom { background: rgba(255, 74, 58, .08); }
.sd-custom .sd-b { justify-content: flex-start; }
.sd-in-row { display: flex; align-items: center; gap: 6px; }
.sd-cur { font: 700 20px var(--fd); }
.sd-in { width: 100%; font: 700 20px var(--fd); }
.sd-note { margin: 6px 0 12px; }
.sd-spend-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .sd-spend-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Barter (views-trade.js had no styles in this game): rumours ticker, goods | chart | order + book ---------- */
#app #main .ticker { display: flex; align-items: center; border-radius: 14px; background: rgba(22, 19, 16, .8); margin: 0 0 10px; overflow: hidden; }
.tk-label { padding: 8px 12px; background: var(--fire, #d8322a); color: #fff; font: 700 12px var(--fd); letter-spacing: .1em; flex: none; }
.tk-track { overflow: hidden; flex: 1; position: relative; }
.tk-run { display: inline-flex; gap: 48px; white-space: nowrap; padding: 8px 0 8px 24px; animation: tk 60s linear infinite; font-size: 13px; }
.tk-run > span { display: inline-flex; gap: 6px; }
@keyframes tk { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-run { animation: none; } }
.tf { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.tf-list { padding: 10px; display: grid; gap: 2px; }
.cm { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 7px 8px; cursor: pointer; border-radius: 10px; }
.cm:hover { background: rgba(255, 255, 255, .04); }
.cm.on { background: rgba(255, 74, 58, .12); }
.cm svg { grid-column: 2 / -1; width: 100%; height: 22px; }
.cm-ic { width: 34px; height: 34px; border-radius: 8px; grid-row: span 2; flex: none; }
.cm-n { display: flex; flex-direction: column; min-width: 0; } .cm-n b { font: 600 14px var(--fd); }
.cm-p { text-align: right; display: flex; flex-direction: column; }
.chart { width: 100%; height: min(34vh, 300px); display: block; margin: 8px 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; border-radius: 10px; overflow: hidden; background: var(--card2); }
.seg button { background: transparent; border: 0; color: var(--ink2); padding: 9px; font: 700 13px var(--fd); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg button.on.buy { background: var(--green); color: #0a0b0c; } .seg button.on.sell { background: var(--fire, #d8322a); color: #fff; }
.book { font: 12px var(--fd); }
.bl { display: flex; justify-content: space-between; padding: 3px 8px; position: relative; cursor: pointer; }
.bl i { position: absolute; right: 0; top: 0; bottom: 0; opacity: .16; }
.bl.ask { color: var(--red); } .bl.ask i { background: var(--red); }
.bl.bid { color: var(--green); } .bl.bid i { background: var(--green); }
.bl.mid { color: #fff; font-size: 15px; background: rgba(255, 255, 255, .05); border-radius: 8px; margin: 3px 0; padding: 6px 8px; cursor: default; }
.bl span { position: relative; }
@media (max-width: 1300px) { .tf { grid-template-columns: 240px minmax(0, 1fr); } .tf-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) {
  .tf { grid-template-columns: minmax(0, 1fr); } .tf-side { grid-template-columns: minmax(0, 1fr); }
  .tf-list { grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .tf-list > h3 { display: none; } .tf-list .cm { scroll-snap-align: start; background: rgba(255, 255, 255, .03); }
}

/* ---------- Wall of names and other long tables: the table scrolls inside its panel, the head stays ---------- */
#app #main .panel:has(> table), #app #main .panel:has(> .tbl-wrap) { max-height: calc(100dvh - 330px); min-height: 260px; overflow-y: auto; }
#app #main .panel > table thead th { position: sticky; top: 0; background: #141210; z-index: 1; }
.sd-pack { min-height: 190px; }
.sd-pack.has-bonus { background: linear-gradient(180deg, rgba(255, 74, 58, .1), rgba(22, 19, 16, .86)); }

/* ---------- Journal: chapters sideways, a found note scrolls inside its card ---------- */
#app #main .jr-hero { padding: 0 0 8px; }
#app #main .jr-lead { margin: 0 0 8px; font-size: 13.5px; }
#app #main .jr-grid > div:first-child { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 86%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; align-items: start; }
@media (min-width: 700px) { #app #main .jr-grid > div:first-child { grid-auto-columns: minmax(260px, 48%); } }
#app #main .jr-ch { margin: 0; scroll-snap-align: start; }
#app #main .jr-notes { grid-template-columns: minmax(0, 1fr); }
#app #main .jr-note { padding: 10px 12px; max-height: 26vh; overflow-y: auto; }
/* Scars on a phone: a 2-column wall of badges, each icon in a progress ring; tap opens the details (QA P2-18) */
@media (max-width: 699px) {
  #app #main .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #app #main .ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; margin: 0; cursor: pointer; }
  #app #main .ach .ach-top { flex-direction: column; align-items: center; gap: 8px; }
  #app #main .ach .ach-top .small, #app #main .ach .ach-tiers, #app #main .ach .prog { display: none; }
  #app #main .ach .ach-top h3 { font-size: 15px; margin: 0; }
  #app #main .ach .ach-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 22px;
    background: radial-gradient(closest-side, #15161a 78%, transparent 80%), conic-gradient(#e0392e calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
  #app #main .ach > .row { margin-top: 2px !important; flex-direction: column; gap: 6px; } #app #main .ach > .row .sp { display: none; }
}

/* ---------- Level Zero opponents on a phone: each row is a short card, the fight button always visible ---------- */
@media (max-width: 699px) {
  #app #main .pz-t, #app #main .pz-t tbody { display: block; }
  #app #main .pz-t tr:first-child { display: none; }
  #app #main .pz-t tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'nm nm nm go' 'cls lv rt go'; align-items: center; gap: 2px 10px; padding: 8px 4px; }
  #app #main .pz-t td { padding: 0; border: 0; }
  #app #main .pz-t td:nth-child(1) { grid-area: nm; }
  #app #main .pz-t td:nth-child(2) { grid-area: cls; } #app #main .pz-t td:nth-child(3) { grid-area: lv; } #app #main .pz-t td:nth-child(4) { grid-area: rt; }
  #app #main .pz-t td:nth-child(2), #app #main .pz-t td:nth-child(3), #app #main .pz-t td:nth-child(4) { font-size: 12px; color: var(--ink2); }
  #app #main .pz-t td:nth-child(5) { display: none; }
  #app #main .pz-t td:last-child { grid-area: go; }
}

/* ---------- Big Game: tall boss cards sideways; hunts the same way, with progress and hunters ---------- */
.rb-note { margin: 0 0 8px; }
.rb-row { --hs-w: minmax(200px, 74%); align-items: stretch; }
@media (min-width: 700px) { .rb-row { --hs-w: minmax(200px, 31%); } }
@media (min-width: 1200px) { .rb-row { --hs-w: minmax(200px, 19.2%); } }
.rb-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(22, 19, 16, .86); box-shadow: var(--shadow); }
.rb-card > .rb-art { aspect-ratio: 3 / 4; width: 100%; }
.rb-b { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; flex: 1; }
.rb-b h3 { margin: 0; font: 600 17px/1.15 var(--fd); color: #fff; }
.rb-pool { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; }
.rb-pool b { font: 700 15px var(--fd); }
.rb-hp { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rb-hp > .rb-fill { display: block; height: 100%; min-width: 6px; background: #e0392e; box-shadow: 0 0 8px rgba(255, 74, 58, .45); border-radius: 6px; }
.rb-rw { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-rw b { color: #fff; } .rb-gi { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rb-b > .btn, .rb-b .raid-btns .btn { margin-top: auto; width: 100%; justify-content: center; }
.rb-b .raid-btns { margin-top: auto; display: grid; gap: 6px; }
.rb-st { align-items: center; }
.rb-dmg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink2); }
.rb-dmg .me { color: #fff; }
.rb-card.lock .rb-art:not(.loaded) { filter: grayscale(1) brightness(.5); }
.rb-card.lock .rb-b { opacity: .7; }
.rb-lock { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font: 600 15px var(--fd); text-shadow: 0 2px 10px #000; }
.rb-lk { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rb-hunt.won .rb-art, .rb-hunt.expired .rb-art { filter: grayscale(.8) brightness(.6); }

/* ---------- Odd Jobs: scene on top; Chores: tasks sideways ---------- */
.gig-card { display: flex; flex-direction: column; padding: 0 0 14px; overflow: hidden; }
.gig-card > .gig-art { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.gig-card > :not(.gig-art) { margin-left: 14px; margin-right: 14px; }
.gig-card > .btn { width: auto !important; margin-top: auto !important; }
.gig-card > p { min-height: 0 !important; }
.qs-row > .panel { display: flex; flex-direction: column; margin: 0; }
.qs-row > .panel .btn { margin-top: auto; }
/* the 7-day reward on a phone: one row of days, not seven lines */
@media (max-width: 699px) {
  #app #main .dly-row { grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scroll-snap-type: x mandatory; }
  #app #main .dly-row .dly { grid-template-columns: 1fr; gap: 2px; scroll-snap-align: start; align-content: start; }
}

.qs-row > .panel .row { flex-wrap: wrap; gap: 6px 10px; }
.qs-row > .panel .row > * { min-width: 0; }

/* chat: below 1320 px (phones, tablets, small laptops) it is an icon in the top bar next to music and sound, with the unread dot; the floating
   bubble is desktop only, where it sits in the empty gutter right of the 1180 px content */
.top-chat { position: relative; }
.top-chat.new::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red2, #ff4a3a); box-shadow: 0 0 6px rgba(255, 74, 58, .8); }
@media (min-width: 1320px) { .top-chat { display: none; } }
@media (max-width: 1319px) { #chat-fab, .chat-fab { display: none !important; } }

/* boss and enemy pictures are 3:4 portraits: the whole figure, head included, is always visible. Where the box is
   not 3:4 (short phone cards, short windows) the picture is fitted whole on a dark backdrop instead of cropped. */
#app #main .enemy > .art { aspect-ratio: 3 / 4; }

/* picture cards fit the visible height (js/fit-cards.js sets --card-h per row): the picture shrinks, the text and the
   button keep their size. The whole figure is shown (contain) over a blurred, darkened copy of itself (cover), so a
   narrow picture never leaves black bars at its sides. */
#app #main .hs > .rb-card, #app #main .hs > .enemy { display: flex; flex-direction: column; max-height: var(--card-h, none); }
#app #main .hs > :is(.rb-card, .enemy) > .art { flex: 1 1 auto; min-height: 110px; aspect-ratio: 3 / 4; background-size: 0 0; isolation: isolate; }
#app #main .hs > :is(.rb-card, .enemy) > :not(.art), #app #main .hs > :is(.rb-card, .enemy) > .rb-b > * { flex-shrink: 0; }
#app #main .hs > :is(.rb-card, .enemy) > .art.loaded::before { content: ''; position: absolute; inset: -16px; background-image: inherit; background-size: cover; background-position: center; filter: blur(16px) brightness(.4) saturate(.8); }
#app #main .hs > :is(.rb-card, .enemy) > .art.loaded::after { content: ''; display: block; position: absolute; inset: 0; background-image: inherit; background-size: contain; background-repeat: no-repeat; background-position: center bottom; }
#app #main .hs > .rb-card.lock > .art.loaded::after { filter: grayscale(1) brightness(.55) contrast(1.1); }
#app #main .rb-card.lock .rb-lock { z-index: 2; }
/* narrow phones: logo mark only, so the tools stay on the first row */
@media (max-width: 400px) { #app #top .brand-name { display: none; } #app #top .top-tools { gap: 4px; } }
/* short phone screens (browser bars, 360x640): page texts give way to the cards */
@media (max-width: 699px) and (max-height: 760px) {
  #app .page-head p, #app #main .rb-note { display: none; }
  #app .page-head { margin-bottom: 6px; } #app #main .p2p-h { margin: 6px 0; }
  #app #main .rb-b { gap: 3px; padding: 8px 10px 10px; } #app #main .rb-b > .small.mute:first-child { display: none; }
  #app #main .hs > :is(.rb-card, .enemy) > .art { min-height: 90px; }
}

/* The Last Row: food cards in a row are tall cards (picture, name, two lines of text, price and Buy), never overlapping */
#app #main .food-grid.hs { --hs-w: minmax(190px, 62%); }
@media (min-width: 700px) { #app #main .food-grid.hs { --hs-w: minmax(190px, 31%); } }
@media (min-width: 1200px) { #app #main .food-grid.hs { --hs-w: minmax(190px, 23.6%); } }
#app #main .food-grid.hs > .food-card { display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-width: 0; }
#app #main .food-grid.hs .fc-art { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
#app #main .food-grid.hs .fc-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
#app #main .food-grid.hs .fc-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
#app #main .food-grid.hs .fc-row { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: nowrap; }
#app #main .food-grid.hs .fc-p { white-space: nowrap; }
#app #main .food-grid.hs .fc-have { font-size: 12px; color: var(--ink2); white-space: nowrap; }
/* sortie screens on a phone: a short district banner so the enemy cards fit with their buttons */
@media (max-width: 699px) {
  #app #main .art.hero { display: none; }
  #app #main .en-row { --hs-w: minmax(200px, 70%); }
  #app #main .first-win { font-size: 12.5px; padding: 8px 12px; }
}
#app #main .food-grid.hs .fc-have { display: none; }   /* the pantry panel next to it shows what you have */

/* Level Zero banner: rating, place, record big; season banner: one line over the picture */
#app #main .pz-hero .ovl { display: flex; align-items: flex-end; background: linear-gradient(0deg, rgba(8, 7, 6, .88), rgba(8, 7, 6, .2) 70%); }
.pz-stats { display: flex; gap: clamp(18px, 4vw, 48px); }
.pz-stats > div { display: flex; flex-direction: column; gap: 2px; }
.pz-stats span { font-size: 13px; color: var(--ink2); }
.pz-stats b { font: 700 clamp(24px, 3.2vw, 36px)/1 var(--fd); color: #fff; }
#app #main .art.hero[data-art="season_banner"] { box-shadow: inset 0 0 120px rgba(170, 20, 10, .55); }
.sn-lead { font: 600 16px var(--fd); color: #fff; margin: 0; }
/* Wall of Names: place and reward in two columns */
.season-rw { display: grid; grid-template-columns: auto auto; gap: 4px 16px; align-items: baseline; }
.season-rw > div { display: contents; }
.sr-pl { color: var(--ink2); font: 600 13px var(--fd); }
.sr-rw { font: 700 14px var(--fd); color: #fff; }

/* ---------- Landing: "Every round is a choice" fight frame (was unstyled) ---------- */
.ad-fightsec { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .ad-fightsec { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* ---------- Landing: "This is Corvane now" is a slow slideshow of the districts (no showreel video yet) ---------- */
.reel-kb { position: relative; aspect-ratio: 16 / 8; }
.reel-kb .kb { position: absolute; inset: 0; margin: 0; background-size: 0 0; overflow: hidden; opacity: 0; animation: kb calc(var(--n) * 5s) infinite; animation-delay: calc(var(--i) * 5s); }
.reel-kb .kb::before { content: ''; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; animation: kbz calc(var(--n) * 5s) infinite; animation-delay: inherit; }
.reel-kb .kb figcaption { opacity: 0; animation: kbt calc(var(--n) * 5s) infinite; animation-delay: calc(var(--i) * 5s); }
@keyframes kb { 0% { opacity: 0; } 3% { opacity: 1; } 12.5% { opacity: 1; } 15.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kbz { 0% { transform: scale(1.08); } 15.5% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes kbt { 0%, 3.5% { opacity: 0; } 5% { opacity: 1; } 11.5% { opacity: 1; } 12.5%, 100% { opacity: 0; } }
.reel-kb .kb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 6, .85), transparent 55%); }
.reel-kb figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.reel-kb figcaption b { font: 700 clamp(20px, 3vw, 30px) var(--fd); color: #fff; }
.reel-kb figcaption span { color: var(--ink2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 699px) { .reel-kb { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .reel-kb .kb, .reel-kb .kb::before, .reel-kb figcaption { animation: none; } .reel-kb .kb:first-child, .reel-kb .kb:first-child figcaption { opacity: 1; } }

/* Landing top bar at phone width: sound, currency, Log in and Play free fit in 360-420 px */
@media (max-width: 420px) {
  .ad-top { gap: 5px; }
  .ad-top .btn.sm { padding-left: 10px; padding-right: 10px; font-size: 12px; }
  .ad-top .brand-mark { flex: none; }
}
@media (max-width: 699px) {
}

/* Boss cards look like one row (Vova 2026-11-29): every boss stands on his district's street, blurred and tinted blood-dark,
   and the portrait fades at its edges so studio backdrops don't read as a grey box */
#app #main .hs > .rb-card > .art.loaded::before { background-image: var(--bd); filter: blur(8px) brightness(.55) saturate(.6) sepia(.35) hue-rotate(-25deg); }
#app #main .hs > .rb-card > .art.loaded::after { inset: 5% 9% 0; filter: saturate(.8) brightness(.92); -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent), linear-gradient(180deg, transparent, #000 24%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent), linear-gradient(180deg, transparent, #000 24%); mask-composite: intersect; }
#app #main .rb-card.lock .rb-lock { top: 10px; left: auto; right: 10px; transform: none; flex-direction: row; padding: 6px 12px; border-radius: 999px; background: rgba(8, 7, 6, .72); font-size: 13px; }

/* Native controls (checkboxes, selects, scrollbars, date pickers) dark too, ticks in blood red */
:root { color-scheme: dark; accent-color: #e0392e; }

/* ---------- Survivor profile (QA P2-3): full-height portrait beside the stats, gadgets as a row of small tiles ---------- */
.p2p-prof { align-items: start; }
.p2p-who-card { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 18px; align-items: start; }
.p2p-who-card > .p2p-portrait { aspect-ratio: 3 / 4; width: 100%; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center top; }
.p2p-pinfo h2 { margin: 2px 0 10px; font: 700 26px var(--fd); }
.p2p-pinfo .kv { grid-template-columns: auto 1fr; gap: 7px 16px; }
.p2p-pinfo .kv b { text-align: right; }
.p2p-eqgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.p2p-eq { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.p2p-eqt, .p2p-eqt > .item { width: 56px; height: 56px; flex: none; }
.p2p-eqt > .item { border-radius: 10px; overflow: hidden; }
.p2p-eqt > .item > .art { width: 100%; height: 100%; aspect-ratio: auto; }
.p2p-eqt > .item.empty { background: rgba(255, 255, 255, .05); }
@media (max-width: 560px) { .p2p-who-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } .p2p-pinfo h2 { font-size: 20px; } }
.pf-row { --hs-w: minmax(200px, 62%); }
@media (min-width: 700px) { .pf-row { --hs-w: minmax(200px, 23%); } }
@media (min-width: 1200px) { .pf-row { --hs-w: minmax(200px, 18.6%); } }
.pf-row .card-item > .item, .pf-row .p2p-card > .item { height: 120px; }
.pf-row .card-item > .item > .art, .pf-row .p2p-card > .item > .art { height: 100%; aspect-ratio: auto; background-size: contain; }
.prof-badges .ach-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.prof-badges .ach-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(224, 57, 46, .18); color: #ff7a6e; font-size: 12px; }

/* Camp (QA P2-14): HP, stamina and satiety already sit in the top bar; the camp block shows only the hunger warning when it fires */
#app #main .camp-vitals:not(:has(.cv-hint)) { display: none; }
#app #main .camp-vitals > div:not(.cv-low) { display: none; }
#app #main .city-route li > .btn { position: relative; z-index: 2; }
/* desktop: the survivor is the hero of the camp, a big figure on the right across the header and the actions;
   the side cards (streak, log, rules) go under the figure */
@media (min-width: 760px) {
  #app #main .camp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 27vw, 340px); grid-template-areas: "hero me" "banner me" "main me" "main side"; grid-template-rows: auto auto 1fr auto; column-gap: 22px; }
  #app #main .camp > .camp-hero, #app #main .camp > .camp-grid { display: contents; }
  #app #main .camp-fx { grid-area: hero; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  #app #main .camp-hero-in { grid-area: hero; padding: 0 0 6px; align-self: end; }
  #app #main .camp > .hd-banner { grid-area: banner; }
  #app #main .camp-main { grid-area: main; }
  #app #main .camp-side { grid-area: side; margin-top: 14px; }
  #app #main .camp-hero .camp-me { grid-area: me; display: block; width: 100%; aspect-ratio: 3 / 4; height: auto !important; max-height: none; min-height: 0; margin: 0; border-radius: 22px; align-self: start;
    background-size: cover; background-position: center top; box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
}
/* a hint in a narrow side column: the "Got it" button goes under the text instead of squeezing it */
#app #main .camp-side .intro { flex-wrap: wrap; } #app #main .camp-side .intro > div { flex: 1 1 calc(100% - 40px); } #app #main .camp-side .intro > .btn { margin-left: 32px; }
#app #main .camp-side .intro > div > span { display: block; }

/* Workbench: a locked recipe stays readable, a lock line says when it opens */
.ws-lk { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 7, 6, .6); color: #fff; font-size: 13px; }
.ws-lk .ws-lki { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ws-lock .ws-lk ~ * :is(.num, b) { opacity: .75; }

/* ---------- Season pass (QA P2-9): a track of 30 in two rows, "You are here", big 10/20/30, Claim only where it can be taken ---------- */
#app #main .art.hero.sn-hero { height: 130px !important; }
.sn-panel { padding: 14px; }
.sn-track { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; padding-top: 14px; }
.sn-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .035); text-align: center; min-width: 0; }
.sn-t.reached { background: rgba(224, 57, 46, .1); }
.sn-t.here { box-shadow: inset 0 0 0 2px #e0392e; background: rgba(224, 57, 46, .16); }
.sn-t.big { background: linear-gradient(180deg, rgba(224, 168, 58, .16), rgba(255, 255, 255, .03)); }
.sn-t.big .sn-n { font-size: 22px; color: #e0a83a; }
.sn-here { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #e0392e; color: #fff; font-size: 10px; white-space: nowrap; }
.sn-n { font: 700 16px/1 var(--fd); color: #fff; }
.sn-r { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 18px; max-width: 100%; }
.sn-r.prem { opacity: .95; } .sn-r.prem.locked { opacity: .5; } .sn-r.got { opacity: .45; }
.sn-v { display: inline-flex; align-items: baseline; gap: 2px; font-size: 13px; min-width: 0; max-width: 100%; }
.sn-v small { font-size: 10px; color: var(--ink2); white-space: nowrap; }
.sn-v.tk b { color: #f2c14e; } .sn-v.ing b { color: #ff7a6e; }
.sn-v[class*=" r"] { flex-direction: column; align-items: center; gap: 1px; } .sn-v[class*=" r"] small { color: inherit; font-size: 10px; letter-spacing: -.01em; }
.sn-r.prem.locked .sn-lk { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; }
.sn-r.prem { padding-top: 4px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .05); width: 100%; }
.sn-gi, .sn-lk, .sn-ck { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sn-lk { color: var(--ink2); }
.sn-cl { padding: 4px 8px; font-size: 11px; margin-top: 2px; }
.sn-ok { color: #7fb069; } .sn-ok .sn-ck { width: 16px; height: 16px; }
@media (max-width: 1099px) {
  .sn-track { grid-template-columns: none; grid-template-rows: auto; grid-auto-flow: column; grid-auto-columns: 82px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .sn-t { scroll-snap-align: start; }
}
.sn-xp { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink2); } .sn-xp b { color: #fff; font: 700 18px var(--fd); }
.sn-bar { height: 8px; margin: 8px 0 18px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; } .sn-bar > i { display: block; height: 100%; min-width: 4px; background: #e0392e; border-radius: 8px; }
.sn-v.ing b { font-size: 11px; font-weight: 600; }
@media (min-width: 1100px) { .sn-t { padding: 12px 4px; gap: 6px; } }
.sn-xp .sn-x { font: 600 14px var(--fb); color: #fff; }

/* Journal (QA P2-15): unfound notes look like burnt scraps of paper, the chapter reward is one readable line with its button under it */
#app #main .jr-note.lock { min-height: 52px; padding: 10px 14px; color: rgba(236, 230, 218, .42);
  background: radial-gradient(120% 90% at 30% 40%, rgba(92, 66, 44, .28), rgba(30, 22, 16, .55) 70%), rgba(255, 255, 255, .02); box-shadow: none;
  clip-path: polygon(0 6%, 7% 0, 22% 4%, 38% 0, 55% 5%, 71% 1%, 88% 6%, 100% 2%, 98% 40%, 100% 78%, 96% 100%, 80% 95%, 61% 100%, 44% 94%, 27% 100%, 10% 96%, 0 100%, 2% 60%); }
#app #main .jr-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
#app #main .jr-pay > span { flex: 1 1 calc(100% - 34px); min-width: 0; line-height: 1.4; }
#app #main .jr-pay > .btn { flex: 1 1 100%; }

/* Workshop (QA P2-2): an empty slot is a big silhouette with what fits it from the bag; a tuning table beside the load */
.lb-empty { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.lb-sil { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(224, 57, 46, .14), rgba(255, 255, 255, .03) 70%); color: rgba(236, 230, 218, .35); }
.lb-si { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lb-eb h3 { margin-top: 0; } .lb-eb > p { margin: 0 0 12px; }
.lb-fit { display: grid; gap: 8px; }
.lb-fi { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.lb-fi > .item { width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; }
.lb-fi > .item > .art { width: 100%; height: 100%; aspect-ratio: auto; }
.lb-fn { flex: 1; min-width: 0; } .lb-fn .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-low { margin-top: 16px; align-items: stretch; }
.lb-tt { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.lb-tt > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.lb-tt > div.hi { background: rgba(224, 57, 46, .12); }
.lb-tt b { font: 700 15px var(--fd); color: #fff; } .lb-tt span { font-size: 13px; } .lb-tt small { font-size: 10px; color: var(--ink2); white-space: nowrap; }
@media (max-width: 760px) { .lb-empty { grid-template-columns: 72px minmax(0, 1fr); } .lb-si { width: 36px; height: 36px; } .lb-tt { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- No small uppercase kicker labels (Vova 2026-11-30): section headings in normal case in the display font ---------- */
#app .sec-h, #app .panel h3, #app .panel > h2, #app .side-card > b, #app .p2p-h { font: 600 19px/1.25 var(--fd); letter-spacing: .01em; text-transform: none; color: #fff; }
#app .kicker, #app .camp-where, #app .sh-where, #app .sh-who span, #app .camp-vitals span, #app .dly-row .dly .dly-d, #app .dlg-k, .dlg-k { text-transform: none; letter-spacing: 0; font-family: var(--fb); }
#app .camp-where, #app .sh-where { font-size: 14px; font-weight: 500; }
#app table.t th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
#app .seg button { text-transform: none; letter-spacing: 0; font-size: 14px; }
#app .pz-stats span { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* district cards: the text on a dark bottom gradient, "Go" a clear button under it (it never sits on the text) */
#app #main .city-route > li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; min-height: 176px; }
#app #main .city-route > li::before { background: linear-gradient(0deg, rgba(6, 7, 8, .97) 0%, rgba(6, 7, 8, .9) 58%, rgba(6, 7, 8, .35) 85%, rgba(6, 7, 8, .1) 100%); }
#app #main .city-route > li > .btn { align-self: flex-start; }
#app #main .city-route > li > .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }

/* Settings: the password form is label, two fields side by side, then the button */
#app #main .acc-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
#app #main .acc-f > label, #app #main .acc-f > .row, #app #main .acc-f > .btn { grid-column: 1 / -1; justify-self: start; } #app #main .acc-f > .row { justify-self: stretch; }
@media (max-width: 560px) { #app #main .acc-f { grid-template-columns: minmax(0, 1fr); } }

/* Friends (QA P2-11): who to add, five survivors close to your level */
.fr-sug { --hs-w: minmax(200px, 70%); }
@media (min-width: 700px) { .fr-sug { --hs-w: minmax(200px, 31%); } }
@media (min-width: 1200px) { .fr-sug { --hs-w: minmax(200px, 19%); } }
.fr-sc { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; }
.fr-sc > .fr-sp { width: 100%; height: 190px; aspect-ratio: auto; border-radius: 12px; background-size: cover; background-position: center top; }
.fr-sb { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .fr-sb .btn { margin-top: 6px; }

.p2p-gifts .p2p-in { width: 100%; max-width: 440px; }

/* Wall of Names: podium for the top three, table rows as cards on a phone (QA P2-6) */
.rk-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 4px 0 14px; }
.rk-p { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card, #121316); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.rk-p > .rk-pi { width: 100%; height: 210px; aspect-ratio: auto; border-radius: 0; background-size: cover; background-position: center 15%; }
.rk-p.p1 > .rk-pi { height: 260px; } .rk-p.p1 { box-shadow: 0 0 0 2px rgba(224, 57, 46, .7), 0 22px 50px rgba(224, 57, 46, .18); }
.rk-pb { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.rk-pb > a, .rk-pb > b, .rk-pb > span:not(.rk-n):not(.small) { font: 600 17px var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-n { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); font: 700 14px var(--fd); color: #fff; }
.rk-p.p1 .rk-n { background: #e0392e; }
@media (max-width: 600px) {
  .rk-pod { gap: 8px; } .rk-p > .rk-pi { height: 120px; } .rk-p.p1 > .rk-pi { height: 160px; }
  .rk-pb { padding: 8px 9px 10px; } .rk-pb > a, .rk-pb > b, .rk-pb > span:not(.rk-n):not(.small) { font-size: 14px; } .rk-pb .small { font-size: 11px; }
  #app #main table.rk-t, #app #main table.rk-t tbody { display: block; }
  #app #main table.rk-t tr:first-child { display: none; }
  #app #main table.rk-t tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 9px 4px; }
  #app #main table.rk-t td { display: block; padding: 0; border: 0; background: none; }
  #app #main table.rk-t td:first-child { order: 0; width: 26px; }
  #app #main table.rk-t td:nth-child(2) { order: 1; flex: 1 1 0; min-width: 0; }
  #app #main table.rk-t td:last-child { order: 2; font-weight: 700; }
  #app #main table.rk-t tr::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
  #app #main table.rk-t td:not(:first-child):not(:nth-child(2)):not(:last-child) { order: 4; font-size: 12px; color: var(--ink2, #a9a9a9); }
  #app #main table.rk-t td:nth-child(3) { margin-left: 36px; }
  #app #main table.rk-t td:nth-child(n+4):not(:last-child)::before { content: '· '; }
}
#app .art.avatar { width: 34px; height: 34px; flex: none; aspect-ratio: auto; border-radius: 50%; background-size: cover; background-position: center 12%; }
#app .art.avatar::after { display: none; }

/* Horde Night: a banner with the Needle, a big countdown and a thick wall-like scale (QA P2-16) */
#app #main .cp-hero.hd-hero { max-width: none; position: relative; overflow: hidden; padding: 26px 28px; border-radius: 22px; min-height: 230px;
  background: linear-gradient(90deg, rgba(6, 7, 8, .94) 30%, rgba(6, 7, 8, .55) 65%, rgba(6, 7, 8, .25)), url('/assets/img/district_tower.jpg') center 30% / cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
#app #main .cp-hero.hd-hero::after { content: ''; position: absolute; right: 0; bottom: 0; width: 38%; height: 100%; pointer-events: none;
  background: url('/assets/img/enemy_shambler.jpg') center 20% / cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); opacity: .55; mix-blend-mode: luminosity; }
#app #main .cp-hero.hd-hero > * { position: relative; z-index: 1; max-width: 640px; }
#app #main .hd-hero .hd-next, #app #main .hd-hero .hd-live { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; padding: 12px 18px; border-radius: 16px; background: rgba(0, 0, 0, .5); }
#app #main .hd-hero .hd-next > b, #app #main .hd-hero .hd-live > b { font: 700 42px/1.05 var(--fd); color: #fff; }
#app #main .hd-track { height: 16px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 22px, rgba(255, 255, 255, .03) 22px 24px); position: relative; margin: 14px 0; }
#app #main .hd-track > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8f1a12, #e0392e); }
#app #main .hd-mark { position: absolute; top: -6px; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
#app #main .hd-mark.on { background: #e0392e; box-shadow: 0 0 10px rgba(224, 57, 46, .6); }
#app #main .hd-num > b { font: 700 48px/1 var(--fd); }
@media (max-width: 600px) { #app #main .cp-hero.hd-hero { padding: 18px; min-height: 0; } #app #main .cp-hero.hd-hero::after { width: 50%; opacity: .35; } #app #main .hd-hero .hd-next > b, #app #main .hd-hero .hd-live > b { font-size: 32px; } }

/* Buildings on a phone: wider snap cards, level pips under the name, the bonus large (QA P2-17) */
@media (max-width: 600px) {
  #app #main .bld-grid.hs { --hs-w: 84%; scroll-snap-type: x mandatory; } #app #main .bld-grid.hs > .bld { scroll-snap-align: start; }
  #app #main .bld-h { flex-wrap: wrap; } #app #main .bld-pips { order: 3; flex-basis: 100%; padding-left: 56px; }
  #app #main .bld-fx > span:first-child { font: 600 16px var(--fd); }
}

/* Strips that scroll sideways: fade on the edge with more, round arrows on a desktop (js/hs-nav.js, QA P2-13 / P2-24) */
#app .hs-r:not(.hs-l) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
#app .hs-l:not(.hs-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
#app .hs-l.hs-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.hs-arr { position: absolute; height: 0; z-index: 5; pointer-events: none; }
.hs-a { position: absolute; top: -22px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: none; place-items: center; cursor: pointer; pointer-events: auto;
  font: 400 30px/1 var(--fb); color: #fff; background: rgba(14, 16, 18, .88); box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
.hs-a:hover { box-shadow: 0 10px 30px rgba(224, 57, 46, .35); }
.hs-a.l { left: -10px; } .hs-a.r { right: -10px; }
.hs-arr.can-l .hs-a.l, .hs-arr.can-r .hs-a.r { display: grid; }

/* Footer on a phone: the documents as a two-column list, not a run of glued links (QA P2-20) */
@media (max-width: 600px) { .site-foot .sf-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; } .site-foot .sf-links a { padding: 2px 0; } }

/* First-time hints on a phone: one line, tap the text for the rest (QA P3-6) */
@media (max-width: 600px) {
  #app .intro { align-items: center; padding: 10px 12px; }
  #app .intro > div { cursor: pointer; }
  #app .intro:not(.open) > div > span { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  #app .intro:not(.open) > div > b::after { content: "  ›"; color: #e0392e; }
}

/* Daily reward on the Jobs page: one line, the 7 days open on a tap (QA P3-8) */
#app .dly-more > summary { cursor: pointer; margin-top: 8px; color: var(--ink2, #b5b5b5); font-size: 14px; list-style: none; } #app .dly-more > summary::-webkit-details-marker { display: none; }
#app .dly-more > summary::after { content: " ›"; color: #e0392e; } #app .dly-more[open] > summary { margin-bottom: 10px; }
@media (max-width: 699px) { .hs-arr { display: none; } }

/* Survivor builder in three steps (QA P2-23); class stats never break inside "STR 5" (QA P3-9) */
.nw { white-space: nowrap; }
.create2.cr3 { max-width: 1240px; padding-bottom: 30px; }
.cr3-grid { display: grid; gap: 22px; }
.cr3-hero { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); background: #0d0e10; }
.cr3-hero > .cr3-pic { width: 100%; height: 230px; aspect-ratio: auto; border-radius: 0; background-size: cover; background-position: center 15%; }
.cr3-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(0deg, rgba(6, 7, 8, .95), transparent); }
.cr3-cap b { font: 700 24px var(--fd); color: #fff; } .cr3-cap span { color: var(--ink2, #b5b5b5); font-size: 14px; }
.cr3-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cr3-main .cr2-intro h1 { margin: 0; } .cr3-main .cr2-intro p { margin: 6px 0 0; }
.cr3-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cr3-steps li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink2, #b5b5b5); font-size: 14px; }
.cr3-steps li.on { background: #e0392e; color: #fff; } .cr3-steps li.done { cursor: pointer; color: #fff; } .cr3-steps li.done::before { content: '✓ '; color: #e0392e; }
.cr3-h { margin: 6px 0 0; font: 600 22px var(--fd); }
.cr3 .cr2-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cr3 .look-card { padding: 8px; } .cr3 .look-card .art { aspect-ratio: 4 / 5; margin-bottom: 4px; }
.cr3 .cr2-roles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cr3 .cr2-name input { width: 100%; max-width: 420px; font-size: 18px; padding: 14px 16px; }
.cr3-desc { margin: 0; max-width: 640px; }
.cr3-nav { display: flex; align-items: center; gap: 10px; margin-top: 6px; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(0deg, rgba(7, 8, 9, .96) 60%, transparent); }
@media (min-width: 700px) { .cr3 .cr2-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cr3 .cr2-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .cr3-grid { grid-template-columns: 380px minmax(0, 1fr); align-items: start; gap: 34px; }
  .cr3-hero { position: sticky; top: 16px; } .cr3-hero > .cr3-pic { height: auto; aspect-ratio: 3 / 4; }
  .cr3 .cr2-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr3 .look-card .art { aspect-ratio: 5 / 4; }
  .cr3-nav { position: static; background: none; padding: 4px 0 0; }
}

/* Figures never lose their head (Vova 2026-11-30, hard rule): builder looks and hero, friend suggestions, the podium.
   The whole picture is shown (contain) over a blurred, darkened copy of itself, so no black bars and no crop. */
#app :is(.cr3 .look-card .art, .cr3-hero > .cr3-pic, .fr-sc > .fr-sp, .rk-p > .rk-pi), .cr3 :is(.look-card .art, .cr3-hero > .cr3-pic) { position: relative; overflow: hidden; background-size: 0 0 !important; isolation: isolate; }
:is(#app, .cr3) :is(.look-card .art, .cr3-pic, .fr-sp, .rk-pi).loaded::before { content: ''; position: absolute; inset: -16px; z-index: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(16px) brightness(.4) saturate(.8); }
:is(#app, .cr3) :is(.look-card .art, .cr3-pic, .fr-sp, .rk-pi).loaded::after { content: ''; display: block; position: absolute; inset: 0; z-index: 1; background-image: inherit; background-size: contain; background-repeat: no-repeat; background-position: center bottom; opacity: 1; }

/* Landing stack (Vova 2026-11-30): the story beats and the districts are full-screen panels; each one sticks to the top
   and the next slides up over it, the picture moves slower than the text (js/views-auth.js stackPaint, transform/opacity only). */
.ad-story { display: block; }
.stk { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; display: flex; align-items: flex-end;
  border-radius: 26px 26px 0 0; background: #070809; box-shadow: 0 -24px 50px rgba(0, 0, 0, .6); contain: paint; }
.stk:first-child { border-radius: 0; box-shadow: none; }
.stk > .stk-bg { position: absolute; left: 0; right: 0; top: -32%; bottom: -12%; height: auto; background-size: cover; background-position: center; transform: none; transition: none; will-change: transform; }
.beat.stk > .beat-img.stk-bg, .beat.in > .beat-img.stk-bg { transition: none; }
.stk::after { z-index: 1; }
.stk > .stk-dim { position: absolute; inset: 0; z-index: 2; background: #050506; opacity: 0; pointer-events: none; will-change: opacity; }
.stk > .stk-in { position: relative; z-index: 3; will-change: transform, opacity; }
.stk-d::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 9, .95) 0%, rgba(7, 8, 9, .55) 38%, rgba(7, 8, 9, .05) 70%); }
.stk-d > .stk-in { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 var(--gut, 20px) 12vh; }
.stk-d h3 { margin: 10px 0 8px; font: 700 clamp(34px, 6vw, 72px)/1 var(--fd); color: #fff; }
.stk-d p { max-width: 560px; margin: 0; font-size: clamp(15px, 1.4vw, 19px); color: rgba(236, 230, 218, .85); }
.stk-d .route-lv { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e0392e; color: #fff; font-size: 13px; font-weight: 600; }
.ad-story .story-more { position: relative; z-index: 4; margin: 0; padding: 28px 0 10px; background: #070809; text-align: center; }
@media (prefers-reduced-motion: reduce) { .stk > .stk-bg { top: 0; bottom: 0; will-change: auto; } }

/* Tablets and foldables, 700-1299 px (Vova 2026-11-30): no sideways overflow, stats on one compact row, 2-column grids */
#app #main .camp-grid, #app #main .camp-main { min-width: 0; }
@media (max-width: 1099px) { #app #main .camp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { #app #main .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #app #main .act-grid > * { grid-column: auto !important; } }
@media (min-width: 700px) and (max-width: 1299px) {
  #app #top .res { flex-wrap: nowrap; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; } #app #top .res::-webkit-scrollbar { display: none; }
  #app #top .res .pill { flex: none; padding: 5px 9px; } #app #top .pill .meter { width: 26px; } #app #top .pill .k { font-size: 11px; }
  #app #top .res .pill:first-child .meter { display: none; }
}

/* Beyond the Wall: the enemy is the main thing (Vova 2026-11-30). District header is a short strip with one line,
   the radio lore and long hints go; enemy pictures fill the card with the head kept (cover from the top); label rows never wrap. */
#app #main .art.hero .dist-radio { display: none; }
#app #main .art.hero .ovl p:not(.dist-radio) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#app #main .art.hero .ovl h1 { margin: 2px 0 0; }
#app #main .first-win { padding: 8px 14px; }
#app #main .hs > .enemy > .art { background-size: cover !important; background-position: center 6% !important; }
#app #main .hs > .enemy > .art.loaded::before, #app #main .hs > .enemy > .art.loaded::after { display: none; }
#app #main .enemy .en-lv { flex-wrap: nowrap; white-space: nowrap; gap: 8px; }
#app #main .enemy .diff { text-transform: none; letter-spacing: 0; white-space: nowrap; }
#app #main .enemy .en-rw { color: var(--ink2, #b5b5b5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #app #main .enemy .en-rw .num { color: #fff; font-weight: 600; }
@media (max-width: 1299px) { #app .page-head p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } }
#app #main .dist-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #app #main .dist-tabs::-webkit-scrollbar { display: none; } #app #main .dist-tabs > * { flex: none; }

/* Landing kits path (Vova 2026-11-30): five kits left to right with an arrow between, big full figure, level, weapon, districts */
.ad-kitpath .kp { list-style: none; margin: 22px 0 0; padding: 0 0 8px; --hs-w: minmax(220px, 74%); position: relative; }
.kp-c { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: visible; background: #111214; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }
.kp-c > .kp-pic { width: 100%; aspect-ratio: 3 / 4; height: auto; border-radius: 20px 20px 0 0; background-size: cover; background-position: center top; }
.kp-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.kp-lv { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #e0392e; color: #fff; font-size: 12.5px; font-weight: 600; }
.kp-b b { font: 700 22px/1.1 var(--fd); color: #fff; margin-top: 4px; }
.kp-w { color: rgba(236, 230, 218, .9); font-size: 15px; } .kp-d { color: rgba(236, 230, 218, .6); font-size: 14px; }
@media (min-width: 900px) {
  .ad-kitpath .kp { display: grid; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; overflow: visible; }
  .kp-c:not(:last-child)::after { content: '›'; position: absolute; right: -22px; top: 34%; width: 18px; text-align: center; font: 400 40px/1 var(--fb); color: #e0392e; }
  .ad-kitpath + .hs-arr, .ad-kitpath .hs-arr { display: none; }
}

/* volume popover: a gap between the label and the value ("Music 35%") */
.vol-pop .vp-h { display: flex; justify-content: space-between; gap: 12px; }

/* Landing demo fight (js/land-fight.js): the real fight screen look, full width */
.ad-fightsec { grid-template-columns: minmax(0, 1fr) !important; }
.fdemo { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; border-radius: 22px; overflow: hidden; background: #0a0b0c; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); user-select: none; }
.fd-bg { position: absolute; inset: -30px; background: url('/assets/img/anim/landing_fd_idle.jpg') center / cover; filter: blur(26px) brightness(.45) saturate(.85); }
.fd-v { position: absolute; left: 50%; top: 0; height: 100%; width: auto; aspect-ratio: 3 / 4; transform: translateX(-50%); object-fit: cover; background: url('/assets/img/anim/landing_fd_idle.jpg') center / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.fd-hit { opacity: 0; transition: opacity .12s; background: none; } .fd-hit.on { opacity: 1; }
.fdemo.ouch::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(224, 57, 46, .55); pointer-events: none; }
.fd-round { position: absolute; left: 22px; top: 20px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(10, 11, 12, .8); color: #fff; }
.fd-round span { font-size: 9px; color: rgba(236, 230, 218, .6); } .fd-round b { font: 700 20px/1 var(--fd); }
.fd-foe, .fd-me { position: absolute; padding: 12px 16px; border-radius: 16px; background: rgba(12, 13, 15, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.fd-foe { right: 20px; top: 20px; width: min(270px, 30%); }
.fd-me { left: 20px; bottom: 20px; display: flex; gap: 12px; align-items: center; width: min(280px, 30%); }
.fd-me > div { flex: 1; min-width: 0; }
.fd-ava { flex: none; width: 52px; height: 52px; border-radius: 50%; background: center 14% / cover; }
.fd-nm b { font: 700 19px var(--fd); } .fd-nm span { font-size: 12px; color: rgba(236, 230, 218, .6); }
.fd-bar { display: block; height: 5px; margin: 6px 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fd-bar > i { display: block; height: 100%; background: #e0392e; transform-origin: left; transition: transform .5s; }
.fd-hpn, .fd-mhp { font-size: 12px; color: rgba(236, 230, 218, .75); }
.fd-zl { position: absolute; left: 24%; right: 26%; top: 0; bottom: 0; pointer-events: none; }
.fd-z { position: absolute; left: 0; right: 0; top: var(--y); height: 34px; margin-top: -17px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; color: rgba(236, 230, 218, .8); text-align: left; }
.fd-z::before { content: ''; position: absolute; left: 6px; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .35); }
.fd-z > i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg); border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(10, 11, 12, .6); }
.fd-z > b { position: absolute; left: 18px; bottom: 50%; font: 600 13px var(--fd); letter-spacing: .02em; }
.fd-z:hover::before { background: rgba(255, 255, 255, .7); }
.fd-z.on { color: #fff; } .fd-z.on::before { height: 2px; background: #e0392e; box-shadow: 0 0 12px rgba(224, 57, 46, .8); } .fd-z.on > i { background: #e0392e; border-color: #e0392e; }
.fd-lost { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.fd-lost span { padding: 5px 12px; border-radius: 999px; background: rgba(10, 11, 12, .8); font-size: 13px; color: rgba(236, 230, 218, .8); white-space: nowrap; } .fd-lost b { color: #fff; font-size: 15px; margin-left: 4px; }
.fd-dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 20px; background: rgba(12, 13, 15, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fd-dk { font-size: 12px; color: rgba(236, 230, 218, .6); }
.fd-sh { display: flex; gap: 6px; }
.fd-s { display: grid; justify-items: center; gap: 3px; width: 64px; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: rgba(236, 230, 218, .75); cursor: pointer; }
.fd-s svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; } .fd-s small { font-size: 11px; }
.fd-s:hover { background: rgba(255, 255, 255, .06); } .fd-s.on { color: #fff; background: rgba(224, 57, 46, .22); } .fd-s.on svg { stroke: #ff6a5c; fill: rgba(224, 57, 46, .25); }
.fd-cnt { font-size: 12px; color: rgba(236, 230, 218, .6); }
.fd-go { width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font: 700 13px var(--fd); background: radial-gradient(circle at 50% 35%, #3a3b3f, #17181b); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .5); transition: box-shadow .2s, transform .12s; }
.fd-go.ready { background: radial-gradient(circle at 50% 35%, #ef4b3d, #a3170e); box-shadow: 0 0 0 4px rgba(224, 57, 46, .25), 0 10px 30px rgba(224, 57, 46, .45); }
.fd-go.press { transform: scale(.94); }
.fd-dmg { position: absolute; left: 52%; top: var(--y, 40%); font: 800 34px var(--fd); color: #ff5a4a; text-shadow: 0 3px 12px #000; opacity: 0; pointer-events: none; }
.fd-dmg.crit { color: #ffb020; font-size: 40px; } .fd-dmg.blk { color: #d8d2c6; }
.fd-dmg.go { animation: fdfly 1.3s ease-out forwards; }
@keyframes fdfly { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px) scale(1); } }
.fd-msg { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font: 800 56px var(--fd); color: #fff; text-shadow: 0 6px 30px #000; opacity: 0; pointer-events: none; }
.fd-msg.go { animation: fdfly 1.8s ease-out forwards; }
@media (max-width: 899px) {
  .fdemo { aspect-ratio: 3 / 4; max-height: none; }
  .fd-zl { left: 6%; right: 22%; } .fd-z > b { font-size: 12px; }
  .fd-foe { width: calc(50% - 15px); top: 10px; right: 10px; padding: 8px 10px; } .fd-round { display: none; }
  .fd-me { left: 10px; bottom: auto; top: 10px; width: calc(50% - 15px); padding: 8px 10px; gap: 8px; } .fd-ava { width: 32px; height: 32px; }
  .fd-nm b { font-size: 15px; }
  .fd-dock { left: 10px; right: 10px; transform: none; bottom: 10px; gap: 6px; padding: 8px; } .fd-dk { display: none; }
  .fd-sh { flex: 1; gap: 2px; } .fd-s { width: auto; flex: 1; } .fd-s small { font-size: 10px; }
  .fd-go { width: 58px; height: 58px; flex: none; } .fd-lost { top: auto; bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .fd-dmg.go, .fd-msg.go { animation-duration: .01s; opacity: 1; } }

/* Short desktop screens (Vova 2026-11-30, Chrome with a bookmarks bar ~1265x710): game screens fit with no micro scroll.
   The page title shrinks and loses its line, the district banner is a thin strip sized by the screen height. */
@media (min-width: 900px) and (max-height: 820px) {
  #app #main { padding-top: 6px; }
  #app #main .page-head { margin: 4px 0 8px; }
  #app #main .page-head h1 { font-size: 26px; }
  #app #main .page-head p { display: none; }
  #app #main .dist-tabs { margin-bottom: 8px; }
  #app #main .art.hero { height: clamp(64px, 11vh, 120px) !important; margin-bottom: 8px; }
  #app #main .art.hero .ovl { padding: 8px 18px; }
  #app #main .art.hero .ovl p:not(.dist-radio) { display: none; }
  #app #main .art.hero .ovl h1 { font-size: 22px; }
  #app #main .first-win { margin: 0 0 8px; padding: 6px 14px; }
}

/* "How it works" panels: help behind a tap (Vova 2026-11-30) */
#app details.howto > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
#app details.howto > summary::-webkit-details-marker { display: none; }
#app details.howto > summary h3 { margin: 0; }
#app details.howto .hw-i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(224, 57, 46, .18); color: #ff7a6c; font: 700 13px/1 var(--fd); }
#app details.howto[open] > summary { margin-bottom: 12px; }
#app details.howto:not([open]) { align-self: start; }
@media (min-width: 900px) and (max-height: 820px) { #app #main .cp-lead { display: none; } #app #main .cp-hero h1 { font-size: 26px; margin: 4px 0 8px; } }

/* Landing demo fight: zone dots, no lines (mirrors the fight screen, Vova 2026-11-30: long leader lines read as glitches) */
.fd-zl { left: 0 !important; right: 0 !important; }
.fd-z { left: var(--x) !important; right: auto !important; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.fd-z::before { display: none; }
.fd-z > i { left: 50% !important; top: 50% !important; width: 12px !important; height: 12px !important; margin: -6px 0 0 -6px !important; transform: none !important; border-radius: 50%; border: 0 !important;
  background: rgba(255, 255, 255, .85) !important; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 12px rgba(255, 255, 255, .6); transition: box-shadow .2s, background .2s; }
.fd-z > b { left: 26px !important; bottom: auto !important; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(10, 11, 12, .6); font-size: 12px !important; }
.fd-z:hover > i { box-shadow: 0 0 0 6px rgba(255, 255, 255, .2), 0 0 16px rgba(255, 255, 255, .8); }
.fd-z.on > i { background: #ff4a3a !important; box-shadow: 0 0 0 5px rgba(224, 57, 46, .3), 0 0 18px rgba(255, 74, 58, .9); }
.fd-z.on > b { background: rgba(224, 57, 46, .85); color: #fff; }
/* the Cover row stays one row: hud-b.css styles another .fd-sh as a grid (class name clash) */
.fd-dock .fd-sh { display: flex; margin-bottom: 0; }
