/* Open Bracket - retro-futurist print
   Ink and paper as the base. Color means something:
   red = Day 1 / solo / competing, blue = Day 2 / duo and team / watching,
   sun yellow = champion, crown, the Day 2 finale, highlight marks
   (yellow is only ever a background, with ink on it).
   Every section has at least one large field of color.
   Flat blocks, hard edges, halftone texture. No shadows, no gradients, no rounded corners.
   Type: Big Shoulders Display (display), Barlow Condensed (labels and UI), Barlow (body). */

:root {
  --paper: #f2ecdf;
  --paper-2: #e6decd;
  --paper-hi: #fbf8f1;
  --ink: #141417;
  --red: #c0341b;
  --blue: #1d3ea6;
  --blue-deep: #152e7e;
  --yellow: #f4c430;
  --focus: #1d3ea6;

  --display: "Big Shoulders Display", "Impact", "Arial Narrow Bold", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --fs-label: 0.8125rem;
  --fs-ui: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h4: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-h3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h2: clamp(2.75rem, 1.5rem + 5.2vw, 6rem);
  --fs-stat: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --fs-hero: clamp(5rem, 0.75rem + 22vw, 17.5rem);

  --tr-label: 0.14em;
  --tr-ui: 0.08em;

  --measure: 66ch;
  --measure-lede: 52ch;

  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1240px;
  --section-y: clamp(72px, 40px + 6vw, 136px);
  --head-gap: clamp(32px, 16px + 3vw, 56px);
  --stack: 24px;

  --rule: 3px solid var(--ink);

  --dot: radial-gradient(circle, currentColor 0.9px, transparent 1.3px);
  --dot-sm: radial-gradient(circle, currentColor 1.2px, transparent 1.7px);
  --dot-lg: radial-gradient(circle, currentColor 2.9px, transparent 3.4px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-align: left;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page-wide paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  color: var(--ink);
  background-image: var(--dot);
  background-size: 6px 6px;
  opacity: 0.045;
  z-index: 100;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { text-align: left; }
strong { font-weight: 700; }

/* ---------- Links ---------- */
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 120ms ease, background-color 120ms ease, color 120ms ease;
}
a:hover { text-decoration-thickness: 4px; }

/* ---------- Focus + skip link ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section-blue :focus-visible,
.section-ink :focus-visible,
.countdown :focus-visible,
.last-ferry :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tr-ui);
  text-decoration: none;
}
.skip-link:focus { top: var(--gutter); }
main:focus { outline: none; }

/* ---------- Notice (load problems only) ---------- */
.notice {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 600;
  font-size: var(--fs-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px var(--gutter);
}
.notice.is-error { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 8px 12px;
  padding: 10px var(--gutter) 0;
  background: var(--paper);
  border-bottom: var(--rule);
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  transition: background-color 120ms ease, color 120ms ease;
}
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark { background: var(--paper); color: var(--ink); }
.header-cta { grid-area: cta; }
.site-header nav { grid-area: nav; margin: 0 calc(var(--gutter) * -1); }
.nav-list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: block;
  white-space: nowrap;
  padding: 6px 10px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: var(--fs-ui);
  text-transform: uppercase;
  letter-spacing: var(--tr-ui);
  text-decoration: none;
  border: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (min-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    padding-bottom: 10px;
  }
  .site-header nav { margin: 0; }
  .nav-list { padding: 0; overflow: visible; }
}

/* ---------- Buttons: flat solid blocks. Hover inverts, the arrow slides 4px. ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  padding: 12px 24px;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.1875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:hover,
.btn:focus-visible { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-red:hover,
.btn-red:focus-visible { box-shadow: 6px 6px 0 var(--blue); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn-blue:hover,
.btn-blue:focus-visible { box-shadow: 6px 6px 0 var(--red); }
/* Press: drops back flat */
.btn:active,
.btn-red:active,
.btn-blue:active { transform: none; box-shadow: none; }
/* Reduced motion: no lift, no block. The colors invert instead. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible, .btn:active { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); }
  .btn-red:hover, .btn-red:focus-visible { background: var(--paper); color: var(--red); }
  .btn-ink:hover, .btn-ink:focus-visible { background: var(--paper); color: var(--ink); }
  .btn-blue:hover, .btn-blue:focus-visible { background: var(--paper); color: var(--blue); }
}
.btn-small { min-height: 42px; padding: 6px 14px; font-size: 1rem; }
.btn .arrow { font-family: var(--body); font-weight: 600; transition: transform 120ms ease; }
.btn:hover .arrow,
.btn:focus-visible .arrow { transform: translateX(4px); }

/* ---------- Shared section ---------- */
.section {
  position: relative;
  isolation: isolate;
  padding: var(--section-y) 0;
  border-bottom: var(--rule);
  /* Halftone corner: big dots near the corner, small dots further out, like a print gradient. */
  --ht-color: var(--ink);
  --ht-alpha: 0.13;
  --ht-at: 100% 0%;
}
.section::before,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: var(--ht-color);
  opacity: var(--ht-alpha);
  background-size: 12px 12px;
}
.section::before {
  background-image: var(--dot-lg);
  -webkit-mask-image: radial-gradient(ellipse 34% 46% at var(--ht-at), #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 34% 46% at var(--ht-at), #000 20%, transparent 100%);
}
.section::after {
  background-image: var(--dot-sm);
  -webkit-mask-image: radial-gradient(ellipse 62% 80% at var(--ht-at), #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 80% at var(--ht-at), #000 30%, transparent 100%);
}
.section:nth-of-type(even) { --ht-at: 0% 100%; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section p { max-width: var(--measure); }

.section-ink { background: var(--ink); color: var(--paper); --ht-color: var(--red); --ht-alpha: 0.5; }
.section-blue { background: var(--blue); color: var(--paper); --ht-color: var(--paper); --ht-alpha: 0.2; }

.section-head {
  margin-bottom: var(--head-gap);
  padding-bottom: 14px;
  border-bottom: var(--rule);
}
.section-ink .section-head,
.section-blue .section-head { border-color: var(--paper); }
.section-title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: 0.9;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}
.lede { font-size: var(--fs-lede); line-height: 1.45; max-width: var(--measure-lede) !important; margin-bottom: var(--stack); }
.placeholder-tag {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 6px;
  border: 2px dashed currentColor;
  vertical-align: 0.15em;
}

/* Shared label style: condensed, tracked caps */
.step-label, .session-track, .game-format, .creator-meta, .countdown-units .l, .hero-numerals .l, .facts .l,
.channel-code, .day-date, .confirm-ticket {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: var(--rule);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 88px);
}
.hero-sun {
  position: absolute;
  right: -30vw;
  top: 40px;
  width: 90vw;
  height: 90vw;
  max-width: 660px;
  max-height: 660px;
  border-radius: 50%;
  color: var(--ink);
  opacity: 0.85;
  background-image: var(--dot-lg);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 40% 40%, #000 35%, rgba(0, 0, 0, 0.35) 70%, transparent 71%);
  mask-image: radial-gradient(circle at 40% 40%, #000 35%, rgba(0, 0, 0, 0.35) 70%, transparent 71%);
  pointer-events: none;
}
.hero h1 {
  position: relative;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-hero);
  line-height: 0.82;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.hero h1 span { display: block; transform-origin: 20% 60%; }
.hero h1 span:nth-child(1) { color: var(--blue); }
.hero h1 span:nth-child(2) { color: var(--red); }
.hero-facts {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}
.hero-facts dt { position: absolute; left: -9999px; }
.hero-facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem);
  line-height: 1.02;
  /* Sits on paper so the halftone circle never runs through the date on small screens */
  justify-self: start;
  background: var(--paper);
  padding-right: 8px;
}
.hero-sub { position: relative; max-width: var(--measure-lede); font-size: var(--fs-lede); line-height: 1.45; margin-bottom: 32px; background: var(--paper); }
.hero-ctas { position: relative; display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.hero-ctas:last-child { margin-bottom: 0; }
.hero-ctas .btn { flex: 1 1 140px; }

/* Hero stats: three plain cells and one dominant champion cell */
.hero-numerals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
  background: var(--paper);
}
.hero-numerals li {
  display: grid;
  align-content: end;
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 12px 14px 14px;
  min-width: 0;
}
.hero-numerals .n {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--fs-stat);
  line-height: 0.88;
}
.hero-numerals .l { display: block; font-size: var(--fs-label); }
.hero-numerals .is-feature {
  grid-column: 1 / -1;
  background: var(--red);
  color: var(--paper);
  padding-top: clamp(40px, 3rem, 56px);
}
.hero-numerals .is-feature .n { font-size: clamp(5rem, 3rem + 8vw, 9rem); }
.crown {
  position: absolute;
  left: -0.06em;
  top: -0.4em;
  width: 0.62em;
  height: auto;
  color: var(--paper);
  transform: rotate(-8deg);
  overflow: visible;
}

