:root{font-family:Arial,Helvetica,sans-serif;color:#203f37;background:#f5f3ec;font-synthesis:none;--green:#174f46;--muted:#63736b;--orange:#b44f36;--line:#d9dfd5;--paper:#fffef9;--active:#e4eee5}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,input:focus-visible{outline:3px solid #b66b24;outline-offset:4px}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}button{color:inherit}#app{max-width:1220px;margin:auto;padding:0 48px}.header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{border:0;background:none;display:flex;align-items:center;gap:13px;font-size:17px;font-weight:700;padding:0}.brand-icon{display:grid;grid-template-columns:repeat(3,5px);gap:3px;background:var(--green);padding:12px;border-radius:13px}.brand-icon i{width:5px;height:5px;border-radius:1px;background:#f3f3dc}.brand-icon i:nth-child(5){background:#d4b874}.header-actions{display:flex;gap:10px}.btn{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:14px 21px;min-height:48px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:transform .15s,background .15s}.btn:hover:not(:disabled){background:#e7ede3;transform:translateY(-1px)}.btn.primary{background:var(--green);color:#fffef6;border-color:var(--green)}.btn.primary:hover:not(:disabled){background:#286557}.btn.quiet{background:transparent;border-color:transparent}.btn.full{width:100%}.icon{height:23px;width:23px;display:inline-block;flex-shrink:0}.hero{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;min-height:670px;padding:60px 0}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;display:flex;align-items:center;gap:9px;font-weight:700;color:#69765e}.eyebrow::before{content:'';width:6px;height:6px;border-radius:50%;background:#8ba472}h1{font-size:clamp(48px,5.7vw,76px);letter-spacing:-4px;line-height:1.03;font-weight:700;margin:25px 0}h1 span{display:block}h1 span:last-child{color:#7f9474}.subtitle{font-size:18px;line-height:1.65;color:var(--muted);max-width:390px;margin:0 0 36px}h2{font-size:30px;letter-spacing:-1px;margin:0 0 28px}h3{font-size:15px;font-weight:600;margin:0 0 18px}.choice{width:100%;display:flex;justify-content:flex-start;padding:19px 23px;margin:12px 0;font-size:16px;min-height:68px;border-radius:15px}.choice .arrow{margin-left:auto}.hero-actions{max-width:370px}.hero-actions>.quiet{margin-top:8px;padding-left:0}.hero-art{position:relative;padding:26px;background:#e7ecdf;border-radius:40px 40px 112px 40px;transform:rotate(-4deg);box-shadow:0 22px 50px -35px #34574266}.art-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;transform:rotate(4deg);padding:10px;background:#f9faf2;border-radius:23px;box-shadow:0 12px 30px #1b453715}.art-mini{display:grid;grid-template-columns:repeat(3,1fr);position:relative;aspect-ratio:1;background:#f4f4e9;border-radius:8px;overflow:hidden}.art-mini.claimed-art{background:#dce9da}.art-mini:nth-child(6){background:#edd8c6}.art-cell{display:flex;align-items:center;justify-content:center;border-right:1px solid #d3dccb;border-bottom:1px solid #d3dccb;position:relative}.art-cell:nth-child(3n){border-right:0}.art-cell:nth-child(n+7){border-bottom:0}.art-cell .mark{width:48%;height:48%;--stroke:3px}.art-big{position:absolute;inset:20%;display:flex}.art-big .mark{width:100%;height:100%;--stroke:9px}.art-badge{position:absolute;bottom:-17px;right:17px;padding:16px 22px;background:#fffef9;border:1px solid var(--line);box-shadow:0 6px 15px #294c3910;border-radius:14px;transform:rotate(4deg);font-size:21px;font-weight:bold;letter-spacing:6px}.mark{position:relative;display:block;width:54%;height:54%;flex:none;--stroke:5px;color:var(--green)}.mark.x::before,.mark.x::after{content:'';position:absolute;top:calc(50% - var(--stroke)/2);left:0;width:100%;height:var(--stroke);background:currentColor;border-radius:20px;transform:rotate(45deg)}.mark.x::after{transform:rotate(-45deg)}.mark.o{color:var(--orange);border:var(--stroke) solid currentColor;border-radius:50%;width:47%;height:47%}.footer{padding:23px 0 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.footer em{font-style:normal;letter-spacing:4px;font-size:15px}.settings-layout{display:grid;grid-template-columns:1fr 440px;gap:100px;align-items:center;padding:70px 0;min-height:630px}.settings-intro h1{font-size:58px;max-width:390px}.settings-intro .hero-art{max-width:210px;padding:16px;border-radius:25px;margin-top:35px}.settings-intro .art-board{gap:5px;padding:5px}.settings-intro .art-badge{display:none}.settings-card{background:var(--paper);border:1px solid var(--line);padding:36px;border-radius:24px;box-shadow:0 10px 35px #324b3c06}fieldset{border:0;padding:0;margin:0 0 28px}legend{font-size:14px;font-weight:bold;margin-bottom:12px}.segments{display:flex;gap:7px;background:#f0f1e9;border-radius:12px;padding:5px}.segment{flex:1;border:1px solid transparent;background:none;border-radius:8px;padding:12px 7px;font-size:14px;min-height:46px}.segment[aria-pressed=true]{background:var(--paper);border-color:#c3cdbd;box-shadow:0 2px 3px #173b1a08;font-weight:bold}.note{font-size:12px;color:var(--muted);line-height:1.7;margin:18px 0}.tip{background:#eff2e6;border-radius:12px;padding:15px;margin:16px 0 24px}.game-link{width:100%;border:1px solid #c6d2c2;border-radius:9px;padding:13px;color:var(--green);background:#f6f9f0;margin:10px 0;font-size:12px}.link-actions{display:flex;gap:9px}.link-actions .btn{flex:1}.status-note{font-size:13px;line-height:1.6;color:var(--green);min-height:22px}.status-note.error{color:var(--orange)}.game-layout{display:grid;grid-template-columns:minmax(336px,580px) minmax(240px,1fr);gap:55px;align-items:center;padding:38px 0 46px}.game-heading{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;justify-content:space-between;margin:0 3px 20px;font-weight:600}.game-heading span:last-child{letter-spacing:0;text-transform:none}.board-scroll{overflow:auto;padding:5px;margin:-5px}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#becbbc;border:2px solid #becbbc;border-radius:17px;position:relative;min-width:336px;isolation:isolate}.small-board{display:grid;grid-template-columns:repeat(3,1fr);aspect-ratio:1;position:relative;background:#f0f1e9;outline:2px solid transparent;outline-offset:-2px;transition:background .2s,opacity .2s}.small-board:nth-child(1){border-top-left-radius:14px}.small-board:nth-child(3){border-top-right-radius:14px}.small-board:nth-child(7){border-bottom-left-radius:14px}.small-board:nth-child(9){border-bottom-right-radius:14px}.small-board.active{background:#e4eee2;outline-color:#6e9c7a}.board.turn-o .small-board.active{background:#f5e5d9;outline-color:#c48b74}.small-board.dimmed{background:#f0f1e9}.small-board.dimmed .mark{opacity:.55}.cell{width:100%;aspect-ratio:1;min-width:36px;min-height:36px;background:none;border:0;border-right:1px solid #ccd6c8;border-bottom:1px solid #ccd6c8;padding:0;display:flex;align-items:center;justify-content:center;position:relative;touch-action:manipulation;border-radius:0;-webkit-tap-highlight-color:transparent;user-select:none}.cell:nth-child(3n){border-right:0}.cell:nth-child(n+7){border-bottom:0}.cell[aria-disabled=true]{cursor:default}.cell:focus-visible{outline:3px solid #ad782c;outline-offset:-4px;z-index:2}.cell.last::after{content:'';position:absolute;inset:7px;border:1.5px solid currentColor;opacity:.35;border-radius:8px}.cell.last{color:var(--green)}.cell.last:has(.o){color:var(--orange)}.cell.preview .mark{opacity:.35}.small-board.target::after{content:'';position:absolute;inset:-4px;border:2px dashed #866a33;border-radius:10px;pointer-events:none;z-index:4}.target-label{position:absolute;background:#fff9e7;color:#6b542d;box-shadow:0 2px 8px #453d1e20;font-size:10px;font-weight:700;padding:6px 9px;border-radius:7px;z-index:6;left:50%;bottom:-11px;transform:translateX(-50%);width:max-content;pointer-events:none}.closed-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:#e2e9dddc;pointer-events:none}.closed-overlay.o{background:#efded1e8}.closed-overlay .mark{width:68%;height:68%;--stroke:11px}.closed-overlay .mark.o{width:56%;height:56%}.closed-overlay.drawn{background:#e5e6dce8;font-size:40px;color:#7b8975}.small-board.closed .cell .mark{opacity:.15}.win-line{position:absolute;inset:0;width:100%;height:100%;z-index:7;pointer-events:none;overflow:visible}.win-line line{stroke:var(--green);stroke-width:2.3;stroke-linecap:round;opacity:.75}.win-line.o line{stroke:var(--orange)}.game-sidebar h2{font-size:35px;line-height:1.18;margin:18px 0 14px}.turn-token{display:flex;width:56px;height:56px;align-items:center;justify-content:center;background:#e3ecdd;border-radius:17px}.turn-token.o{background:#efded1}.game-sidebar>.hint{color:var(--muted);font-size:15px;line-height:1.6;margin:0 0 25px}.player-chips{display:flex;gap:10px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}.player-chip{flex:1;display:flex;align-items:center;gap:10px;font-size:12px}.player-chip .mark{width:17px;height:17px;--stroke:3px}.player-chip .mark.o{width:17px;height:17px}.board-help{font-size:11px;color:var(--muted);line-height:1.6;margin:20px 0 0}.tutorial-card{position:relative;background:var(--paper);border:1px solid #cbd7c1;padding:28px;border-radius:22px;box-shadow:0 12px 40px #294d3410}.tutorial-card::before{content:'';position:absolute;left:-9px;top:50px;width:16px;height:16px;transform:rotate(45deg);background:var(--paper);border:1px solid #cbd7c1;border-top:0;border-right:0}.step-count{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:#68805e;font-weight:700}.tutorial-card h2{font-size:25px;margin:16px 0}.tutorial-text{font-size:16px;line-height:1.65;margin:0 0 24px}.steps{display:flex;gap:5px;margin:0 0 22px}.steps i{height:3px;background:#e2e7db;flex:1;border-radius:4px}.steps i.done{background:var(--green)}.tutorial-controls{display:flex;gap:9px;justify-content:space-between}.skip{display:flex;margin:12px auto 0}.cell.glow{background:#c9e3b4;box-shadow:inset 0 0 0 3px #6c9450;animation:glow 1.7s ease-in-out infinite}.practice{font-size:12px;color:#547644;margin:-8px 0 20px}.toast{margin:15px 0 0;line-height:1.6;font-size:13px}.thinking .turn-token{animation:pulse 1.3s ease-in-out infinite}@keyframes glow{50%{background:#e1f0b9}}@keyframes pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:1000px){#app{padding:0 30px}.hero{gap:40px}.game-layout{gap:28px;grid-template-columns:minmax(336px,1.3fr) minmax(240px,1fr)}.game-sidebar h2{font-size:29px}.settings-layout{gap:40px;grid-template-columns:1fr 400px}.board{gap:8px}.cell .mark{--stroke:4px}.tutorial-card{padding:22px}.settings-intro h1{font-size:48px}}
@media(max-width:760px){#app{padding:0 22px}.header{height:84px}.brand{font-size:14px}.header .btn{padding:10px 13px;min-height:44px}.hero{grid-template-columns:1fr;gap:42px;padding:40px 0 60px;min-height:0}.hero h1{font-size:58px;letter-spacing:-3px}.hero-copy{max-width:450px;margin:auto;width:100%}.hero-art{width:min(85%,380px);margin:auto}.hero-actions{max-width:none}.hero-art .art-badge{padding:12px 18px}.settings-layout{grid-template-columns:1fr;gap:25px;padding:32px 0 45px;min-height:0}.settings-intro{display:none}.settings-card{max-width:450px;width:100%;margin:auto;padding:28px}.game-layout{display:flex;flex-direction:column;gap:25px;padding:28px 0 35px}.board-column{width:100%;max-width:560px}.game-sidebar{width:100%;max-width:560px}.game-sidebar h2{font-size:28px}.game-sidebar .turn-token{float:left;margin:0 15px 10px 0}.game-sidebar .hint{margin-bottom:20px}.game-sidebar .player-chips{clear:both}.tutorial-card::before{left:40px;top:-9px;border:1px solid #cbd7c1;border-right:0;border-bottom:0}.tutorial-card{padding:23px}.tutorial-card h2{margin-top:12px}.tutorial-text{font-size:15px}.board-help{margin-top:14px}.footer{font-size:10px}.board{gap:8px}.game-heading{margin-bottom:15px}.subtitle{font-size:17px}}
@media(max-width:420px){#app{padding:0 12px}.header{height:76px}.brand{font-size:12px;gap:8px}.brand-icon{padding:9px;grid-template-columns:repeat(3,4px);gap:3px}.brand-icon i{width:4px;height:4px}.header-actions{gap:0}.hero h1{font-size:53px}.hero{padding-top:32px}.board-column{width:calc(100% + 16px);max-width:none}.board{gap:6px;border:0;border-radius:0}.small-board{border-radius:0!important}.cell .mark{--stroke:3.5px}.closed-overlay .mark{--stroke:8px}.game-heading,.board-help{margin-left:9px;margin-right:9px}.footer em{display:none}.target-label{font-size:8px;padding:5px}.game-layout{padding-top:22px}.settings-card{padding:24px 20px}.header .btn{font-size:12px;padding:10px}.game-sidebar h2{font-size:26px}.cell.last::after{inset:4px;border-radius:5px}}
.mark{pointer-events:none}.board-scroll{padding:6px 6px 20px;margin:-6px -6px -15px}.small-board:nth-child(3n) .target-label{left:auto;right:0;transform:none}.small-board:nth-child(3n+1) .target-label{left:0;transform:none}
@media(max-width:420px){.board-scroll{padding:6px 4px 20px;margin:-6px -4px -15px}.header-actions{flex-shrink:0}.header .btn{white-space:nowrap}.brand span:last-child{text-align:left;line-height:1.25;max-width:116px}}
.board-turn{display:flex;align-items:center;gap:15px;margin:0 0 24px}.board-turn h2{font-size:27px;letter-spacing:-.7px;margin:0 0 5px}.board-turn p{font-size:13px;color:var(--muted);margin:0}.board-turn .turn-token{width:47px;height:47px;border-radius:13px}@media(max-width:420px){.board-turn{margin:0 8px 20px;gap:12px}.board-turn h2{font-size:24px}.board-turn p{font-size:12px}}
