/* =====================================================================
   Million Beers Club. Styles.
   Jules, 2026-10-28. Plain CSS, no build step.
   Colour, type and motion tokens live in :root. Everything else reads them.
   ===================================================================== */

:root {
  /* The beer, top of the glass to the bottom */
  --beer-1: #FBCB4A;
  --beer-2: #F4AE2E;
  --beer-3: #E8901D;
  --beer-4: #C96C10;
  --beer-5: #96460A;

  /* The head */
  --foam: #FFF7E8;
  --foam-2: #F6E7CB;
  --foam-3: #E9D2A6;

  /* Ink and paper */
  --stout: #2A1709;        /* all dark text and outlines */
  --stout-2: #3F240F;
  --cream: #FFF4DF;        /* labels, cards, light text */
  --gold: #FFC93C;         /* crown, highlights on dark */

  /* The one contrast colour: the button and highlights */
  --tap: #1F6A46;
  --tap-deep: #134A30;
  --tap-lite: #3B9467;

  --font-display: "Ultra", "Rockwell Extra Bold", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --top-pad: max(var(--safe-top), 6px);
  --bar-h: 58px;
  --foam-h: calc(var(--top-pad) + var(--bar-h));

  --cap: 148px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* iPhone home-screen app: iOS 26+ draws the page under the status bar and the reported
   inset has been unreliable (WebKit bug 301994). Reserve room either way. app.js adds the class. */
.is-ios-app { --top-pad: max(var(--safe-top), 50px); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--beer-5);
  color: var(--stout);
  font-family: var(--font-body);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, ol { margin: 0; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--stout); outline-offset: 3px; }
.noscript { padding: 40px 24px; font: 700 18px/1.4 var(--font-body); color: var(--cream); text-align: center; }

/* ---------- The app column ---------- */
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--beer-5);
}

/* Desktop and tablets: centre the phone layout on a dark bar top */
@media (min-width: 600px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(232, 144, 29, .22), transparent 60%),
      radial-gradient(900px 500px at 50% 110%, rgba(150, 70, 10, .25), transparent 60%),
      #1C0F06;
    min-height: 100vh;
  }
  .app {
    position: relative;
    inset: auto;
    width: 420px;
    height: min(880px, calc(100vh - 48px));
    height: min(880px, calc(100dvh - 48px));
    margin: 24px auto;
    border-radius: 34px;
    box-shadow: 0 0 0 10px #2A1709, 0 0 0 11px rgba(255, 244, 223, .08), 0 40px 90px rgba(0, 0, 0, .55);
  }
  .app .foam { position: absolute; }
}

/* ---------- The beer ---------- */
.beer {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--beer-1) 0%, var(--beer-2) 26%, var(--beer-3) 54%, var(--beer-4) 80%, var(--beer-5) 100%);
}
/* light through the glass: a soft streak on the left, a darker curve on the right */
.beer::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 235, 0) 3%, rgba(255, 250, 235, .22) 7.5%, rgba(255, 250, 235, 0) 14%),
    linear-gradient(90deg, rgba(110, 45, 0, 0) 78%, rgba(110, 45, 0, .18) 100%);
}
.beer__glow {
  position: absolute; left: 50%; top: 12%; width: 130%; height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 238, 170, .42), rgba(255, 238, 170, 0));
}
.beer__bubbles { position: absolute; inset: 0; overflow: hidden; }

/* Carbonation. Each bubble rises on the outer element and sways on the inner one.
   Transform and opacity only, so it stays on the graphics chip. Count is capped in app.js. */
.bubble {
  position: absolute; bottom: -14px; left: var(--x);
  width: var(--s); height: var(--s);
  animation: rise var(--d) cubic-bezier(.5, .05, .9, .6) var(--delay) infinite;
  will-change: transform, opacity;
}
.bubble i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 17%, rgba(255, 255, 255, .4) 25%, rgba(255, 250, 235, .16) 50%, rgba(255, 255, 255, .85) 67%, rgba(255, 255, 255, 0) 74%);
  animation: sway var(--sw) ease-in-out var(--delay) infinite alternate;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.55); opacity: 0; }
  7% { opacity: .9; }
  86% { opacity: .85; }
  100% { transform: translate3d(0, calc(-1 * var(--travel, 100vh)), 0) scale(1.15); opacity: 0; }
}
@keyframes sway {
  from { transform: translateX(calc(-1 * var(--amp))); }
  to { transform: translateX(var(--amp)); }
}

/* ---------- The foamy head ---------- */
.foam {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--foam-h);
  padding: var(--top-pad) max(10px, var(--safe-right)) 0 max(10px, var(--safe-left));
  background-color: var(--foam);
  /* foam texture: four co-prime grids of tiny bubbles, so it never reads as a pattern */
  background-image:
    radial-gradient(circle at 30% 40%, rgba(233, 210, 166, .5) 0 2.1px, transparent 2.7px),
    radial-gradient(circle at 70% 70%, rgba(233, 210, 166, .42) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 50% 50%, rgba(233, 210, 166, .3) 0 3.3px, transparent 3.9px),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .95) 0 1.4px, transparent 2px);
  background-size: 23px 17px, 13px 11px, 41px 31px, 19px 23px;
  background-position: 0 0, 7px 5px, 12px 3px, 3px 9px;
}
.foam__bar {
  position: relative; z-index: 2;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.foam__edge {
  position: absolute; left: 0; top: 100%; width: 200%;
  margin-top: -1px; pointer-events: none;
  animation: foam-drift 11s linear infinite;
}
.foam__edge--front { height: 22px; fill: var(--foam); }
.foam__edge--back { height: 32px; fill: var(--foam-3); animation-duration: 17s; animation-direction: reverse; opacity: .9; }
@keyframes foam-drift { to { transform: translateX(-50%); } }

.wordmark {
  flex: 1; min-width: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: min(19px, 5.1vw); line-height: 1; letter-spacing: .01em;
  color: var(--stout); text-align: center; text-transform: uppercase; white-space: nowrap;
}
.wordmark__club { color: var(--tap); }
/* the badge already says the name on these screens */
[data-screen="age"] .wordmark, [data-screen="move"] .wordmark { visibility: hidden; }

.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--stout);
  transition: background-color .15s, transform .15s var(--ease-out);
}
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn .stroke { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { background: var(--foam-2); transform: scale(.92); }
.icon-btn--dark { color: var(--cream); }
.icon-btn--dark:active { background: rgba(255, 244, 223, .12); }
#soundBtn .icon-sound-on { display: none; }
#soundBtn[aria-pressed="true"] .icon-sound-on { display: block; }
#soundBtn[aria-pressed="true"] .icon-sound-off { display: none; }
/* v2: sound and the club page only make sense inside a club. The back button sits in the
   sound button's slot, so the wordmark stays centred either way. */
.app:not([data-screen="main"]) #soundBtn, .app:not([data-screen="main"]) #clubBtn { visibility: hidden; }
.foam__bar { position: relative; }
#backBtn { position: absolute; left: 0; top: calc((var(--bar-h) - 44px) / 2); z-index: 3; }
.icon-dot {
  position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--tap); border: 2.5px solid var(--foam); pointer-events: none;
}

