/* The beers page: "The Lineup" (round 2). Phone first; the side-by-side arena from 900 px.
   Built from round 1's sample E. The top bar is the shared one (../common/header.css); this page only sets its four colors. */
[hidden] { display: none !important; }

:root {
  --navy: #19396c;
  --red: #d41631;
  --gold: #caa66b;
  --pale-gold: #efd282;
  --cream: #fdfaf1;
  --ink: #1a1513;
  --amber: #e39a2c;          /* the home page's beer, poured over into this page (?from=pint) */
  --tan: #dcc8a0;            /* arena dirt, for the pens */
  --open: #4fc26b;           /* status dot when open (the words carry the meaning) */
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 64px;             /* the shared bar's height */
  --pad: 20px;
  /* the shared top bar, on this page */
  --bar-bg: rgba(26, 21, 19, .9);
  --bar-ink: #fdfaf1;
  --bar-accent: #efd282;
  --bar-accent-ink: #1a1513;
  color-scheme: light;
}
@media (max-width: 720px) { :root { --bar-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.5 var(--text);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--navy); color: var(--cream); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--pad), 1240px); margin-inline: auto; }

/* ---------- small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  font: 700 17px/1 var(--text); text-decoration: none; white-space: nowrap;
  border-radius: 4px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--pale-gold); color: var(--ink); }
.btn-gold:hover { background: #f7e2a6; }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(253, 250, 241, .12); }

.tag {
  display: inline-block; white-space: nowrap; vertical-align: 1px;
  font: 600 14px/1 var(--text); padding: 4px 8px 5px;
  border: 1.5px solid currentColor; border-radius: 99px;
}
.dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: currentColor; flex: none; }
[data-state="open-now"] .dot, [data-state="open-today"] .dot { background: var(--open); }
[data-state="closed"] .dot, [data-state="closed-notice"] .dot { background: #ff5a6e; }
[data-state="unknown"] .dot { display: none; }   /* before the hours are worked out (or if they can't be), no colored dot */

/* The light that runs across a can's foil */
.sheen {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2;
  mix-blend-mode: overlay;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
}
.sheen i {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.55) 62%, rgba(255,255,255,0) 100%);
  transform: translateX(-130%) skewX(-16deg);
}

/* ---------- the lineup: title card and roster (the page's first screen) ---------- */
.lineup { position: relative; }
.arena { position: relative; --seg: 72svh; }
.stage { position: relative; }
.arena-bg { display: none; }
.lineup-head {
  position: relative; z-index: 3;
  padding: calc(var(--bar-h) + 32px) var(--pad) 40px;
  background: var(--c0, var(--red)); color: var(--fg0, var(--cream));
}
.lineup-head h1 { font: 900 clamp(64px, 21vw, 232px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.lineup-kicker { margin-top: 12px; font: 800 clamp(26px, 7.4vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.lineup-sub { margin-top: 8px; font-size: 17px; font-weight: 500; max-width: 34rem; }
.lineup-sub .tag { margin-left: 2px; }

/* phones: a two-column tap list, can beside its words */
.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 20px; }
.roster a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px;
  min-height: 44px; padding: 4px 0; border-radius: 6px; color: inherit; text-decoration: none;
}
.roster img { height: 84px; width: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .28)); }
.roster-text { display: grid; gap: 3px; min-width: 0; }
.roster-name { font: 800 20px/1 var(--display); text-transform: uppercase; }
.roster-n { font-weight: 900; margin-right: .15em; }
.roster-style { font-size: 14px; line-height: 1.25; font-weight: 500; }
.roster a:hover .roster-name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the lineup: one ride per beer ---------- */
.ride {
  --fg: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; min-height: max(100svh, 600px);
  background: var(--c); color: var(--fg); --focus: var(--fg);
  padding: calc(var(--bar-h) + 18px) var(--pad) 0;
}
.ride-info { position: relative; z-index: 3; max-width: 32rem; }
.ride-chute { display: none; font-weight: 700; font-size: 16px; }
.ride-name { font: 900 42px/.88 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.ride-sub { display: block; font-size: .55em; line-height: 1; margin-top: 4px; }
.ride-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-weight: 700; font-size: 16px; }
.ride-specs .abv { padding: 3px 8px 4px; border: 1.5px solid currentColor; border-radius: 4px; white-space: nowrap; }
/* the announcer: loud, in the headline face */
.ride-call { margin-top: 12px; font: 800 22px/1.1 var(--display); letter-spacing: .005em; }
.ride-note { position: relative; z-index: 3; margin-top: 10px; max-width: 32rem; font-size: 16px; line-height: 1.45; }