@media (min-width: 720px) {
  .hero-sun { right: -120px; top: 60px; width: 600px; height: 600px; }
  .hero-ctas .btn { flex: 0 0 auto; min-width: 210px; }
  .hero-numerals { grid-template-columns: 1fr 1fr 1fr 1.9fr; }
  .hero-numerals .is-feature { grid-column: auto; padding-top: 12px; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; }
  .hero-numerals .is-feature .n { font-size: calc(var(--fs-stat) * 1.55); margin-top: 0.36em; }
  .hero-numerals .is-feature .l { font-size: 1rem; padding-bottom: 0.5em; }
}

/* Motion: the title is stamped onto the page on load. The reduced-motion rule above turns it off. */
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.5) rotate(-4deg); }
  55%  { opacity: 1; transform: scale(0.96) rotate(0.6deg); }
  75%  { transform: scale(1.02) rotate(-0.2deg); }
  100% { opacity: 1; transform: none; }
}
.hero h1 span { animation: stamp 620ms cubic-bezier(.2, .9, .25, 1) both; }
.hero h1 span:nth-child(2) { animation-delay: 160ms; }

/* Countdown: blue block, split-flap digits */
.countdown {
  position: relative;
  max-width: 580px;
  background: var(--blue);
  color: var(--paper);
  padding: 16px 18px 18px;
  margin-bottom: 32px;
}
.countdown-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-label); font-size: var(--fs-ui); margin-bottom: 12px; }
.countdown-units { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 18px; margin-bottom: 14px; }
.countdown-units[hidden] { display: none; }
.countdown-units .n { display: flex; gap: 3px; perspective: 400px; min-height: 1em; }
.flap {
  position: relative;
  display: inline-block;
  min-width: 0.62em;
  padding: 0.06em 0.08em 0;
  background: var(--blue-deep);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 4.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* The split between the two flaps */
.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--blue);
}
@keyframes flap { from { transform: rotateX(-90deg); } to { transform: none; } }
.flap.is-flipping { animation: flap 260ms ease-out; transform-origin: 50% 50%; }
.countdown-units .l { display: block; font-size: 0.75rem; margin-top: 6px; }
.countdown-when { margin-bottom: 14px; font-size: var(--fs-ui); font-weight: 600; }
.countdown-local { display: block; font-weight: 400; opacity: 0.85; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
.about-copy .lede { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); font-weight: 500; line-height: 1.4; max-width: none !important; }
.about-copy .lede strong { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: var(--rule); border-left: var(--rule); background: var(--paper); align-self: start; }
.facts li { border-right: var(--rule); border-bottom: var(--rule); padding: 14px; min-width: 0; }
.facts .n { display: block; font-family: var(--display); font-weight: 900; font-size: var(--fs-stat); line-height: 0.88; }
.facts .l { font-size: var(--fs-label); line-height: 1.3; display: block; margin-top: 4px; }
@media (min-width: 880px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
  .about-copy { grid-column: 1 / span 7; }
  .facts { grid-column: 9 / span 4; margin-top: 8px; }
}