/* ---------- Screens ---------- */
.screen { position: absolute; inset: 0; z-index: 2; }

/* ---------- First open ---------- */
.join {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex;
  padding: calc(var(--foam-h) + 14px) 24px calc(var(--safe-bottom) + 24px);
}
.join__inner {
  margin: auto; width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.join__badge {
  width: min(196px, 50vw); height: auto;
  filter: drop-shadow(0 8px 0 rgba(42, 23, 9, .22));
  margin-bottom: 14px;
}
.join__title {
  font: 400 min(42px, 11vw)/1 var(--font-display);
  color: var(--cream);
  -webkit-text-stroke: 7px var(--stout); paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--stout);
  letter-spacing: .005em;
}
.join__lede { margin-top: 12px; font: 700 17px/1.35 var(--font-body); color: var(--stout); }
.join__form, .join__confirm { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%; height: 62px; border-radius: 18px;
  border: 3px solid var(--stout); background: var(--cream);
  font: 800 23px/1 var(--font-body); color: var(--stout); text-align: center;
  padding: 0 16px; outline: none; box-shadow: 0 5px 0 rgba(42, 23, 9, .25);
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: rgba(42, 23, 9, .42); }
.field:focus { box-shadow: 0 5px 0 rgba(42, 23, 9, .25), 0 0 0 4px rgba(31, 106, 70, .45); }
.field.is-shake { animation: shake .36s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.join__help { font: 700 15px/1.35 var(--font-body); color: var(--stout); background: rgba(255, 244, 223, .7); border-radius: 12px; padding: 10px 12px; }
.join__small { font: 700 14px/1.35 var(--font-body); color: var(--stout); background: rgba(255, 244, 223, .8); border-radius: 12px; padding: 8px 12px; }
.join__question {
  font: 700 18px/1.4 var(--font-body); color: var(--stout);
  background: var(--cream); border: 3px solid var(--stout); border-radius: 18px; padding: 16px;
  box-shadow: 0 5px 0 rgba(42, 23, 9, .25);
}
.join__question strong { font-family: var(--font-display); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  height: 60px; border-radius: 999px; padding: 0 24px;
  font: 400 20px/1 var(--font-display); letter-spacing: .02em;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.btn--tap { background: var(--tap); color: var(--cream); box-shadow: 0 5px 0 var(--tap-deep), 0 5px 0 2px var(--stout); border: 2.5px solid var(--stout); }
.btn--tap:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tap-deep), 0 1px 0 2px var(--stout); }
.btn--ghost { background: rgba(255, 244, 223, .55); color: var(--stout); border: 2.5px solid var(--stout); font-size: 17px; }
.btn--ghost:active { transform: translateY(2px); }
.btn--small { height: 42px; font-size: 15px; padding: 0 16px; }
.btn--ghost-dark { color: var(--cream); border: 2px solid rgba(255, 244, 223, .55); font-size: 15px; }

/* ---------- Main screen ---------- */
.main {
  display: flex; flex-direction: column;
  padding: calc(var(--foam-h) + 18px) 0 0;
}
.hero { text-align: center; padding: 0 16px; }
.hero__kicker {
  font: 800 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--stout); margin-bottom: 6px;
}
.hero__of { margin-top: 6px; font: 700 17px/1 var(--font-body); color: var(--stout); }
.hero__of strong { font-weight: 800; }

/* Rolling counter. Each digit is a window onto a strip of 0 to 9, twice. */
.odo {
  display: inline-flex; justify-content: center; align-items: flex-start;
  font-family: var(--font-display); font-weight: 400; line-height: 1;
}
.odo__slot {
  position: relative; display: inline-block; overflow: hidden;
  height: var(--cell); width: var(--w);
  transition: width .45s var(--ease-out);
}
.odo__strip { display: block; will-change: transform; }
.odo__cell { display: block; height: var(--cell); line-height: var(--cell); text-align: center; }
.odo__comma { display: inline-block; height: var(--cell); line-height: var(--cell); width: var(--w); text-align: center; }

.odo--total {
  --cell: 1.16em;
  font-size: var(--odo-size, 92px);
  color: var(--cream);
  -webkit-text-stroke: .085em var(--stout); paint-order: stroke fill;
  text-shadow: 0 .065em 0 var(--stout);
  margin: 0 auto;
  padding: 0 .04em;
}
.odo--total .odo__slot, .odo--total .odo__comma { margin: 0 .014em; }

.me {
  align-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 6px 8px 6px 16px; min-height: 46px;
  border-radius: 999px; background: var(--stout); color: var(--cream);
  font: 800 15px/1 var(--font-body);
  box-shadow: 0 4px 0 rgba(42, 23, 9, .25);
  transition: transform .15s var(--ease-out);
}
.me:active { transform: scale(.96); }
.me__you { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; opacity: .9; }
.odo--me { --cell: 1.15em; font-size: 22px; color: var(--gold); }
.me__rank { background: rgba(255, 244, 223, .14); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.me__chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-left: -4px; opacity: .8; }

.middle { position: relative; flex: 1; min-height: 150px; }

/* Next milestone, as a beer label */
.label {
  position: absolute; left: 20px; right: 20px; top: 16px;
  padding: 15px 18px 13px;
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 18px;
  box-shadow: 0 6px 0 rgba(42, 23, 9, .22);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.label::before {
  content: ""; position: absolute; inset: 4px; border-radius: 12px;
  border: 1.5px dashed rgba(42, 23, 9, .3); pointer-events: none;
}
.label__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label__kicker { font: 800 11.5px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--tap); }
.label__target { font: 400 19px/1 var(--font-display); }
.label__name { font: 400 22px/1.12 var(--font-display); margin: 8px 0 11px; }
.meter {
  position: relative; height: 16px; border-radius: 999px;
  background: rgba(42, 23, 9, .1); box-shadow: inset 0 0 0 2px var(--stout);
  overflow: hidden;
}
.meter__fill {
  height: 100%; width: var(--p, 0%); min-width: 16px;
  border-radius: 999px; border: 2px solid var(--stout);
  background: linear-gradient(180deg, #FFD660, #E8901D);
  position: relative; transition: width .7s var(--ease-out);
}
.meter__fill::after {
  content: ""; position: absolute; right: 1px; top: 1px; bottom: 1px; width: 9px;
  border-radius: 999px; background: var(--foam);
}
.label__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font: 800 13.5px/1 var(--font-body); }
.label__link {
  font: 800 13px/1 var(--font-body); color: var(--tap);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
  padding: 6px 0;
}

