@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #1a1614;
  --cocoa: #6f5545;
  --ember: #d84a1e;
  --ember-deep: #bf3e17;
  --gold: #d9a84c;
  --wall: #4f6f5e;
  --line: rgba(26, 22, 20, 0.12);
  --chip: rgba(26, 22, 20, 0.06);
  --good: #4a7c4e;
  --bad: #b5423a;
  --display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 9vw, 84px); }
h2 { font-size: clamp(32px, 6vw, 52px); }
h3 { font-size: 20px; margin-top: 28px; }

.screen { padding: 40px 0 56px; }

.lede { font-size: 19px; color: var(--cocoa); margin: 14px 0 0; max-width: 34em; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.buttons.stack { flex-direction: column; align-items: flex-start; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.primary, .secondary, .primary-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}

.primary, .primary-link { background: var(--ember); color: #fff; }
.primary:hover, .primary-link:hover { background: var(--ember-deep); }
.secondary { background: var(--chip); }
.secondary:hover { background: rgba(26, 22, 20, 0.1); }


.shift-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 1fr; }
.shift-list li { display: flex; }
.shift-list a {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
  height: 100%;
  grid-template-rows: auto auto minmax(18px, auto);
  align-content: center;
}
.shift-list .status { min-height: 18px; }
.shift-list a.locked { opacity: 0.7; }
.shift-list .module { color: var(--ink); font-weight: 600; font-size: 15px; }
.shift-list strong { font-family: var(--display); font-weight: 900; font-size: 22px; }
.shift-list span { color: var(--cocoa); font-size: 14px; }

.lines { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: 19px; color: var(--cocoa); }

.bottle-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.bottle-grid figure { margin: 0; display: grid; justify-items: start; gap: 4px; width: 84px; }
.bottle-grid figcaption { font-size: 13px; line-height: 1.25; color: var(--cocoa); }

.drink-names { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.drink-names li { background: var(--chip); border-radius: 999px; padding: 6px 12px; font-size: 15px; }

.goal { font-weight: 650; margin-top: 24px; }

.play { padding: 8px 0 12px; }

.hud {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 8px;
  white-space: nowrap;
}
.hud-shift { font-family: var(--display); font-weight: 900; font-size: 18px; }
.hud-stars { color: var(--ember-deep); }
.strikes { letter-spacing: 2px; color: var(--bad); }
.icon-button { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); font-size: 12px; flex: none; }

.stage {
  position: relative;
  width: 100%;
  height: calc(100dvh - 64px);
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #a56e43;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }

.bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  max-width: 220px;
  min-width: 96px;
  background: var(--paper);
  border-radius: 14px;
  padding: 6px 10px 7px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}
.bubble.focused { box-shadow: 0 0 0 3px var(--gold); }
.bubble p { margin: 0 0 5px; }
.bubble button { margin-top: 5px; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 650; }
.patience { height: 5px; border-radius: 3px; background: rgba(26, 22, 20, 0.12); overflow: hidden; }
.patience i { display: block; height: 100%; width: 100%; background: var(--good); border-radius: 3px; }
.patience i.low { background: var(--bad); }

.ticket {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: min(27%, 260px);
  background: var(--paper);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.ticket h3 { font-size: 15px; margin: 0 0 5px; }
.ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ticket li { display: grid; grid-template-columns: 4.4em 1fr; gap: 6px; }
.ticket .amount { color: var(--ember-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket .hint { color: var(--cocoa); font-style: italic; }
.ticket .meta { margin: 5px 0 0; color: var(--cocoa); }
.ticket .meta::first-letter { text-transform: uppercase; }
.ticket .meta + .meta { margin-top: 2px; }
.ticket.peeking { outline: 3px solid var(--gold); }
.ticket.docked { top: auto; bottom: 8px; left: 8px; right: 8px; max-width: none; }
.ticket.docked ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.ticket.docked li { grid-template-columns: 3.6em 1fr; }
.ticket .peek-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.ticket .peek-row button { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 650; }
.ticket .peek-row button:disabled { opacity: 0.4; }
.ticket .note { font-size: 12px; color: var(--cocoa); }

.toast {
  position: absolute;
  transform: translate(-50%, 0);
  background: var(--cream);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 150px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: pop 0.25s ease-out;
}
.toast h4 { font-family: var(--display); font-weight: 900; font-size: 20px; margin: 0; }
.toast .stars { color: var(--ember-deep); letter-spacing: 2px; font-size: 18px; }
.toast ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 10px; }
.toast .yes { color: var(--good); font-weight: 800; }
.toast .no { color: var(--bad); font-weight: 800; }
.toast .tip { font-weight: 700; font-size: 13px; margin-top: 4px; }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

.namecard {
  position: absolute;
  transform: translate(-50%, -100%);
  margin: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bubble.raised { transform: translate(-50%, calc(-100% - 40px)); }
.bubble.focused { z-index: 2; }
.tools figcaption span { display: block; }

.coach {
  position: absolute;
  margin: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 650;
  font-size: 14px;
  pointer-events: none;
  display: grid;
  gap: 2px;
  max-width: min(70%, 420px);
  border-radius: 14px;
}
.coach strong { font-size: 15px; }
.coach span { font-weight: 500; opacity: 0.9; }

.tools figure { width: 120px; }

.art-row { display: block; margin-top: 28px; max-width: 100%; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 20, 0.45);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  z-index: 10;
}
.card { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 24px; width: min(420px, 100%); max-height: 100%; overflow: auto; }
.tip { font-weight: 700; margin: 12px 0 0; }
.keys { margin-top: 20px; color: var(--cocoa); font-size: 14px; }
.keys h3 { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
@media (hover: none) { .keys { display: none; } }

.stat { font-size: 20px; font-weight: 650; margin: 10px 0 0; }

.book { display: grid; gap: 12px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.book article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 1fr 64px; gap: 8px; }
.book h3 { font-size: 19px; margin: 0 0 6px; grid-column: 1 / -1; }
.book ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 2px; }
.book .amount { color: var(--ember-deep); font-weight: 700; margin-right: 6px; }
.book .meta { font-size: 13px; color: var(--cocoa); margin: 6px 0 0; }
.book .meta::first-letter { text-transform: uppercase; }

.noscript { padding: 24px var(--gutter); font-weight: 600; }

@media (max-width: 899px) {
  .hud { gap: 10px; font-size: 13px; padding-bottom: 6px; }
  .hud-shift { font-size: 16px; }
  .stage { height: calc(100dvh - 62px); border-radius: 12px; }
  .ticket { max-width: min(45%, 200px); }
  .bubble { max-width: 110px; }
  .bubble { font-size: 12px; max-width: 150px; min-width: 80px; padding: 5px 8px 6px; }
  .ticket { font-size: 11.5px; padding: 7px 9px; }
  .ticket h3 { font-size: 13px; }
  .coach { font-size: 12px; padding: 5px 10px; }
  .toast { min-width: 130px; padding: 8px 10px; }
  .toast h4 { font-size: 16px; }
}

@media (min-width: 900px) {
  .ticket { font-size: 14px; }
}

/* speakeasy */
body.playing { background: #17110D; color: #F3E9D2; }
body.playing #app { max-width: 1320px; }
.hud { background: #3A2418; color: #F3E9D2; border: 2px solid #C9A24C; border-radius: 14px; padding: 6px 12px; margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.hud-shift { color: #E8C878; }
.hud-stars { color: #E8C878; }
.strikes { color: #E0605A; }
.icon-button { background: rgba(243, 233, 210, 0.12); color: #F3E9D2; }
.stage { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(201, 162, 76, 0.5); background: #33231A; }

.ticket {
  background: #FFF8E7;
  color: #1A1614;
  border: 2px solid #1A1614;
  border-radius: 4px 4px 0 0;
  padding: 16px 12px 18px;
  transform: rotate(-1.2deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px));
}
.ticket::before { content: ''; position: absolute; top: -2px; left: 50%; width: 44px; height: 10px; margin-left: -22px; background: #C9A24C; border: 2px solid #1A1614; border-top: 0; border-radius: 0 0 6px 6px; }
.ticket h3 { font-size: 17px; }
.ticket.docked { transform: none; }

.bubble { border: 2.5px solid #1A1614; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); color: #1A1614; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: #FFFFFF; border-right: 2.5px solid #1A1614; border-bottom: 2.5px solid #1A1614; transform: rotate(45deg); }
.patience { background: rgba(26, 22, 20, 0.15); height: 6px; }
.patience i { background: linear-gradient(90deg, #4A7C4E, #7BB36B); }
.patience i.low { background: linear-gradient(90deg, #B5423A, #E0605A); }

.coach { background: #3A2418; border: 2px solid #C9A24C; color: #F3E9D2; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); padding: 9px 14px; }
.coach strong { color: #E8C878; }

.toast { border: 2.5px solid #1A1614; color: #1A1614; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.toast .stars span { display: inline-block; animation: starpop 0.35s ease-out both; }
.toast .stars span:nth-child(2) { animation-delay: 0.12s; }
.toast .stars span:nth-child(3) { animation-delay: 0.24s; }
@keyframes starpop { from { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.35); opacity: 1; } to { transform: scale(1); } }

.namecard { background: #3A2418; border: 2px solid #C9A24C; color: #F3E9D2; }

.hero { display: block; width: 100%; height: auto; border-radius: 18px; margin: 0 0 24px; box-shadow: 0 12px 30px rgba(26, 22, 20, 0.28); }
.shift-list a { box-shadow: 0 2px 8px rgba(26, 22, 20, 0.08); grid-template-columns: 1fr auto; align-items: center; }
.shift-list a canvas { grid-row: 1 / span 3; grid-column: 2; }
.shift-list a.locked canvas { opacity: 0.35; }
.card { border: 2px solid #C9A24C; }

@media (max-width: 899px) {
  .stage { height: calc(100dvh - 78px); }
  .bubble { max-width: calc(25vw - 10px); min-width: 0; font-size: 11px; padding: 5px 7px 6px; }
  .bubble button { padding: 3px 9px; font-size: 11px; }
  .hud { padding: 4px 10px; }
}

.chit {
  position: absolute;
  transform: translateX(-50%);
  width: 176px;
  background: #FBF7EE;
  color: #1A1614;
  border: 2px solid #1A1614;
  border-radius: 4px 4px 2px 2px;
  padding: 8px 10px 9px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  text-align: left;
}
.chit::before { content: ''; position: absolute; left: 50%; top: -9px; width: 36px; height: 12px; margin-left: -18px; background: #C9A24C; border: 2px solid #1A1614; border-radius: 3px; }
.chit h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: 0.04em; border-bottom: 1.5px dashed rgba(26, 22, 20, 0.45); padding-bottom: 4px; }
.chit ul { list-style: none; margin: 0 0 7px; padding: 0; display: grid; gap: 3px; }
.chit button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 3px 5px; border-radius: 4px; font-size: 13px; font-weight: 650; cursor: pointer; }
.chit button:focus-visible { outline: 2px solid var(--gold); }
.chit button.focused { background: rgba(201, 162, 76, 0.32); box-shadow: inset 3px 0 0 #C9A24C; }
.chit button.done { text-decoration: line-through; opacity: 0.55; cursor: default; }
.chit button.done::before { content: '✓ '; }
.chit.stacked { transform: translate(-50%, 0) translate(-14px, 14px); }
@media (max-width: 899px) {
  .chit { width: calc(25vw - 8px); min-width: 84px; padding: 5px 6px 6px; }
  .chit h4 { font-size: 11.5px; margin-bottom: 4px; padding-bottom: 3px; }
  .chit ul { gap: 1px; margin-bottom: 5px; }
  .chit button { font-size: 10.5px; line-height: 1.15; padding: 2px 3px; }
  .chit.stacked { transform: translate(-50%, 0) translate(-8px, 10px); }
}

.toast { z-index: 10; }
#chits { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#chits .chit { pointer-events: auto; }
#toasts { z-index: 10; }
.ticket.compact { font-size: 11px; line-height: 1.25; padding: 12px 9px 14px; transform: none; }
.ticket.compact h3 { font-size: 1.2em; }
.ticket.compact li { grid-template-columns: 4.6em 1fr; gap: 4px; }

body.playing { background: #2B1B13; }
.hud { background: #3A2418; border-color: #C9A24C; }
.patience { transition: opacity 0.4s; }
.patience.calm { opacity: 0; }
#screen-intro .hero { height: min(30vh, 260px); width: 100%; object-fit: cover; object-position: 50% 88%; margin-bottom: 18px; }
#screen-intro .goal { margin-top: 14px; }
#screen-intro .buttons { margin-top: 16px; }
.shift-list a.locked canvas { filter: grayscale(1); }
@media (max-width: 480px) {
  .hud { gap: 4px 9px; font-size: 12.5px; padding: 5px 9px; }
  .hud-shift { font-size: 16px; }
  .strikes { letter-spacing: 0; }
}

#screen-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 36px; align-items: start; padding-top: 20px; }
#screen-intro .intro-main, #screen-intro .intro-details { min-width: 0; }
.intro-details h3 { margin: 0; font-size: 17px; }
.intro-details > * + * { margin-top: 14px; }
.intro-details .bottle-grid { gap: 10px; margin-top: 8px; }
.intro-details .bottle-grid figure { width: 64px; }
.intro-details .bottle-grid canvas { max-width: 100%; height: auto; }
.intro-details .drink-names { margin-top: 6px; }
@media (min-width: 900px) {
  #screen-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  #screen-intro .hero { height: min(34vh, 300px); }
  .intro-details { padding-top: 8px; }
}
.icon-button.sound { margin-left: auto; position: relative; font-size: 15px; }
.icon-button.sound + .icon-button { margin-left: 6px; }
.icon-button.sound.off::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: currentColor; transform: rotate(-40deg); }

.board { margin-top: 22px; max-width: 520px; }
.board h3 { margin: 0 0 8px; font-size: 20px; }
.board-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.board-form label { font-weight: 650; font-size: 14px; color: var(--cocoa); width: 100%; }
.board-form input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); min-width: 0; flex: 1 1 180px; }
.board-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.board-list li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.board-list li.you { border-color: var(--gold); background: #FFF6E2; font-weight: 650; }
.board-list .rank { color: var(--cocoa); font-variant-numeric: tabular-nums; }
.board-list .score { color: var(--ember-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.board .note { margin: 8px 0 0; color: var(--cocoa); font-size: 14px; }
.toast.copied { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.intro-details > * + h3, .intro-details > * + div { margin-top: 18px; }
.board-form input[aria-invalid='true'] { border-color: var(--bad); }

.tally { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tally li b { font-variant-numeric: tabular-nums; color: var(--bad); }
.tally li.clean { color: var(--good); font-weight: 650; }
.tally.money li b { color: var(--ink); }
.advice { margin: 8px 0 0; font-size: 14px; color: var(--cocoa); }
.bubble.talking { max-width: 180px; }
.bubble.talking p { font-style: italic; font-weight: 600; }
.bubble.angry, .bubble.angry::after { border-color: #B5423A; }
.intro-details .bottle-grid figure.rule, .bottle-grid figure.rule { width: auto; max-width: 260px; text-align: left; justify-items: start; padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
figure.rule figcaption { display: grid; gap: 2px; font-size: 14px; }
figure.rule figcaption span:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 899px) { .bubble.talking { max-width: calc(25vw - 10px); } }
@media (max-width: 420px) { #hud-guest { display: none; } .hud .icon-button { flex: none; } }
@media (max-width: 480px) { .bubble { font-size: 10px; line-height: 1.15; padding: 4px 6px 5px; } .bubble p { margin-bottom: 3px; } .bubble button { font-size: 10px; padding: 2px 8px; margin-top: 3px; } .bubble .patience { height: 4px; } }
.ticket.docked.with-chits { right: calc(25vw + 4px); }

site-analytics { display: none; }
site-nav, site-footer { display: block; font-size: 17px; line-height: 1.55; }
site-nav a, site-footer a { color: inherit; }
site-nav img, site-footer img { display: block; }
body.playing site-nav, body.playing site-footer { display: none; }
site-footer { margin-top: 48px; }
.promo { margin-top: 32px; max-width: 420px; }
.promo-lead { margin: 0; font-size: 24px; line-height: 1.2; }
.promo-lead-sub { margin: 6px 0 0; font-size: 16px; color: var(--cocoa); }
.promo-card { margin-top: 14px; background: #FFFFFF; color: #000; border-radius: 28px; padding: 18px 18px 18px; box-shadow: 0 10px 30px rgba(42, 31, 24, 0.12); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; }
.promo-hero { margin-top: 0; padding: 14px 16px; border-radius: 22px; background: #F2F2F7; display: grid; gap: 10px; }
.promo-hero canvas { width: 100%; height: auto; display: block; }
.promo-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-hero-row strong { font-size: 19px; line-height: 24px; }
.promo-pill { height: 24px; padding: 0 10px; border-radius: 12px; background: #E5E5EA; color: #3A3A3C; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.promo-rows { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.promo-rows li { display: flex; align-items: center; gap: 14px; }
.promo-rows li > span:last-child { display: grid; gap: 1px; }
.promo-rows b { font-size: 16px; line-height: 20px; }
.promo-rows b + span { font-size: 13px; line-height: 17px; color: #5E5E63; }
.promo-tile { position: relative; flex: none; width: 52px; height: 52px; border-radius: 13px; background: #F2F2F7; display: grid; place-items: center; }
.promo-tile > svg { border-radius: 13px; }
.promo-tile canvas { width: 44px; height: auto; }
.promo-badge { position: absolute; right: -6px; bottom: -6px; height: 18px; padding: 0 6px; border-radius: 9px; background: #C43516; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.promo-cta { margin-top: 18px; height: 52px; border-radius: 26px; background: #C43516; color: #FFFFFF; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.promo-cta:hover { background: #A92C10; }
.promo-cta img { width: 26px; height: 26px; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.mixer { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--cocoa); }
.mixer-title { font-weight: 700; color: var(--ink); }
.mixer label { display: inline-flex; align-items: center; gap: 8px; }
.mixer input[type='range'] { width: 120px; accent-color: var(--ember); }
.mixer.stack { margin-top: 16px; display: grid; gap: 8px; }
.mixer.stack label { justify-content: space-between; }
.intro-details .bottle-grid figure { width: 76px; justify-items: center; text-align: center; }
.intro-details .bottle-grid figcaption { font-size: 12px; overflow-wrap: anywhere; }
.intro-details .bottle-grid { align-items: start; }
@media (min-width: 900px) {
}
.promo-hero { min-width: 0; overflow: hidden; }
.promo-hero-row { flex-wrap: wrap; }

.cert { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(42, 31, 24, 0.18); margin-bottom: 16px; }
.promo-deal { margin-bottom: 14px; padding: 12px 14px; border-radius: 18px; border: 2px dashed #C43516; background: #FFF2EE; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.promo-deal-text { display: grid; gap: 1px; }
.promo-deal-text b { font-size: 15px; }
.promo-deal-text span { font-size: 13px; color: #5E5E63; }
.promo-code { font: 700 15px ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.04em; padding: 8px 12px; border-radius: 10px; background: #FFFFFF; border: 1.5px solid #C43516; color: #C43516; cursor: pointer; }
.promo-redeem { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: #C43516; }
.cert-preview { display: grid; gap: 28px; }
.cert-name { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 10px; align-items: end; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.cert-name-title { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.cert-name label { display: grid; gap: 4px; font-size: 13px; color: var(--cocoa); font-weight: 600; }
.cert-name input { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; min-width: 0; }
.cert-name input[aria-invalid='true'] { border-color: var(--bad); }
.cert-name .note { grid-column: 1 / -1; margin: 0; color: var(--bad); font-size: 14px; }
@media (max-width: 560px) { .cert-name { grid-template-columns: 1fr 1fr; } .cert-name button { grid-column: 1 / -1; } }
.footnote { margin: 14px 0 0; max-width: 34em; font-size: 15px; color: var(--cocoa); }
.cert-demo { margin-top: 32px; max-width: 560px; }
.cert-demo h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.cert-demo p { margin: 6px 0 14px; color: var(--cocoa); font-size: 16px; }
.cert-demo .cert { transform: rotate(-1.2deg); box-shadow: 0 18px 40px rgba(42, 31, 24, 0.18); border-radius: 6px; }
@media (min-width: 900px) {
  #screen-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: 56px; align-items: start; }
  #screen-start > * { grid-column: 1; }
  #screen-start > .hero { grid-column: 1 / -1; }
  #screen-start > .cert-demo { grid-column: 2; grid-row: 2 / span 6; margin-top: 12px; }
  #screen-start > .progress { grid-column: 1 / -1; }
}
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cocoa); }
#intro-start:disabled { opacity: 0.55; cursor: default; }
a.secondary { color: var(--ink); }
a.primary { color: #fff; }
.shift-list a { color: inherit; text-decoration: none; }
.text-button { background: none; border: 0; padding: 10px 6px; font: inherit; font-size: 16px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(26, 22, 20, 0.3); text-underline-offset: 4px; cursor: pointer; }
.text-button:hover { text-decoration-color: currentColor; }

#screen-end { padding-top: 28px; }
.end-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: start; }
.end-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 28px; }
.end-main .hero { display: block; width: 100%; height: auto; margin: 0; border-radius: 22px; }
.end-main .cert { display: block; width: 100%; height: auto; margin: 0; border-radius: 8px; box-shadow: 0 10px 34px rgba(42, 31, 24, 0.16); }
.end-main .cert[hidden], .end-main .hero[hidden] { display: none; }
.cert-note { margin: -16px 0 0; font-size: 14px; color: var(--cocoa); }
.end-main .cert-name { margin: -12px 0 0; }
.end-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 24px; }
.end-head { flex: 1 1 280px; display: grid; gap: 6px; min-width: 0; }
.end-head .kicker { margin: 0; }
.end-head #end-title { margin: 0; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.end-head .lede { margin: 4px 0 0; font-size: 17px; }
.end-stars { margin: 4px 0 0; font-size: 17px; color: var(--cocoa); }
.end-stars b { color: #a8761d; }
.end-actions { flex: 0 0 300px; max-width: 100%; display: grid; gap: 8px; }
.end-primary { width: 100%; min-height: 56px; font-size: 17px; }
.end-more { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.end-more .secondary { min-height: 44px; }
.end-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.end-stats h4, .end-reviews h3 { margin: 0 0 8px; }
.end-stats h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cocoa); }
.tally li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tally li:last-child { border-bottom: 0; }
.tally li.clean { padding-top: 0; }
.tally.money li.total { font-weight: 700; }
.end-side { flex: 1 1 380px; min-width: 0; max-width: 532px; display: grid; gap: 36px; }
.end-reviews h3 { font-size: 22px; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reviews li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.reviews canvas { width: 46px; height: 46px; border-radius: 50%; background: #F3E6D3; }
.reviews .who { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); font-weight: 750; font-size: 14px; }
.reviews .five { color: #c9a24a; font-size: 11px; letter-spacing: 1px; }
.reviews p { margin: 2px 0 0; font-size: 14px; line-height: 1.3; }
.promo-end { margin: 0; max-width: none; display: grid; gap: 18px; }
.promo-end .promo-lead { font-size: 26px; line-height: 1.12; }
.promo-end .promo-card { margin: 0; padding: 22px; display: grid; gap: 18px; }
.promo-end .promo-deal, .promo-end .promo-hero, .promo-end .promo-rows, .promo-end .promo-cta { margin: 0; }
.promo-end .promo-rows { gap: 14px; }
.promo-end .promo-cta { background: #1a1614; }
.promo-end .promo-cta:hover { background: #000; }
@media (min-width: 900px) {
  .end-top { display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 532fr); }
  .end-side { max-width: none; }
}
@media (max-width: 899px) {
  .end-top { gap: 32px; }
  .end-side { max-width: none; }
  .end-actions { width: 100%; }
}
.progress { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.progress h2 { margin: 0 0 20px; font-size: clamp(26px, 3vw, 34px); }
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.progress-list a { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.progress-list img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 24px rgba(42, 31, 24, 0.14); transition: transform 0.15s ease; }
.progress-list a:hover img { transform: translateY(-2px); }
.progress-meta { display: grid; gap: 2px; font-size: 15px; color: var(--cocoa); }
.progress-meta b { color: var(--ink); font-size: 15px; }
#start-art { aspect-ratio: 1080 / 454; background: #5a3a28; }
