/* ==========================================================================
   THE POSTER PASS (9 September 2026).

   Harry: "cooler website design — a bit more space, font not straight
   everywhere, graphic design elements, clean and clear." The brand contract
   already asks for asymmetric rhythm, oversized type and deliberately
   unresolved composition; this file takes THE PICK, THE REVEAL, the front
   door and the matchup header from boxed grid to poster: cream ground with
   air, one disc per surface, display type allowed off-axis, a caption that
   runs up the edge, a corner mark, the goat in the dot. Nothing tappable is
   rotated; every id, order and tap target the app and the tests rely on is
   untouched. Loaded after goat-refined.css so every override is explicit.
   ========================================================================== */

:root {
  --poster-ink: #101119;
  --poster-cream: #fff4df;
  --poster-cobalt: #1149c9;
  --poster-red: #ff4b32;
  --poster-orange: #ffad20;
  --poster-rule: rgba(16, 17, 25, .18);
  --poster-muted: #5d5a54;
}

/* ------------------------------------------------------------- devices */
.poster-disc,
.poster-slash,
.poster-corner,
.poster-edge { position: absolute; z-index: 0; pointer-events: none; }
.poster-disc { width: min(72vw, 520px); aspect-ratio: 1; border-radius: 50%; background: var(--poster-red); }
.poster-slash { width: 84px; height: 3px; background: var(--poster-ink); transform: rotate(-24deg); }
.poster-slash::after { content: ""; position: absolute; left: 26px; top: 13px; width: 52px; height: 3px; background: var(--poster-ink); }
.poster-corner { top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 30px 30px 0; border-color: transparent var(--poster-orange) transparent transparent; }
.poster-edge {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 800 9px/1 "Archivo", sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--poster-ink);
  opacity: .55;
  white-space: nowrap;
}

/* ------------------------------------------------------------ THE PICK */
.pick {
  position: relative;
  overflow: hidden;
  padding: 118px clamp(20px, 5vw, 72px) 60px;
  border-bottom: 3px solid var(--poster-ink);
}
.pick > .pick-bar,
.pick > .pick-slabs,
.pick > .pick-modes,
.pick > .pick-run,
.pick > .pick-premise { position: relative; z-index: 1; }
.pick .poster-disc { right: -14%; top: -12%; width: min(52vw, 420px); }
.pick .poster-slash { left: 3%; top: 40%; display: none; }
.pick .poster-edge { left: 8px; bottom: 34px; }

/* Sport tabs: words on a hairline, a red marker under the live one. The
   four cells keep their ids, order and 48px targets. */
.pick-bar { align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.pick-sports {
  display: flex;
  gap: clamp(12px, 4.2vw, 30px);
  border: 0;
  border-bottom: 2px solid var(--poster-ink);
  background: transparent;
}
.pick-sport {
  flex: 0 0 auto;
  min-height: 48px;
  margin-bottom: -2px;
  padding: 0 2px 10px;
  border-bottom: 5px solid transparent;
  background: transparent;
  font-size: 19px;
  letter-spacing: .06em;
}
.pick-sport.active { border-bottom-color: var(--poster-red); }
/* The sound switch beside the header menu keeps the 48px floor; it is the one
   item in .pick-bar that could shrink at 320px, so the size is pinned. */
.pick-sound { flex: 0 0 48px; width: 48px; min-height: 48px; border: 2px solid var(--poster-ink); background: transparent; }

/* Slabs: their own colours, no black frame, a big translucent crest behind
   an angled name. The VS becomes the orange disc on the seam. */
.pick-slabs { position: relative; border: 0; gap: 0; }
.pick-slab { position: relative; overflow: hidden; min-height: 156px; padding: 28px 22px 24px; }
.pick-slab-crest {
  position: absolute;
  right: -8px;
  top: -22px;
  font: 400 156px/1 "Anton", "Archivo Black", sans-serif;
  font-style: normal;
  letter-spacing: -.05em;
  opacity: .16;
  pointer-events: none;
}
.pick-slab b {
  position: relative;
  display: inline-block;
  max-width: 100%;
  transform: rotate(-4deg);
  transform-origin: left bottom;
  font-size: clamp(34px, 9vw, 54px);
}
.pick-slab small { position: relative; margin-top: 14px; }
/* A first-visit affordance: the slab is the control, and until the visitor
   has changed a side once it says so. Pinned to the slab's top edge, so it
   adds no height to the one-screen phone pick. */
.pick-slab-hint {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 22px;
  font: 800 10px/1 "Archivo", sans-serif;
  font-style: normal;
  letter-spacing: .16em;
  opacity: .8;
  pointer-events: none;
}
/* The VS disc sits on the seam, so side B's hint drops to the far edge. */
#pick-slab-b .pick-slab-hint { top: auto; bottom: 10px; }
body.slab-hint-seen .pick-slab-hint { display: none; }
.pick-vs {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--poster-orange);
  color: var(--poster-ink);
  font-size: 30px;
  letter-spacing: .04em;
  transform: rotate(-10deg);
  box-shadow: 4px 4px 0 var(--poster-ink);
}

