@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque-cayla.woff2?v=2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0041, U+004B, U+004C, U+0059, U+00C7;
}

:root {
  color-scheme: light;
  --paper: #f7ecdc;
  --porcelain: #fffaf2;
  --ink: #351d20;
  --dim: #60474a;
  --muted: #71585a;
  --line: #d5bbae;
  --burgundy: #762d3e;
  --burgundy-dark: #511a2a;
  --amber: #925023;
  --focus: #8a2e46;
  --serif: Georgia, "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --wordmark: "Bricolage Grotesque", "Arial Black", var(--sans);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --tier-0: #776367;
  --tier-1: #7b515a;
  --tier-2: #5d6051;
  --tier-3: #74512d;
  --tier-4: #7a405b;
  --tier-5: #8c431c;
  --tier-6: #84273e;
  --kilim-width: clamp(180px, 28vw, 252px);
  --glass-shape: polygon(5% 1%, 95% 1%, 92% 14%, 83% 29%, 75% 43%, 76% 53%, 87% 66%, 96% 79%, 97% 86%, 91% 93%, 75% 98%, 50% 100%, 25% 98%, 9% 93%, 3% 86%, 4% 79%, 13% 66%, 24% 53%, 25% 43%, 17% 29%, 8% 14%);
  --kilim-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 192'%3E\
      %3Cdefs%3E\
        %3Cg id='eye'%3E\
          %3Cpath fill='currentColor' d='M-6-36H6v8h12v8h12v8h12v8h10v8H42v8H30v8H18v8H6v8H-6v-8h-12v-8h-12v-8h-12V4h-10v-8h10v-8h12v-8h12v-8h12Z'/%3E\
          %3Cpath fill='%23f7ecdc' d='M-4-25H4v7h9v7h10v7h10v8H23v7H13v7H4v7h-8v-7h-9v-7h-10V4h-10v-8h10v-7h10v-7h9Z'/%3E\
          %3Cpath fill='currentColor' d='M0-16 21 0 0 16-21 0Z'/%3E\
          %3Cpath fill='%23f7ecdc' d='M0-8 11 0 0 8-11 0Z'/%3E\
          %3Cpath fill='%239e6e50' d='M0-3 4 0 0 3-4 0Z'/%3E\
        %3C/g%3E\
        %3Cg id='horn'%3E\
          %3Cpath d='M0 19V1m0 0-11-11h-14v13h8v-7m17 5 11-11h14v13h-8v-7' fill='none' stroke='currentColor' stroke-width='5'/%3E\
          %3Cpath d='M0-21 6-15 0-9-6-15Z' fill='%23ab7957'/%3E\
          %3Cpath d='M-32 0-38 6-44 0-38-6ZM32 0l6 6 6-6-6-6Z' fill='currentColor'/%3E\
        %3C/g%3E\
        %3Cg id='border' fill='none' stroke='currentColor'%3E\
          %3Cpath d='M0-5 8 3 16-5 24 3 32-5 40 3 48-5 56 3 64-5 72 3 80-5 88 3 96-5 104 3 112-5 120 3 128-5 136 3 144-5 152 3 160-5 168 3 176-5 184 3 192-5 200 3 208-5 216 3 224-5 232 3 240-5 248 3 256-5' stroke-width='2'/%3E\
          %3Cpath d='M0-9H256M0 7H256' stroke-dasharray='3 5'/%3E\
        %3C/g%3E\
      %3C/defs%3E\
      %3Cg opacity='.72'%3E\
        %3Cuse href='%23border' y='0' color='%239d705d'/%3E\
        %3Cuse href='%23border' y='96' color='%239d705d'/%3E\
        %3Cuse href='%23border' y='192' color='%239d705d'/%3E\
        %3Cuse href='%23eye' x='64' y='47' color='%239d5c63'/%3E\
        %3Cuse href='%23horn' x='192' y='47' color='%23777e66'/%3E\
        %3Cuse href='%23horn' x='64' y='143' color='%239d5c63'/%3E\
        %3Cuse href='%23eye' x='192' y='143' color='%23ad6a4d'/%3E\
      %3C/g%3E\
    %3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  isolation: isolate;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, #5e263413 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #5e263413 0 1px, transparent 1px 4px),
    var(--kilim-tile);
  background-position: center top;
  background-repeat: repeat;
  background-size: auto, auto, var(--kilim-width) auto;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

button, input { font: inherit; }
button, summary { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.site {
  display: grid;
  width: min(642px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100svh;
  min-height: calc(var(--answer-viewport-height, 100svh) + var(--answer-viewport-gap, 0px));
  padding-block-end: var(--answer-viewport-gap, 0px);
  margin-inline: auto;
  align-content: center;
}
.home-screen {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 62px 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-menu {
  position: absolute;
  z-index: 1;
  inset-block-start: max(7px, env(safe-area-inset-top));
  inset-inline-end: max(clamp(13px, 3vw, 38px), env(safe-area-inset-right));
  display: flex;
  gap: clamp(9px, 2.5vw, 22px);
}
.home-menu .text-button {
  min-height: 44px;
  padding-inline: 3px;
  background: transparent;
  color: var(--burgundy-dark);
  font-size: .8125rem;
  text-shadow: 0 0 4px var(--paper), 0 0 7px var(--paper), 0 0 9px var(--paper);
}
.home-lockup { display: flex; flex-direction: column; align-items: center; }
.home-lockup h1 {
  margin: 13px 0 0;
  color: var(--burgundy-dark);
  font: 800 clamp(53px, 13vw, 130px)/.97 var(--wordmark);
  letter-spacing: -.045em;
  text-shadow: 0 1px 2px var(--paper), 0 0 9px var(--paper);
}
.home-lockup h1 span {
  display: inline-block;
  animation: wordmark-in 540ms cubic-bezier(.22,.78,.23,1) both;
}
.home-lockup h1 span:nth-child(2) { animation-delay: 65ms; }
.home-lockup h1 span:nth-child(3) { animation-delay: 130ms; }
.home-lockup h1 span:nth-child(4) { animation-delay: 195ms; }
.home-lockup h1 span:nth-child(5) { animation-delay: 260ms; }
.home-lockup h1 span:nth-child(6) { animation-delay: 325ms; }
@keyframes wordmark-in {
  from { opacity: 0; transform: translateY(.28em) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.home-tagline {
  margin: 16px 0 0;
  padding-inline: 6px;
  color: var(--burgundy-dark);
  font: 700 clamp(15px, 3.8vw, 19px)/1.4 var(--sans);
  text-shadow: 0 1px 2px var(--paper), 0 0 6px var(--paper), 0 0 8px var(--paper);
}
.brand-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid #97545c;
  border-radius: 50%;
  background: #fffaef8f;
  box-shadow: 0 0 0 4px #fff8eac9, 0 0 0 5px #c18b7271;
}
.brand-mark::before {
  content: "";
  width: 27px;
  height: 38px;
  margin-top: 11px;
  background: linear-gradient(180deg, #b27f65 0 7%, #a46f5270 7% 23%, #c77943 24%, #782b29 86%, #a85e43);
  clip-path: var(--glass-shape);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 10px;
  bottom: 12px;
  border-bottom: 1px solid #a35456;
  border-radius: 50%;
}
.brand-mark i {
  --steam-offset: 0px;
  --steam-drift: 2px;
  --steam-delay: -.45s;
  position: absolute;
  bottom: 70%;
  left: calc(50% + var(--steam-offset));
  width: 10px;
  height: 21px;
  color: #8b4d40;
  opacity: .72;
  transform: translateX(-50%);
  animation: logo-steam 3.1s ease-out var(--steam-delay) infinite;
}
.brand-mark i:first-child { --steam-offset: -9px; --steam-drift: -5px; --steam-delay: -1.55s; height: 17px; }
.brand-mark i:nth-child(3) { --steam-offset: 9px; --steam-drift: 7px; --steam-delay: -2.55s; height: 16px; }
.brand-mark i::before, .brand-mark i::after {
  content: "";
  position: absolute;
  width: 74%;
  height: 58%;
  border-radius: 50%;
}
.brand-mark i::before { bottom: 0; left: 38%; border-left: 1.6px solid currentColor; transform: rotate(19deg); }
.brand-mark i::after { top: 0; right: 36%; border-right: 1.6px solid currentColor; transform: rotate(19deg); }
@keyframes logo-steam {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(.66); }
  25% { opacity: .9; }
  61% { opacity: .6; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--steam-drift)), -23px) scale(1.12); }
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 53px;
  padding: 10px 17px;
  border: 1px solid var(--burgundy);
  border-radius: 6px;
  background: var(--burgundy);
  color: #fff8ec;
  font-weight: 700;
  text-align: left;
  transition: background-color .16s, border-color .16s, transform .15s;
}
.primary:hover { border-color: var(--burgundy-dark); background: var(--burgundy-dark); }
.primary:active { transform: translateY(1px); }
.primary > span[aria-hidden] { font-size: 21px; font-weight: 500; line-height: 1; }
.start-button {
  width: min(234px, 100%);
  justify-content: center;
  margin-top: clamp(23px, 5vh, 38px);
  border: 2px solid currentColor;
  border-radius: 40px;
  background: transparent;
  box-shadow: 0 0 0 2px #fff8ecb0;
  color: #411322;
  font: 650 21px/1.2 var(--serif);
  text-shadow: 0 1px 1px var(--paper), 0 0 4px var(--paper);
}
.start-button:hover {
  border-color: currentColor;
  background: #fff8ec30;
  box-shadow: 0 0 0 3px #fff8ecc9;
}
.next-button, .share-button { width: 100%; }
.eyebrow {
  margin: 0;
  color: var(--burgundy);
  font: 700 11px/1.5 var(--mono);
  letter-spacing: .09em;
}
.play-screen, .summary-screen {
  width: 100%;
  padding: clamp(15px, 4vw, 34px);
  border: 1px solid #ddc5b6;
  border-radius: 14px;
  background: #fffaf2ed;
  box-shadow: 0 16px 55px #5b303520;
  text-align: left;
}
.play-screen { margin-block: clamp(20px, 6svh, 58px); }
.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.play-header .text-button { min-height: 38px; font-size: 13px; }
.play-header .home-link { color: var(--burgundy-dark); font: 700 16px/1 var(--serif); letter-spacing: .06em; }
.daily-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 15px;
  color: var(--burgundy);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: .05em;
}
.daily-date { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); }
.home-screen:has(.summary-screen:not([hidden])) { justify-content: flex-start; }
.home-screen:has(.summary-screen:not([hidden])) .home-lockup {
  margin-block: 4px 23px;
}
.home-screen:has(.summary-screen:not([hidden])) .home-lockup h1 {
  margin-top: 9px;
  font-size: clamp(36px, 7vw, 65px);
}
.home-screen:has(.summary-screen:not([hidden])) .brand-mark {
  zoom: .68;
}
.home-screen.has-result .home-tagline { display: none; }
#today { justify-self: center; margin: 0 0 20px; }
#schedule-note { margin: 15px 0 0; color: var(--dim); font-size: 13px; }

