:root {
  --ink: #1c1914;
  --pine: #14352c;
  --pine-deep: #0c241e;
  --brass: #9a7040;
  --brass-bright: #e6c98a;
  --ivory: #f3efe6;
  --paper: #fffaf3;
  --oxblood: #8e322c;
  --line: rgba(20, 53, 44, 0.16);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --read: "Literata", Georgia, serif;
  --shadow: 0 18px 40px rgba(20, 36, 30, 0.08);
  --dock: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse at top left, rgba(230, 201, 138, 0.35), transparent 36%),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(20, 53, 44, 0.025) 47px, rgba(20, 53, 44, 0.025) 48px);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--oxblood); }

a:hover { color: var(--pine); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection { background: #e6c98a; color: var(--pine-deep); }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oxblood), var(--brass-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 80;
}

.spine {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass);
  z-index: 2;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--pine);
  color: white;
  padding: 8px 12px;
  z-index: 90;
}

.skip:focus { top: 8px; }

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pine);
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.brand b {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--brass);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
}

.langs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.langs a {
  text-decoration: none;
  color: var(--pine);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.langs a[aria-current="page"] {
  background: var(--pine);
  color: var(--ivory);
  border-color: var(--pine);
}

.cta-pair {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-1px); color: white; }

.btn-enter {
  background: var(--oxblood);
  color: white;
  box-shadow: 0 8px 18px rgba(142, 50, 44, 0.25);
}

.btn-join {
  background: var(--pine);
  color: #f6f1e6;
  box-shadow: 0 8px 18px rgba(20, 53, 44, 0.22);
}

.btn-line {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.btn-line:hover { background: var(--pine); }

.ticker {
  background: var(--pine-deep);
  color: #f3ead7;
  overflow: hidden;
  border-bottom: 3px solid var(--brass);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 36s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker span {
  padding: 9px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ticker i {
  font-style: normal;
  color: var(--brass-bright);
  padding: 0 18px;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.plate {
  padding: 28px 0 8px;
  text-align: center;
}

.plate p {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass);
}

.plate h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 5vw, 4.15rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--pine-deep);
}

.plate h1 em {
  font-style: italic;
  font-weight: 520;
  color: var(--oxblood);
}

.rules {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px auto 0;
  max-width: 680px;
}

.rules::before,
.rules::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--pine);
}

.kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 22px 0 10px;
  align-items: stretch;
}

.lede {
  font-family: var(--read);
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 12px 0 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--pine);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
}

.toc a:hover { border-color: var(--brass); color: var(--oxblood); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 16px 0 0;
  font-size: 13px;
  color: #5c564c;
}

.crumbs a { color: var(--pine); }

.deck {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.deck::before,
.deck::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  z-index: 2;
}

.deck::before { top: 10px; left: 10px; }
.deck::after { top: 10px; right: 10px; }

.deck-viewport { overflow: hidden; flex: 1; }

.deck-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
}

.slide {
  flex: 0 0 100%;
  padding: 36px 28px 24px;
  min-height: 280px;
}

.slide .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
}

.slide h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.7rem;
  margin: 8px 0;
  letter-spacing: -0.03em;
}

.slide p {
  margin: 0;
  font-family: var(--read);
  color: #3a342c;
}

.deck-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 14px;
  gap: 10px;
}

.dots { display: flex; gap: 6px; }

.dots button,
.arrow {
  border: 1px solid var(--line);
  background: white;
  color: var(--pine);
  cursor: pointer;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
}

.dots button[aria-current="true"] {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
}

.band {
  padding: 28px 0;
}

.ticket {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  background: var(--paper);
  border: 1px dashed var(--brass);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.ticket::before { left: -16px; }
.ticket::after { right: -16px; }

.ticket-main { padding: 26px 28px; }

.stamp {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 2px solid var(--oxblood);
  color: var(--oxblood);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-2deg);
}

.address {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  margin: 8px 0;
  overflow-wrap: anywhere;
  color: var(--pine-deep);
}

.ticket-side {
  background: var(--pine);
  color: #f6f1e6;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ticket-side p { margin: 0; font-size: 14px; color: #e7dcc4; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.step {
  background: var(--paper);
  border-top: 4px solid var(--brass);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}

.step b {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--oxblood);
  line-height: 1;
}