/* Era toggle: two words, the live one underlined in red. */
.pick-modes { grid-template-columns: auto auto; justify-content: start; gap: 24px; margin-top: 28px; border: 0; background: transparent; }
.pick-mode {
  min-height: 44px;
  padding: 0 2px 8px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--poster-ink);
  letter-spacing: .18em;
  /* .5 put the unselected rule at 3.45:1 on cream. .7 is 6.78:1 and still
     reads as the quieter of the two next to the active word's red underline. */
  opacity: .7;
}
.pick-mode.active { background: transparent; color: var(--poster-ink); opacity: 1; border-bottom-color: var(--poster-red); }

/* RUN IT: the one hard-edged object, with the brand's offset. */
.pick-run { min-height: 84px; margin-top: 28px; border-width: 3px; box-shadow: 7px 7px 0 var(--poster-ink); }
.pick-run:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--poster-ink); }
.pick-run:disabled { box-shadow: none; }
.pick-premise { margin-top: 24px; text-align: left; letter-spacing: .26em; opacity: .7; }

/* The goat in the dot: desktop only, the keyart cropped into a circle. */
.poster-goat { display: none; }
@media (min-width: 761px) {
  .pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
    grid-template-rows: auto auto auto auto auto;
    column-gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-top: 140px;
    padding-bottom: 72px;
  }
  .pick > .pick-bar, .pick > .pick-slabs, .pick > .pick-modes, .pick > .pick-run, .pick > .pick-premise { grid-column: 1; }
  .pick-slabs { grid-template-columns: 1fr 1fr; }
  .pick-slab { min-height: 190px; }
  .pick .poster-disc { display: none; }
  .pick .poster-slash { display: block; left: auto; right: 36%; top: 92px; }
  .pick .poster-edge { left: auto; right: 14px; bottom: 60px; }
  .poster-goat {
    display: block;
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--poster-orange);
    box-shadow: 10px 10px 0 var(--poster-ink);
  }
  .poster-goat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 42%; }
  .poster-goat::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--poster-ink);
  }
}
@media (max-width: 760px) {
  /* The phone pick is one screen: the shell's own 16px top stays, the two
     slabs split whatever height the bar, the toggle and the button leave. */
  body[data-shell="phone"] .pick { padding: 20px 20px 24px 20px; }
  body[data-shell="phone"] .pick-bar { margin-bottom: 22px; }
  body[data-shell="phone"] .pick-slabs { grid-template-rows: 1fr 1fr; }
  body[data-shell="phone"] .pick-slab { min-height: 132px; }
  body[data-shell="phone"] .pick-modes { margin-top: 22px; }
  body[data-shell="phone"] .pick-run { margin-top: 22px; min-height: 78px; }
  body[data-shell="phone"] .pick .poster-disc { right: -22%; top: -30%; width: 64vw; }
}

