html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}html{background:#d6d1c4}[hidden]{display:none!important}canvas{display:block;width:100vw;height:100vh;height:100dvh;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}#foot{position:fixed;left:10px;right:10px;bottom:10px;display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}#status{max-width:calc(100% - 74px);padding:4px 8px;font:13px/1.4 ui-monospace,monospace;color:#222;background:#ffffffbf;border-radius:4px;pointer-events:none;-webkit-user-select:none;user-select:none}#lobby{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#d9d9d9e6;font:13px/1.5 ui-monospace,monospace;color:#222}#lobby-panel{background:#fff;border-radius:6px;padding:20px 24px;width:340px;box-shadow:0 2px 14px #0000002e}#lobby-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}#lobby-panel h1{margin:0;font-size:16px}#about{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:0 0 12px;padding:8px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}#about dt{color:#888}#about dd{margin:0;overflow-wrap:anywhere}#lobby-panel form{display:flex;gap:8px}#lobby input,#lobby select,#lobby button{font:inherit;padding:4px 8px;border:1px solid #999;border-radius:4px;background:#fff;color:inherit}#lobby input{flex:1;min-width:0}#lobby button{cursor:pointer}#lobby button:hover:not(:disabled){background:#f2f2f2}#lobby button:disabled{color:#999;cursor:default}#lobby #about-button[aria-expanded=true]{background:#222;border-color:#222;color:#fff}#game-list{margin:12px 0;max-height:40vh;overflow-y:auto}.game-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 2px;border-bottom:1px solid #eee}.game-row.empty{color:#888;justify-content:center}#lobby-controls{display:flex;gap:8px;align-items:center}#solo-controls,#start-controls{display:flex;gap:8px;align-items:center;margin-top:8px;padding-top:8px;border-top:1px solid #eee}#map-select,#difficulty-select,#fill-difficulty{flex:1}.game-row .seats{color:#888}#lobby-note{margin-top:10px;color:#666}#watch-replay{display:block;width:100%;margin-top:10px}#tools{font:13px/1.4 ui-monospace,monospace}#modes{position:fixed;left:10px;bottom:10px;display:flex;flex-direction:column;gap:6px}#menu{position:fixed;left:0;top:0;display:flex;flex-direction:column;gap:2px;padding:4px;background:#fff;border:1px solid #999;border-radius:6px;box-shadow:0 2px 10px #0003}#replay-bar{align-self:center;pointer-events:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;font:13px/1.4 ui-monospace,monospace;color:#222}#tools button,#replay-bar button,#replay-bar select{font:inherit;padding:8px 16px;border:1px solid #999;border-radius:4px;background:#ffffffbf;color:#222;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}#replay-scrub{width:200px;min-width:120px;margin:0;padding:7px 8px;border:1px solid #999;border-radius:4px;background:#ffffffbf;touch-action:manipulation}#replay-turn{padding:8px 10px;border-radius:4px;white-space:nowrap;background:#ffffffbf;user-select:none;-webkit-user-select:none}#tools #modes button{width:64px;height:64px;padding:0;white-space:pre-line;touch-action:none;-webkit-touch-callout:none}#tools button.active{background:#222;border-color:#222;color:#fff}#tools #menu button{display:flex;align-items:center;gap:8px;padding:8px 12px;border:none;border-radius:4px;background:transparent;text-align:left;white-space:nowrap}#tools #menu button:before{content:"";width:1em;text-align:center}#tools #menu button[aria-checked=true]:before{content:"✓"}#tools #menu button:hover{background:#eee}#menu .key{margin-left:auto;padding-left:12px;color:#888}#menu .glyph{position:relative;flex:none;width:16px;height:16px;background:#f5f3e8;border:1px solid #aaa;border-radius:2px}#menu .glyph:before,#menu .glyph:after{content:"";position:absolute}#menu .glyph.pause:before,#menu .glyph.pause:after{top:3px;bottom:3px;width:3px;background:#222}#menu .glyph.pause:before{left:3px}#menu .glyph.pause:after{right:3px}#menu .glyph.stop:before{inset:3px;background:#222}#tools button.lit{animation:lit-pulse 1.2s ease-in-out infinite}@keyframes lit-pulse{0%,to{box-shadow:0 0 #e08a0000}50%{box-shadow:0 0 0 5px #e08a00cc}}@media(prefers-reduced-motion:reduce){#tools button.lit{animation:none;outline:3px solid #e08a00;outline-offset:1px}}#card{position:fixed;top:16px;left:16px;right:16px;max-width:28em;margin:0 auto;box-sizing:border-box;padding:8px 12px 10px;font:15px/1.45 ui-monospace,monospace;color:#222;background:#ffffffe0;border-radius:6px;box-shadow:0 2px 10px #0000002e;pointer-events:none;user-select:none;-webkit-user-select:none}#card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;font-size:13px;color:#666}#card-title{flex:1;font-size:15px;color:#222}#card.ticked #card-counter:before{content:"✓ ";color:#2a7a2a;font-weight:700}#card-skip{pointer-events:auto;font:inherit;padding:4px 12px;border:1px solid #999;border-radius:4px;background:#ffffffbf;color:#222;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}@media(pointer:coarse){#lobby input,#lobby select,#lobby button{padding:10px 12px}}
