* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #3d493d; --muted: #78816f; --green: #496953; --orange: #b76943; --paper: #fffaf0; --line: #d9d7bf; }
body { margin: 0; background: linear-gradient(125deg, #f4e6cd, #f9f3e8 55%, #e8eddf); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.7; }
button, select, input { font: inherit; }
button { min-width: 44px; min-height: 44px; border: 1px solid #b8c5a7; border-radius: 10px; padding: 9px 13px; color: #45593f; background: #fffdf5; font-size: 12px; font-weight: 650; cursor: pointer; touch-action: manipulation; }
button:hover:not(:disabled) { background: #edf1df; border-color: #6f8c62; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #a85835; outline-offset: 4px; }
[hidden] { display: none !important; }
.page { width: min(1100px, 100%); padding: 22px 30px 0; margin: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #d6d6bd; }
.back-home { display: inline-flex; min-height: 44px; align-items: center; color: #4c6c4c; font-size: 13px; text-underline-offset: 4px; }
.header-note { color: #889077; font-size: 11px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 0 26px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: #8a9277; margin: 0 0 7px; }
h1 { color: #456044; font-size: clamp(36px, 5vw, 52px); letter-spacing: 1px; line-height: 1.25; margin: 0 0 10px; }
h1 > span { color: var(--orange); }
.lead { margin: 0; font-size: 15px; color: #7e876e; line-height: 1.9; }
.tea-scene { position: relative; flex: 0 0 270px; height: 175px; }
.cup { position: absolute; top: 50px; width: 87px; height: 70px; border-radius: 6px 6px 32px 32px; display: flex; justify-content: center; align-items: center; border: 1px solid #a8b18b; background: #bdc99d; box-shadow: inset 0 7px 0 #d8dfba; transform: rotate(-9deg); }
.cup::after { content: ""; position: absolute; width: 23px; height: 30px; top: 16px; right: -21px; border: 6px solid #aab88b; border-left: 0; border-radius: 0 20px 20px 0; }
.cup span { color: #5b7652; font-family: Georgia, serif; font-size: 26px; }
.cup-a { left: 20px; }
.cup-b { left: 150px; top: 61px; background: #e1b484; border-color: #c79769; box-shadow: inset 0 7px 0 #f0cfa9; transform: rotate(11deg); }
.cup-b::after { border-color: #d1a171; }
.cup-b span { color: #99613a; }
.saucer { position: absolute; width: 260px; height: 18px; left: 4px; top: 133px; background: #cdd4b7; border-radius: 50%; }
.steam { position: absolute; top: 10px; left: 58px; width: 20px; height: 31px; border-left: 2px solid #b9c4a7; border-radius: 50%; transform: rotate(15deg); }
.steam-b { top: 18px; left: 188px; border-color: #d8b897; transform: rotate(-10deg); }
.tea-scene > p { position: absolute; width: 100%; margin: 0; top: 157px; font-size: 10px; letter-spacing: 1px; text-align: center; color: #9b9f83; }
.table-tools { display: flex; align-items: end; gap: 14px; margin-bottom: 20px; }
.players-field { flex: 0 0 145px; }
.players-field label { display: block; color: #6e8065; font-size: 11px; margin-bottom: 5px; }
select { width: 100%; min-width: 44px; min-height: 46px; padding: 9px 12px; background: #fffdf5; border: 1px solid #adbd97; border-radius: 10px; color: #536d49; font-size: 12px; }
.tool-actions { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.tool-actions button { min-height: 46px; color: #f7f3e4; background: #4f6c50; border-color: #69845c; }
.tool-actions button:hover { background: #63835e; }
.notice { border: 1px solid #d3b174; background: #fff0cb; color: #7d622e; border-radius: 10px; padding: 12px 15px; margin: 0 0 12px; font-size: 12px; }
.tea-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 21px; align-items: start; }
.table-panel, .about-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 19px; padding: 24px; box-shadow: 0 5px 0 #b9bda34d; }
.table-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #92977c; font-size: 11px; border-bottom: 1px dashed #d5d9bd; padding-bottom: 12px; }
.table-meta code { font-family: ui-monospace, monospace; letter-spacing: 1.5px; color: #718362; }
.round-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #82906f; margin-top: 14px; }
.round-meta b { color: #5b7750; font-size: 15px; }
.round-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 12px; }
.round-dot { height: 4px; border-radius: 3px; background: #e2e5d2; }
.round-dot[data-state="past"] { background: #7f9b6d; }
.round-dot[data-state="current"] { background: #d1a36f; }
#stage { padding: 30px 0 10px; min-height: 325px; }
h2 { margin: 0; font-size: 21px; color: #4e6748; line-height: 1.45; }
#phase-title { margin-bottom: 10px; }
.phase-kicker { font-size: 10px; color: #93a17c; letter-spacing: 1px; margin: 0 0 8px; }
.phase-copy { font-size: 13px; color: #82936c; margin: 10px 0 20px; }
.handoff-card { border: 1px dashed #c3cdae; border-radius: 15px; padding: 25px 18px; text-align: center; background: #f0f3df; }
.handoff-icon { width: 63px; height: 63px; border: 1px solid #a9bb93; border-radius: 50%; display: grid; place-items: center; color: #77915f; font-family: Georgia, serif; font-size: 30px; background: #e1e9c9; margin: 0 auto 14px; }
.handoff-card .phase-copy { margin: 10px auto 20px; max-width: 350px; }
.primary { background: #52754e; color: #fbf7e8; border-color: #52754e; min-width: 150px; }
.primary:hover:not(:disabled) { background: #3f623c; border-color: #3f623c; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.choice { display: flex; align-items: start; flex-direction: column; text-align: left; width: 100%; min-height: 180px; padding: 20px 17px; border: 1px solid #c6d3aa; border-radius: 14px; background: #edf1db; color: #5d794f; gap: 13px; }
.choice[data-choice="1"] { background: #f7e6ce; border-color: #dfc09a; color: #a26942; }
.choice:hover:not(:disabled) { background: #e0e8c8; border-color: #91aa76; }
.choice[data-choice="1"]:hover:not(:disabled) { background: #f4d8b5; border-color: #c99a69; }
.choice-letter { display: block; font-size: 28px; line-height: 1; font-family: Georgia, serif; }
.choice-text { font-size: 16px; font-weight: 650; line-height: 1.55; }
.submission-note { font-size: 11px; color: #929b7b; margin: 15px 1px 0; }
.tally-options { display: grid; gap: 13px; margin: 20px 0; }
.tally-option { border: 1px solid #d1dabd; border-radius: 13px; padding: 14px 15px; background: #f1f4e2; }
.tally-option[data-side="b"] { border-color: #e4caaa; background: #fbefdf; }
.tally-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.tally-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-letter { font: 24px Georgia, serif; color: #6f8a58; }
.tally-option[data-side="b"] .side-letter { color: #b87d4f; }
.tally-text { font-size: 13px; color: #6f805d; }
.tally-total { flex-shrink: 0; color: #6b8258; font-size: 10px; white-space: nowrap; }
.tally-total b { font-size: 25px; line-height: 1; }
.bar-track { height: 7px; border-radius: 5px; overflow: hidden; margin-top: 12px; background: #e0e7ce; }
.bar-fill { height: 100%; background: #95b072; border-radius: 5px; }
.tally-option[data-side="b"] .bar-track { background: #f0dfc4; }
.tally-option[data-side="b"] .bar-fill { background: #d2a071; }
.discussion { color: #7c8a69; font-size: 12px; background: #f1f0dd; border-left: 3px solid #c6cfaa; padding: 10px 13px; margin: 15px 0 20px; }
.reveal-note { font-size: 10px; color: #929d7a; margin: 10px 0; }
.recap-summary { font-size: 13px; color: #7c8f66; }
.recap-list { display: grid; gap: 12px; margin-top: 20px; }
.recap-item { border: 1px solid #d7ddc1; border-radius: 12px; padding: 15px; background: #f8f9ed; }
.recap-question { font-size: 14px; color: #5c774d; margin: 0 0 10px; font-weight: 650; }
.recap-line { display: flex; align-items: start; justify-content: space-between; gap: 12px; font-size: 12px; color: #83916e; margin: 5px 0; }
.recap-line b { color: #657f55; white-space: nowrap; }
.recap-mark { display: inline-block; margin-top: 8px; font-size: 10px; color: #8a9675; }
.live-status { color: #71865e; font-size: 11px; min-height: 20px; margin: 16px 0 0; }
.save-note { font-size: 10px; color: #97a17e; margin: 12px 0 0; }
.about-panel h2 { font-size: 19px; }
.rules { padding-left: 20px; font-size: 12px; color: #82916e; margin: 18px 0; }
.rules li { margin-bottom: 12px; padding-left: 2px; }
.rules b { color: #627c52; }
.note-card { font-size: 12px; color: #7d8c67; padding: 13px 14px; background: #eff0db; border-left: 3px solid #becd9e; margin: 20px 0 16px; }
.small-note { font-size: 10px; color: #929e7b; line-height: 1.9; margin: 14px 0; }
.share-panel { border: 1px solid #a7b88b; border-radius: 11px; padding: 15px 18px; margin-top: 26px; background: #e7ebd6; color: #7d8e69; font-size: 11px; }
.share-panel p { margin: 0; }
.share-panel label { display: block; margin: 10px 0 5px; }
#share-fallback { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; color: #5f794e; background: #fffef7; border: 1px solid #b5c299; border-radius: 7px; font-size: 12px; }
footer { padding: 28px 0; text-align: center; color: #9ea789; font-size: 10px; letter-spacing: 1px; }
footer span { color: #b68a5d; padding-inline: 4px; }
dialog { width: min(450px, calc(100% - 32px)); background: #fffaf0; border: 1px solid #cbd1b3; color: var(--ink); border-radius: 17px; padding: 25px; box-shadow: 0 20px 70px #39493244; }
dialog::backdrop { background: #3d4a3399; backdrop-filter: blur(3px); }
dialog > p:not(.eyebrow) { font-size: 13px; color: #82926d; margin: 15px 0 20px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.dialog-actions button { min-width: 0; font-size: 12px; padding: 10px 5px; }
@media (max-width: 900px) {
  .page { padding-inline: 22px; }
  .tea-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; }
  .table-panel, .about-panel { padding: 18px; }
  .table-tools { gap: 10px; }
  .players-field { flex-basis: 125px; }
  .tool-actions { gap: 7px; }
  .tool-actions button { font-size: 11px; padding-inline: 7px; }
  .choice { padding-inline: 13px; }
}
@media (max-width: 700px) {
  .page { padding: 14px 16px 0; }
  .site-header { gap: 8px; }
  .back-home { font-size: 12px; }
  .header-note { font-size: 10px; }
  .hero { padding: 25px 0; }
  .tea-scene { display: none; }
  .lead { font-size: 14px; }
  .table-tools { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .players-field { flex: auto; display: flex; align-items: center; gap: 15px; }
  .players-field label { margin: 0; flex: 0 0 75px; }
  select { flex: 1; width: auto; }
  .tool-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-actions button { font-size: 12px; }
  .tea-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .table-panel { padding: 17px 14px; }
  .about-panel { padding: 22px 19px; }
  #stage { padding-top: 24px; min-height: 310px; }
  h2 { font-size: 20px; }
  .handoff-card { padding: 23px 14px; }
  .choices { gap: 9px; }
  .choice { min-height: 180px; padding: 18px 12px; }
  .choice-text { font-size: 15px; }
  .round-meta { font-size: 10px; gap: 8px; }
  .tally-option { padding: 13px 12px; }
  .share-panel { margin-top: 23px; }
  dialog { padding: 22px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