/* ---------- Schedule ---------- */
.schedule-note { font-family: var(--cond); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-ui); line-height: 1.5; margin-bottom: var(--stack); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 var(--stack); }
.cal-bar .ics-btn { margin-top: 0; }
.cal-bar-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-label); font-size: var(--fs-label); margin-right: 4px; }
.day-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--paper); margin: 8px 0 32px; }
.day-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background-color 120ms ease, color 120ms ease;
}
.day-tab + .day-tab { border-left: 3px solid var(--paper); }
.day-tab .dt-label { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 0.9; text-transform: uppercase; }
.day-tab .dt-title { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-label); font-size: var(--fs-label); }
#tab-day1[aria-selected="true"] { background: var(--red); }
#tab-day2[aria-selected="true"] { background: var(--blue); }
.day-tab:hover:not([aria-selected="true"]),
.day-tab:focus-visible:not([aria-selected="true"]) { background: var(--paper); color: var(--ink); }

.day-panel[hidden] { display: none; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.day-head .ics-btn { margin-top: 0; }
.day-date { display: block; font-size: var(--fs-label); }
.day-summary { font-size: var(--fs-lede); line-height: 1.45; max-width: var(--measure-lede) !important; margin-bottom: var(--stack); }

.sessions { border-top: 3px solid var(--paper); }
.session {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(242, 236, 223, 0.45);
}
.session:last-child { border-bottom: 3px solid var(--paper); }
.session-code {
  grid-row: span 3;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  line-height: 0.86;
  color: var(--paper);
  align-self: start;
}
/* Heats (Day 1) are red blocks, finals games (Day 2) are blue blocks */
.session.is-play .session-code,
.session.is-final .session-code { padding: 8px 8px 6px; }
.session.is-play .session-code { background: var(--red); }
.session.is-final .session-code { background: var(--blue); }
.session-time { font-family: var(--cond); font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.06em; }
.session-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; margin-bottom: 4px; }
.session-detail { margin: 0; opacity: 0.9; font-size: 1rem; max-width: 60ch !important; }
.session-track { font-size: 0.75rem; border: 2px solid currentColor; padding: 1px 7px; justify-self: start; }
@media (min-width: 720px) {
  .session { grid-template-columns: 132px 200px 1fr auto; align-items: baseline; padding: 22px 0; gap: 6px 24px; }
  .session-code { grid-row: auto; }
  .session-body { display: block; }
}

