:root {
  --ink: #1a1612;
  --ink-soft: #3a332c;
  --paper: #f3ecdf;
  --paper-deep: #e7ddcc;
  --muted: #5e564c;
  --line: rgba(26, 22, 18, 0.14);
  --amber: #e7a31a;
  --cream: #fff8ee;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 72px);
  --max: 1120px;
  --shadow: 0 24px 50px rgba(40, 24, 8, 0.18);
}

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

html { scroll-behavior: smooth; }

.catalog,
.stage,
.studio,
.sheet,
.invite,
.game-hero {
  scroll-margin-top: 92px;
}

html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

body.page-ink {
  background: var(--ink);
  color: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px var(--pad) 0;
}

.nav {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 14px;
  background: rgba(243, 236, 223, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(26, 22, 18, 0.06);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 16px !important;
}

.nav-cta:hover { background: #000 !important; }

.lang {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(26, 22, 18, 0.06);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  cursor: pointer;
}

.nav-toggle span:not(.sr),
.nav-toggle span:not(.sr)::before,
.nav-toggle span:not(.sr)::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  position: absolute;
  left: 13px;
}

.nav-toggle span:not(.sr) { top: 20px; }
.nav-toggle span:not(.sr)::before,
.nav-toggle span:not(.sr)::after { content: ""; left: 0; }
.nav-toggle span:not(.sr)::before { top: -5px; }
.nav-toggle span:not(.sr)::after { top: 5px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: end;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) 28px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 580;
  color: var(--muted);
}

h1, h2, .display {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  max-width: 11ch;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 520;
}

.lede {
  max-width: 38rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  cursor: pointer;
  font-weight: 580;
}

.button .arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 18px;
}

.button-light {
  background: var(--cream);
  color: var(--ink);
}

.button-light .arrow { background: var(--ink); color: var(--cream); }

.hero-stage {
  position: relative;
  height: 540px;
}

