/* Xing website. One stylesheet for every page.
   Colours come from the app's Classic theme: felt green, gold accent,
   red card back. Interface text uses the system sans (SF Pro on Apple
   devices, like the app); only the XING wordmark uses the serif. */

:root {
  color-scheme: dark;
  --felt-1: #1f6f5c;
  --felt-2: #17584a;
  --felt-3: #0b2e28;
  --ink: #061a16;
  --bg: #08231e;
  --gold: #e8c26a;
  --gold-ink: #111315;
  --red: #e0383e;
  --back-a: #be1826;
  --back-b: #a80f1c;
  --card: #ffffff;
  --card-2: #f7f7f5;
  --card-black: #1c1c1e;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.82);
  --fg-3: rgba(255, 255, 255, 0.6);
  --fg-4: rgba(255, 255, 255, 0.56);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(0, 0, 0, 0.38);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.17);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(31, 111, 92, 0.9) 0%, rgba(23, 88, 74, 0.55) 38%, rgba(11, 46, 40, 0) 70%),
    linear-gradient(180deg, var(--felt-3) 0%, var(--bg) 40%, var(--ink) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fine felt grain, drawn once as an SVG noise tile. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  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='0.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 0.6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f3d58f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; color: var(--fg-2); }
strong { color: var(--fg); font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  line-height: 1;
}
a.wordmark:hover { color: var(--fg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 30, 26, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.brand .wordmark { font-size: 22px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  height: 42px;
  padding: 0 14px;
  font: 500 15px var(--sans);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .nav .btn { display: none; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .js .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: #071e1a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--stroke);
    display: none;
  }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 12px 12px; font-size: 17px; }
  .js .nav .btn { display: flex; }
  .js .nav .btn { margin: 10px 0 0; }
}

/* ---------- Buttons (the app's outlined style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: 600 16px/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f0d28a 0%, var(--gold) 100%);
  border-color: rgba(255, 236, 190, 0.6);
  box-shadow: 0 8px 28px rgba(232, 194, 106, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.gold:hover { color: var(--gold-ink); background: linear-gradient(180deg, #f5dc9d 0%, #eccb7c 100%); }
.btn svg { width: 18px; height: 18px; flex: none; }

.store-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.store-badge img { height: 52px; width: auto; }
.store-note { font-size: 13px; color: var(--fg-4); margin: 10px 0 0; }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Playing cards drawn in CSS (Classic faces) ---------- */
.card {
  --w: 74px;
  position: relative;
  width: var(--w);
  aspect-ratio: 5 / 7;
  border-radius: calc(var(--w) * 0.11);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  color: var(--card-black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 calc(var(--w) * 0.08) calc(var(--w) * 0.22) rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: var(--sans);
  flex: none;
  user-select: none;
}
.card.red { color: var(--red); }
.card .idx {
  position: absolute;
  top: calc(var(--w) * 0.07);
  left: calc(var(--w) * 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 700;
  font-size: calc(var(--w) * 0.27);
  letter-spacing: -0.04em;
}
.card .idx i { font-style: normal; font-size: calc(var(--w) * 0.22); margin-top: calc(var(--w) * 0.03); }
.card .pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--w) * 0.55);
  line-height: 1;
  padding-top: calc(var(--w) * 0.12);
}
.card .court {
  position: absolute;
  left: 30%; right: 18%; top: 22%; bottom: 14%;
  border-radius: calc(var(--w) * 0.06);
  background: rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(var(--w) * 0.42);
}
.card.red .court { background: rgba(224, 56, 62, 0.08); }
.card.back {
  background: linear-gradient(180deg, var(--back-a), var(--back-b));
  border: calc(var(--w) * 0.05) solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
}
.card.back::after {
  content: "X";
  font-family: var(--serif);
  font-size: calc(var(--w) * 0.62);
  line-height: 1;
  transform: translateY(-2%);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero .wordmark.big { font-size: clamp(30px, 3.6vw, 44px); display: block; margin-bottom: 26px; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--fg); }
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; margin-bottom: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-art { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 34px); min-height: 280px; }
.hero-art .deck { position: relative; }
.hero-art .deck .card { --w: clamp(84px, 11vw, 124px); }
.hero-art .deck .card:nth-child(1) { position: absolute; top: 5px; left: 3px; }
.hero-art .deck .card:nth-child(2) { position: absolute; top: 2.5px; left: 1.5px; }
.hero-art .deck .card:nth-child(3) { position: relative; }
.fan { position: relative; display: flex; }
.fan .card { --w: clamp(84px, 11vw, 124px); margin-left: calc(var(--w) * -0.62); transform-origin: 50% 120%; transition: transform 0.5s var(--ease); }
.fan .card:first-child { margin-left: 0; }
.fan .card:nth-child(1) { transform: rotate(-16deg) translateY(10px); }
.fan .card:nth-child(2) { transform: rotate(-8deg) translateY(2px); }
.fan .card:nth-child(3) { transform: rotate(0deg); }
.fan .card:nth-child(4) { transform: rotate(8deg) translateY(2px); }
.fan .card:nth-child(5) { transform: rotate(16deg) translateY(10px); }
.hero-art:hover .fan .card:nth-child(1) { transform: rotate(-20deg) translateY(10px); }
.hero-art:hover .fan .card:nth-child(2) { transform: rotate(-10deg) translateY(0); }
.hero-art:hover .fan .card:nth-child(4) { transform: rotate(10deg) translateY(0); }
.hero-art:hover .fan .card:nth-child(5) { transform: rotate(20deg) translateY(10px); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .hero-art { order: -1; min-height: 0; }
  .hero-art .deck .card, .fan .card { --w: clamp(64px, 17vw, 100px); }
}