/* ---------- Games: two labeled groups, colored by day ---------- */
.games-group + .games-group { margin-top: clamp(48px, 6vw, 80px); }
.games-day { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); line-height: 0.95; margin: 8px 0 16px; }
.games-group.is-day1 .games-day { color: var(--red); }
.games-group.is-day2 .games-day { color: var(--blue); }
.games-rule { font-size: var(--fs-lede); line-height: 1.45; max-width: var(--measure-lede) !important; margin-bottom: var(--stack); }
.games-grid { display: grid; gap: 0; border-top: var(--rule); border-left: var(--rule); }
.game { border-right: var(--rule); border-bottom: var(--rule); padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; background: var(--paper); min-width: 0; }
.game-num { font-family: var(--display); font-weight: 900; font-size: clamp(4.5rem, 3.5rem + 3vw, 6.5rem); line-height: 0.82; }
.game.is-day1 .game-num { color: var(--red); }
.game.is-day2 .game-num { color: var(--blue); }
.game-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; margin-top: 6px; }
.game-format { font-size: 0.75rem; color: var(--paper); justify-self: start; padding: 2px 8px; }
.game.is-day1 .game-format { background: var(--red); }
.game.is-day2 .game-format { background: var(--blue); }
.game p { margin: 0; }
@media (min-width: 600px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Creators ---------- */
.creators-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.creator { border: 3px solid var(--paper); padding: 14px; display: grid; gap: 4px; align-content: start; min-width: 0; background: var(--blue); }
/* The artwork: a photo with a print treatment, or the numeral tile when there is no photo */
.creator-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  align-items: end;
  justify-items: start;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--blue-deep);
  background-image: var(--dot-sm);
  background-size: 12px 12px;
  margin-bottom: 10px;
}
.creator-num { padding: 4px 10px; font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: 1; }
.creator-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.creator-slot.has-photo { background: var(--blue); }
.creator-slot.has-photo .creator-num { display: none; }
.creator-slot.has-photo img { opacity: 1; filter: grayscale(1) contrast(1.5); mix-blend-mode: multiply; }
.creator-slot.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--blue);
  background-image: var(--dot-sm);
  background-size: 6px 6px;
  opacity: 0.55;
}
.creator-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; overflow-wrap: anywhere; }
.creator-meta { font-size: var(--fs-label); overflow-wrap: anywhere; }
.creator-bio { margin-top: 8px; font-size: 0.98rem; line-height: 1.45; }
.creators-more { margin-top: 32px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 900px) { .creators-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 559px) {
  .creators-grid { grid-template-columns: 1fr; gap: 20px; }
  .creator { grid-template-columns: 104px 1fr; column-gap: 16px; padding: 16px; }
  .creator-slot { grid-row: 1 / span 4; aspect-ratio: 1; margin: 0; align-self: start; }
  .creator-num { font-size: 3rem; }
  .creator-bio { margin-top: 4px; }
}
@media (min-width: 560px) and (max-width: 899px) { .creators-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- Getting there ---------- */
.lead-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: var(--stack); }
.lead-stat .n { font-family: var(--display); font-weight: 900; font-size: clamp(9rem, 4rem + 22vw, 20rem); line-height: 0.78; }
.lead-stat .l { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-label); font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); }
.routes { display: grid; gap: 24px; margin-bottom: 32px; }
/* Equal-height cards: the steps grow, the boat bar sits on the bottom edge */
.route { display: flex; flex-direction: column; border: var(--rule); background: var(--paper); min-width: 0; }
.route-head { display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.route-code { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 0.9; }
.route-from { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; }
.route-steps { flex: 1; padding: 8px 16px 18px; display: grid; gap: 14px; align-content: start; }
.route-steps li { padding-top: 6px; }
.step-label { display: block; font-size: var(--fs-label); margin-bottom: 2px; }
.boats { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
.boats div { padding: 12px 16px 14px; min-width: 0; }
.boats div + div { border-left: var(--rule); background: var(--ink); color: var(--paper); }
.boats .step-label { font-size: 0.75rem; }
.boats .t { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; }
.boat-note { display: block; font-family: var(--cond); font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin-top: 4px; }
.last-ferry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: var(--red);
  color: var(--paper);
  padding: 16px;
  margin-bottom: 48px;
  font-weight: 600;
}
.last-ferry strong { font-family: var(--display); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--red); background: var(--paper); padding: 2px 14px; }
/* Ruled list: a thick rule above each item, heading left and text right on desktop */
.info-cards { display: grid; }
.info-card { border-top: var(--rule); padding: 18px 0 24px; }
.info-card h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; margin-bottom: 10px; }
.info-card p { margin: 0; }
@media (min-width: 760px) {
  .info-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
  .info-card h3 { margin: 0; }
}
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Watch: ruled list ---------- */
.channels { display: grid; margin: 32px 0; }
.channel { border-top: 3px solid var(--paper); padding: 18px 0 24px; }
.channel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.channel-code { display: inline-block; font-size: 0.875rem; background: var(--paper); color: var(--ink); padding: 2px 10px; }
.channel.is-day1 .channel-code { background: var(--red); color: var(--paper); }
.channel.is-day2 .channel-code { background: var(--blue); color: var(--paper); }
.channel h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 0.95; }
.channel p { margin: 0; }
.channel-time { font-family: var(--cond); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; line-height: 1.2; margin-bottom: 8px !important; }
.watch-vote { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.1rem; border-top: 3px solid var(--paper); padding-top: 18px; }
@media (min-width: 760px) {
  .channel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
  .channel-head { display: block; margin: 0; }
  .channel-code { margin-bottom: 10px; }
}

