/* Peter's Yard Christmas 2026
   The page is the pack unfolded: cream box-board, navy bands, flavour bands,
   and the board pinned to the bottom of the screen. */

:root {
  --navy: #243746;
  --navy-deep: #1a2833;
  --paper: #f5efe4;
  --paper-2: #ece3d3;
  --card: #fbf8f2;
  --ink: #243746;
  --muted: #4f5c66;
  --gold: #9e8377;
  --gold-hi: #c9b4a8;    /* brand taupe, lifted for small text on navy */
  --gold-ink: #7a5f53;   /* brand taupe, deepened so white text and small labels pass AA */
  --warm: #e2a46c;       /* Original pack orange, lifted for use on navy */
  --accent: #bb6125;
  --line: rgba(36, 55, 70, .18);
  /* The pairing on show. app.js sets both when the wheel lands. */
  --c: var(--accent);
  --c-deep: #a65621;
  --head: "bicyclette", "Jost", system-ui, sans-serif;
  --body: "urw-din", "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  /* Every section pads to the same edge: the gutter on small screens, the centred
     1240px column on wide ones. */
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --section: clamp(56px, 8vw, 112px);
  --dock-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 12.5l9-9M5.5 3.5h7v7' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (min-width: 900px) { :root { --dock-h: 76px; } }
/* On the narrowest phones the dock's title and link wrap, so it stands taller. */
@media (max-width: 374px) { :root { --dock-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  /* Quick taps on the game's buttons must not trigger the phone's double-tap zoom; pinch still works. */
  touch-action: manipulation;
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--dock-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold) var(--paper-2);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: var(--navy); color: var(--paper); }
input, select, textarea { caret-color: var(--navy); }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--paper); color: var(--navy); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.top :focus-visible, .dock :focus-visible, .join-copy :focus-visible,
.foot :focus-visible, .board-done :focus-visible { outline-color: var(--warm); }
.expert :focus-visible { outline-color: var(--paper); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 700 16px/1.2 var(--head);
  letter-spacing: .125em; text-transform: uppercase; text-decoration: none; text-align: center;
  border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-ink); color: #fff; }
.btn-gold:hover { background: var(--navy); color: var(--paper); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--gold-ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; background: var(--muted); }
.text-link {
  display: inline-block; padding: 15px 0; margin: -15px 0;   /* a 44px tap target that takes no extra room */
  font: 700 14px/1 var(--head); letter-spacing: .125em; text-transform: uppercase;
  text-underline-offset: 6px;
}

/* ── Header: the pack's navy band, then the six flavours ── */
.top { background: var(--navy); color: var(--paper); }
.top-band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--edge);
}
.brand img { width: 88px; height: auto; }
.top-nav { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.top-nav a {
  position: relative;
  font: 700 12px/1 var(--head); letter-spacing: .125em; text-transform: uppercase;
  text-decoration: none; padding: 16px 0; white-space: nowrap;
}
.top-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px;
  background: var(--gold-hi); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.top-nav a:hover::after, .top-nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .top-nav a:not([href="#buy"]):not([href="#join"]) { display: none; }
  .brand img { width: 76px; }
}
/* One stripe per cheese style; the one on show widens. */
.flavours { display: flex; height: 8px; background: var(--gold); }
.flavours i { flex: 1 1 0; background: var(--c); transition: flex-grow .7s var(--ease); }
.flavours i.on { flex-grow: 3; }

/* ── Campaign line and wheel ── */
.play {
  padding: clamp(22px, 4vw, 56px) var(--edge) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 32px);
}
.play h1 { font-size: clamp(1.5rem, 7.4vw, 3.4rem); line-height: 1.15; margin: 0; }
.game-head h2 { font-size: clamp(1.125rem, 2.2vw, 1.5rem); }
.game-head p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0; }
/* On a phone the campaign line and the question sit centred over the wheel, as
   headings do on petersyard.com. */
@media (max-width: 899px) {
  .play h1, .game-head { text-align: center; }
  .game-head p { margin-inline: auto; }
}

/* On a phone, once a result is open the question leads straight into the answer. */
@media (max-width: 899px) { .play:has(.result-card:not([hidden])) .game-head p { display: none; } }
@media (min-width: 900px) {
  .play {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "title wheel" "intro wheel" "result wheel";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(32px, 5vw, 80px); align-items: start;
  }
  .play h1 { grid-area: title; font-size: clamp(2rem, 3.6vw, 3.4rem); }
  .wheel-wrap { grid-area: wheel; position: sticky; top: 20px; }
  .game-head { grid-area: intro; }
  .result { grid-area: result; }
}

.wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 14px; }
.wheel-stage {
  position: relative; aspect-ratio: 1;
  /* Sized against the screen height too, so the whole wheel sits above the board
     on first paint in an in-app browser (about 660px tall). */
  width: min(100%, 540px, max(240px, 100svh - 336px));
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
/* The shadow sits on the stage so it stays put while the wheel turns. */
.wheel-stage::before {
  content: ""; position: absolute; inset: 2%; border-radius: 50%;
  box-shadow: 0 26px 44px rgba(36, 55, 70, .32);
}
.wheel { position: relative; width: 100%; height: 100%; display: block; cursor: grab; }
/* The wheel turns into place on arrival. The turn happens inside the SVG, around
   its own centre, so the page never gains a sideways scroll. */
.wheel .turn-in { transform-origin: 0 0; animation: wheel-in 1.3s var(--ease) backwards; }
@keyframes wheel-in { from { transform: rotate(-42deg); } }
.wheel.dragging { cursor: grabbing; }
.wheel .seg { cursor: pointer; }
.wheel .seg-label {
  font: 700 11.5px var(--head); letter-spacing: .16em; text-transform: uppercase;
  fill: var(--paper); pointer-events: none;
}
.wheel .seg-fill { stroke: var(--navy); stroke-width: 1.5; transition: stroke .3s; }
.wheel .seg.won .seg-fill { stroke: var(--paper); stroke-width: 4; }
.wheel .seg-icon { pointer-events: none; }
.wheel .tick { fill: var(--gold-hi); }

/* The pointer sits above the wheel and only its tip reaches the rim, clear of the labels. */
.pointer {
  position: absolute; top: -26px; left: 50%; width: 32px; height: 38px;
  transform: translateX(-50%); transform-origin: 50% 12px; z-index: 3;
  fill: var(--gold-ink); stroke: var(--paper); stroke-width: 2;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}
.pointer circle { fill: var(--paper); stroke: none; }
.pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-16deg); } 100% { transform: translateX(-50%) rotate(0); } }

.spin-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 27%; aspect-ratio: 1; border-radius: 50%;
  border: 5px solid var(--paper); background: var(--navy); color: var(--paper);
  font: 700 clamp(14px, 2.4vw, 20px)/1 var(--head); letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background .2s, transform .15s;
}
.spin-hub:hover { background: var(--gold-ink); }
.spin-hub:active { transform: translate(-50%, -50%) scale(.96); }
.spin-hub[disabled] { cursor: progress; background: var(--navy-deep); }
.hub-word { padding-left: .2em; }

