/* =========================================================
   WHOA – World Hosen Owi Association
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* fixed brand colours */
  --navy-950: #050d19;
  --navy-900: #091728;
  --navy-800: #0f2239;
  --navy-700: #193250;
  --navy-600: #29486e;
  --cream: #f7f1e5;
  --card: #fffcf5;
  --card-edge: #e7dcc6;
  --red: #e2402b;
  --red-ink: #b42d1b;
  --red-deep: #8f2112;
  --gold: #f3c14f;
  --gold-deep: #c9952a;
  --felt: #0d4a35;
  --felt-deep: #072a1f;
  --on-dark: #f5f1e8;
  --on-dark-muted: #b9c6d8;

  /* themeable surfaces */
  --paper: #f7f1e5;
  --paper-2: #efe6d3;
  --surface: #fffcf5;
  --surface-2: #f3ecdd;
  --ink: #091728;
  --muted: #4c5a70;
  --rule: rgba(9, 23, 40, 0.13);
  --field: #ffffff;
  --field-rule: #b9b2a3;
  --focus: #1d5fd1;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 1.25rem;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(5, 13, 25, 0.55), 0 4px 10px -4px rgba(5, 13, 25, 0.3);
  --header-h: 4.5rem;
  --cw: 8rem; /* default playing-card width, overridden per container */
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a1526;
  --paper-2: #0d1b30;
  --surface: #12223a;
  --surface-2: #172a45;
  --ink: #eef2f8;
  --muted: #a8b7cc;
  --rule: rgba(255, 255, 255, 0.12);
  --field: #0c192c;
  --field-rule: #3d5372;
  --focus: #8fb6ff;
  --red-ink: #ff7a63;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--red); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  color: var(--navy-900);
  background: var(--gold);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* ---------- Typography helpers ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }

