@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap');
:root{color-scheme:dark;--bg:#112c27;--panel:#193930;--edge:#406054;--ink:#fff7e5;--muted:#c2d5c9;--gold:#f7cf83;font:16px 'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:radial-gradient(ellipse at top,#255045 0,var(--bg) 60%);min-height:100vh}
main{width:min(100% - 28px,680px);margin:auto;padding:34px 0 46px}
header{display:flex;gap:14px;align-items:center;margin-bottom:24px}
header img{border-radius:13px}
.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.17em;color:var(--gold)}
h1,h2{font-family:'Instrument Serif',Georgia,serif;font-weight:400;margin:0}
h1{font-size:clamp(2.3rem,8vw,3.45rem);line-height:1}
h2{font-size:2.05rem}
p{color:var(--muted);line-height:1.45}
.panel{padding:clamp(16px,5vw,28px);background:var(--panel);border:1px solid var(--edge);border-radius:20px;margin-bottom:14px}
label{display:block;margin:14px 0 6px}
input,button{font:inherit;border:1px solid var(--edge);border-radius:10px;min-height:44px;padding:9px 12px;color:var(--ink)}
input{width:100%;background:#102921;margin-bottom:8px}
button{cursor:pointer;background:#285044;font-weight:700}
button:disabled{opacity:.55;cursor:default}
button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.primary{background:var(--gold);color:#272117;border-color:var(--gold)}
#entry button{width:100%}
.separator{height:1px;background:var(--edge);margin-top:22px}
.toolbar,.line{display:flex;justify-content:space-between;align-items:center;gap:12px}
.toolbar{margin-bottom:12px;flex-wrap:wrap}
#roomCode{font-variant-numeric:tabular-nums;letter-spacing:.06em;color:var(--gold)}
#status{color:#ffdaaa;margin:0 0 12px}
#status:empty{display:none}
.dice{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:15px 0}
.die{padding:0;min-width:0;aspect-ratio:1;max-height:76px;color:#22291f;background:#fff3dc;border:2px solid transparent;box-shadow:inset 0 -4px 0 #dac8a8;font:clamp(1.9rem,9vw,3.5rem)/1 system-ui}
.die:disabled{opacity:1}
.die[aria-pressed="true"]{background:var(--gold);border-color:#8c6124;box-shadow:inset 0 -4px 0 #c89645}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:7px;margin-top:12px}
.grid button{display:flex;justify-content:space-between;align-items:center;gap:4px;text-align:left;font-weight:600;font-size:.92rem}
.grid .filled{opacity:1;background:#152f28;color:var(--muted)}
.grid strong{color:var(--gold)}
.rows{padding:0;margin:12px 0;list-style:none}
.rows li{padding:8px 0;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}
.link{border:0;background:none;color:var(--muted);text-decoration:underline}