.step h3 {
  margin: 6px 0;
  font-size: 1.05rem;
}

.step p { margin: 0; color: #3d382f; font-size: 0.96rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid var(--pine);
  margin-bottom: 18px;
  padding-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
}

.story {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding-bottom: 10px;
}

.side-note {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
  color: #4d473e;
}

.side-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--pine);
  margin-bottom: 6px;
}

.prose {
  font-family: var(--read);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p { margin: 0 0 14px; }

.prose .lead::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.3rem;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--oxblood);
}

.prose h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.45rem;
  margin: 8px 0 8px;
  letter-spacing: -0.02em;
}

.pull {
  margin: 8px 0 16px;
  padding: 8px 0 8px 16px;
  border-left: 3px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--pine);
}

.table-wrap { overflow-x: auto; margin: 8px 0 16px; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--pine);
  color: #f6f1e6;
  font-weight: 560;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 18px;
}

.card {
  background: var(--paper);
  padding: 16px;
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.card p { margin: 0; color: #3e392f; }

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 16px;
  scrollbar-color: var(--brass) transparent;
}

.game {
  flex: 0 0 230px;
  scroll-snap-align: start;
  background: var(--pine-deep);
  color: #f6f1e6;
  min-height: 180px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game span {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass-bright);
}

.game h3 {
  margin: 8px 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.55rem;
}

.game p { margin: 0; color: #e6dcc8; font-size: 0.92rem; }

.ribbon {
  background: var(--oxblood);
  color: #fff8ee;
  overflow: hidden;
}

.ribbon .ticker-track { animation-duration: 48s; }

.ribbon span { font-family: var(--serif); font-size: 1.05rem; }

.scores {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}

.big-score {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 0.85;
  margin: 0;
  color: var(--pine);
}

.big-score small {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 8px;
}

.meter { margin: 0 0 12px; }

.meter b { display: block; font-size: 14px; margin-bottom: 4px; }

.meter i {
  display: block;
  height: 8px;
  background: rgba(20, 53, 44, 0.08);
  border-radius: 99px;
  font-style: normal;
}

.meter i span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pine), var(--brass));
  border-radius: inherit;
}

.event {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--pine);
  color: #f7f1e6;
  padding: 18px;
}

.cal {
  background: var(--ivory);
  color: var(--pine-deep);
  text-align: center;
  padding: 12px 8px;
}

.cal strong {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.9;
}

.cal em { font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

.event h2 {
  font-family: var(--serif);
  font-weight: 520;
  margin: 0 0 6px;
}

.event p { margin: 0 0 8px; color: #eadfcd; }

.faq { display: grid; gap: 10px; }

.faq article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px 6px;
}

.faq h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
}

.faq p { margin: 0 0 10px; font-family: var(--read); }

.foot {
  background: var(--pine-deep);
  color: #eadfcd;
  padding: 28px 0 20px;
  margin-top: 20px;
}

.foot a { color: var(--brass-bright); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.foot h2 {
  font-family: var(--serif);
  font-weight: 520;
  color: white;
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.foot ul { margin: 0; padding: 0; list-style: none; }

.foot li { margin: 6px 0; }

.legal {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 201, 138, 0.25);
  font-size: 13px;
}

.dock {
  display: none;
}

@media (max-width: 980px) {
  .spine { display: none; }
  .hero,
  .ticket,
  .story,
  .scores,
  .event,
  .foot-grid,
  .steps,
  .cards {
    grid-template-columns: 1fr;
  }
  .side-note { position: static; }
  .ticket::before, .ticket::after { display: none; }
}

@media (max-width: 760px) {
  body.nav-pad { padding-bottom: 86px; }
  .mast-row { min-height: 0; padding: 8px 0; align-items: stretch; flex-wrap: wrap; }
  .cta-pair { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cta-pair .btn { width: 100%; }
  .langs { order: 3; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(12, 36, 30, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
  }
  .slide { min-height: 0; padding: 28px 18px 12px; }
  .wrap { width: min(1120px, calc(100% - 22px)); }
}

h2.section-head {
  display: block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pine);
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.event .kicker { color: var(--brass-bright); }

.table-note {
  caption-side: bottom;
  text-align: left;
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .deck-track { transition: none; }
  .btn { transition: none; }
}