/* One-time home screen hint (sits where the label goes until dismissed) */
.hint {
  position: absolute; left: 16px; right: 16px; top: 12px; z-index: 2;
  background: var(--stout); color: var(--cream);
  border-radius: 18px; padding: 14px 16px 14px;
  box-shadow: 0 6px 0 rgba(42, 23, 9, .25);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.hint__title { font: 400 19px/1 var(--font-display); color: var(--gold); }
.hint__steps { margin-top: 8px; font: 600 15px/1.42 var(--font-body); }
.hint__steps b { font-weight: 800; }
.hint__steps .key {
  display: inline-grid; place-items: center; vertical-align: -5px;
  width: 24px; height: 22px; border-radius: 7px; background: rgba(255, 244, 223, .16);
}
.hint__steps .key svg { width: 16px; height: 16px; fill: currentColor; }
.hint__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.has-hint .label { opacity: 0; pointer-events: none; }

/* The pour */
.pour { position: absolute; inset: 0; pointer-events: none; }
.glass {
  position: absolute; left: 50%; top: 50%;
  height: min(300px, 100%); width: auto; aspect-ratio: 160 / 260;
  transform: translate(-50%, -50%);
  opacity: 0; overflow: visible;
}
.glass__body { fill: rgba(255, 250, 235, .22); }
.glass__line { fill: none; stroke: var(--stout); stroke-width: 4.5; stroke-linejoin: round; }
.glass__shine { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 4; stroke-linecap: round; }
.glass__stream { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.glass__liquid { transform: translateY(160px); }
.glass__foam { transform: translateY(160px); }
.glass__head { transform-box: fill-box; transform-origin: 50% 100%; }
.glass__foam path { fill: var(--foam); stroke: var(--stout); stroke-width: 3.5; }
.glass__foam .foam-dot { fill: var(--foam-3); }
.glass__fizz circle { fill: rgba(255, 255, 255, .8); }
.glass__fizz { opacity: 0; }
.is-pouring .glass__fizz { opacity: 1; animation: fizz-up 1.1s linear infinite; }
@keyframes fizz-up { from { transform: translateY(0); } to { transform: translateY(-40px); } }

.is-pouring .label, .is-pouring .hint { opacity: 0; transform: scale(.96) translateY(-6px); }
.is-partying .label, .is-partying .hint { opacity: 0; }

.card {
  position: absolute; left: 50%; top: 50%;
  width: min(304px, calc(100% - 44px));
  transform: translate(-50%, -50%);
  padding: 18px 18px 16px; text-align: center;
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 22px;
  box-shadow: 0 8px 0 rgba(42, 23, 9, .24);
  opacity: 0;
}
.card::before {
  content: ""; position: absolute; inset: 5px; border-radius: 16px;
  border: 1.5px dashed rgba(42, 23, 9, .3); pointer-events: none;
}
.card__kicker { font: 800 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tap); }
.card__style { margin-top: 10px; font: 800 15px/1.1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--beer-5); }
.card__name { margin-top: 6px; font: 400 25px/1.1 var(--font-display); }
.card__no { margin-top: 10px; font: 700 13px/1 var(--font-body); letter-spacing: .04em; color: rgba(42, 23, 9, .78); }

/* ---------- The dock: the button and the undo ---------- */
.dock {
  position: relative; z-index: 6;
  display: grid; place-items: center;
  padding: 6px 0 calc(var(--safe-bottom) + 18px);
}

.cap {
  position: relative; width: var(--cap); height: var(--cap); border-radius: 50%;
  transition: transform .12s var(--ease-out);
}
.cap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cap__shadow { fill: rgba(42, 23, 9, .4); transition: opacity .12s; }
.cap__skirt { fill: var(--tap-deep); stroke: var(--stout); stroke-width: 5; stroke-linejoin: round; }
.cap__face { fill: url(#capFace); stroke: var(--stout); stroke-width: 4.5; }
.cap__stop-lite { stop-color: var(--tap-lite); }
.cap__stop-mid { stop-color: var(--tap); }
.cap__stop-deep { stop-color: var(--tap-deep); }
.cap__ring { fill: none; stroke: var(--cream); stroke-width: 3; stroke-dasharray: .1 8.3; stroke-linecap: round; opacity: .9; }
.cap__label {
  position: absolute; inset: 0; padding-bottom: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--font-display); line-height: 1;
  -webkit-text-stroke: 5px var(--stout); paint-order: stroke fill;
  pointer-events: none;
}
.cap__plus { font-size: 50px; text-shadow: 0 4px 0 var(--stout); }
.cap__word { font-size: 17px; letter-spacing: .1em; margin-top: 2px; padding-left: .1em; text-transform: uppercase; text-shadow: 0 3px 0 var(--stout); -webkit-text-stroke-width: 4px; }
.cap.is-down { transform: scale(.92) translateY(3px); }
.cap.is-down .cap__shadow { opacity: .4; }
.cap.is-pop { animation: cap-pop .46s var(--ease-spring); }
@keyframes cap-pop { 0% { transform: scale(.92) translateY(3px); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.cap:focus-visible { outline-offset: 6px; border-radius: 50%; }

/* the fizz burst when the cap pops */
.burst { position: absolute; left: 50%; top: 48%; width: 0; height: 0; pointer-events: none; }
.burst__ring {
  position: absolute; left: calc(var(--cap) / -2); top: calc(var(--cap) / -2);
  width: var(--cap); height: var(--cap); border-radius: 50%;
  border: 4px solid var(--foam); opacity: 0;
}
.burst__dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--foam); border: 2px solid var(--stout); }

/* Undo toast */
.toast {
  position: absolute; left: 50%; bottom: calc(100% - 4px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--stout); color: var(--cream);
  font: 700 14.5px/1.2 var(--font-body);
  box-shadow: 0 6px 18px rgba(42, 23, 9, .35);
  overflow: hidden;
}
.toast__undo {
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--cream); color: var(--stout);
  font: 800 14.5px/1 var(--font-body); letter-spacing: .02em;
}
.toast__undo:active { transform: scale(.95); }
.toast__timer {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--gold); transform-origin: 0 50%;
}
.toast.is-info .toast__undo, .toast.is-info .toast__timer { display: none; }
.toast.is-info { padding: 12px 18px; }
.toast.is-error { background: #7A1F12; }

/* ---------- Milestone celebration ---------- */
.party {
  position: absolute; inset: 0; z-index: 30; pointer-events: none;
  display: grid; place-items: center;
}
.party__foam, .party__bubbles { position: absolute; inset: 0; overflow: hidden; }
.party__blob {
  position: absolute; top: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFFFF 0 30%, var(--foam) 52%, var(--foam-2) 100%);
  box-shadow: inset 0 -6px 0 rgba(233, 210, 166, .7);
}
.party__bubble {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 14%, rgba(255, 255, 255, .3) 24%, rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .7) 70%, rgba(255, 255, 255, 0) 75%);
}
.party__text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 20px; }
.party__cheers {
  font: 400 min(68px, 17vw)/1 var(--font-display);
  color: var(--cream);
  -webkit-text-stroke: .12em var(--stout); paint-order: stroke fill;
  text-shadow: 0 .08em 0 var(--stout);
  transform: rotate(-6deg);
  white-space: nowrap;
}
.party__card {
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 20px;
  box-shadow: 0 7px 0 rgba(42, 23, 9, .25);
  padding: 14px 20px 15px; text-align: center; min-width: 250px;
}
.party__count { font: 400 26px/1 var(--font-display); }
.party__name {
  display: inline-block; margin-top: 9px; padding: 7px 14px 8px; border-radius: 999px;
  background: var(--tap); color: var(--cream);
  font: 400 18px/1 var(--font-display); letter-spacing: .01em;
}
.party__note { margin-top: 10px; font: 700 15px/1.3 var(--font-body); }

