:root{color-scheme:light;--paper:#f6f3e9;--ink:#233d32;--muted:#647166;--green:#254e3c;--soft:#e6ebdc;--line:#c5cdb8;--orange:#ce623a;--gold:#e8b75c;--white:#fffdf7;--shadow:0 16px 50px #344d3210;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #a75227;outline-offset:4px}button{touch-action:manipulation}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:normal}button, a{-webkit-tap-highlight-color:transparent}.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}
.shell{max-width:1260px;padding:0 48px;margin:auto;min-height:100svh;display:flex;flex-direction:column}.topbar{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe2d3;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:23px}.brandmark{width:35px;height:40px}.wordmark{border:0;padding:8px 0;background:none;text-align:left}.top-label{font-size:10px;letter-spacing:2.3px;font-weight:700;color:var(--muted)}.quiet-button{border:1px solid #cbd3bf;background:transparent;border-radius:100px;padding:11px 20px;min-height:44px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.quiet-button:hover{background:var(--soft)}
.landing{display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:50px;flex:1;padding:60px 0}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:var(--muted);margin-bottom:24px}.hero-title{font-size:clamp(54px,6.4vw,82px);line-height:1.02;letter-spacing:-3px;max-width:500px}.hero-title .fox-word{color:var(--orange);font-style:italic}.hero-subtitle{font-family:Georgia,serif;font-size:22px;line-height:1.5;margin-top:23px}.intro{font-size:14px;line-height:1.8;color:var(--muted);max-width:330px;margin-top:11px}.choose-title{font-weight:700;font-size:14px;margin:35px 0 14px}.choice{width:100%;max-width:390px;display:flex;align-items:center;text-align:left;gap:16px;border:1px solid #cbd3bf;border-radius:13px;padding:18px 20px;background:transparent;margin-top:10px;transition:transform .15s,background .15s;min-height:82px}.choice:hover{transform:translateY(-2px);background:#edf0e2}.choice.primary{background:var(--green);border-color:var(--green);color:var(--white)}.choice.primary:hover{background:#193f2e}.choice-icon{height:31px;width:31px}.choice strong{font-size:15px;display:block;margin-bottom:6px}.choice small{font-size:12px;opacity:.75;display:block}.choice .arrow{margin-left:auto;font-size:24px;font-weight:normal}.how-link{border:0;background:none;text-decoration:underline;text-underline-offset:5px;padding:18px 4px;min-height:48px;font-size:13px;display:flex;align-items:center;gap:8px}.hero-art{position:relative;padding:18px;transform:rotate(-5deg);max-width:550px;width:100%}.hero-art:before{content:'';position:absolute;inset:12px -12px 0;background:#e7ebdc;border-radius:49% 51% 40% 60% / 42% 42% 58% 58%;transform:rotate(14deg)}.hero-art .board{background:#e9edde;box-shadow:0 24px 55px #3c54321c;border:1px solid #d4dcc6}.hero-art .piece{filter:drop-shadow(0 4px 2px #233d3220)}.art-leaf{position:absolute;z-index:2;width:68px;height:24px;border:1px solid #839a73;background:#a7b58c;border-radius:100% 0 100% 0;transform:rotate(-35deg);right:-7px;bottom:54px}.art-leaf:after{content:'';position:absolute;width:60px;height:22px;border:1px solid #839a73;background:#b5c19b;border-radius:100% 0 100% 0;transform:rotate(70deg);left:13px;top:-22px}.footer{min-height:65px;border-top:1px solid #dfe2d3;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:.3px;gap:10px}.footer-dots{display:flex;gap:6px}.footer-dots i{height:5px;width:5px;background:#90a07e;border-radius:50%}
.settings-wrap{flex:1;display:grid;place-items:center;padding:45px 0}.settings-card{width:100%;max-width:520px}.settings-card h1{font-size:44px;letter-spacing:-1.2px;margin-bottom:34px}.setting{border:0;padding:0;margin:0 0 25px}.setting legend{font-weight:700;font-size:13px;margin-bottom:12px;padding:0}.segments{display:flex;gap:8px}.segment{flex:1;min-height:52px;border:1px solid #cbd3bf;border-radius:9px;background:#ffffff40;font-size:14px;display:flex;align-items:center;justify-content:center;gap:9px}.segment[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green);box-shadow:0 3px 0 #183c29}.segment svg{width:28px;height:28px}.tip{font-size:12px;line-height:1.6;color:var(--muted);margin-top:14px}.first{font-size:12px;color:var(--muted);margin:5px 0 22px;display:flex;gap:8px;align-items:center}.primary-button{background:var(--green);border:1px solid var(--green);color:var(--white);border-radius:9px;padding:14px 24px;min-height:48px;font-weight:700;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:12px}.primary-button:hover{background:#193f2e}.full{width:100%}.link-box{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}.link-box input{width:100%;padding:12px;border:1px solid #cbd3bf;background:var(--white);border-radius:8px;min-height:46px;font-size:12px}.button-row{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}.status-message{font-size:13px;line-height:1.5;margin-top:14px;overflow-wrap:anywhere}.error{color:#934227}.waiting-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:7px;animation:breathe 1.5s infinite}
.play-wrap{flex:1;padding:32px 0 40px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.game-heading h1{font-size:36px;letter-spacing:-1px}.turn-line{display:flex;align-items:center;gap:9px;font-size:13px;margin-top:10px}.turn-dot{height:8px;width:8px;background:var(--green);border-radius:50%}.turn-dot.thinking{background:var(--orange);animation:breathe 1s infinite}.game-layout{display:grid;grid-template-columns:minmax(308px,600px) minmax(240px,300px);gap:52px;justify-content:center;align-items:center}.board-area{width:100%;position:relative}.board{position:relative;width:100%;aspect-ratio:1;min-width:308px;background:#e9edde;border:1px solid #d8dfcc;border-radius:30px;box-shadow:var(--shadow);overflow:visible;isolation:isolate}.board-lines{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.board-lines line{stroke:#aab998;stroke-width:1.4;vector-effect:non-scaling-stroke}.board-lines .cross-bg{fill:#dce4ce;opacity:.55}.node{position:absolute;width:max(44px,11%);height:max(44px,11%);transform:translate(-50%,-50%);display:grid;place-items:center;background:none;border:0;border-radius:50%;padding:0;z-index:1;touch-action:none}.node:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:#acba9b;box-shadow:0 0 0 4px #e9edde}.node .piece{position:relative;z-index:1;width:84%;height:84%;filter:drop-shadow(0 3px 1px #233d3226);pointer-events:none}.node.legal:before{width:23px;height:23px;background:#74a57a;border:4px solid #d2e2c4;box-shadow:0 0 0 2px #5c885f}.node.jump:before{background:#e6aa65;border-color:#f7d4a0;box-shadow:0 0 0 2px #b86431}.bite{width:24px;height:24px;position:absolute;z-index:2;pointer-events:none}.node.selected{outline:3px solid #547d4d;outline-offset:-2px;background:#cfddbb}.node.danger .piece{filter:drop-shadow(2px 0 0 #b74231) drop-shadow(-2px 0 0 #b74231) drop-shadow(0 2px 0 #b74231) drop-shadow(0 -2px 0 #b74231)}.node.glow{background:#f9d68b88;box-shadow:0 0 0 3px #dca146;animation:glow 1.6s infinite}.node:focus-visible{z-index:5;outline-offset:-2px}.node.dragging{z-index:9}.board-meta{display:flex;justify-content:center;gap:22px;margin-top:18px;color:var(--muted);font-size:11px}.legend{display:flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;background:#74a57a;border-radius:50%}.legend-dot.capture{background:#d79350}.board-instruction{font-size:12px;text-align:center;color:var(--muted);line-height:1.5;min-height:30px;margin-top:18px}.side-card{background:#fffdf777;border:1px solid #dbe0d0;border-radius:16px;padding:25px}.side-card .side-symbol{width:60px;height:60px;margin-bottom:12px}.side-card h2{font-size:24px;margin-bottom:8px}.opponent-note{font-size:12px;line-height:1.6;color:var(--muted)}.rule-separator{height:1px;background:#dde3d2;margin:22px 0}.stat{font-size:13px;line-height:1.6}.meter{height:5px;background:#e3e7d8;border-radius:4px;overflow:hidden;margin:10px 0 18px}.meter span{display:block;height:100%;background:var(--orange);border-radius:4px;transition:width .25s}.quiet-meter span{background:#91a580}.plan-label{font-size:10px;letter-spacing:1.7px;font-weight:700;margin-bottom:9px;color:var(--muted)}.plan{font-family:Georgia,serif;font-size:20px;line-height:1.3;margin-bottom:10px}.plan-tip{font-size:12px;line-height:1.8;color:var(--muted)}.game-controls{margin-top:20px;display:flex;gap:8px;justify-content:center}.keyboard-help{margin-top:22px;font-size:10px;color:var(--muted);text-align:center;line-height:1.7}.tutorial-panel{border:1px solid #ced8bd;background:#fffdf7;border-radius:18px;padding:25px;box-shadow:var(--shadow);position:relative}.tutorial-panel:before{content:'';position:absolute;left:-9px;top:50px;width:16px;height:16px;background:#fffdf7;border-left:1px solid #ced8bd;border-bottom:1px solid #ced8bd;transform:rotate(45deg)}.step-count{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:15px}.tutorial-copy{font-family:Georgia,serif;font-size:21px;line-height:1.55;min-height:165px}.step-dots{display:flex;gap:6px;margin-top:20px}.step-dots i{width:23px;height:3px;background:#dce2d1;border-radius:3px}.step-dots i.active{background:var(--green)}.tutorial-panel .button-row{margin:24px 0 0}.tutorial-panel .primary-button{flex:1}.tutorial-panel .quiet-button{border-radius:9px}.tutorial-skip{display:block;margin:20px auto 0;background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);min-height:44px;font-size:12px}.result-overlay{position:fixed;inset:0;background:#243b305e;backdrop-filter:blur(6px);z-index:30;display:grid;place-items:center;padding:22px}.result-card{background:var(--paper);border:1px solid #d8dfcc;border-radius:22px;max-width:460px;width:100%;padding:38px;text-align:center;box-shadow:0 20px 90px #14322444}.result-symbol{width:90px;height:90px;margin:0 auto 22px}.result-card h2{font-size:31px;line-height:1.3;margin-bottom:26px}.result-card .button-row{justify-content:center}.result-card .quiet-button{border-radius:9px}.result-card .primary-button{width:100%}
@keyframes breathe{50%{opacity:.35}}@keyframes glow{50%{box-shadow:0 0 0 5px #dca14640}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1400px){.landing{padding:75px 0}.hero-title{font-size:88px}}
@media(max-width:900px){.shell{padding:0 26px}.landing{gap:20px}.hero-title{font-size:63px}.hero-art{padding:5px}.game-layout{gap:25px;grid-template-columns:minmax(308px,1fr) 260px}.side-card,.tutorial-panel{padding:20px}.tutorial-copy{font-size:19px}.topbar{height:90px}.top-label{display:none}}
@media(max-width:700px){.shell{padding:0 18px}.topbar{height:77px}.brand{font-size:20px}.brandmark{width:28px;height:33px}.landing{display:flex;flex-direction:column;padding:36px 0 20px;gap:12px;align-items:stretch}.eyebrow{font-size:9px;margin-bottom:17px}.hero-title{font-size:62px;max-width:360px}.hero-subtitle{font-size:20px;margin-top:17px}.intro{max-width:100%}.choose-title{margin-top:26px}.choice{max-width:100%;min-height:77px}.hero-art{width:86%;max-width:370px;margin:20px auto 28px}.hero-art .board{min-width:0}.hero-art .node{width:11%;height:11%;min-width:0}.footer{font-size:10px}.game-layout{grid-template-columns:1fr;gap:26px}.board-area{max-width:530px;margin:auto}.game-heading{margin-bottom:23px}.game-heading h1{font-size:30px}.play-wrap{padding:24px 0}.side-card{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.side-card .side-symbol{width:43px;height:43px}.side-card .identity{grid-row:span 2}.side-card .rule-separator{display:none}.side-card .strategy{grid-column:1/-1;border-top:1px solid #dde3d2;padding-top:18px;margin-top:10px}.side-card h2{font-size:20px}.tutorial-panel:before{left:40px;top:-9px;transform:rotate(135deg)}.tutorial-copy{min-height:0;font-size:20px}.settings-card h1{font-size:38px}.settings-wrap{padding:36px 0}.board{border-radius:23px}.keyboard-help{font-size:10px}.result-card{padding:28px}.game-heading .quiet-button{padding:10px 14px}}
@media(max-width:355px){.shell{padding:0 6px}.topbar{padding:0 6px}.hero-title{font-size:55px}.landing{padding-left:8px;padding-right:8px}.hero-art{width:90%}.settings-wrap{padding-left:8px;padding-right:8px}.game-heading{padding:0 6px}.board{min-width:308px}.side-card{gap:0 12px;padding:17px}.footer{padding:0 6px}}
.board-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 4px 17px;align-items:end}.board-stats .stat{font-size:12px;line-height:1.5;overflow-wrap:break-word}.board-stats .meter{margin:8px 0 0}@media(max-width:700px){.side-card .identity{grid-column:1/-1;grid-row:auto}.board-stats{gap:14px}}@media(max-width:355px){.board-stats{gap:12px;margin-left:5px;margin-right:5px}.board-stats .stat{font-size:11px}}