.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .kicker { margin-bottom: 0; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-arrow { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-suit { fill: currentColor; transition: transform 0.6s var(--ease-spring); }
.btn:hover .btn-suit { transform: rotate(-360deg) scale(1.15); }

.btn-red {
  --btn-bg: var(--red);
  box-shadow: 0 10px 30px -10px rgba(226, 64, 43, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-red:hover { box-shadow: 0 16px 38px -10px rgba(226, 64, 43, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
/* light sweep */
.btn-red::after, .btn-join::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn-red:hover::after, .btn-join:hover::after { transition: transform 0.8s var(--ease-out); transform: translateX(120%); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }

.btn-cream { --btn-bg: var(--cream); --btn-fg: var(--navy-900); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); box-shadow: 0 10px 28px -12px rgba(243, 193, 79, 0.9); }
.btn-navy { --btn-bg: var(--navy-900); --btn-fg: #fff; box-shadow: 0 16px 40px -14px rgba(5, 13, 25, 0.8); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-quiet:hover { background: var(--surface-2); }

.btn-lg { min-height: 3.4rem; padding: 0.85rem 1.7rem; font-size: 1.08rem; }
.btn-xl { min-height: 4rem; padding: 1rem 2.2rem; font-size: 1.25rem; }
.btn-xl svg { width: 1.4rem; height: 1.4rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-dark);
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 14, 27, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.is-scrolled::before, .site-header.menu-open::before { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: block;
  width: clamp(6.6rem, 11vw, 8.4rem);
  margin-right: auto;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover { transform: scale(1.04); }
.brand img { width: 100%; }

.main-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s, background-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.09); }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }

.btn-join {
  --btn-bg: var(--red);
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem 0.6rem 1rem;
  font-size: 0.96rem;
  box-shadow: 0 0 0 0 rgba(226, 64, 43, 0.6), 0 8px 24px -10px rgba(226, 64, 43, 0.9);
  animation: join-pulse 3.2s 2.5s infinite;
}
.btn-join .btn-suit { width: 1rem; height: 1rem; }
@keyframes join-pulse {
  0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(226, 64, 43, 0), 0 8px 24px -10px rgba(226, 64, 43, 0.9); }
  20% { box-shadow: 0 0 0 7px rgba(226, 64, 43, 0.22), 0 8px 24px -10px rgba(226, 64, 43, 0.9); }
  40% { box-shadow: 0 0 0 12px rgba(226, 64, 43, 0), 0 8px 24px -10px rgba(226, 64, 43, 0.9); }
}

.menu-toggle { display: none; }
.menu-bars { display: grid; gap: 6px; width: 20px; }
.menu-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(100svh, 44rem);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem);
  padding-bottom: 6rem;
  overflow: hidden;
  color: var(--on-dark);
  background: radial-gradient(120% 90% at 75% 30%, #15365c 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-spot {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem circle at var(--mx, 72%) var(--my, 42%), rgba(110, 160, 255, 0.16), transparent 60%),
    radial-gradient(30rem circle at 12% 110%, rgba(226, 64, 43, 0.22), transparent 70%);
  transition: background-position 0.2s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-suits { position: absolute; inset: 0; overflow: hidden; }
.hero-suits svg {
  position: absolute;
  bottom: -10%;
  fill: #fff;
  opacity: 0;
  animation: suit-float var(--dur, 22s) linear var(--delay, 0s) infinite;
}
.hero-suits svg.is-red { fill: var(--red); }
@keyframes suit-float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--op, 0.08); }
  85% { opacity: var(--op, 0.08); }
  100% { transform: translateY(-125vh) rotate(var(--spin, 180deg)); opacity: 0; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.live-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.9vw, 7rem);
  white-space: nowrap;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line:last-child { overflow: visible; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) > span {
  background: linear-gradient(100deg, #fff 0%, #d8e4f5 60%, #9fb6d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent { position: relative; color: var(--red); }
.scribble {
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: 0.28em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.8rem;
  color: var(--on-dark-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-aka {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 2.4rem;
  color: var(--on-dark-muted);
  font-size: 0.88rem;
}
.hero-aka span {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
  font-weight: 600;
}

.hero-stage {
  --cw: clamp(8.5rem, 15vw, 13.5rem);
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--cw) * 2.05);
  perspective: 1400px;
}
.fan {
  position: relative;
  width: calc(var(--cw) * 2.2);
  height: calc(var(--cw) * 1.75);
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease-out);
  cursor: pointer;
}
.fan .pcard {
  position: absolute;
  left: calc(50% - var(--cw) / 2);
  bottom: 0;
  transform-origin: 50% 115%;
  transform: rotate(calc((var(--i) - 1) * 17deg)) translateY(calc(var(--i) * 0px));
  transition: transform 0.6s var(--ease-spring);
}
.fan:hover .pcard { transform: rotate(calc((var(--i) - 1) * 22deg)) translateY(-10px); }
.fan .pcard:nth-child(2) { z-index: 2; }
.fan .pcard:nth-child(3) { z-index: 3; }

.chip {
  position: absolute;
  left: calc(50% - var(--cw) * 1.25);
  bottom: calc(var(--cw) * 0.02);
  z-index: 5;
  display: grid;
  place-items: center;
  width: calc(var(--cw) * 0.78);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--navy-900);
  background: radial-gradient(circle at 35% 30%, #ffe39a, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 calc(var(--cw) * 0.035) rgba(255, 255, 255, 0.18), 0 18px 40px -10px rgba(243, 193, 79, 0.7), 0 0 60px rgba(243, 193, 79, 0.35);
}
.chip-ring {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  fill: var(--navy-900);
  animation: spin 14s linear infinite;
}
.chip-num {
  font-family: var(--font-display);
  font-size: calc(var(--cw) * 0.26);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stage-hint {
  position: absolute;
  right: 2%;
  bottom: -2.2rem;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.stage-hint::before { content: "↖ "; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  translate: -50% 0;
}
.scroll-cue-track {
  position: relative;
  width: 1.5rem;
  height: 2.4rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}
.scroll-cue-track span {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  translate: -50% 0;
  animation: scroll-dot 1.8s var(--ease-out) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Playing card ---------- */
.pcard {
  position: relative;
  width: var(--cw);
  aspect-ratio: 5 / 7;
  color: var(--navy-900);
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}
.pcard.is-red { color: #d3321f; }
.pcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.75s var(--ease-out);
}
.pcard.is-face .pcard-inner { transform: rotateY(0deg); }
.pcard-face, .pcard-back {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--cw) * 0.075);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}
.pcard-face {
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 0%, #fff 0%, transparent 60%),
    var(--card);
  border: 1px solid var(--card-edge);
}
.pcard-face::after {
  /* glossy sheen that follows the tilt */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  opacity: var(--sheen, 0);
  transform: translateX(var(--sheen-x, 0%));
  pointer-events: none;
}
.pcard-back {
  transform: rotateY(180deg);
  border: calc(var(--cw) * 0.045) solid var(--cream);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='.12' d='M50 18c7 11 24 18 24 31 0 8-5 12-12 12-5 0-8-2-10-5 1 6 3 10 8 12H40c5-2 7-6 8-12-2 3-5 5-10 5-7 0-12-4-12-12 0-13 17-20 24-31Z'/%3E%3C/svg%3E") center / calc(var(--cw) * 0.2),
    radial-gradient(circle at 50% 45%, #1f4673 0%, var(--navy-900) 70%);
}
.pcard-back::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(243, 193, 79, 0.45);
  border-radius: calc(var(--cw) * 0.04);
}

.pc-corner {
  position: absolute;
  top: 5%;
  left: 7%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-size: calc(var(--cw) * 0.16);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.pc-corner b { font-weight: inherit; }
.pc-corner svg { width: 0.62em; height: 0.62em; margin-top: 0.1em; fill: currentColor; }
.pc-br { top: auto; left: auto; right: 7%; bottom: 5%; transform: rotate(180deg); }

.pc-ace { position: absolute; inset: 0; display: grid; place-items: center; }
.pc-ace svg {
  width: 52%;
  height: 52%;
  fill: currentColor;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.pc-court {
  position: absolute;
  inset: 17% 19%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: calc(var(--cw) * 0.05);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, currentColor 7%, transparent) 0 2px, transparent 2px 9px);
  font-family: var(--font-display);
  font-size: calc(var(--cw) * 0.24);
  font-weight: 800;
  line-height: 1;
}
.pc-court::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: calc(var(--cw) * 0.035);
}
.pc-court svg { width: calc(var(--cw) * 0.24); height: calc(var(--cw) * 0.24); fill: currentColor; }
.pc-court b { font-weight: inherit; }
.pc-mirror { transform: rotate(180deg); }

.pc-pips { position: absolute; inset: 15% 18%; }
.pc-pips svg {
  position: absolute;
  width: calc(var(--cw) * 0.17);
  height: calc(var(--cw) * 0.17);
  fill: currentColor;
  translate: -50% -50%;
}
.pc-pips svg.down { rotate: 180deg; }

/* ---------- Tapes ---------- */
.tapes {
  position: relative;
  z-index: 2;
  height: clamp(7rem, 13vw, 10rem);
  margin-top: calc(clamp(7rem, 13vw, 10rem) / -2);
  margin-bottom: calc(clamp(7rem, 13vw, 10rem) / -2);
  overflow: hidden;
  pointer-events: none;
}
.tape {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding-block: 0.85rem;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(5, 13, 25, 0.6);
}
.tape-red { z-index: 2; color: var(--cream); background: var(--red); transform: translateY(-50%) rotate(-2.6deg); }
.tape-navy { color: var(--gold); background: var(--navy-800); transform: translateY(-50%) rotate(2.2deg); }
.tape-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; padding-left: 1.6rem; }
.tape-track svg { width: 1.1em; height: 1.1em; fill: currentColor; opacity: 0.85; }
.js .tape-track[data-ready] { animation: marquee 38s linear infinite; }
.js .tape-track.tape-rev[data-ready] { animation-direction: reverse; animation-duration: 44s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding-top: clamp(8rem, 15vw, 12rem); background: var(--paper); }
.statement {
  max-width: 62rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.3vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.statement em { font-style: normal; color: var(--red-ink); }
.statement .w { transition: opacity 0.35s, filter 0.35s; }
.js .statement .w { opacity: 0.16; }
.js .statement .w.on { opacity: 1; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.flip {
  --cw: 100%;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  perspective: 1200px;
  color: var(--navy-900);
  border-radius: 1.1rem;
}
.flip.is-red { color: #d3321f; }
.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}
.flip-front {
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  border: 1px solid var(--card-edge);
  background: radial-gradient(120% 80% at 30% 0%, #fff 0%, transparent 60%), var(--card);
}
.flip-front .pc-corner { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.flip-suit {
  width: 42%;
  height: 42%;
  fill: currentColor;
  transition: transform 0.6s var(--ease-spring);
}
.flip:hover .flip-suit { transform: scale(1.08) rotate(-6deg); }
.flip-front .flip-title { margin-top: 1rem; color: var(--navy-900); }
.flip-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  hyphens: manual;
}
.flip-hint {
  position: absolute;
  bottom: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
:root[data-theme="dark"] .flip-hint { color: #6b778a; }
.flip-back {
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--on-dark);
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 6px solid var(--cream);
}
.flip.is-red .flip-back {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, #ec5a40, var(--red-deep));
}
.flip-back .flip-title { text-align: left; }
.flip-text { font-size: clamp(0.88rem, 1.1vw, 1rem); line-height: 1.45; color: rgba(255, 255, 255, 0.9); }

/* ---------- Names / photo card ---------- */
.names { background: var(--paper-2); overflow: hidden; }
.names-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.photo-card {
  --cw: 100%;
  position: relative;
  max-width: 27rem;
  justify-self: center;
  width: 100%;
  perspective: 1200px;
}
.photo-card-inner {
  position: relative;
  padding: 3.4rem 1.1rem;
  border-radius: 1.6rem;
  color: #d3321f;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: 0 40px 80px -30px rgba(5, 13, 25, 0.55), 0 10px 20px -10px rgba(5, 13, 25, 0.3);
  transform: rotate(-4deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
}
.photo-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.4), transparent 45%);
  opacity: var(--glare, 0);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: opacity 0.3s;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 0.9rem;
}
.photo-card .pc-corner { top: 0.8rem; left: 1.1rem; font-size: 1.9rem; flex-direction: row; gap: 0.3rem; align-items: center; }
.photo-card .pc-corner svg { margin-top: 0; }
.photo-card .pc-br { top: auto; left: auto; bottom: 0.8rem; right: 1.1rem; }
.photo-card figcaption {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}
.names-copy { display: grid; gap: 1.4rem; }
.names-copy .kicker { margin-bottom: 0; }
.name-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.6rem; }
.name-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.35s var(--ease-spring), background-color 0.2s, color 0.2s;
}
.name-chips li:hover { transform: translateY(-3px) rotate(-2deg); color: #fff; background: var(--navy-900); }
.name-chips svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.name-chips li:nth-child(odd) svg { fill: var(--red); }

/* ---------- Rules ---------- */
.rules {
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 40%, var(--navy-950));
  isolation: isolate;
}
.rules .lead { color: var(--on-dark-muted); }
.rules .kicker { color: var(--gold); }
.rules-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  z-index: -1;
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 72, 110, 0.55), transparent 65%);
  filter: blur(20px);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.4rem 1.2rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(243, 193, 79, 0.4); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.step h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin-top: 0.35rem; color: var(--on-dark-muted); font-size: 0.97rem; line-height: 1.5; }

