:root{color:#264734;font-synthesis:none;--ink:#264734;--green:#315b40;--cream:#f7f4e9;--muted:#71806a;--line:#dfe2d1;--gold:#e9b75d;--surface:#fffdf6;background:#f7f4e9;font-family:ui-rounded,Trebuchet MS,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button,input,select{min-height:46px}button{background:var(--green);color:#fffdf0;border:0;border-radius:14px;padding:12px 20px;font-weight:700;transition:transform .15s,background .15s}button:hover{filter:brightness(1.08);transform:translateY(-1px)}button:disabled{opacity:.45;cursor:default;transform:none}button.secondary{color:var(--ink);background:#e8ebdc}button.ghost{color:var(--ink);border:1px solid var(--line);background:0 0}button.gold{background:var(--gold);color:#3e482c}button.icon{min-width:46px;padding:8px 12px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline-offset:4px;outline:3px solid #c27b35}h1,h2,h3,p{margin-top:0}h1,h2,.serif{font-family:Georgia,Times New Roman,serif;font-weight:400}h1{letter-spacing:-3px;font-size:clamp(44px,6vw,82px);line-height:1.02}h2{letter-spacing:-1px;font-size:36px}h3{font-size:18px}p{line-height:1.65}small,.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2.3px;color:#7c875f;font-size:11px;font-weight:800}.shell{max-width:1180px;margin:auto;padding:0 30px}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;height:88px;display:flex}.brand{letter-spacing:-.7px;align-items:center;gap:10px;font-family:Georgia,serif;font-size:24px;font-weight:700;display:flex}.brand img{width:36px;height:36px}.toplinks{gap:10px;display:flex}.toplinks button{font-size:13px}.hero{grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:65px 0 45px;display:grid}.hero p{color:#6c7c65;max-width:410px;font-size:17px}.hero h1 em{color:#6c8855;font-weight:400}.hero-actions{flex-wrap:wrap;gap:12px;margin:28px 0 22px;display:flex}.tags{color:#6b7d60;flex-wrap:wrap;gap:18px;font-size:11px;display:flex}.hero-art{aspect-ratio:1;justify-content:center;align-items:center;display:flex;position:relative}.hero-board{object-fit:contain;filter:drop-shadow(0 20px 18px #49643b22);width:85%;height:100%;transform:rotate(5deg)}.note{background:#fffdf3;border:1px solid #e3dfcc;border-radius:17px;padding:16px 22px;font-family:Georgia,serif;font-size:20px;position:absolute;bottom:22px;right:-4px;transform:rotate(-5deg);box-shadow:0 8px 25px #344b3410}.note small{text-transform:uppercase;letter-spacing:1px;margin-bottom:4px;font:11px system-ui;display:block}.mode-strip{border-top:1px solid var(--line);grid-template-columns:repeat(3,1fr);gap:28px;padding:28px 0 40px;display:grid}.mode-strip article{align-items:flex-start;gap:16px;display:flex}.mode-strip .badge{background:#e9edda;border-radius:20px;padding:14px;font-size:24px}.mode-strip h3{margin:6px 0}.mode-strip p{color:var(--muted);margin:0;font-size:13px}.footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:16px;padding:20px 0;font-size:11px;display:flex}.page{padding:35px 0 50px}.page-head{justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;display:flex}.page-head h2{margin:8px 0}.grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.card{background:var(--surface);border:1px solid var(--line);text-align:left;color:var(--ink);border-radius:22px;padding:25px;position:relative;overflow:hidden}.card .big-icon{margin:4px 0 20px;font-size:40px;display:block}.card h3{margin-bottom:6px}.card p{color:var(--muted);margin-bottom:8px;font-size:13px}.card .pill{margin-top:12px}.pill{text-transform:uppercase;letter-spacing:1px;color:#4d6746;background:#e8edda;border-radius:20px;align-items:center;gap:5px;padding:6px 11px;font-size:10px;display:inline-flex}.arena-thumb{object-fit:cover;object-position:center;border-radius:12px;width:100%;height:160px;margin-bottom:16px}.setup{max-width:760px;margin:auto}.settings-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.field{gap:7px;margin:15px 0;font-size:13px;font-weight:700;display:grid}.field input,.field select{background:var(--surface);color:var(--ink);border:1px solid #ccd5bf;border-radius:11px;width:100%;min-width:0;padding:9px 12px}.field input[type=range]{accent-color:var(--green);padding:0}.check{align-items:center;gap:10px;font-size:14px;display:flex}.check input{width:22px;accent-color:var(--green)}.actions{flex-wrap:wrap;gap:10px;margin-top:25px;display:flex}.game-layout{max-width:1300px;height:100dvh;padding:18px max(18px,env(safe-area-inset-right)) 18px max(18px,env(safe-area-inset-left));grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 300px;gap:24px;margin:auto;display:grid}.play-column{flex-direction:column;min-width:0;min-height:0;display:flex}.game-top{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.game-top .brand{font-size:20px}.game-tools{gap:7px;display:flex}.scorebar{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:10px;display:grid}.score{border:1px solid var(--line);background:var(--surface);border-radius:14px;align-items:center;gap:9px;padding:8px 14px;font-size:13px;display:flex}.score.active{background:#e9eedb;border:2px solid #698451}.score b{margin-left:auto;font-size:24px}.score .avatar{font-size:22px}.round{text-align:center;color:var(--muted);min-width:65px;font-size:10px;line-height:1.6}.board-wrap{touch-action:none;-webkit-user-select:none;user-select:none;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;position:relative}.board-wrap #board{aspect-ratio:600/760;touch-action:none;max-width:100%;max-height:100%;position:relative}.board-wrap canvas{touch-action:none;outline:none;width:100%!important;height:100%!important;display:block!important}.board-wrap canvas:focus-visible{outline-offset:3px;outline:3px solid #bf8035}.game-sidebar{flex-direction:column;justify-content:center;gap:18px;min-height:0;display:flex}.turn-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:25px}.turn-card h2{margin:10px 0;font-size:28px}.turn-card p{color:var(--muted);margin-bottom:0;font-size:14px}.status{min-height:50px;font-size:14px;line-height:1.6}.legend{color:var(--muted);grid-template-columns:1fr 1fr;gap:12px;font-size:11px;display:grid}.legend span{align-items:center;gap:6px;display:flex}.controls{grid-template-columns:1fr 1fr;gap:8px;display:grid}.controls button{padding:10px;font-size:12px}.controls .wide{grid-column:1/-1}.hint{color:var(--muted);margin:0;font-size:11px;line-height:1.7}.powerlabel{color:var(--muted);justify-content:space-between;font-size:11px;display:flex}.power{width:100%;accent-color:var(--green);margin:0}.game-bottom{text-align:center;color:var(--muted);padding:8px 0 0;font-size:11px}.tutorial-symbol{white-space:nowrap;color:#9c773f;margin:10px 0;font-size:27px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{background:#e8edda;border-radius:12px;padding:5px 10px;font-size:11px}dialog{border:1px solid var(--line);background:var(--cream);color:var(--ink);border-radius:25px;width:calc(100% - 32px);max-width:480px;padding:32px;box-shadow:0 30px 100px #173a3b40}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#18362877}dialog h2{font-size:32px}dialog .actions button{flex:1}.result-icon{text-align:center;margin-bottom:15px;font-size:60px}.mini-status{color:var(--muted);font-size:11px}body[data-theme=moon]{--ink:#e3eddb;--green:#638278;--cream:#182f38;--muted:#a0b9b5;--line:#39555b;--surface:#233f46;background:var(--cream);color:var(--ink)}body[data-theme=moon] button.secondary,body[data-theme=moon] .score.active{color:#f1ecd4;background:#395a56}body[data-theme=moon] .hero p{color:var(--muted)}body[data-theme=moon] .hero h1 em{color:#a9c99d}body[data-theme=moon] .note{background:#2a494b;border-color:#53716a}body[data-theme=paper]{--cream:#f1e8d7;--surface:#fcf3e2;--line:#d5cbb5;background:var(--cream)}body.reduced *,body.reduced :before{scroll-behavior:auto!important;transition:none!important;animation:none!important}.notice{color:#624f29;background:#f4e7c3;border-radius:10px;padding:12px;font-size:13px}.completed{border-color:#789a55}.completed:after{content:"✓";color:#426333;background:#dfe9ce;border-radius:50%;padding:3px 8px;position:absolute;top:16px;right:16px}.hidden{display:none!important}@media (width<=800px){.shell{padding:0 20px}.topbar{height:72px}.toplinks .optional{display:none}.hero{grid-template-columns:1fr 1fr;gap:10px;padding:30px 0}.hero h1{font-size:50px}.hero p{font-size:14px}.hero-art{aspect-ratio:.75}.note{padding:12px;font-size:16px;right:0}.grid{grid-template-columns:repeat(2,1fr)}.game-layout{grid-template-columns:1fr 230px;gap:12px;padding:10px}.turn-card{padding:15px}.game-sidebar{gap:10px}.game-top .brand{font-size:16px}.game-tools button{min-width:40px;padding:8px}.game-top{margin-bottom:7px}}@media (width<=600px) and (orientation:portrait){.hero{grid-template-columns:1fr;gap:0;padding:30px 0 15px}.hero h1{max-width:340px;margin:18px 0;font-size:52px}.hero p{max-width:330px}.hero-art{aspect-ratio:auto;height:330px;margin-top:15px}.hero-board{width:85%;height:100%;transform:rotate(4deg)}.note{bottom:30px;right:15px}.hero-actions{margin:20px 0 18px}.mode-strip{grid-template-columns:1fr;gap:16px;padding-top:22px}.mode-strip .badge{padding:10px}.grid{gap:12px}.card{padding:17px}.card .big-icon{margin-bottom:12px;font-size:32px}.card h3{font-size:16px}.arena-thumb{height:130px}.settings-grid{grid-template-columns:1fr}.game-layout{height:100dvh;padding:8px 10px max(8px,env(safe-area-inset-bottom));flex-direction:column;gap:8px;display:flex}.play-column{flex:1;min-height:0}.game-sidebar{flex-shrink:0;grid-template-columns:1fr 1fr;gap:8px;display:grid}.turn-card{border-radius:14px;padding:9px 12px}.turn-card h2{margin:3px 0;font-size:19px}.turn-card p{font-size:11px;line-height:1.35}.turn-card .eyebrow{letter-spacing:1px;font-size:9px}.status{min-height:28px;font-size:11px}.game-sidebar .legend,.game-sidebar .hint,.game-sidebar .side-title{display:none}.game-sidebar .controls{gap:5px}.controls button{min-height:40px;padding:7px;font-size:11px}.game-sidebar .power-wrap{grid-column:1/-1;align-items:center;gap:12px;display:flex}.powerlabel{white-space:nowrap;gap:6px}.power{min-height:25px}.score{min-height:42px;padding:5px 10px;font-size:11px}.score b{font-size:20px}.score .avatar{font-size:18px}.scorebar{gap:7px;margin-bottom:5px}.round{font-size:9px}.game-top{margin-bottom:5px}.game-top button{min-height:36px}.game-bottom{padding-top:3px;font-size:9px}.tutorial-symbol{margin:4px 0;font-size:17px}.toplinks button{padding:9px;font-size:11px}.footer{font-size:10px}.brand{font-size:22px}.page-head h2{font-size:29px}.page-head button{padding:10px 12px}.hero .eyebrow{font-size:10px}.tags{gap:12px;font-size:10px}}@media (height<=520px) and (orientation:landscape){.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:12px;height:100dvh;padding:7px 14px}.game-top{display:none}.scorebar{z-index:2;flex-direction:column;gap:5px;width:115px;display:flex;position:absolute;top:12px;left:15px}.score{width:100%;font-size:10px}.score b{font-size:16px}.round{font-size:10px}.play-column{padding-left:110px}.turn-card{padding:10px 15px}.turn-card h2{font-size:22px}.game-sidebar{gap:7px}.game-sidebar .legend,.game-sidebar .hint{display:none}.side-title{margin:0;font-size:12px}.controls button{min-height:38px;padding:7px}.status{min-height:30px}.game-bottom{display:none}.game-sidebar{justify-content:flex-start;overflow:auto}.game-layout{grid-template-rows:minmax(0,1fr)}.power{min-height:26px}.game-sidebar .turn-card p,.game-sidebar .turn-card .status{font-size:12px}}@media (width<=600px) and (height<=700px) and (orientation:portrait){.game-sidebar .turn-card{padding:8px}.game-sidebar .turn-card .eyebrow{display:none}.game-sidebar .turn-card h2{margin:0 0 4px;font-size:16px;line-height:1.1}.game-sidebar .turn-card p{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:10px;line-height:1.3;display:-webkit-box;overflow:hidden}.game-sidebar .status{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:0;margin-top:4px;font-size:10px;line-height:1.3;display:-webkit-box;overflow:hidden}.tutorial-symbol{margin:4px 0;font-size:17px}.game-top .brand{font-size:14px}.game-top .brand img{width:25px;height:25px}.game-top .game-tools button{padding:6px;font-size:10px}.controls button{min-height:40px}.game-bottom,.score small{font-size:8px}.game-sidebar{gap:5px}.power-wrap{max-height:26px}}
