:root{--paper:#f8f5ed;--ink:#173e37;--muted:#62746a;--coral:#c34f33;--teal:#167b80;--line:#dedfd3;--yellow:#f6ce69;--white:#fffdf8;font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button,a,input{touch-action:manipulation}button{min-height:48px;border:1px solid transparent;border-radius:12px;padding:12px 20px;background:transparent;font-weight:700}button:hover{filter:brightness(.96)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--teal);outline-offset:5px}a{color:inherit}h1,h2,h3,p{margin:0}p{line-height:1.6}h1,h2{letter-spacing:-.055em;line-height:1.08}h1{font-size:clamp(3.4rem,7vw,6rem)}h2{font-size:clamp(2.2rem,4vw,3.5rem)}h3{font-size:1.25rem}.shell{max-width:1240px;margin:auto;padding:0 40px}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:108px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:2.3rem;font-weight:900;letter-spacing:-.08em;padding:5px 0}.brand-mark{width:38px;height:38px}.nav{display:flex;gap:9px;align-items:center}.nav button{font-size:.88rem}.help-icon{display:inline-grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;width:20px;height:20px;margin-right:8px}.hero{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:30px;padding:60px 0 30px}.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.17em;color:var(--muted);margin-bottom:22px}.hero h1{white-space:pre-line}.intro{font-size:1.12rem;max-width:390px;margin-top:25px;color:var(--muted)}.hero-art{position:relative;min-height:350px;display:grid;place-items:center}.hero-art:before{content:'';position:absolute;inset:18px 35px 25px;background:#eeeee2;border-radius:50%}.hero-art svg{position:relative;width:min(100%,430px);height:auto;overflow:visible}.art-note{position:absolute;bottom:2px;right:12%;font-size:.8rem;transform:rotate(-5deg);font-weight:bold}.modes{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0 30px}.mode-card{display:flex;align-items:center;gap:20px;text-align:left;padding:27px 30px;border:1px solid var(--line);background:var(--white);border-radius:20px;min-height:130px}.mode-card:first-child{background:var(--ink);color:var(--paper);border-color:var(--ink)}.mode-card .mode-icon{display:grid;place-items:center;width:56px;height:56px;background:#ffffff14;border-radius:16px;flex-shrink:0}.mode-card:nth-child(2) .mode-icon{background:#e8eee6}.mode-icon svg{width:30px;height:30px}.mode-title{display:block;font-size:1.35rem;letter-spacing:-.03em;margin-bottom:7px}.mode-description{display:block;font-size:.86rem;font-weight:400;opacity:.8;line-height:1.5}.arrow{margin-left:auto;font-size:1.5rem;font-weight:400}.rule-strip{display:flex;align-items:center;justify-content:center;gap:12px;font-size:.85rem;margin:32px 0;color:var(--muted)}.rule-strip strong{color:var(--ink)}.rule-strip svg{width:20px;height:20px;flex-shrink:0}.footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:23px 0;font-size:.72rem;color:var(--muted);margin-top:25px}.stats{display:flex;gap:20px}.stats span:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--coral);margin-right:8px}.primary{background:var(--ink);color:var(--paper)}.secondary{border-color:var(--line);background:var(--white)}.text-button{padding:10px 12px;text-decoration:underline;text-underline-offset:4px;font-size:.9rem}.resume-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #b9cbb5;border-radius:16px;padding:18px 24px;background:#eaf0e3;margin:20px 0}.resume-card p{font-size:.86rem;color:var(--muted)}.setup{max-width:700px;margin:50px auto 60px}.setup .intro{max-width:none;margin:15px 0 32px}.back-button{margin-bottom:25px;padding-left:0}.field-label{font-size:.92rem;font-weight:700;display:block;margin:25px 0 12px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border:0;padding:0;margin:0}.choice{position:relative;display:block;cursor:pointer;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--white);min-height:90px}.choice:has(input:checked){border:2px solid var(--ink);background:#e9eee2;padding:19px}.choice input{accent-color:var(--ink);margin:0 8px 0 0}.choice strong{font-size:.95rem}.choice small{display:block;font-size:.75rem;color:var(--muted);margin-top:9px;line-height:1.4}.choices.compact .choice{min-height:65px;padding:19px 15px}.choices.compact .choice:has(input:checked){padding:18px 14px}.note{font-size:.84rem;color:var(--muted);margin:22px 0;line-height:1.6}.setup .primary{width:100%;margin-top:12px}.game-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:45px;margin:36px 0}.game-sidebar{padding-top:25px}.game-sidebar h2{font-size:2.65rem;margin:12px 0 15px}.game-sidebar .eyebrow{margin-bottom:10px}.player-list{display:grid;gap:12px;margin:28px 0}.player-card{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:15px;padding:16px;background:var(--white)}.player-card.active{box-shadow:0 0 0 2px var(--ink)}.swatch{width:35px;border-top:5px solid var(--coral);flex-shrink:0}.swatch.player-1{border-color:var(--teal);border-top-style:dashed}.player-card small{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.move-pill{display:inline-block;padding:7px 12px;border-radius:20px;background:#eaece2;font-size:.78rem;font-weight:700}.board-panel{border:1px solid var(--line);border-radius:25px;background:var(--white);padding:10px 25px 20px;min-width:0}.board-container{max-width:570px;margin:auto}.sim-board{display:block;width:100%;height:auto;max-height:510px;overflow:visible}.board-edge{stroke-width:5;stroke-linecap:round;fill:none;pointer-events:none}.player-0{stroke:var(--coral)}.player-1{stroke:var(--teal);stroke-dasharray:10 9}.warning-edge{stroke:#bc8a13;stroke-width:4;stroke-dasharray:2 10;opacity:.85;fill:none;pointer-events:none}.triangle-fill{fill:#f3cb76;opacity:.32}.losing-edge{stroke-width:9;filter:drop-shadow(0 0 3px #ecb949)}.preview-edge{stroke:var(--ink);stroke-width:5;stroke-dasharray:5 8;opacity:.6;fill:none;pointer-events:none}.dot{cursor:pointer;outline:none}.dot .dot-circle{fill:var(--paper);stroke:var(--ink);stroke-width:3}.dot text{fill:var(--ink);font-size:16px;font-weight:700;text-anchor:middle;pointer-events:none}.dot:hover .dot-circle,.dot:focus-visible .dot-circle{fill:#e3ebd7;stroke-width:5}.dot.selected .dot-circle{fill:var(--ink)}.dot.selected text{fill:var(--white)}.dot[aria-disabled=true]{cursor:default}.board-actions{min-height:89px;text-align:center;border-top:1px solid var(--line);padding-top:15px}.board-actions p{font-size:.95rem;min-height:26px;margin-bottom:10px}.action-row{display:flex;justify-content:center;gap:10px}.keyboard-help{font-size:.72rem;text-align:center;color:var(--muted);margin-top:14px}.settings-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line)}.toggle{display:flex;gap:9px;align-items:center;font-size:.84rem;cursor:pointer;min-height:40px}.toggle input{width:20px;height:20px;accent-color:var(--ink)}.utility-row{display:flex;gap:6px;margin-top:12px}.utility-row button{padding:10px 13px}.help-note{font-size:.78rem;color:var(--muted);margin-top:13px}.message{font-size:.88rem;color:#8c3c23;background:#fff0df;border-radius:10px;padding:12px;margin:14px 0}.message:empty{display:none}.connection{background:#e9eee2;border-radius:14px;padding:16px;margin:18px 0;font-size:.86rem}.room-input{width:100%;min-height:46px;padding:10px;border:1px solid var(--line);border-radius:9px;font-size:.78rem;background:var(--white);color:var(--ink)}.room-controls{display:flex;gap:6px;margin-top:8px}.room-controls button{padding:9px 14px;font-size:.8rem}.result{background:#f6e7c4;border:1px solid #e7ce91;border-radius:16px;padding:18px;margin:18px 0}.result p{font-size:.88rem;margin-bottom:12px}.result .primary{width:100%}.tutorial-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 30px);border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);padding:0;box-shadow:0 25px 100px #173e3733}.tutorial-dialog::backdrop{background:#173e3766;backdrop-filter:blur(4px)}.tutorial-shell{padding:24px 30px}.tutorial-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.tutorial-header h2{font-size:1.4rem;letter-spacing:-.04em}.tutorial-progress{font-size:.76rem;color:var(--muted)}.tutorial-board{max-width:340px;margin:5px auto}.tutorial-board .sim-board{max-height:290px}.tutorial-copy{font-size:1.25rem;line-height:1.4;font-weight:700;text-align:center;min-height:57px}.tutorial-copy p{line-height:1.4}.tutorial-actions{display:flex;gap:8px;justify-content:space-between;margin-top:20px}.tutorial-actions button:last-child{background:var(--ink);color:var(--paper)}.tutorial-practice-actions{display:flex;gap:8px;justify-content:center;margin-top:10px}.tutorial-message{text-align:center;font-size:.85rem;margin-top:10px;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.shell{padding:0 24px}.hero{padding-top:40px;gap:0}.hero-art{min-height:290px}.hero h1{font-size:3.6rem}.mode-card{padding:23px 20px;gap:13px}.mode-title{font-size:1.12rem}.mode-card .mode-icon{width:42px;height:48px}.game-layout{grid-template-columns:230px minmax(0,1fr);gap:22px}.game-sidebar h2{font-size:2rem}.board-panel{padding:8px 15px 15px}.game-sidebar{padding-top:10px}.rule-strip{align-items:flex-start}.rule-strip span{max-width:530px}}
@media(max-width:600px){.shell{padding:0 20px}.topbar{min-height:80px}.brand{font-size:2rem}.nav button{padding:10px}.hero{grid-template-columns:1fr;padding:35px 0 0}.hero h1{font-size:3.7rem}.eyebrow{font-size:.65rem;margin-bottom:16px}.intro{font-size:1rem;max-width:320px;margin-top:20px}.hero-art{min-height:230px;max-width:300px;justify-self:center;margin-top:10px}.hero-art svg{max-height:245px}.hero-art:before{inset:10px 30px 12px}.art-note{font-size:.7rem;bottom:0}.modes{grid-template-columns:1fr;gap:12px;margin-top:24px}.mode-card{min-height:105px;padding:23px}.mode-title{font-size:1.2rem}.rule-strip{font-size:.78rem;margin:25px 0}.footer{font-size:.65rem;gap:10px}.stats{gap:10px}.stats span:last-child{display:none}.setup{margin-top:28px}.choices{gap:7px}.choice{padding:14px 9px}.choice:has(input:checked){padding:13px 8px}.choice strong{font-size:.85rem}.choice small{font-size:.7rem}.choices.compact .choice{padding:15px 8px}.choices.compact .choice:has(input:checked){padding:14px 7px}.choice input{margin-right:3px}.game-layout{display:flex;flex-direction:column;gap:18px;margin:22px 0}.game-sidebar{display:contents}.game-sidebar>.eyebrow{display:none}.game-sidebar h2{margin:0;font-size:2.1rem}.game-sidebar>.help-note{display:none}.player-list{grid-template-columns:1fr 1fr;gap:10px;margin:0}.player-card{padding:12px;gap:9px}.player-card small{font-size:.68rem}.swatch{width:23px}.move-pill{position:absolute;right:20px;margin-top:6px;font-size:.68rem}.board-panel{order:2}.settings-row{order:3;justify-content:center;padding:0;border:0}.utility-row{order:4;justify-content:center;margin:0}.connection,.result{order:1;margin:0}.game-sidebar>.message{order:5}.keyboard-help{font-size:.66rem}.board-container{max-width:400px}.sim-board{max-height:370px}.resume-card{padding:16px}.resume-card p{display:none}.tutorial-shell{padding:18px}.tutorial-header h2{font-size:1.2rem}.tutorial-copy{font-size:1.08rem}.tutorial-board{max-width:290px}.tutorial-actions{gap:4px}.tutorial-actions button{padding:10px 14px}.footer{margin-top:20px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}.mode-card:hover{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.dot .dot-target{fill:transparent;stroke:none}.tutorial-copy{margin-top:20px}.tutorial-dialog{overflow:auto}