.values {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) * 1.3);
  background: rgba(255, 255, 255, 0.035);
}
.values-title {
  margin-bottom: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.value-row { display: grid; grid-template-columns: auto 1.6fr 1.3fr; gap: clamp(1.2rem, 4vw, 3.5rem); align-items: end; }
.value-row li { display: grid; grid-auto-flow: column; justify-content: start; align-items: end; gap: 0.4rem; grid-template-rows: auto auto auto; }
.value-row li > strong {
  grid-row: 2;
  grid-column: 1 / span 6;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.value-row li > span:last-child { grid-row: 3; grid-column: 1 / span 6; color: var(--on-dark-muted); font-size: 0.92rem; }
.mini {
  grid-row: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 3.75rem;
  border-radius: 0.4rem;
  color: var(--navy-900);
  background: var(--card);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-spring);
}
.mini:nth-child(2) { margin-left: -1.1rem; transform: rotate(4deg); }
.mini:nth-child(3) { margin-left: -1.1rem; transform: rotate(8deg); }
.mini:nth-child(4) { margin-left: -1.1rem; transform: rotate(12deg); }
.value-row li:hover .mini { transform: translateY(-6px) rotate(0); }
.mini.is-red { color: #d3321f; }
.mini svg { width: 0.95rem; height: 0.95rem; margin-top: 0.2rem; fill: currentColor; }

.specials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(1rem, 2vw, 1.6rem);
}
.special {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius) * 1.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.special:hover { transform: translateY(-6px); }
.special::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  z-index: -1;
  height: 80%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.55;
  transition: opacity 0.4s;
}
.special:hover::before { opacity: 0.9; }
.special-31 { --glow: rgba(243, 193, 79, 0.55); }
.special-fire { --glow: rgba(255, 92, 40, 0.7); }
.special-30 { --glow: rgba(110, 160, 255, 0.45); }
.special h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.special p:not(.special-score) { color: var(--on-dark-muted); font-size: 0.97rem; line-height: 1.5; }
.special-score {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.special-31 .special-score { color: var(--gold); }
.special-fire .special-score { background: linear-gradient(180deg, #ffd36b, #ff6a2b 60%, #e2402b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.special-30 .special-score { color: #a9c6ff; }

.special-cards {
  --cw: clamp(4.2rem, 6.5vw, 5.4rem);
  position: relative;
  height: calc(var(--cw) * 1.62);
  margin-bottom: 0.6rem;
}
.special-cards .pcard {
  position: absolute;
  left: calc(50% - var(--cw) / 2);
  top: 0.4rem;
  transform-origin: 50% 130%;
  transform: rotate(calc((var(--i) - 1) * 14deg));
  transition: transform 0.5s var(--ease-spring);
}
.special:hover .special-cards .pcard { transform: rotate(calc((var(--i) - 1) * 20deg)) translateY(-6px); }

.flames { position: absolute; inset: auto 0 0 0; z-index: -1; height: 70%; pointer-events: none; }
.flames span {
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, rgba(255, 200, 90, 0.6), rgba(255, 80, 30, 0.35) 45%, transparent 70%);
  filter: blur(14px);
  translate: -50% 0;
  animation: flicker 2.4s ease-in-out infinite alternate;
}
.flames span:nth-child(2) { left: 28%; width: 40%; animation-duration: 1.9s; animation-delay: -0.6s; }
.flames span:nth-child(3) { left: 72%; width: 42%; animation-duration: 2.2s; animation-delay: -1.1s; }
@keyframes flicker {
  0% { transform: scale(1) translateY(0); opacity: 0.8; }
  50% { transform: scale(1.15, 1.3) translateY(-12%); opacity: 1; }
  100% { transform: scale(0.95, 1.1) translateY(-4%); opacity: 0.75; }
}

/* ---------- Training table ---------- */
.training {
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(90% 70% at 50% 40%, #13604a 0%, var(--felt) 45%, var(--felt-deep) 100%);
  isolation: isolate;
}
.training::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.training .lead { color: rgba(245, 241, 232, 0.82); }
.training .lead em { font-style: normal; color: var(--gold); font-weight: 700; }
.training .kicker { color: var(--gold); }

.felt {
  --cw: clamp(5.2rem, 13vw, 8.2rem);
  position: relative;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  justify-items: center;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(0.8rem, 3vw, 2.4rem);
  border-radius: 2.2rem;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.06), transparent 70%);
  box-shadow:
    inset 0 0 0 2px rgba(243, 193, 79, 0.35),
    inset 0 0 0 10px rgba(0, 0, 0, 0.08),
    inset 0 0 80px rgba(0, 0, 0, 0.35),
    0 0 0 12px #5a341c,
    0 0 0 14px #7a4a29,
    0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.felt-row { display: grid; justify-items: center; gap: 0.75rem; width: 100%; }
.felt-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.65);
}
.slots {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.1rem);
  min-height: calc(var(--cw) * 1.4);
}
.slots .pcard {
  padding: 0;
  border: 0;
  background: none;
  border-radius: calc(var(--cw) * 0.075);
  transition: transform 0.35s var(--ease-spring), filter 0.3s;
}
.slots .pcard:hover:not([disabled]) { transform: translateY(-6px); }
.slots .pcard.is-selected { transform: translateY(-14px) rotate(-2deg); }
.slots .pcard.is-selected .pcard-face { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(243, 193, 79, 0.65), var(--shadow-card); }
.slots .pcard.is-best .pcard-face { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(243, 193, 79, 0.55), var(--shadow-card); }
.slots .pcard.is-dim { filter: saturate(0.4) brightness(0.72); }
.slots .pcard[disabled] { cursor: default; }
.slots .pcard.is-dealing { animation: deal-in 0.7s var(--ease-out) both; animation-delay: var(--deal-delay, 0s); }
@keyframes deal-in {
  from { transform: translate(var(--from-x, 0), var(--from-y, -120px)) rotate(-25deg) scale(0.7); opacity: 0; }
  to { opacity: 1; }
}

