:root {
  color-scheme: dark;
  --bg: #18130f;
  --card: #251c17;
  --raised: #302317;
  --edge: #423126;
  --text: #f4ede6;
  --muted: #bfb0a2;
  --accent: #f88d4d;
  --green: #a6c96b;
  --gold: #e5a850;
  font: 15px/1.48 system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 800px; margin: auto; padding: 16px 16px 32px; }
header { padding: 4px 4px 12px; }
p { margin: 0 0 10px; }
h1, h2, h3, .serif { font-family: Georgia, serif; }
h1 { font-size: clamp(42px, 7.5vw, 64px); line-height: .98; letter-spacing: -.04em; margin: 5px 0 12px; }
h1 em { color: var(--accent); }
h2 { font-size: 24px; margin: 22px 0 8px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; margin: 0; }
.intro { max-width: 550px; color: var(--muted); }
.stats, .card, .dish, .guest, .group { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; }
.stats { display: flex; justify-content: center; gap: clamp(42px, 16vw, 110px); padding: 14px; margin-top: 16px; text-align: center; }
.stat small { display: block; margin-top: 4px; }
.ring { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--accent) var(--fill), var(--edge) 0); }
.ring b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); font-size: 12px; }
nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-block: 1px solid var(--edge); padding: 6px 0; margin-bottom: 14px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: var(--raised); font-weight: 650; }
button:disabled { opacity: .5; cursor: default; }
nav button { color: var(--muted); padding: 6px 0; font-size: 13px; background: transparent; border-radius: 999px; }
nav button[aria-pressed="true"], .primary, .pill.active { background: var(--accent); color: #24150d; }
button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, textarea, select { min-width: 0; padding: 9px 11px; border: 1px solid var(--edge); border-radius: 7px; background: var(--bg); }
textarea { display: block; width: 100%; resize: vertical; }
::placeholder { color: #9f9186; }
small, .muted { color: var(--muted); }
.card { padding: 14px; margin: 12px 0; }
.call { background: var(--accent); color: #26160c; }
.call h2 { margin: 0 0 10px; }
.call button { flex: 1; background: #ffffff26; text-align: left; }
.call button[aria-pressed="true"] { background: #ffffff60; }
.call small { color: inherit; display: block; }
.open-dishes { padding: 9px 12px; background: var(--raised); border: 1px dashed #74522c; border-radius: 8px; font-size: 13px; }
.open-dishes b { color: var(--gold); }
.dish, .guest { margin-bottom: 7px; overflow: hidden; }
.dish summary { display: flex; align-items: center; gap: 9px; padding: 13px; cursor: pointer; list-style: none; }
.dish summary::-webkit-details-marker { display: none; }
.dish summary::after { content: '▸'; color: var(--muted); font-size: 11px; }
.dish[open] summary::after { content: '▾'; }
.dish summary strong { font: bold 20px/1.2 Georgia, serif; display: block; }
.dish summary .badge { margin-left: auto; flex-shrink: 0; }
.badge, .pill { border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.claimed, .choice.confirmed { color: var(--green); background: #a6c96b20; }
.unclaimed { color: var(--gold); border: 1px dashed #8c5d26; }
.dish-body { border-top: 1px solid var(--edge); padding: 14px; }
.dish-body p { margin: 0 0 14px; }
.field { display: block; margin: 12px 0 6px; color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 750; }
.row { display: flex; align-items: center; gap: 7px; }
.row input, .full { flex: 1; width: 100%; }
.wrap { flex-wrap: wrap; }
.claim-row { margin-top: 9px; }
.quiet { color: var(--muted); background: transparent; border-color: var(--edge); }
.save { margin-top: 7px; }
.guest { padding: 11px 13px; }
.between { justify-content: space-between; }
.guest strong, .progress-title { font: bold 17px Georgia, serif; }
.choice { font-size: 11px; border-radius: 999px; padding: 5px 9px; background: transparent; color: var(--muted); }
.choice[aria-pressed="true"] { border-color: currentColor; }
.choice.assumed[aria-pressed="true"] { color: var(--gold); background: #e5a85020; }
.group { overflow: hidden; }
.item { display: flex; align-items: center; padding: 5px 9px; gap: 6px; }
.item + .item { border-top: 1px solid var(--edge); }
.item label { flex: 1; display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 30px; }
.item input { accent-color: var(--accent); }
.item:has(input:checked) label { text-decoration: line-through; color: var(--muted); }
.icon-button, .delete { background: transparent; color: var(--muted); }
.delete { color: var(--accent); padding-left: 0; font-size: 12px; }
meter, progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); margin-top: 8px; }
.countdown { text-align: center; background: var(--raised); border-radius: 12px; padding: 13px; }
.countdown b { display: block; font: bold 48px/1.05 Georgia, serif; color: var(--accent); }
.timeline { list-style: none; margin: 12px 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 9px 0 15px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 11px; width: 1px; background: var(--edge); top: 22px; bottom: -12px; }
.timeline button { position: relative; flex: 0 0 23px; height: 23px; padding: 0; border-radius: 50%; border-color: var(--edge); }
.timeline time { color: var(--accent); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { margin: 0 0 3px; }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 248px; margin: 15px auto 18px; }
.tile { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--edge); border-radius: 7px; background: var(--card); font-size: 23px; font-weight: 800; }
.tile.green, .key.green { background: #416238; }
.tile.gold, .key.gold { background: #846020; }
.tile.grey, .key.grey { background: #403a35; }
.keyboard { max-width: 570px; margin: auto; }
.key-row { display: flex; justify-content: center; gap: 4px; margin: 4px 0; }
.key { flex: 1; max-width: 46px; padding: 0; min-height: 43px; font-size: 12px; }
.key.wide { flex: 1.55; max-width: 68px; font-size: 10px; }
.game-status { text-align: center; color: var(--accent); }
#notice:not(:empty) { margin: 8px 0; color: var(--accent); }
.install { margin-top: 26px; font-size: 12px; color: var(--muted); }
.install summary { cursor: pointer; }
.install p { margin: 6px 0; }

.call { color: var(--text); }
.call small, .call .eyebrow { color: #fff1e7; }
.call button { color: #fff; }
nav button[aria-pressed="true"], .primary, .pill.active { color: #fff; }
@media (max-width: 480px) {
  .shell { padding-inline: 8px; }
  header { padding-inline: 3px; }
  h1 { font-size: 34px; }
  .stats { gap: 33%; }
  .ring { width: 40px; height: 40px; }
  .ring b { width: 32px; height: 32px; }
  .call h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  :root { font-size: 12px; }
  .shell { padding-top: 10px; }
  header { padding-bottom: 10px; }
  .eyebrow { font-size: 10px; }
  .intro { max-width: 335px; }
  .stats { padding: 12px; margin-top: 12px; }
  h2 { font-size: 18px; margin-top: 18px; }
  h3, .dish summary strong, .guest strong, .progress-title { font-size: 15px; }
  nav { gap: 3px; padding-block: 5px; margin-bottom: 12px; }
  nav button { font-size: 10px; padding-block: 4px; }
  .card, .dish-body, .dish summary { padding: 10px; }
  .call { padding: 12px; }
  .call h2 { font-size: 17px; margin-bottom: 8px; }
  .call button { padding: 7px 8px; }
  .open-dishes { font-size: 11px; padding: 8px 10px; }
  .badge, .pill { font-size: 10px; padding: 4px 8px; }
  .dish-body textarea { min-height: 64px; }
  .field, .choice { font-size: 10px; }
  .guest { padding: 9px 10px; }
  .item { padding-block: 2px; }
  .item .icon-button { padding-block: 5px; }
  .timeline li { gap: 10px; padding-bottom: 8px; }
  .timeline time { font-size: 9px; }
  .countdown b { font-size: 42px; }
  .board { max-width: 180px; gap: 4px; }
  .tile { border-radius: 6px; }
  .key { min-height: 38px; }
}