.ride-giant {
  position: absolute; z-index: 1; left: 0; right: 0; top: 46%;
  display: flex; flex-direction: column; align-items: center;
  font: 900 112px/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em;
  color: var(--giant, color-mix(in oklab, var(--c) 76%, #000));
  white-space: nowrap; pointer-events: none; user-select: none;
}
.ride-giant span { display: block; }

/* the can: placed under the words by the script on phones and tablets */
.ride-can { position: absolute; z-index: 2; left: 50%; bottom: 0; height: min(58svh, 560px); aspect-ratio: 536 / 1033; transform: translate(-50%, 14%); perspective: 1400px; }
.ride-can.is-placed { bottom: auto; transform: translateX(-50%); }
.can { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.can-tilt { position: relative; width: 100%; height: 100%; isolation: isolate; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.can img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .22)); }
.can-shade { /* darkens the side turning away from the light while the can turns */
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 45%);
  -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
}

.board, .meter { display: none; }

/* pinned stage: one arena, the cans come out one at a time.
   The stage is as tall as the screen with the browser bars hidden, so no strip of page shows under it. */
.js-pinned .arena { height: calc(100vh + var(--n, 8) * var(--seg, 72svh)); height: calc(100lvh + var(--n, 8) * var(--seg, 72svh)); }
.js-pinned .stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: var(--stage-c, var(--red)); color: var(--stage-fg, var(--cream)); --focus: var(--stage-fg, var(--cream));
}
.js-pinned .arena-bg { display: block; position: absolute; inset: 0; z-index: 0; }
.arena-bg .flood { position: absolute; inset: 0; }
.js-pinned .lineup-head {
  position: absolute; inset: 0 0 auto 0; height: 100svh; z-index: 4; background: none; color: inherit;
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar-h) + 20px) var(--pad) 28px;
}
.js-pinned .lineup-head.is-gone { opacity: 0; pointer-events: none; }
.js-pinned .lineup-head.is-gone .roster { visibility: hidden; }
.ride-name:focus { outline: none; }
.ride-name:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.js-pinned .rides { position: absolute; inset: 0; z-index: 2; }
.js-pinned .ride { position: absolute; inset: 0; min-height: 0; background: none; color: inherit; opacity: 0; pointer-events: none; padding-top: calc(var(--bar-h) + 26px); }
.js-pinned .ride.is-active, .js-pinned .ride.is-leaving { opacity: 1; }
.js-pinned .ride.is-active { pointer-events: auto; z-index: 2; }
.js-pinned .ride.is-leaving { z-index: 1; }
.js-pinned .meter {
  display: flex; gap: 4px; position: absolute; z-index: 5; left: var(--pad); right: var(--pad); top: calc(var(--bar-h) + 8px); height: 4px;
}
.meter i { flex: 1; border-radius: 2px; background: currentColor; opacity: .28; }
.meter i.on { opacity: 1; }

/* ---------- the arrival from the home page: the page opens in the beer's amber ----------
   Before the script runs, the stage is amber, the bar is tucked away and the title card waits; the script then raises the
   roster cans through the amber and floods the first can's color out from its can (see arrive() in beers.js). */
.arriving .stage { --stage-c: var(--amber); --stage-fg: var(--ink); background: var(--amber); transition: color .22s ease; }
.arriving .arena, .arriving .arena-bg { background: var(--amber) !important; }   /* the flood pours over this, on its own layer */
.arriving body { background: var(--amber); }
.arriving .sr-bar { transform: translateY(-100%); }
.arriving .lineup-head h1, .arriving .lineup-kicker, .arriving .lineup-sub, .arriving .roster li { opacity: 0; }
.arriving .meter { visibility: hidden; }

/* ---------- the pens ---------- */
.pen { scroll-margin-top: calc(var(--bar-h) + 24px); }
.pen.is-picked h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }   /* the beer a link asked for (set by beers.js: the pens are built after the page loads, so :target can't see them) */
.pens { background: var(--tan); color: var(--ink); padding: 64px 0 56px; --focus: var(--ink); }
.pens-head h2 { font: 900 clamp(48px, 13vw, 96px)/.84 var(--display); text-transform: uppercase; }
.pens-head p { margin-top: 10px; font-size: 18px; font-weight: 500; }
.pens-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 36px; }
.pen { display: grid; justify-items: center; align-content: start; text-align: center; }
.pen img { height: 168px; width: auto; filter: drop-shadow(0 10px 12px rgba(60, 40, 10, .25)); }
.pen h3 { margin-top: 12px; font: 800 24px/.95 var(--display); text-transform: uppercase; }
.pen h3 span { display: block; font-size: .7em; margin-top: 3px; }
.pen p { margin-top: 6px; font-size: 15px; line-height: 1.35; }