/* ---------- Leaderboard sheet ---------- */
.scrim {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(28, 15, 6, .55); opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.scrim.is-open { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: calc(100% - var(--top-pad) - 34px);
  display: flex; flex-direction: column;
  color: var(--cream);
  background:
    radial-gradient(120% 50% at 10% 0%, rgba(255, 244, 223, .06), transparent 60%),
    radial-gradient(90% 40% at 90% 30%, rgba(255, 244, 223, .04), transparent 60%),
    var(--stout);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -2px 0 4px var(--beer-4), 0 -20px 50px rgba(28, 15, 6, .45);
  transform: translateY(105%);
  transition: transform .38s var(--ease-out);
}
.sheet.is-open { transform: none; }
.sheet.is-dragging { transition: none; }
.sheet__head { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 10px 22px; position: relative; touch-action: none; }
.sheet__grip { position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255, 244, 223, .3); }
.sheet__titles { flex: 1; padding-top: 18px; }
.sheet__title { font: 400 30px/1 var(--font-display); color: var(--cream); }
.sheet__sub { margin-top: 6px; font: 600 14.5px/1.2 var(--font-body); color: rgba(255, 244, 223, .78); }
.sheet__head .icon-btn { margin-top: 10px; }
.sheet__body {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 6px 12px calc(var(--safe-bottom) + 22px);
}
.board { list-style: none; padding: 0; }
.row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 16px;
}
.row + .row { box-shadow: inset 0 1px 0 rgba(255, 244, 223, .08); }
.row.is-me { background: var(--tap); box-shadow: inset 0 0 0 2px rgba(255, 244, 223, .22); }
.row.is-me + .row { box-shadow: none; }
.row__rank { font: 400 19px/1 var(--font-display); color: var(--gold); text-align: center; }
.row__name { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 18px/1.15 var(--font-body); }
.row__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__you { flex: none; font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: var(--cream); color: var(--tap-deep); padding: 4px 7px; border-radius: 999px; }
.row__crown { flex: none; width: 24px; height: 24px; fill: var(--gold); stroke: var(--stout); stroke-width: 1.4; stroke-linejoin: round; }
.row__count { font: 400 21px/1 var(--font-display); color: var(--cream); }
.row:first-child .row__count { color: var(--gold); }

.road__title { margin: 24px 10px 10px; font: 400 20px/1.1 var(--font-display); color: var(--gold); }
.road { list-style: none; padding: 0 2px; }
.road li {
  display: grid; grid-template-columns: 30px 92px 1fr; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; font: 700 15px/1.2 var(--font-body);
  color: rgba(255, 244, 223, .62);
}
.road li.is-done { color: var(--cream); }
.road li.is-next { background: rgba(255, 244, 223, .08); color: var(--cream); }
.road__mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 244, 223, .35); }
.road li.is-done .road__mark { background: var(--gold); border-color: var(--gold); }
.road__mark svg { width: 14px; height: 14px; fill: none; stroke: var(--stout); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.road__n { font: 400 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sheet__foot { margin: 22px 10px 4px; font: 600 14px/1.5 var(--font-body); color: rgba(255, 244, 223, .75); }
.linkish { color: var(--gold); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

/* ---------- Smaller and shorter phones ---------- */
@media (max-height: 760px) {
  :root { --cap: 132px; --bar-h: 54px; }
  .main { padding-top: calc(var(--foam-h) + 16px); }
  .label { top: 12px; padding: 12px 15px 11px; }
  .label__name { font-size: 20px; margin: 6px 0 9px; }
  .me { margin-top: 10px; }
}
@media (max-height: 680px) {
  :root { --cap: 118px; }
  .join { padding-top: calc(var(--foam-h) + 6px); }
  .join__badge { width: min(148px, 40vw); margin-bottom: 8px; }
  .join__title { font-size: min(36px, 10vw); }
  .join__lede { margin-top: 8px; font-size: 16px; }
  .join__form, .join__confirm { margin-top: 14px; gap: 10px; }
  .field, .btn { height: 54px; }
  .hero__kicker { margin-bottom: 3px; }
  .cap__plus { font-size: 44px; }
  .cap__word { font-size: 16px; }
  .label__foot { margin-top: 7px; }
}
@media (max-width: 370px) {
  .me { gap: 8px; padding-left: 13px; }
  .label { left: 14px; right: 14px; }
}

/* ---------- Reduced motion: still beer, just calmer ---------- */
@media (prefers-reduced-motion: reduce) {
  .bubble, .bubble i, .foam__edge { animation: none !important; }
  .bubble { bottom: auto; top: var(--y); opacity: .7; }
  .is-pouring .glass__fizz { animation: none; }
  .odo__slot, .meter__fill, .label, .hint, .sheet, .scrim, .cap { transition-duration: .01ms !important; }
  .cap.is-pop { animation: none; }
}

/* =====================================================================
   v2 (Jules, 2026-10-28 evening): clubs, the photo check, the club page,
   the starter tools. Same vocabulary as v1: stout outlines, cream labels
   with a dashed inner line, green buttons with a stout rim, stout sheets.
   ===================================================================== */

:root {
  --ember: #8E2A17;        /* destructive buttons only; cream on it is 7.6:1 */
  --ember-deep: #5E1A0D;
  --cream-82: rgba(255, 244, 223, .82);
  --cream-68: rgba(255, 244, 223, .68);
  --cream-12: rgba(255, 244, 223, .12);
  --cream-08: rgba(255, 244, 223, .08);
}

/* ---------- Bottle cap avatars: clubs and people ---------- */
.ccap {
  --cs: 40px; --cap-c: var(--tap); --cap-sw: 5;
  position: relative; display: inline-block; flex: none;
  width: var(--cs); height: var(--cs);
}
.ccap__skirt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ccap__skirt path { fill: var(--cap-c); stroke: var(--stout); stroke-width: var(--cap-sw); stroke-linejoin: round; }
/* on the stout sheets a stout rim disappears: give the caps a cream rim there */
.sheet .ccap__skirt path, .check .ccap__skirt path { stroke: rgba(255, 244, 223, .9); }
.ccap__face {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%), var(--cap-c);
  box-shadow: inset 0 0 0 max(1.5px, calc(var(--cs) * .035)) var(--stout);
}
.ccap__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ccap__face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 max(1.5px, calc(var(--cs) * .035)) var(--stout); pointer-events: none;
}
.ccap--txt .ccap__face::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: max(1.5px, calc(var(--cs) * .03)) dotted rgba(255, 244, 223, .7);
}
.ccap__txt {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: calc(var(--cs) * .36); line-height: 1;
  color: var(--cream); -webkit-text-stroke: max(2px, calc(var(--cs) * .055)) var(--stout); paint-order: stroke fill;
  padding-top: .06em;
}
.ccap--xs { --cs: 28px; --cap-sw: 7; }
.ccap--sm { --cs: 42px; --cap-sw: 5.5; }
.ccap--md { --cs: 56px; }
.ccap--lg { --cs: 104px; --cap-sw: 3.6; }
.ccap--xl { --cs: 136px; --cap-sw: 3; }
.ccap--xs .ccap__txt { font-size: 11px; -webkit-text-stroke-width: 2.5px; }
.ccap.is-out::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2.5px solid var(--gold); animation: out-glow 2.6s ease-in-out infinite;
}
@keyframes out-glow { 0%, 100% { opacity: .45; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }

/* ---------- The club chip (the switcher) above the big number ---------- */
.clubchip {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  max-width: min(330px, calc(100% - 32px)); min-height: 42px;
  margin: 0 auto 6px; padding: 4px 12px 4px 6px;
  border-radius: 999px; background: var(--cream); color: var(--stout);
  border: 2.5px solid var(--stout); box-shadow: 0 4px 0 rgba(42, 23, 9, .24);
  font: 400 16.5px/1.05 var(--font-display);
  transition: transform .15s var(--ease-out);
}
.clubchip:active { transform: scale(.96); }
.clubchip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 1px; }
.clubchip__chev { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--stout); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Generic cream label (a beer label on the beer) ---------- */
.tag {
  position: relative; text-align: left;
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 18px;
  box-shadow: 0 6px 0 rgba(42, 23, 9, .22);
  padding: 16px 18px 16px;
}
.tag::before {
  content: ""; position: absolute; inset: 4px; border-radius: 12px;
  border: 1.5px dashed rgba(42, 23, 9, .3); pointer-events: none;
}
.tag__kicker { font: 800 11.5px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--tap); }
.tag__title { margin: 8px 0 6px; font: 400 21px/1.14 var(--font-display); }
.tag__text { font: 600 14.5px/1.42 var(--font-body); }
.tag__err { margin-top: 10px; font: 700 14px/1.35 var(--font-body); color: var(--ember); }