/* ---------------------------------------------------------- THE REVEAL */
.reveal { position: relative; overflow: hidden; padding: 40px clamp(18px, 5vw, 48px) 40px; border-bottom: 3px solid var(--poster-ink); }
.reveal > * { position: relative; z-index: 1; }
.reveal .reveal-disc { position: absolute; z-index: 0; right: -24%; top: 50px; width: min(76vw, 520px); aspect-ratio: 1; border-radius: 50%; background: var(--poster-red); pointer-events: none; }
.reveal-winner {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  transform: rotate(-5deg);
  transform-origin: left bottom;
}
@keyframes revealSlam {
  from { opacity: 0; transform: rotate(-5deg) translateY(-14px) scale(1.12); }
  to { opacity: 1; transform: rotate(-5deg); }
}
.reveal-pct {
  margin-top: 22px;
  color: var(--poster-ink);
  font-size: clamp(64px, 20vw, 128px);
  text-shadow: 5px 5px 0 var(--poster-cream);
  text-align: right;
}
.reveal-evidence { margin-top: 14px; max-width: 30ch; }
.reveal-watch { border-width: 3px; box-shadow: 7px 7px 0 var(--poster-ink); }
.reveal-watch:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--poster-ink); }
.reveal-next { border-width: 2px; }

/* THE RESULT IN THE SIDE INKS (experience pass E3). Two slabs, each in its
   player's ink from js/sides.js: the winner and his number large, the loser
   and his smaller. The slabs hold still (nothing on the result rotates) and
   the text colour is the readable ink js/app.js sets inline. */