/* ---------- Registration ---------- */
.demo-notice { border: 2px dashed var(--ink); padding: 10px 14px; font-family: var(--cond); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 32px; background: var(--paper); }
.reg-form { display: grid; gap: 32px; max-width: 800px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field-label {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-ui);
  margin-bottom: 8px;
  padding: 0;
}
.type-options { display: grid; gap: 16px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-option label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border: var(--rule);
  padding: 16px;
  cursor: pointer;
  background: var(--paper);
  transition: background-color 120ms ease;
}
.type-option label:hover { background: var(--paper-2); }
.type-option .t-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); line-height: 0.9; }
.type-option .t-price { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; align-self: center; font-size: 1.1rem; }
.type-option .t-desc { grid-column: 1 / -1; font-size: 0.98rem; }
.type-option input:checked + label { background: var(--red); border-color: var(--red); color: var(--paper); }
.type-option input[value="spectator"]:checked + label { background: var(--ink); border-color: var(--ink); }
.type-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (min-width: 640px) { .type-options { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; align-content: start; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper-hi);
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 12px;
  min-height: 54px;
  width: 100%;
  transition: background-color 120ms ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:hover,
.field textarea:hover { background: #fff; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; background: #fff; }
.hint { font-size: 0.92rem; opacity: 0.85; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; cursor: pointer; }
.check:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.error { color: var(--red); font-weight: 600; font-size: 0.95rem; }
.error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.type-fields[hidden] { display: none; }

.reg-form .tz-toggle button[aria-pressed="true"],
.confirm .tz-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.reg-group { display: grid; gap: 32px; }
.reg-group[hidden] { display: none; }
.reg-form .tz-bar { margin-bottom: 14px; }
.heat-options { display: grid; gap: 14px; margin-top: 4px; }
.heat-option { position: relative; display: block; cursor: pointer; }
.heat-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.heat-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-content: start;
  border: 3px solid var(--ink);
  padding: 12px 14px 14px;
  background: var(--paper-hi);
  height: 100%;
  transition: background-color 120ms ease;
}
.heat-num { grid-row: 1 / span 3; font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 3rem + 2vw, 4.5rem); line-height: 0.82; color: var(--red); }
.heat-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 0.95; }
.heat-body .tz-time { font-family: var(--cond); font-weight: 700; letter-spacing: 0.04em; }
.heat-games { font-size: 0.92rem; opacity: 0.85; }
.heat-option:hover .heat-body { background: var(--paper-2); }
.heat-option input:checked + .heat-body { background: var(--red); border-color: var(--red); color: var(--paper); }
.heat-option input:checked + .heat-body .heat-num { color: var(--paper); }
.heat-option input:checked + .heat-body .heat-games { opacity: 1; }
.heat-option input:focus-visible + .heat-body { outline: 3px solid var(--focus); outline-offset: 3px; }
/* No heat picked on submit: every card turns red, like the text fields */
.heat-options.is-invalid .heat-body { border-color: var(--red); }
.checks.is-invalid { outline: 3px solid var(--red); outline-offset: 6px; }
@media (min-width: 640px) { .heat-options { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .heat-options { grid-template-columns: repeat(3, 1fr); } }

.edit-banner { border: 3px solid var(--ink); background: var(--paper-2); padding: 12px 16px; }
.edit-banner p { margin: 0 0 6px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  cursor: pointer;
  min-height: 44px;
}
.link-btn:hover,
.link-btn:focus-visible { text-decoration-thickness: 4px; }

.confirm { border: var(--rule); max-width: 800px; background: var(--paper); }
.confirm-head { background: var(--red); color: var(--paper); padding: 18px 20px; }
.confirm.is-spectator .confirm-head { background: var(--ink); }
.confirm-ticket { font-size: var(--fs-label); margin-bottom: 8px; }
.confirm-head h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h2); line-height: 0.9; }
.confirm-body { padding: 20px; }
.confirm dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 16px; }
.confirm dt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-ui); }
.confirm dd { margin: 0; overflow-wrap: anywhere; }
.confirm-sub { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.1rem; margin: 28px 0 12px; border-top: 3px solid var(--ink); padding-top: 14px; }
.confirm-body > .confirm-sub:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.confirm-times { display: grid; border-top: 2px solid var(--ink); }
.confirm-times li { display: grid; gap: 2px 16px; padding: 12px 0; border-bottom: 2px solid var(--ink); }
.ct-label { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 0.95; }
.ct-note { font-size: 0.95rem; }
.ct-time { font-family: var(--cond); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; }
@media (min-width: 640px) {
  .confirm-times li { grid-template-columns: 1fr auto; align-items: baseline; }
  .ct-note { grid-column: 1; grid-row: 2; }
  .ct-time { grid-column: 2; grid-row: 1 / span 2; }
}
.confirm-next { list-style: decimal; padding-left: 1.4em; display: grid; gap: 12px; margin-bottom: 8px; max-width: var(--measure); }
.confirm-next li { padding-left: 4px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 4px 28px; border-top: 3px solid var(--ink); padding-top: 8px; }
.confirm .ics-btn { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: var(--rule); max-width: 920px; }
.faq-item { border-bottom: var(--rule); }
.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.05;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.faq-item .q-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  transition: transform 160ms ease, background-color 120ms ease, color 120ms ease;
}
.faq-item .a { padding: 0 0 22px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 32px + 4vw, 96px) 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 28px; }
.footer-word { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 1rem + 11vw, 11rem); line-height: 0.85; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; border-bottom: 3px solid transparent; }
.footer-links a:hover,
.footer-links a:focus-visible { border-bottom-color: var(--paper); }
.footer-small { font-size: 0.95rem; opacity: 0.85; margin: 0; max-width: var(--measure); }