.wheel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 12px; }
.wheel-hint { color: var(--muted); font-size: 15px; margin: 0; text-align: center; }
.style-picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.style-picker button {
  font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 4px; min-height: 44px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
.style-picker button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.style-picker button:hover { border-color: var(--c-deep); background: #fff; }
/* Several wheel colours are too light for white text, so the chosen one keeps
   dark text and takes the colour as a heavy outline instead. */
.style-picker button[aria-pressed="true"] { border-color: var(--c-deep); box-shadow: inset 0 0 0 1.5px var(--c-deep); background: #fff; }
.sound-toggle {
  border: 0; background: none; color: var(--muted); cursor: pointer; min-height: 44px;
  font: 500 14px var(--body); text-decoration: underline; text-underline-offset: 4px; padding: 6px 12px;
}

/* ── Result: the pairing. The cheese, then the pack's navy band and flavour band. ── */
.result { display: grid; gap: 16px; align-content: start; }
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: 0 22px 44px -18px rgba(36, 55, 70, .4);
  scroll-margin-top: 12px;
  --photo-h: clamp(150px, 22vw, 230px);
}
.rc-face { position: relative; overflow: hidden; }
.rc-photo { width: 100%; height: var(--photo-h); object-fit: cover; background: var(--paper-2); transform-origin: 50% 100%; }
/* The cracker sits where the cheese meets the navy band. */
.rc-cracker {
  position: absolute; right: clamp(14px, 3vw, 26px); top: calc(var(--photo-h) - 62px); z-index: 1;
  width: 104px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(26, 40, 51, .35));
}
.rc-navy { background: var(--navy); color: var(--paper); padding: 26px clamp(18px, 3vw, 28px) 18px; }
.rc-persona { font-size: clamp(1.25rem, 5.6vw, 2rem); margin: 0; overflow-wrap: anywhere; }
.rc-persona span {
  display: block; margin-bottom: 4px;
  font: 500 16px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--gold-hi);
}
.rc-band {
  margin: 0; padding: 12px clamp(18px, 3vw, 28px);
  background: var(--band, var(--c-deep)); color: var(--band-ink, #fff);
  font: 700 13px/1.3 var(--head); letter-spacing: .125em; text-transform: uppercase;
}
.rc-body { padding: clamp(18px, 3vw, 28px); }
/* The choice: add this cheese to the board, take it off, or spin again. */
.rc-act { display: grid; justify-items: center; gap: 4px; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rc-on, .rc-full { margin: 0 0 6px; width: 100%; }
.rc-on { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; font: 700 15px/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--c-deep); }
.rc-full { color: var(--muted); }
.rc-act .rc-again, .rc-act .rc-remove { margin: 0; }
.rc-persona-line { font-size: 18px; line-height: 1.45; margin-bottom: 18px; }
.rc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.rc-facts dd { margin: 0; font: 700 15px/1.35 var(--head); letter-spacing: .1em; text-transform: uppercase; }
/* The brand's pre-heading: small URW DIN capitals above a Bicyclette line. */
.rc-label { font: 400 14px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.rc-pair { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; margin: 18px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.rc-pair img { width: 132px; height: auto; aspect-ratio: 768 / 430; object-fit: cover; border-radius: 3px; }
/* A pack photographed on white: the white drops out so the pack sits on the page's own cream. */
.is-cutout { display: block; background: var(--paper-2); }
.rc-pair .is-cutout { border-radius: 3px; }
.is-cutout img { mix-blend-mode: multiply; }
.rc-cracker-name { font: 700 18px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; color: var(--c-deep); }
.rc-cracker-name span { display: block; margin-bottom: 6px; font: 400 14px/1.3 var(--body); letter-spacing: .1em; color: var(--muted); }
.rc-cracker-name a { text-decoration: none; }
.rc-cracker-name a:hover { text-decoration: underline; }
.rc-view { display: inline-block; padding: 16px 0; margin: -8px 0 -16px; font: 700 12px/1 var(--head); letter-spacing: .125em; text-transform: uppercase; text-underline-offset: 5px; }
.rc-copy { color: var(--muted); margin: 0; }
.rc-buy { padding: 16px clamp(18px, 3vw, 28px) clamp(18px, 3vw, 24px); background: var(--paper-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 4px; background: var(--navy); color: var(--paper); text-decoration: none;
  font: 700 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s;
}
.chip:hover { background: var(--gold-ink); color: #fff; }
.chip::after {
  content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.chip:hover::after { transform: translate(2px, -2px); }
.rc-again, .rc-remove {
  margin-top: 14px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 700 13px/1 var(--head); letter-spacing: .125em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px;
}
.rc-again:hover, .rc-remove:hover { color: var(--gold-ink); }
@media (max-width: 420px) { .rc-pair { grid-template-columns: 104px 1fr; } .rc-pair img { width: 104px; } }

/* The reveal: the card opens downwards, then each band wipes across. */
.result-card { animation: card-in .7s var(--ease) both; }
.rc-photo { animation: photo-in 1.1s var(--ease) both; }
.rc-navy { animation: band-in .6s var(--ease) .1s both; }
.rc-band { animation: band-in .6s var(--ease) .22s both; }
.rc-cracker { animation: cracker-in .8s var(--ease) .2s both; }
@keyframes card-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -60px 0); } }
@keyframes band-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes cracker-in { from { transform: rotate(-80deg) scale(.5); opacity: 0; } }
@keyframes photo-in { from { transform: scale(1.12); } }

.board-done {
  justify-self: stretch; margin: 6px 0;
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 28px);
  background: var(--navy); color: var(--paper); border-radius: 6px;
}
.board-done p { margin: 0; font-size: 18px; flex: 1 1 260px; }
.board-done strong { font: 700 1em var(--head); letter-spacing: .1em; text-transform: uppercase; }
.board-done .btn-gold:hover { background: var(--paper); color: var(--navy); }

/* ── The board, pinned to the bottom of the screen ── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--navy); color: var(--paper);
  border-top: 4px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -12px 30px rgba(26, 40, 51, .22);
  transition: transform .4s var(--ease);
}
/* Step aside while someone is typing in the sign-up form. */
body:has(.join-form :is(input:not([type="checkbox"]), select):focus) .dock { transform: translateY(105%); }
.dock-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter); }
.dock-tab { display: grid; gap: 5px; min-width: 0; }
.dock-tab h2, .board-count { margin: 0; font: 700 12px/1.2 var(--head); letter-spacing: .125em; text-transform: uppercase; }
.board-count { font: 400 13px/1.2 var(--body); letter-spacing: .1em; color: var(--gold-hi); }
/* Once the board is set, the count becomes the way to the shops. */
.board-count a { display: inline-block; padding: 15px 0; margin: -15px 0; color: var(--paper); }
/* Three places, each filled by a round of the chosen cheese. */
.board-slots { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.slot button {
  display: block; width: 48px; height: 48px; padding: 0; overflow: hidden;
  border-radius: 50%; border: 2px dashed rgba(245, 239, 228, .45);
  background: rgba(255, 255, 255, .04); color: inherit; font: inherit;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot button:disabled { cursor: default; }
.slot.filled button { border: 2px solid var(--c); cursor: pointer; }
.slot.filled button:hover { transform: translateY(-3px); }
/* The narrowest phones: smaller places, so the title beside them keeps its room. */
@media (max-width: 374px) { .board-slots { gap: 8px; } .slot button { width: 44px; height: 44px; } }
.slot.current button { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--paper); }
.dock-buy { display: none; }
@media (min-width: 900px) {
  .dock-inner { justify-content: flex-start; gap: 28px; padding: 0 var(--edge); min-height: 72px; }
  .board-slots { gap: 14px; margin-right: auto; }
  .slot button { width: 52px; height: 52px; }
  .dock-buy {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    font: 700 13px/1 var(--head); letter-spacing: .125em; text-transform: uppercase; text-decoration: none;
  }
  .dock-buy::after {
    content: ""; width: 14px; height: 14px; background: currentColor; rotate: 135deg;
    -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
    transition: transform .3s var(--ease);
  }
  .dock-buy:hover { color: var(--warm); }
  .dock-buy:hover::after { transform: translate(2px, -2px); }
}

/* A round of cheese on its way from the Add button to the board, and the finished-board burst. */
.flyer { position: fixed; z-index: 60; pointer-events: none; transform-origin: 0 0; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 10px 14px rgba(26, 40, 51, .4); }
.crumb { position: fixed; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; z-index: 60; }

/* ── The table: the campaign photograph, then the lede on the navy band ── */
.table { background: var(--navy); color: var(--paper); }
.table-photo { height: clamp(230px, 25vw, 520px); overflow: hidden; container-type: inline-size; }
.table-photo img {
  height: 100%; width: auto; min-width: 100%; max-width: none; object-fit: cover;
  transform: translateX(calc((100cqw - 100%) / 2));
}
.table-band { position: relative; padding: clamp(92px, 8vw, 112px) var(--edge) clamp(48px, 8vw, 104px); }
.lede { font: 400 clamp(1.125rem, 2.3vw, 1.75rem)/1.5 var(--body); max-width: 30em; margin: 0; text-wrap: pretty; }
.stamp { position: absolute; right: var(--edge); top: 0; translate: 0 -50%; width: clamp(136px, 14vw, 176px); fill: var(--paper); }
.stamp-rule { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.stamp text { font-family: var(--head); font-weight: 700; text-transform: uppercase; fill: var(--gold-ink); }
.stamp-ring { letter-spacing: .06em; }
.stamp-turn { transform-box: view-box; transform-origin: 50% 50%; }
.stamp-small { letter-spacing: .18em; }
.stamp .stamp-16 { fill: var(--navy); }

/* ── Section headings ── */
.section-head { margin: 0 0 clamp(26px, 4vw, 52px); display: grid; gap: 14px 48px; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin: 0; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 0; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* ── Where to buy: one row per cracker, each led by its flavour band, like packs on a shelf ── */
.range { padding: var(--section) var(--edge); }
/* Which shop stocks the most of your board; shown once there is a board. */
.buy-best { margin: 0 0 20px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 18px; }
.buy-best a { display: inline-block; padding: 10px 0; margin: -10px 0; font-weight: 500; }
.buy-note { margin: 20px 0 0; color: var(--muted); }
.range-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.range-item { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--card); border-radius: 4px; overflow: hidden; }
.range-main { display: grid; grid-template-columns: minmax(0, 1fr) 44%; text-decoration: none; }
.range-band { display: flex; align-items: center; padding: 12px 16px; background: var(--band, var(--c-deep)); color: var(--band-ink, #fff); }
.range-band h3 { font-size: clamp(.875rem, 3.6vw, 1rem); line-height: 1.3; margin: 0; }
.range-photo { overflow: hidden; background: var(--paper-2); }
.range-photo img { width: 100%; height: 100%; aspect-ratio: 768 / 430; object-fit: cover; transition: transform .6s var(--ease); }
.range-main:hover .range-photo img { transform: scale(1.06); }
.range-text { padding: 12px 16px 16px; display: grid; gap: 6px; align-content: center; font-size: 15px; }
.range-text p { margin: 0; }
.range-match { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 500; }
.range-match img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; flex: none; }
.range-on { margin-left: auto; color: var(--c-deep); font: 500 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.range-line { color: var(--muted); }
/* The shop links are the way to buy, so each is a full-height tap target. */
.range-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 4px 0 -11px; }
.range-buy .rc-label { flex-basis: 100%; margin: 0 0 -6px; }
.range-buy a { display: inline-block; padding: 11px 0; font-weight: 500; }
/* The row clips its corners, which would clip the link's focus ring, so the row wears it. */
.range-main:focus-visible { outline: none; }
.range-item:has(.range-main:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 900px) {
  .range-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .range-main { grid-template-columns: minmax(0, 1fr) clamp(200px, 20vw, 264px); }
  .range-band { padding: 20px 28px; }
  .range-band h3 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
  .range-text { padding: 16px 28px; font-size: 16px; }
  .range-match img { width: 44px; height: 44px; }
}

/* ── Sign-up ── */
.join {
  background: var(--navy); color: var(--paper);
  padding: var(--section) var(--edge);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.join-copy { max-width: 520px; }
@media (max-width: 899px) { .join { grid-template-columns: minmax(0, 1fr); } }
.join-copy h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.join-copy p { font-size: 18px; }
.join-copy .join-small { font-size: 15px; color: var(--gold-hi); }
.join-form { background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font: 400 14px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 16px var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid rgba(36, 55, 70, .45); border-radius: 4px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(36, 55, 70, .2); }
.field [aria-invalid="true"] { border-color: #a5281b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 6px 0 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin-bottom: 14px; }
.form-msg { margin: 12px 0 0; min-height: 1.6em; font-size: 15px; }
.form-msg.err { color: #a5281b; }
.join-done { text-align: center; padding: 12px 0; }
.join-done h3 { font-size: clamp(1.125rem, 2.2vw, 1.5rem); }

/* ── Instagram ── */
.social { padding: var(--section) var(--edge); }
.section-head a { font-weight: 500; }
.insta-grid { list-style: none; margin: 0; padding: 0 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.insta-grid li:nth-child(even) { margin-top: 32px; margin-bottom: -32px; }
@media (min-width: 760px) { .insta-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.insta-grid a { display: block; overflow: hidden; border-radius: 4px; }
.insta-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; transition: transform .7s var(--ease); }
.insta-grid a:hover img { transform: scale(1.05); }
.expert {
  margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(24px, 4vw, 44px);
  border-radius: 6px; background: var(--gold-ink); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
}
@media (max-width: 759px) { .expert { grid-template-columns: 1fr; } }
.expert h3 { font-size: clamp(1.125rem, 2.2vw, 1.5rem); margin-bottom: .45em; }
.expert p { margin: 0; max-width: 56ch; }
.expert .btn-navy:hover { background: var(--paper); color: var(--navy); }
.expert-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.social-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin: 32px 0 0; }

/* ── Footer ── */
.foot { background: var(--navy-deep); color: var(--paper); padding: 40px var(--edge); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-logo { width: 92px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-block; padding: 11px 0; text-decoration: none; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
.foot .copy { margin: 0; font-size: 14px; color: var(--gold-hi); }

/* ── Scroll-linked motion ──
   Where the browser supports it, the table photograph pans from one end to the
   other as it passes, the stamp's lettering turns, and alternate Instagram
   photographs drift against their neighbours. Everywhere else they sit still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .table-photo img { animation: pan linear both; animation-timeline: view(); animation-range: entry 15% exit 85%; }
    .stamp-turn { animation: turn linear both; animation-timeline: view(); }
    .insta-grid li:nth-child(even) { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes pan { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 100%)); } }
@keyframes turn { from { transform: rotate(-150deg); } to { transform: rotate(150deg); } }
@keyframes drift { from { transform: translateY(26px); } to { transform: translateY(-26px); } }

@media (prefers-reduced-motion: reduce) {
  .wheel .turn-in, .result-card, .rc-photo, .rc-navy, .rc-band, .rc-cracker, .pointer.tick { animation: none; }
  .flavours i, .slot button, .dock,
  .top-nav a::after, .chip::after, .dock-buy::after, .range-photo img, .insta-grid img { transition: none; }
}
