/* ==========================================================================
   Harenix World's Fair — design system
   Night fairground palette: emerald ink, brass gold, ivory. Serif italic + grotesque.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0b1210;
  --ink-2: #0e1714;
  --panel: #121d19;
  --panel-2: #17241f;
  --panel-3: #1e2e28;
  --line: #22342d;
  --line-2: #33483f;
  --text: #f2ead8;
  --text-2: #d3cab5;
  --muted: #a09a86;
  --dim: #716f62;
  --gold: #e0b25b;
  --gold-2: #f3d38a;
  --gold-deep: #a87a30;
  --gold-ink: #1b1307;
  --gold-glow: rgba(224, 178, 91, 0.35);
  --emerald: #4db38a;
  --emerald-deep: #1f4436;
  --vermilion: #d2553a;
  --up: #5bc98c;
  --down: #e06a55;

  /* aliases used by app pages */
  --lime: var(--gold);
  --lime-2: var(--gold-2);
  --lime-ink: var(--gold-ink);
  --lime-glow: var(--gold-glow);
  --carrot: var(--vermilion);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: var(--serif);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0; }


.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); }
.fair-title { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -0.035em; line-height: 1; color: var(--text); }
.fair-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--gold); font-variation-settings: "SOFT" 100, "WONK" 1; }
.fair-title .amp { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--text); }
.fair-sub { font-family: var(--serif); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--text-2); font-variation-settings: "opsz" 24; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lime, .gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.soon { color: var(--gold); font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.eyebrow--plain::before { display: none; }
.idx { color: var(--gold); }
.h-display { font-family: var(--serif); font-weight: 400; font-style: italic; line-height: 0.98; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.h-section { font-family: var(--sans); font-weight: 500; font-size: clamp(38px, 5vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.h-section em, .h-sub em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.02em; }
.h-sub { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.lede { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 52ch; }
.prose { color: var(--text-2); max-width: 64ch; font-family: var(--serif); font-size: 17px; }
.prose p + p { margin-top: 1em; }
.rule-gold { display: block; width: 96px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--vermilion)); }
.stars { display: inline-flex; gap: 10px; color: var(--gold); }
.stars svg { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn-fair {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 30px; background: var(--emerald-deep); color: var(--text);
  border: 1px solid var(--gold); box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px rgba(224, 178, 91, 0.45);
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "opsz" 18;
  transition: background 0.35s var(--ease-out), color 0.35s, box-shadow 0.35s;
}
.btn-fair::before, .btn-fair::after { content: ""; width: 9px; height: 9px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: background 0.35s, transform 0.5s var(--ease-out); }
.btn-fair:hover { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--gold), 0 12px 40px -10px var(--gold-glow); }
.btn-fair:hover::before, .btn-fair:hover::after { background: var(--gold-ink); transform: rotate(90deg); }
.btn-fair--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

.btn {
  --bg: var(--panel-2); --fg: var(--text); --bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 2px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--text)); transform: translateY(101%); transition: transform 0.45s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--hover-fg, var(--ink)); border-color: var(--fill, var(--text)); }