/* ---------- Loading / error ---------- */
.load-error { padding: 48px var(--gutter); max-width: var(--max); margin: 0 auto; }
.load-error h1, .load-error h2 { font-family: var(--display); font-weight: 900; font-size: 2.5rem; text-transform: uppercase; color: var(--red); }

/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 104px; }
@media (min-width: 960px) { section[id] { scroll-margin-top: 72px; } }

/* ---------- Time zones ---------- */
.tz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 var(--stack); }
.tz-toggle { display: inline-flex; flex-wrap: wrap; border: 3px solid currentColor; }
.tz-toggle button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: var(--tr-ui);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.tz-toggle button + button { border-left: 3px solid currentColor; }
.tz-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.tz-toggle button:hover:not([aria-pressed="true"]),
.tz-toggle button:focus-visible:not([aria-pressed="true"]) { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.tz-zone { margin: 0; font-weight: 600; letter-spacing: 0.02em; font-size: var(--fs-ui); }

.tz-time { font-variant-numeric: tabular-nums; }
.tz-block .tz-primary, .tz-block .tz-secondary, .tz-boat .tz-primary, .tz-boat .tz-secondary { display: block; }
.tz-secondary { font-weight: 600; opacity: 0.85; }
.tz-block .tz-secondary { font-size: 0.85em; letter-spacing: 0.04em; }
.tz-boat .tz-secondary { font-family: var(--cond); font-size: 0.95rem; letter-spacing: 0.04em; }
.tz-inline { white-space: nowrap; }
.tz-inline .tz-secondary { white-space: normal; }

/* ---------- Calendar buttons ---------- */
.ics-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 12px;
  padding: 4px 12px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
/* Hover inverts: ink on light grounds, paper on dark ones */
.ics-btn:hover,
.ics-btn:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section-ink .ics-btn:hover, .section-ink .ics-btn:focus-visible,
.section-blue .ics-btn:hover, .section-blue .ics-btn:focus-visible,
.countdown .ics-btn:hover, .countdown .ics-btn:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* Per-day buttons carry the day color */
.ics-btn.is-day1 { background: var(--red); border-color: var(--red); color: var(--paper); }
.ics-btn.is-day2 { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.ics-btn.is-day1:hover, .ics-btn.is-day1:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--red); }
.ics-btn.is-day2:hover, .ics-btn.is-day2:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--blue); }
.countdown .ics-btn { margin-top: 0; }

