:root{font-family:"Helvetica Neue",Arial,sans-serif;color:#24372e;background:#f7f5ef;font-synthesis:none;--paper:#fffefb;--ink:#24372e;--muted:#626c64;--orange:#b94620;--orange-bright:#ed693b;--green:#26745e;--border:#dedfd5;--purple:#6253a5}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--purple);outline-offset:5px}a{color:inherit}button{color:inherit}button,fieldset{border:0}button{transition:transform .14s,background .14s}button:not(:disabled):active{transform:translateY(2px)}.site-shell{max-width:1184px;margin:auto;padding:0 40px}.site-header{height:116px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:13px;font-size:23px;font-weight:800;text-decoration:none;letter-spacing:-1px}.brand-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--orange-bright);color:white;transform:rotate(-7deg);font-size:26px;box-shadow:0 3px 0 #c64820}.header-note{font-size:13px;color:var(--muted)}main{min-height:calc(100vh - 206px);padding:54px 0 60px}footer{height:90px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);color:var(--muted);font-size:12px;gap:20px}.footer-mark{font-size:18px;font-weight:bold;letter-spacing:1px;white-space:nowrap}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--orange);font-size:11px;letter-spacing:2px;font-weight:800;margin:0 0 18px}.eyebrow:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}h1,h2,p{margin:0}h1{font-size:clamp(32px,5vw,54px);line-height:1.12;letter-spacing:-2px}h2{font-size:22px;letter-spacing:-.6px}.subheading{font-size:16px;line-height:1.65;color:var(--muted);margin-top:16px}.welcome{display:grid;grid-template-columns:1.2fr 1fr;gap:62px;align-items:center;margin-bottom:42px}.intro-art{height:170px;position:relative;display:flex;align-items:center;justify-content:center;padding-bottom:25px}.intro-art:before{content:'';position:absolute;inset:-10px 5px 0;background:#edeedf;border-radius:50%;transform:rotate(-8deg)}.demo-tile{width:62px;height:76px;border:2px solid var(--green);border-radius:15px;background:var(--green);color:white;font-size:28px;font-weight:800;display:grid;place-items:center;position:relative;box-shadow:0 6px 0 #18523f;transform:rotate(-10deg);margin-right:8px}.demo-tile:nth-child(2){transform:rotate(5deg) translateY(-8px);background-color:var(--purple);border-color:var(--purple);background-image:repeating-linear-gradient(135deg,transparent 0 6px,#ffffff24 6px 9px);box-shadow:0 6px 0 #433777}.demo-tile:nth-child(3){background:#fff5ec;border:2px dashed #bd4b29;color:var(--orange);transform:rotate(13deg);box-shadow:0 6px 0 #e4c2ad}.demo-tile small{position:absolute;bottom:8px;font-size:7px;letter-spacing:.5px}.demo-caption{position:absolute;bottom:0;font-size:12px;color:var(--muted);transform:rotate(-3deg)}.choices{display:grid;grid-template-columns:1fr 1fr;gap:22px}.choice{display:flex;text-align:left;align-items:center;gap:24px;padding:32px;border:1px solid var(--border);border-radius:24px;background:var(--paper);min-height:172px;box-shadow:0 5px 0 #e8e7df}.choice:hover{border-color:var(--green);background:#f8fcf6;transform:translateY(-3px)}.choice:last-child:hover{border-color:var(--purple);background:#faf8ff}.choice-icon{flex-shrink:0;width:72px;height:72px;border-radius:22px;background:#e8efe0;color:var(--green);display:grid;place-items:center}.choice:last-child .choice-icon{background:#eeebfa;color:var(--purple)}svg{width:34px;height:34px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.choice-title{font-size:25px;letter-spacing:-1px;font-weight:bold;display:block;margin-bottom:8px}.choice-description{display:block;font-size:13px;line-height:1.6;color:var(--muted);max-width:230px}.choice-arrow{margin-left:auto;font-size:24px;color:var(--muted)}.rules{margin-top:56px}.rules-heading{display:flex;align-items:center;gap:16px;margin-bottom:26px}.rules-heading h2{font-size:17px;white-space:nowrap}.rules-heading:after{content:'';height:1px;background:var(--border);flex:1}.rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}.rule{display:flex;gap:12px}.rule-number{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#e9e9df;display:grid;place-items:center;font-weight:bold;font-size:12px}.rule h3{font-size:14px;margin:5px 0 9px}.rule p{font-size:12px;line-height:1.7;color:var(--muted)}.topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px}.text-button{border:0;background:transparent;padding:10px 0;min-height:44px;font-size:14px;font-weight:bold;display:inline-flex;align-items:center;gap:9px}.text-button:hover{text-decoration:underline}.setup-wrap{max-width:760px;margin:auto}.setup-wrap h1{font-size:40px}.panel{background:var(--paper);border:1px solid var(--border);border-radius:24px;padding:32px}.settings-form{margin-top:30px}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:28px}fieldset{padding:0;margin:0 0 28px;min-width:0}legend{font-weight:bold;font-size:14px;margin-bottom:12px}.segments{display:flex;gap:8px}.segment{flex:1;position:relative}.segment input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.segment span{display:grid;place-items:center;min-height:52px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;font-size:14px;background:#f7f7f1}.segment input:checked+span{border-color:var(--green);background:#e6efe5;color:#1d6049;box-shadow:inset 0 0 0 1px var(--green);font-weight:bold}.segment input:focus-visible+span{outline:3px solid var(--purple);outline-offset:3px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:52px;border-radius:13px;padding:14px 24px;font-weight:bold;font-size:15px}.primary{background:var(--ink);color:white}.primary:hover:not(:disabled){background:#3a5444}.secondary{background:#f4f4eb;border:1px solid #d7dbce}.secondary:hover:not(:disabled){background:#e8ecdf}.primary:disabled,.secondary:disabled{opacity:.5}.wide{width:100%}.form-note{font-size:12px;line-height:1.6;color:var(--muted);margin-top:15px;text-align:center}.game-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.game-heading h1{font-size:38px}.game-heading .eyebrow{margin-bottom:12px}.settings-badge{padding:10px 14px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:var(--muted);white-space:nowrap}.game-panel{padding:32px 30px 26px}.turn-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.turn-title{font-size:22px;font-weight:bold;letter-spacing:-.5px}.turn-hint{color:var(--muted);font-size:13px;margin-top:7px}.legend{display:flex;gap:18px}.player{display:flex;align-items:center;gap:7px;font-size:12px}.swatch{width:17px;height:17px;border-radius:5px;background:var(--green);border:1px solid #1f624d}.swatch.player-1{background-color:var(--purple);border-color:#51438c;background-image:repeating-linear-gradient(135deg,transparent 0 3px,#ffffff88 3px 5px)}.counter-block{text-align:center;margin:30px 0 22px}.counter-label{font-size:12px;color:var(--muted)}.counter-value{font-size:80px;font-weight:bold;line-height:1.1;letter-spacing:-5px;font-variant-numeric:tabular-nums}.counter-of{font-size:16px;color:var(--muted);margin-left:8px;letter-spacing:0}.board-scroll{overflow-x:auto;scrollbar-width:thin;padding:6px 0 14px;scroll-behavior:smooth}.board{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--target),minmax(29px,1fr));gap:5px;min-width:calc(var(--target) * 34px - 5px)}.cell{height:54px;background:#f0f1e9;border:1px solid #d8ddd1;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:bold;color:#65705e;position:relative;transition:background .2s}.cell.player-0{background:var(--green);border-color:var(--green);color:white}.cell.player-1{background-color:var(--purple);border-color:var(--purple);color:white;background-image:repeating-linear-gradient(135deg,transparent 0 5px,#ffffff22 5px 8px)}.cell.forbidden{border:2px dashed var(--orange);background:#fff0e5;color:#a63916}.cell.forbidden:after{content:'×';position:absolute;top:0;right:3px;font-size:11px}.cell.forbidden.player-0{background:var(--green);color:white}.cell.forbidden.player-1{background-color:var(--purple);color:white}.board-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-top:6px}.forbidden-label{color:var(--orange);font-weight:bold}.move-area{margin-top:30px;text-align:center;border-top:1px solid #e8e9e0;padding-top:25px}.move-label{font-size:13px;color:var(--muted);margin-bottom:13px}.move-buttons{display:flex;justify-content:center;gap:12px}.move-button{width:108px;min-height:77px;border-radius:17px;background:var(--ink);color:white;font-size:32px;letter-spacing:-1px;font-weight:bold;box-shadow:0 4px 0 #14231b}.move-button:hover:not(:disabled){background:#3c5d48;transform:translateY(-2px)}.move-button:disabled{background:#e8eae2;box-shadow:0 3px 0 #dbded4;color:#717a6d;opacity:.7}.keyboard-note{color:var(--muted);font-size:11px;margin-top:17px}.game-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.last-move{font-size:12px;color:var(--muted)}.undo-box{text-align:right}.undo-box small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.undo-box button{min-height:44px}.result{background:#eef1e2;border:1px solid #d8dfc8;border-radius:18px;padding:25px;text-align:center;margin-top:24px}.result h2{font-size:25px}.result p{font-size:13px;color:var(--muted);margin-top:10px}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}.invite{margin-top:24px;background:#f0eee5;border:1px solid #dddccf;border-radius:18px;padding:24px}.invite h2{font-size:18px}.invite p{font-size:13px;color:var(--muted);line-height:1.65;margin-top:8px}.link-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.link-row input{flex:1;min-width:150px;min-height:48px;border:1px solid #c9cfc0;border-radius:10px;background:white;padding:12px;color:var(--muted);font-size:12px}.network{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:#efeee4;border-radius:13px;margin-bottom:20px;font-size:13px;line-height:1.6}.network.connected{background:#e7efe3;color:#25583d}.network .secondary{min-height:42px;padding:9px 13px;font-size:12px}.network-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:8px}.notice{font-size:13px;color:#9a3a1b;line-height:1.6;margin-top:14px}.loading-panel{text-align:center;padding:50px 25px}.history{font-size:12px;color:var(--muted);margin-top:20px}.history summary{cursor:pointer;padding:12px 0;min-height:44px}.history ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.history li{background:#eef0e5;border-radius:6px;padding:7px 10px}.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}[hidden]{display:none!important}
@media(min-width:1050px){.board[data-target='31']{gap:3px;grid-template-columns:repeat(31,minmax(24px,1fr));min-width:0}.board[data-target='31'] .cell{font-size:10px}}
@media(max-width:800px){.site-shell{padding:0 24px}.welcome{gap:20px;grid-template-columns:1.1fr 1fr}.choice{padding:23px;gap:15px}.choice-icon{width:50px;height:58px;border-radius:17px}.choice-title{font-size:21px}.choice-arrow{display:none}.rule-grid{gap:20px}.rule{gap:8px}.legend{gap:10px}.game-panel{padding:24px 20px}.settings-badge{font-size:11px}.demo-tile{width:50px;height:65px}.game-heading h1{font-size:30px}}
@media(max-width:580px){.site-shell{padding:0 20px}.site-header{height:86px}.brand{font-size:21px}.brand-icon{width:40px;height:40px;font-size:23px;border-radius:12px}.header-note{font-size:10px;max-width:90px;line-height:1.5;text-align:right}main{padding:35px 0 40px;min-height:calc(100vh - 172px)}.welcome{display:block;margin-bottom:26px}.intro-art{display:none}h1{font-size:42px}.eyebrow{font-size:10px;letter-spacing:1.4px}.subheading{font-size:14px;margin-top:13px}.choices{grid-template-columns:1fr;gap:16px}.choice{min-height:130px;padding:23px;gap:18px;border-radius:20px}.choice-icon{width:56px;height:64px}.choice-title{font-size:23px}.choice-description{font-size:12px}.choice-arrow{display:block;font-size:21px}.rules{margin-top:38px}.rules-heading h2{font-size:15px}.rule-grid{grid-template-columns:1fr;gap:17px}.rule h3{margin:4px 0 5px}.rule p{font-size:12px}.rules-heading{margin-bottom:21px}.rule-number{margin-right:4px}.setup-wrap h1{font-size:32px}.panel{padding:24px 20px;border-radius:20px}.settings-row{display:block}.segment span{font-size:13px;padding:10px 8px}.settings-form{margin-top:25px}.game-heading{display:block}.game-heading h1{font-size:29px;letter-spacing:-1px}.settings-badge{display:inline-block;margin-top:16px}.turn-row{display:block}.legend{margin-top:17px}.turn-title{font-size:22px}.counter-block{margin:25px 0 16px}.counter-value{font-size:69px}.game-panel{padding:24px 16px}.move-button{width:82px;min-height:70px;font-size:29px}.move-buttons{gap:9px}.move-buttons.four .move-button{width:60px;min-height:65px;font-size:25px}.game-bottom{align-items:flex-start}.undo-box small{max-width:120px;line-height:1.5}.last-move{max-width:140px;line-height:1.6}.board-caption{font-size:10px}.network{padding:14px;font-size:12px}.invite{padding:20px 16px}.link-row input{flex-basis:100%}.link-row button{flex:1;padding:12px 14px;font-size:13px}footer{font-size:10px;height:86px;line-height:1.5}.footer-mark{font-size:14px}.result{padding:22px 14px}.result h2{font-size:22px}.result-actions .primary{width:100%}.result-actions .secondary{width:100%}}
.tutorial-panel{margin-top:30px}.tutorial-number{display:block;color:var(--orange);font-size:13px;font-weight:bold;letter-spacing:2px;margin-bottom:14px}.tutorial-illustration{display:flex;justify-content:center;align-items:center;gap:12px;padding:40px 0}.tutorial-illustration span{display:grid;place-items:center;width:80px;height:86px;border:1px solid var(--border);background:#eff1e8;border-radius:16px;font-size:30px;font-weight:bold}.tutorial-illustration b{font-size:18px;color:var(--muted)}.tutorial-illustration .tutorial-filled{background:var(--green);color:white}.tutorial-illustration .tutorial-striped{background-color:var(--purple);color:white;background-image:repeating-linear-gradient(135deg,transparent 0 7px,#ffffff22 7px 10px)}.tutorial-illustration .tutorial-forbidden{background:#fff0e5;border:2px dashed var(--orange);color:var(--orange)}.tutorial-nav{display:flex;justify-content:space-between;gap:15px;margin-top:24px}.tutorial-panel .move-label{line-height:1.7}.rules-heading .text-button{white-space:nowrap;margin-left:auto;font-size:12px}.rules-heading:after{display:none}.rules-heading{justify-content:space-between}
@media(max-width:580px){.tutorial-illustration{gap:9px}.tutorial-illustration span{width:60px;height:70px;font-size:23px}.tutorial-illustration b{font-size:14px}.rules-heading{gap:12px}.rules-heading h2{white-space:normal}.rules-heading .text-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important;animation:none!important}}

h1[tabindex="-1"]:focus{outline:none}.result h2:focus,.move-label[tabindex="-1"]:focus{outline:2px solid var(--green);outline-offset:5px}