.btn--lime, .btn--gold { --bg: var(--gold); --fg: var(--gold-ink); --bd: var(--gold); --fill: var(--gold-2); --hover-fg: var(--gold-ink); }
.btn--lime:hover, .btn--gold:hover { box-shadow: 0 10px 34px -10px var(--gold-glow); }
.btn--ghost { --bg: transparent; --bd: var(--line-2); --fill: var(--gold); --hover-fg: var(--gold-ink); }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > span { opacity: 0.35; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 2px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag--lime, .tag--gold { background: rgba(224, 178, 91, 0.1); color: var(--gold); border-color: rgba(224, 178, 91, 0.4); }
.tag--carrot { background: rgba(210, 85, 58, 0.12); color: #ef8a70; border-color: rgba(210, 85, 58, 0.45); }
.tag--up { background: rgba(91, 201, 140, 0.1); color: var(--up); border-color: rgba(91, 201, 140, 0.35); }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Announcement ribbon ---------- */
.announce { position: relative; z-index: 60; background: linear-gradient(90deg, #13241e, #1b3129 50%, #13241e); border-bottom: 1px solid rgba(224, 178, 91, 0.25); font-size: 13px; }
.announce__inner { max-width: var(--max); margin: 0 auto; padding: 7px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: nowrap; text-align: center; }
.announce__text { color: var(--text-2); font-family: var(--serif); font-style: italic; }
.announce__short { display: none; color: var(--text-2); font-family: var(--serif); font-style: italic; }
.announce__link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.announce__link svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.announce__link:hover svg { transform: translate(2px, -2px); }
.tag--carrot.announce__tag { color: var(--gold); border-color: rgba(224, 178, 91, 0.5); background: rgba(224, 178, 91, 0.08); }
@media (max-width: 720px) { .announce__text { display: none; } .announce__short { display: inline; } }

/* ---------- Header (centered medallion like a fair gate) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 18, 16, 0.95); border-bottom-color: rgba(224, 178, 91, 0.18); }
.site-header__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-side { display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); }
.nav-side--left { justify-content: flex-end; padding-right: clamp(24px, 4vw, 64px); }
.nav-side--right { justify-content: flex-start; padding-left: clamp(24px, 4vw, 64px); }
.nav-side a { position: relative; font-size: 17px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; padding: 6px 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.nav-side a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.nav-side a:hover::after, .nav-side a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-side a.is-active { color: var(--gold); }
.brand-medallion { display: block; width: 54px; height: 54px; border-radius: 50%; transition: transform 0.8s var(--ease-out), filter 0.4s; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6)); }
.brand-medallion:hover { transform: rotate(-20deg) scale(1.06); filter: drop-shadow(0 0 18px var(--gold-glow)); }
.brand-medallion svg { width: 100%; height: 100%; }
.header-actions { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; }
.header-x { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(224, 178, 91, 0.45); background: rgba(11, 18, 16, 0.55); color: var(--text); font-size: 14px; font-weight: 600; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.header-x svg { width: 15px; height: 15px; }
.header-x:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.wallet { position: relative; }
.header-wallet { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px rgba(224, 178, 91, 0.45); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.25s, color 0.25s, box-shadow 0.35s var(--ease-out); }
.header-wallet:hover { background: var(--gold-2); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--gold), 0 8px 26px -10px var(--gold-glow); }
.header-wallet__icon { width: 17px; height: 17px; flex: none; }
.header-wallet__dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); flex: none; }
.header-wallet__label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.header-wallet.is-connected { background: rgba(11, 18, 16, 0.72); color: var(--text); box-shadow: none; }
.header-wallet.is-connected:hover { background: var(--panel-2); color: var(--gold); }
.header-wallet.is-connected .header-wallet__icon { display: none; }
.header-wallet.is-connected .header-wallet__dot { display: inline-block; }
.header-wallet.is-pending .header-wallet__dot { display: inline-block; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.header-wallet.is-loading { pointer-events: none; opacity: 0.7; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 70; min-width: 240px; padding: 6px; display: grid; background: var(--panel); border: 1px solid rgba(224, 178, 91, 0.4); box-shadow: 0 24px 60px -24px #000; animation: toast-in 0.25s var(--ease-out); }
.wallet-menu a, .wallet-menu button { display: block; width: 100%; padding: 10px 12px; text-align: left; font-size: 14.5px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.wallet-menu a:hover, .wallet-menu button:hover { background: var(--panel-2); color: var(--gold); }
.wallet-menu__who { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.wallet-menu__who b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--gold); }
.wallet-menu__who span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 1300px) { .header-x span { display: none; } .header-x { width: 40px; padding: 0; justify-content: center; } }
.brand-mobile { display: none; align-items: center; gap: 10px; }
.brand-mobile .brand-medallion { width: 42px; height: 42px; }
.brand-mobile span { font-family: var(--serif); font-size: 20px; font-style: italic; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(224, 178, 91, 0.45); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: rgba(11, 18, 16, 0.97); padding: calc(var(--header-h) + 50px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 9vw, 54px); padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a:hover { color: var(--gold); }
@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .site-header__inner { display: flex; justify-content: space-between; }
  .nav-side, .site-header__inner > .brand-medallion { display: none; }
  .brand-mobile { display: inline-flex; }
  .header-actions { position: static; transform: none; margin-left: auto; margin-right: 12px; gap: 10px; }
  .burger { display: inline-block; }
}
@media (max-width: 480px) { .header-x { width: 40px; } .header-wallet { padding: 0 12px; gap: 7px; font-size: 13.5px; } .header-wallet__label { max-width: 124px; } .brand-mobile > span:last-child { display: none; } .header-actions { gap: 8px; margin-right: 8px; } }


/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { color: var(--text-2); font-family: var(--serif); font-size: 19px; max-width: 48ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }
.head-center { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.head-center .fair-sub { margin: 22px auto 0; max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; transform-origin: 50% 60%; will-change: transform; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 420px at 50% 36%, rgba(8, 14, 12, 0.62), transparent 70%),
  radial-gradient(760px 260px at 50% 66%, rgba(8, 14, 12, 0.6), transparent 72%),
  linear-gradient(180deg, rgba(8, 14, 12, 0.75) 0%, rgba(8, 14, 12, 0.1) 26%, rgba(8, 14, 12, 0.1) 70%, rgba(11, 18, 16, 0.95) 100%); }
.hero__gate { position: absolute; inset: 0; z-index: -1; background: var(--ink); opacity: 0; pointer-events: none; }
.hero__inner { will-change: transform, opacity; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 24px 120px; }
.hero__emblems { display: flex; gap: clamp(14px, 2.4vw, 34px); color: var(--text); margin-bottom: clamp(18px, 2.4vw, 28px); }
.hero__emblems .emblem { width: clamp(22px, 2.4vw, 34px); height: clamp(22px, 2.4vw, 34px); transition: color 0.3s, transform 0.4s var(--ease-out); }
.hero__emblems a:hover .emblem { color: var(--gold); transform: translateY(-4px); }
.wordmark { font-family: var(--serif); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 8.2vw, 128px); line-height: 0.95; letter-spacing: 0.01em; color: var(--text); text-shadow: 0 4px 40px rgba(0, 0, 0, 0.65); font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.28em; }
.wordmark__word { display: inline-flex; align-items: center; }
.wordmark__char { display: inline-block; }
.wordmark .ferris { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.02em; color: var(--gold); }
.ferris__svg { width: 100%; height: 100%; animation: wheel 40s linear infinite; will-change: transform; }
@keyframes wheel { to { transform: rotate(360deg); } }
.hero__sub { margin-top: clamp(14px, 2vw, 24px); max-width: 38ch; font-family: var(--serif); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.35; color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); font-variation-settings: "opsz" 28; }
.hero__cta { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__due { font-family: var(--serif); font-size: 17px; color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--serif); font-variant: small-caps; font-size: 19px; letter-spacing: 0.08em; color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: drip 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__prize { position: absolute; right: var(--gutter); bottom: 36px; padding: 16px 22px; border: 1px solid rgba(242, 234, 216, 0.4); background: rgba(11, 18, 16, 0.7); font-family: var(--serif); font-size: 19px; line-height: 1.35; text-align: right; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.hero__prize em { font-style: italic; color: var(--gold-2); }
@media (max-width: 860px) {
  .hero__prize { position: static; margin: 26px auto 0; text-align: center; }
  .hero__inner { padding-bottom: 110px; }
}

/* ---------- Deco frame (replaces the original damask border) ---------- */
.deco-frame { position: relative; padding: clamp(14px, 2.4vw, 30px); background-image: url("/assets/img/deco-tile.svg"); background-size: 48px 48px; }
.deco-frame::before { content: ""; position: absolute; inset: clamp(14px, 2.4vw, 30px); border: 1px solid rgba(224, 178, 91, 0.35); pointer-events: none; z-index: 2; }
.deco-frame__inner { position: relative; background: var(--ink); padding: 8px; }
.deco-frame__corner { position: absolute; width: 38px; height: 38px; color: var(--gold); z-index: 3; }
.deco-frame__corner--tl { left: 2px; top: 2px; } .deco-frame__corner--tr { right: 2px; top: 2px; transform: scaleX(-1); }
.deco-frame__corner--bl { left: 2px; bottom: 2px; transform: scaleY(-1); } .deco-frame__corner--br { right: 2px; bottom: 2px; transform: scale(-1); }
.fair-cell { position: relative; overflow: hidden; background: linear-gradient(180deg, #16231e, #111b17); border: 1px solid #1f2f28; }
.fair-cell__bg { position: absolute; inset: auto 0 0 0; height: 38%; opacity: 0.16; pointer-events: none; }
.fair-cell > :not(.fair-cell__bg) { position: relative; z-index: 1; }
.fair-cell__bg svg { width: 100%; height: 100%; }
.fair-cell .pv-body, .fair-cell .pv-back, .fair-cell .pv-base, .fair-cell .pv-roof, .fair-cell .pv-dome { fill: #2c463b; }
.fair-cell .pv-line { stroke: #2c463b; }
.fair-cell .pv-light { fill: #F3C77A; }

/* ---------- Welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.welcome__art { position: relative; }
.welcome__art .scene { width: 100%; height: auto; }
.welcome__title { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -0.035em; line-height: 1.02; }
.welcome__title em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.welcome__lead { display: grid; grid-template-columns: 96px 1fr; gap: 22px; margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.welcome__lead .rule-gold { margin-top: 16px; }
.welcome__lead p { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; color: var(--text); }
.welcome__body { margin: 22px 0 0 118px; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 50ch; }
.welcome__live { margin: 26px 0 0 118px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.welcome__live b { font-family: var(--mono); color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__art { max-width: 560px; }
  .welcome__lead { grid-template-columns: 56px 1fr; }
  .welcome__body, .welcome__live { margin-left: 0; }
}

/* ---------- Launch film ---------- */
.film { max-width: 980px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #07100d; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: clamp(14px, 2.4vw, 26px); transition: opacity 0.4s; }
.player__play { width: clamp(56px, 6vw, 72px); height: clamp(56px, 6vw, 72px); border-radius: 50%; background: rgba(31, 68, 54, 0.85); border: 1px solid var(--gold); color: var(--text); display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(11, 18, 16, 0.6); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.player__play svg { width: 30%; height: 30%; margin-left: 6%; }
.player:hover .player__play { background: var(--gold); color: var(--gold-ink); transform: scale(1.08); }
.player.is-playing .player__overlay { opacity: 0; pointer-events: none; }

/* ---------- Awards ---------- */
.awards-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: repeat(3, auto); gap: 8px; }
.award-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(24px, 3vw, 40px) 20px; min-height: 190px; }
.award-cell--grand { grid-row: span 3; min-height: 560px; }
.award-cell--trophy { grid-row: span 3; padding: 30px 10px 0; justify-content: flex-end; background: radial-gradient(ellipse at 50% 70%, #2a2412, #111b17 65%); }
.award-cell--trophy .trophy { width: min(320px, 90%); height: auto; }
.award-cell .ornament { width: 72px; height: 72px; color: var(--gold); margin-bottom: 18px; }
.award-cell .ornament--vermilion { color: var(--vermilion); }
.award__amt { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: oldstyle-nums; color: var(--text); }
.award__title { margin-top: 12px; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); color: var(--text-2); }
.award__note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.award__support { margin-top: 26px; font-size: 13px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.award__support b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); font-size: 17px; }
@media (max-width: 900px) {
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .award-cell--grand { grid-row: auto; min-height: 320px; }
  .award-cell--trophy { grid-row: auto; grid-column: span 2; min-height: 300px; order: -1; }
}
@media (max-width: 520px) { .awards-grid { grid-template-columns: 1fr; } .award-cell--trophy { grid-column: auto; } }

/* ---------- Tracks: fairground map ---------- */
.tracks { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.fairmap-wrap { position: relative; margin-top: clamp(0px, 5vw, 80px); }
.fairmap { width: 100%; height: auto; overflow: visible; }
.fairmap .tree circle { transition: fill 0.4s; }
.fairmap .decor { pointer-events: none; }
.map-glow { position: absolute; left: 0; top: 0; width: 22%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(243, 199, 122, 0.32), rgba(243, 199, 122, 0) 68%); transition: transform 0.6s var(--ease-out); animation: glow-pulse 2.8s ease-in-out infinite; will-change: transform, opacity; }
@keyframes glow-pulse { 50% { opacity: 0.55; } }
.pv { cursor: pointer; outline: none; }
.pv-glow { display: none; }
.pv-shadow { fill: #050b09; opacity: 0.55; }
.pv-base { fill: #1a2823; } .pv-body { fill: #1f2e28; } .pv-back { fill: #16221d; } .pv-roof { fill: #283a33; } .pv-dome { fill: #25362f; }
.pv-glass { fill-opacity: 0.85; }
.pv-line { stroke: #3b5047; stroke-width: 1.2; fill: none; }
.pv-light { fill: #2b3c35; transition: fill 0.4s; }
.pv-flag { fill: #3a2b26; } .pv-smoke { fill: #2c3a35; opacity: 0.6; } .pv-scope { stroke: #3b5047; stroke-width: 6; stroke-linecap: round; }
.pv-bolt { fill: none; stroke: #F3C77A; stroke-width: 2.4; opacity: 0; }
.pv-wheel { transform-box: fill-box; transform-origin: center; }
.pv-lift * { transition: fill 0.45s, stroke 0.45s; }
.pv-tag rect { fill: rgba(12, 20, 17, 0.9); stroke: #56685f; }
.pv-tag text { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: var(--text-2); }
.pv-tag-icon { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv:hover .pv-tag rect, .pv:focus-visible .pv-tag rect { stroke: var(--gold); }
.pv.is-active .pv-glow { opacity: 1; }
.pv.is-active .pv-base { fill: #8a6a33; } .pv.is-active .pv-body { fill: #d8b46c; } .pv.is-active .pv-back { fill: #9f7b3c; }
.pv.is-active .pv-roof { fill: #f1d18e; } .pv.is-active .pv-dome { fill: #e9c27a; }
.pv.is-active .pv-line { stroke: #6b4c1e; } .pv.is-active .pv-light { fill: #fff3cf; }
.pv.is-active .pv-flag { fill: var(--vermilion); } .pv.is-active .pv-smoke { fill: #cdbb95; } .pv.is-active .pv-scope { stroke: #6b4c1e; }
.pv.is-active .pv-bolt { opacity: 1; }

.pv.is-active .pv-tag rect { fill: var(--gold); stroke: var(--gold); }
.pv.is-active .pv-tag text { fill: var(--gold-ink); }
.pv.is-active .pv-tag-icon { stroke: var(--gold-ink); }
@keyframes flicker { 50% { opacity: 0.25; } }
.map-hint { position: absolute; left: 0; bottom: -8px; font-size: 12.5px; color: var(--dim); font-family: var(--serif); font-style: italic; }
.track-card { position: relative; padding: clamp(26px, 3vw, 40px); text-align: center; background: linear-gradient(180deg, #1a2a24, #14201c); border: 1px solid var(--line-2); box-shadow: 8px 8px 0 -1px rgba(224, 178, 91, 0.12); }
.track-card__num { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.track-card h3 { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 2.8vw, 42px); color: var(--text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.track-card__cat { margin-top: 6px; font-size: 14px; color: var(--gold); letter-spacing: 0.04em; }
.track-card__pool { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(52px, 5vw, 76px); line-height: 1; font-variant-numeric: oldstyle-nums; }
.track-card__label { margin-top: 6px; font-size: 15px; color: var(--gold-2); }
.track-card__split { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--text-2); }
.track-card__stars { margin: 22px 0 18px; display: flex; justify-content: space-between; }
.track-card__blurb { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--text-2); text-align: left; }
.track-card__ideas { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.track-card__ideas li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14.5px; color: var(--muted); }
.track-card__ideas li::before { content: "✦"; color: var(--gold); font-size: 11px; line-height: 1.9; }
.track-card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.track-card__foot b { font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.track-card__foot .emblem { width: 22px; height: 22px; color: var(--gold); }
.track-tabs { display: none; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.track-tabs::-webkit-scrollbar { display: none; }
.track-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.track-tabs button .emblem { width: 16px; height: 16px; }
.track-tabs button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 600; }
@media (max-width: 980px) {
  .tracks { grid-template-columns: 1fr; }
  .track-card { position: relative; top: 0; }
  .track-tabs { display: flex; }
  .map-hint { display: none; }
}

/* ---------- Accelerator ---------- */
.acc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.acc-head h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -0.04em; line-height: 0.95; }
.acc-head h2 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.acc-head p { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; color: var(--text); }
.acc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acc-cell { padding: clamp(24px, 3vw, 38px); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.acc-cell .ornament { width: 68px; height: 68px; color: var(--gold); margin-bottom: auto; }
.acc-cell h3 { margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3vw, 46px); font-variant-numeric: oldstyle-nums; }
.acc-cell p { margin-top: 12px; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--text-2); max-width: 26ch; }
.acc-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 360px; padding: 0; }
.acc-wide__text { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.acc-wide__text h3 { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3vw, 46px); }
.acc-wide__text p { margin-top: 14px; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--text-2); max-width: 34ch; }
.acc-wide__media { position: relative; min-height: 280px; }
.acc-wide__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-wide__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #121d19 0%, transparent 35%); pointer-events: none; }
@media (max-width: 900px) {
  .acc-head { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-cell { min-height: 0; }
  .acc-wide { grid-template-columns: 1fr; }
  .acc-wide__media::before { background: linear-gradient(180deg, #121d19 0%, transparent 30%); }
}

/* ---------- Judges ---------- */
.judges-head { display: flex; align-items: center; gap: 28px; margin-bottom: clamp(30px, 4vw, 48px); }
.judges-head .rule-gold { width: 120px; }
.judges-group h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.judges-group > p { margin-top: 10px; max-width: 70ch; font-family: var(--serif); font-size: 17px; color: var(--text-2); }
.people { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.person { text-align: center; }
.person .cameo { width: min(150px, 100%); height: auto; margin: 0 auto; transition: transform 0.6s var(--ease-out), filter 0.4s; }
.person:hover .cameo { transform: translateY(-6px) rotate(-2deg); }
.person h4 { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.person p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.slots { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.slot { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed var(--line-2); }
.slot .emblem { width: 34px; height: 34px; color: var(--gold); flex: none; }
.slot b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }
.slot span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } .slots { grid-template-columns: 1fr; } }

/* ---------- Workshops ---------- */
.workshops { max-width: 1120px; margin: 0 auto; }
.ws-table { border: 1px solid var(--line-2); box-shadow: 6px 6px 0 -1px rgba(224, 178, 91, 0.1); }
.ws-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.ws-row + .ws-row { border-top: 1px solid var(--line-2); }
.ws-cell { padding: 18px 20px; display: flex; align-items: center; gap: 16px; background: linear-gradient(180deg, #17251f, #131f1a); }
.ws-cell + .ws-cell { border-left: 1px solid var(--line-2); justify-content: center; position: relative; }
.ws-icon { width: 58px; height: 58px; flex: none; display: grid; place-items: center; background: #1f3a30; border: 1px solid rgba(224, 178, 91, 0.35); color: var(--gold); }
.ws-icon svg { width: 30px; height: 30px; }
.ws-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.ws-host { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.ws-date { font-family: var(--serif); font-size: 19px; text-align: center; }
.ws-links { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.ws-links a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.ws-links a:hover { border-color: var(--gold); color: var(--gold); }
.ws-links svg { width: 16px; height: 16px; }
.ws-row.is-next .ws-date { color: var(--gold); }
.ws-row.is-past { opacity: 0.5; }
@media (max-width: 760px) {
  .ws-row { grid-template-columns: 1fr; }
  .ws-cell + .ws-cell { border-left: 0; border-top: 1px dashed var(--line); justify-content: space-between; padding-block: 12px; }
  .ws-date { text-align: left; font-size: 16px; }
  .ws-links { position: static; transform: none; }
}

/* ---------- Toolchain grid + rules ---------- */
.toolchain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; }
.toolchain span { display: grid; place-items: center; height: 62px; padding: 0 10px; text-align: center; border: 1px solid var(--line-2); background: #121d19; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; color: var(--text-2); transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.toolchain span:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
@media (max-width: 860px) { .toolchain { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .toolchain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Finale + footer ---------- */
.finale-wrap { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.finale { width: 100%; height: clamp(180px, 26vw, 340px); }
.finale__skyline .pv-body, .finale__skyline .pv-back, .finale__skyline .pv-base, .finale__skyline .pv-roof, .finale__skyline .pv-dome { fill: #0f1c17; }
.finale__skyline .pv-line { stroke: #1c2e27; stroke-width: 1.2; fill: none; }
.finale__skyline .pv-light { fill: #F3C77A; opacity: 0.8; }
.finale__skyline .pv-flag { fill: #5b2a1f; } .finale__skyline .pv-smoke { fill: #16241f; } .finale__skyline .pv-scope { stroke: #1c2e27; stroke-width: 6; }
.finale__skyline .pv-bolt { stroke: #F3C77A; fill: none; stroke-width: 2; }
.finale-wrap { pointer-events: none; }
.firework { position: absolute; width: clamp(48px, 6vw, 84px); aspect-ratio: 1; opacity: 0; transform: scale(0.2); animation: firework 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite; will-change: transform, opacity; }
.firework svg { width: 100%; height: 100%; }
@keyframes firework { 0% { opacity: 0; transform: scale(0.2); } 8% { opacity: 1; } 40% { opacity: 1; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(1.15); } }
.site-footer { border-top: 1px solid rgba(224, 178, 91, 0.2); background: #0c1512; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px; }
.site-footer__brand { display: grid; gap: 18px; justify-items: start; }
.site-footer__brand .brand-mobile { display: inline-flex; }
.site-footer__brand p { color: var(--muted); max-width: 38ch; font-family: var(--serif); font-size: 16px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.site-footer__col a { color: var(--text-2); width: fit-content; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.net-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.net-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.net-pill.is-up .net-pill__dot { background: var(--up); box-shadow: 0 0 10px var(--up); }
.net-pill.is-down .net-pill__dot { background: var(--down); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__brand { grid-column: auto; } }

/* ---------- Toasts / modal ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1002; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 13px 16px; background: var(--panel-2); border: 1px solid rgba(224, 178, 91, 0.35); box-shadow: 0 20px 50px -20px #000; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.4s var(--ease-out); }
.toast::before { content: "✦"; color: var(--gold); line-height: 1.5; }
.toast--error::before { content: "✕"; color: var(--down); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 7, 0.86); animation: fade 0.25s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--panel); border: 1px solid rgba(224, 178, 91, 0.4); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px rgba(224, 178, 91, 0.25); padding: 24px; animation: toast-in 0.35s var(--ease-out); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.modal__head h2 { font-family: var(--serif); font-style: italic; font-size: 26px; }
.modal__close { width: 36px; height: 36px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.wallets { display: grid; gap: 8px; }
.wallet-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--ink-2); text-align: left; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.wallet-btn:hover { border-color: var(--gold); background: var(--panel-2); }
.wallet-btn img { width: 32px; height: 32px; border-radius: 6px; }
.wallet-btn small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18; background-image: url("/assets/img/deco-tile.svg"); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%); }
.page-hero h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(50px, 8vw, 118px); letter-spacing: -0.04em; line-height: 0.95; margin: 18px 0 24px; }
.page-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.page-hero h1.h-display { font-family: var(--serif); }
.page-hero .lede { max-width: 58ch; }
.page-hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.page-hero__art { width: clamp(180px, 24vw, 320px); flex: none; }
.drop-cap::first-letter { float: left; font-family: var(--serif); font-style: italic; font-size: 4.2em; line-height: 0.8; padding: 6px 12px 0 0; color: var(--gold); }

/* ---------- App components (Arena, boards, galleries) ---------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.panel--pad { padding: clamp(20px, 2.4vw, 32px); }
.corner-marks { position: relative; }
.corner-marks::before, .corner-marks::after { content: ""; position: absolute; width: 16px; height: 16px; border-color: var(--gold); border-style: solid; pointer-events: none; }
.corner-marks::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-marks::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.field { display: grid; gap: 8px; }
.field > span, .field-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--dim); font-size: 12.5px; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 178, 91, 0.15); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%23a09a86' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.select option { background: var(--panel); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.prefix { position: relative; }
.prefix > b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 500; pointer-events: none; }
.prefix .input { padding-left: 30px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--text-2); }
.check input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--line-2); background: var(--ink-2); flex: none; margin-top: 2px; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--gold-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.form-error { color: var(--down); font-size: 14px; min-height: 1.2em; }
.form-ok { color: var(--up); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar .input { max-width: 340px; min-height: 42px; }
.toolbar .select { width: auto; min-height: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.table th { position: sticky; top: 0; background: var(--panel-2); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th button { display: inline-flex; gap: 6px; align-items: center; letter-spacing: inherit; text-transform: inherit; font: inherit; color: inherit; }
.table th button[data-dir="asc"]::after { content: "↑"; color: var(--gold); }
.table th button[data-dir="desc"]::after { content: "↓"; color: var(--gold); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr.row { cursor: pointer; transition: background 0.15s; }
.table tbody tr.row:hover { background: var(--panel-2); }
.table .r { text-align: right; }
.asset { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asset b { display: block; font-family: var(--mono); font-size: 14px; }
.asset span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.range { position: relative; width: 110px; height: 4px; background: var(--line-2); }
.range i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--gold); }
.flash-up { animation: flash-up 1s; } .flash-down { animation: flash-down 1s; }
@keyframes flash-up { from { color: var(--up); background: rgba(91, 201, 140, 0.12); } }
@keyframes flash-down { from { color: var(--down); background: rgba(224, 106, 85, 0.12); } }
.detail-row td { background: var(--ink-2); padding: 0; }
.detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.detail > div { background: var(--ink-2); padding: 16px; min-width: 0; }
.detail dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.detail dd { margin: 0; font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr 1fr; } }
.copy { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--text-2); padding: 4px 8px; border: 1px solid var(--line-2); transition: border-color 0.2s, color 0.2s; max-width: 100%; }
.copy:hover { border-color: var(--gold); color: var(--gold); }
.copy svg { width: 13px; height: 13px; flex: none; }
.copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s, transform 0.4s var(--ease-out), background 0.3s; min-width: 0; }
a.card:hover, .card--hover:hover { border-color: rgba(224, 178, 91, 0.45); transform: translateY(-3px); background: var(--panel-2); }
.card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.card p { color: var(--muted); font-size: 14.5px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.card .ext { position: absolute; right: 18px; top: 18px; width: 18px; height: 18px; color: var(--dim); transition: color 0.2s, transform 0.3s var(--ease-out); }
a.card:hover .ext { color: var(--gold); transform: translate(2px, -2px); }
.vote { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 700; font-size: 14px; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.vote svg { width: 14px; height: 14px; }
.vote:hover { border-color: var(--gold); color: var(--gold); }
.vote[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.empty { padding: clamp(40px, 6vw, 80px) 24px; text-align: center; border: 1px dashed var(--line-2); color: var(--muted); }
.empty h3 { color: var(--text); font-family: var(--serif); font-style: italic; font-size: 28px; margin-bottom: 10px; }
.empty .btn { margin-top: 20px; }
.skeleton { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
.avatar { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: var(--panel-3); border-radius: 50%; }
.avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar b { position: relative; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); color: var(--gold-ink); }
.arena { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.arena__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.arena__who { display: flex; gap: 12px; align-items: center; padding: 16px; }
.arena__who .avatar { width: 48px; flex: none; }
.arena__who .avatar b { font-size: 20px; }
.arena__who b { display: block; }
.arena__who span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.arena__tabs { display: grid; gap: 2px; padding: 6px; }
.arena__tabs button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; text-align: left; font-size: 15px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.arena__tabs button:hover { background: var(--panel-2); color: var(--text); }
.arena__tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }
.arena__main { display: grid; gap: 16px; min-width: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.checklist li.done .tick { background: var(--gold); border-color: var(--gold); }
.checklist li.done .tick::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--gold-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checklist li.done span { color: var(--muted); }
.stepper { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.stepper__item { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.stepper__item i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-style: normal; font-family: var(--serif); font-size: 13px; }
.stepper__item.is-on { color: var(--text); border-color: var(--gold); }
.stepper__item.is-on i { background: var(--gold); color: var(--gold-ink); }
.stepper__item.is-done i { background: var(--up); color: var(--ink); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.auth__perks { display: grid; gap: 18px; list-style: none; padding: 0; margin: 22px 0 0; }
.auth__perks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--text-2); }
.auth__perks li b { display: block; color: var(--text); }
.auth__perks svg { width: 30px; height: 30px; color: var(--gold); }
.members { display: grid; gap: 8px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); }
.member .avatar { width: 40px; flex: none; }
.member .avatar b { font-size: 16px; }
.member__name { flex: 1; min-width: 0; }
.member__name b { display: block; }
.member__name span { color: var(--muted); font-size: 13px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px dashed rgba(224, 178, 91, 0.5); background: rgba(224, 178, 91, 0.05); }
.code-box b { font-family: var(--mono); font-size: 26px; letter-spacing: 0.2em; color: var(--gold); }
.contract__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.verified { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(91, 201, 140, 0.08); border: 1px solid rgba(91, 201, 140, 0.35); font-size: 14px; flex-wrap: wrap; }
.verified svg { width: 18px; height: 18px; color: var(--up); flex: none; }
@media (max-width: 900px) {
  .arena { grid-template-columns: 1fr; }
  .arena__side { position: relative; top: 0; }
  .arena__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .auth { grid-template-columns: 1fr; }
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.stack > * { min-width: 0; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .split-wide { grid-template-columns: 1fr; } }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kv { display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; min-width: 0; }
.kv div:last-child { border-bottom: 0; }
.kv dt, .kv div > span:first-child { color: var(--muted); flex: none; }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
pre.code { margin: 0; padding: 18px; background: var(--ink); border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-2); }
pre.code .k { color: var(--gold); } pre.code .s { color: #9fd8b8; } pre.code .c { color: var(--dim); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); flex: none; transition: background 0.3s, border-color 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary i { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--gold); }
.faq__body { padding: 0 0 24px; color: var(--text-2); max-width: 76ch; font-size: 16px; }
.faq__body p + p, .faq__body ul, .faq__body p + ul, .faq__body ul + p { margin-top: 0.85em; }
.faq__body ul { padding-left: 1.2em; }
.faq__body li + li { margin-top: 0.4em; }
.faq__body b { color: var(--text); }
.faq__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Misc blocks for FAQ / accelerator pages */
.big-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.big-steps > div { padding: clamp(24px, 3vw, 36px); text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, #16231e, #111b17); }
.big-steps .ornament { width: 70px; height: 70px; margin: 0 auto 18px; color: var(--gold); }
.big-steps b { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; }
.big-steps h3 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); margin: 8px 0 12px; }
.big-steps p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) { .big-steps { grid-template-columns: 1fr; } }
.criteria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.criteria .card b { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.timeline > div { padding: 22px; background: var(--panel); position: relative; }
.timeline > div + div { border-left: 1px solid var(--line); }
.timeline b { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.timeline h3 { font-family: var(--serif); font-size: 24px; }
.timeline p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.timeline > div.is-now { background: var(--panel-3); }
.timeline > div.is-now::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline > div:nth-child(3) { border-left: 0; } .timeline > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } .timeline > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.season-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line-2); overflow: hidden; }
.season-card__media { position: relative; min-height: 280px; background: #07100d; }
.season-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.season-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--panel); }
@media (max-width: 800px) { .season-card { grid-template-columns: 1fr; } }
.res-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.res-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; border: 1px solid var(--line-2); padding: 6px; background: var(--panel); }
.res-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14.5px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.res-nav a:hover { background: var(--panel-2); color: var(--text); }
.res-nav a.is-active { background: var(--panel-3); color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.res-group + .res-group { margin-top: clamp(40px, 5vw, 64px); }
.res-group > h2 { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 18px; }
.res-block { border: 1px solid var(--line-2); background: linear-gradient(180deg, #16231e, #121d19); }
.res-block summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 22px; cursor: pointer; }
.res-block summary::-webkit-details-marker { display: none; }
.res-block summary h3 { font-family: var(--serif); font-size: 22px; }
.res-block summary p { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 70ch; }
.res-block summary i { width: 26px; height: 26px; flex: none; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; color: var(--gold); transition: transform 0.35s var(--ease-out); }
.res-block[open] summary i { transform: rotate(45deg); }
.res-items { padding: 0 22px 22px; }
.res-items .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.res-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.res-item b { font-family: var(--serif); font-weight: 500; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224, 178, 91, 0.4); }
.res-item:hover b { text-decoration-color: var(--gold); }
.res-item span { display: block; margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .res-layout { grid-template-columns: 1fr; } .res-nav { position: relative; top: 0; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } }
.rules h2 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); margin: 48px 0 14px; }
.rules p, .rules li { color: var(--text-2); }
.rules ol, .rules ul { padding-left: 1.3em; display: grid; gap: 8px; }
.final { position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 12vw, 170px); }
.final__title { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 10vw, 150px); line-height: 0.95; font-variation-settings: "SOFT" 100, "WONK" 1; }
.final__glow { position: absolute; left: 50%; top: 55%; width: min(900px, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(224, 178, 91, 0.16), transparent 60%); pointer-events: none; z-index: -1; }
.final p { margin: 24px auto 32px; max-width: 48ch; color: var(--text-2); font-family: var(--serif); font-size: 19px; }

/* Reveal defaults: JS removes this class once GSAP runs; without JS content stays visible */
.js-motion [data-reveal], .js-motion [data-split] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js-motion [data-reveal], .js-motion [data-split] { opacity: 1; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.person p .emblem { width: 16px; height: 16px; color: var(--gold); }
.acc-engraving .pv-body, .acc-engraving .pv-back, .acc-engraving .pv-base, .acc-engraving .pv-roof, .acc-engraving .pv-dome, .acc-engraving .pv-light, .acc-engraving .pv-flag, .acc-engraving .pv-smoke { fill: none; stroke: var(--gold); stroke-width: 1.1; }
.acc-engraving .pv-line { stroke: var(--gold); stroke-opacity: .6; }
.page-hero__art .hare-art, .page-hero__art .trophy { width: 100%; height: auto; }

/* Pause decorative SVG animation when its block is off screen (toggled from app.js) */
.anim-off, .anim-off * { animation-play-state: paused !important; }

/* Decorative SVG skips hit-testing while the cursor moves over it */
.scene, .trophy, .fair-cell__bg, .ornament, .deco-frame__corner, .hare-art, .cameo, .emblem, .finale { pointer-events: none; }