/* ---------- Color restoration ---------- */
/* Hero text always sits above the bracket motif */
.hero h1, .hero-facts, .countdown, .hero-sub, .hero-ctas, .hero-numerals { z-index: 1; }
.hero-sun { display: none; }
.hero-bracket {
  position: absolute;
  z-index: 0;
  display: none;
  right: calc(var(--gutter) * -1 - 90px);
  width: min(52vw, 640px);
  height: auto;
  pointer-events: none;
}
.hb-lines { stroke: var(--blue); opacity: 0.3; }
.hb-final { fill: var(--yellow); }
@media (min-width: 1000px) { .hero-bracket { display: block; } }

/* Hero stats: 300 and 18 red, 6 blue, champion on yellow with an ink 1 and crown */
.hero-numerals .tone-red .n { color: var(--red); }
.hero-numerals .tone-blue .n { color: var(--blue); }
.hero-numerals .is-feature { background: var(--yellow); color: var(--ink); }
.hero-numerals .is-feature .crown { color: var(--ink); }

/* Headings: one colored phrase */
.hl-red { color: var(--red); }
.hl-blue { color: var(--blue); }
.hl-yellow { background: var(--yellow); color: var(--ink); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Countdown: paper split-flap tiles with red numerals on the blue block */
.flap { background: var(--paper); color: var(--red); text-align: center; }
.flap::after { background: var(--blue); }
.countdown-units .l { color: var(--paper); }

/* About: How the bracket works, five blocks joined like a bracket */
.steps-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); line-height: 0.95; margin: clamp(40px, 5vw, 64px) 0 20px; }
.steps { display: grid; gap: 24px; }
.step { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 16px 20px; color: var(--paper); min-width: 0; }
.step.tone-red { background: var(--red); }
.step.tone-blue { background: var(--blue); }
.step.tone-yellow { background: var(--yellow); color: var(--ink); }
.step-num { position: relative; display: inline-block; justify-self: start; font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 0.85; }
.step.tone-yellow .step-num { margin-top: 0.3em; }
.step .crown { color: var(--ink); }
.step-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.step-detail { font-size: 0.98rem; line-height: 1.4; }
/* Connectors: thick ink lines between blocks, vertical when stacked */
.step:not(:last-child)::after { content: ""; position: absolute; background: var(--ink); left: 28px; bottom: -24px; width: 8px; height: 24px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step:not(:last-child)::after { left: auto; bottom: auto; right: -24px; top: 36px; width: 24px; height: 8px; }
}

/* Schedule: the Day 2 finale and podium carry the yellow mark */
.session.is-gold .session-code { background: var(--yellow); color: var(--ink); }

/* Games: each day group opens with a full-width color bar */
.games-day { padding: 10px 14px 8px; color: var(--paper) !important; }
.games-group.is-day1 .games-day { background: var(--red); }
.games-group.is-day2 .games-day { background: var(--blue); }

/* Watch is a blue section: the Day 2 code flips to paper so it stays visible */
.section-blue .channel.is-day2 .channel-code { background: var(--paper); color: var(--blue); }

/* Getting there: the last-ferry warning is a full-width red field */
.last-ferry { max-width: none !important; font-size: 1.1rem; padding: 22px 20px; }

