:root {
  color-scheme: light dark;
  --background-top: #fff8df;
  --background-bottom: #f3ce6c;
  --ink: #49301d;
  --muted: #795d3d;
  --line: #86591e29;
  --surface: #fff9e95c;
  --button: #49301d;
  --button-ink: #fff8e9;
  --beer-top: #f9cb55;
  --beer-bottom: #eaaa24;
  --glass-ink: #49301d;
  --foam: #fffdf3;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-title: 'Bevan', Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; color: var(--ink); font-family: var(--font-body); background: radial-gradient(ellipse at 50% 45%, #fff6c455, transparent 65%), linear-gradient(165deg, var(--background-top), var(--background-bottom)); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px; background: var(--background-top); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { max-width: 1320px; margin: auto; padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 11px; line-height: 1.35; }
.wordmark svg { width: 31px; height: 34px; }
.daily-pill { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 8px 11px; border-radius: 30px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7f8a45; }
.daily-section { text-align: center; }
.intro { padding-top: 44px; }
.eyebrow { margin: 0 0 16px; font-size: 9px; font-weight: 900; letter-spacing: 2.3px; color: var(--muted); }
h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(29px, 5vw, 57px); letter-spacing: -1.7px; line-height: 1.22; margin: 0 auto; max-width: 950px; text-wrap: balance; }
.title-beer { display: inline-block; font-family: system-ui, sans-serif; font-size: .82em; vertical-align: 4%; margin-right: 2px; }
.subtitle { font-size: 15px; margin: 15px 0 19px; color: var(--muted); }
.date-line { display: flex; justify-content: center; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; font-weight: 800; }
.date-line > span { height: 1px; width: 28px; background: var(--line); }
.beer-stage { position: relative; isolation: isolate; width: min(calc(100% - 24px), 430px); margin: 73px auto 0; padding-bottom: 19px; }
.beer-glass { position: relative; width: calc(100% - 27px); min-height: 340px; border: 9px solid #ffffff65; border-top: 0; border-bottom-width: 15px; border-radius: 9px 9px 43px 43px; box-shadow: inset 3px 0 0 #ffffff45, inset -3px 0 0 #ffffff45, 0 17px 30px #8c5a1220; }
.beer-liquid { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 29px 29px; background: linear-gradient(105deg, #ffe29060, transparent 30%, #e7a22425 70%, #fff3bd45), linear-gradient(var(--beer-top), var(--beer-bottom)); z-index: -1; }
.glass-shine { position: absolute; top: 28px; bottom: 27px; left: 8px; width: 8px; background: linear-gradient(#ffffff40, #ffffff12); border-radius: 10px; }
.beer-handle { position: absolute; z-index: -2; top: 54px; right: -23px; width: 99px; height: 201px; border: 20px solid #fff9df70; border-left-width: 12px; border-radius: 16px 50px 50px 16px; box-shadow: inset -3px 0 0 #fffdf54d, 4px 4px 0 #c28a1c15; }
.beer-copy { position: relative; z-index: 1; padding: 34px 19px 19px; color: var(--glass-ink); }
.glass-label { font-size: 9px; font-weight: 900; letter-spacing: 2.6px; margin: 0 0 16px; opacity: .75; }
h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(22px, 4vw, 29px); line-height: 1.4; margin: 0 0 23px; letter-spacing: -.55px; }
.reason-card { display: flex; justify-content: center; align-items: center; min-height: 98px; padding: 18px 14px; background: #fff9df6e; border: 1px solid #fff9df75; border-radius: 11px; box-shadow: 0 2px 0 #a36c0b08; }
.reason-card p { margin: 0; font-size: clamp(17px, 2.5vw, 21px); font-weight: 800; line-height: 1.5; text-wrap: pretty; }
.glass-bottom-mark { display: block; font-size: 8px; font-weight: 900; letter-spacing: 1.5px; opacity: .58; margin-top: 24px; }
.foam { position: absolute; z-index: 2; top: -30px; left: -12px; right: -12px; height: 51px; background: var(--foam); border-radius: 35% 30% 27% 25%; box-shadow: 0 5px 0 #ffffff2b; }
.foam span { position: absolute; border-radius: 50%; background: var(--foam); bottom: 6px; width: 20%; aspect-ratio: 1; }
.foam span:nth-child(1) { left: -1%; width: 19%; bottom: 0; }
.foam span:nth-child(2) { left: 11%; width: 21%; bottom: 8px; }
.foam span:nth-child(3) { left: 26%; width: 22%; bottom: 14px; }
.foam span:nth-child(4) { left: 43%; width: 20%; bottom: 8px; }
.foam span:nth-child(5) { left: 56%; width: 19%; bottom: 12px; }
.foam span:nth-child(6) { left: 70%; width: 20%; bottom: 6px; }
.foam span:nth-child(7) { left: 85%; width: 16%; bottom: -1px; }
.foam span:nth-child(8) { width: 18px; height: 43px; left: 12%; bottom: -16px; }
.coaster { position: absolute; z-index: -3; bottom: 4px; left: -9%; width: 112%; height: 30px; border-radius: 50%; background: #9b650921; box-shadow: 0 9px 22px #86581410; }
.side-note { display: none; position: absolute; font-family: var(--font-title); font-size: 16px; line-height: 1.5; color: var(--muted); }
.little-spark { display: block; font-family: Georgia, serif; font-size: 33px; font-weight: 400; margin-bottom: 12px; }
.left-note { left: -185px; top: 79px; transform: rotate(-9deg); }
.left-note svg { display: block; width: 82px; margin: 10px 0 0 36px; }
.right-note { right: -177px; top: 128px; transform: rotate(8deg); }
.note-underline { display: block; width: 68px; height: 6px; border-top: 2px solid var(--muted); border-bottom: 1px solid var(--muted); margin: 7px auto 0; transform: rotate(-4deg); opacity: .7; }
.bubble { position: absolute; bottom: -18px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #fff5c56e; background: #fff4c71a; animation: rise 7s linear infinite; }
.bubble-1 { left: 8%; animation-delay: -2s; }
.bubble-2 { left: 92%; animation-delay: -5s; width: 10px; height: 10px; }
.bubble-3 { left: 24%; animation-delay: -4s; animation-duration: 9s; }
.bubble-4 { left: 80%; animation-delay: -1s; }
.bubble-5 { left: 47%; animation-delay: -6s; width: 5px; height: 5px; }
.bubble-6 { left: 17%; animation-delay: -8s; animation-duration: 10s; }
.bubble-7 { left: 65%; animation-delay: -3s; }
.bubble-8 { left: 86%; animation-delay: -7s; animation-duration: 11s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .85; } 85% { opacity: .6; } 100% { transform: translate(9px, -360px); opacity: 0; } }
.below-glass { margin-top: 20px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 800; margin: 0; }
.countdown svg { width: 17px; height: 17px; flex-shrink: 0; }
.return-copy { margin: 7px 0 21px; color: var(--muted); font-size: 12px; }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 23px; border: 1px solid var(--button); border-radius: 8px; background: var(--button); color: var(--button-ink); box-shadow: 0 4px 0 #70451915; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.share-button svg { width: 17px; height: 17px; }
.share-button > span { margin-left: 18px; opacity: .75; }
.share-button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px #70451925; }
.share-button:active { transform: translateY(1px); }
.share-button:disabled { cursor: wait; opacity: .7; }
.share-status { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.wheel-toggle-wrap { margin: 12px 0 8px; }
.wheel-toggle { background: var(--surface); color: var(--ink); border-color: var(--line); }
.wheel-toggle > span { margin: 0; opacity: 1; }
.wheel-panel { max-width: 600px; margin: 28px auto; padding: clamp(18px, 5vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); scroll-margin-top: 24px; }
.wheel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wheel-heading .eyebrow { margin-bottom: 10px; font-size: 8px; letter-spacing: 1.5px; }
.wheel-heading h2 { margin: 0; font-family: var(--font-title); font-size: clamp(23px, 5vw, 32px); font-weight: 400; }
.wheel-heading h2:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
.wheel-stage { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 32px auto 24px; }
.game-wheel { position: absolute; inset: 0; border: 7px solid var(--ink); border-radius: 50%; background: #f8d77c; box-shadow: 0 9px 0 var(--line), inset 0 0 0 3px #fff8df70; transition: transform 6.5s cubic-bezier(.15, .75, .12, 1); }
.wheel-pointer { position: absolute; z-index: 2; top: -10px; left: 50%; width: 28px; height: 35px; transform: translateX(-50%); background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wheel-segment { position: absolute; inset: 0; color: var(--glass-ink); }
.wheel-segment > span { position: absolute; top: 11%; left: 50%; display: grid; gap: 3px; width: 26%; transform: translateX(-50%) rotate(-90deg); text-align: center; font-size: clamp(8px, 2.4vw, 11px); font-weight: 900; line-height: 1.1; }
.wheel-emoji { font-size: clamp(17px, 5vw, 23px); }
.wheel-hub { position: absolute; top: 50%; left: 50%; display: grid; place-content: center; width: 25%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-8deg); border: 3px solid #fff8df; border-radius: 50%; color: #fff8df; background: #49301d; font-size: clamp(11px, 3vw, 16px); font-weight: 900; letter-spacing: 1px; text-align: center; box-shadow: 0 3px 8px #49301d30; }
.wheel-hub > span { font-size: .65em; letter-spacing: 2px; }
.wheel-actions, .coin-panel { text-align: center; }
.wheel-sound { display: block; margin: 10px auto 0; font-size: 12px; }
.wheel-sound:disabled { cursor: default; opacity: .7; }
.wheel-confetti { position: absolute; z-index: 3; inset: -15%; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: 0; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti-fall 1.8s ease-out forwards; }
@keyframes confetti-fall {
  0% { transform: translate3d(0, -15px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate3d(var(--confetti-drift), 480px, 0) rotate(var(--confetti-turn)); opacity: 0; }
}
.wheel-result { margin: 20px 0 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.wheel-result-name { margin: 0 0 8px; font-size: clamp(19px, 4vw, 24px); font-weight: 900; text-wrap: balance; }
.wheel-result p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.coin-panel p { min-height: 22px; font-size: 16px; font-weight: 900; }
.wheel-games { margin-top: 20px; font-size: 12px; color: var(--muted); }
.wheel-games summary { width: fit-content; padding: 8px 0; cursor: pointer; font-weight: 800; }
.wheel-games summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.wheel-games ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; padding-left: 24px; line-height: 1.6; }
.wheel-note { margin-bottom: 0; }
.small-print { display: flex; justify-content: center; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 27px auto 36px; padding: 15px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.small-print-icon { font-size: 28px; color: var(--muted); }
.small-print p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }
.small-print strong { color: var(--ink); font-size: 12px; font-weight: 900; }
footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: 10px; color: var(--muted); }
footer strong { margin-left: 9px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; font-size: 9px; }
.noscript-message { font-size: 12px; }
.creator-watermark { flex-basis: 100%; text-align: center; padding-top: 12px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.admin-link { margin-left: 4px; font-size: 9px; letter-spacing: 0; text-underline-offset: 3px; }
.suggestion-toggle, .text-button { border: 0; padding: 12px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.suggestion-toggle span { margin-left: 8px; }
.suggestion-toggle:hover, .text-button:hover { color: var(--ink); }
.suggestion-panel, .admin-card { max-width: 600px; margin: 28px auto; padding: clamp(20px, 5vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.suggestion-panel h2, .admin-card h2 { margin: 0 0 14px; font-family: var(--font-title); font-size: clamp(22px, 4vw, 28px); font-weight: 400; }
.form-intro { font-size: 14px; line-height: 1.7; color: var(--muted); }
form label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 800; }
form label span { font-weight: 400; font-size: 11px; color: var(--muted); }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--background-top); }
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 8px 0 14px; }
.form-columns { display: grid; gap: 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.form-status { min-height: 20px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.admin-shell { max-width: 1000px; }
.admin-heading { margin: 45px 0 25px; }
.admin-heading h1 { font-size: clamp(27px, 5vw, 38px); }
.admin-card { max-width: none; }
.admin-login { max-width: 520px; margin-left: 0; }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-toolbar h2 { margin-bottom: 0; }
.reason-editor, .suggestion-item { border-top: 1px solid var(--line); padding: 16px 0; }
.reason-editor:first-child { border-top: 0; }
.reason-editor label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 800; }
.reason-editor textarea { min-height: 78px; }
.reason-editor .text-button { padding-left: 0; font-size: 11px; }
.suggestion-item p { overflow-wrap: anywhere; line-height: 1.7; }
.suggestion-meta { font-size: 11px; color: var(--muted); }
.suggestion-item .form-actions { margin-top: 8px; }
.year-switch { display: flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fixed-list { margin: 0; padding: 0; list-style: none; }
.fixed-item { border-top: 1px solid var(--line); padding: 14px 0; }
.fixed-item:first-child { border-top: 0; }
.fixed-item p { margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.fixed-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fixed-item.is-today { margin: 0 -12px; padding: 14px 12px; border-radius: 10px; background: var(--background-top); }
.admin-save-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--background-top); box-shadow: 0 4px 18px #49301d15; }
.admin-save-bar p { margin: 0; }
@media (min-width: 600px) {
  .form-columns { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .page-shell { padding: max(29px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(48px, env(safe-area-inset-left)); }
  .wordmark { font-size: 12px; }
  .daily-pill { font-size: 11px; padding: 9px 14px; }
  .intro { padding-top: 42px; }
  .eyebrow { font-size: 10px; }
  .beer-stage { margin-top: 82px; }
}
@media (min-width: 1000px) {
  .side-note { display: block; }
}
@media (max-width: 380px) {
  .page-shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .wordmark { font-size: 10px; gap: 5px; }
  .daily-pill { font-size: 9px; padding: 7px 8px; }
  h1 { font-size: 30px; }
  .beer-copy { padding-left: 12px; padding-right: 12px; }
  .beer-handle { right: -9px; width: 72px; }
  .small-print { padding: 13px; gap: 10px; }
}
@media (prefers-color-scheme: dark) {
  :root { --background-top: #241a12; --background-bottom: #3c2917; --ink: #ffe2a0; --muted: #c8aa78; --line: #e3b96329; --surface: #edc67c08; --button: #f1c164; --button-ink: #352311; --beer-top: #edba48; --beer-bottom: #c58b22; --foam: #fff4d9; }
  .beer-handle { border-color: #e4cf9740; }
  .beer-glass { border-color: #f8e6b740; }
  .coaster { background: #130b0866; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubble { bottom: 15%; opacity: .5; }
  .bubble:nth-child(even) { bottom: 75%; }
  .bubble:nth-child(3n) { bottom: 43%; }
}
