:root{color:#e8edf4;font-synthesis:none;text-rendering:optimizelegibility;--surface:#1b2029;--raised:#252d39;--border:#ffffff1a;--muted:#a0adbd;--accent:#82b5f5;--team-blue:#82b5f5;--team-red:#f38c82;--radius:16px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#101319;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{scrollbar-gutter:stable}body{background-color:#101319;background-image:radial-gradient(at 50% 42%,#25304070 0,#0000 62%),none;background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:auto,auto;background-attachment:fixed;background-origin:padding-box,padding-box;background-clip:border-box,border-box;min-height:100dvh;margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button{border:0;transition:background .15s,color .15s}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}button,input,select{border-radius:9px;min-height:44px}button{color:inherit;padding:11px 17px}input,select{border:1px solid var(--border);color:inherit;background:#151a22;width:100%;padding:12px}input::placeholder{color:var(--muted);font-size:.85rem}label{color:var(--muted);margin-bottom:8px;font-size:.82rem;display:block}.shell{width:min(1080px,100%);margin:auto;padding:0 32px 36px}.app-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;height:96px;display:flex}.brand{letter-spacing:.02em;align-items:center;gap:13px;font-size:.95rem;font-weight:600;display:flex}.brand-mark{letter-spacing:-.08em;border:1px solid var(--border);color:#dce6f4;border-radius:9px;padding:9px 8px;font-size:1rem}.brand-mark span{color:var(--accent)}.header-actions{align-items:center;gap:14px;display:flex}.quiet{color:var(--muted);background:0 0;font-size:.82rem}.quiet:hover{background:var(--surface);color:#e8edf4}.language-switch{border:1px solid var(--border);border-radius:9px;padding:3px;display:flex}.language-switch button{letter-spacing:.04em;min-height:34px;color:var(--muted);background:0 0;border-radius:6px;padding:6px 9px;font-size:.7rem}.language-switch button[aria-pressed=true]{background:var(--raised);color:#e8edf4}.home{max-width:880px;margin:auto}.intro{text-align:center;padding:62px 0 34px}.eyebrow{letter-spacing:.13em;color:var(--muted);font-size:.69rem;font-weight:600}.intro h1{letter-spacing:-.045em;margin:16px 0 13px;font-size:clamp(1.9rem,4vw,2.8rem);font-weight:550}.intro p{color:var(--muted);font-size:.95rem}.hero-pieces{justify-content:center;gap:16px;margin-top:26px;display:flex}.hero-pieces img{object-fit:contain;width:82px;height:82px}.mode-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.standalone .mode-grid{grid-template-columns:minmax(0,420px);justify-content:center}.expert-hint{color:var(--muted);font-size:.85rem}.mode-card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:28px;box-shadow:0 5px 20px #40523008}.card-index{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.72rem}.mode-card h2{letter-spacing:-.02em;margin-top:17px;font-size:1.25rem;font-weight:550}.mode-card p{color:var(--muted);min-height:42px;margin:11px 0 27px;font-size:.85rem;line-height:1.55}.primary{background:var(--accent);color:#101c2e;justify-content:center;align-items:center;gap:20px;font-size:.85rem;font-weight:600;display:inline-flex}.primary:hover{background:#a4caff}.secondary{background:var(--raised);border:1px solid var(--border);font-size:.85rem}.secondary:hover{background:#303b4c}.mode-card>.primary,.mode-card>.secondary{width:100%;margin-top:14px}.join-form{margin-top:24px}.join-row{gap:8px;display:flex}.join-row input{text-transform:uppercase;min-width:0}.join-row button{white-space:nowrap;padding-inline:12px}.game-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:28px;margin:28px auto 0;display:grid}.board-column{min-width:0}.match-sidebar{flex-direction:column;gap:20px;min-width:0;display:flex}.match-status{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.match-status h1{letter-spacing:-.025em;margin:10px 0;font-size:1.35rem;font-weight:550}.match-status p{color:var(--muted);font-size:.82rem;line-height:1.6}.match-sidebar .error-banner,.match-sidebar .disconnect{margin:0}.waiting-layout{grid-template-columns:minmax(0,1fr);max-width:720px}.waiting-layout .match-sidebar{grid-row:1}.waiting-layout .board-column{grid-row:2}.move-history{border-top:1px solid var(--border);padding-top:20px}.history-heading{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.history-heading h2{font-size:.9rem;font-weight:550}.history-heading>span,.history-empty{color:var(--muted);font-size:.75rem}.history-empty{margin-top:14px;line-height:1.6}.history-list{scrollbar-gutter:stable;overscroll-behavior:contain;max-height:390px;margin:14px 0 0;padding:0 6px 0 30px;font-size:.8rem;overflow-y:auto}.history-list li{border-bottom:1px solid var(--border);padding:0}.history-list li::marker{color:var(--muted);font-size:.7rem}.history-move{justify-content:space-between;align-items:center;gap:10px;display:flex}.own-player{color:var(--accent)}.enemy-player{color:var(--team-red)}.move-coordinates{white-space:nowrap;font-variant-numeric:tabular-nums;font-family:ui-monospace,monospace;font-size:.75rem}.history-battle{color:var(--muted);align-items:center;gap:5px;margin-top:8px;font-size:.72rem;display:flex}.history-battle img{object-fit:contain;width:24px;height:24px}.history-battle>span:last-child{margin-left:5px}@media (width<=900px){.game-layout{grid-template-columns:minmax(0,1fr);gap:24px;max-width:720px}.history-list{max-height:260px}}.connection{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;padding-top:4px;font-size:.65rem;display:inline-flex}.connection i{background:#e0b27b;border-radius:50%;width:6px;height:6px}.connection.connected i{background:#8bbb9d}.versus{opacity:.4;margin:0 9px}.board-wrap{--axis-size:24px;grid-template-columns:var(--axis-size) minmax(0, 1fr) var(--axis-size);grid-template-rows:var(--axis-size) auto var(--axis-size);border-radius:var(--radius);background:#c79557 url(../assets/tabletop/wood.png) 50%/480px;border:1px solid #87613b;gap:4px;padding:9px;display:grid;box-shadow:inset 0 2px 1px #ffe3bdb3,inset 0 -4px 2px #6e472642,0 6px #8d603a,0 16px 30px #403d2626}.board{background:#619035 url(../assets/tabletop/grass.png) 50%/cover;border:1px solid #55702d;border-radius:7px;grid-area:2/2;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:2px;display:grid;box-shadow:inset 0 2px 5px #24381140}.cell{aspect-ratio:1;isolation:isolate;background:#e5f1c314;border-radius:7px;justify-content:center;align-items:center;min-height:0;padding:5%;display:flex;position:relative;box-shadow:inset 0 0 0 1px #f5ffe43d}.cell.alternate{background:#1c461c16}.cell img{object-fit:contain;-webkit-user-select:none;user-select:none;pointer-events:none;z-index:1;width:100%;height:100%}.cell.recent{box-shadow:inset 0 0 0 2px #f9e49d}.cell.setupZone{background:#cfeaff2b}.cell.selected{background:#b5dafa78;box-shadow:inset 0 0 0 3px #fff9d1}.cell.destination{box-shadow:inset 0 0 0 2px #fff2b1}.cell.combat{box-shadow:inset 0 0 0 2px #f3bb55}.move-dot{opacity:.65;z-index:3;background:#fff3b6;border-radius:50%;width:16%;height:16%;position:absolute}.destination.enemy .move-dot{background:0 0;border:2px solid #fff3b6;border-radius:5px;width:auto;height:auto;inset:8%}.phase-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;min-height:0;padding-top:0;display:flex}.choice-button{background:var(--surface);border:1px solid var(--border);align-items:center;gap:8px;font-size:.8rem;display:flex}.choice-button:hover{background:var(--raised)}.choice-button img{object-fit:contain;width:34px;height:34px}.submitted{color:var(--muted);align-items:center;gap:10px;font-size:.8rem;display:flex}.submitted img{object-fit:contain;width:38px;height:38px}.match-footer{color:var(--muted);justify-content:space-between;align-items:center;padding-top:0;font-size:.72rem;display:flex}.waiting-card{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;align-items:center;gap:22px;padding:50px 24px;display:flex}.join-code{letter-spacing:.13em;font-family:ui-monospace,monospace;font-size:clamp(1.8rem,6vw,3rem);font-weight:500}.error-banner,.disconnect{color:#ffc3ba;background:#392322;border:1px solid #a3534c;border-radius:10px;margin:18px 0;padding:13px 16px;font-size:.83rem;line-height:1.5}.disconnect{color:#edce94;background:#322b1e;border-color:#907541}.rules-dialog{background:var(--surface);color:inherit;border:1px solid var(--border);border-radius:var(--radius);width:calc(100% - 28px);max-width:620px;max-height:85dvh;padding:26px}.rules-dialog::backdrop{background:#0009}.dialog-heading{justify-content:space-between;align-items:center;gap:15px;display:flex}.dialog-heading h2{font-size:1.2rem;font-weight:550}.rules-dialog ol{color:var(--muted);padding-left:22px;font-size:.87rem;line-height:1.6}.rules-dialog li{padding:6px 0}.rules-dialog p{color:var(--muted);font-size:.78rem;line-height:1.6}@media (width<=650px){.shell{padding:0 16px 24px}.app-header{height:76px}.header-actions{gap:3px}.header-actions>.quiet{padding:8px;font-size:.73rem}.brand{gap:8px;font-size:.85rem}.intro{padding:40px 0 28px}.intro h1{font-size:2rem}.mode-grid{grid-template-columns:1fr;gap:14px}.mode-card{padding:23px}.mode-card p{min-height:0;margin-bottom:22px}.hero-pieces{gap:12px}.hero-pieces img{width:56px;height:56px}.game-layout{margin-top:26px}.match-status{flex-direction:column;gap:8px}.match-status h1{font-size:1.35rem}.connection{font-size:.7rem}.board-wrap{--axis-size:14px;border-radius:12px;gap:3px;padding:5px}.board{gap:2px}.cell{border-radius:4px}.choice-button{gap:4px;padding:9px;font-size:.75rem}.choice-button img{width:28px;height:28px}.phase-controls{gap:7px}.join-row input{font-size:.85rem}.join-row button{font-size:.75rem}.match-footer{padding-top:9px}.waiting-card{padding:34px 18px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.round-notice{text-align:center;color:var(--accent);padding-top:16px;font-size:.8rem}.cell.recent img{animation:.18s ease-out arrive}@keyframes arrive{0%{opacity:.65;transform:scale(.87)}to{opacity:1;transform:scale(1)}}.board-wrap{position:relative}.renderer-error{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;font-size:.85rem;display:flex;position:absolute;inset:0}.board-wrap.is-three{aspect-ratio:7/6;box-shadow:none;background:0 0;border:0;border-radius:0;padding:0;display:block;overflow:visible}.is-three .board{z-index:1;box-shadow:none;pointer-events:none;background:0 0;border:0;padding:0;display:block;position:absolute;inset:0}.is-three .cell{aspect-ratio:auto;pointer-events:auto;border:0;border-radius:0;min-height:0;padding:0;position:absolute;box-shadow:none!important;background:0 0!important}.is-three .cell img,.is-three .cell .move-dot,.is-three .captured-flag,.is-three .cell:after{display:none}.is-three .cell:focus-visible{background:#eef5ff33!important}.piece-art[data-team]{--piece-team:var(--team-blue);border:2px solid var(--piece-team);background:#fffdf64d;border-radius:9px;padding:1px;box-shadow:0 2px 3px #25361526}.piece-art[data-team=red]{--piece-team:var(--team-red)}.cell.flagCaptured{box-shadow:inset 0 0 0 3px #b6ce8e}.captured-flag{opacity:.8;background:50%/contain no-repeat;width:55%;height:55%;position:absolute;top:4%;right:3%}.cell.flagCaptured img{width:85%;height:85%;transform:translate(-6%,7%)}.board-overlay{z-index:5;border-radius:inherit;background:0 0;justify-content:center;align-items:center;padding:12px;display:flex;position:absolute;inset:0}.board-dialog{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:14px;width:min(470px,100%);max-height:100%;padding:25px 20px;overflow-y:auto;box-shadow:0 12px 40px #0005}.board-dialog h2{font-size:clamp(1rem,3vw,1.3rem);font-weight:550}.board-dialog>p{color:var(--muted);margin-top:12px;font-size:.8rem;line-height:1.5}.choice-actions{justify-content:center;gap:10px;margin-top:20px;display:flex}.choice-actions .choice-button{flex-direction:column;flex:1;min-width:0;padding:12px 5px}.choice-actions .choice-button img{width:48px;height:48px}.board-dialog .submitted{justify-content:center}.battle-pieces{justify-content:space-around;gap:30px;margin-top:20px;display:flex;position:relative}.battle-pieces figure{flex:1;min-width:0;margin:0}.battle-pieces img{aspect-ratio:1;object-fit:contain;width:min(95px,100%)}.battle-pieces figcaption{color:var(--muted);margin-top:10px;font-size:.8rem}.battle-versus{color:var(--muted);font-size:1.5rem;position:absolute;top:30px;left:50%;transform:translate(-50%)}.fighting-pieces{justify-content:center;gap:18px;margin-top:12px;display:flex}.fighting-pieces img{object-fit:contain;width:42px;height:42px}.sound-toggle{min-width:36px;padding-inline:8px;font-size:1.2rem}.sound-toggle[aria-pressed=true]{color:var(--accent)}@media (width<=650px){.board-dialog{padding:14px 12px}.board-dialog>p{margin-top:8px;font-size:.72rem}.choice-actions{gap:6px;margin-top:12px}.choice-actions .choice-button{padding:8px 3px}.choice-actions .choice-button img{width:32px;height:32px}.fighting-pieces{margin-top:8px}.fighting-pieces img{width:32px;height:32px}}.board-files,.board-ranks{color:#4f331c;text-shadow:0 1px #ffe6be80;-webkit-user-select:none;user-select:none;place-items:center;gap:3px;font-size:.65rem;font-weight:650;line-height:1;display:grid}.board-files{grid-column:2;grid-template-columns:repeat(7,minmax(0,1fr));padding-inline:3px}.board-ranks{grid-row:2;grid-template-rows:repeat(6,minmax(0,1fr));padding-block:3px}.top-axis{grid-row:1}.bottom-axis{grid-row:3}.left-axis{grid-column:1}.right-axis{grid-column:3}.history-entry{text-align:left;width:100%;font-size:inherit;background:0 0;border-radius:5px;padding:10px 4px;display:block}.history-entry:hover,.history-entry.active{background:var(--raised)}.cell.historyFrom:after,.cell.historyTo:after{content:"";z-index:4;border-radius:inherit;pointer-events:none;background:#f4c88d15;border:2px dashed #f4c88d;position:absolute;inset:3px}.cell.historyTo:after{background:#f4c88d22;border:3px solid #f4c88d}@media (width<=650px){.board-files,.board-ranks{gap:2px;font-size:.6rem}}.invitation-link{text-align:left;width:min(480px,100%)}.invitation-row{gap:8px;display:flex}.invitation-row input{flex:1;min-width:0;font-size:.75rem}.invitation-row button{white-space:nowrap;padding-inline:12px}.playing-match{--sidebar-width:clamp(220px, 16vw, 280px);grid-template-rows:72px minmax(0,1fr);gap:12px;width:100%;height:100dvh;padding:0 clamp(12px,2vw,36px) 12px;display:grid;overflow:hidden}.playing-match .app-header{height:auto;min-height:0}.floating-layout{grid-template-columns:minmax(0, 1fr) var(--sidebar-width);align-items:stretch;gap:24px;width:100%;max-width:none;min-height:0;margin:0}.floating-layout .board-column{grid-column:1;min-height:0}.floating-layout .board-wrap{aspect-ratio:auto;width:100%;height:100%;min-height:0}.floating-layout .match-sidebar{grid-column:2;justify-content:center;align-self:stretch;gap:16px;min-height:0;overflow:hidden}.floating-layout .match-status,.floating-layout .phase-controls,.floating-layout .match-footer{flex-shrink:0}.floating-layout .phase-controls{justify-content:flex-start}.floating-layout .move-history{flex-direction:column;flex:0 45%;min-height:0;padding-top:16px;display:flex}.floating-layout .history-heading{flex-shrink:0}.floating-layout .history-list{flex:1;min-height:0;max-height:none;margin-top:10px}@media (width>=1600px){.floating-layout{grid-template-columns:var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width)}.floating-layout .board-column{grid-column:2}.floating-layout .match-sidebar{grid-column:3}}@media (width<=850px){.playing-match{grid-template-rows:64px minmax(0,1fr);gap:8px;padding-bottom:8px}.floating-layout{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:8px}.floating-layout .board-column{grid-area:1/1}.floating-layout .match-sidebar{border-top:1px solid var(--border);grid-area:2/1;grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:8px 16px;height:clamp(160px,28dvh,230px);padding-top:12px;display:grid;overflow-y:auto}.floating-layout .match-status{grid-area:1/1/span 2;gap:5px}.floating-layout .match-status h1{margin:5px 0;font-size:1.1rem}.floating-layout .match-status p{font-size:.75rem;line-height:1.45}.floating-layout .phase-controls{grid-area:1/2;gap:6px}.floating-layout .phase-controls button{min-height:36px;padding:8px 10px;font-size:.75rem}.floating-layout .match-footer{flex-wrap:wrap;grid-area:2/2;padding:0}.floating-layout .match-footer button{min-height:32px;padding:6px 8px}.floating-layout .move-history{grid-area:3/1/auto/-1;height:100%;padding-top:8px}.floating-layout .history-empty{margin-top:6px;font-size:.7rem}.floating-layout .error-banner,.floating-layout .disconnect{grid-column:1/-1}}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.visibility-legend{color:var(--muted);flex-shrink:0;align-items:flex-start;gap:8px;font-size:.72rem;line-height:1.5;display:flex}.cloth-swatch{background:#3a4e65;border:1px solid #91a9c0;border-radius:4px 4px 2px 2px;flex-shrink:0;width:13px;height:16px;margin-top:1px}@media (width<=850px){.floating-layout .visibility-legend{grid-area:3/1;font-size:.65rem}.floating-layout .move-history{grid-column:2}}