/* FAQ: three groups, each with a full-width color bar and a toggle square in its color */
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group-label { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1; padding: 12px 16px 10px; color: var(--paper); }
.faq-group.tone-red .faq-group-label { background: var(--red); }
.faq-group.tone-blue .faq-group-label { background: var(--blue); }
.faq-group.tone-yellow .faq-group-label { background: var(--yellow); color: var(--ink); }
.faq-group .faq-list { border-top: 0; max-width: none; }
.faq-item .q-icon { width: 30px; height: 30px; border: 0; color: var(--paper); background: var(--ink); font-size: 1.3rem; }
.faq-item .q-icon::before { content: "+"; }
.faq-item[open] .q-icon::before { content: "\2212"; }
.faq-item[open] .q-icon { transform: none; }
.faq-group.tone-red .q-icon, .faq-group.tone-red .faq-item[open] .q-icon { background: var(--red); color: var(--paper); }
.faq-group.tone-blue .q-icon, .faq-group.tone-blue .faq-item[open] .q-icon { background: var(--blue); color: var(--paper); }
.faq-group.tone-yellow .q-icon, .faq-group.tone-yellow .faq-item[open] .q-icon { background: var(--yellow); color: var(--ink); }
.faq-item summary:hover .q-icon, .faq-item summary:focus-visible .q-icon { outline: 3px solid var(--ink); outline-offset: 2px; }
.faq-group.tone-red .faq-item[open] .q-text { color: var(--red); }
.faq-group.tone-blue .faq-item[open] .q-text { color: var(--blue); }
.faq-group.tone-yellow .faq-item[open] .q-text { background: var(--yellow); color: var(--ink); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Route cards: one color per route ---------- */
.route { --route: var(--red); --route-text: var(--paper); --route-label: var(--red); transition: transform 120ms ease, box-shadow 120ms ease; }
.route-b { --route: var(--blue); --route-label: var(--blue); }
.route-r { --route: var(--yellow); --route-text: var(--ink); --route-label: var(--ink); }
/* Same header height on every card, even when a title wraps */
.route-head { background: var(--route); color: var(--route-text); min-height: 5.75rem; }
.route-code { display: inline-grid; place-items: center; flex: 0 0 auto; width: 3.25rem; height: 3.25rem; background: var(--paper); color: var(--route); font-size: 2.4rem; line-height: 1; }
.route-r .route-code { color: var(--ink); }
.route .route-steps .step-label { color: var(--route-label); }
/* Last boat back is a warning, so it is red on every card */
.route .boats div + div { background: var(--red); color: var(--paper); }
/* Hover or keyboard focus inside a card: lift with a hard block in the route color */
.route:hover, .route:focus-within { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--route); }
@media (prefers-reduced-motion: reduce) {
  .route:hover, .route:focus-within { transform: none; box-shadow: none; }
}

/* ---------- Top bar ---------- */
.site-header { border-bottom: 0; padding-bottom: 6px; }
@media (min-width: 960px) { .site-header { padding-bottom: 16px; } }
/* A 6px stripe of three flat blocks replaces the bottom border */
.header-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.header-stripe span { flex: 1 1 0; }
.header-stripe span:nth-child(1) { background: var(--red); }
.header-stripe span:nth-child(2) { background: var(--blue); }
.header-stripe span:nth-child(3) { background: var(--yellow); }
.brand-mark { background: var(--red); border-color: var(--red); color: var(--paper); }
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark { background: var(--paper); color: var(--red); }
.nav-list a:hover,
.nav-list a:focus-visible { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Notes from the ops side: ruled list on ink ---------- */
.notes-subhead { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h4); line-height: 1; margin: 8px 0 12px; }
.notes-list { display: grid; margin-bottom: 32px; }
.notes-list li { border-top: 3px solid var(--paper); padding: 16px 0 20px; }
.notes-list h4 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-ui); margin: 0 0 6px; }
.notes-list p { margin: 0; }
@media (min-width: 760px) {
  .notes-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
  .notes-list h4 { margin: 0; }
}

/* Notes: keep the halftone in the top-right corner and lighter, so it never sits behind the body text */
#notes { --ht-at: 100% 0%; --ht-alpha: 0.35; }
@media (max-width: 759px) { #notes { --ht-alpha: 0.2; } }

/* Heat cards: every card the same size; the shared games and the Heat 1 boat note sit outside the grid */
.heat-options { grid-auto-rows: 1fr; align-items: stretch; }
.heat-meta { font-size: 0.92rem; }
.heat-line { margin: 12px 0; font-weight: 600; }
.heat-body .heat-num { grid-row: 1 / span 4; }
.heat-body > :not(.heat-num) { grid-column: 2; }
