*{box-sizing:border-box}:root{--bg: #f4f5f7;--card: #ffffff;--border: #d8dbe0;--text: #1a1c20;--muted: #71757c;--accent: #7b2cbf}html,body,#root{height:100%;margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}.screen{height:100%;display:flex;flex-direction:column}.screen.center{align-items:center;justify-content:center}.topbar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--card);border-bottom:1px solid var(--border)}.brand{font-weight:800;cursor:pointer}.spacer{flex:1}.content{flex:1;min-height:0;padding:16px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;margin:0 auto 16px;max-width:640px}.auth{max-width:360px;text-align:center}.auth h1{margin:0 0 4px}input,select,button{font:inherit;padding:9px 12px;border-radius:8px;border:1px solid var(--border)}input,select{width:100%;background:#fff}form{display:flex;flex-direction:column;gap:10px;margin:12px 0}form.row{flex-direction:row;align-items:center;flex-wrap:wrap}button{cursor:pointer;background:var(--accent);color:#fff;border:none;font-weight:600}button:hover{filter:brightness(1.08)}button:disabled{opacity:.5;cursor:default}button.link{background:none;color:var(--accent);padding:4px;font-weight:500;text-decoration:underline}.players-select{display:flex;align-items:center;gap:6px;white-space:nowrap}.players-select select{width:auto}.muted{color:var(--muted);font-size:14px}.error{color:#c1121f;font-size:14px}.lobby{max-width:720px;margin:0 auto}.game-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.game-list li{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--border);border-radius:10px}.badge{font-size:12px;padding:2px 8px;border-radius:999px;background:#eee}.badge-lobby{background:#e7f0ff;color:#1d3557}.badge-active{background:#e3f9e9;color:#137547}.badge-finished{background:#f0e7ff;color:#6a4c93}.game{display:flex;gap:16px;height:100%}.panel{width:300px;flex-shrink:0;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px;overflow-y:auto}.panel h2{margin:6px 0 12px}.board-wrap{flex:1;min-width:0;position:relative;background:var(--card);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;padding:8px}.board{width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.board:active{cursor:grabbing}.hex{stroke:#c7ccd4;stroke-width:1;cursor:pointer}.hex:hover{stroke:#333;stroke-width:2}.zoom-controls{position:absolute;right:12px;bottom:12px;display:flex;flex-direction:column;gap:6px;z-index:5}.zoom-controls button{width:40px;height:40px;padding:0;font-size:20px;line-height:1;background:#fff;color:#222;border:1px solid var(--border);box-shadow:0 1px 3px #0002}.zoom-controls button:hover{background:#f3f3f3}.status-box{margin:10px 0;padding:10px;border:1px solid var(--border);border-radius:10px}.era{font-size:18px}.turn{margin-top:8px;font-weight:700}.turn.my-turn{color:#137547}.winner{margin:10px 0;padding:10px;background:#fff8e1;border:1px solid #ffd60a;border-radius:10px;font-weight:700}.players{margin:10px 0;display:flex;flex-direction:column;gap:4px}.player{display:flex;align-items:center;gap:8px}.player.dead{opacity:.5;text-decoration:line-through}.swatch{width:14px;height:14px;border-radius:4px;border:1px solid #0003}.legend{margin:12px 0}.legend table{width:100%;border-collapse:collapse;font-size:14px}.legend th,.legend td{padding:3px 6px;text-align:center}.legend td:nth-child(2){text-align:left}.log{margin-top:12px;font-size:13px;display:flex;flex-direction:column;gap:3px}.log-capture{color:#c1121f}.log-random{color:var(--accent);font-weight:600}.log-era-change{color:#1d3557;font-weight:600}.log-win{color:#137547;font-weight:700}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:40px;color:#0005}.lobby-box{display:flex;flex-direction:column;gap:8px;margin:10px 0}.paused{margin-top:6px;padding:6px 8px;background:#fff3cd;border:1px solid #ffe08a;border-radius:8px;font-weight:600}.targeting{margin:10px 0;padding:10px;background:#fff8e1;border:2px solid #f08c00;border-radius:10px}.targeting .prompt{font-weight:700;margin-bottom:8px}.player-choices{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.player-choices button{color:#fff;border:1px solid #0003}.invite-list{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:8px}.invite-list li{display:flex;align-items:center;gap:8px}.invite-list input{flex:1;font-size:12px}@media (max-width: 820px){.content{padding:8px}.game{flex-direction:column;gap:8px}.panel{width:100%;max-height:40vh;flex-shrink:1}.board-wrap{min-height:56vh}.card{padding:14px}.topbar{padding:8px 10px;gap:8px}.game-list li{flex-direction:column;align-items:flex-start;gap:8px}.game-list li .actions,.game-list li .actions button{width:100%}.zoom-controls button{width:44px;height:44px}}@media (max-width: 480px){.panel{max-height:44vh}.board-wrap{min-height:52vh}}