/* ---------- Fields and buttons, v2 sizes ---------- */
.field--sm {
  height: 48px; min-width: 0; flex: 1; border-radius: 14px; padding: 0 12px;
  font: 700 16px/1 var(--font-body); text-align: left; box-shadow: none; border-width: 2.5px;
}
.field--sm:focus { box-shadow: 0 0 0 4px rgba(31, 106, 70, .4); }
.field--area {
  height: auto; min-height: 86px; padding: 14px 16px; resize: none;
  font: 700 18px/1.3 var(--font-body); text-align: left;
}
.btn--sm { height: 48px; padding: 0 18px; font-size: 16px; flex: none; }
.btn--wide { width: 100%; }
.btn--icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--icon svg { width: 20px; height: 20px; flex: none; }
.btn--icon .stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--danger {
  background: var(--ember); color: var(--cream); border: 2.5px solid var(--stout);
  box-shadow: 0 5px 0 var(--ember-deep), 0 5px 0 2px var(--stout);
}
.btn--danger:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ember-deep), 0 1px 0 2px var(--stout); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.linkish--dark { color: var(--stout); }
.paste { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Front screen (no club yet) ---------- */
.front {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex;
  padding: calc(var(--foam-h) + 22px) 18px calc(var(--safe-bottom) + 20px);
}
.front__inner { margin: auto; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 22px; }
.front .hero { padding: 0; }
.front__start { display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }

/* ---------- Join, start, move ---------- */
.join__kicker {
  margin-top: 14px; font: 800 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--stout);
}
.join__title--club { margin-top: 8px; font-size: min(38px, 10vw); line-height: 1.04; overflow-wrap: anywhere; }
.join__meta {
  margin-top: 12px; font: 800 14px/1.3 var(--font-body); color: var(--stout);
  background: rgba(255, 244, 223, .78); border-radius: 999px; padding: 7px 14px;
}
.join__meta:empty { display: none; }
.join__badge--sm { width: min(132px, 34vw); }
.join__small--plain { background: none; padding: 0 4px; margin-top: -4px; }
.join__dead { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto; padding: 4px; border-radius: 20px; }
.photo-pick__label { font: 800 15px/1 var(--font-body); color: var(--stout); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.photo-pick .ccap--empty .ccap__face { background: rgba(255, 244, 223, .55); }
.photo-pick .ccap--empty .ccap__face::before { border-color: rgba(42, 23, 9, .45); border-style: dashed; }
.photo-pick .ccap--empty .ccap__txt { color: var(--stout); -webkit-text-stroke: 0; font-family: var(--font-body); font-weight: 800; font-size: 30px; }

/* ---------- Toast: the 10 minute rule ---------- */
.toast.is-wait { padding: 12px 18px 12px 14px; gap: 9px; }
.toast.is-wait::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--gold);
  background: linear-gradient(var(--gold), var(--gold)) 50% 3.5px / 2.5px 6.5px no-repeat,
              linear-gradient(var(--gold), var(--gold)) 50% 50% / 2.5px 2.5px no-repeat;
}
.toast.is-wait .toast__undo, .toast.is-wait .toast__timer { display: none; }