.reveal-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 3px solid var(--poster-ink); }
.reveal-row + .reveal-row { border-top: 0; }
.reveal-row .reveal-winner { margin: 0; transform: none; color: inherit; text-shadow: none; font-size: clamp(34px, 8.5vw, 76px); line-height: .95; animation: revealRowIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.reveal-row .reveal-pct { margin: 0; color: inherit; text-shadow: none; text-align: right; font: 400 clamp(64px, 18vw, 132px)/.85 "Anton", "Archivo Black", sans-serif; white-space: nowrap; }
.reveal-row .reveal-pct small, .reveal-lose-pct small { display: block; font: 900 11px/1.2 "Archivo", sans-serif; letter-spacing: .16em; }
.reveal-row-lose { padding: 8px 16px; }
.reveal-loser { font: 400 clamp(22px, 5.5vw, 40px)/1 "Anton", "Archivo Black", sans-serif; letter-spacing: .01em; }
.reveal-lose-pct { font: 400 clamp(30px, 8vw, 54px)/.9 "Anton", "Archivo Black", sans-serif; text-align: right; white-space: nowrap; }
@keyframes revealRowIn { from { opacity: 0; transform: translateY(-10px) scale(1.06); } to { opacity: 1; transform: none; } }
.reveal-row + .reveal-evidence { margin-top: 12px; max-width: none; }
.reveal-why {
  display: block;
  min-height: 48px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 3px solid var(--poster-ink);
  background: none;
  color: var(--poster-ink);
  font: 900 12px/1.3 "Archivo", sans-serif;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.reveal-edge { margin: 10px 0 0; font: 800 11px/1.5 "Archivo", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.reveal-send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.reveal-send-btn {
  min-height: 52px;
  border: 3px solid var(--poster-ink);
  background: var(--poster-cream);
  color: var(--poster-ink);
  font: 400 19px/1 "Anton", "Archivo Black", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
}
.reveal-era {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 3px solid var(--poster-ink);
  background: var(--poster-cream);
  color: var(--poster-ink);
  font: 900 12px/1 "Archivo", sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
}
.reveal-era b { font-weight: 900; opacity: .5; }
.reveal-era b.on { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.reveal-era i { font-style: normal; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .reveal-row .reveal-winner { animation: none; } }

/* ------------------------------------------------------- THE FRONT DOOR */
.sport-universe {
  position: relative;
  padding: 26px 0 0;
  color: var(--poster-ink);
  background: var(--poster-cream);
  border-top: 3px solid var(--poster-ink);
  border-bottom: 3px solid var(--poster-ink);
}
.sport-universe > * {
  min-height: 320px;
  padding: 38px 28px 32px;
  color: var(--poster-ink);
  border-right: 1px solid var(--poster-rule);
}
.sport-universe > *::after { width: 180px; height: 180px; right: -64px; bottom: -84px; border-width: 24px; border-color: var(--poster-orange); opacity: .85; }
.sport-universe > *:nth-child(2)::after { border-color: var(--poster-red); }
.sport-universe > *:nth-child(3)::after { border-color: var(--poster-cobalt); }
.sport-universe > *:nth-child(4)::after { border-color: var(--poster-orange); }
.sport-universe span {
  display: inline-block;
  color: var(--poster-red);
  font: 400 15px/1 "Anton", "Archivo Black", sans-serif;
  letter-spacing: .12em;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}
/* Four words across, the longest of them BASKETBALL: sized to the cell,
   never clipped by it. */
.sport-universe strong { font-size: clamp(32px, 3.8vw, 60px); letter-spacing: -.035em; }
.sport-universe > * { overflow: visible; }
@media (max-width: 760px) { .sport-universe strong { font-size: clamp(44px, 12vw, 64px); } }
.sport-universe small { color: var(--poster-muted); }
.sport-universe b { color: var(--poster-ink); border-bottom-color: var(--poster-red); }
.sport-universe button:hover { color: var(--poster-cream); background: var(--poster-ink); }
.sport-universe button:hover span { color: var(--poster-orange); }
.sport-universe button:hover small, .sport-universe button:hover b { color: var(--poster-cream); }
.sport-universe button:hover::after { border-color: var(--poster-cream); }

/* ---------------------------------------------------------- no motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-winner { animation: none; }
}


/* ------------------------------------------------------------- THE LOCKUP
   The logo was the last thing on the page still in the old system: a thin
   geometric G drawn in ink on the black masthead (so only its red horn showed)
   beside a wordmark in Archivo at 7px, 24px and 9px. It is now set like the
   rest of the site's display type: the horned G cut in Anton's weight, then
   THE GOAT MACHINE on one line in Anton, leaning -4° like the poster names,
   with GOAT in red to answer the horn. The link box stays axis-aligned (nothing
   tappable rotates); only the type leans. Paths: tools/build-brand-icons.js. */
.goat-nav .wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--poster-cream); }
.goat-nav .wordmark .brand-mark { flex: 0 0 auto; width: 38px; height: 38px; overflow: visible; }
.brand-mark-g { fill: none; stroke: currentColor; stroke-width: 15; stroke-linejoin: miter; stroke-linecap: butt; }
.brand-mark-horn { fill: var(--poster-red); }
.goat-nav .wordmark .brand-type {
  display: inline-flex;
  align-items: baseline;
  gap: .24em;
  transform: rotate(-4deg);
  transform-origin: left center;
  line-height: 1;
  white-space: nowrap;
}
.goat-nav .wordmark .brand-type i,
.goat-nav .wordmark .brand-type b,
.goat-nav .wordmark .brand-type small {
  margin: 0;
  color: var(--poster-cream);
  font: 400 26px/1 "Anton", "Archivo Black", sans-serif;
  font-style: normal;
  font-stretch: normal;
  letter-spacing: .01em;
  transform: none;
}
.goat-nav .wordmark .brand-type b { color: var(--poster-red); }
.goat-nav .wordmark sup { align-self: flex-start; margin: 2px 0 0 4px; color: var(--poster-orange); font: 800 9px/1 "Archivo", sans-serif; letter-spacing: .14em; }
.site-footer-brand strong b { color: var(--poster-red); font-weight: 400; }
@media (max-width: 760px) {
  /* The phone masthead carries the wordmark alone, so it can say GOAT MACHINE
     in full; THE and the proof point still step aside. */
  body[data-shell="phone"] .goat-nav .wordmark .brand-mark { width: 34px; height: 34px; }
  body[data-shell="phone"] .goat-nav .wordmark .brand-type small { display: inline; }
  body[data-shell="phone"] .goat-nav .wordmark .brand-type b,
  body[data-shell="phone"] .goat-nav .wordmark .brand-type small { font-size: 24px; }
}