/* ---------- Stats strip (like the home screen's stats bar) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 8px;
  margin-top: 36px;
  max-width: 520px;
}
.stats div { text-align: center; position: relative; padding: 0 6px; }
.stats div + div::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--stroke); }
.stats b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 900px) { .stats { margin-left: auto; margin-right: auto; } }
@media (max-width: 420px) { .stats b { font-size: 22px; } .stats span { font-size: 10px; letter-spacing: 0.14em; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--stroke), transparent); border: 0; margin: 0; }

.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 64px); }
.feature { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--stroke); }
.feature .ico {
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke-2);
  color: var(--gold);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 2px 0 4px; font-size: 19px; }
.feature p { font-size: 15.5px; margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 720px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 6px var(--edge) 22px;
  scroll-padding: 0 var(--edge);
  margin: 0 calc(50% - 50vw);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #000;
  aspect-ratio: 1600 / 787;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: 14px; color: var(--fg-3); margin-top: 12px; padding-left: 4px; }
.gallery-hint { font-size: 13px; color: var(--fg-4); margin-top: 4px; }

/* ---------- How it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.step .art { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 128px; }
.step .art .card { --w: 62px; }
.step .art .plus { color: var(--fg-4); font-size: 20px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Themes ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.tier { padding: 24px; }
.tier h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tier h3 small { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.tier p { font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-2);
  padding: 5px 11px 5px 5px; border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
}
.swatch i { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.signature { margin-top: clamp(40px, 6vw, 72px); }
.signature-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.signature-head p { margin: 0; max-width: 40em; }
.sig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sig {
  margin: 0;
  border-radius: 22px;
  padding: 26px 12px 18px;
  text-align: center;
  background: var(--sig-bg, #111);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.sig img { width: 74%; margin: 0 auto 16px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4)); transition: transform 0.5s var(--ease); }
.sig:hover img { transform: translateY(-4px) rotate(-2deg); }
.sig b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.sig span { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 900px) { .sig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .sig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Club ---------- */
.club { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: clamp(26px, 4vw, 44px); }
.club ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.club li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); font-size: 16px; }
.club li svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.club .fine { font-size: 13px; color: var(--fg-4); margin: 18px 0 0; }
@media (max-width: 860px) { .club { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter); }
.cta-band img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 22px; }

/* ---------- Long-form pages (rules, legal, support) ---------- */
.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 18px; max-width: 40em; }
.meta { font-size: 14px; color: var(--fg-3); }

.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 92px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--stroke); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--fg-3); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--fg); border-left-color: var(--stroke-2); }
.toc a.active { color: var(--fg); border-left-color: var(--gold); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--stroke); border-radius: 999px; padding: 6px 12px; margin: 0; font-size: 14px; }
}

