/* Over The Fence site.
   Layout: the game's own UI as a website. Deep navy ground, slightly lighter
   navy panels with hairline borders, gold for the one thing to press. Key art
   and screenshots carry the colour; the chrome stays quiet. The sign-painter
   face is kept for the logo and page titles only. */
@font-face { font-family: "Luckiest Guy"; src: url("../fonts/luckiestguy.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-ext.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #0b1326;
  --bg-2: #0f1a33;
  --panel: #14213f;
  --panel-2: #1a2a4e;
  --line: #24355c;
  --line-2: #35497a;
  --ink: #edf1f9;
  --muted: #9aaac9;
  --gold: #ffc22e;
  --gold-deep: #d99300;
  --sky: #58b0f5;
  --hot: #ff8a4c;
  --lawn: #6fcf55;
  --lawn-deep: #6fcf55;
  --night: #0a1020;         /* dark text on gold or white */
  --red: #ff7b6e; --blue: #6fb8ff; --violet: #c39bff; --orange: #ffa45c; --green: #7fd868;
  /* Older names still used inline by the page scripts. */
  --paper: var(--ink); --navy: var(--bg); --sky-pale: var(--panel-2); --wood: #d39a5c; --wood-deep: #7a4a22;
  --display: "Luckiest Guy", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --edge: 0 10px 24px -12px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: #8ccaff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; }
h3, h4 { font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .015em; line-height: 1.05; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 34px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.num { font-variant-numeric: tabular-nums; }

/* ── Header ──────────────────────────────────────── */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 19, 38, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: .03em; white-space: nowrap; padding-top: 4px; }
.brand b { font-weight: 400; color: var(--gold); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a.cta { margin-left: 10px; color: var(--night); background: var(--gold); font-weight: 800; padding: 8px 16px; }
.nav a.cta:hover { background: #ffd05c; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 11px 12px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
}

/* ── Buttons, chips, toggles ─────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: 16px; line-height: 1; padding: 14px 22px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .04); cursor: pointer; transition: transform .08s ease, background .12s ease, border-color .12s ease; }
.btn:hover { color: var(--ink); background: rgba(255, 255, 255, .1); border-color: #4a62a0; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn.gold:hover { background: #ffd05c; border-color: #ffd05c; color: var(--night); }
.btn.green { background: var(--lawn); border-color: var(--lawn); color: var(--night); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn.blue { background: var(--sky); border-color: var(--sky); color: var(--night); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn.small { font-size: 14px; padding: 10px 15px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink); white-space: nowrap; text-transform: capitalize; }
.chip.defeat { color: var(--red); background: rgba(255, 123, 110, .13); }
.chip.survive { color: var(--blue); background: rgba(111, 184, 255, .13); }
.chip.protect { color: var(--green); background: rgba(127, 216, 104, .13); }
.chip.efficiency { color: var(--violet); background: rgba(195, 155, 255, .14); }
.chip.assault { color: var(--orange); background: rgba(255, 164, 92, .13); }
.chip.common { color: #c4cee2; background: rgba(196, 206, 226, .1); }
.chip.rare { color: var(--blue); background: rgba(111, 184, 255, .13); }
.chip.epic { color: var(--violet); background: rgba(195, 155, 255, .14); }
.chip.legendary { color: var(--gold); background: rgba(255, 194, 46, .13); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; background: var(--panel); }
.toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--muted); }
.toggle button:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.toggle button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

/* ── Panels and grids ────────────────────────────── */
.panel { background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
a.panel { transition: border-color .12s ease, background .12s ease; }
a.panel:hover { border-color: var(--line-2); background: var(--panel-2); color: inherit; }
.pad { padding: 20px 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }

/* ── Inner page header ───────────────────────────── */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/backdrop.webp") center 38% / cover; opacity: .34; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 19, 38, .86) 42%, rgba(11, 19, 38, .35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 19, 38, 0) 46%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 64px 46px; display: grid; gap: 12px; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); letter-spacing: .015em; line-height: 1; }
.page-hero .lede { color: #c5d0e6; max-width: 58ch; }

main { display: block; }
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section.sky { background: var(--bg-2); }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head h2, h2.display { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.8vw, 40px); letter-spacing: .015em; line-height: 1.05; }
.section-head .lede { font-size: 18px; }
.fence { display: none; }

/* ── Footer ──────────────────────────────────────── */
.site-foot { background: #070d1b; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-foot .wrap { padding-block: 48px 26px; display: grid; gap: 34px 28px; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.site-foot h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .studio { display: flex; gap: 14px; align-items: center; line-height: 1.4; }
.site-foot .studio img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; flex: none; }
.site-foot .studio b { color: var(--ink); display: block; font-size: 16px; }
.site-foot .reach { display: grid; gap: 8px; margin-top: 18px; }
.site-foot .reach a { display: inline-flex; align-items: center; gap: 10px; justify-self: start; overflow-wrap: anywhere; }
.site-foot .reach svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; font-size: 14px; }
.site-foot .legal span:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 800px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ── Home hero ───────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: url("../img/backdrop.webp") center 30% / cover; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 14, 30, .93) 0%, rgba(8, 14, 30, .72) 40%, rgba(8, 14, 30, .1) 74%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 4; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 19, 38, .85) 32%, rgba(11, 19, 38, 0) 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: end; padding-top: 44px; min-height: 620px; }
.hero .copy { position: relative; z-index: 6; display: grid; gap: 18px; align-self: center; padding-bottom: 110px; }
.hero .title { width: min(400px, 88%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.hero .tag { font-family: var(--body); font-weight: 800; font-size: clamp(30px, 3.9vw, 46px); line-height: 1.06; letter-spacing: -.02em; max-width: 16ch; }
.hero .tag em { font-style: normal; color: var(--gold); }
.hero .lede { color: #c9d3e8; max-width: 46ch; }
.store-note { display: inline-flex; align-items: center; gap: 9px; justify-self: start; font-size: 14px; font-weight: 600; color: #c9d3e8; }
.store-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lawn); box-shadow: 0 0 0 4px rgba(111, 207, 85, .2); }
.lineup { position: relative; height: 580px; }
.lineup button { position: absolute; bottom: 0; border: 0; background: none; padding: 0; cursor: pointer; transition: transform .2s ease; }
.lineup button img { height: 100%; width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.lineup button:hover, .lineup button:focus-visible { transform: translateY(-8px); }
.lineup .bubble { position: absolute; z-index: 6; }
.bubble { background: #fff; color: var(--night); font-weight: 800; font-size: 17px; padding: 9px 15px; border-radius: 14px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7); max-width: 260px; text-align: center; line-height: 1.25; }
.bubble small { display: block; font-weight: 600; font-style: italic; font-size: 13px; color: #56617a; }
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(8, 14, 30, .9) 0%, rgba(8, 14, 30, .66) 55%, rgba(8, 14, 30, .2) 100%); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding-top: 30px; }
  .hero .copy { padding-bottom: 8px; }
  .lineup { height: 340px; }
  .hero::after { height: 110px; }
}

/* Numbers under the hero. */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stat { display: grid; gap: 4px; padding: 24px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--gold); letter-spacing: .02em; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.35; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat { padding: 18px 18px; } .stat strong { font-size: 36px; } }

.pitch { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; letter-spacing: .01em; max-width: 18ch; }
.pitch-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.pitch-row p { font-size: 19px; color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .pitch-row { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.feature + .feature { margin-top: 30px; }
.feature.flip > :first-child { order: 2; }
.feature .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--panel); }
.feature .copy { display: grid; gap: 14px; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.feature .copy p { font-size: 18px; max-width: 46ch; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 18px; } .feature.flip > :first-child { order: 0; } }

/* Three yards, three times of day. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio figure { margin: 0; display: grid; gap: 10px; }
.trio img { border-radius: 12px; border: 1px solid var(--line-2); aspect-ratio: 1092 / 496; object-fit: cover; width: 100%; }
.trio figcaption { font-size: 15px; color: var(--muted); }
.trio figcaption b { color: var(--ink); display: block; font-size: 16px; }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* Neighbour of the day */
#spotlight .panel { background: linear-gradient(120deg, var(--panel-2), var(--panel)); border-color: var(--line-2); padding: 26px 30px !important; }
#spotlight h3.display { font-family: var(--display); font-weight: 400; }
.spot { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: end; }
.spot img { height: 300px; width: auto; margin: 0 auto -56px; position: relative; z-index: 1; }
.spot h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; }
.spot .move b { color: var(--gold); }
@media (max-width: 640px) { .spot { grid-template-columns: minmax(0, 1fr); } .spot img { height: 220px; margin: 0; justify-self: start; } #spotlight .panel { grid-template-columns: minmax(0, 1fr) !important; } }

/* Gallery / lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.gallery button { padding: 0; background: var(--panel); cursor: zoom-in; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1092 / 496; max-width: 100%; transition: border-color .12s ease, transform .12s ease; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:hover, .gallery button:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 9, 20, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; display: grid; gap: 10px; max-width: min(1200px, 100%); }
.lightbox img { border-radius: 12px; border: 1px solid var(--line-2); max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { text-align: center; font-weight: 600; color: var(--muted); }
.lightbox .close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }

/* News on the home page */
#home-news h3 { font-size: 20px !important; }
.news-list { display: grid; }
.news-list a { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-list a:last-child { border-bottom: 1px solid var(--line); }
.news-list time { font-weight: 600; color: var(--muted); padding-top: 3px; }
.news-list h3 { font-size: 21px; }
.news-list p { grid-column: 2; color: var(--muted); max-width: 62ch; }
@media (max-width: 640px) { .news-list a { grid-template-columns: minmax(0, 1fr); } .news-list p { grid-column: 1; } }

/* FAQ */
.faq-list { max-width: 780px; }
details.faq { border-top: 1px solid var(--line); max-width: 820px; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary:hover { color: var(--gold); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding-bottom: 18px; color: var(--muted); max-width: 64ch; }

/* ── Neighbour cards ─────────────────────────────── */
.n-card { position: relative; display: grid; grid-template-rows: 236px auto; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); cursor: pointer; padding: 0; overflow: hidden; color: inherit; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.n-card:hover, .n-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.n-card .art { position: relative; display: grid; place-items: end center; background: radial-gradient(120% 90% at 50% 100%, #2b4680 0%, #172646 62%, var(--panel) 100%); overflow: hidden; }
.n-card .art img { height: 222px; width: auto; transition: opacity .15s; }
.n-card .art img.taunt { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); opacity: 0; }
.n-card:hover .art img.idle, .n-card:focus-visible .art img.idle { opacity: 0; }
.n-card:hover .art img.taunt, .n-card:focus-visible .art img.taunt { opacity: 1; }
.n-card .info { padding: 14px 16px 16px; display: grid; gap: 3px; border-top: 1px solid var(--line); }
.n-card h3 { font-size: 20px; }
.n-card .move { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.n-card .act { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(8, 14, 30, .75); }

/* Drawer */
.drawer-back { position: fixed; inset: 0; z-index: 40; background: rgba(5, 9, 20, .7); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2); overflow-y: auto; padding: max(20px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) 24px; display: grid; gap: 16px; align-content: start; }
.drawer .close { justify-self: end; }
.drawer .portrait { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: end; }
.drawer .portrait img { height: 260px; width: auto; margin: 0 auto; }
.drawer h2 { font-family: var(--display); font-weight: 400; font-size: 38px; letter-spacing: .015em; line-height: 1.05; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 16px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; }
@media (max-width: 520px) { .drawer .portrait { grid-template-columns: minmax(0, 1fr); } }

/* ── Campaign map ────────────────────────────────── */
.campaign { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.map-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: #3f8f3a; box-shadow: var(--shadow); }
.map { display: block; width: 100%; min-width: 640px; height: auto; }
.map .node { cursor: pointer; }
.map .node:hover circle.base, .map .node:focus-visible circle.base { stroke: #fff; stroke-width: 4; }
.map .node.dim { opacity: .25; }
.map .node.sel circle.base { stroke: var(--gold); stroke-width: 6; }
.map text { font-family: var(--display); pointer-events: none; }
.detail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); border-color: var(--line-2); }
.detail .head { display: flex; gap: 14px; align-items: center; }
.badge { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; padding-top: 3px; color: var(--ink); background: #2a5fb0; }
.badge.boss { background: var(--gold); color: var(--night); }
.detail h3 { font-size: 24px; }
.detail .brief { font-style: italic; color: var(--muted); }
.detail .yard img { border-radius: 12px; border: 1px solid var(--line); }
.detail a.row { background: rgba(255, 255, 255, .06) !important; border-radius: 999px; }
.mission-list { display: grid; gap: 6px; }
.mission-list button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.mission-list button:hover { border-color: var(--line-2); background: var(--panel-2); }
.mission-list button[aria-current="true"] { border-color: var(--gold); background: var(--panel-2); }
.mission-list .badge { width: 36px; height: 36px; font-size: 15px; }
@media (max-width: 960px) { .campaign { grid-template-columns: minmax(0, 1fr); } .detail { position: static; } }

input[type="search"], input[type="number"], select { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; padding: 10px 13px; font: inherit; font-weight: 600; min-width: 0; }
input::placeholder { color: var(--muted); }
input[type="range"] { accent-color: var(--gold); width: 100%; }

/* ── Mini-game ───────────────────────────────────── */
.game-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.game-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #8fd0f5; aspect-ratio: 16 / 9; max-width: 100%; touch-action: none; }
.game-box canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.game-hud { position: absolute; inset: 10px 10px auto; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.hud-plate { background: rgba(10, 16, 32, .88); color: #fff; border-radius: 8px; padding: 4px 12px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.hud-plate b { color: var(--gold); }
.game-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 14, 30, .7); text-align: center; padding: 16px; }
.game-over .card { background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: 16px; padding: 24px 28px; display: grid; gap: 10px; justify-items: center; max-width: 420px; }
.game-over h3 { font-family: var(--display); font-weight: 400; font-size: 34px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.picker button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 4px 0 0; cursor: pointer; height: 82px; display: grid; place-items: end center; overflow: hidden; }
.picker button img { height: 76px; width: auto; }
.picker button:hover { border-color: var(--line-2); }
.picker button[aria-pressed="true"] { border-color: var(--gold); background: #33487a; box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 980px) { .game-shell { grid-template-columns: minmax(0, 1fr); } }

.how { display: grid; gap: 26px 30px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.how .panel { border: 0; background: none; border-radius: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.key { justify-self: start; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--night); background: var(--gold); padding: 7px 10px; border-radius: 6px; margin-bottom: 6px; }
.how h3 { font-size: 20px; }
.how p { color: var(--muted); font-size: 16px; }

/* Item tiles */
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.tile img { width: 96px; height: 96px; object-fit: contain; }
.tile h4 { font-size: 17px; }
.tile .price { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.tile.legendary { border-color: rgba(255, 194, 46, .55); background: linear-gradient(180deg, rgba(255, 194, 46, .1), var(--panel) 60%); }
.tile.epic { border-color: rgba(195, 155, 255, .5); } .tile.rare { border-color: rgba(111, 184, 255, .45); }
.coin { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-deep); vertical-align: -.06em; margin-right: 6px; }

/* Yards */
.yard-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: border-color .12s ease; }
.yard-card:hover { border-color: var(--line-2); }
.yard-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--panel-2); }
.yard-card .info { padding: 14px 16px 16px; display: grid; gap: 5px; align-content: start; }
.yard-card h3 { font-size: 18px; }
.yard-card .how { display: block; font-size: 15px; color: var(--muted); }
.yard-card .price { font-family: var(--body) !important; font-weight: 800; font-size: 16px !important; color: var(--ink) !important; }
.planner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.planner-scene { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(#8fd0f5 0 55%, #62b84a 55%); }
.planner-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.planner-scene .props { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6%; }
.planner-scene .props img { width: 21%; max-width: 140px; }
.opt { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; text-align: left; width: 100%; }
.opt img { width: 48px; height: 48px; object-fit: contain; }
.opt:hover { border-color: var(--line-2); }
.opt[aria-pressed="true"] { border-color: var(--gold); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.total { font-weight: 800; font-size: 26px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
td.r, th.r { text-align: right; }
tr:last-child td { border-bottom: 0; }

/* Taunts */
.board { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 12px; justify-items: center; padding: 18px; background: radial-gradient(120% 70% at 50% 60%, #2b4680 0%, var(--panel) 80%); }
.stage .speaker { position: relative; height: 330px; display: grid; place-items: end center; width: 100%; }
.stage .speaker img { height: 300px; width: auto; }
.stage .bubble { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; z-index: 2; }
.pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.pad-btn { display: grid; gap: 6px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; min-height: 100px; align-content: start; transition: transform .06s ease, border-color .12s ease, background .12s ease; }
.pad-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.pad-btn:active { transform: translateY(1px); }
.pad-btn.playing { border-color: var(--gold); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--gold); }
.pad-btn strong { font-size: 19px; font-weight: 800; line-height: 1.2; }
.pad-btn span { font-size: 14px; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .board { grid-template-columns: minmax(0, 1fr); } .stage { position: static; } }

/* Season */
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tier { position: relative; background: var(--panel); border-radius: 12px; padding: 16px 10px; border: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; text-align: center; }
.tier .n { font-family: var(--display); font-size: 28px; color: var(--muted); line-height: 1; }
.tier .xp { font-size: 14px; font-weight: 600; color: var(--muted); }
.tier .reward { font-weight: 700; }
.tier.premium { border-color: rgba(255, 194, 46, .5); background: linear-gradient(180deg, rgba(255, 194, 46, .1), var(--panel) 70%); }
.tier .lane { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier.premium .lane { color: var(--gold); }
.tier.reached { border-color: var(--lawn); background: linear-gradient(180deg, rgba(111, 207, 85, .14), var(--panel) 70%); }
.tier.reached .n { color: var(--lawn); }
.tier.locked { opacity: .5; }
.bar { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; border-radius: 999px; }
#xp-out { color: var(--gold) !important; }
@media (max-width: 760px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* News page */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.post { padding: 0 0 30px; display: grid; gap: 12px; border: 0; background: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.post time, .post .eyebrow { font-weight: 600; color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: none; }
.post h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.post p, .post li { color: #cfd8ea; max-width: 64ch; }
.post ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.post img { border-radius: 12px; border: 1px solid var(--line-2); }
.event { padding: 16px 18px; display: grid; gap: 4px; }
.event .when { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.event h4 { font-size: 18px; }
.event p { font-size: 15px; color: var(--muted); }
.side { display: grid; gap: 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .news-layout { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

/* Policy pages: plain reading. */
.policy { max-width: 760px; padding: 0; border: 0; background: none; display: grid; gap: 14px; color: #cfd8ea; }
.policy h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 22px; color: var(--ink); }
.policy ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.policy b, .policy strong { color: var(--ink); }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 14px 18px; display: grid; gap: 2px; }
.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bands > div { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.bands b { font-size: 17px; }
.bands span { font-size: 15px; color: var(--muted); }
@media (max-width: 700px) { .bands { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.contact-ways > a { display: grid; gap: 8px; padding: 24px; text-decoration: none; color: var(--ink); align-content: start; }
.contact-ways svg { width: 28px; height: 28px; fill: var(--gold); }
.contact-ways b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-ways strong { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; letter-spacing: -.01em; }
.contact-ways span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .contact-ways { grid-template-columns: minmax(0, 1fr); } }

.reveal { animation: none; }

html { background: #070d1b; }