/* ---------- visit: a slim strip ---------- */
/* the game's line after the beers: the pens' dirt continues, one small picture and a link (DESIGN.md: small extras stay small) */
.play { background: var(--tan); color: var(--ink); padding: 8px 0 56px; --focus: var(--ink); }
.visit { background: var(--navy); color: var(--cream); padding: 44px 0 48px; --focus: var(--pale-gold); }
.visit-row { display: grid; gap: 22px; }
.visit h2 { font: 900 clamp(40px, 11vw, 64px)/.86 var(--display); text-transform: uppercase; color: var(--pale-gold); }
.visit-now { margin-top: 14px; font-size: 18px; line-height: 1.35; font-weight: 500; max-width: 34rem; }
.visit-now .dot { width: 12px; height: 12px; margin-right: 10px; vertical-align: .1em; }
.visit-now strong { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-right: 4px; }
.visit-now a { font-weight: 700; text-underline-offset: 3px; }
.visit-now .tag { margin-left: 4px; }
.visit-hours { margin-top: 6px; font-size: 16px; color: #dfe5ef; }
.visit-where { font-style: normal; display: grid; font-size: 17px; line-height: 1.4; }
.visit-line1 { font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.visit-setting { margin-top: 6px; font-size: 16px; color: #dfe5ef; max-width: 30rem; }
.visit-setting:empty { display: none; }
.visit-go { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-go .btn { flex: 1 1 auto; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding: 40px 0 36px; --focus: var(--pale-gold); }
.foot-grid { display: grid; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; }
.foot-brand img { width: 56px; height: 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; }
.noscript { padding: 24px var(--pad); background: var(--red); color: var(--cream); font-weight: 600; }
.noscript a { font-weight: 700; }

/* ---------- tablets: the giant name comes back, over the can's lid ---------- */
@media (min-width: 600px) {
  .ride-chute { display: block; }
  .ride-name { margin-top: 6px; }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .roster a { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 8px; }
  .roster img { height: min(150px, 17svh); }
}
@media (max-width: 599px) {
  .ride-giant { display: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --pad: 48px; }
  body { font-size: 18px; }

  .arena { --seg: 75svh; }
  .lineup-head { padding: calc(var(--bar-h) + 48px) var(--pad) 56px; }
  /* the title on the left, today's line tucked beside it, the roster across the whole width */
  .lineup-head, .js-pinned .lineup-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 44px; align-content: center; }
  .lineup-head h1 { grid-row: 1 / span 2; align-self: end; }
  .lineup-kicker { margin: 0; align-self: end; max-width: 13em; }
  .lineup-sub { font-size: 18px; margin-top: 10px; padding-bottom: 6px; }
  .roster { grid-column: 1 / -1; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
  .roster img { height: min(250px, 28svh); }
  .roster-name { font-size: 22px; }
  .roster-style { font-size: 15px; }
  .js-pinned .board { transition: opacity .3s ease; }
  .js-pinned .stage.is-title .board { opacity: 0; pointer-events: none; }
  .js-pinned .stage.is-title .board:focus-within { opacity: 1; pointer-events: auto; }

  /* rides alternate: words left and can right, then the other way round */
  .ride { padding: 0 var(--pad); }
  .ride-info { position: absolute; z-index: 3; left: var(--pad); bottom: 104px; width: min(470px, 32vw); }
  .ride-name { font-size: clamp(40px, 3.4vw, 54px); }
  .ride-specs { font-size: 17px; }
  .ride-call { margin-top: 16px; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.06; }
  .ride-note { position: absolute; margin: 0; right: var(--pad); bottom: 104px; width: min(290px, 21vw); font-size: 16px; }
  .ride-giant { top: calc(var(--bar-h) + 22px); font-size: 240px; }
  .ride-can { left: 59%; top: 54%; bottom: auto; height: min(80svh, 780px); transform: translate(-50%, -50%); }
  .ride.side-b .ride-info { left: auto; right: var(--pad); }
  .ride.side-b .ride-note { right: auto; left: var(--pad); }
  .ride.side-b .ride-can { left: 41%; }
  .js-pinned .ride { padding-top: 0; }
  .js-pinned .lineup-head { padding: calc(var(--bar-h) + 24px) var(--pad) 72px; }
  .js-pinned .meter { display: none; }
  .js-pinned .board { display: block; position: absolute; z-index: 5; left: var(--pad); right: var(--pad); bottom: 22px; }
  .board ol { display: flex; justify-content: space-between; gap: 6px; }
  .board button {
    display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 0 12px;
    font: 500 15px/1 var(--text); color: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer;
  }
  .board button b { font: 900 22px/1 var(--display); }
  .board button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .board button[aria-current="step"] { font-weight: 700; background: var(--stage-fg, var(--cream)); color: var(--stage-c, var(--red)); }

  .pens { padding: 96px 0 88px; }
  .pens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .pens-head p { margin: 0 0 6px; }
  .pens-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
  .pen img { height: 190px; }

  .visit { padding: 56px 0 60px; }
  .visit-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 48px; align-items: end; }
  .visit-go { flex-direction: column; align-items: stretch; }
  .visit-go .btn { flex: 0 0 auto; padding: 0 30px; }
  .foot-grid { grid-template-columns: auto 1fr; align-items: center; }
  .foot-links { justify-content: flex-end; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .board ol { gap: 2px; }
  .board button { padding: 0 8px; font-size: 14px; line-height: 1.1; text-align: left; }
  .roster-name { font-size: 19px; }
  .roster-style { font-size: 14px; }
  .visit-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .visit-go { grid-column: 1 / -1; flex-direction: row; }
}
/* short screens: the title card stays on one screen */
@media (min-width: 900px) and (max-height: 820px) {
  .lineup-head h1 { font-size: clamp(64px, 15vw, 190px); }
  .roster { margin-top: 32px; }
  .roster img { height: min(210px, 25svh); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .lineup-head h1 { font-size: 60px; }
  .lineup-kicker { font-size: 24px; margin-top: 8px; }
  .lineup-sub { font-size: 16px; }
  .roster { margin-top: 12px; }
  .roster img { height: 60px; }
  .roster-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .can-tilt, .btn { transition: none; }
}

.is-preview { scrollbar-width: none; }
.is-preview::-webkit-scrollbar { display: none; }

/* ---------- The way back to the home page (beers.js homePull): a pill at the top, and a dark curtain on the way out ---------- */
html.has-home-pull { overscroll-behavior-y: none; }   /* no pull-to-refresh: a pull at the top goes home instead */
.home-pull {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--bar-h) + 24px); transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; overflow: hidden;
  background: rgba(26, 21, 19, .82); color: #fdfaf1; font: 600 15px/1 "Libre Franklin", Arial, sans-serif; text-decoration: none; white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}
.home-pull.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.home-pull-fill { position: absolute; inset: 0; background: rgba(239, 210, 130, .35); transform: scaleX(0); transform-origin: left; }
.home-pull-label { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.home-pull .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.home-pull:focus-visible { outline: 3px solid #efd282; outline-offset: 3px; }
.home-curtain { position: fixed; inset: 0; z-index: 70; background: #070403; transform: translateY(-101%); visibility: hidden; pointer-events: none; }
.home-curtain.down { visibility: visible; transform: none; transition: transform .38s cubic-bezier(.55, 0, .2, 1); }

/* the game card (home and beers pages): one clear link, the stack's picture, its name and a Play button */
.play-card { display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 14px 18px 14px 14px; border-radius: 16px;
  text-decoration: none; color: inherit; border: 1.5px solid currentColor; }
.play-card img { width: 96px; height: 96px; border-radius: 12px; flex: none; }
.play-words { display: flex; flex-direction: column; min-width: 0; }
.play-ask { font-size: 15px; font-weight: 600; }
.play-name { font: 900 34px/.95 var(--display); text-transform: uppercase; margin-top: 2px; }
.play-how { font-size: 15px; margin-top: 4px; opacity: .85; }
.play-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1; background: var(--navy); color: var(--cream); }
.play-card:hover .play-go { filter: brightness(1.08); }
.play-card:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
@media (max-width: 480px) { .play-card { gap: 12px; padding: 12px; } .play-card img { width: 72px; height: 72px; } .play-name { font-size: 28px; } .play-how { display: none; } .play-go { padding: 0 18px; } }