.felt-score { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.score-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(6.5rem, 16vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1d7a5d, #0b3b2b 70%);
  box-shadow: inset 0 0 0 3px rgba(243, 193, 79, 0.65), inset 0 0 0 9px rgba(0, 0, 0, 0.2), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.score-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.score-unit {
  position: absolute;
  bottom: 18%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
}
.score-dial.is-bump { animation: bump 0.5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.14); } }
.score-dial.is-hot { background: radial-gradient(circle at 35% 30%, #ffdb7a, #e0a22d 70%); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 50px rgba(243, 193, 79, 0.8); }
.score-dial.is-hot .score-num, .score-dial.is-hot .score-unit { color: var(--navy-900); }
.score-dial.is-fire { background: radial-gradient(circle at 35% 30%, #ffcf6b, #ff5a24 55%, #b42d1b); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 60px rgba(255, 90, 36, 0.85); }
.score-dial.is-fire .score-num, .score-dial.is-fire .score-unit { color: #fff; }
.verdict {
  min-height: 1.6em;
  max-width: 30rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}

.felt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.4rem; }
.felt-actions .btn-ghost { color: var(--on-dark); }
.felt-stats { color: rgba(245, 241, 232, 0.7); font-size: 0.88rem; text-align: center; }

/* suit confetti */
.confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.confetti svg {
  position: absolute;
  top: -5vh;
  width: var(--s, 22px);
  height: var(--s, 22px);
  fill: var(--c, var(--red));
  animation: confetti-fall var(--t, 2.4s) cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), 110vh) rotate(var(--rot, 540deg)); opacity: 0.9; }
}

/* ---------- Numbers ---------- */
.numbers { background: var(--paper); padding-block: clamp(4.5rem, 9vw, 7rem); }
.number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.number-grid li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 2rem 1.2rem 0 0;
}
.number-grid li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.number-grid strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--ink) 30%, var(--red) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.number-grid span { color: var(--muted); font-size: 0.97rem; line-height: 1.4; }

