:root {
  --bg: #f7f6f3;
  --panel: #ffffff;
  --sunk: #f1efea;
  --ink: #1b1b19;
  --muted: #6d6b65;
  --faint: #9c9a93;
  --line: #e6e3dc;
  --shadow: 0 1px 2px rgba(27, 27, 25, .04), 0 4px 16px rgba(27, 27, 25, .04);
  --accent: #d0602a;
  --accent-soft: #fbeee6;
  --accent-ink: #ffffff;
  --wip: #2f6fd0;
  --wip-soft: #e8f0fc;
  --next: #8a5cc7;
  --next-soft: #f2ecfa;
  --blocked: #c2352b;
  --blocked-soft: #fbeae8;
  --done: #2e8556;
  --done-soft: #e6f4ec;
  --later: #8a8780;
  --later-soft: #efeeea;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --panel: #1b1b1a;
    --sunk: #232321;
    --ink: #eeede8;
    --muted: #a4a29b;
    --faint: #75736d;
    --line: #2d2d2a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --accent: #ef8148;
    --accent-soft: #3a2519;
    --accent-ink: #121211;
    --wip: #7eaaf0;
    --wip-soft: #1c2738;
    --next: #b896e8;
    --next-soft: #2a2236;
    --blocked: #f08a80;
    --blocked-soft: #3a1f1c;
    --done: #6dc795;
    --done-soft: #1a2e23;
    --later: #a4a29b;
    --later-soft: #262624;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.state { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px var(--done-soft); }
.live.off::before { background: var(--faint); box-shadow: none; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who img { width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); }
.who a { color: var(--muted); text-decoration: none; }
.who a:hover { color: var(--ink); }

.hero { padding: 32px 0 8px; }
.hero h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.hero p { margin: 6px 0 0; color: var(--muted); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 26px 0 0; }
.game { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.game:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.game[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.game .name { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game .facts { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.game .facts b { color: var(--ink); font-weight: 650; }
.game .facts .ask b { color: var(--accent); }
.bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin-top: 10px; display: flex; }
.bar i { display: block; height: 100%; }
.bar .done { background: var(--done); }
.bar .wip { background: var(--wip); }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.count { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--sunk); color: var(--muted); }
.count.hot { background: var(--accent); color: var(--accent-ink); }
.section-head .hint { color: var(--faint); font-size: 13px; }

.decisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 14px; align-items: start; }
.decision { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 16px; }
.decision .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.decision .meta > span + span:not(.tagid)::before { content: "·"; margin-right: 8px; color: var(--faint); }
.decision .meta > .tagid + span::before { content: none; }
.context a { color: var(--accent); text-decoration: none; }
.context a:hover { text-decoration: underline; }
.tagid { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; }
.decision h3 { margin: 8px 0 0; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.decision .context { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.options { display: grid; gap: 8px; margin-top: 14px; }
.option { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.option:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); margin-top: 1px; }
.option.picked { border-color: var(--accent); background: var(--accent-soft); }
.option.picked .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 0 4px, transparent 5px); }
.option .code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); margin-bottom: 1px; }
.option .rec { position: absolute; top: 10px; left: 44px; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.option.has-rec .text { padding-top: 18px; }
.reply { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.reply input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; }
.reply input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 16px; font-weight: 650; cursor: pointer; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lane { background: var(--sunk); border-radius: var(--radius); padding: 12px; min-width: 0; }
.lane h4 { margin: 2px 4px 10px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lane h4 .label { display: inline-flex; align-items: center; gap: 8px; }
.lane h4 .label::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.lane h4 .n { color: var(--faint); font-weight: 600; }
.lane.wip { --c: var(--wip); }
.lane.next { --c: var(--next); }
.lane.blocked { --c: var(--blocked); }
.lane.later { --c: var(--later); }
.cards { display: grid; gap: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; box-shadow: var(--shadow); min-width: 0; }
.card .area { font-size: 12px; font-weight: 600; color: var(--faint); }
.card .title { font-weight: 650; margin-top: 2px; line-height: 1.35; }
.card .detail { color: var(--muted); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.card .item { display: inline-block; margin-top: 6px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); background: var(--sunk); border-radius: 6px; padding: 1px 6px; }
.card.blocked { border-left: 3px solid var(--blocked); }
.lane .none { color: var(--faint); font-size: 13px; padding: 4px 4px 6px; }

.fold { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fold summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "›"; color: var(--faint); font-size: 18px; transition: transform .15s; }
.fold[open] summary::after { transform: rotate(90deg); }
.fold summary .sub { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .title { font-weight: 600; }
.row .sub { color: var(--muted); font-size: 13px; }
.row .answer { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--sunk); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.pill { font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.pill.acted { color: var(--done); background: var(--done-soft); }
.pill.acting { color: var(--accent); background: var(--accent-soft); }
.pill.done { color: var(--done); background: var(--done-soft); }

.signin { max-width: 460px; margin: 12vh auto 0; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px; box-shadow: var(--shadow); }
.signin img { width: 48px; height: 48px; }
.signin h1 { font-size: 22px; margin: 14px 0 6px; }
.signin p { color: var(--muted); margin: 0 0 22px; }
.signin a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 11px; font-weight: 650; }
.quiet { color: var(--muted); }
.loading { padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 11px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); z-index: 20; max-width: calc(100% - 32px); }

@media (max-width: 860px) {
  .lanes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .top-inner { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 24px; }
  .decision { padding: 16px; }
  .row { grid-template-columns: 1fr auto; }
  .row .tagid { grid-column: 1 / -1; justify-self: start; }
  .who .name { display: none; }
}

.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.game-head h1 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.02em; }
.tabs { display: flex; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px 12px; font-weight: 650; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.game-head + .section { margin-top: 22px; }
@media (max-width: 560px) {
  .game-head { display: block; }
  .game-head h1 { font-size: 24px; margin-bottom: 6px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; }
}