.round-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font: 700 12px/1 var(--mono); letter-spacing: .065em; }
.round-trail { display: flex; gap: 5px; }
.round-trail i { display: block; width: 12px; height: 4px; border-radius: 2px; background: #d7bfb0; }
.round-trail .current { background: var(--burgundy); }
.round-trail .complete { background: var(--tier-color); }
.timer-block { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-top: 16px; }
.timer-track { flex: 1; height: 5px; overflow: hidden; border-radius: 10px; background: #e3cdbd; }
.timer-track > span { display: block; height: 100%; border-radius: inherit; background: var(--burgundy); transform: scaleX(var(--time, 1)); transform-origin: left; }
.timer-block.ending .timer-track > span { background: #ab4529; }
.timer-block.ending #timer-count { min-width: 4.1rem; color: #9e3524; font-size: 1.55rem; font-weight: 800; }
#timer-count { min-width: 40px; color: var(--dim); text-align: right; font: 12px/1 var(--mono); white-space: nowrap; transform-origin: right center; }
.timer-warning { color: #9e3524; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.timer-warning:empty { position: absolute; }
.timer-pulse { animation: countdown-pulse .43s ease-out; }
@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.15); }
}
.question { display: flex; flex-direction: column; justify-content: center; min-height: 168px; padding: 24px 0 21px; }
.question h2 {
  margin: 7px 0 0;
  color: var(--burgundy-dark);
  font: 400 clamp(29px, 3.35vw, 49px)/1.08 var(--serif);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.answer-row { display: flex; align-items: stretch; gap: 7px; }
.answer-row input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid #a88b84; border-radius: 5px; background: var(--porcelain); color: var(--ink); font-size: 16px; }
.answer-row input::placeholder { color: var(--muted); }
.answer-row input[aria-invalid="true"] { border-color: #a94331; }
.send-button { padding-inline: 12px; }
.send-button > span[aria-hidden] { font-size: 18px; }
.answer-note { min-height: 18px; margin: 7px 0 5px; color: #9c3a2a; font-size: 13px; overflow-wrap: anywhere; }
.answer-assistance { display: flex; align-items: center; flex-wrap: wrap; gap: 0 9px; }
.answer-assistance #undo-answer { min-height: 32px; font-size: 13px; text-decoration: underline; }
.text-button { min-height: 42px; padding: 5px 0; border: 0; background: transparent; color: var(--dim); font-size: 14px; font-weight: 650; }
.text-button span { margin-left: 4px; }
.text-button:hover { color: var(--burgundy); text-decoration: underline; }
.round-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 79px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tier-color);
  border-radius: 5px;
  background: var(--porcelain);
}
.result-text { min-width: 0; }
.result-text > * { display: block; overflow-wrap: anywhere; }
.result-tier { color: var(--tier-color); font: 700 11px/1.4 var(--mono); letter-spacing: .05em; }
.result-text strong { margin-top: 1px; color: var(--ink); font-size: 19px; }
.result-text strong:focus, .summary-screen h2:focus { outline: none; }
.result-text small { color: var(--dim); }
.result-gain { flex: none; max-width: 54%; color: var(--tier-color); font: 700 15px/1.2 var(--mono); text-align: right; }
.result-gain > * { display: block; }
.result-gain small { margin-top: 4px; color: var(--dim); font: 650 11px/1.3 var(--sans); }
#round-answers { margin-top: 10px; }
#round-answers .answer-disclosure { border: 1px solid var(--line); border-radius: 5px; background: var(--porcelain); }
#round-answers summary { padding-inline: 12px; }
.answer-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--dim);
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
.answer-disclosure > summary::-webkit-details-marker { display: none; }
.answer-disclosure > summary:hover { color: var(--burgundy); }
.answer-disclosure > summary:focus-visible { outline-offset: 1px; border-radius: 4px; }
.disclosure-icon { color: var(--burgundy); font: 18px/1 var(--mono); text-align: center; }
.answer-disclosure[open] > summary .disclosure-icon { transform: rotate(45deg); }
.answer-key { padding: 0 12px 12px; }
.result-list .answer-key { margin: 0 0 8px; padding-top: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--porcelain); }
.answer-prompt { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.answer-tier { padding: 8px 0 0; border-top: 1px solid var(--line); }
.answer-tier + .answer-tier { margin-top: 8px; }
.answer-tier-label { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 6px; color: var(--tier-color); font: 700 12px/1.35 var(--mono); }
.answer-tier-label span { white-space: nowrap; }
.accepted-answers { display: flex; flex-wrap: wrap; gap: 4px 5px; margin: 0; padding: 0; list-style: none; }
.accepted-answers li { max-width: 100%; padding: 3px 6px; border: 1px solid #dcc7b9; border-radius: 4px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.accepted-answers .your-answer { border-color: #b77870; background: #f4dfd3; }
.your-answer span { margin-left: 2px; color: var(--burgundy-dark); font-size: 11px; font-weight: 700; }
.next-button { margin-top: 12px; }
.summary-screen h2 { margin: 4px 0 0; color: var(--burgundy-dark); font: 400 clamp(46px, 7vw, 86px)/1.03 var(--serif); letter-spacing: -.07em; }
.summary-screen h2 small { font-size: .42em; letter-spacing: -.025em; white-space: nowrap; }
.summary-caption { margin: 5px 0 16px; color: var(--dim); }
.review-heading { margin: 0; padding: 3px 0 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.result-list, .tier-list, .history-list { margin: 0; padding: 0; list-style: none; }
.result-list { margin-bottom: 15px; }
.result-list > li { border-bottom: 1px solid var(--line); }
.summary-round { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 13px; }
.summary-round > span:nth-child(2) { overflow-wrap: anywhere; }
.summary-round b { color: var(--tier-color); font: 650 12px/1.2 var(--mono); white-space: nowrap; }
.summary-reward { display: grid; justify-items: end; gap: 2px; }
.summary-reward small { color: var(--dim); font-size: .75rem; line-height: 1.2; white-space: nowrap; }
.tier-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--tier-color); }
.summary-screen .answer-note { color: var(--dim); }
.share-fallback { width: 100%; min-height: 76px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--porcelain); color: var(--ink); font: 13px/1.4 var(--mono); }