/* ---------- App ---------- */
.app {
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(60rem 40rem at 90% 50%, rgba(226, 64, 43, 0.22), transparent 65%),
    var(--navy-900);
}
.app .lead { color: var(--on-dark-muted); }
.app .kicker { color: var(--gold); }
.app-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 3rem; }
.app-copy { display: grid; gap: 1.4rem; justify-items: start; }
.app-copy .kicker { margin-bottom: 0; }
.app-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 0.6rem; }
.app-copy .text-link { color: var(--on-dark); }

.app-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 24rem; width: 100%; justify-self: center; }
.app-visual::before, .app-visual::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.app-visual::after { inset: 24%; border-style: solid; border-color: rgba(243, 193, 79, 0.25); }
.orbit { position: absolute; inset: 6%; animation: spin 26s linear infinite; }
.orbit-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 5.8rem;
  margin: -2.9rem 0 0 -2.1rem;
  border-radius: 0.55rem;
  color: var(--navy-900);
  background: var(--card);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  transform: rotate(var(--a)) translateY(calc(-1 * min(10.4rem, 33vw))) rotate(calc(-1 * var(--a)));
}
.orbit-card.is-red { color: #d3321f; }
.orbit-card svg { width: 55%; height: 55%; fill: currentColor; animation: spin 26s linear infinite reverse; }
.orbit-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe39a, var(--gold) 45%, var(--gold-deep));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 60px rgba(243, 193, 79, 0.35);
  align-content: center;
  line-height: 1;
}
.orbit-core small {
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- News ---------- */
.news { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.news-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 17rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--surface);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.news-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 30px 60px -30px rgba(5, 13, 25, 0.45); }
.news-card::after {
  content: "";
  position: absolute;
  right: -2.2rem;
  bottom: -2.4rem;
  width: 9rem;
  height: 9rem;
  opacity: 0.07;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3c13 21 44 34 44 58 0 14-10 23-22 23-9 0-15-4-19-10 1 11 6 18 14 23H33c8-5 13-12 14-23-4 6-10 10-19 10C16 84 6 75 6 61 6 37 37 24 50 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3c13 21 44 34 44 58 0 14-10 23-22 23-9 0-15-4-19-10 1 11 6 18 14 23H33c8-5 13-12 14-23-4 6-10 10-19 10C16 84 6 75 6 61 6 37 37 24 50 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.6s var(--ease-spring);
}
.news-card:hover::after { transform: rotate(-14deg) scale(1.1); }
.news-date {
  justify-self: start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--red-ink);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  font-size: 0.8rem;
  font-weight: 700;
}
.news-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.news-card p:not(.news-date) { color: var(--muted); }
.news-card .text-link { margin-top: auto; color: var(--red-ink); }
.news-soon { border-style: dashed; background: transparent; }
.news-soon .news-date { color: var(--muted); background: var(--surface-2); }

