:root{--paper:#efe7d2;--card:#f8f3e4;--ink:#26301f;--muted:#6b705c;--line:#cfc5a5;--meadow:#cfdc9c;--meadow-alt:#c6d592;--wood:#4b3524;--accent:#3f6b3a;--field:#fffdf6;--hover:#26301f12;--chip:#26301f1a;--grid:#26301f24;--danger:#b3261e;--claim-base:#efe7d2;--meadow-hover:#e4ecb9;--pip-locked:#26301f;--p0:#c0472b;--p1:#2c6590;--p2:#c98a12;--p3:#7b4381;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}:root[data-theme=dark]{--paper:#141812;--card:#1e241b;--ink:#e9e5d3;--muted:#9aa18b;--line:#3a4333;--meadow:#3c5230;--meadow-alt:#364b2b;--wood:#e0c08e;--accent:#93c683;--field:#262d22;--hover:#e9e5d314;--chip:#e9e5d321;--grid:#00000038;--danger:#f0776b;--claim-base:#1a1f17;--meadow-hover:#4b6540;--pip-locked:#10140e;--p0:#e2633f;--p1:#4e9ad3;--p2:#e6ab2c;--p3:#b46fbd;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;margin:0;font-size:16px;line-height:1.45;transition:background-color .2s,color .2s}.toolbar{justify-content:flex-end;gap:.25rem;max-width:1100px;margin:0 auto;padding:.4rem .75rem 0;display:flex}.toolbar button{min-height:36px;padding:0 .7rem;font-size:.85rem}h1,h2{font-family:var(--serif);letter-spacing:-.01em;margin:0}h2{font-size:1.25rem}button,input{font:inherit;color:inherit}button{border:1.5px solid var(--ink);cursor:pointer;background:0 0;border-radius:8px;min-height:44px;padding:0 1rem;font-weight:600;transition:transform .12s ease-out,background-color .15s}button:hover:not(:disabled){background:var(--hover)}button:active:not(:disabled){transform:scale(.97)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--ink);color:var(--paper)}button.primary:hover:not(:disabled){background:color-mix(in srgb, var(--ink) 86%, var(--paper))}button.quiet{color:var(--muted);border-color:#0000;font-weight:500}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}input{border:1.5px solid var(--line);background:var(--field);border-radius:8px;width:100%;min-height:44px;margin-top:.25rem;padding:0 .75rem}input.code{letter-spacing:.3em;text-transform:uppercase;font-family:ui-monospace,Consolas,monospace;font-size:1.2rem}label{color:var(--muted);font-size:.85rem;font-weight:600;display:block}em{background:var(--chip);text-transform:uppercase;letter-spacing:.05em;border-radius:99px;margin-left:.5rem;padding:.05rem .4rem;font-size:.7rem;font-style:normal;font-weight:600}.hint{color:var(--muted);margin:0;font-size:.9rem}.swatch{border:1.5px solid var(--ink);background:var(--owner,transparent);border-radius:50%;flex:none;width:14px;height:14px}.card{border:1.5px solid var(--line);background:var(--card);border-radius:14px;flex-direction:column;gap:.9rem;padding:1.25rem;display:flex}.home{flex-direction:column;gap:1.25rem;max-width:460px;margin:0 auto;padding:1.5rem 1rem 3rem;display:flex}.masthead h1{font-size:clamp(2.8rem,12vw,4rem);line-height:1}.masthead p{color:var(--muted);margin:.6rem 0 0}.join{grid-template-columns:1fr auto;align-items:end;gap:.6rem;display:grid}.or{color:var(--muted);align-items:center;gap:.75rem;font-size:.85rem;display:flex}.or:before,.or:after{content:"";background:var(--line);flex:1;height:1px}.rules{gap:.5rem;margin:0;padding-left:1.2rem;font-size:.93rem;display:grid}.roomcode{grid-template-columns:1fr auto;align-items:center;column-gap:1rem;display:grid}.roomcode span{color:var(--muted);grid-column:1/-1;font-size:.85rem;font-weight:600}.roomcode strong{letter-spacing:.2em;font-family:ui-monospace,Consolas,monospace;font-size:2.4rem}.seats,.players,.results ol{gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.seats li{border:1.5px solid var(--line);background:var(--field);border-radius:8px;align-items:center;gap:.6rem;min-height:44px;padding:0 .75rem;display:flex}.seats li.empty{color:var(--muted);background:0 0;border-style:dashed}.setting{border:0;margin:0;padding:0}.setting legend{color:var(--muted);margin-bottom:.35rem;padding:0;font-size:.85rem;font-weight:600}.segmented{grid-auto-columns:1fr;grid-auto-flow:column;gap:.4rem;display:grid}.segmented button{border-color:var(--line);font-weight:500}.segmented button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--paper);opacity:1;font-weight:600}button.danger{color:#fff;background:#b3261e;border-color:#b3261e}button.danger:hover:not(:disabled){background:#9a2019}.seats .addbot{border:1.5px solid var(--line);background:var(--field);min-height:34px;color:var(--ink);font:inherit;cursor:pointer;border-radius:8px;flex:none;padding:0 .5rem;font-size:.85rem}.seats .remove{flex:none;width:34px;min-height:34px;padding:0;font-size:1.2rem;line-height:1}.charges{color:var(--muted);flex:none;font-size:.8rem}.game{grid-template-columns:minmax(260px,340px) minmax(0,1fr);align-items:start;gap:1.5rem;max-width:1100px;margin:0 auto;padding:.5rem 1.25rem 1.25rem;display:grid}.side{flex-direction:column;gap:1rem;display:flex}.topbar{justify-content:space-between;align-items:baseline;display:flex}.topbar h1{font-size:2rem}.tag{color:var(--muted);font-family:ui-monospace,Consolas,monospace}.hud{flex-direction:column;gap:.75rem;display:flex}.status{justify-content:space-between;align-items:center;gap:1rem;min-height:52px;display:flex}.status strong{font-family:var(--serif);font-size:1.3rem}.status small{color:var(--muted);display:block}.clock{border:1.5px solid var(--ink);font-variant-numeric:tabular-nums;text-align:center;border-radius:8px;flex:none;min-width:3rem;padding:.2rem .5rem;font-size:1.2rem;font-weight:700}.clock.low{border-color:var(--danger);color:var(--danger)}.players li,.results li{border:1.5px solid var(--line);background:var(--card);border-radius:8px;align-items:center;gap:.6rem;padding:.55rem .75rem;transition:border-color .2s,box-shadow .2s;display:flex}.players li.active{border-color:var(--owner);box-shadow:inset 4px 0 0 var(--owner)}.players li.away .who{color:var(--muted)}.who{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.score{min-width:2ch;font-family:var(--serif);font-variant-numeric:tabular-nums;text-align:right;font-size:1.4rem;font-weight:700}.links{justify-content:space-between;display:flex}.results li span:last-child{color:var(--muted);font-size:.85rem}.board-wrap{flex-direction:column;gap:.75rem;width:100%;max-width:min(680px,100vh - 190px);margin:0 auto;display:flex}.board{touch-action:manipulation;-webkit-user-select:none;user-select:none;width:100%;display:block}.frame{fill:none;stroke:var(--wood);stroke-width:1.6px;stroke-linejoin:round}.cell{fill:var(--meadow);stroke:var(--grid);stroke-width:.15px;transition:fill .35s ease-out}.cell.alt{fill:var(--meadow-alt)}.cell.claimed{fill:color-mix(in srgb, var(--owner) 55%, var(--claim-base))}.cell.claimed.alt{fill:color-mix(in srgb, var(--owner) 62%, var(--claim-base))}.cell.active{cursor:pointer}.reach{fill:color-mix(in srgb, var(--owner) 70%, white);fill-opacity:.55;stroke:color-mix(in srgb, var(--owner) 70%, white);stroke-width:.55px;pointer-events:none;animation:.16s ease-out both reach-in}.reach.peek{fill-opacity:.3;stroke-dasharray:1.4 1}.reach.chosen{fill-opacity:.85;stroke:var(--ink);stroke-width:.6px}@keyframes reach-in{0%{opacity:0}}.fence{stroke:var(--wood);stroke-width:1.5px;stroke-linecap:round;pointer-events:none}.fence-glow{stroke:var(--owner);stroke-width:4px;stroke-linecap:round;opacity:.7;pointer-events:none;animation:.6s ease-out glow-in}@keyframes glow-in{0%{stroke-width:8px;opacity:0}}.trail{pointer-events:none;animation:.3s ease-out both reach-in}.trail polyline{fill:none;stroke:var(--owner);stroke-width:1.1px;stroke-dasharray:1.7 1.3;stroke-linecap:round;stroke-linejoin:round}.trail polygon{fill:var(--owner)}.trail .ghost{fill:var(--owner);fill-opacity:.18;stroke:var(--owner);stroke-width:.55px;stroke-dasharray:1.2 .9}.last-ring{fill:none;stroke:var(--owner);stroke-width:.8px}.cursor{pointer-events:none;transition:transform 90ms linear}.cursor path{fill:var(--owner);stroke:#fff;stroke-width:.4px;stroke-linejoin:round}.cursor text{font:600 2.5px var(--sans);fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:.8px;stroke-linejoin:round}.fence-glow.gone{stroke-width:2.2px;stroke-dasharray:.2 3.2;opacity:.95}.buildable.wreck .mark{stroke:var(--danger);stroke-width:2.3px;stroke-dasharray:1.6 1.2;opacity:.95}.buildable.wreck.chosen .mark{stroke:var(--danger);stroke-width:3.2px;stroke-dasharray:none}.fence.fresh{animation:.28s ease-out drop}@keyframes drop{0%{opacity:0;stroke-width:3.2px}}.herder{transition:transform .24s cubic-bezier(.2,.8,.2,1)}.herder.mine{cursor:pointer}.herder .body{fill:var(--owner);stroke:var(--pip-locked);stroke-width:.5px}.herder .head{fill:#ffffff8c}.herder.locked .head{fill:var(--pip-locked)}.herder .halo{fill:none;stroke:var(--ink);stroke-width:.45px;stroke-dasharray:1.2 1;opacity:0;transition:opacity .15s}.herder.mine .halo{opacity:.45}.herder.selected .halo{opacity:1;stroke-dasharray:none;stroke-width:.7px}.buildable{cursor:pointer}.buildable .mark{stroke:var(--ink);stroke-width:1px;stroke-dasharray:1.4 1.1;opacity:.55}.buildable .hit{stroke:#0000;stroke-width:4.5px;stroke-linecap:round}.buildable.chosen .mark{stroke:var(--owner);stroke-width:1.9px;stroke-dasharray:none;stroke-linecap:round;opacity:1}.actions{flex-direction:column;gap:.6rem;display:flex}.buttons{flex-wrap:wrap;gap:.5rem;display:flex}.banner,.toast{z-index:10;border-radius:8px;padding:.6rem 1rem;font-size:.9rem;font-weight:600;position:fixed;left:50%;transform:translate(-50%)}.banner{background:var(--ink);color:var(--paper);top:.75rem}.toast{color:#fff;background:#b3261e;max-width:calc(100vw - 2rem);bottom:1rem}@media (width>=761px){.actions{min-height:84px}}@media (hover:hover){.cell.active:hover{fill:var(--meadow-hover)}.buildable:hover .mark{opacity:1}}@media (width<=760px){.game{grid-template-columns:1fr;gap:1rem;padding:.75rem}.board-wrap{order:-1;max-width:100%}.topbar{display:none}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
