@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap";:root{color:#4d3b22;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--panel-bg:#fffaf4e6;--panel-border:#76582b24;--surface-alt:#fffcf7e0;--text-strong:#2f2315;--text-muted:#6f5b42;background:radial-gradient(circle at top,#f4c47a38,#0000 34%),linear-gradient(#f8f1e6 0%,#f4ede1 52%,#efe4d3 100%);font-family:Manrope,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;margin:0}button,textarea{font:inherit}h1,h2,h3{color:var(--text-strong);font-family:Fraunces,serif}#root{width:100%;min-height:100vh}.app-shell{flex-direction:column;gap:1.5rem;min-height:100vh;padding:1.5rem;display:flex}.topbar,.more-panel-header,.panel-header,.chart-header,.detail-meta{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.topbar h1,.spotlight-card h2,.chart-panel h2,.setup-card h2,.more-panel h2,.panel h3,.table-shell h3{margin:0}.topbar h1{font-size:clamp(2rem,4vw,3.4rem);line-height:.92}.topbar-kicker,.section-kicker,.status-label,.metric-card p,.history-card span,.history-card small,.spacebar-hint{text-transform:uppercase;letter-spacing:.14em;margin:0;font-size:.74rem}.topbar-kicker,.section-kicker,.status-label,.metric-card p,.history-card span,.history-card small,.spacebar-hint,.spotlight-note,.field-help,.empty-state,.metric-card span{color:var(--text-muted)}.more-button,.secondary-button,.history-card,.roll-button{cursor:pointer;font:inherit;border:0}.more-button,.secondary-button{color:var(--text-strong);background:#58391e14;border-radius:999px;padding:.8rem 1.15rem;transition:transform .15s,background .15s,box-shadow .15s}.more-button:hover,.secondary-button:hover,.history-card:hover,.roll-button:hover{transform:translateY(-1px)}.more-button:focus-visible,.secondary-button:focus-visible,.history-card:focus-visible,.roll-button:focus-visible{outline-offset:2px;outline:3px solid #ef9b344d}.table-layout,.setup-layout{flex-direction:column;flex:1;gap:1.5rem;display:flex}.hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;display:grid}.spotlight-card,.chart-panel,.setup-card,.panel,.metric-card,.table-shell,.history-card,.start-game-form,.detail-meta{border:1px solid var(--panel-border);background:var(--panel-bg);border-radius:1.75rem;box-shadow:0 20px 45px #31251214}.spotlight-card,.chart-panel,.setup-card,.panel,.table-shell,.detail-meta,.start-game-form{padding:1.4rem}.spotlight-card{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:21rem;display:flex}.spotlight-card.next{background:radial-gradient(circle at top, #ffcd7052, transparent 55%), var(--panel-bg)}.spotlight-card h2{font-size:clamp(2.1rem,4vw,3.8rem)}.spotlight-value{aspect-ratio:1;width:min(18rem,100%);color:var(--text-strong);background:linear-gradient(#fffffff2,#f5ecddf2);border:1px solid #76582b24;border-radius:2rem;place-items:center;font-family:Fraunces,serif;font-size:clamp(4.6rem,10vw,8rem);line-height:1;display:grid}.spotlight-note{font-size:.98rem}.chart-panel{flex-direction:column;gap:1rem;display:flex}.chart-legend{flex-wrap:wrap;gap:1rem;display:flex}.chart-legend span{color:var(--text-strong);align-items:center;gap:.45rem;font-size:.92rem;display:inline-flex}.legend-swatch{border-radius:999px;width:.8rem;height:.8rem;display:inline-block}.legend-swatch.last-game,.chart-bar.last-game{background:#c07a35}.legend-swatch.current-game,.chart-bar.current-game{background:#d95c2b}.legend-swatch.expected-game,.chart-bar.expected-game{background:#365f7a}.chart-grid{border-top:1px solid #76582b1f;grid-template-columns:repeat(11,minmax(0,1fr));align-items:end;gap:.8rem;min-height:19rem;padding:1rem .5rem .2rem;display:grid}.chart-group{flex-direction:column;align-items:center;gap:.7rem;display:flex}.chart-bars{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:.28rem;width:100%;min-height:16rem;display:grid}.chart-bar{border-radius:.7rem .7rem .2rem .2rem;width:100%;min-height:0;box-shadow:inset 0 -1px #ffffff52}.chart-label{color:var(--text-strong);font-size:1rem;font-weight:700}.roll-button{color:#fffaf3;background:linear-gradient(135deg,#d65f24,#ef9b34);border-radius:1.6rem;width:100%;min-height:5.75rem;font-family:Fraunces,serif;font-size:clamp(2rem,4vw,3rem);box-shadow:0 18px 30px #d65f2447}.start-button{margin-top:.5rem}.spacebar-hint{text-align:center}.setup-layout{justify-content:center;align-items:center}.setup-card{width:min(100%,46rem)}.setup-card h2{margin-top:.15rem;margin-bottom:1rem;font-size:clamp(2rem,4vw,3rem)}.start-game-form,.content-stack,.history-list,.summary-strip{flex-direction:column;gap:1rem;display:flex}.field-label{color:var(--text-strong);font-weight:700}.players-textarea{resize:vertical;width:100%;min-height:12rem;color:var(--text-strong);font:inherit;background:#fffdf9;border:1px solid #76582b2e;border-radius:1rem;padding:1rem}.form-error{color:#a2331d;margin:0}.drawer-backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#291d1247;justify-content:flex-end;padding:1rem;display:flex;position:fixed;inset:0}.more-panel{background:#fbf6eef5;border:1px solid #76582b24;border-radius:2rem;flex-direction:column;gap:1rem;width:min(40rem,100%);height:100%;padding:1.25rem;display:flex;overflow-y:auto;box-shadow:0 32px 60px #20160c38}.close-button{align-self:flex-start}.panel,.table-shell,.metric-card,.history-card,.detail-meta{background:var(--surface-alt)}.summary-strip{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));display:grid}.metric-card{gap:.4rem;padding:1rem}.metric-card strong{color:var(--text-strong);font-size:1.8rem;line-height:1}.history-card{text-align:left;padding:1rem}.history-card.selected{background:linear-gradient(135deg,#ef9b3429,#fffffff5);border-color:#d65f2452}.stats-table{border-collapse:collapse;width:100%;font-size:.96rem}.stats-table th,.stats-table td{text-align:left;border-bottom:1px solid #76582b1f;padding:.7rem .5rem}.stats-table tr:last-child td{border-bottom:0}@media (width<=900px){.app-shell,.drawer-backdrop{padding:1rem}.hero-grid,.chart-grid{grid-template-columns:1fr}.chart-group{grid-template-columns:3rem minmax(0,1fr);align-items:end;gap:1rem;display:grid}.chart-bars{min-height:8rem}}@media (width<=640px){.spotlight-card{min-height:18rem}.spotlight-value{width:min(14rem,100%)}.roll-button{min-height:4.8rem;font-size:2rem}.more-panel{border-radius:1.5rem;width:100%}.stats-table{white-space:nowrap;display:block;overflow-x:auto}}
