:root{--paper:#f4efe2;--ink:#2b2620;--muted:#7a7062;--line:#c9bfa8;--square:#ebe3cf;--red:#b3352b;--blue:#2f5d9c;--move:#6e8b5a;--target:#e3c35a;color:var(--ink);background:var(--paper);font-family:system-ui,sans-serif}body{margin:0;padding:16px}#app{max-width:1000px;margin:0 auto}header h1{letter-spacing:.04em;margin:0;font-size:1.4rem}.message{margin:4px 0 12px;font-size:1.1rem}.error{color:var(--red);margin:0 0 12px}.game{flex-wrap:wrap;gap:24px;display:flex}.table{flex-direction:column;gap:12px;display:flex}.middle{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.board{border:2px solid var(--ink);background:var(--square);width:min(480px,100vw - 32px)}.square{fill:var(--square);stroke:var(--line);stroke-width:1px;cursor:default}.square.lodge-red{fill:#ead2cb}.square.lodge-blue{fill:#cfd9e8}.square.movable,.square.target{cursor:pointer}.square.movable{stroke:var(--ink);stroke-width:2px}.square.selected{fill:#e9dca8}.square.target{fill:var(--target)}.cell{cursor:pointer}.piece{stroke:var(--ink);stroke-width:2px;pointer-events:none}.piece.red{fill:var(--red)}.piece.blue{fill:var(--blue)}.piece.ranger{stroke-width:5px}.hand{border-radius:6px;align-items:center;gap:10px;padding:6px 8px;display:flex}.hand.active{background:#e6dcc4}.hand-label{min-width:120px;font-weight:600}.hand.red .hand-label{color:var(--red)}.hand.blue .hand-label{color:var(--blue)}.side{flex-direction:column;gap:6px;display:flex}.card{border:1px solid var(--line);background:#fbf8f0;border-radius:6px;width:92px;padding:6px;position:relative}.card:after{content:"";border-radius:2px;width:9px;height:9px;position:absolute;top:8px;right:6px}.card.blaze-red:after{background:var(--red)}.card.blaze-blue:after{background:var(--blue)}.card-name{margin-bottom:4px;font-size:.85rem;font-weight:600}.grid{background:var(--line);border:1px solid var(--line);grid-template-columns:repeat(5,1fr);gap:1px;display:grid}.g{aspect-ratio:1;background:#fbf8f0}.g.move{background:var(--move)}.g.piece{background:var(--ink)}.choices,.controls{flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;display:flex}button{font:inherit;border:1px solid var(--ink);cursor:pointer;background:#fbf8f0;border-radius:4px;padding:6px 12px}button:hover{background:#efe6cf}.log{flex:1;min-width:240px}.log h2{margin:0 0 6px;font-size:1rem}.log ol{max-height:520px;margin:0;padding-left:24px;overflow-y:auto}.log li.red{color:var(--red)}.log li.blue{color:var(--blue)}@media (prefers-color-scheme:dark){:root{--paper:#1f1c18;--ink:#ece4d2;--muted:#a99f8f;--line:#4a443a;--square:#2c2822}.square.lodge-red{fill:#4a2d29}.square.lodge-blue{fill:#27344a}.square.selected{fill:#5a5232}.square.target{fill:#8a7432}.hand.active{background:#332e27}.card,.g,button{color:var(--ink);background:#2a2620}button:hover{background:#3a342b}}
