/* GIGAWRECK website: the home page and info pages (tools/gen-site.mjs). The game has its own game.css.
   Same brand as the game (docs/BRAND.md): navy night, glossy blue, Wreck gold, pink for Play, thick ink.
   Long reading text sits on light "blueprint paper" panels so it stays easy to read. */
/* 0.22.0: Latin subsets (WOFF, about 45 KB each) load first; the full fonts load only for other scripts. */
@font-face { font-family: 'Anton'; src: url('/fonts/Anton-Regular-latin.woff') format('woff'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; src: url('/fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-1FFF, U+2070-2073, U+2075-20AB, U+20AD-2121, U+2123-218F, U+219A-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-FFFF; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-Regular-latin.woff') format('woff'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-1FFF, U+2070-2073, U+2075-20AB, U+20AD-2121, U+2123-218F, U+219A-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-FFFF; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-SemiBold-latin.woff') format('woff'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-1FFF, U+2070-2073, U+2075-20AB, U+20AD-2121, U+2123-218F, U+219A-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-FFFF; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-ExtraBold-latin.woff') format('woff'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira'; src: url('/fonts/FiraSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-1FFF, U+2070-2073, U+2075-20AB, U+20AD-2121, U+2123-218F, U+219A-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-FFFF; }

:root {
  --ink: #04102E; --deep: #051640; --night: #0A2A66; --night-hi: #0E3A85;
  --blue: #1A68CF; --blue-hi: #2C8BEE; --blue-lo: #1150A8;
  --paper: #EEF5FF; --paper-line: #B9D3F4; --muted: #3B5278;
  --sub: #A9DCFF; --body-on-night: #DDEBFF;
  --gold: #FFCD3C; --gold-lo: #E58A0A;
  --pink: #FF4FA7; --pink-lo: #C3166F;
  --green: #4BDD62; --green-lo: #1C9B36;
  /* 0.23.8: the wordmark's own colours, used across the site: the gold-to-ember letters and the
     purple claw and extrusion behind them */
  --ember: #FF7A1A; --claw: #5B2BA8; --claw-hi: #8A55E0; --claw-deep: #2B1163; --claw-night: #170A3B;
  --thermal: #FF7B1C; --cryo: #3FD6FF; --toxic: #8EE04A;
  --dev: #FF4646; --modc: #A6FF34; --supp: #FFA94D;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Fira', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --outline: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 4px 0 var(--ink);
  --outline-sm: 0 1px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 -1px 0 var(--ink), 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 0 2px 0 var(--ink);
  --drop: 0 7px 0 var(--claw-deep);
  --pattern: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 16px);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
/* the website (not the game) highlights selected text in the action pink */
::selection { background: #FF4FA7; color: #fff; }
/* site art (Gigas, villains, scenery) is not selectable or draggable (draggable="false" covers Firefox) */
img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
body { margin: 0; background: var(--night) var(--pattern); color: var(--body-on-night); font: 400 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE38A; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 10px; border: 3px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.fine { font-size: 14px; color: var(--sub); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- buttons */
.btn { display: inline-block; font: 24px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; color: #fff; text-decoration: none; text-shadow: var(--outline-sm);
  padding: 14px 28px 15px; border: 3px solid var(--ink); border-radius: 14px; cursor: pointer;
  background: linear-gradient(var(--blue-hi), var(--blue) 55%, var(--blue-lo)); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), var(--drop);
  transition: transform .08s, box-shadow .08s, filter .12s; }
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 9px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255,255,255,.25), 0 2px 0 var(--ink); }
.btn-play { background: linear-gradient(#FF7CC0, var(--pink) 50%, var(--pink-lo)); font-size: 38px; padding: 16px 46px 18px; border-radius: 18px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.4), 0 0 0 4px var(--gold), 0 0 0 7px var(--ink), 0 12px 0 3px var(--ink); }
.btn-play:hover { box-shadow: inset 0 4px 0 rgba(255,255,255,.4), 0 0 0 4px var(--gold), 0 0 0 7px var(--ink), 0 15px 0 3px var(--ink); }
.btn-play:active { box-shadow: inset 0 4px 0 rgba(255,255,255,.3), 0 0 0 4px var(--gold), 0 0 0 7px var(--ink), 0 4px 0 3px var(--ink); }
.btn-play.sm { font-size: 20px; padding: 10px 20px 11px; border-radius: 12px; box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 0 0 3px var(--gold), 0 0 0 5px var(--ink), 0 7px 0 2px var(--ink); }
.btn-green { background: linear-gradient(#7BEA8C, var(--green) 50%, var(--green-lo)); }
.btn[disabled] { filter: grayscale(.6) brightness(.85); cursor: progress; transform: none; }
.more { font-weight: 800; color: var(--gold); text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 1px; }
.more:hover { color: #FFE38A; }
.paper .more { color: var(--blue-lo); }
.paper .more:hover { color: var(--blue); }

/* ---------------------------------------------------------- header */
.site-head { background: linear-gradient(180deg, var(--claw-night), #10154A); border-bottom: 4px solid var(--ink); position: relative; z-index: 5; }
.bar { width: min(var(--wrap), 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 6px; }
.brand { display: block; line-height: 0; }
.brand img { width: 200px; filter: drop-shadow(0 4px 0 var(--ink)); }
.head-cta { display: flex; align-items: center; gap: 18px; }
.btn-login { font-weight: 800; color: #fff; text-decoration: none; padding: 8px 4px; }
.btn-discord { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #7B86FF, #4752C4); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 4px 0 var(--ink); }
.btn-discord:hover { filter: brightness(1.1); }
.btn-discord:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-discord .dc-mark { width: 24px; height: 19px; flex: none; }
.btn-discord.big { font-size: 20px; padding: 12px 22px; }
.btn-discord.big .dc-mark { width: 30px; height: 24px; }
.dc-band { display: flex; align-items: center; gap: 24px; margin: 30px 0; padding: 22px 26px; border-radius: 16px; border: 4px solid var(--ink); color: #fff;
  background: linear-gradient(135deg, #5865F2, #3B44A8); box-shadow: 0 6px 0 var(--ink); }
.dc-band > .dc-mark { width: 84px; height: 66px; flex: none; color: #fff; filter: drop-shadow(0 4px 0 rgba(4,16,46,.6)); }
.dc-band h2 { margin: 0 0 6px; font: 30px/1 var(--display); text-transform: uppercase; }
.dc-band p { margin: 0; }
.dc-band > div { flex: 1; }
.dc-band .btn-discord { background: #fff; color: #4752C4; }
@media (max-width: 720px) { .head-dc span { display: none; } .head-dc { padding: 8px 10px; } .dc-band { flex-direction: column; text-align: center; } }
.btn-login:hover { color: var(--gold); text-decoration: underline; }
.tabs { background: linear-gradient(var(--claw), var(--claw-deep)); border-top: 3px solid var(--ink); }
.tabs ul { list-style: none; margin: 0 auto; padding: 8px 0 0; width: min(var(--wrap), 100% - 32px); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs ul { padding-left: 4px; padding-right: 4px; }
/* Trapezoid tabs with a full ink outline: the shape is a rounded box tilted back in 3D, so the
   border follows the slanted sides instead of being cut off by a clip-path. */
.tabs a { position: relative; isolation: isolate; display: block; white-space: nowrap; font: 19px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: #fff; text-decoration: none; text-shadow: var(--outline-sm);
  padding: 12px 24px 12px; margin: 0 2px; }
.tabs a::before { content: ''; position: absolute; inset: 0 0 -3px; z-index: -1; background: linear-gradient(var(--blue-hi), var(--blue)); border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0;
  transform: perspective(64px) rotateX(5deg); transform-origin: 50% 100%; box-shadow: inset 0 2px 0 rgba(255,255,255,.3); }
.tabs a:hover::before { background: linear-gradient(#55A6F5, var(--blue-hi)); }
.tabs a[aria-current="page"] { color: var(--ink); text-shadow: none; }
.tabs a[aria-current="page"]::before { background: linear-gradient(#FFE07A, var(--gold) 60%, var(--gold-lo)); box-shadow: inset 0 2px 0 rgba(255,255,255,.55); }
.tabs a:focus-visible { outline-offset: -5px; }

/* ---------------------------------------------------------- the claw-torn edge */
.claw { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 8.4vw, 120px); display: block; pointer-events: none; }
.claw .tear { fill: var(--night); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.claw.sm { height: clamp(28px, 4.2vw, 60px); }

/* ---------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; min-height: clamp(600px, 84vh, 800px); background: #6FB7F2 url('/assets/site/hero.webp') center 70% / cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 46% at 50% 26%, rgba(255,255,255,.28), transparent 70%); }
.hero-sky { position: relative; z-index: 2; text-align: center; padding: clamp(26px, 5vh, 56px) 20px 0; width: min(760px, 100%); margin-inline: auto; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(560px, 88vw); filter: drop-shadow(0 8px 0 rgba(4,16,46,.55)); }
.hero-tag span { display: block; }
.hero-tag { margin: 6px 0 0; font: clamp(26px, 3.6vw, 40px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: #fff; text-shadow: var(--outline); }
.hero-sub { display: inline-block; margin: 14px auto 0; max-width: 40ch; font-weight: 600; font-size: 17px; line-height: 1.4; color: #fff; background: rgba(5,22,64,.82); border: 3px solid var(--ink); border-radius: 12px; padding: 7px 16px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 28px; margin-top: 30px; }
.hero-login { display: inline-block; margin: 24px 0 0; font-weight: 600; color: #fff; background: rgba(5,22,64,.82); border: 3px solid var(--ink); border-radius: 12px; padding: 5px 14px; }
.hero-login a { color: var(--gold); }
.hero-gigas { position: absolute; inset: auto 0 0 0; height: 100%; z-index: 1; pointer-events: none; }
.hg { position: absolute; bottom: clamp(40px, 7vw, 96px); transform-origin: 50% 100%; }
.hg img { display: block; width: 100%; filter: drop-shadow(0 10px 0 rgba(4,16,46,.35)); }
.g-left { left: 2%; width: clamp(170px, 22vw, 330px); }
.g-mid { right: 20%; width: clamp(130px, 15vw, 230px); bottom: clamp(54px, 9vw, 130px); }
.g-right { right: 1%; width: clamp(160px, 20vw, 300px); }

/* the one orchestrated moment: the Gigas stomp onto the promenade and the street shakes */
@media (prefers-reduced-motion: no-preference) {
  .hg { animation: stomp .62s cubic-bezier(.3,.0,.6,1) both; animation-delay: calc(.25s + var(--i) * .16s); }
  .hero { animation: quake .38s linear .78s 1; }
  @keyframes stomp {
    0% { transform: translateY(-115%) scaleY(1.08); opacity: 0; }
    12% { opacity: 1; }
    70% { transform: translateY(0) scale(1.06, .9); }
    84% { transform: translateY(-5%) scale(.98, 1.03); }
    100% { transform: none; }
  }
  @keyframes quake { 0%, 100% { background-position: center 70%; } 20% { background-position: calc(50% - 4px) calc(70% + 3px); } 45% { background-position: calc(50% + 4px) calc(70% - 2px); } 70% { background-position: calc(50% - 2px) calc(70% + 1px); } }
}

/* ---------------------------------------------------------- live numbers (real data only) */
.live { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 4px 20px 0; margin-top: -6px; }
.live p { margin: 0; display: flex; align-items: baseline; gap: 8px; font-weight: 600; color: var(--sub); }
.live b { font: 30px/1 var(--display); color: var(--gold); text-shadow: var(--outline-sm); letter-spacing: .5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); align-self: center; }

/* ---------------------------------------------------------- sections */
.section-title { font: clamp(32px, 4vw, 44px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .6px; color: #fff; text-shadow: var(--outline); margin: 0 0 22px; }

.lede { font-size: 19px; color: var(--body-on-night); margin: -8px 0 24px; max-width: 62ch; }
.pillars { margin-top: 64px; }
.pillar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { background: linear-gradient(var(--night-hi), #0B2F70); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 14px 22px; box-shadow: var(--drop); }
.pillar > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink); display: block; }
.pillar h3 { font: 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: .4px; color: var(--gold); text-shadow: var(--outline-sm); margin: 16px 6px 8px; }
.pillar p { margin: 0 6px 14px; }
.pillar .more { margin-left: 6px; }

.paper { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--drop); }
.paper h2, .paper h3 { color: var(--ink); }
.paper a:not(.btn) { color: var(--blue-lo); font-weight: 600; }
.paper a:not(.btn):hover { color: var(--blue); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; margin-top: 70px; align-items: start; }
.news-feed { padding: 8px 26px; }
.feed-wait, .feed-empty { color: var(--muted); margin: 14px 0; }
.bulletin { padding: 18px 0; border-bottom: 2px dashed var(--paper-line); }
.bulletin:last-child { border-bottom: 0; }
.bulletin h3 { font: 800 21px/1.25 var(--body); margin: 6px 0 2px; }
.bulletin h3 a { color: var(--ink); text-decoration: none; }
.bulletin h3 a:hover { text-decoration: underline; }
.bulletin .when { margin: 0; font-size: 14px; color: var(--muted); }
.bulletin .when a.by { font-weight: 800; }
.bulletin p.text { margin: 8px 0 0; }
/* Full bulletins on the News page: the forum's BB code, recoloured for the light paper */
.bulletin-body { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bulletin-body .bb-h { font: 400 24px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; margin: 14px 0 4px; white-space: normal; }
.bulletin-body h4.bb-h { font-size: 19px; }
.bulletin-body .bb-center { text-align: center; }
.bulletin-body .bb-list { margin: 4px 0; padding-left: 26px; white-space: normal; }
.bulletin-body .bb-list li { margin: 3px 0; white-space: pre-wrap; }
.bulletin-body .bb-u { text-decoration: underline; }
.bulletin-body .bb-s1 { font-size: 13px; } .bulletin-body .bb-s3 { font-size: 20px; font-weight: 700; } .bulletin-body .bb-s4 { font-size: 26px; font-weight: 800; }
.bulletin-body .bb-c-red { color: #C8102E; } .bulletin-body .bb-c-orange { color: #C25400; } .bulletin-body .bb-c-gold { color: #9A6A00; } .bulletin-body .bb-c-yellow { color: #8A7400; }
.bulletin-body .bb-c-green { color: #1E7A2C; } .bulletin-body .bb-c-teal { color: #08777F; } .bulletin-body .bb-c-blue { color: #1F5FD0; } .bulletin-body .bb-c-purple { color: #6A2FC4; }
.bulletin-body .bb-c-pink { color: #C22A79; } .bulletin-body .bb-c-gray { color: var(--muted); }
.bulletin-body .bb-quote { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--paper-line); background: rgba(44,139,238,.07); border-radius: 6px; }
.bulletin-body .bb-quote-by { font-weight: 800; font-size: 14px; color: var(--muted); }
.bulletin-body .bb-spoiler { margin: 8px 0; padding: 6px 12px; border: 2px dashed var(--paper-line); border-radius: 8px; white-space: normal; }
.bulletin-body .bb-spoiler summary { cursor: pointer; font-weight: 800; }
.bulletin-body .bb-spoiler > div { white-space: pre-wrap; }
.bulletin-body .bb-icode, .bulletin-body .bb-code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(4,16,46,.07); border-radius: 4px; padding: 0 4px; }
.bulletin-body .bb-code { display: block; padding: 8px 10px; overflow-x: auto; }
.bulletin-body .bb-giga { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; vertical-align: middle; margin: 4px 6px; padding: 6px 10px 6px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; white-space: nowrap; }
.bulletin-body .bb-giga img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(4,16,46,.35)); }
.bulletin-body .bb-giga b { font: 400 14px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.bulletin-body .bb-giga.el-thermal { background: #FFE4CC; } .bulletin-body .bb-giga.el-cryo { background: #D8F4FF; } .bulletin-body .bb-giga.el-toxic { background: #E4F8CF; }
.bulletin-more { display: inline-block; margin-top: 10px; font-weight: 800; color: #1F5FD0; }
.prefix { display: inline-block; font: 800 12px/1 var(--body); padding: 5px 9px; border-radius: 99px; border: 2px solid var(--ink); background: var(--blue-hi); color: #fff; }
.prefix.p-patch { background: var(--gold); color: var(--ink); }
.prefix.p-event { background: var(--pink); }
.patch { padding: 20px 26px; margin-top: 26px; }
.patch-ver { margin: 0; font: 15px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--blue-lo); }
.patch h3 { font: 800 21px/1.25 var(--body); margin: 6px 0 8px; }
.patch ul { margin: 0 0 12px; padding-left: 20px; }
.patch li { margin: 4px 0; }
.patch-sec { border-top: 1px solid rgba(10,42,102,.14); padding: 8px 0 2px; }
.patch-sec > summary { cursor: pointer; font: 800 17px/1.3 var(--body); color: var(--blue-lo); list-style-position: outside; }
.patch-sec > summary:hover { text-decoration: underline; }
.patch-sec ul { margin: 6px 0 8px; }
.side { display: grid; gap: 26px; }
.side .section-title { margin-bottom: 0; }
.side-box { position: relative; background: linear-gradient(var(--blue-hi), var(--blue)); color: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 20px 20px 22px 150px; box-shadow: var(--drop); min-height: 170px; }
.side-box h2 { font: 26px/1 var(--display); text-transform: uppercase; letter-spacing: .4px; color: #fff; text-shadow: var(--outline-sm); margin: 0 0 8px; }
.side-box p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.side-box .more { color: var(--gold); }
.side-pip { position: absolute; left: 4px; top: 50%; width: 140px; transform: translateY(-50%) rotate(-4deg); filter: drop-shadow(0 6px 0 rgba(4,16,46,.45)); }
.help-box { background: linear-gradient(#2BB394, #168A70); }
.help-box .side-pip { transform: translateY(-50%) rotate(4deg); }

.roster { margin-top: 74px; }
.roster-row { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.roster-row a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; font-weight: 800; text-align: center; padding: 8px 4px 10px; border-radius: 16px; border: 3px solid transparent; }
.roster-row a:hover { background: rgba(255,255,255,.07); border-color: var(--ink); }
.roster-row img { width: 100%; max-width: 130px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(4,16,46,.5)); }
.roster-row span { line-height: 1.2; margin-top: 6px; }
.roster-row small { font-size: 13px; font-weight: 800; }
.el-txt-thermal { color: var(--thermal); } .el-txt-cryo { color: var(--cryo); } .el-txt-toxic { color: var(--toxic); }

.final-cta { margin: 80px auto 72px; }
.cta-paper { text-align: center; padding: 34px 24px 46px; background: var(--paper) linear-gradient(180deg, rgba(44,139,238,.10), transparent 60%); }
.cta-paper h2 { font: clamp(32px, 4vw, 46px)/1 var(--display); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px; }
.cta-paper p { margin: 0 auto 28px; max-width: 52ch; }
.cta-paper h2 + .btn { margin-top: 14px; }

/* ---------------------------------------------------------- inner page banner */
.banner { position: relative; background: var(--deep) url('/assets/site/hero.webp') center 62% / cover no-repeat; isolation: isolate; padding: clamp(36px, 6vw, 66px) 0 clamp(54px, 7vw, 86px); }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,10,59,.94) 0%, rgba(23,10,59,.72) 48%, rgba(23,10,59,.2) 100%); }
.banner-in { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.banner h1 { font: clamp(46px, 7vw, 78px)/1 var(--display); text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: var(--outline); margin: 0; }
.banner p { font-size: 19px; font-weight: 600; color: #fff; max-width: 56ch; margin: 12px 0 0; text-shadow: 0 2px 0 var(--ink); }

/* ---------------------------------------------------------- feature rows (The Game, Community) */
.prose-wide { margin-top: 56px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 0 68px; }
.feature > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 3px solid var(--ink); box-shadow: var(--drop); display: block; }
.feature.flip > img, .feature.flip > .city-scene { order: 2; }
.feature > img.square-art { object-position: 50% 62%; }
.city-scene { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--drop);
  background: linear-gradient(#7EC8F5, #C6EBFF 44%, #9ED36A 44%, #8CC65A); }
.city-scene::before { content: ''; position: absolute; inset: 44% 0 0; background: repeating-linear-gradient(90deg, rgba(4,16,46,.06) 0 2px, transparent 2px 46px); }
.city-scene img { position: absolute; height: auto; filter: drop-shadow(0 6px 0 rgba(4,16,46,.28)); }
.c-mint { left: 3%; bottom: 34%; width: 27%; }
.c-hq { left: 35%; bottom: 40%; width: 30%; }
.c-ref { right: 3%; bottom: 34%; width: 26%; }
.c-mortar { left: 17%; bottom: 3%; width: 25%; }
.c-frost { right: 18%; bottom: 3%; width: 21%; }
.pillar .city-scene { aspect-ratio: 16 / 10; border-radius: 12px; box-shadow: none; }
.feature h2 { font: clamp(32px, 3.6vw, 42px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--gold); text-shadow: var(--outline); margin: 0 0 14px; }
.feature p { margin: 0 0 14px; max-width: 58ch; }
.villains { list-style: none; counter-reset: ch; margin: 0 0 70px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.villains li { counter-increment: ch; display: flex; flex-direction: column; background: linear-gradient(var(--night-hi), #0B2F70); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); overflow: hidden; }
.villains img { width: 100%; aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle at 50% 60%, rgba(255,205,60,.22), transparent 70%); padding: 8px 8px 0; }
.villains div { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--ink); background: rgba(4,16,46,.35); flex: 1; }
.villains div::before { content: 'Chapter ' counter(ch); font: 14px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--gold); }
.villains b { color: #fff; font-weight: 800; line-height: 1.25; }
.villains span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.villains small { font-size: 13px; color: var(--sub); line-height: 1.3; }
/* The badges have different shapes (tall hexes, wide winged crests): all share one height so
   they read as the same size, and each label column is the same width. */
.divisions { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 12px 4px; }
.divisions li { width: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 15px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: #fff; text-shadow: var(--outline-sm); }
.divisions img { width: auto; height: 62px; max-width: 78px; object-fit: contain; filter: drop-shadow(0 3px 0 var(--ink)); }
.fair { padding: 26px 32px; margin-bottom: 20px; }
.fair h2, .staff h2, .matchups h2 { font: 32px/1.05 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin: 10px 0; font-weight: 600; }
.checks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink); background: var(--green) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%2304102E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------- gigas */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 46px 0 26px; }
.chip { font: 18px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: #fff; text-shadow: var(--outline-sm); padding: 10px 16px 11px; border-radius: 99px; border: 3px solid var(--ink); background: var(--blue); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.chip:hover { filter: brightness(1.1); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); text-shadow: none; }
.chip-thermal[aria-pressed="true"] { background: var(--thermal); }
.chip-cryo[aria-pressed="true"] { background: var(--cryo); }
.chip-toxic[aria-pressed="true"] { background: var(--toxic); }
.giga-grid { list-style: none; margin: 46px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.filters:not([hidden]) + .giga-grid, .filters-more:not([hidden]) + .giga-grid { margin-top: 0; }
.filters-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: -8px 0 26px; }
.rar-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-sm { font-size: 15px; padding: 7px 12px 8px; box-shadow: 0 3px 0 var(--ink); }
.rar-filters .chip { background: var(--blue); }
.rar-filters .chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.chip.rar-legendary[aria-pressed="true"] { background: #7FF5E8; }
.chip.rar-ultra[aria-pressed="true"] { background: linear-gradient(90deg, #FFD23F, #5FE3A1, #5FC8FF); }
.giga-search { flex: 1 1 220px; max-width: 340px; font: 600 16px var(--body); padding: 10px 16px; border-radius: 99px; border: 3px solid var(--ink); background: #fff; color: var(--ink); }
.giga-count { flex-basis: 100%; margin: 0; font-weight: 700; }
.giga { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 20px; }
.giga:target { outline: 4px solid var(--gold); outline-offset: 3px; }
.giga-art { display: grid; place-items: center; height: 190px; border-bottom: 3px solid var(--ink); }
.giga-art img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(4,16,46,.35)); }
.el-bg-thermal { background: radial-gradient(circle at 50% 62%, #FFD27A, #FF9A3C 55%, #E8601A); }
.el-bg-cryo { background: radial-gradient(circle at 50% 62%, #D6F7FF, #7FE3FF 55%, #2FA9E0); }
.el-bg-toxic { background: radial-gradient(circle at 50% 62%, #E6FFB0, #A6E85C 55%, #5BAE2E); }
.giga h3 { font: 26px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 14px 16px 2px; }
.giga .forms { margin: 2px 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; font-size: 14px; color: var(--muted); }
.giga .forms .form { font: 600 14px/1.3 var(--body); color: var(--muted); background: none; border: 0; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.giga .forms .form:hover, .giga .forms .form:focus-visible { color: var(--ink); background: rgba(26,104,207,.12); }
.giga .forms .form:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.giga .forms .form.on { font-weight: 800; color: var(--ink); }
.giga .forms .arrow { color: var(--muted); padding: 0 1px; }
.giga .form-stats { margin: 10px 16px 0; padding: 8px 10px 9px; border: 2px solid var(--paper-line); border-radius: 10px; background: #fff; }
.giga .stat-lv { margin: 0 0 5px; font: 12px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--blue-lo); }
.giga .stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 12px; margin: 0; }
.giga .stat-grid div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.giga .stat-grid dt { margin: 0; font: 12px/1.5 var(--display); letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.giga .stat-grid dd { margin: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.giga .pills { margin: 10px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.el, .tag { display: inline-block; font: 800 12px/1 var(--body); padding: 5px 9px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.el-thermal { background: var(--thermal); } .el-cryo { background: var(--cryo); } .el-toxic { background: var(--toxic); }
.rar-rare { background: #CFE3FF; } .rar-epic { background: #E9CCFF; } .rar-legendary { background: #C6F6EF; } .rar-ultra { background: linear-gradient(90deg, #FFD0E4, #FFF1B8, #C9F7DE, #CDEBFF); }
.giga .lore { margin: 10px 16px 0; font-size: 15px; line-height: 1.5; font-style: italic; }
.giga dl.moves { margin: 10px 16px 16px; font-size: 14px; line-height: 1.45; }
.giga .moves dt { font: 13px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--blue-lo); margin-top: 10px; }
.giga .moves dd { margin: 3px 0 0; }

/* ---------------------------------------------------------- how to play */
.steps { list-style: none; counter-reset: step; margin: 0 0 56px; padding: 0; display: grid; gap: 22px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 28px 22px 104px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--drop); }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 60px; height: 60px; display: grid; place-items: center; font: 36px/1 var(--display); color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.steps h2 { font: 30px/1.05 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 8px; }
.steps p { margin: 0 0 10px; max-width: 64ch; }
.starters { list-style: none; padding: 0; margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 18px; }
.starters li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; }
.starters img { width: 120px; height: 120px; object-fit: contain; }
.matchups { padding: 26px 30px 30px; }
.triangle { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.el-card { border: 3px solid var(--ink); border-radius: 16px; color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.triangle .el-card a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 18px; color: inherit; text-decoration: none; border-radius: 13px; }
.el-card:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.triangle .el-card a:hover { color: var(--ink); }
.el-card a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.el-card em { margin-top: 8px; font: 15px/1 var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .5px; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .el-card, .el-card:hover { transition: none; transform: none; } }
.el-card b { font: 28px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; }
.el-card span { font-weight: 800; }
.el-card small { font-weight: 600; }

/* ---------------------------------------------------------- community */
.board-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.board-cat { padding: 18px 22px; }
.board-cat h3 { font: 24px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.board-cat ul { list-style: none; padding: 0; margin: 0; }
.board-cat li { padding: 10px 0; border-top: 2px dashed var(--paper-line); display: flex; flex-direction: column; }
.board-cat li:first-child { border-top: 0; }
.board-cat span { font-size: 15px; color: var(--muted); line-height: 1.4; }
#forum { margin-bottom: 68px; }
.staff { padding: 26px 32px; margin-bottom: 70px; }
.name-mod, .name-dev, .name-support { font-weight: 800; padding: 1px 8px; border-radius: 8px; background: var(--deep); }
.name-mod { color: var(--modc); } .name-dev { color: var(--dev); } .name-support { color: var(--supp); }
/* the staff page's role key: one role a line, the coloured name in a fixed column (0.25.1) */
.role-key { list-style: none; margin: -4px 0 10px; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.role-key li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: baseline; font-size: 19px; line-height: 1.4; color: var(--body-on-night); }
.role-key li > span:first-child { justify-self: start; }
.role-note { color: var(--body-on-night); opacity: .75; margin: 0 0 28px; font-size: 16px; }
@media (max-width: 640px) { .role-key li { grid-template-columns: 1fr; gap: 4px; font-size: 17px; } }

/* ---------------------------------------------------------- reading pages: parents, support, legal */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin: 56px auto 80px; align-items: start; }
.prose { padding: 30px 38px 36px; }
.prose h2 { font: 800 24px/1.25 var(--body); margin: 30px 0 8px; }
.prose h2:first-child, .prose .updated + h2 { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.updated { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.prose-aside { display: grid; gap: 20px; justify-items: center; position: sticky; top: 20px; }
.prose-aside > img { width: 240px; filter: drop-shadow(0 8px 0 rgba(4,16,46,.5)); }
.aside-card { padding: 20px 22px; width: 100%; }
.aside-card h2 { font: 24px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.aside-card .checks li { font-size: 15px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-top: 2px dashed var(--paper-line); font-size: 15px; }
.plain li:first-child { border-top: 0; }

.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; margin: 56px auto 80px; align-items: start; }
.side-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; position: sticky; top: 20px; }
.side-nav a { display: block; font: 20px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: #fff; text-shadow: var(--outline-sm); text-decoration: none; padding: 13px 16px; border: 3px solid var(--ink); border-radius: 12px; background: linear-gradient(var(--blue-hi), var(--blue)); box-shadow: 0 4px 0 var(--ink); }
.side-nav a:hover { filter: brightness(1.1); }
.side-nav a[aria-current="page"] { background: linear-gradient(#FFE07A, var(--gold) 60%, var(--gold-lo)); color: var(--ink); text-shadow: none; }

.faq { margin-bottom: 34px; }
.q { margin: 0 0 14px; padding: 0; box-shadow: 0 5px 0 var(--ink); }
.q summary { cursor: pointer; list-style: none; font: 800 19px/1.3 var(--body); padding: 16px 52px 16px 22px; position: relative; }
.q summary::-webkit-details-marker { display: none; }
/* the open/close mark is drawn (two bars), so it sits dead centre whatever the font does */
.q summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 12px no-repeat, var(--gold); }
.q[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat, var(--gold); }
.q p { margin: 0; padding: 0 22px 18px; max-width: 66ch; }
.contact { padding: 26px 30px 30px; }
.contact h2 { font: 32px/1.05 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; }
.form label { display: block; font-weight: 800; margin: 16px 0 6px; }
.form label span { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 11px 13px; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: #C4122F; background: #FFF4F5; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-help { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.form .btn { margin-top: 22px; }
.form-status { margin: 16px 0 0; font-weight: 800; min-height: 1.6em; }
.form-status.ok { color: var(--green-lo); }
.form-status.bad { color: #C4122F; }

/* ---------------------------------------------------------- 404 */
.lost { text-align: center; padding: 70px 0 90px; }
.lost img { width: 220px; filter: drop-shadow(0 8px 0 rgba(4,16,46,.5)); }
.lost h1 { font: clamp(44px, 7vw, 72px)/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--outline); margin: 12px 0; }
.lost p { margin: 0 auto 30px; max-width: 46ch; }

/* ---------------------------------------------------------- footer */
.site-foot { background: linear-gradient(180deg, #10154A, var(--claw-night)); border-top: 4px solid var(--ink); padding: 40px 0 26px; margin-top: 30px; }
.home .site-foot, .lost + .site-foot { margin-top: 0; }
.foot-in { width: min(var(--wrap), 100% - 40px); margin-inline: auto; display: flex; gap: 40px; align-items: flex-start; }
.foot-brand img { width: 72px; display: block; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 28px; flex: 1; }
.foot-cols h2 { font: 18px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin: 6px 0 12px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin: 6px 0; }
.foot-cols a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-cols a:hover { color: var(--gold); text-decoration: underline; }
.foot-fine { width: min(var(--wrap), 100% - 40px); margin: 30px auto 0; padding-top: 18px; border-top: 2px solid rgba(169,220,255,.18); font-size: 14px; color: var(--sub); }
.foot-fine a { color: var(--sub); }
.foot-disclaim { margin-top: 8px; padding-top: 0; border-top: 0; font-size: 13px; }

/* ---------------------------------------------------------- smaller screens */
@media (max-width: 1000px) {
  .split, .prose-grid { grid-template-columns: 1fr; }
  .prose-aside { position: static; grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .prose-aside > img { width: 170px; }
  .roster-row { grid-template-columns: repeat(4, 1fr); }
  .villains { grid-template-columns: repeat(3, 1fr); }
  .board-cats { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pillar-row { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip > img { order: 0; }
  .legal { grid-template-columns: 1fr; }
  .side-nav ul { position: static; display: flex; flex-wrap: wrap; }
  .side-nav a { font-size: 17px; padding: 10px 13px; }
  .triangle { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { width: 150px; }
  .btn-login { display: none; }
  .tabs a { font-size: 17px; padding: 11px 16px; }
  .hero { min-height: 830px; background-position: 58% 100%; background-size: auto 58%; background-color: #1695FC; }
  .hero::before { inset: 0 0 58% 0; background: linear-gradient(#0B6FD6, #1695FC); }
  .hero-cta { flex-direction: column; gap: 26px; }
  .btn-play { font-size: 30px; padding: 14px 30px 16px; }
  .hg { bottom: 34px; }
  .g-left { width: 42vw; left: -1%; }
  .g-mid { display: none; }
  .g-right { width: 39vw; right: -1%; }
  .tabs ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 30px; }
  .live { gap: 6px 20px; }
  .live b { font-size: 26px; }
  .roster-row { grid-template-columns: repeat(2, 1fr); }
  .villains { grid-template-columns: repeat(2, 1fr); }
  .steps > li { padding: 86px 20px 20px; }
  .steps > li::before { left: 20px; top: 16px; }
  .prose { padding: 22px 20px 26px; }
  .prose-aside { grid-template-columns: 1fr; justify-items: center; }
  .form .two { grid-template-columns: 1fr; }
  .contact, .fair, .staff, .matchups { padding: 22px 20px; }
  .side-box { padding-left: 128px; }
  .side-pip { width: 118px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------- staff page */
.staff-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.staff-wait { color: var(--sub); }
.staff-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px 18px; background: linear-gradient(var(--night-hi), #0B2F70); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--drop); }
.staff-portrait { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--modc); background: radial-gradient(circle at 50% 40%, #2C8BEE, #0B2459); display: grid; place-items: center; margin-bottom: 10px; }
.role-dev .staff-portrait { box-shadow: 0 0 0 4px var(--dev); }
.role-support .staff-portrait { box-shadow: 0 0 0 4px var(--supp); }
.staff-portrait img { width: 100%; height: 100%; object-fit: cover; }
/* phones: two staff cards a row (0.25.1) */
@media (max-width: 640px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .staff-grid .staff-portrait { width: 96px; height: 96px; } }
.staff-initial { font: 64px/1 var(--display); color: #fff; text-shadow: var(--outline); }
.staff-name { font-weight: 800; font-size: 18px; color: var(--modc); word-break: break-word; }
.role-dev .staff-name { color: var(--dev); }
.role-support .staff-name { color: var(--supp); }
.staff-role { font: 15px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--sub); }
.staff-join { margin-top: 0; }
.prose h3 { font: 800 19px/1.3 var(--body); margin: 22px 0 6px; }
.apply { margin: 18px 0 6px; padding: 16px 18px; border: 3px dashed var(--paper-line); border-radius: 14px; }
.apply p { margin: 0 0 12px; }
.apply p:last-child { margin-bottom: 0; }
.apply-note { font-weight: 800; }
.apply-note.ok { color: var(--green-lo); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 14px 0 0; cursor: pointer; }
.form label.check input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.form [aria-invalid="true"][type="checkbox"] { outline: 3px solid #C4122F; }

/* News: the last few patch notes and a link to all of them; the Patch notes page */
.patch-all { margin: 4px 0 0; font-size: 15px; color: var(--body-on-night); }
.patch-all a { font-weight: 800; }
.patch-list { display: grid; gap: 18px; max-width: 820px; margin: 46px auto 28px; }
.patch-list .patch { scroll-margin-top: 20px; margin-top: 0; }
.patch-list .patch h2 { font: 400 30px/1.1 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 8px; }
.patch-list .patch:target { outline: 4px solid var(--gold); outline-offset: 3px; }
.patch-index { padding: 12px 20px; }
.patch-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.patch-index a { font-weight: 800; }

/* Parents page: intro with quick facts, four topic cards in two even rows, then the concern form beside "what happens next" */
.parents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 56px auto 80px; }
.parent-intro { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 30px 38px 32px; align-items: center; }
.pi-text h2 { font: 800 26px/1.25 var(--body); margin: 0 0 8px; }
.pi-text p { max-width: 64ch; }
.pi-text p:last-child { margin-bottom: 0; }
.pi-jump { font-weight: 700; }
.pi-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 18px 18px 12px; border: 2px dashed var(--paper-line); border-radius: 16px; background: rgba(44,139,238,.06); }
.pi-facts img { width: 110px; filter: drop-shadow(0 5px 0 rgba(4,16,46,.35)); }
.pi-facts h3 { font: 22px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.pi-facts .checks li { font-size: 15px; }
.parent-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.prose.pcard { padding: 26px 30px 28px; }
.prose.pcard h2 { margin-top: 0; }
.prose.pcard > :last-child { margin-bottom: 0; }
.parent-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.pc-side > p { margin-top: 0; }
.pc-side h3 { font: 800 19px/1.3 var(--body); margin: 22px 0 6px; }
.pc-steps { margin: 0; padding-left: 24px; }
.pc-steps li { margin: 6px 0; }
.parent-contact .form > label:first-child { margin-top: 0; }
/* the two optional names line up even when one label wraps */
.form .two > div { display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 1000px) {
  .parent-intro, .parent-contact { grid-template-columns: minmax(0, 1fr); }
  .parent-intro { gap: 22px; }
  .parent-contact { gap: 8px; }
}
@media (max-width: 820px) { .parent-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .parent-intro, .prose.pcard { padding: 24px 22px; } .pi-facts { grid-template-columns: 80px minmax(0, 1fr); } .pi-facts img { width: 80px; } }
.notice-emergency { padding: 10px 14px; border-radius: 10px; border: 2px solid var(--pink-lo); background: #FFE3F1; color: var(--ink); }
.bulletin-body .bb-link { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bulletin-body .bb-img { display: inline-block; max-width: 100%; max-height: 560px; height: auto; vertical-align: middle; border-radius: 10px; }
.bulletin-body .bb-s1 { font-size: 13px; } .bulletin-body .bb-s3 { font-size: 20px; } .bulletin-body .bb-s4 { font-size: 28px; }
/* colors picked for the dark forum still read on the light bulletin card */
.bulletin-body span[style*="color"] { text-shadow: 0 1px 0 #0B1F4A, 0 0 1px #0B1F4A, 0 0 2px rgba(11,31,74,.6); }

/* Phones (0.21.6): no page scrolls sideways. A long code line, link or word in a bulletin wraps
   instead of widening the whole News page, and the website tabs sit in two rows instead of a strip
   you had to swipe. */
.split, .split > * { min-width: 0; }
.bulletin, .bulletin-body, .news-feed, .patch { min-width: 0; overflow-wrap: anywhere; }
.bulletin-body .bb-code { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.bulletin-body .bb-list li { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .split, .prose-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .news-feed { padding: 4px 18px; }
  .patch { padding: 18px 18px; }
  .tabs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 5px; padding: 9px 2px 10px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tabs a { display: flex; align-items: center; justify-content: center; min-height: 40px; height: 100%; box-sizing: border-box; margin: 0; padding: 7px 4px; font-size: 14px; line-height: 1.05; white-space: normal; text-align: center; }
  .tabs a::before { inset: 0; border-bottom: 3px solid var(--ink); border-radius: 10px; transform: none; }
}

/* Site banner (0.23.4), set at /admin */
.site-banner { position: fixed; z-index: 900; left: 50%; top: 10px; transform: translateX(-50%); width: min(720px, calc(100vw - 20px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 12px; border: 2px solid #0A1630; background: #FFD23F; color: #0A1630; font: 800 15px/1.3 "Fira", system-ui, sans-serif; box-shadow: 0 6px 0 rgba(4, 16, 46, .45); }
.site-banner.tone-warn { background: #FF8A5B; }
.site-banner.tone-party { background: linear-gradient(90deg, #FFD23F, #7BE88B, #3FA9FF); }
.site-banner-text { flex: 1; color: inherit; text-decoration: none; }
a.site-banner-text { text-decoration: underline; text-underline-offset: 3px; }
.site-banner-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #0A1630; background: rgba(255, 255, 255, .6); color: #0A1630; font: 900 18px/1 system-ui; cursor: pointer; }

/* ---------------------------------------------------------- the Masterminds lineup (0.23.8) */
/* A purple stage under the claw's colours: the six launch commanders standing in a row. They are
   cosmetic and unnamed, so there are no captions; each lifts when pointed at. */
.masterminds { position: relative; margin-top: 44px; padding: 56px 0 0; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(138,85,224,.55), transparent 70%), linear-gradient(180deg, var(--claw-night), var(--claw-deep) 70%, var(--claw));
  border-block: 4px solid var(--ink); }
.masterminds::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 2; background: var(--claw-deep); border-top: 4px solid var(--ink); }
.mm-in { width: min(var(--wrap), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; align-items: end; }
.mm-copy { align-self: center; padding-bottom: 60px; }
.mm-copy .section-title { margin-bottom: 14px; }
.mm-copy p { margin: 0 0 14px; max-width: 46ch; color: #EAE0FF; }
.mm-copy .mm-count { font-weight: 800; color: #fff; }
.mm-copy .btn { margin-top: 10px; }
.mm-line { position: relative; z-index: 3; display: flex; justify-content: center; align-items: flex-end; margin: 0 0 22px; padding: 0; list-style: none; min-height: 420px; }
.mm-line li { flex: 1 1 0; min-width: 0; margin: 0 -2.2%; position: relative; transition: transform .18s cubic-bezier(.3,1.4,.6,1); transform-origin: 50% 100%; }
.mm-line li:nth-child(odd) { z-index: 2; }
.mm-line li:nth-child(even) { transform: translateY(-14px) scale(.93); }
.mm-line img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(23,10,59,.55)); }
.mm-line li:hover, .mm-line li:focus-within { transform: translateY(-14px) scale(1.04); z-index: 4; }
@media (max-width: 900px) {
  .mm-in { grid-template-columns: minmax(0, 1fr); }
  .mm-copy { padding-bottom: 0; text-align: center; }
  .mm-copy p { margin-inline: auto; }
  .mm-line { min-height: 0; }
}
@media (max-width: 560px) {
  /* six in a row get too small: three in front, three behind */
  .mm-line { flex-wrap: wrap; }
  .mm-line li { flex: 0 0 38%; margin: 0 -4% -16%; }
  .mm-line li:nth-child(n+4) { order: -1; transform: scale(.86); z-index: 1; margin-bottom: -40%; }
  .mm-line li:nth-child(-n+3) { z-index: 3; transform: none; }
}

/* the closing panel: two commanders leaning in from the sides on wide screens */
.final-cta { position: relative; }
.cta-peek { position: absolute; bottom: -6px; width: clamp(120px, 15vw, 190px); z-index: 2; pointer-events: none; filter: drop-shadow(0 7px 0 rgba(23,10,59,.5)); }
.cta-peek.l { left: -40px; transform: rotate(-4deg); }
.cta-peek.r { right: -40px; transform: rotate(4deg); }
@media (max-width: 1220px) { .cta-peek { display: none; } }

/* ---------------------------------------------------------- wordmark titles (0.23.8) */
/* Kept at the end so it wins over each title's own colour and ink text-shadow. */
/* Titles set like the wordmark: gold-to-ember letters on a purple extrusion with an ink edge. The
   drop-shadow stack works with clipped-text fills (text-shadow would paint over the gradient). */
body .section-title, body .banner h1, body .feature h2, body .lost h1 {
  color: var(--gold); text-shadow: none;
  background: linear-gradient(180deg, #FFE98A 0%, var(--gold) 38%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(0 4px 0 var(--claw)) drop-shadow(0 3px 0 var(--claw-deep)) drop-shadow(0 2px 0 var(--ink));
  padding-bottom: .06em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  body .section-title, body .banner h1, body .feature h2, body .lost h1 { -webkit-text-fill-color: currentColor; text-shadow: var(--outline); filter: none; }
}

/* ---------- one page per Giga (0.28.1) */
.giga h3 a { color: inherit; text-decoration: none; }
.giga h3 a:hover, .giga h3 a:focus-visible { text-decoration: underline; }
.giga-page { padding-bottom: 40px; }
.crumbs { margin: 22px 0 8px; font-weight: 700; color: var(--sub, #cfe3ff); }
.crumbs a { color: inherit; }
.gp-lore { font-size: 19px; max-width: 70ch; margin: 6px 0 10px; }
.gp-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0 24px; }
.gp-form { margin: 0; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; }
.gp-form figcaption { padding: 10px 14px 14px; }
.gp-form h3 { font: 24px/1 var(--display); text-transform: uppercase; margin: 4px 0 2px; }
.gp-form .stat-lv { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.gp-form .stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 12px; margin: 0; }
.gp-form .stat-grid div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.gp-form .stat-grid dt { margin: 0; font: 12px/1.5 var(--display); letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.gp-form .stat-grid dd { margin: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gp-facts .paper { padding: 14px 18px; }
.gp-facts h2 { font: 22px/1.1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.gp-facts p { margin: 0 0 6px; }
.gp-kin-h { font: 26px/1 var(--display); text-transform: uppercase; margin: 30px 0 10px; }
.gp-kin { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.gp-kin a { display: grid; justify-items: center; gap: 4px; width: 110px; color: inherit; text-decoration: none; font-weight: 800; }
.gp-kin a:hover span, .gp-kin a:focus-visible span { text-decoration: underline; }
.gp-kin img { width: 96px; height: 96px; object-fit: contain; }
.gp-pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 28px 0 20px; font-weight: 800; }
.gp-pager a { color: inherit; }