.prose { max-width: 720px; min-width: 0; }
.prose section { padding: 0 0 8px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; padding-top: 4px; }
.prose section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--fg-4); }
.prose .callout { padding: 18px 20px; margin: 20px 0; font-size: 15.5px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.prose td:last-child { white-space: nowrap; }
.prose td.num { text-align: right; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.illus { display: flex; flex-wrap: wrap; gap: 22px 32px; padding: 22px; margin: 18px 0 22px; align-items: flex-end; justify-content: center; }
.illus figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.illus figcaption { font-size: 13px; color: var(--fg-3); letter-spacing: 0.04em; }
.illus .row { display: flex; align-items: center; gap: 8px; }
.illus .row .card { --w: 54px; }
.illus .stack { display: flex; }
.illus .stack .card { margin-left: -34px; }
.illus .stack .card:first-child { margin-left: 0; }
.illus .arrow { color: var(--fg-4); font-size: 18px; margin: 0 2px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--stroke); }
.faq details:first-of-type { border-top: 1px solid var(--stroke); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { margin: 0 0 14px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }

.contact-card { padding: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 8px 0 48px; }
.contact-card h2 { font-size: 22px; margin: 0 0 6px; }
.contact-card p { margin: 0; font-size: 15.5px; }

.kbd-path { font-weight: 600; color: var(--fg); white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 48px 0 40px; background: rgba(0, 0, 0, 0.18); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px clamp(48px, 9vw, 128px); padding-right: clamp(0px, 6vw, 88px); }
.foot > div:first-child { flex: 1 1 280px; max-width: 360px; }
.foot-links { display: flex; gap: clamp(48px, 9vw, 128px); }
.foot .wordmark { font-size: 22px; display: inline-block; margin-bottom: 14px; }
.foot p { font-size: 14px; color: var(--fg-3); margin: 0 0 8px; }
.foot h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin: 4px 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--fg); }
.legal-line { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 12.5px; color: var(--fg-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.legal-line p { margin: 0; color: inherit; font-size: inherit; }
@media (max-width: 760px) { .foot { padding-right: 0; } .foot > div:first-child { flex-basis: 100%; } }

/* ---------- 404 ---------- */
.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .row { display: flex; gap: 14px; justify-content: center; margin-bottom: 30px; }
.lost .card { --w: 88px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .toc, .btn { display: none !important; }
  .prose p, .prose li { color: #000; }
  a { color: #000; }
}

/* ---------- Themes page ---------- */
.tier-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 8px;
}
.tier-strip div { padding: 18px 20px; position: relative; }
.tier-strip div + div::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--stroke); }
.tier-strip b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.tier-strip span { font-size: 14px; color: var(--fg-3); line-height: 1.4; display: block; }
@media (max-width: 760px) {
  .tier-strip { grid-template-columns: 1fr 1fr; }
  .tier-strip div:nth-child(3)::before { display: none; }
  .tier-strip div:nth-child(n+3) { border-top: 1px solid var(--stroke); }
}
.theme-section { padding: clamp(40px, 6vw, 72px) 0; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.theme-grid.large { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
.theme-grid.small { grid-template-columns: repeat(3, 1fr); }
.theme { margin: 0; }
.theme-shot {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1200 / 590;
  background: #000;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.theme-shot img { width: 100%; height: 100%; object-fit: cover; }
.theme figcaption { padding: 14px 4px 0; }
.theme figcaption b { display: block; font-size: 16px; font-weight: 600; }
.theme figcaption span { font-size: 14px; color: var(--fg-3); }
.theme-note { font-size: 14px; color: var(--fg-3); margin-top: 26px; }
.limited { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 6vw, 72px); padding: clamp(26px, 4vw, 44px); }
.limited h2 { font-size: clamp(22px, 2.6vw, 28px); }
.limited p { margin: 0; }
@media (max-width: 900px) { .theme-grid, .theme-grid.small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .theme-grid, .theme-grid.large, .theme-grid.small { grid-template-columns: 1fr; } .limited { grid-template-columns: 1fr; } }
.prose .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* ---------- Try a hand ---------- */
.demo { padding: clamp(20px, 3vw, 32px); }
.demo-top, .demo-bottom { display: grid; grid-template-columns: 90px 1fr 120px; align-items: center; gap: 12px; }
.demo-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.demo-score { font-size: 14px; color: var(--fg-3); text-align: right; }
.demo-score b { color: var(--fg); font-variant-numeric: tabular-nums; }
.demo-bot { display: flex; justify-content: center; min-height: 64px; }
.demo-bot .card { --w: 42px; margin-left: -18px; }
.demo-bot .card:first-child { margin-left: 0; }
.demo-table { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 10px; }
.demo-pile { position: relative; display: flex; justify-content: center; min-height: 112px; align-items: center; }
.demo-pile .card { --w: 80px; margin-left: -52px; }
.demo-pile .card:first-child { margin-left: 0; }
.demo-pile .card.drop { animation: demo-drop 0.45s var(--ease); }
@keyframes demo-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-empty { width: 80px; aspect-ratio: 5 / 7; border: 1px dashed var(--stroke-2); border-radius: 9px; display: grid; place-items: center; font-size: 12px; color: var(--fg-4); }
.demo-deck-count { font-size: 12.5px; color: var(--fg-4); letter-spacing: 0.04em; }
.demo-msg { text-align: center; min-height: 3.2em; margin: 4px auto 14px; max-width: 34em; font-size: 15.5px; color: var(--fg-2); }
.demo-msg.xing { color: var(--gold); font-weight: 600; }
.demo-msg.take { color: var(--fg); font-weight: 600; }
.demo-hand { display: flex; justify-content: center; gap: 10px; min-height: 112px; }
.demo-hand .card { --w: 76px; appearance: none; border: 0; padding: 0; cursor: pointer; transition: transform 0.2s var(--ease); }
.demo-hand .card:hover:not(:disabled), .demo-hand .card:focus-visible { transform: translateY(-8px); }
.demo-hand .card:disabled { cursor: default; opacity: 0.75; }
@media (max-width: 600px) {
  .demo-top, .demo-bottom { grid-template-columns: 1fr auto; }
  .demo-top .demo-bot, .demo-bottom .demo-hand { grid-column: 1 / -1; grid-row: 2; }
  .demo-hand .card { --w: 64px; }
  .demo-hand { gap: 6px; }
}

/* ---------- Score keeper ---------- */
.sk { max-width: 760px; padding-bottom: clamp(56px, 8vw, 96px); }
.sk-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px clamp(16px, 3vw, 28px); }
.sk-team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.sk-name {
  width: 100%; max-width: 200px; text-align: center;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  color: var(--fg-2); font: 600 13px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 8px;
}
.sk-name:hover, .sk-name:focus { border-color: var(--line); outline: none; color: var(--fg); }
.sk-total { font-size: clamp(44px, 9vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sk-team.win .sk-total { color: var(--gold); }
.sk-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sk-target { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.sk-hand { font-size: 14px; color: var(--fg-4); }
.sk-banner[hidden] { display: none; }
.sk-banner { margin: 14px 0 0; padding: 14px 18px; border: 1px solid rgba(232, 194, 106, 0.4); border-radius: 14px; color: var(--fg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sk-form { margin-top: 16px; padding: clamp(18px, 3vw, 28px); }
.sk-form-title { font-size: 20px; margin-bottom: 14px; }
.sk-head, .sk-row { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 12px; }
.sk-head { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; padding-bottom: 6px; }
.sk-head { grid-template-columns: 1fr 120px 120px; }
.sk-head .sk-col { text-align: center; }
.sk-row { padding: 12px 0; border-top: 1px solid var(--stroke); }
.sk-label { font-weight: 600; color: var(--fg); }
.sk-label small { display: block; font-weight: 400; font-size: 13px; color: var(--fg-3); }
.sk-pick { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sk-pick button, .sk-step button {
  appearance: none; background: transparent; color: var(--fg-2); border: 0;
  font: 600 14px var(--sans); cursor: pointer; min-height: 40px;
}
.sk-pick button { flex: 1; padding: 0 8px; }
.sk-pick button + button { border-left: 1px solid var(--line); }
.sk-pick button.on { background: var(--gold); color: var(--gold-ink); }
.sk-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sk-step { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; justify-items: center; border: 1px solid var(--line); border-radius: 12px; margin: 0 4px; }
.sk-step button { width: 36px; font-size: 18px; }
.sk-step button:hover, .sk-pick button:hover:not(.on) { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.sk-step output { font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.sk-preview { margin: 0; }
.sk-error { margin: 0; color: #f19a8f; font-size: 14px; flex-basis: 100%; order: 3; }
.sk-error:empty { display: none; }
.sk-history { margin-top: 36px; }
.sk-history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sk-history-head h2 { font-size: 20px; margin: 0; }
.sk-actions { display: flex; gap: 8px; }
.sk-actions .btn:disabled { opacity: 0.4; cursor: default; }
.sk-list { list-style: none; margin: 0; padding: 0; }
.sk-list li { display: grid; grid-template-columns: 1fr auto 90px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); font-variant-numeric: tabular-nums; color: var(--fg-2); }
.sk-list .run { text-align: right; color: var(--fg); font-weight: 600; }
.sk-empty { color: var(--fg-4); font-size: 14px; }
.sk-note { margin-top: 32px; font-size: 15px; }
@media (max-width: 600px) {
  .sk-head { grid-template-columns: 1fr 1fr; }
  .sk-head > span:first-child { display: none; }
  .sk-row { grid-template-columns: 1fr; gap: 8px; }
}