/* ---------- CTA ---------- */
.cta {
  overflow: hidden;
  color: #fff;
  background: radial-gradient(80% 90% at 50% 100%, #f2593f, var(--red) 50%, var(--red-deep) 100%);
  text-align: center;
  isolation: isolate;
}
.cta .lead { margin-inline: auto; color: rgba(255, 255, 255, 0.88); }
.cta-inner { display: grid; justify-items: center; gap: 1.6rem; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.cta-cards { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-card {
  position: absolute;
  left: 50%;
  bottom: -6rem;
  width: clamp(9rem, 18vw, 15rem);
  aspect-ratio: 5 / 7;
  margin-left: calc(clamp(9rem, 18vw, 15rem) / -2);
  border: 0.55rem solid var(--cream);
  border-radius: 1.1rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='.12' d='M50 18c7 11 24 18 24 31 0 8-5 12-12 12-5 0-8-2-10-5 1 6 3 10 8 12H40c5-2 7-6 8-12-2 3-5 5-10 5-7 0-12-4-12-12 0-13 17-20 24-31Z'/%3E%3C/svg%3E") center / 2rem,
    radial-gradient(circle at 50% 45%, #1f4673 0%, var(--navy-900) 70%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  opacity: 0.35;
  transform-origin: 50% 160%;
  transform: translateX(var(--x)) rotate(var(--r));
}
.cta-inner .btn { margin-top: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  color: var(--on-dark-muted);
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { width: min(14rem, 70%); margin-bottom: 1.2rem; }
.footer-title {
  margin-bottom: 0.9rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.footer-links { display: grid; gap: 0.3rem; }
.footer-links a { display: inline-block; padding-block: 0.25rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}
.to-top { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; text-decoration: none; }
.to-top svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.to-top:hover { color: #fff; }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Legal page ---------- */
.legal-head { color: var(--on-dark); background: var(--navy-900); padding-top: env(safe-area-inset-top, 0px); }
.legal-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.legal-head .brand { margin-right: 0; }
.legal { max-width: 46rem; padding-block: clamp(3rem, 8vw, 5.5rem); }
.legal h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.legal h2 { margin: 2.6rem 0 0.7rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 0.9rem; }
.legal strong { color: var(--ink); }
.legal ul { display: grid; gap: 0.35rem; margin: 0.8rem 0 1rem; padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--red-ink); font-weight: 600; }
.legal-lead { margin-top: 1.2rem; font-size: 1.2rem; }
.legal-date { margin-top: 3rem !important; font-size: 0.9rem; }
.legal-foot { padding-top: 0; }

/* =========================================================
   Membership dialog
   ========================================================= */
.join {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(38rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: -40px 0 80px -20px rgba(5, 13, 25, 0.5);
  overscroll-behavior: contain;
}
.join[open] { animation: drawer-in 0.55s var(--ease-out); }
.join.is-closing { animation: drawer-out 0.35s ease-in forwards; }
.join::backdrop {
  background: rgba(5, 13, 25, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.join[open]::backdrop { animation: fade-in 0.4s ease-out; }
.join.is-closing::backdrop { animation: fade-out 0.35s ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.join-form { display: flex; flex-direction: column; height: 100%; }

.join-head {
  position: relative;
  padding: calc(1.3rem + env(safe-area-inset-top, 0px)) clamp(1.2rem, 4vw, 2rem) 1.3rem;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgba(226, 64, 43, 0.35), transparent 70%),
    var(--navy-900);
  isolation: isolate;
}
.join-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.join-kicker { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.join-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; margin-top: 0.25rem; }
.join-close { margin: -0.3rem -0.5rem 0 0; }

.join-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.3rem; }
.join-progress li { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.jp-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 3.2rem;
  border-radius: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.5s var(--ease-spring), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.jp-card svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.join-progress .is-current .jp-card, .join-progress .is-done .jp-card {
  color: var(--navy-900);
  background: var(--card);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.join-progress .is-current .jp-card.is-red, .join-progress .is-done .jp-card.is-red { color: #d3321f; }
.join-progress .is-current .jp-card { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 0 0 2px var(--gold), 0 10px 24px -8px rgba(243, 193, 79, 0.7); }
.join-progress .is-done .jp-card::after {
  content: "";
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23091728' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.jp-label { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); line-height: 1.2; }
.join-progress .is-current .jp-label { color: #fff; }

.join-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.2rem, 4vw, 2rem) 2rem;
}
.join-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.join-step.is-active { display: block; animation: step-in 0.5s var(--ease-out); }
.join-step.is-active.from-left { animation-name: step-in-left; }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-28px); } }
.join-legend {
  display: block;
  width: 100%;
  margin-bottom: 1.4rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.field-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem 0.9rem; }
.field { display: grid; gap: 0.4rem; align-content: start; grid-column: span 6; }
.field-sm { grid-column: span 2; }
.field-lg { grid-column: span 4; }
.field label, .group-label { font-size: 0.9rem; font-weight: 650; }
.opt { margin-left: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--field-rule);
  border-radius: 0.8rem;
  background: var(--field);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 50%, var(--field-rule)); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 25%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 64, 43, 0.15); }
.field-error, .form-error { color: var(--red-ink); font-size: 0.85rem; font-weight: 600; }
.field-error:empty, .form-error:empty { display: none; }
.form-error { margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: 0.8rem; background: color-mix(in srgb, var(--red) 10%, transparent); }
.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.6rem; }
.choice-grid .group-label, .choice-grid .field-error { grid-column: 1 / -1; }
.choice { position: relative; display: block; color: var(--navy-900); cursor: pointer; }
.choice.is-red { color: #d3321f; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 3.4rem 1rem 1.1rem;
  border: 1.5px solid var(--card-edge);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 6px 16px -10px rgba(5, 13, 25, 0.4);
  transition: transform 0.35s var(--ease-spring), border-color 0.2s, box-shadow 0.3s;
}
.choice-card .pc-corner { top: 0.75rem; left: 0.9rem; font-size: 1.35rem; }
.choice-card strong { color: var(--navy-900); font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; line-height: 1.15; }
.choice-card > span:last-child { color: #4c5a70; font-size: 0.88rem; line-height: 1.4; }
.choice:hover .choice-card { transform: translateY(-3px); }
.choice input:checked + .choice-card {
  border-color: var(--navy-900);
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 0 0 3px var(--gold), 0 16px 30px -14px rgba(5, 13, 25, 0.55);
}
.choice input:checked + .choice-card::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f3c14f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 65% no-repeat;
  animation: pop 0.4s var(--ease-spring);
}
.choice input:focus-visible + .choice-card { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes pop { from { transform: scale(0); } }

.segmented-wrap { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; }
.segmented { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--field-rule);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.segmented label:hover span { border-color: var(--ink); }
.segmented input:checked + span { color: #fff; background: var(--navy-900); border-color: var(--navy-900); transform: scale(1.04); }
:root[data-theme="dark"] .segmented input:checked + span { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.minor {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: 1.1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--gold) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  animation: step-in 0.4s var(--ease-out);
}
.minor-note { display: flex; gap: 0.6rem; font-size: 0.92rem; line-height: 1.45; }
.minor-note svg { width: 1rem; height: 1rem; margin-top: 0.2rem; fill: var(--red); }

.checks { display: grid; gap: 0.5rem; margin-top: 1.6rem; }
.check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; padding: 0.55rem 0; font-size: 0.93rem; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; top: 0.55rem; left: 0; width: 1.45rem; height: 1.45rem; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1.5px solid var(--field-rule);
  border-radius: 0.4rem;
  background: var(--field);
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.check-box::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform 0.3s var(--ease-spring);
}
.check input:checked + .check-box { background: var(--red); border-color: var(--red); transform: rotate(-6deg); }
.check input:checked + .check-box::after { transform: scale(1); }
.check input:focus-visible + .check-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 64, 43, 0.15); }
.check a { color: var(--red-ink); font-weight: 650; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { display: grid; gap: 0.8rem; }
.summary-group {
  position: relative;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--surface-2);
}
.summary-group h4 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.summary-group dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.25rem 1rem; font-size: 0.92rem; }
.summary-group dt { color: var(--muted); }
.summary-group dd { overflow-wrap: anywhere; font-weight: 600; }
.summary-edit {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  color: var(--red-ink);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
}
.summary-edit:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }

.join-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 2rem) calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.join-count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.join-foot .btn { min-width: 7.5rem; }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.8; }

