/* Tabzooka. Two layers: the plain web page (white, browser-default serif, blue links)
   and the game tearing through it (night, Bangers, HUD). */

@font-face { font-family: "Bangers"; src: url("/fonts/bangers-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url("/fonts/oxanium-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url("/fonts/oxanium-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #121318;
  --ink-2: #454955;
  --rule: #d6d8de;
  --link: #0000ee;
  --visited: #551a8b;
  --night: #0b0c1a;
  --night-2: #151832;
  --night-3: #222849;
  --on-night: #f3f4ff;
  --on-night-2: #b9bedf;
  --cyan: #35f2ff;
  --magenta: #ff3df0;
  --magenta-ink: #a8008a;
  --gold: #ffc446;
  --gold-ink: #7a4d00;
  --lava: #ff6b3d;
  --serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --display: "Bangers", Impact, sans-serif;
  --hud: "Oxanium", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --tear-top: polygon(0 0, 100% 0, 100% 54%, 97.05% 23.7%, 91.94% 47.6%, 88.78% 98.2%, 86.61% 75.7%, 82.32% 57.3%, 79.05% 32%, 74.52% 81.5%, 71.63% 50.8%, 67.68% 38.3%, 63.58% 71.2%, 59.66% 15.4%, 56.84% 59.3%, 53.77% 67.5%, 50.76% 26.3%, 45.51% 37.8%, 42.35% 23%, 38.2% 87.3%, 35.47% 97.9%, 33.22% 61.9%, 27.91% 66.5%, 25.78% 21.1%, 20.45% 48.2%, 17.7% 16.3%, 14.3% 13.4%, 10.39% 15.2%, 6.12% 58.2%, 2.73% 68.6%, 0 39.1%);
  --tear-bottom: polygon(0 100%, 100% 100%, 100% 27.9%, 96.59% 4.2%, 92.66% 56.8%, 88.72% 89.6%, 85.68% 37%, 81.5% 69%, 77.73% 74.1%, 75.92% 3.8%, 71.23% 57.7%, 68.73% 64.9%, 65.21% 16.3%, 60.59% 40.6%, 58.03% 82.7%, 52.97% 54.8%, 50.64% 78.4%, 45.51% 84.7%, 42.77% 74.9%, 39.69% 88%, 35.2% 55.3%, 33.33% 16%, 29.06% 31.8%, 25.39% 84.5%, 22.5% 47.3%, 17.75% 14.4%, 14.51% 37.8%, 10.27% 27.4%, 7.32% 11.2%, 3.98% 21.2%, 0 86.5%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.5 var(--serif);
  font-feature-settings: "kern" 1; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
p + p { margin-top: 0.75em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.92; text-wrap: balance; hyphens: none; }
h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
strong, b { font-weight: 700; }
code { font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef0f4; padding: 1px 5px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; max-width: 62ch; }
.dim { color: var(--ink-2); }
.mt { margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--gold); color: var(--ink); padding: 10px 14px; font: 700 1rem var(--hud); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Stickers: buttons and labels from the game layer */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 22px 8px; border: 2px solid var(--ink); border-radius: 12px;
  font: 400 1.35rem/1 var(--display); letter-spacing: 0.04em; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--gold); box-shadow: 0 8px 18px -8px rgba(18, 19, 24, 0.55);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 150ms;
}
.btn:visited { color: var(--ink); }
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 14px 24px -10px rgba(18, 19, 24, 0.6); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-plain { background: var(--paper); }
.btn-cyan { background: var(--cyan); }
.btn-sm { min-height: 42px; padding: 8px 16px 6px; font-size: 1.15rem; border-radius: 10px; }
.hole .btn-plain { background: var(--night-2); color: var(--on-night); border-color: var(--on-night); }
.hole .btn { border-color: var(--on-night); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { display: inline-block; padding: 4px 9px 3px; border-radius: 6px; font: 700 0.72rem/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.tag-free { background: #d9fbff; color: #04535c; box-shadow: inset 0 0 0 1px #6fdfe9; }
.tag-pro { background: #ffe0fb; color: var(--magenta-ink); box-shadow: inset 0 0 0 1px #f59be8; }
.tag-legend { background: var(--gold); color: #2a1a00; }
.hole .tag-free { background: rgba(53, 242, 255, 0.14); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(53, 242, 255, 0.5); }
.hole .tag-pro { background: rgba(255, 61, 240, 0.16); color: #ff8af5; box-shadow: inset 0 0 0 1px rgba(255, 61, 240, 0.55); }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 0.45em;
  font: 700 0.72em/1 var(--hud); color: var(--ink); background: #f1f2f5; border-radius: 6px; vertical-align: 0.1em;
  box-shadow: inset 0 -3px 0 #c7cad3, inset 0 0 0 1px #b9bdc7;
}
.hole kbd { color: var(--on-night); background: var(--night-3); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* Header: an ordinary page header with a game sticker on it */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0; padding: 7px 12px 5px; border-radius: 10px; background: var(--night);
  font: 400 1.7rem/1 var(--display); letter-spacing: 0.04em; color: #fff; text-decoration: none; transform: rotate(-2deg);
  box-shadow: 0 6px 14px -6px rgba(11, 12, 26, 0.6);
}
.wordmark:visited, .wordmark:hover { color: #fff; }
.wordmark em { font-style: normal; color: var(--gold); }
.wordmark img { width: 28px; height: 28px; border-radius: 7px; margin-right: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.nav a { font-size: 1.05rem; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 700; }
@media (max-width: 900px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Torn holes: the game showing through the page */
.hole { position: relative; isolation: isolate; background: var(--night); color: var(--on-night); padding: clamp(96px, 12vw, 150px) 0; }
.hole::before, .hole::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(22px, 3vw, 38px); background: var(--paper); z-index: 2; pointer-events: none; }
.hole::before { top: -1px; clip-path: var(--tear-top); }
.hole::after { bottom: -1px; clip-path: var(--tear-bottom); }
.hole.flush-bottom::after { display: none; }
.hole a { color: var(--cyan); }
.hole a:visited { color: #b58cff; }
.hole .lede, .hole .dim { color: var(--on-night-2); }
.hole h2 em, .hole h3 em { font-style: normal; color: var(--gold); }

/* Hazard tape */
.tape { position: relative; z-index: 3; overflow: hidden; padding: 10px 0; }
.tape-band {
  width: 106vw; margin-left: -3vw; transform: rotate(-1.4deg); background: var(--gold); color: var(--ink);
  border-block: 12px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--gold) 14px 28px) 12;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.5);
}
.tape-band ul { list-style: none; margin: 0; padding: 10px var(--gutter) 7px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 34px; font: 400 clamp(1.2rem, 2.2vw, 1.7rem)/1 var(--display); letter-spacing: 0.05em; }

/* Section rhythm */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.blast { font-size: clamp(3.8rem, 8.6vw, 7.6rem); line-height: 0.86; margin-bottom: 24px; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.blast .w { display: inline-block; white-space: nowrap; }
.blast .l { display: inline-block; transition: transform 900ms var(--ease), opacity 900ms var(--ease), filter 900ms var(--ease); }
.blast .l.gone { opacity: 0; filter: blur(2px); }
.blast .hot { background: var(--gold); padding: 0 0.08em; margin-left: -0.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { margin-bottom: 28px; }
.hero-note { margin-top: 20px; font-style: italic; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.reset { background: none; border: 0; padding: 0; color: var(--link); font: italic 1rem var(--serif); text-decoration: underline; cursor: pointer; }
.reset[hidden] { display: none; }
.shatter { position: relative; margin: 0; aspect-ratio: 16 / 10; }
.shatter .pane {
  position: absolute; inset: 0; transform: rotate(1.6deg);
  clip-path: polygon(2% 4%, 38% 0, 61% 3%, 99% 0, 97% 34%, 100% 58%, 96% 100%, 64% 97%, 41% 100%, 9% 97%, 0 71%, 3% 42%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
}
.shatter .pane img { width: 100%; height: 100%; object-fit: cover; }
.shatter::before { content: ""; position: absolute; inset: 6% -3% -5% 5%; background: var(--night); transform: rotate(-2.5deg); clip-path: polygon(3% 0, 97% 3%, 100% 96%, 0 100%); z-index: -1; }
.shard { position: absolute; width: 18%; aspect-ratio: 1; background-size: 560% auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.35)); }
.shard-1 { top: -6%; right: -3%; clip-path: polygon(50% 0, 100% 80%, 0 100%); background-position: 95% 5%; transform: rotate(18deg); }
.shard-2 { bottom: -9%; left: 6%; width: 13%; clip-path: polygon(0 0, 100% 30%, 40% 100%); background-position: 10% 90%; transform: rotate(-24deg); }
.shard-3 { bottom: 8%; right: -6%; width: 11%; clip-path: polygon(20% 0, 100% 50%, 0 100%); background-position: 80% 70%; transform: rotate(34deg); }
.shatter figcaption { position: absolute; left: 4%; bottom: -3.2em; font-style: italic; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shatter { margin: 8px 4px 44px; }
}

/* What is */
.what .wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 16px clamp(28px, 6vw, 80px); align-items: start; }
.what p { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 58ch; }
@media (max-width: 760px) { .what .wrap { grid-template-columns: 1fr; } }

/* Proof gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.gallery figure { margin: 0; }
.gallery figure:first-child { grid-column: 1 / -1; }
.shot { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.9); background: var(--night-2); }
.shot img { width: 100%; height: auto; }
.gallery figcaption, .figure figcaption { margin-top: 12px; font-style: italic; color: var(--on-night-2); font-size: 1rem; }
.figure { margin: 0; }
.figure figcaption { color: var(--ink-2); }
.page-shot { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -28px rgba(0, 0, 0, 0.55); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* Start + controls */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps-list { margin: 22px 0 0; padding-left: 1.4em; }
.steps-list li { padding-left: 6px; }
.steps-list li + li { margin-top: 12px; }
.steps-list li::marker { font: 400 1.5rem var(--display); color: var(--magenta-ink); }
.keys { margin: 26px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; }
.keys dt { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.keys dd { margin: 0; }
.keys .to, .ctable .to { color: var(--ink-2); font-size: 0.9em; }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }

/* Heroes: the select screen on paper */
.select { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.portrait { position: relative; margin: 0; aspect-ratio: 2 / 3; }
.portrait .frame { position: absolute; inset: 0; clip-path: polygon(3% 1%, 52% 0, 98% 2%, 100% 44%, 97% 99%, 44% 100%, 1% 97%, 0 52%); background: var(--night); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3)); transform: rotate(-1.2deg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease), transform 600ms var(--ease); }
.portrait img.swap { opacity: 0; transform: scale(1.04); }
.sheet { display: grid; gap: 20px; min-width: 0; }
.sheet-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sheet-name h3, .sheet-name h2 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
.traits { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 2px solid var(--ink); }
.traits div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.traits dt { font: 700 0.75rem/1.2 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.traits dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.label { margin: 0 0 8px; font: 700 0.75rem/1.2 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools li { display: grid; grid-template-columns: auto 52px 1fr; gap: 12px; align-items: center; }
.tools img { width: 52px; height: 52px; object-fit: contain; }
.tools b { display: block; }
.tools span { display: block; color: var(--ink-2); font-size: 0.95rem; line-height: 1.35; }
.weapons { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.weapons li { break-inside: avoid; display: grid; grid-template-columns: 1.6em 1fr; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.weapons li span { font: 700 0.8rem/1.9 var(--hud); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.weapons li.pro-slot span { color: var(--magenta-ink); }
.note { color: var(--ink-2); font-style: italic; font-size: 1rem; }
.roster { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0 0 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; border-bottom: 3px solid var(--ink); }
.roster button { position: relative; width: 100%; height: 150px; padding: 0 0 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: end center; }
.roster button img { height: 118px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; transition: transform 240ms var(--ease); }
.roster button span { position: absolute; left: 0; right: 0; bottom: 2px; font: 700 0.72rem/1.1 var(--hud); color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster button:hover img { transform: translateY(-6px); }
.roster button[aria-pressed="true"] span { color: var(--ink); }
.roster button[aria-pressed="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -12px; height: 6px; border-radius: 3px; background: var(--c, var(--cyan)); }
.roster [data-tier="free"] { --c: #0fb8c7; }
.roster [data-tier="pro"] { --c: var(--magenta); }
.roster [data-tier="legend"] { --c: var(--gold); }
.roster-key { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; color: var(--ink-2); }
.roster-key .tag { margin-right: 6px; }
@media (max-width: 1000px) { .roster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .select { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 3; }
  .portrait img { object-position: 50% 18%; }
}
@media (max-width: 480px) {
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roster button { height: 124px; }
  .roster button img { height: 94px; }
  .traits { grid-template-columns: 1fr; }
  .weapons { columns: 1; }
}

/* Three facts in columns with rules */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 22px clamp(16px, 2.5vw, 30px) 8px 0; }
.facts > div + div { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.5vw, 30px); }
.facts h3 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .facts > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }

/* Modes list */
.modes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 8px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.mode h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.mode p { max-width: 56ch; }
.mode .tag { justify-self: end; }
.mode-lava h3 { color: #c9380b; }
.hole .modes { border-top-color: var(--on-night); }
.hole .mode { border-bottom-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 760px) { .mode { grid-template-columns: 1fr auto; } .mode p { grid-column: 1 / -1; grid-row: 2; } }

/* Web Invasion: animated creatures and bosses */
.bosses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 22px; }
.bosses li { display: grid; gap: 8px; align-content: start; }
.bosses b { font: 400 1.5rem/1 var(--display); letter-spacing: 0.03em; color: var(--on-night); }
.bosses span { color: var(--on-night-2); font-size: 0.95rem; line-height: 1.35; }
.bosses .n { font: 700 0.75rem/1 var(--hud); color: var(--gold); letter-spacing: 0.08em; }
.stage { position: relative; height: 170px; display: grid; place-items: end center; }
.stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -2px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); z-index: -1; }
.stage img { max-height: 170px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.foes .stage img { max-height: 86px; }
.bosses .n, .bosses b { position: relative; z-index: 1; }
@media (max-width: 640px) { .stage img { max-height: 130px; } }
.foes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 22px; }
.foes li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; }
.foes .stage { height: 86px; }
.foes b { display: block; }
.foes span { display: block; color: var(--on-night-2); font-size: 0.92rem; line-height: 1.35; }
.invasion-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(28px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 64px); }
.invasion-rules p { color: var(--on-night-2); font-size: 1.1rem; }
@media (max-width: 1000px) { .bosses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bosses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } .stage { height: 130px; } .invasion-rules { grid-template-columns: 1fr; } }

/* Multiplayer */
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.rooms > div { padding: 18px 20px 6px 0; }
.rooms > div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.rooms h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 6px; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: clamp(32px, 5vw, 48px); }
.join > div { border-top: 1px solid var(--rule); padding-top: 16px; }
.join h3 { display: flex; align-items: center; gap: 12px; font-size: 1.9rem; margin-bottom: 8px; }
@media (max-width: 860px) { .rooms { grid-template-columns: 1fr 1fr; } .rooms > div:nth-child(3) { border-left: 0; padding-left: 0; } .rooms > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 640px) { .join { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rooms { grid-template-columns: 1fr; } .rooms > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* Pricing table */
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1.02rem; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.price-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.price-table thead th b { display: block; font: 400 2.3rem/1 var(--display); letter-spacing: 0.02em; font-weight: 400; }
.price-table thead .amt { display: block; margin-top: 6px; font: 700 1rem/1.3 var(--hud); color: var(--ink-2); }
.price-table thead .pro b { color: var(--magenta-ink); }
.price-table thead .legend b { color: var(--gold-ink); }
.price-table tbody th { font: 700 0.78rem/1.3 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); width: 16%; }
.price-table td.pro { background: #fff5fd; padding-left: 14px; }
.price-table thead th.pro { background: #fff5fd; padding-left: 14px; }
.price-actions { display: grid; grid-template-columns: 16% 1fr 1fr 1fr; gap: 16px 18px; margin-top: 22px; align-items: start; }
.price-actions > div { display: grid; gap: 10px; justify-items: start; }
.price-actions small { font-size: 0.92rem; color: var(--ink-2); font-style: italic; }
@media (max-width: 860px) { .price-actions { grid-template-columns: 1fr; } .price-actions > .spacer { display: none; } }
.pay-note { margin-top: 26px; color: var(--ink-2); max-width: 70ch; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; font-weight: 700; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 220ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; max-width: 68ch; }

/* Closing hole */
.close .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.close h2 { font-size: clamp(3rem, 7.4vw, 5.8rem); }
.close .lede { margin: 16px 0 28px; }
.line-up { display: flex; align-items: flex-end; gap: 4px; border-bottom: 3px solid var(--gold); padding: 0 6px; }
.line-up img { height: 150px; width: auto; }
@media (max-width: 760px) { .close .wrap { grid-template-columns: 1fr; } .line-up img { height: 104px; } }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px 32px; align-items: start; }
.foot-grid nav, .foot-grid > div { display: grid; gap: 6px; justify-items: start; }
.foot-grid b { font: 700 0.75rem/1.2 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.foot-note { color: var(--ink-2); font-size: 0.95rem; max-width: 32ch; margin-top: 10px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: 1rem; color: var(--ink-2); }
.page-head { padding: clamp(84px, 10vw, 120px) 0 clamp(96px, 11vw, 136px); margin-top: 18px; }
.page-head h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin-bottom: 20px; }
.page-head h1 em { font-style: normal; color: var(--gold); }
.answer { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 60ch; color: var(--on-night); }
.page-head .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .page-head .grid { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 26px; font-size: 1.05rem; }
.hero-entry { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 84px; }
.hero-entry:first-child { padding-top: 0; }
.hero-entry .portrait { aspect-ratio: 2 / 3; }
@media (max-width: 760px) { .hero-entry { grid-template-columns: 1fr; } .hero-entry .portrait { aspect-ratio: 4 / 3; max-width: 420px; } .hero-entry .portrait img { object-position: 50% 18%; } }
.plain-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td { text-align: left; vertical-align: middle; padding: 11px 18px 11px 0; border-bottom: 1px solid var(--rule); }
.ctable thead th { border-bottom: 2px solid var(--ink); font: 700 0.75rem/1.2 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.ctable tbody th { font-weight: 400; white-space: nowrap; }
@media (max-width: 560px) { .ctable tbody th { white-space: normal; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }

/* Legal documents */
.doc { padding: clamp(28px, 5vw, 56px) 0 clamp(72px, 10vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 12px; }
.doc .meta { color: var(--ink-2); font-style: italic; margin-bottom: 32px; }
.doc h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 44px 0 12px; }
.doc h3 { font-size: 1.6rem; margin: 30px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc ul + p, .doc ol + p, .doc .table-scroll + p { margin-top: 0.8em; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.doc thead th { border-bottom: 2px solid var(--ink); }

/* Success, cancel, 404 */
.state { padding: clamp(40px, 7vw, 90px) 0 clamp(72px, 10vw, 120px); }
.state .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; max-width: 980px; }
.state h1 { font-size: clamp(3.2rem, 9vw, 6rem); margin-bottom: 16px; }
.state .lede { margin-bottom: 26px; }
.state-art { height: clamp(150px, 24vw, 280px); width: auto; }
.steps { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); font: 400 1.9rem/1 var(--display); color: var(--magenta-ink); }
.receipt { color: var(--ink-2); font-size: 0.95rem; margin-top: 18px; }
@media (max-width: 700px) { .state .wrap { grid-template-columns: 1fr; } .state-art { order: -1; height: 140px; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .roster button img, .portrait img, .blast .l { transition: none; }
}
.btn-primary { background: var(--gold); }
.btn-ghost { background: var(--paper); }
.pane-img { width: 100%; height: 100%; }
.shard { background-image: url("/img/shots/wreck-640.webp"); }
.hole a.btn, .hole a.btn:visited { color: var(--ink); }
.hole a.btn-plain, .hole a.btn-plain:visited { color: var(--on-night); }
.menu-img img { width: 100%; }
.stage img { height: 100%; max-height: none; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.invasion-rules p + p { margin-top: 0; }
.price-summary { display: none; }
@media (max-width: 700px) {
  .price-summary { display: grid; gap: 4px; margin-bottom: 14px; }
  .price-summary b { font: 400 1.5rem/1 var(--display); letter-spacing: 0.02em; margin-right: 6px; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
  .price-table tr { border-top: 2px solid var(--ink); padding: 10px 0 12px; }
  .price-table tbody th { padding: 0 0 6px; border: 0; width: auto; }
  .price-table td { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 5px 0; border: 0; }
  .price-table td.pro { padding-left: 0; background: none; }
  .price-table td::before { content: attr(data-label); font: 700 0.72rem/1.9 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
  .price-table td.pro::before { color: var(--magenta-ink); }
}