.hero-shot {
  position: absolute;
  width: 220px;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.shot-treasure {
  left: 0;
  top: 48px;
  width: 200px;
  height: auto;
  aspect-ratio: 941 / 1672;
  object-fit: contain;
  transform: rotate(-9deg);
}
.shot-letteroo { left: 118px; top: 8px; width: 236px; height: 470px; transform: rotate(2.5deg); z-index: 2; }
.shot-thirty { right: 8px; top: 64px; transform: rotate(8deg); z-index: 3; }

.catalog {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 10px auto 0;
  padding: 0 var(--pad) 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.catalog a {
  text-decoration: none;
  padding: 16px 16px 18px 0;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
}

.catalog a span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.catalog a strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.catalog a:hover strong { font-style: italic; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 32s linear infinite;
  padding: 12px 0;
}

.marquee span {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  padding: 0 22px;
}

.marquee span::before {
  content: "·";
  margin-right: 22px;
  font-style: normal;
  color: var(--amber);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stage {
  padding: clamp(72px, 9vw, 120px) var(--pad);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.stage-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.stage.reverse .stage-grid { grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.05fr); }
.stage.reverse .stage-copy { order: 2; }

.stage-thirty { background: linear-gradient(155deg, #6d56ff 0%, #3d2cc4 70%); }
.stage-streak { background: linear-gradient(160deg, #1f4fdd 0%, #102454 78%); }
.stage-letter { background: radial-gradient(900px 500px at 80% 20%, #ffb089 0%, transparent 55%), linear-gradient(165deg, #1b3a4d, #10202b 60%); }
.stage-treasure { background: radial-gradient(700px 420px at 10% 90%, rgba(242, 196, 92, 0.25), transparent 50%), linear-gradient(165deg, #0c4a62, #062433 70%); }

.stage-seam {
  position: relative;
  z-index: 2;
  height: 96px;
  margin: -48px 0;
  pointer-events: none;
  filter: blur(36px);
}

.seam-thirty-streak { background: linear-gradient(#3d2cc4, #1f4fdd); }
.seam-streak-letter { background: linear-gradient(#102454, #1b3a4d); }
.seam-letter-treasure { background: linear-gradient(#10202b, #0c4a62); }

.stage-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 580;
  color: rgba(255, 248, 238, 0.72);
}

.stage h2 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 10ch;
  color: white;
}

.stage-lead {
  font-size: 1.28rem;
  max-width: 36rem;
  margin: 18px 0 0;
}

.stage p { color: rgba(255, 248, 238, 0.86); }

.rules {
  list-style: none;
  padding: 0;
  margin: 26px 0 8px;
  max-width: 36rem;
}

.rules li {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 248, 238, 0.2);
  color: white;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.pill {
  border: 1px solid rgba(255, 248, 238, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  color: white;
}

.stage-actions, .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stage-actions { margin-top: 26px; }

.badges img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.text-link {
  color: white;
  font-weight: 580;
  text-underline-offset: 4px;
}

.stage-art { display: grid; justify-items: center; }

.device {
  width: min(300px, 78vw);
  background: #111;
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.shot-plain {
  width: min(300px, 78vw);
  height: 620px;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.cabinet {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(150, 190, 255, 0.45), transparent 46%),
    #17367a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

.cabinet img {
  width: 68%;
  height: auto;
  border-radius: 18px;
}

.cabinet p {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  color: rgba(255, 248, 238, 0.8);
}

.portrait {
  width: min(320px, 78vw);
  height: auto;
  aspect-ratio: 941 / 1672;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.studio {
  padding: clamp(72px, 10vw, 120px) var(--pad);
}

.studio-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.studio h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); max-width: 12ch; }

.studio .lede { margin-top: 18px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0;
}

.facts div {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; }

.invite {
  margin: 0 var(--pad) 72px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.invite h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); color: white; max-width: 12ch; }

.invite p { color: rgba(255, 248, 238, 0.8); }

.steps { list-style: none; margin: 8px 0 0; padding: 0; }

.steps li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 248, 238, 0.16);
}

.steps strong { display: block; color: white; font-weight: 580; }

.site-footer {
  background: #14110e;
  color: var(--cream);
  padding: 56px var(--pad) 28px;
  overflow: hidden;
}

.footer-word {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(4.2rem, 18vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
  white-space: nowrap;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.site-footer h2 {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 580;
  color: rgba(243, 236, 223, 0.55);
  margin: 0 0 12px;
}

.site-footer a, .site-footer p { color: var(--cream); }

.site-footer .footer-grid a, .site-footer .footer-grid p {
  display: block;
  text-decoration: none;
  margin: 0 0 8px;
  color: rgba(243, 236, 223, 0.86);
}

.site-footer a:hover { color: white; }

.footer-note {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 236, 223, 0.12);
  color: rgba(243, 236, 223, 0.55);
  font-size: 0.9rem;
}

.footer-slim { margin-top: 0; border: 0; padding-top: 0; }

.page-hero {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--pad) 10px;
}

.page-hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); max-width: 12ch; }

.game-hero {
  padding: clamp(48px, 7vw, 96px) var(--pad);
  color: var(--cream);
}

.game-hero h1 { color: white; font-size: clamp(3.4rem, 7vw, 6.2rem); }

.game-hero .panel {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--pad);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

.sheet h2 { font-size: clamp(2rem, 4vw, 3rem); }

.sheet p { color: var(--ink-soft); }

.sheet .rules { margin-top: 0; }

.sheet .rules li {
  color: var(--ink);
  border-top-color: var(--line);
}

.sheet + .sheet { padding-top: 0; }

.more-games {
  padding: 10px var(--pad) 80px;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.more-games h2 { font-size: 2rem; margin-bottom: 16px; }

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.more-grid a {
  text-decoration: none;
  background: var(--paper-deep);
  border-radius: 18px;
  padding: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.more-grid a:hover { background: #ddd2be; }

.more-grid small { letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.more-grid strong { font-family: var(--display); font-size: 1.6rem; font-weight: 560; letter-spacing: -0.03em; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px var(--pad) 88px;
}

.legal h1 { font-size: clamp(3rem, 7vw, 5rem); max-width: none; }

.legal h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 32px 0 8px;
  letter-spacing: -0.03em;
}

.legal p, .legal li { color: var(--ink-soft); font-size: 1.05rem; }

.legal ol { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.45rem; }

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 580;
}

.partner {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 20px var(--pad) 80px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.partner h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); color: white; max-width: 9ch; }

.partner .eyebrow, .partner .lede { color: rgba(255, 248, 238, 0.72); }

.contact-page.partner h1 { color: var(--ink); }
.contact-page.partner .eyebrow,
.contact-page.partner .lede { color: var(--ink-soft); }
.contact-page.partner .lede a { font-weight: 580; }

.offer { list-style: none; padding: 0; margin: 28px 0 0; }

.offer li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 248, 238, 0.16);
  color: rgba(255, 248, 238, 0.86);
}

.form {
  background: #241f1b;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  color-scheme: dark;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.field-wide { grid-column: 1 / -1; }

.field span, fieldset legend {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.62);
}

.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.28);
  border-radius: 0;
  padding: 10px 0 12px;
  color: var(--cream);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

fieldset {
  border: 0;
  margin: 12px 0;
  padding: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.chip {
  position: relative;
  border: 1px solid rgba(255, 248, 238, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--cream);
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.chip:has(input:checked),
.chip:has(input:focus-visible) {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.form-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.form-note {
  margin: 14px 0 0;
  color: var(--amber);
}

.direct {
  margin-top: 14px;
  color: rgba(255, 248, 238, 0.7);
}

.direct a { color: white; }

.quiet {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px var(--pad) 100px;
}

.quiet h1 { font-size: clamp(3rem, 7vw, 5rem); }

@media (max-width: 1100px) {
  .nav { gap: 10px; }
  .nav-links a { padding: 8px 8px; font-size: 0.9rem; }
}

@media (max-width: 980px) {
  .hero, .studio-grid, .invite, .partner, .game-hero .panel, .sheet, .stage-grid, .stage.reverse .stage-grid {
    grid-template-columns: 1fr;
  }
  .stage.reverse .stage-copy { order: 0; }
  .catalog, .footer-grid, .more-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { height: 480px; }
  .shot-letteroo { left: 72px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px;
  }
  .nav-links.is-open {
    display: flex;
    z-index: 5;
    box-shadow: 0 18px 40px rgba(26, 22, 18, 0.14);
  }
  .nav-cta { text-align: center; }
  .lang { justify-content: center; margin: 4px 0; }
  .catalog, .footer-grid, .more-grid, .facts, .form-grid { grid-template-columns: 1fr; }
  .hero-stage { height: auto; display: flex; justify-content: center; padding-top: 12px; }
  .shot-treasure, .shot-letteroo { display: none; }
  .shot-thirty { position: relative; right: auto; top: auto; transform: none; }
  h1 { max-width: none; }
  .invite { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-shot { transform: none; }
}