/* ---------- The random photo check ---------- */
.check { position: absolute; inset: 0; z-index: 60; background: rgba(24, 12, 4, .9); }
.check__panel {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; padding: calc(var(--top-pad) + 52px) 18px calc(var(--safe-bottom) + 22px);
}
.check__card {
  position: relative; margin: auto; width: min(340px, 100%);
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 24px;
  box-shadow: 0 9px 0 rgba(0, 0, 0, .38);
  padding: 50px 20px 18px; text-align: center;
  transform: rotate(-1.2deg);
}
.check__card::before { content: ""; position: absolute; inset: 5px; border-radius: 18px; border: 1.5px dashed rgba(42, 23, 9, .3); pointer-events: none; }
.check__badge {
  position: absolute; left: 50%; top: -36px; width: 72px; height: 72px; margin-left: -36px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 36% 30%, var(--tap-lite), var(--tap) 55%, var(--tap-deep));
  border: 3px solid var(--stout); box-shadow: 0 5px 0 var(--stout);
}
.check__badge svg { width: 36px; height: 36px; fill: var(--cream); filter: drop-shadow(0 2px 0 var(--stout)); }
.check__kicker { font: 800 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tap); }
.check__title { margin: 10px 0 10px; font: 400 29px/1.06 var(--font-display); outline: none; }
.check__text { font: 700 16px/1.42 var(--font-body); }
.check__clock {
  display: inline-block; margin: 14px 0 2px; padding: 8px 14px; border-radius: 999px;
  background: var(--stout); color: var(--gold); font: 800 15px/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.check__clock:empty { display: none; }
.check__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
.check__actions .linkish { align-self: center; font-size: 15px; }
.check__fine { margin-top: 12px; font: 600 12.5px/1.42 var(--font-body); color: rgba(42, 23, 9, .78); }
.check__fine:empty { display: none; }
.check[data-state="sending"] .check__actions { display: none; }
.check__card .spinner { display: none; }
.check[data-state="sending"] .check__card .spinner { display: block; }
.spinner { width: 46px; height: 46px; margin: 16px auto 4px; border-radius: 50%; border: 5px solid rgba(42, 23, 9, .15); border-top-color: var(--tap); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the live camera */
.cam { position: absolute; inset: 0; z-index: 2; background: #0B0603; overflow: hidden; }
.cam__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0B0603; }
.cam.is-front .cam__video { transform: scaleX(-1); }
.cam__frame {
  position: absolute; left: 50%; top: 47%; width: min(80vw, 340px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(11, 6, 3, .34);
  border-radius: 14px;
}
.cam__frame i { position: absolute; width: 38px; height: 38px; border: 5px solid var(--cream); filter: drop-shadow(0 2px 0 rgba(42, 23, 9, .8)); }
.cam__frame i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.cam__frame i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.cam__frame i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.cam__frame i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.cam__top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(var(--top-pad) + 8px) 12px 0;
}
.cam__btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  background: rgba(24, 12, 4, .6); border: 2px solid rgba(255, 244, 223, .4);
}
.cam__btn svg { width: 24px; height: 24px; }
.cam__btn .stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cam__btn:active { transform: scale(.92); }
.cam__hint {
  min-width: 0; padding: 9px 14px; border-radius: 999px; text-align: center;
  background: rgba(24, 12, 4, .6); color: var(--cream); font: 800 13.5px/1.2 var(--font-body);
}
.cam__stamp {
  position: absolute; left: 50%; top: calc(47% + min(40vw, 170px) + 14px); transform: translateX(-50%);
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  background: var(--stout); color: var(--cream); border: 2px solid var(--cream);
  font: 800 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.cam__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 0 calc(var(--safe-bottom) + 22px);
}
.cam__clock {
  padding: 7px 13px; border-radius: 999px; background: rgba(24, 12, 4, .7); color: var(--gold);
  font: 800 14px/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.shutter { position: relative; width: 104px; height: 104px; border-radius: 50%; transition: transform .12s var(--ease-out); }
.shutter__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shutter__face { fill: var(--tap); stroke: var(--stout); stroke-width: 4.5; }
.shutter__icon {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%);
  fill: var(--cream); filter: drop-shadow(0 2.5px 0 var(--stout));
}
.shutter:active { transform: scale(.92); }
.shutter[disabled] { opacity: .5; }
.cam__flash { position: absolute; inset: 0; z-index: 3; background: #FFF7E8; opacity: 0; pointer-events: none; }

/* the photo just taken */
.review {
  position: absolute; inset: 0; z-index: 3; overflow-y: auto;
  display: flex; padding: calc(var(--top-pad) + 26px) 22px calc(var(--safe-bottom) + 22px);
  background:
    radial-gradient(120% 50% at 10% 0%, rgba(255, 244, 223, .07), transparent 60%),
    var(--stout);
}
.review__inner { margin: auto; width: min(340px, 100%); text-align: center; }
.review__title { font: 400 31px/1.05 var(--font-display); color: var(--cream); outline: none; }
.review__size { font: 600 12.5px/1.3 var(--font-body); color: var(--cream-68); margin: -4px 0 4px; }
.review .check__actions { margin-top: 12px; }

/* polaroids: the review, the wall, the viewer */
.polaroid {
  margin: 0; background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 10px;
  padding: 9px 9px 10px; box-shadow: 0 7px 0 rgba(0, 0, 0, .3);
}
.polaroid__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--foam-3); }
.polaroid--big { margin: 18px auto 14px; transform: rotate(1.6deg); }
.polaroid__cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; min-height: 32px; }
.polaroid__who { min-width: 0; text-align: left; font: 700 12.5px/1.25 var(--font-body); color: var(--stout); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.polaroid__who b { font-weight: 800; }

/* ---------- Sheets, v2 ---------- */
.sheet--full { height: calc(100% - var(--top-pad) - 12px); max-height: none; }
.sheet__title--sm { font-size: 24px; line-height: 1.05; overflow-wrap: anywhere; }
.sheet__body > :first-child { margin-top: 0; }

.sec { margin-top: 28px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 8px 12px; }
.sec__title { font: 400 21px/1.1 var(--font-display); color: var(--gold); }
.sec__note { margin: -4px 8px 12px; font: 600 13px/1.4 var(--font-body); color: var(--cream-68); }
.sec__link { font: 800 13.5px/1 var(--font-body); color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; white-space: nowrap; }

.note {
  border-radius: 16px; background: var(--cream-08); color: var(--cream);
  padding: 14px 16px; font: 600 14.5px/1.45 var(--font-body);
}
.note + .note { margin-top: 10px; }
.note b { font-weight: 800; }
.note__title { display: block; margin-bottom: 6px; font: 400 18px/1.15 var(--font-display); color: var(--gold); }
.note .btnrow { margin-top: 12px; }
.note--warm { background: rgba(255, 201, 60, .13); box-shadow: inset 0 0 0 1.5px rgba(255, 201, 60, .35); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btnrow > .btn { flex: 1 1 auto; }

/* the club page: profile */
.cp { text-align: center; padding: 2px 8px 0; }
.cp .ccap { margin: 0 auto; display: block; }
.cp__name { margin-top: 12px; font: 400 30px/1.06 var(--font-display); color: var(--cream); overflow-wrap: anywhere; }
.cp__desc { margin: 8px auto 0; max-width: 320px; font: 600 15px/1.42 var(--font-body); color: var(--cream-82); overflow-wrap: anywhere; }
.cp__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 7px 12px; border-radius: 999px; background: var(--cream-12);
  font: 800 13px/1 var(--font-body); color: var(--cream);
}
.stat b { font: 400 15px/1 var(--font-display); color: var(--gold); }
.cp__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cp__actions .btn { height: 50px; font-size: 17px; }
.has-dot { position: relative; }
.has-dot::after {
  content: attr(data-dot); position: absolute; top: -7px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: var(--stout); border: 2px solid var(--stout);
  font: 800 12px/18px var(--font-body); text-align: center;
}

/* who's out tonight */
.out { display: flex; gap: 14px; overflow-x: auto; padding: 8px 8px 6px; margin: 0 -2px; scrollbar-width: none; }
.out::-webkit-scrollbar { display: none; }
.out__item { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.out__name { max-width: 66px; font: 800 13px/1.1 var(--font-body); color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out__time { font: 700 11.5px/1 var(--font-body); color: var(--cream-68); }
.out__empty { margin: 0 8px; }

/* the beer wall */
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 4px 6px 2px; }
.wall .polaroid { padding: 7px 7px 6px; border-radius: 9px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.wall .polaroid:nth-child(4n+1) { transform: rotate(-1.6deg); }
.wall .polaroid:nth-child(4n+2) { transform: rotate(1.3deg); }
.wall .polaroid:nth-child(4n+3) { transform: rotate(.9deg); }
.wall .polaroid:nth-child(4n) { transform: rotate(-1.1deg); }
.polaroid__open { display: block; width: 100%; border-radius: 4px; overflow: hidden; }
.wall .polaroid__cap { margin-top: 6px; min-height: 34px; }
.wall .polaroid__who { font-size: 12px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wall__more { display: block; margin: 16px auto 0; }

.cheers {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 10px 0 6px; border-radius: 999px;
  border: 2px solid var(--stout); background: var(--foam); color: var(--stout);
  font: 800 13px/1 var(--font-body); font-variant-numeric: tabular-nums;
  transition: transform .12s var(--ease-out);
}
.cheers svg { width: 22px; height: 22px; overflow: visible; }
.cheers .clink { fill: var(--gold); stroke: var(--stout); stroke-width: 1.6; stroke-linejoin: round; }
.cheers .clink-foam { fill: var(--foam); stroke: var(--stout); stroke-width: 1.4; }
.cheers .clink__l, .cheers .clink__r { transform-box: fill-box; transform-origin: 50% 100%; }
.cheers[aria-pressed="true"] { background: var(--tap); color: var(--cream); }
.cheers[aria-pressed="true"] .clink-foam { fill: var(--cream); }
.cheers:active { transform: scale(.94); }
.cheers[disabled] { opacity: 1; cursor: default; }
.cheers.is-clink .clink__l { animation: clink-l .55s var(--ease-spring); }
.cheers.is-clink .clink__r { animation: clink-r .55s var(--ease-spring); }
@keyframes clink-l { 40% { transform: rotate(18deg) translateX(2px); } }
@keyframes clink-r { 40% { transform: rotate(-18deg) translateX(-2px); } }
.cheers--big { min-height: 48px; padding: 0 18px 0 12px; font-size: 16px; gap: 8px; }
.cheers--big svg { width: 28px; height: 28px; }
.fizzpop { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--foam); border: 1.5px solid var(--stout); pointer-events: none; z-index: 5; }

/* member cards */
.members { list-style: none; padding: 0 2px; display: flex; flex-direction: column; gap: 8px; }
.mcard { border-radius: 18px; background: var(--cream-08); box-shadow: inset 0 0 0 1.5px var(--cream-08); }
.mcard.is-me { background: var(--tap); box-shadow: inset 0 0 0 2px rgba(255, 244, 223, .22); }
.mcard__main {
  display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px 11px 8px; text-align: left; border-radius: 18px;
}
.mcard__rank { font: 400 17px/1 var(--font-display); color: var(--gold); text-align: center; }
.mcard__who { min-width: 0; }
.mcard__name { display: flex; align-items: center; gap: 6px; min-width: 0; font: 800 17px/1.15 var(--font-body); color: var(--cream); }
.mcard__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard__last { margin-top: 3px; font: 600 12.5px/1.25 var(--font-body); color: var(--cream-68); }
.mcard.is-me .mcard__last { color: var(--cream-82); }
.mcard__count { text-align: right; font: 400 23px/1 var(--font-display); color: var(--cream); }
.mcard__count small { display: block; margin-top: 4px; font: 800 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-68); }
.mcard:first-child .mcard__count { color: var(--gold); }
.mcard__more { padding: 2px 14px 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 5px;
  border-radius: 999px; background: var(--cream-12); color: var(--cream);
  font: 800 11.5px/1 var(--font-body); letter-spacing: .02em; white-space: nowrap;
}
.badge svg { width: 17px; height: 17px; flex: none; fill: var(--gold); }
.mcard.is-me .badge { background: rgba(19, 74, 48, .72); }
.badge-notes { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.badge-notes li { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.35 var(--font-body); color: var(--cream-82); }
.badge-notes svg { width: 18px; height: 18px; flex: none; fill: var(--gold); }
.badge-notes b { color: var(--cream); font-weight: 800; }

/* milestone timeline */
.tl { list-style: none; padding: 0 8px; margin: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; }
.tl li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: rgba(255, 244, 223, .16); }
.tl li:last-child::before { display: none; }
.tl li.is-done::before { background: rgba(255, 201, 60, .55); }
.tl__mark {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--stout); border: 2px solid rgba(255, 244, 223, .35);
}
.tl__mark svg { width: 15px; height: 15px; fill: none; stroke: var(--stout); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tl li.is-done .tl__mark { background: var(--gold); border-color: var(--gold); }
.tl li.is-next .tl__mark { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 201, 60, .2); }
.tl__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 3px; }
.tl__n { font: 400 17px/1 var(--font-display); color: var(--cream); font-variant-numeric: tabular-nums; }
.tl__name { font: 800 15px/1.2 var(--font-body); color: var(--cream); }
.tl__when { margin-top: 4px; font: 600 12.5px/1.3 var(--font-body); color: var(--cream-68); }
.tl li.is-todo { opacity: .5; }
.tl li.is-todo .tl__name { font-weight: 700; }
.tl__meter { margin-top: 8px; height: 12px; border-radius: 999px; background: var(--cream-12); overflow: hidden; }
.tl__meter i { display: block; height: 100%; width: var(--p, 0%); min-width: 12px; border-radius: 999px; background: linear-gradient(180deg, #FFD660, #E8901D); }
.tl__toggle { display: block; margin: 0 auto; }

/* rows: your clubs, your beers, people */
.rows { list-style: none; padding: 0; margin: 0; }
.rowx { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 10px; border-radius: 16px; }
.rowx + .rowx { box-shadow: inset 0 1px 0 var(--cream-08); }
button.rowx { width: 100%; text-align: left; }
button.rowx:active { background: var(--cream-08); }
.rowx.is-here { background: var(--cream-08); }
.rowx__main { flex: 1; min-width: 0; }
.rowx__title { display: flex; align-items: center; gap: 8px; font: 800 16.5px/1.2 var(--font-body); color: var(--cream); }
.rowx__title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowx__sub { margin-top: 3px; font: 600 13px/1.3 var(--font-body); color: var(--cream-68); }
.rowx__side { flex: none; display: flex; align-items: center; gap: 8px; }
.rowx__n { font: 400 19px/1 var(--font-display); color: var(--cream); }
.rowx__acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 12px 10px; }
.thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 2px solid var(--cream); background: var(--foam-3); }
.thumb--none { display: grid; place-items: center; background: var(--cream-08); border: 2px dashed rgba(255, 244, 223, .25); }
.thumb--none svg { width: 22px; height: 22px; fill: rgba(255, 244, 223, .45); }
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; white-space: nowrap;
  font: 800 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream-12); color: var(--cream);
}
.chip--here { background: var(--gold); color: var(--stout); }
.chip--flag { background: var(--ember); color: var(--cream); }
.chip--wait { background: var(--gold); color: var(--stout); }
.chip--you { background: var(--cream); color: var(--tap-deep); }
.mini {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 2px solid rgba(255, 244, 223, .5); color: var(--cream);
  font: 800 13.5px/1 var(--font-body);
}
.mini svg { width: 17px; height: 17px; fill: currentColor; }
.mini .stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mini:active { transform: scale(.95); }
.mini--tap { background: var(--tap); border-color: var(--tap); }
.mini--danger { background: var(--ember); border-color: var(--ember); }
.mini--cream { background: var(--cream); border-color: var(--cream); color: var(--stout); }
.mini--icon { width: 38px; padding: 0; }
.mini--icon svg { width: 18px; height: 18px; }
.mini[aria-expanded="true"] { background: var(--cream); color: var(--stout); border-color: var(--cream); }
.confirmrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 10px 12px; font: 700 13.5px/1.35 var(--font-body); color: var(--cream); }
.confirmrow p { flex: 1 1 100%; }
.sheet__foot2 { margin: 26px 8px 4px; font: 600 13.5px/1.5 var(--font-body); color: var(--cream-68); }
.sheet__foot2 b { color: var(--cream); font-weight: 800; }