dialog { width: min(500px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; padding: 22px; border: 1px solid #aa857b; border-radius: 8px; background: var(--porcelain); color: var(--ink); box-shadow: 0 24px 75px #40252152; }
dialog::backdrop { background: #2d171a91; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-heading h2 { margin: 0; color: var(--burgundy-dark); font: 400 30px/1.15 var(--serif); letter-spacing: -.04em; }
.close-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--dim); font-size: 24px; line-height: 1; }
.close-button:hover { border-color: #b78d80; background: #f8e9de; color: var(--burgundy); }
.rules-list { margin: 11px 0 14px; padding-left: 19px; color: var(--dim); font-size: 14px; }
.rules-list li { padding: 4px 0 4px 3px; }
.tier-list li, .history-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.tier-list li span { display: inline-flex; align-items: center; gap: 7px; }
.tier-list li b, .history-list li b { color: var(--tier-color, var(--burgundy)); font: 700 12px/1.2 var(--mono); white-space: nowrap; }
.dialog-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 10px; margin: 14px 0; }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: var(--burgundy-dark); font: 400 clamp(20px, 4vw, 26px)/1.2 var(--serif); }
.stats-grid span { color: var(--dim); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.tea-scene {
  --scene-halo: #8d3e29;
  --scene-light: #ffc78c;
  --scene-travel: 32px;
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(66px, min(15vw, 16svh), 148px);
  overflow: hidden;
  isolation: isolate;
  padding: 14px max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
  color: #fff3dd;
  background:
    repeating-linear-gradient(0deg, #ffd4a108 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 58%, var(--scene-halo), transparent 74%),
    linear-gradient(160deg, #3f1925, #231217 80%);
  animation: tea-scene var(--scene-duration) ease-in-out both;
}
.tea-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--kilim-tile) center top / var(--kilim-width) auto repeat;
  opacity: .19;
  pointer-events: none;
}
.tea-scene[data-pour-style="ince"] { --scene-halo: #974831; --scene-travel: 45px; }
.tea-scene[data-pour-style="demli"] { --scene-halo: #9b402a; --scene-travel: 62px; }
.tea-scene[data-pour-style="canli"] { --scene-halo: #ab512e; --scene-travel: 80px; }
.tea-scene[data-pour-style="usta"] { --scene-halo: #b45830; --scene-light: #ffda92; --scene-travel: 100px; }
.tea-score {
  display: grid;
  justify-items: center;
  color: var(--scene-light);
  animation: tea-enter 350ms cubic-bezier(.16,.74,.22,1) both;
}
.tea-score strong { font: 700 clamp(68px, min(14vw, 17svh), 144px)/.88 var(--serif); }
.tea-score span { margin-top: 12px; color: #fff1d9; font: 700 17px/1.3 var(--sans); }
.tea-cups {
  --tea-column-width: clamp(46px, min(8.5vw, 17svh), 128px);
  --tea-column-gap: clamp(6px, 1vw, 20px);
  display: grid;
  grid-template-columns: repeat(10, var(--tea-column-width));
  justify-content: center;
  gap: var(--tea-column-gap);
  animation: tea-enter 345ms cubic-bezier(.16,.74,.22,1) both;
}
@keyframes tea-scene {
  0% { clip-path: inset(100% 0 0); }
  14%, 85% { clip-path: inset(0); }
  100% { clip-path: inset(0 0 100%); }
}
@keyframes tea-enter {
  from { opacity: 0; transform: translateY(var(--scene-travel)); }
  to { opacity: 1; transform: translateY(0); }
}
.tea-cup {
  --pour-duration: 385ms;
  --rise-duration: 350ms;
  --rise-offset: 52ms;
  --stream-width: 5px;
  --stream-lean: 1deg;
  --stream-glow: #e58a4e70;
  --shake: .8deg;
  --shake-lift: 0px;
  --tea-color: linear-gradient(96deg, #923018 0%, #cb632a 25%, #ee9a45 47%, #b14b1c 70%, #8e321d 100%);
  position: relative;
  display: block;
  min-width: 0;
  height: min(calc(var(--tea-column-width) * 1.28), 23svh);
}
:where([data-pour-style="tek"]) .tea-cup {
  --pour-duration: 285ms;
  --rise-duration: 234ms;
  --rise-offset: 57ms;
  --stream-width: 3px;
  --stream-lean: 0deg;
  --stream-glow: transparent;
  --shake: 0deg;
  --tea-color: linear-gradient(96deg, #a24b27, #e7a25f 45%, #ae552d 75%, #8d3e26);
}
:where([data-pour-style="ince"]) .tea-cup {
  --pour-duration: 320ms;
  --rise-duration: 271ms;
  --rise-offset: 57ms;
  --stream-width: 4px;
  --stream-lean: 1deg;
  --shake: 1.4deg;
  --tea-color: linear-gradient(96deg, #9b3f21, #eda55a 45%, #ab4f27 75%, #8e3821);
}
:where([data-pour-style="demli"]) .tea-cup {
  --shake: 2.6deg;
  --tea-color: linear-gradient(96deg, #872b15, #ce6627 45%, #a1411a 76%, #7d2b16);
}
:where([data-pour-style="canli"]) .tea-cup {
  --pour-duration: 418ms;
  --rise-duration: 366ms;
  --rise-offset: 47ms;
  --stream-width: 6px;
  --stream-lean: 3deg;
  --stream-glow: #ffe2a8ab;
  --shake: 4deg;
  --shake-lift: -2px;
}
:where([data-pour-style="usta"]) .tea-cup {
  --pour-duration: 450ms;
  --rise-duration: 445ms;
  --rise-offset: 35ms;
  --stream-width: 8px;
  --stream-lean: 4deg;
  --stream-glow: #ffd389cf;
  --shake: 5.5deg;
  --shake-lift: -3px;
  --tea-color: linear-gradient(96deg, #9f361d, #d7752c 23%, #ffc166 47%, #c65a22 68%, #91351c);
}
.tea-cup::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  border: 1px solid #dcab8270;
  border-top-color: #f0c29aab;
  border-radius: 50%;
  background: #32151b;
  box-shadow: 0 6px 8px #21101577;
}
.tea-glass {
  position: absolute;
  inset: 0 10% 7%;
  background: linear-gradient(100deg, #f0c49bba, #c8916e93 45%, #fce0b7c0 80%, #e1a576af);
  clip-path: var(--glass-shape);
  transform-origin: 50% 95%;
}
.tea-glass::before, .tea-glass::after { content: ""; position: absolute; pointer-events: none; }
.tea-glass::before {
  inset: 1px 1px 2px;
  background: linear-gradient(102deg, #633b31, #442723 72%, #785045);
  clip-path: var(--glass-shape);
}
.tea-glass::after {
  inset: 2px 14% 3px;
  background: linear-gradient(101deg, #ffdfad5c 4%, transparent 25% 68%, #ffdbb530 87%);
  clip-path: var(--glass-shape);
}
.tea-liquid {
  position: absolute;
  inset: 18% 1px 2px;
  border-top: 2px solid #ffd495;
  background: var(--tea-color);
  box-shadow: inset 0 -4px 6px #8227114d;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.tea-cup.is-filled .tea-liquid { opacity: 1; transform: scaleY(1); }
.tea-stream {
  --stream-run: clamp(54px, min(11vw, 13svh), 140px);
  position: absolute;
  z-index: 1;
  top: calc(-1 * var(--stream-run));
  left: 50%;
  width: var(--stream-width);
  height: calc(var(--stream-run) + 30%);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe3a4c0, #ffbc68 30%, #f18c3f 95%);
  box-shadow: 0 0 5px var(--stream-glow);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.tea-cup.is-pouring .tea-stream {
  animation: tea-pour var(--pour-duration) linear var(--pour-delay, 0ms) both;
}
.tea-cup.is-pouring .tea-liquid {
  animation: tea-rise var(--rise-duration) cubic-bezier(.27,.68,.31,1) calc(var(--pour-delay, 0ms) + var(--rise-offset)) both;
}
.tea-cup.is-pouring .tea-glass {
  animation: tea-shake var(--pour-duration) ease-out var(--pour-delay, 0ms) both;
}
@keyframes tea-pour {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
  9% { opacity: .74; transform: translateX(-50%) scaleY(.22); }
  24% { opacity: 1; transform: translateX(-50%) rotate(var(--stream-lean)) scaleY(1); }
  61% { opacity: 1; transform: translateX(-50%) rotate(calc(-1 * var(--stream-lean))) scaleY(1); }
  82% { opacity: .82; transform: translate(-50%, calc(var(--stream-run) * .28)) scaleY(.72); }
  100% { opacity: 0; transform: translate(-50%, var(--stream-run)) scaleY(.26); }
}
@keyframes tea-rise {
  from { opacity: .55; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes tea-shake {
  0%, 12%, 100% { transform: rotate(0); }
  25% { transform: translateY(var(--shake-lift)) rotate(var(--shake)); }
  45% { transform: rotate(calc(-1 * var(--shake))); }
  67% { transform: rotate(calc(.55 * var(--shake))); }
  83% { transform: rotate(calc(-.25 * var(--shake))); }
}

@media (max-width: 640px) {
  .site { width: calc(100% - 28px); }
  .play-screen, .summary-screen { border-radius: 10px; }
  .play-screen { margin-block: 17px; }
  .question { min-height: 118px; padding: 17px 0 15px; }
  .question h2 { font-size: clamp(29px, 7.2vw, 43px); }
  .summary-screen h2 { font-size: clamp(44px, 10vw, 61px); }
  .result-text strong { font-size: 17px; }
  .tea-cups {
    --tea-column-width: clamp(36px, min(15vw, 14svh), 83px);
    grid-template-columns: repeat(5, var(--tea-column-width));
    row-gap: 33px;
  }
  .tea-cup:nth-child(n+6) .tea-stream { --stream-run: 30px; }
}
@media (max-width: 450px) {
  .home-lockup h1 { margin-top: 15px; }
  .brand-mark { zoom: .86; }
  .home-screen:has(.summary-screen:not([hidden])) .brand-mark { zoom: .60; }
}
@media (max-width: 355px) {
  .site { width: calc(100% - 22px); }
  .play-screen, .summary-screen { padding: 13px; }
  .summary-round { gap: 5px; }
  .summary-round b { font-size: 11px; }
  .result-gain { font-size: 13px; }
}
.answer-compact { align-content: start; }
.answer-compact .play-screen { margin-block: 7px; padding-block: 9px; }
.answer-compact .daily-label { margin-block: 7px; }
.answer-compact .timer-block { margin-top: 8px; }
.answer-compact .question { min-height: 0; padding-block: 10px; }
.answer-compact .question h2 { font-size: clamp(23px, 6vw, 33px); }
.answer-compact .answer-row input { padding-block: 8px; }
.answer-compact .send-button { min-height: 44px; }
.answer-compact .answer-note:empty { min-height: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
