:root{font-family:ui-rounded,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#253b35;background:#f7f9f5;font-synthesis:none;--green: #28654f;--muted: #77857d;--line: #e0e7dd;--yellow: #efb943}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d49b25;outline-offset:4px}button{color:inherit}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:36px;letter-spacing:-1px;line-height:1.4}h2{font-size:19px}p{line-height:1.8}button{border:0;background:none}button:enabled{transition:background .18s,transform .18s,box-shadow .18s}.app-shell{max-width:1180px;margin:auto;padding:0 40px}.header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-align:left;font-size:21px;font-weight:800;padding:0}.brand-mark{font-size:34px;background:#e9efdf;border-radius:18px;padding:8px}.brand small{display:block;font-size:12px;font-weight:500;color:var(--muted);letter-spacing:2px;margin-top:5px}.header-tools{display:flex;align-items:center;gap:16px}.star-wallet{display:flex;gap:7px;align-items:center;background:#fff3cf;padding:10px 16px;border-radius:30px;color:#825b14;font-weight:700}.star-wallet svg{color:#d49922}.star-wallet span{font-size:14px;font-weight:500}.icon-button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line)}.welcome{display:flex;align-items:center;justify-content:space-between;padding:43px 0 36px}.eyebrow{font-size:13px;letter-spacing:1px;font-weight:600;color:var(--green);display:flex;align-items:center;gap:7px}.dot{height:7px;width:7px;background:#75a46c;border-radius:50%}.welcome h1{margin:14px 0 10px;font-size:37px}.welcome h1>span{color:var(--green)}.welcome p{color:var(--muted);font-size:15px}.companion{display:flex;align-items:center;flex-direction:column;gap:7px;font-size:12px;color:#77857d;margin-right:30px}.companion-animal{font-size:76px;position:relative;line-height:1.2}.companion-animal i{position:absolute;font-size:28px;top:-12px;right:8px;font-style:normal}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-heading h2{display:flex;align-items:center;gap:8px}.section-heading>span{font-size:13px;color:var(--muted)}.game-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.game-card{text-align:left;background:#fff;border:2px solid transparent;border-radius:20px;padding:21px 23px 0;box-shadow:0 4px 16px #273b3505;position:relative;overflow:hidden}.game-card.schulte{background:#eaf1e6}.game-card.detective{background:#fff0d6}.game-card.treasure{background:#e9edf9}.game-card.chosen{border-color:var(--green);box-shadow:0 3px #28654f20}.game-card:enabled:hover{transform:translateY(-3px)}.card-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1px;color:#73806f}.choice-indicator{border:1px solid #a7b5a0;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.chosen .choice-indicator{background:var(--green);color:#fff;border-color:var(--green)}.mini-board{display:grid;width:122px;gap:5px;margin:24px auto;transform:rotate(-6deg);grid-template-columns:repeat(3,1fr)}.mini-schulte{grid-template-columns:repeat(3,1fr)}.mini-board span{display:grid;place-items:center;background:#fff9;height:35px;border-radius:7px;font-size:20px;font-weight:700;color:#5e7954;box-shadow:0 2px #0000000a}.mini-board .accent{background:#538a62;color:#fff}.mini-detective{grid-template-columns:repeat(3,1fr);width:160px;margin-top:35px;margin-bottom:36px;transform:rotate(5deg);gap:8px}.mini-detective span{color:#997837;height:43px}.mini-detective .accent{background:#eab94d;color:#513e16;outline:2px dashed #bd8a21;outline-offset:2px}.mini-treasure{grid-template-columns:repeat(2,1fr);width:102px;transform:rotate(-5deg);margin-top:27px;margin-bottom:28px}.mini-treasure span{height:51px;color:#7887b6;font-size:26px}.game-card h3{font-size:22px;margin-bottom:7px}.game-card p{font-size:13px;color:#6c7a6f;white-space:nowrap}.card-foot{border-top:1px solid #72806426;display:flex;align-items:center;justify-content:space-between;margin-top:21px;padding:16px 0;font-size:12px;color:#60705f}.launch-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:24px}.launch-panel h2{display:flex;align-items:center;gap:8px;font-size:16px}.launch-panel p{font-size:12px;color:var(--muted);margin-top:6px}.level-options{display:flex;gap:8px}.level-options button{padding:11px 17px;border:1px solid var(--line);border-radius:11px;min-width:100px}.level-options span{font-size:15px;font-weight:700}.level-options small{font-size:11px;display:block;color:#7c867c;margin-top:5px}.level-options .selected,.avatars .selected,.outfits .selected{border-color:var(--green);background:#eef4e9;box-shadow:inset 0 0 0 1px var(--green)}.primary,.dark-button,.outline{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;border-radius:10px;padding:12px 21px;font-weight:600;font-size:15px}.primary{background:var(--green);color:#fff;box-shadow:0 3px #164b39}.primary:enabled:hover,.dark-button:enabled:hover{background:#1a503d}.outline{border:1px solid #c8d4c4;background:#fff}.dark-button{background:var(--green);color:#fff}.start{white-space:nowrap}.friends-panel{margin-top:25px;display:flex;align-items:center;gap:20px;padding:27px 30px;border:1px solid #dce5d6;border-radius:18px;background:#edf2e7}.friends-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:17px;background:#dfe9d2;color:var(--green)}.friends-panel .eyebrow{font-size:11px;margin-bottom:5px}.friends-panel h2{font-size:19px}.friends-panel p{font-size:13px;color:var(--muted);margin-top:4px}.friend-actions{margin-left:auto;display:flex;gap:10px}.gentle-note{display:flex;justify-content:center;gap:8px;align-items:center;color:#8a9488;font-size:12px;padding:23px 0}footer{border-top:1px solid var(--line);padding:21px 0;display:flex;justify-content:space-between;font-size:12px;color:#939c90}footer span:first-child{font-weight:600}.play-main{max-width:800px;margin:25px auto 60px;min-height:65vh}.back{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--muted);padding:10px 0}.play-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0}.play-heading h1{font-size:29px;margin-top:6px}.timer{display:flex;gap:7px;align-items:center;color:var(--muted);font-variant-numeric:tabular-nums}.game-surface{background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px}.instruction{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px;font-size:17px}.instruction>span>b{display:block}.instruction small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.instruction>b{background:#edf4e7;color:var(--green);padding:9px 17px;border-radius:10px;white-space:nowrap}.target-number{font-size:26px;letter-spacing:3px}.pattern{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;background:#d7e1d2;padding:3px;border-radius:7px;flex-shrink:0}.pattern span{display:grid;place-items:center;font-size:20px;background:#f5f8f1;width:34px;height:34px}.board{display:grid;gap:8px;max-width:540px;margin:auto}.board button{background:#f3f6ef;border:1px solid #dfe6d8;aspect-ratio:1;border-radius:10px;font-size:clamp(18px,3.4vw,32px);font-weight:650;position:relative;min-width:0;padding:0;font-variant-numeric:tabular-nums}.board button:enabled:hover{background:#e0ead8}.board button.checked,.board button.found{background:#347153;color:#fff;border-color:#347153;opacity:1}.board button.hinted{outline:3px dashed #dbac3c;outline-offset:-5px;background:#fff5d7;color:#5c491f}.board-detective button{font-size:clamp(16px,2.7vw,24px)}.cell-check{position:absolute;right:3px;top:0;font-size:10px}.game-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}.hint-button{display:flex;align-items:center;gap:5px;color:#8c6a20;background:#fff4d9;padding:10px;border-radius:8px;font-size:14px}.muted{color:var(--muted);font-size:13px}.feedback{color:#966f26;min-height:26px;font-size:14px;margin-top:10px}.demo-note{display:flex;align-items:center;gap:6px;font-size:14px;background:#fff5db;padding:10px;border-radius:8px;margin-bottom:20px}.results,.lobby{text-align:center;background:#fff;padding:35px 28px;border:1px solid var(--line);border-radius:24px;margin-top:22px}.results .eyebrow,.lobby .eyebrow{justify-content:center}.result-animal{font-size:64px;display:block;margin-bottom:10px;animation:celebrate .5s ease-out}.results h1,.lobby h1{font-size:29px;margin:10px 0}.results>p,.lobby>p{color:var(--muted);font-size:15px}.earned-stars{font-size:46px;color:#e7b139;letter-spacing:10px;margin:18px}.earned-stars small{display:block;font-size:14px;color:#8b792c;letter-spacing:0}.result-stats{display:flex;justify-content:center;gap:35px;padding:20px 0 30px}.result-stats>div{display:flex;flex-direction:column;gap:7px}.result-stats strong{font-size:27px}.result-stats small{font-size:13px}.result-stats span{font-size:13px;color:var(--muted)}.rest-note{padding:10px;background:#f3f6ec;border-radius:10px;margin-bottom:20px}.room-bar{display:flex;align-items:center;gap:15px;justify-content:space-between}.room-code{display:flex;align-items:center;gap:8px;font-size:14px}.room-code b{letter-spacing:3px;font-size:20px;color:var(--green)}.connection{color:var(--green);font-size:12px}.connection.offline{color:#ab711a}.members{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;margin:28px 0}.member{background:#f4f7ef;border-radius:15px;padding:20px 8px;display:flex;flex-direction:column;gap:8px}.member>span{font-size:38px}.member b{font-size:14px;overflow-wrap:anywhere}.member small{font-size:12px;color:var(--muted)}.lobby-actions{display:flex;justify-content:center;gap:12px;margin-bottom:15px}.countdown{text-align:center;padding:100px 0}.countdown strong{font-size:100px;display:block;color:var(--green)}.countdown p{color:var(--muted)}.scoreboard{margin:25px auto;text-align:left;max-width:530px}.scoreboard>div{display:flex;align-items:center;gap:18px;padding:14px 8px;border-bottom:1px solid var(--line);font-size:14px}.scoreboard>div>strong{margin-left:auto;font-size:14px}.scoreboard>div>b{color:#9d791e;min-width:55px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#182c2466;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;width:470px;max-height:90vh;overflow:auto;background:#fff;border-radius:25px;padding:32px;text-align:center;box-shadow:0 20px 80px #142e2433}.modal-close{position:absolute;top:14px;right:14px}.modal-mascot{font-size:55px}.modal h2{font-size:23px;margin:10px 0}.modal p{font-size:14px;color:var(--muted)}.avatars{display:flex;gap:6px;justify-content:center;margin:20px 0}.avatars button{font-size:27px;border-radius:10px;border:1px solid var(--line);padding:7px}.modal label{display:block;text-align:left;font-size:14px;font-weight:600;margin-top:16px}.modal input,.modal select{display:block;width:100%;border:1px solid #d5ded0;border-radius:9px;padding:12px;background:#f9fbf6;margin-top:7px;color:inherit;min-width:0}.room-settings{display:flex;gap:15px}.room-settings label{flex:1}.full{width:100%;margin-top:25px}.outfits{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:22px 0}.outfits button{display:flex;flex-direction:column;align-items:center;padding:15px;border:1px solid var(--line);border-radius:12px;gap:7px;font-size:14px}.outfits span{font-size:32px}.outfits small{font-size:12px;color:var(--muted)}.toast{position:fixed;top:12px;left:50%;transform:translate(-50%);max-width:90vw;background:#253b35;color:#fff;box-shadow:0 5px 25px #0002;border-radius:12px;padding:14px 22px;z-index:30;font-size:14px;text-align:center}@keyframes celebrate{0%{transform:scale(.6) rotate(-12deg)}to{transform:scale(1) rotate(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:900px){.size-3,.size-2{max-width:420px}.size-4{max-width:450px}}@media(max-width:1000px){.app-shell{padding:0 24px}.launch-panel{flex-wrap:wrap}.launch-panel>div:first-child{flex-basis:100%}.level-options,.level-options button{flex:1}.friends-panel{gap:15px}.friend-actions{flex-direction:column}.game-card{padding:18px 16px 0}.game-card p{font-size:12px}.welcome h1{font-size:31px}}@media(max-width:650px){.app-shell{padding:0 17px}.header{height:82px}.brand{font-size:17px;gap:7px}.brand-mark{font-size:26px;padding:7px;border-radius:13px}.brand small{font-size:10px;letter-spacing:1px}.header-tools{gap:8px}.star-wallet{padding:8px 10px;font-size:14px}.star-wallet span{display:none}.icon-button{width:35px;height:35px}.welcome{padding:28px 0}.welcome h1{font-size:26px;max-width:290px;margin:11px 0 8px}.welcome p{font-size:13px;max-width:255px}.welcome .eyebrow{font-size:11px}.companion{margin:0}.companion-animal{font-size:52px}.companion>span:last-child{display:none}.section-heading>span{font-size:10px}.section-heading h2{font-size:16px}.game-cards{grid-template-columns:1fr;gap:12px}.game-card{padding:15px 18px 12px;min-height:148px}.card-top{font-size:10px;max-width:calc(100% - 125px)}.choice-indicator{position:absolute;top:15px;right:14px}.game-card h3{font-size:20px;margin-top:14px}.game-card p{font-size:12px;max-width:70%;white-space:normal}.card-foot{border:0;margin:7px 0 0;padding:0;max-width:65%;font-size:11px}.card-foot svg{display:none}.mini-board{position:absolute;right:24px;top:34px;width:88px;margin:0;gap:4px}.mini-board span{height:25px;font-size:16px;border-radius:5px}.mini-detective{width:101px;top:58px;gap:6px}.mini-detective span{height:27px;font-size:15px}.mini-treasure{width:73px;right:32px;top:42px}.mini-treasure span{height:34px;font-size:21px}.launch-panel{padding:18px;gap:15px;margin-top:16px}.level-options{width:100%;gap:7px}.level-options button{min-width:0;padding:10px 5px}.level-options span{font-size:14px}.level-options small{font-size:10px}.start{width:100%}.friends-panel{padding:20px;flex-wrap:wrap;margin-top:16px;gap:12px}.friends-icon{height:42px;width:42px;border-radius:12px}.friends-panel h2{font-size:16px}.friends-panel p{font-size:11px}.friends-panel .eyebrow{font-size:10px}.friend-actions{flex-direction:row;width:100%;margin-top:5px}.friend-actions button{flex:1;font-size:13px;padding:10px}.gentle-note{font-size:10px;gap:5px}footer{font-size:10px}.play-main{margin-top:16px}.play-heading h1{font-size:25px}.play-heading .eyebrow{font-size:11px}.timer{font-size:13px}.game-surface{padding:15px 10px}.instruction{font-size:14px;padding:0 4px}.instruction>b{padding:8px 10px;font-size:19px}.board{gap:4px}.board button{border-radius:6px}.board.size-8,.board.size-9{gap:3px}.board-detective.size-8 button{font-size:clamp(11px,3.4vw,17px);letter-spacing:-.7px}.board-treasure button{font-size:19px}.game-controls{padding:0 3px}.game-controls>.muted:last-child{font-size:11px}.room-bar{gap:5px;flex-wrap:wrap}.room-code{font-size:12px;gap:5px}.room-code b{font-size:17px}.connection{font-size:10px}.results,.lobby{padding:25px 14px}.results h1,.lobby h1{font-size:24px}.results>p,.lobby>p{font-size:13px}.result-stats{gap:20px}.result-stats strong{font-size:23px}.modal{padding:26px 20px}.avatars button{font-size:24px;padding:6px}.scoreboard>div{gap:8px;font-size:12px}.scoreboard>div>strong{font-size:12px}.demo-note{font-size:12px}.members{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.board.size-8 button,.board.size-9 button{min-height:40px;aspect-ratio:auto}.board-detective.size-8 button{font-size:14px}.scoreboard>div>span{min-width:0;flex:1;overflow-wrap:anywhere}.scoreboard>div>strong{max-width:95px}.game-controls .primary{font-size:14px}}@media(max-width:360px){.welcome .companion{display:none}.welcome h1{max-width:none}.header{gap:8px}.brand small{letter-spacing:0}.section-heading>span{max-width:115px;text-align:right}}@media(min-width:651px)and (max-width:900px){.game-card p{white-space:normal;min-height:44px}}.start-gate{text-align:center;padding:48px 20px;background:#fff;border:1px solid var(--line);border-radius:22px}.start-gate p{margin:12px 0}.start-gate .primary{margin-top:16px;min-width:160px}.feedback-slot{min-height:48px;margin-bottom:8px}.feedback-slot .feedback{margin:0;font-size:14px;line-height:1.5;color:#805b16}