/* segmented control (notifications) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 10px; border-radius: 16px; background: var(--cream-12); }
.seg button { min-height: 44px; padding: 0 6px; border-radius: 12px; font: 800 14px/1.1 var(--font-body); color: var(--cream); }
.seg button[aria-checked="true"] { background: var(--cream); color: var(--stout); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.seg button:focus-visible { outline-color: var(--gold); }
.notify-club { padding: 14px 10px 16px; }
.notify-club + .notify-club { box-shadow: inset 0 1px 0 var(--cream-08); }
.notify-club .rowx__title { gap: 10px; }

/* forms inside sheets */
.sheet .field { box-shadow: none; }
.sheet .field:focus { box-shadow: 0 0 0 4px rgba(255, 201, 60, .45); }
.formstack { display: flex; flex-direction: column; gap: 12px; padding: 4px 6px; }
.formstack .photo-pick__label { color: var(--gold); }
.linkbox {
  display: block; width: 100%; padding: 12px 14px; border-radius: 14px;
  background: var(--cream); color: var(--stout); border: 2.5px solid var(--stout);
  font: 700 14px/1.35 var(--font-body); word-break: break-all; user-select: all; -webkit-user-select: all;
}
.pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 6px; }
.pick button {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(255, 244, 223, .45);
  color: var(--cream); font: 800 14px/1 var(--font-body);
}
.pick button[aria-pressed="true"] { background: var(--cream); color: var(--stout); border-color: var(--cream); }
.news { list-style: none; padding: 0 6px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.news li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font: 600 15px/1.42 var(--font-body); color: var(--cream-82); }
.news li b { color: var(--cream); font-weight: 800; display: block; }
.news__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-12); }
.news__ico svg { width: 19px; height: 19px; fill: var(--gold); }

