/* ReviewPulse, game-HUD layer over app.css. Panels with a cut corner instead of outlines, figures in the
   display face, health-bar meters, a tier letter for the Steam score, and motion that runs once per screen:
   panels rise in order, figures flicker on and count up, meters fill, columns grow, the hero art drifts. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: 14px;
  --notch: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- type: no monospace or tracked capitals ---------- */
.hud, .kpi .l, .tbl th, .badge { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.hud { font-size: 12px; }
.kpi .l { font-size: 12px; line-height: 16px; color: var(--muted); }
.tbl th { font-size: 12px; font-weight: 500; color: var(--muted); }
.badge { font-size: 11px; font-weight: 600; }
.small { font-size: 12px; line-height: 17px; }
p.small, p.muted.small { margin: 10px 0 0; }
.h3 { margin: 0 0 10px; font: 600 14px/20px var(--display); }
.nav-group { margin: 14px 12px 4px; font-size: 12px; color: var(--faint); }
.nav-group:first-child { margin-top: 0; }
.nav-gap { height: 10px; }

/* ---------- panels ---------- */
.card { border: 0; border-radius: 0; clip-path: var(--notch); }
.kpis { border: 0; border-radius: 0; background: transparent; gap: 8px; }
.kpi { background: var(--card); border-left: 0; clip-path: var(--notch); padding: 14px 16px 16px; }
.kpi .v { font-size: 28px; letter-spacing: -0.01em; }
.kpi.lead { background: var(--raised); }
.kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.locked { border: 0; border-radius: 0; clip-path: var(--notch); }
.empty { border-radius: 0; }

/* meters: square-ended health bars */
.bar { height: 10px; border-radius: 2px; background: var(--active); }
.bar i { border-radius: 2px; }

/* ---------- hero: drifting art, tier letter, live signal ---------- */
.hero { overflow: hidden; background-color: var(--card); }
.hero-art { position: absolute; inset: -4%; background: center 30% / cover no-repeat; animation: drift 38s var(--ease-out) infinite alternate; }
.hero::before { z-index: 1; }
.hero > :not(.hero-art) { position: relative; z-index: 2; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-2%, -1.5%, 0); } }
.hero .title-row > div:first-child:has(.tier) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
.hero .title-row > div:first-child:has(.tier) > :not(.tier) { grid-column: 2; }
.tier { grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 72px; margin: 0 18px 0 0; background: var(--accent); color: var(--on-accent); clip-path: var(--notch); }
.tier b { font: 600 40px/40px var(--display); }
.tier span { font-size: 11px; line-height: 14px; font-weight: 600; }
.tier.t-A { background: var(--positive); color: #fff; }
.tier.t-B { background: var(--text); color: var(--frame); }
.tier.t-C, .tier.t-D { background: var(--active); color: var(--text); }
.tier.t-F { background: var(--negative); color: #fff; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 92% { opacity: .25; } 95% { opacity: 1; } 97% { opacity: .35; } }

/* ---------- motion, once per screen ---------- */
.fx-in { animation: rise 640ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.fx-in .bar i, .fx-in .hp i, .fx-in .rbar i, .fx-in .sbar i, .fx-in .st-bar i, .fx-in .ready-bar i { transform-origin: left center; animation: fill 1000ms var(--ease-expo) both; animation-delay: calc(var(--d, 0ms) + 220ms); }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fx-in .chart rect { transform-box: fill-box; transform-origin: bottom; animation: grow 900ms var(--ease-expo) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fx-in .chart circle { transform-box: fill-box; transform-origin: center; animation: pop 600ms var(--ease-out) both; animation-delay: calc(var(--d, 0ms) + 300ms); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fx-in .chart .ln { stroke-dasharray: 1; animation: draw 1400ms var(--ease-expo) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fx-flick { animation: flick 520ms steps(1) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
@keyframes flick { 0% { opacity: 0; } 18% { opacity: 1; } 30% { opacity: .2; } 44% { opacity: 1; } 58% { opacity: .45; } 70%, 100% { opacity: 1; } }
.chart circle.ln-dot { animation: ping 2.2s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.6); } }
.boss, .spot-card { transition: transform 260ms var(--ease-out); will-change: transform; }

/* ---------- fix first: issues as bosses ---------- */
.bosses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.boss { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--raised); clip-path: var(--notch); }
.boss-rank { display: flex; align-items: center; justify-content: center; height: 52px; font: 600 30px/1 var(--display); background: var(--active); color: var(--text); clip-path: var(--notch); }
.boss:first-child .boss-rank { background: var(--negative); color: #fff; }
.boss-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.boss-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.boss-top b { font: 600 17px/22px var(--display); }
.kind { font-size: 12px; font-weight: 500; padding: 1px 8px; background: var(--active); color: var(--muted); }
.kind.neg { background: var(--neg-bg); color: var(--neg-ink); }
.kind.acc { background: var(--accent-soft); color: var(--accent-ink); }
.boss-score { margin-left: auto; font: 600 24px/1 var(--display); }
.boss-score small { font-size: 13px; color: var(--muted); }
.hp { height: 12px; background: var(--active); position: relative; overflow: hidden; }
.hp i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--negative); }
.boss:not(:first-child) .hp i { background: var(--accent); }
.boss-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.trend.up { color: var(--negative); font-weight: 500; }
.trend.down { color: var(--positive); font-weight: 500; }
.gain { font-size: 13px; color: var(--text); }
.gain b { color: var(--positive); font-weight: 600; }
.ai-fix { background: var(--card); padding: 10px 12px; font-size: 13px; line-height: 19px; }
.ai-fix p { margin: 0; }
.ai-fix p + p { margin-top: 4px; }
.ai-fix .effort { color: var(--muted); }
.bq { margin: 2px 0 0; padding: 0 0 0 12px; box-shadow: inset 3px 0 0 var(--active); }
.bq p { margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.bq footer { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--faint); }

/* ---------- review quality ---------- */
.qgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.qbig { display: flex; gap: 14px; align-items: center; }
.qbig b { font: 600 16px/22px var(--display); }
.qbig p { margin: 4px 0 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.ring { --p: 50; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--active) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring span { position: relative; z-index: 1; font: 600 26px/1 var(--display); }
.ring.big { width: 120px; height: 120px; }
.ring.big::after { inset: 12px; }
.ring.big span { font-size: 38px; }
details.row.flat { border: 0; margin-top: 10px; }
details.row.flat summary { display: flex; align-items: center; gap: 8px; grid-template-columns: none; cursor: pointer; }
.plan-form .search input { width: 100%; padding-left: 38px; }

/* ---------- home: three ways in ---------- */
.lay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lay-col { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--card); color: var(--text); clip-path: var(--notch); transition: background-color 180ms ease; }
.lay-col:hover { background: var(--raised); text-decoration: none; }
.lay-col h3 { margin: 6px 0 0; font: 600 24px/28px var(--display); }
.lay-col p { margin: 0; color: var(--muted); line-height: 21px; }
.lay-col .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }
.lay-art { height: 92px; display: flex; flex-wrap: wrap; align-content: center; gap: 6px; }
.lay-art .chip { font: 600 14px/1 var(--display); padding: 8px 10px; background: var(--raised); }
.lay-col:hover .lay-art .chip { background: var(--active); }
.mini-boss { width: 100%; display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 12px; }
.mini-boss b { font-weight: 500; }
.mini-boss i { display: block; height: 8px; width: var(--w); background: var(--negative); }
.mini-boss + .mini-boss i { background: var(--accent); }
.lay-art svg { width: 100%; height: 70px; }
.lay-art svg path { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.home2 .lay .rv.in .mini-boss i { animation: fill 1200ms var(--ease-expo) both; transform-origin: left; animation-delay: 300ms; }

/* ---------- forms and chips ---------- */
.plan-form .span2 { grid-column: span 2; }
.plan-form .span4 { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 8px; }
.chipx { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.chipx button { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px 6px; }
.chipadd { height: 30px; padding: 0 12px; border: 0; background: var(--raised); color: var(--text); cursor: pointer; font-size: 13px; }
.chipadd:hover { background: var(--active); }
.field input[type="month"] { padding-right: 8px; }
.langpick summary { height: 40px; display: flex; align-items: center; padding: 0 12px; background: var(--frame); border: 1px solid var(--control); border-radius: 10px; cursor: pointer; }
.langpick > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 4px; font-size: 13px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px; align-items: center; }
.deck-form .field input, .pair input { height: 36px; border: 1px solid var(--control); border-radius: 8px; padding: 0 10px; background: var(--frame); width: 100%; }
.deck-form { display: flex; flex-direction: column; gap: 14px; }
.deck-form .field { gap: 6px; }

/* ---------- plan overview ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--raised); color: var(--text); clip-path: var(--notch); transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.steps a:hover { background: var(--active); text-decoration: none; transform: translateX(3px); }
.steps b { font: 600 15px/20px var(--display); }
.steps span { font-size: 13px; color: var(--muted); }

/* ---------- price and regions ---------- */
.price-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.price-hero > div { background: var(--raised); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; clip-path: var(--notch); }
.price-hero span { font-size: 12px; }
.price-hero b { font: 600 24px/30px var(--display); }
.price-hero > div:first-child b { color: var(--accent); }
.rbar { position: relative; display: grid; grid-template-columns: minmax(80px, 1fr) 44px; gap: 10px; align-items: center; }
.rbar::before { content: ""; grid-column: 1; grid-row: 1; height: 10px; background: var(--active); }
.rbar i { grid-column: 1; grid-row: 1; height: 10px; width: var(--w); background: var(--accent); }
.rbar s { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--text); margin-left: -1px; text-decoration: none; }
.rbar span { text-align: right; }
.tbl tr.tot td { border-top: 2px solid var(--control); }

/* ---------- checklist ---------- */
.ready { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--card); clip-path: var(--notch); }
.ready-n { font: 600 34px/1 var(--display); color: var(--accent); }
.ready-n small { font-size: 16px; color: var(--muted); }
.ready-bar { height: 14px; background: var(--active); }
.ready-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 10px 0; border-top: 1px solid var(--rule); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; cursor: pointer; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks .box { width: 20px; height: 20px; margin-top: 1px; background: var(--active); display: grid; place-items: center; }
.checks li.done .box { background: var(--positive); }
.checks li.done .box::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.checks li.fail .box { background: var(--negative); }
.checks input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks b { font-weight: 500; display: block; }
.checks em, .checks small { display: block; font-style: normal; font-size: 12px; line-height: 17px; color: var(--muted); margin-top: 2px; }
.checks em.bad { color: var(--negative); }
.checks em.good { color: var(--positive); }
.checks li.done b { color: var(--muted); }

/* ---------- pitch deck ---------- */
.deck-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.deck-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.deck-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.deck-side { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.deck-score { display: flex; align-items: baseline; gap: 4px; }
.deck-score b { font: 600 44px/1 var(--display); color: var(--accent); }
.deck-score small { color: var(--muted); font-size: 16px; }
.miss { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 21px; }
.slide { line-height: 1.3; container-type: inline-size; aspect-ratio: 16 / 9; position: relative; overflow: hidden; --s-bg: #0b0b0b; --s-ink: #fff; --s-mut: #b4b4b4; --s-acc: #ffb547; --s-panel: #1a1a1a; --s-neg: #e5566f; background: var(--s-bg); color: var(--s-ink); }
.slide.light { --s-bg: #fff; --s-ink: #0d0d0d; --s-mut: #55555a; --s-acc: #a85d00; --s-panel: #f2f2ef; --s-neg: #c4242a; box-shadow: inset 0 0 0 1px var(--border); }
.slide-in { position: absolute; inset: 0; padding: 5.5cqw 5cqw 6cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.st-h { margin: 0; font: 600 4.2cqw/1.12 var(--display); letter-spacing: -0.01em; outline: none; }
.st-sub { margin: 0; font-size: 2.3cqw; line-height: 1.35; color: var(--s-mut); outline: none; }
[contenteditable]:hover { box-shadow: 0 0 0 1px var(--s-mut); }
[contenteditable]:focus { box-shadow: 0 0 0 2px var(--s-acc); }
.st-body { display: flex; flex-direction: column; gap: 1.6cqw; min-height: 0; flex: 1; }
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1cqw; }
.st-stats > div { background: var(--s-panel); padding: 1.6cqw; display: flex; flex-direction: column; gap: .6cqw; }
.st-stats b { font: 600 4.4cqw/1.05 var(--display); color: var(--s-acc); }
.st-stats span { font-size: 1.8cqw; line-height: 1.3; color: var(--s-mut); }
.st-list { margin: 0; padding: 0 0 0 2.6cqw; font-size: 2.7cqw; line-height: 1.45; }
.st-list li::marker { color: var(--s-acc); }
.st-tbl { width: 100%; border-collapse: collapse; font-size: 2.05cqw; line-height: 1.2; }
.st-tbl th { text-align: left; color: var(--s-mut); font-weight: 500; padding: 0 .8cqw .8cqw 0; }
.st-tbl td { padding: .8cqw .8cqw .8cqw 0; border-top: 1px solid var(--s-panel); }
.st-tbl .r { text-align: right; }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.st-cols h4 { margin: 0 0 1.4cqw; font: 600 2.6cqw/1.2 var(--display); }
.st-bars { display: flex; flex-direction: column; gap: 1.6cqw; }
.st-bar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 1.4cqw; align-items: center; font-size: 2.2cqw; }
.st-bar i { display: block; height: 1.5cqw; width: var(--w); background: var(--s-acc); }
.st-bar.neg i { background: var(--s-neg); }
.st-bar b { font: 600 2.3cqw/1 var(--display); text-align: right; }
.st-note { margin: 0; font-size: 1.5cqw; color: var(--s-mut); }
.st-foot { position: absolute; left: 5cqw; right: 5cqw; bottom: 2.4cqw; display: flex; justify-content: space-between; font-size: 1.3cqw; color: var(--s-mut); }
.st-title { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.st-art { grid-column: 2; background: center / cover no-repeat; }
.st-copy { grid-column: 1; grid-row: 1; padding: 6cqw 4cqw 7cqw 5cqw; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; }
.st-copy h2 { margin: 0; font: 600 7cqw/1 var(--display); letter-spacing: -0.02em; }
.st-meta { display: flex; flex-wrap: wrap; gap: .6cqw 2cqw; font-size: 2cqw; color: var(--s-acc); }
/* the generic bar rows are reused in light UI panels */
.st-bar.mini { line-height: 18px; font-size: 13px; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 10px; margin: 6px 0; }
.st-bar.mini i { height: 8px; background: var(--accent); }
.st-bar.mini b { font-size: 14px; }
.present { position: fixed; inset: 0; z-index: 120; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.present .slide { width: min(100%, calc((100vh - 110px) * 16 / 9)); }
.present-bar { display: flex; gap: 10px; align-items: center; color: #fff; }
.present-bar .btn { color: #fff; border-color: #444; }

/* ---------- breakout radar ---------- */
.spot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.spot-card { display: flex; flex-direction: column; background: var(--card); color: var(--text); clip-path: var(--notch); }
.spot-card:hover { text-decoration: none; background: var(--raised); }
.spot-art { aspect-ratio: 460 / 215; background: var(--raised) center / cover no-repeat; }
.spot-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.spot-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.spot-top b { font: 600 18px/22px var(--display); }
.spot-score { font: 600 26px/1 var(--display); color: var(--on-accent); background: var(--accent); padding: 6px 8px; clip-path: var(--notch); }
.spot-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.spot-kv div { display: flex; flex-direction: column; background: var(--raised); padding: 8px; }
.spot-card:hover .spot-kv div { background: var(--active); }
.spot-kv b { font: 600 17px/22px var(--display); }
.spot-kv span { font-size: 11px; line-height: 14px; color: var(--muted); }
.spot-flags, .rflags { display: flex; flex-wrap: wrap; gap: 4px; }
.rflags { margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fchip { height: 34px; padding: 0 12px; border: 0; background: var(--card); color: var(--muted); cursor: pointer; font-weight: 500; }
.fchip span { margin-left: 4px; color: var(--faint); }
.fchip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.fchip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.fchip:hover:not([aria-pressed="true"]) { background: var(--raised); color: var(--text); }
.radar .rrow { cursor: pointer; }
.radar .rrow:hover td { background: var(--raised); }
.radar .rrow.open td { background: var(--raised); }
.radar tr.rdetail td { background: var(--raised); padding: 6px 14px 18px; }
.radar .locked-row td { color: var(--faint); }
.radar .locked-row .sub2 svg { width: 12px; height: 12px; vertical-align: -1px; }
.sbar { display: grid; grid-template-columns: minmax(60px, 1fr) 30px; gap: 8px; align-items: center; }
.sbar i { display: block; height: 10px; width: var(--w); background: var(--accent); }
.sbar span { font: 600 15px/1 var(--display); text-align: right; }
.rd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding-top: 6px; }
.chart.line .ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart.line .area { fill: var(--accent-soft); stroke: none; }
.chart.line .ln-dot { fill: var(--accent); }
.inv-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .deck-wrap { grid-template-columns: minmax(0, 1fr); }
  .deck-side { position: static; max-height: none; }
  .spot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .lay { grid-template-columns: minmax(0, 1fr); }
  .kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgrid, .rd { grid-template-columns: minmax(0, 1fr); }
  .deck-slides { grid-template-columns: minmax(0, 1fr); }
  .price-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .spot { grid-template-columns: minmax(0, 1fr); }
  .boss { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .boss-rank { height: 40px; font-size: 22px; }
  .tier { width: 52px; height: 58px; }
  .tier b { font-size: 30px; line-height: 30px; }
  .plan-form .span2 { grid-column: 1 / -1; }
  .ready { grid-template-columns: auto minmax(0, 1fr); }
  .ready > span { grid-column: 1 / -1; }
  .inv-top { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .live, .fx-in, .fx-flick, .chart circle.ln-dot { animation: none !important; }
  .fx-in * { animation: none !important; }
  .boss, .spot-card { transition: none; transform: none !important; }
}

/* ---------- print: the deck alone, one slide per landscape page ---------- */
@media print {
  .card, .kpi, .boss, .spot-card, .lay-col, .steps a, .ready, .price-hero > div, .locked { clip-path: none; }
  body.print-deck .shell > .side, body.print-deck .top, body.print-deck .title-row, body.print-deck .deck-bar, body.print-deck .deck-side, body.print-deck .working, body.print-deck .error, body.print-deck .site-foot, body.print-deck footer.foot { display: none !important; }
  body.print-deck .sheet { padding: 0 !important; }
  body.print-deck .deck-wrap { display: block; }
  body.print-deck .deck-slides { display: block; }
  body.print-deck .slide { width: 100%; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  body.print-deck .fx-in { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@page deck { size: 13.333in 7.5in; margin: 0; }
@media print { body.print-deck .slide { page: deck; } }
.scope img[src=""], .game-cell img[src=""] { visibility: hidden; }
