/* Office Quest: fluorescent-office palette, typewritten memos, rubber stamps, ID badges. */
:root {
  --bg: #dde5e0; --surface: #fcfcf8; --sunk: #eef2ef; --ink: #1b2541; --muted: #556079; --line: #c3ccc7;
  --focus: #1b2541; --accent: #1b2541; --on-accent: #fcfcf8;
  --stamp: #c22e2a; --approve: #1f5fad; --hi: #f3e04a; --sticky: #ffe873; --sticky-ink: #3a3000;
  --ok: #1f7a4a; --warn: #9a5b00; --danger: #b42318;
  --t-diplomacy: #c93b84; --t-analysis: #2f6fdb; --t-hustle: #d4701a; --t-creativity: #8448d0; --t-knowhow: #1b8467; --t-calm: #2f93a8;
  --memo: "Courier Prime", "Courier New", monospace;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #10172a; --surface: #182139; --sunk: #141c31; --ink: #e9edf6; --muted: #9ba5bd; --line: #2a3552;
    --focus: #e9edf6; --accent: #f3e04a; --on-accent: #10172a; --stamp: #ff6b5e; --approve: #86b4ff; --hi: #e8d53b; --sticky: #e9d34c;
    --ok: #5fd39b; --warn: #f0b75a; --danger: #ff8a7a; color-scheme: dark; }
}
body { font: 400 1.0625rem/1.5 "Barlow", system-ui, sans-serif; background: var(--bg); }
.btn { font-family: "Barlow", system-ui, sans-serif; font-weight: 700; }
h1, h2, h3, .p-h { font-family: var(--cond); font-weight: 800; letter-spacing: 0; margin: 0 0 0.4em; }
.ic { width: 18px; height: 18px; flex: none; }
.lbl { font-family: var(--cond); font-weight: 700; font-size: 0.9375rem; color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.err, .warn { color: var(--danger); font-weight: 600; }
.warn { color: var(--warn); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgb(0 0 0 / 0.45); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
select, input, textarea { font: inherit; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.field > span { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea, .row input, .row select, .code-in {
  min-height: 44px; padding: 8px 12px; color: var(--ink); background: var(--sunk); border: 1.5px solid var(--line); border-radius: 6px; width: 100%;
}
.row input, .row select { width: auto; flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: -4px 0 12px; }

/* trait colour dots */
[data-t="diplomacy"] { --tc: var(--t-diplomacy); } [data-t="analysis"] { --tc: var(--t-analysis); } [data-t="hustle"] { --tc: var(--t-hustle); }
[data-t="creativity"] { --tc: var(--t-creativity); } [data-t="knowhow"] { --tc: var(--t-knowhow); } [data-t="calm"] { --tc: var(--t-calm); }
.dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; font: 700 0.75rem/1 "Barlow", sans-serif; font-style: normal;
  color: #fff; background: var(--tc, var(--muted)); }

/* ---- memos ---- */
.memo { position: relative; }
.memo-meta { font: 400 0.875rem/1.5 var(--memo); color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin: 0 0 12px; }
.memo-meta b { color: var(--ink); font-weight: 700; }
.memo-p { font: 400 1rem/1.6 var(--memo); white-space: pre-line; margin: 0 0 12px; }
.note { background: linear-gradient(transparent 12%, color-mix(in srgb, var(--hi) 70%, transparent) 12%, color-mix(in srgb, var(--hi) 70%, transparent) 88%, transparent 88%); color: var(--ink); font: 700 1rem/1.6 var(--memo); padding: 0 4px; margin: 0 0 12px; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .note { color: #10172a; } }
.memo .note + * { margin-top: 12px; }

/* ---- stamps ---- */
.stamp { display: inline-block; font: 800 1.75rem/1 var(--cond); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px 4px; border: 4px double currentColor; border-radius: 6px;
  color: var(--stamp); transform: rotate(-7deg); margin: 6px 0 12px; opacity: 0.92; animation: thunk 0.42s cubic-bezier(.2,1.6,.4,1) both; }
.stamp.ok { color: var(--approve); }
@keyframes thunk { from { transform: rotate(-7deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-7deg) scale(1); opacity: 0.92; } }

/* ---- dice ---- */
.dice-wrap { display: grid; place-items: center; margin: 8px 0; }
.d20 { width: 112px; height: 112px; }
.d20-face { fill: var(--surface); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.d20-tri { fill: var(--sunk); stroke: var(--ink); stroke-width: 1.5; }
.d20-edge { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.d20-n { font: 800 26px/1 var(--cond); fill: var(--ink); }
.d20.crit .d20-face { fill: var(--hi); } .d20.crit .d20-n { fill: #10172a; }
.d20.fumble .d20-face { fill: color-mix(in srgb, var(--stamp) 30%, var(--surface)); }
.rolling .d20 { animation: tumble 0.5s linear infinite; }
@keyframes tumble { 0% { transform: rotate(0) scale(1); } 25% { transform: rotate(90deg) scale(0.9); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(1); } }

/* ---- badge ---- */
.badge { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 16px 16px; max-width: 380px; margin: 0 auto;
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.55); border-top: 10px solid var(--tc, var(--ink)); }
.badge-clip { position: absolute; top: 8px; left: 50%; width: 54px; height: 9px; margin-left: -27px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.badge-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.badge-photo { position: relative; width: 78px; height: 92px; border-radius: 6px; background: color-mix(in srgb, var(--tc) 18%, var(--sunk)); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.badge-photo > span { font: 800 2rem/1 var(--cond); color: var(--tc); }
.badge-ic { position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--tc); color: #fff; }
.badge-co { font: 400 0.8125rem/1.2 var(--memo); color: var(--muted); margin: 0; }
.badge-name { font-size: 1.6rem; line-height: 1.05; margin: 2px 0; overflow-wrap: anywhere; }
.badge-class { font: 700 1.0625rem/1.2 var(--cond); color: var(--tc); margin: 0; }
.badge-team { font-size: 0.875rem; color: var(--muted); margin: 2px 0 0; }
.badge-traits { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.trait { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--sunk); }
.trait span { flex: 1; font-weight: 600; }
.trait b { font: 800 1.0625rem/1 var(--cond); color: var(--ok); }
.badge-weak { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; }
.badge-weak s { font-weight: 600; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; }
.badge-weak b { font: 800 1.0625rem/1 var(--cond); color: var(--stamp); }
.badge-weak .weak-joke { flex-basis: 100%; }
.badge .lbl { margin: 0; }
.badge-power { border: 1.5px dashed var(--line); border-radius: 6px; padding: 8px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.badge-power.used { opacity: 0.5; text-decoration: line-through; }
.badge.small { padding: 18px 12px 12px; border-top-width: 6px; box-shadow: none; }
.badge.small .badge-photo { width: 52px; height: 60px; } .badge.small .badge-photo > span { font-size: 1.4rem; } .badge.small .badge-ic { width: 24px; height: 24px; padding: 5px; }
.badge.small .badge-name { font-size: 1.2rem; }
.badge.small .trait { padding: 3px 8px; font-size: 0.9375rem; }
.badge.empty { text-align: center; border-top-width: 1px; }
.reveal { animation: flip 0.7s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes flip { from { transform: perspective(800px) rotateY(80deg) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- phone ---- */
.phone-mode { min-height: 100dvh; }
.p-bar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 14px calc(6px); padding-top: max(10px, env(safe-area-inset-top)); }
@media (prefers-color-scheme: dark) { .p-bar { background: #0a1020; color: var(--ink); border-bottom: 1px solid var(--line); } }
.p-brand { font: 800 1.25rem/1 var(--cond); margin: 4px 0; }
.p-top { display: flex; align-items: center; gap: 12px; }
.p-who { flex: 1; min-width: 0; }
.p-team { font: 800 1.25rem/1.1 var(--cond); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-ch { margin: 0; font-size: 0.8125rem; opacity: 0.8; }
.res { display: flex; gap: 10px; align-items: center; }
.res .r { display: inline-flex; align-items: center; gap: 3px; font: 700 1rem/1 "Barlow", sans-serif; }
.res .ic { width: 17px; height: 17px; }
.p-bar .r:nth-child(1) .ic { color: #ff8fa6; } .p-bar .r:nth-child(2) .ic { color: #f0c27a; } .p-bar .r:nth-child(3) .ic { color: var(--hi); }
.p-tabs { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.p-tabs .btn { color: inherit; min-height: 30px; padding: 4px 8px; font-size: 0.875rem; }
.p-tabs .btn:hover { border-color: currentColor; }
.p-items { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; margin-left: auto; font-size: 0.875rem; }
.p-conn { background: var(--warn); color: #fff; margin: 0; padding: 6px 14px; font-size: 0.875rem; }
.p-main { max-width: 560px; margin: 0 auto; padding: 14px 12px 40px; display: flex; flex-direction: column; gap: 12px; }
.p-main > section { display: flex; flex-direction: column; gap: 12px; }
.p-h { font-size: 1.75rem; line-height: 1.05; }
.join .btn.big { width: 100%; }
.wait { text-align: center; color: var(--muted); font-style: italic; margin: 6px 0; }
.go { width: 100%; }
.go .ic { width: 20px; height: 20px; }

.qbar { height: 6px; background: var(--sunk); border-radius: 3px; margin: -4px 0 14px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--ink); transition: width 0.3s; }
.q-text { font-size: 1.6rem; line-height: 1.1; }
.answers { display: flex; flex-direction: column; gap: 8px; }
.answers.grid { display: grid; grid-template-columns: 1fr 1fr; }
.answer { justify-content: flex-start; text-align: left; white-space: normal; min-height: 54px; padding: 10px 12px; gap: 10px; font-weight: 600; background: var(--surface); }
.answer .letter { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; border: 1.5px solid var(--line); font: 800 0.9375rem/1 var(--cond); flex: none; }
.answer.on { border-color: var(--ink); background: color-mix(in srgb, var(--hi) 35%, var(--surface)); }
.answer.wrong { text-decoration: line-through; }
.voters { display: flex; gap: 2px; } .voters .dot { width: 24px; height: 24px; font-size: 0.625rem; }
.result { text-align: left; }
.chosen { font-size: 1.35rem; }
.fxs { display: flex; flex-wrap: wrap; gap: 6px; }
.fx { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-weight: 700; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.fx.neg { background: color-mix(in srgb, var(--stamp) 12%, var(--surface)); color: var(--stamp); border-color: color-mix(in srgb, var(--stamp) 35%, transparent); }
.fx .ic { width: 15px; height: 15px; }

.trial-tag { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.trial-tag b { font: 800 1.25rem/1 var(--cond); flex: 1; text-align: left; }
.need { font: 800 1.125rem/1 var(--cond); background: var(--ink); color: var(--bg); padding: 5px 9px; border-radius: 4px; }
.pickers { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.pickers li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 6px; }
.pickers li.on { border-color: var(--ink); background: color-mix(in srgb, var(--hi) 35%, var(--surface)); }
.pickers li.used { opacity: 0.55; }
.mod { font: 800 1.125rem/1 var(--cond); min-width: 34px; text-align: right; } .mod.pos { color: var(--ok); } .mod.neg { color: var(--stamp); }
.boosts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .lbl { margin: 0; color: var(--ink); font-size: 1rem; } .stepper .n { font: 800 1.25rem/1 var(--cond); min-width: 16px; text-align: center; }
.item-btn.on { background: var(--hi); color: #10172a; border-color: var(--ink); }
.sum { text-align: center; font: 700 1.0625rem/1.3 var(--memo); margin: 0 0 10px; }
.roll-btn, .power-btn { width: 100%; }
.power-btn { border-style: dashed; border-color: var(--ink); }
.roll-card.done { text-align: center; } .roll-card.done .memo-p, .roll-card.done .fxs { text-align: left; justify-content: flex-start; }
.boss-q { border-left: 4px solid var(--stamp); padding: 4px 0 4px 12px; margin-top: 6px; } .boss-q h3 { font-size: 1.35rem; margin: 0; }

.clues { display: flex; flex-direction: column; gap: 10px; }
.sticky { background: var(--sticky); color: var(--sticky-ink); font: 700 1rem/1.5 var(--memo); padding: 16px 14px; margin: 0; transform: rotate(-1deg); box-shadow: 0 8px 14px -10px rgb(0 0 0 / 0.5); }
.sticky:nth-of-type(odd) { transform: rotate(1.2deg); }
.facts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.fact:last-child { border: 0; padding: 0; }
.fact-text { font: 400 1rem/1.5 var(--memo); margin: 0; }
.fact select { min-height: 42px; padding: 6px 10px; border-radius: 6px; background: var(--sunk); color: var(--ink); border: 1.5px solid var(--line); }
.fact.ok .ic { color: var(--ok); } .fact.no .ic { color: var(--stamp); }
.talk { border-left: 8px solid var(--hi); }
.talk-q { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.members { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.members li { display: flex; align-items: center; gap: 8px; }
.members.inline { flex-direction: row; flex-wrap: wrap; }
.members.inline li { padding: 4px 10px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.members.inline li.on { border-color: var(--ok); } .members.inline .ic { color: var(--ok); }
.team-name { font-size: 1.8rem; }
.you-are { text-align: center; font: 700 1.125rem/1 var(--cond); color: var(--muted); margin: 6px 0 -2px; }
.lobby { display: flex; flex-direction: column; gap: 12px; }
.market h3 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin: 0; }
.vending { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vending li { display: flex; align-items: center; gap: 10px; }
.shouts { display: flex; flex-wrap: wrap; gap: 6px; }
.awards { padding-left: 1.1em; } .awards li { margin: 4px 0; }
.end { display: flex; flex-direction: column; gap: 12px; }
.team-badges { display: flex; flex-direction: column; gap: 12px; }
dialog.dialog { max-width: min(560px, 94vw); }

/* ---- landing ---- */
.landing-mode { min-height: 100dvh; display: flex; flex-direction: column; }
.land-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { margin: 0; font-size: 0.9375rem; } .brand a { text-decoration: none; color: var(--muted); }
.lang select { min-height: 36px; border-radius: 6px; padding: 4px 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.land { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.hero { padding-top: 20px; }
.hero-title { font: 800 clamp(3.4rem, 9vw, 6.5rem)/0.88 var(--cond); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero-title::after { content: ""; display: block; width: 3.2em; height: 0.16em; margin-top: 10px; background: var(--hi); }
.hero-sub { font: 400 1.0625rem/1.6 var(--memo); border-left: 4px solid var(--stamp); padding-left: 14px; max-width: 46ch; }
.lede { font-size: 1.125rem; max-width: 46ch; }
.land-cards { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.land-cards h3 { font-size: 1.6rem; }
.code-in { font: 800 1.4rem/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; flex: 1; width: auto; }
.host-card .big { width: 100%; margin-top: 4px; }
.names { margin: 0 0 12px; } .names summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; } .recent p { margin: 0; width: 100%; }
.how { grid-column: 1 / -1; max-width: 760px; }
.how ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.land-foot { text-align: center; padding: 18px; color: var(--muted); font-size: 0.9375rem; }
.credits { padding-left: 1.1em; } .credits li { margin: 6px 0; }
@media (max-width: 820px) { .land { grid-template-columns: 1fr; } .hero { padding-top: 0; } .grid2 { grid-template-columns: 1fr; } }

/* ---- host ---- */
.host-mode { min-height: 100dvh; display: flex; flex-direction: column; }
.h-bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { .h-bar { background: #0a1020; color: var(--ink); border-bottom: 1px solid var(--line); } }
.h-bar .btn { color: var(--ink); }
.h-brand { font: 800 1.4rem/1 var(--cond); text-decoration: none; }
.h-ch { font: 700 1.125rem/1 var(--cond); opacity: 0.85; }
.h-bar .sp { flex: 1; }
.h-code b { font: 800 1.25rem/1 var(--cond); letter-spacing: 0.1em; background: var(--hi); color: #10172a; padding: 2px 8px; border-radius: 4px; }
.h-bar .conn { color: inherit; opacity: 0.85; }
.menu-pop .danger { color: var(--danger); }
.h-stage { flex: 1; padding: 18px; }
.center { max-width: 520px; margin: 40px auto; }

.lobby-grid { display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.4fr; gap: 24px; align-items: start; }
.join-panel { text-align: center; }
.big-title { font: 800 clamp(3rem, 6vw, 5.5rem)/0.9 var(--cond); margin: 0 0 8px; }
.qr { display: grid; place-items: center; margin: 16px 0 8px; } .qr svg { border-radius: 8px; border: 10px solid #fff; width: min(260px, 60vw); height: auto; }
.join-how { font-size: 1.125rem; }
.code.giant { font: 800 clamp(3rem, 6vw, 5rem)/1 var(--cond); letter-spacing: 0.12em; margin: 0; }
.people-panel { display: flex; flex-direction: column; gap: 14px; }
.counts { display: flex; gap: 16px; align-items: baseline; font: 700 1.5rem/1 var(--cond); } .counts span { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.chip-p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); text-align: left; font: inherit; color: inherit; width: 100%; cursor: default; line-height: 1.2; }
button.chip-p { cursor: pointer; } button.chip-p:hover { border-color: var(--ink); }
.chip-p.off { opacity: 0.5; }
.chip-p:not(.ready) .dot { background: var(--line); color: var(--muted); }
.lobby-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lobby-actions select { min-height: 52px; border-radius: 10px; padding: 6px 12px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.lobby-actions p { width: 100%; margin: 0; }
.teams-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tcol { background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.tcol h3 { font-size: 1.2rem; margin: 0 0 8px; }
.tcol ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.move-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.play-grid { display: grid; grid-template-columns: 1fr minmax(300px, 360px); gap: 18px; align-items: start; }
.building { display: flex; flex-direction: column; border: 3px solid var(--ink); border-top-width: 14px; border-radius: 4px 4px 0 0; background: var(--surface); }
.floor { display: grid; grid-template-columns: 170px 1fr; border-bottom: 2px solid var(--ink); min-height: 46px; }
.floor:last-child { border-bottom: 0; }
.floor-label { padding: 8px 12px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: center; background: var(--sunk); }
.floor-label .day { font-size: 0.8125rem; color: var(--muted); } .floor-label b { font: 700 1.0625rem/1.1 var(--cond); }
.floor.past { opacity: 0.55; } .floor.future .floor-body { background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 50%, transparent) 10px 11px); }
.floor-body { display: flex; align-items: center; padding: 0 12px; color: var(--ok); }
.floor.here { min-height: 260px; } .floor.here .floor-label { background: var(--hi); color: #10172a; } .floor.here .floor-label .day { color: #3b3a1a; }
.corridor { position: relative; flex-direction: column; align-items: stretch; padding: 12px; color: var(--ink); }
.doors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; }
.doors li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 4px; border: 2px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--sunk); line-height: 1.1; min-height: 74px; }
.tokens { flex: 1; min-height: 160px; margin-top: 8px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; }
.lane { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.doors li.exit { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.token { position: relative; max-width: 100%; }
.token summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 0.875rem; max-width: 100%; box-shadow: 0 6px 12px -8px rgb(0 0 0 / 0.6); }
.token summary b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token summary::-webkit-details-marker { display: none; }
.token.done summary { background: var(--ok); color: #fff; }
.token .warn-ic { color: var(--hi); }
.token-pop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5); }
.token-pop p { margin: 0; }
.side { display: flex; flex-direction: column; gap: 14px; }
.next-box .btn { width: 100%; } .next-box p { margin: 6px 0 0; }
.standings h2, .feed h2 { font-size: 1.3rem; }
.standings ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.standings li > * { vertical-align: middle; } .standings li { display: list-item; } .standings li .res { float: right; gap: 8px; } .standings li b { font-weight: 600; }
.standings .res .ic:nth-of-type(1) { color: inherit; }
.feed ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.feed li { padding: 6px 8px; border-radius: 4px; background: var(--sunk); font-size: 0.9375rem; }
.feed li.f-crit { background: color-mix(in srgb, var(--hi) 55%, var(--surface)); } .feed li.f-shout { font-family: var(--memo); } .feed li.f-sync { border-left: 3px solid var(--stamp); } .feed li.f-gift { border-left: 3px solid var(--ok); }
.patience { background: var(--surface); border: 2px solid var(--stamp); border-radius: 6px; padding: 12px; }
.patience .bar { height: 22px; background: var(--sunk); border-radius: 4px; overflow: hidden; } .patience .bar i { display: block; height: 100%; background: var(--stamp); transition: width 0.6s; }
.patience p { margin: 4px 0 0; }
.end-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; max-width: 1280px; margin: 0 auto; }
.verdict { grid-row: span 2; }
.verdict .stamp { font-size: 3.4rem; }
.verdict-text { font: 400 1.35rem/1.6 var(--memo); }
.ranking ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ranking li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; background: var(--sunk); }
.ranking .place { font: 800 1.6rem/1 var(--cond); width: 32px; text-align: center; }
.ranking .p1 { background: color-mix(in srgb, var(--hi) 55%, var(--surface)); }
.ranking p { margin: 2px 0 0; }
.debrief li { font-size: 1.125rem; margin: 6px 0; }
.facts-wall { grid-column: 1 / -1; } .facts-wall ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.facts-wall li { background: var(--sticky); color: var(--sticky-ink); padding: 12px; font-family: var(--memo); } .facts-wall li p { margin: 0 0 6px; }
@media (max-width: 900px) { .lobby-grid, .play-grid, .end-grid { grid-template-columns: 1fr; } .floor { grid-template-columns: 110px 1fr; } .doors span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