/* a yes or no */
.dialog { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(24, 12, 4, .62); }
.dialog__card {
  position: relative; width: min(340px, 100%);
  background: var(--cream); color: var(--stout);
  border: 3px solid var(--stout); border-radius: 22px; box-shadow: 0 8px 0 rgba(0, 0, 0, .32);
  padding: 20px 18px 16px;
}
.dialog__card::before { content: ""; position: absolute; inset: 5px; border-radius: 16px; border: 1.5px dashed rgba(42, 23, 9, .28); pointer-events: none; }
.dialog__title { font: 400 24px/1.1 var(--font-display); outline: none; }
.dialog__text { margin: 10px 0 16px; font: 600 15.5px/1.45 var(--font-body); }
.dialog__actions { position: relative; display: flex; flex-direction: column; gap: 10px; }

/* a wall photo, big */
.viewer {
  position: absolute; inset: 0; z-index: 80; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(var(--top-pad) + 60px) 22px calc(var(--safe-bottom) + 24px);
  background: rgba(15, 8, 3, .93);
}
.viewer__x { position: absolute; top: calc(var(--top-pad) + 8px); right: 12px; }
.viewer__card { width: min(360px, 100%); margin: 0; transform: rotate(-1deg); }
.viewer__card .polaroid__who { white-space: normal; font-size: 14px; }
.viewer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Smaller phones ---------- */
@media (max-height: 700px) {
  .front { padding-top: calc(var(--foam-h) + 12px); }
  .front__inner { gap: 16px; }
  .tag { padding: 13px 15px; }
  .tag__title { font-size: 19px; }
  .check__panel { padding-top: calc(var(--top-pad) + 44px); }
  .check__card { padding-top: 44px; }
  .check__title { font-size: 26px; }
  .check__fine { display: none; }
  .shutter { width: 92px; height: 92px; }
  .clubchip { min-height: 38px; font-size: 15.5px; }
}
@media (max-width: 370px) {
  .wall { gap: 14px 10px; }
  .mcard__main { gap: 8px; padding-right: 12px; }
  .seg button { font-size: 13px; }
}

/* ---------- Reduced motion, v2 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ccap.is-out::after, .spinner { animation: none !important; }
  .cheers.is-clink .clink__l, .cheers.is-clink .clink__r { animation: none; }
  .clubchip, .cheers, .shutter { transition-duration: .01ms !important; }
}

/* ---------- v2: the snack bar (messages over sheets), small extras ---------- */
.snack { bottom: calc(var(--safe-bottom) + 24px); z-index: 95; }
.thumb--lg { width: 84px; height: 84px; border-radius: 10px; }
.rowx__side .me__chev { margin-left: 0; color: var(--cream); }
.demo-flag {
  position: absolute; left: 10px; right: 10px; top: calc(var(--foam-h) + 6px); z-index: 99;
  padding: 8px 12px; border-radius: 12px; text-align: center; pointer-events: none;
  background: var(--ember); color: var(--cream); border: 2px solid var(--stout);
  font: 800 13px/1.3 var(--font-body);
}