.join-done { text-align: center; padding-top: 1.5rem; }
.join-done:focus { outline: none; }
.join-done .btn { margin-top: 1.8rem; }
.join-done p { max-width: 26rem; margin-inline: auto; color: var(--muted); }
.done-title { margin: 1.8rem 0 0.8rem; font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.done-cards { position: relative; height: 9rem; }
.pcard-mini {
  position: absolute;
  left: calc(50% - 2.9rem);
  top: 0.5rem;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0.45rem 0.55rem;
  width: 5.8rem;
  height: 8.1rem;
  border: 1px solid var(--card-edge);
  border-radius: 0.6rem;
  color: #d3321f;
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  justify-content: start;
  transform-origin: 50% 190%;
}
.pcard-mini svg { width: 0.95rem; height: 0.95rem; margin-top: 0.2rem; fill: currentColor; }
.pcard-mini::after {
  content: "";
  position: absolute;
  inset: 30% 22%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C21 68 4 50 4 30 4 15 15 5 29 5c10 0 17 6 21 14 4-8 11-14 21-14 14 0 25 10 25 25 0 20-17 38-46 60Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C21 68 4 50 4 30 4 15 15 5 29 5c10 0 17 6 21 14 4-8 11-14 21-14 14 0 25 10 25 25 0 20-17 38-46 60Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.join-done.is-active .pcard-mini { animation: fan-out 0.9s var(--ease-spring) both; }
.pcard-mini:nth-child(1) { --r: -18deg; }
.pcard-mini:nth-child(2) { --r: 0deg; animation-delay: 0.08s !important; }
.pcard-mini:nth-child(3) { --r: 18deg; animation-delay: 0.16s !important; }
.join-done .pcard-mini { transform: rotate(var(--r)); }
@keyframes fan-out { from { transform: rotate(0deg) translateY(30px) scale(0.6); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }

.has-done .join-foot { display: none; }
.has-done .join-progress .jp-card { color: var(--navy-900); background: var(--card); }
.has-done .join-progress .jp-card.is-red { color: #d3321f; }

/* =========================================================
   Motion & reveal
   ========================================================= */
/* `translate` keeps the element's own hover `transform` usable. */
.js .reveal {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    translate 0.9s var(--ease-out) var(--d, 0s),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s;
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* hero intro */
.js .hero-title .line > span { animation: rise 1.1s var(--ease-out) both; }
.js .hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.22s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: 0.34s; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } }
.js .scribble { stroke-dashoffset: 320; animation: draw 1s 1.15s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .hero-stage .pcard { opacity: 0; }
.js .hero-stage .chip { transform: scale(0); }
.js .hero-stage .stage-hint { opacity: 0; transition: opacity 0.6s 2.4s; }
.js .hero-stage.is-dealt .pcard { animation: hero-deal 0.9s var(--ease-out) both; animation-delay: calc(0.35s + var(--i) * 0.16s); }
.js .hero-stage.is-dealt .chip { animation: chip-pop 0.8s 1.7s var(--ease-spring) forwards; }
.js .hero-stage.is-dealt .stage-hint { opacity: 0.7; }
@keyframes hero-deal {
  from { opacity: 0; transform: translate(45vw, -60vh) rotate(200deg) scale(0.8); }
  to { opacity: 1; }
}
@keyframes chip-pop { from { transform: scale(0) rotate(-120deg); } to { transform: scale(1) rotate(0); } }
.js .hero-stage.is-settled .pcard { animation: none; opacity: 1; }
.js .hero-stage.is-settled .chip { animation: none; transform: none; transition: transform 0.5s var(--ease-spring); }
.js .hero-stage.is-settled .chip:hover { transform: scale(1.08) rotate(-8deg); }

.fan.is-shuffling .pcard { transition: transform 0.45s var(--ease-out); transform: rotate(0deg) translateY(-14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .statement .w { opacity: 1; }
  .hero-suits { display: none; }
  .js .tape-track[data-ready] { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 68rem) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .step { grid-column: span 2; }
  .step:nth-child(4) { grid-column: 2 / span 2; }
  .step:nth-child(5) { grid-column: 4 / span 2; }
  .value-row { grid-template-columns: 1fr 1fr; }
  .value-row li:nth-child(2) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 60rem) {
  :root { --header-h: 4rem; }
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: center;
    padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
    background:
      radial-gradient(40rem 30rem at 100% 0%, rgba(226, 64, 43, 0.3), transparent 70%),
      var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .main-nav a {
    min-height: 3.4rem;
    padding: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    opacity: 1;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.2s;
  }
  .main-nav a:hover { background: none; color: var(--gold); }
  .menu-open .main-nav a { transform: none; }
  .menu-open .main-nav li:nth-child(2) a { transition-delay: 0.04s; }
  .menu-open .main-nav li:nth-child(3) a { transition-delay: 0.08s; }
  .menu-open .main-nav li:nth-child(4) a { transition-delay: 0.12s; }
  .menu-open .main-nav li:nth-child(5) a { transition-delay: 0.16s; }

  .hero { padding-bottom: 7rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { --cw: clamp(7.2rem, 27vw, 10.5rem); order: -1; margin-top: 0.5rem; min-height: calc(var(--cw) * 1.95); }
  .stage-hint { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names-inner { grid-template-columns: 1fr; }
  .photo-card { max-width: 22rem; }
  .specials { grid-template-columns: 1fr; }
  .special { grid-template-columns: auto 1fr; column-gap: 1.4rem; }
  .special .special-cards { grid-row: span 4; width: calc(var(--cw) * 1.9); margin: 0; align-self: center; }
  .special .flames { display: block; }
  .number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-grid li, .number-grid li + li { padding: 1.6rem 1rem 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .number-grid li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule); }
  .number-grid li:last-child { grid-column: 1 / -1; }
  .app-inner { grid-template-columns: 1fr; }
  .app-visual { max-width: 18rem; order: -1; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 2rem); }
  .header-inner { gap: 0.4rem; }
  .theme-toggle { width: 2.5rem; height: 2.5rem; }
  .btn-join { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
  .btn-join .btn-suit { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(4), .step:nth-child(5) { grid-column: auto; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
  .step-num { font-size: 2rem; }
  .value-row { grid-template-columns: 1fr; }
  .special { grid-template-columns: 1fr; }
  .special .special-cards { grid-row: auto; width: auto; margin-bottom: 0.6rem; }
  .flip-front .pc-corner { font-size: 1.2rem; }
  .flip-back { border-width: 4px; }
  .flip-text { font-size: 0.82rem; }
  .flip-hint { font-size: 0.62rem; bottom: 0.7rem; }
  .flip-title { font-size: 1.05rem; }
  .felt { width: calc(100% - 1.25rem); border-radius: 1.4rem; box-shadow: inset 0 0 0 2px rgba(243, 193, 79, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.35), 0 0 0 7px #5a341c, 0 0 0 9px #7a4a29, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .felt-actions .btn { flex: 1 1 auto; min-height: 2.9rem; padding-inline: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { padding-top: 1rem; padding-left: 3.6rem; }
  .choice-card .pc-corner { top: 0.85rem; }
  .field-sm { grid-column: span 2; }
  .field-lg { grid-column: span 4; }
  .summary-group dl { grid-template-columns: 1fr; gap: 0 0; }
  .summary-group dd { margin-bottom: 0.4rem; }
  .join-foot .btn { min-width: 0; }
}

@media (max-width: 30rem) {
  .join-count { display: none; }
}

@media (max-width: 23rem) {
  .brand { width: 5.6rem; }
  .theme-toggle { display: none !important; }
  .field-sm, .field-lg { grid-column: span 6; }
}
