:root{font-family:Be Vietnam Pro,system-ui,-apple-system,Segoe UI,Noto Sans,PingFang SC,Hiragino Sans,Microsoft YaHei,Yu Gothic,Malgun Gothic,Apple SD Gothic Neo,Arial,sans-serif;color:#183f35;background:#f4f6f0;font-synthesis:none;font-weight:400;--ink: #183f35;--muted: #839088;--line: #e4e9e0;--lime: #d5ed9e;--accent: #9ed058}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:transparent}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6e9a47;outline-offset:4px}svg{width:21px;height:21px;flex-shrink:0}a{color:inherit;text-decoration:none}button svg{vertical-align:middle}.topbar{height:92px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:30px}.brand{width:158px;height:67px;overflow:hidden;position:relative;flex-shrink:0}.brand img{position:absolute;width:182px;height:182px;max-width:none;top:-57px;left:-17px;mix-blend-mode:multiply}.topnav{display:flex;gap:32px;height:100%;align-items:center}.topnav button{height:100%;font-size:12px;font-weight:600;position:relative;color:#7b8b82;display:flex;align-items:center;gap:9px}.topnav button.active{color:var(--ink)}.topnav button.active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--ink);left:0;right:0;border-radius:2px}.topright{display:flex;align-items:center;gap:12px}.pill{background:#f0f4eb;border-radius:30px;padding:9px 13px;font-size:10px;font-weight:600;display:inline-flex;align-items:center;gap:7px}.dot{width:6px;height:6px;background:#88b949;border-radius:50%}.icon-button{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;transition:.15s}.icon-button:hover{background:#eaf2df;transform:translateY(-1px)}.layout{max-width:1600px;margin:auto;display:grid;grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 92px)}.sidebar{padding:32px 23px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:700;text-transform:uppercase;color:#97a096;margin:0 13px 12px}.mode-button{width:100%;display:flex;gap:13px;align-items:center;text-align:left;padding:14px 13px;border-radius:12px;transition:.2s}.mode-button:hover{background:#e9efdf}.mode-button.active{background:var(--ink);color:#fff;box-shadow:0 5px 10px #163c3210}.mode-button.active svg{color:#c7e891}.mode-button span{flex:1}.mode-button strong{font-size:12px;font-weight:600;display:block}.mode-button small{font-size:9px;display:block;margin-top:5px;opacity:.56}.mode-button>small{font-size:8px;opacity:1;border:1px solid #d8e9c2;border-radius:4px;padding:3px;color:#759754}.mode-button.active>small{color:#d2e9ae;border-color:#73945c}.sidebar-separator{height:1px;background:var(--line);margin:20px 10px}.daily-card{margin-top:auto;background:#e8efde;border-radius:15px;padding:19px 16px;position:relative;overflow:hidden}.daily-card:after{content:"✧";font-size:100px;position:absolute;right:-2px;top:8px;opacity:.12}.daily-card p{font-size:11px;line-height:1.8;color:#697b60;margin:9px 0 17px}.daily-card strong{font-size:12px}.daily-card button{padding:9px 12px;background:#fff;border-radius:7px;font-size:10px;font-weight:600;position:relative;z-index:1}.sidebar-footer{font-size:8px;letter-spacing:.4px;color:#9ba497;margin:22px 10px 0}.main{padding:30px 38px 20px;min-width:0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.intro h1{font-size:27px;letter-spacing:-1.3px;font-weight:800;margin:0 0 8px}.intro p{font-size:11px;color:#869081;margin:0}.intro .edition{font-size:9px;font-weight:500;border:1px solid #d9e3cd;padding:8px 12px;border-radius:6px;color:#7a896e;letter-spacing:1.1px}.game-card{background:#fff;border:1px solid #e0e6db;border-radius:20px;overflow:hidden;box-shadow:0 12px 35px #28472c06}.game-toolbar{display:flex;align-items:center;justify-content:space-between;padding:18px 23px;border-bottom:1px solid #e9eee2;gap:12px}.difficulties{display:flex;padding:4px;border:1px solid #e7ebdf;background:#f6f7f2;border-radius:9px;gap:3px}.difficulty{font-size:10px;font-weight:500;padding:8px 15px;border-radius:6px;color:#86907c;display:flex;gap:5px;align-items:center}.difficulty svg{width:11px;height:11px}.difficulty.selected{background:#fff;color:#224a38;box-shadow:0 2px 5px #0000000a}.game-toolbar .board-spec{font-size:10px;color:#929b8a;display:flex;gap:13px;align-items:center}.board-spec span+span{border-left:1px solid #dce3d4;padding-left:13px}.game-content{position:relative;background:radial-gradient(ellipse at 50% 25%,#f1f6e9,#e4ecdf);height:min(61vh,630px);min-height:440px;overflow:hidden}.stage{position:absolute;inset:0;touch-action:none}.stage canvas{display:block;width:100%;height:100%;outline:none}.hud{position:absolute;top:20px;left:50%;transform:translate(-50%);display:flex;align-items:center;background:#ffffffec;border:1px solid #ffffffbd;border-radius:15px;padding:11px 22px;gap:29px;box-shadow:0 5px 22px #344d2510;pointer-events:none}.hud-stat{display:flex;gap:10px;align-items:center;min-width:82px}.hud-stat svg{color:#718964;width:19px}.hud-stat span{display:flex;flex-direction:column;gap:3px}.hud-stat small{font-size:7px;font-weight:600;letter-spacing:1.4px;color:#8e9b82;white-space:nowrap}.hud-stat strong{font-family:Be Vietnam Pro,monospace;font-weight:700;font-size:21px;letter-spacing:2px;font-variant-numeric:tabular-nums}.mascot{width:45px;height:45px;background:#e7f0d7;border-radius:50%;border:5px solid #f4f8ec;display:grid;place-items:center;font-size:23px;pointer-events:auto;box-shadow:0 0 0 1px #dde5d1}.stage-top-left{position:absolute;top:23px;left:22px;display:flex;flex-direction:column;gap:7px;pointer-events:none}.live-badge{display:flex;align-items:center;gap:6px;font-size:7px;font-weight:700;letter-spacing:1.2px;color:#738466}.stage-top-left .seed{font-size:8px;color:#9aa68d}.scene-tools{position:absolute;right:20px;top:23px;display:flex;gap:7px}.scene-tools .icon-button{width:32px;height:32px;border-color:#e1e8d8;background:#ffffffb8;border-radius:9px}.scene-tools svg{width:16px;height:16px}.stage-hint{position:absolute;bottom:30px;left:50%;transform:translate(-50%);text-align:center;pointer-events:none;white-space:nowrap;font-size:10px;color:#78916b;background:#ffffffbd;padding:9px 16px;border-radius:30px;transition:.3s}.stage-watermark{position:absolute;bottom:15px;right:19px;opacity:.65;width:80px;height:35px;pointer-events:none}.stage-watermark img{width:93px;height:93px;top:-29px;left:-8px}.game-bottom{padding:15px 22px;display:flex;align-items:center;gap:14px;justify-content:space-between}.action-switch{background:#f1f4ec;padding:4px;border-radius:9px;display:flex;gap:3px}.action-switch button{font-size:10px;padding:9px 14px;display:flex;align-items:center;gap:7px;border-radius:6px;color:#7f8c72}.action-switch button.active{background:#fff;color:var(--ink);box-shadow:0 1px 5px #24311d13}.action-switch svg{width:15px;height:15px}.bottom-actions{display:flex;gap:8px}.primary{background:var(--ink);color:#fff;border:1px solid var(--ink);padding:12px 20px;border-radius:9px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px}.primary:hover{background:#285a45}.primary svg{width:16px;height:16px}.secondary{border:1px solid #dce5d3;background:#fff;border-radius:9px;padding:11px 16px;font-size:10px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary:hover{background:#f2f5eb}.secondary svg{width:15px;height:15px}.key-tips{display:flex;justify-content:center;gap:27px;font-size:8px;color:#9aa18f;margin:18px 0 25px}.key-tips span{display:flex;align-items:center;gap:6px}.key-tips kbd{font:inherit;font-size:7px;padding:4px 6px;border:1px solid #dde4d5;border-radius:4px;background:#fff;color:#7e8a71}.info-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}.info-card{padding:17px 18px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e2e7da;border-radius:12px}.info-card>svg{padding:9px;box-sizing:content-box;border-radius:10px;background:#f0f5e6;color:#7a9c55;width:20px;height:20px}.info-card strong{font-size:11px;font-weight:600;display:block}.info-card small{font-size:8px;color:#97a08d;margin-top:6px;display:block}.info-card em{margin-left:auto;font-size:17px;font-weight:700;font-style:normal}.footer{margin-top:22px;display:flex;justify-content:space-between;font-size:8px;color:#a0a794}.footer span{display:flex;align-items:center;gap:5px}.footer svg{width:11px;height:11px}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#15382d75;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:22px}.modal{background:#fbfcf7;border:1px solid #ffffff9c;box-shadow:0 25px 100px #081e3040;border-radius:22px;width:min(640px,100%);max-height:90dvh;overflow:auto;padding:28px}.modal.wide{width:min(920px,100%)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.modal-head h2{margin:0;font-size:22px;letter-spacing:-.7px}.modal p{font-size:12px;line-height:1.8;color:#76816e}.modal h3{font-size:13px;margin:23px 0 12px}.modal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.field{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.field small{display:block;font-size:9px;color:#9aa18f;margin-top:5px}.field select,.field input[type=number]{border:1px solid #d7e1cc;background:#fff;border-radius:7px;padding:8px;min-width:120px;color:var(--ink)}.field input[type=checkbox]{accent-color:#38603d;width:18px;height:18px}.field input[type=range]{accent-color:#608a45;width:150px}.theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.theme-option{padding:8px;border:1px solid #dae2d1;border-radius:10px;text-align:center;font-size:8px}.theme-option.active{outline:2px solid #729252;outline-offset:2px}.theme-preview{height:42px;border-radius:6px;margin-bottom:7px;display:grid;place-items:center;font-size:20px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat-box{background:#edf2e5;border-radius:11px;padding:16px}.stat-box strong{display:block;font-size:24px;margin-bottom:7px}.stat-box small{font-size:9px;color:#88937a}.stat-table{border-collapse:collapse;width:100%;font-size:10px;margin-top:22px}.stat-table th,.stat-table td{text-align:left;padding:12px 6px;border-bottom:1px solid #e0e7d5}.stat-table th{color:#96a185;font-weight:500}.chart-bars{display:flex;gap:4px;align-items:end;height:95px;background:#edf2e6;padding:10px;border-radius:8px}.chart-bars i{flex:1;background:#98ba73;min-height:3px;border-radius:3px 3px 0 0}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.badge{border:1px solid #dfe5d7;border-radius:12px;padding:16px 9px;text-align:center;opacity:.5}.badge.earned{opacity:1;background:#eef5dd;border-color:#c8dca8}.badge svg{width:28px;height:28px;color:#8aa752;margin-bottom:10px}.badge strong{font-size:10px;display:block}.badge small{font-size:8px;line-height:1.6;display:block;color:#8c967e;margin-top:7px}.calendar{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}.calendar span{background:#edf1e7;border-radius:5px;padding:11px 3px;text-align:center;font-size:9px}.calendar span.won{background:#b8da89}.calendar span.lost,.calendar span.started{background:#eac9bb}.toast{position:fixed;z-index:200;bottom:28px;left:50%;transform:translate(-50%);background:#183f35;color:#fff;padding:13px 20px;border-radius:12px;box-shadow:0 9px 30px #12382d30;max-width:calc(100vw - 30px);font-size:11px;text-align:center;animation:toast-in .2s ease-out}.toast svg{width:15px;height:15px;margin-right:7px}@keyframes toast-in{0%{opacity:0;bottom:16px}to{opacity:1;bottom:28px}}.pause-screen{position:absolute;inset:0;background:#eaf0e8f7;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.pause-screen svg{width:38px;height:38px;color:#7d996d}.pause-screen h2{font-size:22px;margin:0}.progress-track{height:7px;background:#e2e9d7;border-radius:8px;overflow:hidden;margin:15px 0}.progress-track i{display:block;background:#70974c;height:100%;transition:width .15s}.result-hero{text-align:center}.result-hero .result-icon{display:grid;place-items:center;margin:0 auto 15px;background:#e8f3d3;width:78px;height:78px;border-radius:50%;color:#73953f}.result-hero .result-icon svg{width:39px;height:39px}.result-hero h2{font-size:28px;margin:0}.result-hero p{margin:10px 0 22px}.result-hero .brand{margin:0 auto 10px;width:120px;height:53px}.result-hero .brand img{width:144px;height:144px;top:-45px;left:-16px}.result-seed{font-size:9px;text-align:center;color:#9ba68c;margin-top:19px}.tutorial-steps{display:grid;grid-template-columns:1fr 1fr;gap:13px;counter-reset:steps}.tutorial-step{padding:18px;background:#edf3e4;border-radius:12px;font-size:11px;line-height:1.8}.tutorial-step:before{counter-increment:steps;content:counter(steps,decimal-leading-zero);display:block;color:#91aa73;font-size:21px;font-weight:700;margin-bottom:6px}.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.studio-preview{background:linear-gradient(150deg,#d3e3b8,#94b683);border-radius:14px;min-height:240px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.studio-preview .preview-frame{border:2px solid #ffffffe0;width:80%;aspect-ratio:16/9;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f2f6e333;gap:14px}.studio-preview .preview-frame.portrait{width:46%;aspect-ratio:9/16}.preview-frame svg{width:40px;height:40px;color:#fff}.preview-frame span{font-size:10px;color:#fff}.studio-note{font-size:10px!important;line-height:1.8!important}.demo-mode .topbar,.demo-mode .sidebar,.demo-mode .main{display:none}.demo-mode .layout{display:block;min-height:0}.demo-stage{position:fixed;inset:0;z-index:1}.demo-stage canvas{width:100%;height:100%;object-fit:contain;background:#e6eee4}.studio-source-stage{position:fixed;left:-10000px;top:0;width:1280px;height:720px}.studio-panel{position:fixed;z-index:20;left:16px;top:16px;bottom:16px;width:min(340px,calc(100vw - 32px));overflow:auto;padding:18px 20px;border-radius:16px;background:#fffe;border:1px solid var(--line);box-shadow:0 18px 50px #183e3924;backdrop-filter:blur(8px)}.studio-open .demo-stage{left:372px}.studio-panel.hidden,.studio-show.hidden{display:none}.studio-head{display:flex;align-items:center;justify-content:space-between}.studio-panel h1{font-size:18px;margin:12px 0 4px}.studio-panel p{font-size:12px;line-height:1.6;color:var(--muted)}.studio-panel .field select{max-width:170px}.studio-panel .modal-actions{flex-wrap:wrap;justify-content:flex-start}.studio-show{position:fixed;z-index:20;left:16px;top:16px;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;border:1px solid white;background:#fffc;opacity:.35;transition:opacity .2s}.studio-show:hover,.studio-show:focus-visible{opacity:1}@media(max-width:700px){.studio-panel{top:auto;max-height:55vh}.studio-open .demo-stage{left:0}}.recording-badge{position:fixed;z-index:60;left:20px;bottom:20px;background:#fff;padding:12px 20px;border-radius:9px;font-size:12px}.fallback-grid{display:grid;gap:3px;padding:15px;max-width:100%;overflow:auto}.fallback-grid button{min-width:36px;min-height:36px;background:#a5d469;border-radius:3px;font-weight:700}.fallback-grid button.revealed{background:#f3ecd6}.fallback-grid button.flagged{background:#e4ad8e}#sdk-runtime{position:fixed;width:1px;height:1px;left:-10000px;top:0;overflow:hidden;pointer-events:none}#sdk-runtime.privacy-visible{width:100vw;height:100dvh;left:0;z-index:150;pointer-events:auto}.empty-state{padding:30px;text-align:center;color:#8a957e;font-size:12px}.custom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.custom-grid label{font-size:10px}.custom-grid input{width:100%;margin-top:8px;padding:12px;border:1px solid #d4dfc7;border-radius:8px;background:#fff}.danger{color:#b56655}.hidden{display:none!important}body.left-hand .game-bottom,body.left-hand .action-switch{flex-direction:row-reverse}@media(min-width:1500px){.main{padding:35px 48px}.game-content{height:62vh;max-height:740px}}@media(max-width:1150px){.topbar{padding:0 25px}.topnav{gap:22px}.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:27px 15px}.main{padding:27px 23px}.stage-top-left{display:none}.game-toolbar .board-spec{font-size:9px;gap:8px}.difficulty{padding:8px 10px}.intro h1{font-size:24px}.game-content{min-height:400px}.info-card{padding:13px 10px;gap:8px}.info-card small{font-size:7px}.info-card>svg{padding:7px;width:17px;height:17px}.hud{gap:20px}.key-tips{gap:16px}}@media(max-width:850px){.topbar{height:77px;padding:0 20px}.topnav{display:none}.layout{grid-template-columns:1fr;min-height:calc(100vh - 77px)}.sidebar{flex-direction:row;overflow:auto;padding:14px 20px 0;border:0;gap:7px}.sidebar .eyebrow,.sidebar .sidebar-separator,.sidebar .daily-card,.sidebar .sidebar-footer,.sidebar .secondary-modes{display:none}.mode-button{white-space:nowrap;width:auto;min-width:fit-content;padding:10px 13px;gap:9px;border:1px solid #dde5d3}.mode-button svg{width:16px;height:16px}.mode-button strong{font-size:10px}.mode-button small{display:none}.main{padding:22px 20px}.intro{margin-bottom:18px}.intro h1{font-size:22px}.intro p{font-size:10px}.intro .edition{font-size:8px}.game-content{height:57vh;min-height:400px}.footer{margin-bottom:4px}}@media(max-width:550px){.topbar{height:70px;padding:0 16px}.topright{gap:7px}.topright .pill{display:none}.brand{width:136px;height:60px}.brand img{width:161px;height:161px;top:-50px;left:-16px}.topright .icon-button{width:34px;height:34px}.topright .icon-button svg{width:17px;height:17px}.sidebar{padding:12px 14px 0;gap:6px}.mode-button{padding:9px 11px;border-radius:9px}.mode-button strong{font-size:9px}.mode-button svg{width:14px;height:14px}.main{padding:21px 12px 18px}.intro{padding:0 5px}.intro h1{font-size:20px;letter-spacing:-.8px}.intro p{font-size:9px}.intro .edition{display:none}.game-card{border-radius:15px}.game-toolbar{padding:12px 10px;gap:5px}.difficulty{padding:7px 11px;font-size:9px}.game-toolbar .board-spec{font-size:8px;gap:6px}.board-spec span+span{padding-left:6px}.game-content{height:52vh;min-height:375px;max-height:550px}.hud{top:14px;padding:9px 15px;gap:16px;border-radius:12px}.hud-stat{gap:6px;min-width:65px}.hud-stat strong{font-size:19px}.hud-stat small{font-size:6px;letter-spacing:1px}.hud-stat svg{width:16px}.mascot{width:38px;height:38px;font-size:19px;border-width:4px}.scene-tools{inset:auto auto 15px 13px;gap:5px}.scene-tools .icon-button{width:28px;height:28px;border-radius:7px}.scene-tools svg{width:14px}.stage-hint{font-size:8px;bottom:61px;padding:7px 12px}.stage-watermark{width:67px;height:30px;bottom:14px;right:12px}.stage-watermark img{width:80px;height:80px;top:-25px;left:-8px}.game-bottom{padding:12px 10px;gap:7px}.action-switch button{padding:8px 10px;font-size:9px;gap:5px}.action-switch svg{width:13px;height:13px}.bottom-actions{gap:6px}.bottom-actions .secondary{padding:9px 10px;font-size:9px}.bottom-actions .primary{padding:10px 11px;font-size:9px;gap:6px}.bottom-actions .primary svg{width:13px}.key-tips{margin:13px 0 18px;gap:10px;font-size:7px;flex-wrap:wrap}.key-tips .desktop-tip{display:none}.info-row{gap:7px;grid-template-columns:1fr 1fr}.info-card{padding:13px 10px;border-radius:10px}.info-card:first-child{display:none}.info-card strong{font-size:10px}.info-card small{font-size:7px}.info-card em{font-size:15px}.footer{font-size:7px;margin-top:17px;padding:0 4px}.modal-backdrop{padding:12px}.modal{padding:22px 18px;border-radius:18px;max-height:94dvh}.modal-head h2{font-size:20px}.field{font-size:10px}.field select{min-width:105px;font-size:10px}.field input[type=range]{width:110px}.badge-grid{grid-template-columns:repeat(3,1fr);gap:7px}.badge{padding:13px 7px}.stats-grid{gap:7px}.stat-box{padding:12px}.stat-box strong{font-size:20px}.stat-box small{font-size:8px}.theme-grid{gap:5px}.theme-option{padding:5px;font-size:7px}.theme-preview{height:35px}.studio-grid{grid-template-columns:1fr}.studio-preview{display:none}.tutorial-steps{gap:8px}.tutorial-step{font-size:10px;padding:14px}.calendar{grid-template-columns:repeat(7,1fr)}.modal-actions .primary,.modal-actions .secondary{font-size:10px}.result-hero h2{font-size:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.brand img{filter:brightness(1.09)}
