:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1d2b22;background:#b8d8c3}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden}button,textarea{font:inherit}#app,#scene{width:100vw;height:100vh}#scene{display:block;background:#a9d1c5;outline:none}.game-version{position:fixed;right:14px;bottom:10px;z-index:8;color:#3041389e;font-size:.68rem;font-weight:700;pointer-events:none;-webkit-user-select:none;user-select:none}#credits-open{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer;pointer-events:auto}#credits-open:hover,#credits-open:focus-visible{color:#205134f2}.credits-panel{position:fixed;inset:0;z-index:43;display:grid;place-items:center;padding:24px;overflow-y:auto;background:#19261f94;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.credits-panel-card{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;padding:22px;border:2px solid rgba(35,51,43,.25);border-radius:8px;background:#f8f7ed;box-shadow:0 30px 78px #121f195c}.credits-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:2px solid rgba(43,55,48,.2)}.credits-panel-head h2{margin:2px 0 0}#credits-panel-close{width:40px;height:40px;padding:0;background:#f8f0d0;font-size:1.25rem}.credits-markdown{color:#334a3d;line-height:1.65}.credits-markdown h1{display:none}.credits-markdown h2{margin:24px 0 8px;color:#1d2b22;font-size:1.05rem}.credits-markdown h3{margin:16px 0 5px;color:#315d47;font-size:.9rem}.credits-markdown ul{margin:8px 0;padding-left:22px}.credits-markdown blockquote{margin:20px 0 0;padding:10px 14px;border-left:4px solid #d7a341;background:#fff7dc}.game-performance-monitor{position:fixed;right:14px;bottom:32px;z-index:180;min-width:260px;padding:10px 12px;border:1px solid rgba(205,230,219,.36);background:#11211be0;color:#e5f3ec;font:600 12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:0;white-space:pre;pointer-events:none}.game-loading{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;gap:18px;padding:24px;background:#a9d1c5;color:#20372b}.game-loading-mark{width:54px;height:54px;flex:0 0 auto;border:4px solid #20372b;border-radius:8px;background:linear-gradient(90deg,transparent 35%,#20372b 35% 43%,transparent 43% 57%,#20372b 57% 65%,transparent 65%),linear-gradient(#f6c75c 0 38%,#70ad69 38% 100%);animation:game-loading-pulse .9s ease-in-out infinite alternate}.session-window-blocker{position:fixed;inset:0;z-index:240;display:grid;place-items:center;padding:24px;background:#1f3229b8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.session-window-card{width:min(440px,100%);padding:28px;border:3px solid #29463a;border-radius:8px;background:#f7f5e6;box-shadow:0 18px 48px #10201947}.session-window-card h2{margin:4px 0 12px;font-size:clamp(1.45rem,5vw,2rem);letter-spacing:0}.session-window-card p:last-child{margin:0;color:#587066;font-weight:650;line-height:1.65}.game-loading h1,.game-loading p{margin:0}.game-loading h1{margin:3px 0 5px;font-size:1.2rem}.game-loading p:last-child{color:#4c6558;font-size:.86rem}.game-loading-error>div:last-child{max-width:460px}.game-loading-error .game-loading-mark{animation:none;filter:grayscale(.6)}.game-loading-error ul{margin:10px 0 0;padding-left:1.2em;color:#20372b;font-size:.86rem;line-height:1.6}.game-loading-error code,.game-loading-error kbd{font-size:.8rem}.game-loading-error kbd{padding:0 4px;border:1px solid #4c6558;border-radius:4px;background:#f7f5e6;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}@keyframes game-loading-pulse{to{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.game-loading-mark{animation:none}}.hud{position:fixed;z-index:10;border:2px solid rgba(44,56,48,.14);border-radius:8px;background:#fcf9ebe6;box-shadow:0 16px 36px #18282229;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.hud-rail{position:fixed;top:20px;left:20px;z-index:20;width:min(286px,calc(100vw - 40px));pointer-events:none}.hud-left{position:relative;top:auto;left:auto;width:100%;padding:14px;pointer-events:auto}.server-connection-status{margin:9px 0;padding:8px 9px;border-left:4px solid #b5372f;background:#fff0ed;color:#a12822;font-weight:800;font-size:.76rem;line-height:1.35}.notification-stack{position:relative;width:100%;height:100px;margin-top:10px;pointer-events:auto}.notification-card{position:absolute;top:0;left:0;display:grid;grid-template-columns:10px minmax(0,1fr) 24px;align-items:center;gap:12px;width:100%;height:84px;padding:12px 12px 12px 14px;overflow:hidden;border:2px solid #31463b;border-radius:8px;background:#fffdf2;box-shadow:0 12px 26px #18282233;color:#24372d;text-align:left;cursor:pointer;transform:translateY(var(--stack-offset)) scale(var(--stack-scale));transform-origin:top center;transition:transform .18s ease,opacity .18s ease}.notification-card.discovery{background:#fff4cf}.notification-card.reward{background:#edf7e9}.notification-card.item{background:#e9f5f0}.notification-card.challenge{background:#fff0c7}.notification-card[aria-hidden=true]{pointer-events:none}.notification-marker{width:10px;height:38px;background:#d29a31}.notification-card.reward .notification-marker{background:#5a9b62}.notification-card.item .notification-marker{background:#3f8e7b}.notification-card.challenge .notification-marker{background:#c86f34}.notification-copy{display:grid;gap:4px;min-width:0}.notification-copy strong,.notification-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-copy strong{font-size:.86rem}.notification-copy>span{color:#526158;font-size:.76rem;font-weight:700}.notification-close{color:#405248;font-size:1.3rem;font-weight:700;line-height:1;text-align:center}.notification-count{position:absolute;right:8px;bottom:0;z-index:14;min-width:28px;padding:2px 6px;border:2px solid #31463b;border-radius:999px;background:#fffdf2;color:#31463b;font-size:.68rem;font-weight:900;text-align:center}.brand{display:flex;align-items:center;gap:9px}.brand-mark{position:relative;display:block;flex:0 0 auto;width:36px;height:36px;border:3px solid #21332b;border-radius:8px;background:linear-gradient(90deg,transparent 35%,#21332b 35% 43%,transparent 43% 57%,#21332b 57% 65%,transparent 65%),linear-gradient(#f7c95f 0 38%,#78b46d 38% 100%)}.brand-mark:after{content:attr(data-tooltip);position:absolute;top:calc(100% + 7px);left:-3px;z-index:30;width:max-content;max-width:210px;padding:5px 7px;border-radius:4px;background:#21372a;color:#fff;font-size:.68rem;font-weight:800;line-height:1.35;opacity:0;pointer-events:none;transform:translateY(-2px);transition:opacity 70ms ease,transform 70ms ease}.brand-mark:hover:after,.brand-mark:focus-visible:after{opacity:1;transform:translateY(0)}.brand-mark:hover,.brand-mark:focus-visible{border-color:#a66f22;box-shadow:0 0 0 3px #f7c95f8f;outline:0}p,h1,h2,h3,pre{margin:0}.brand p,.eyebrow,.status-grid span{color:#5d695d;font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.level-heading{display:flex;align-items:center;gap:7px}.level-label-greek{text-transform:none}.level-progress-badge{padding:2px 6px;border:1px solid rgba(76,62,45,.16);border-radius:5px;color:#493b31;font-size:.58rem;line-height:1.25}.level-progress-badge.locked{background:#f2c2bd}.level-progress-badge.active{background:#f5dda0}.level-progress-badge.completed{background:#b9dfbb}.developer-tool-link{display:inline-block;color:#5d695d;text-decoration:none}.developer-tool-link:hover{color:#29483a;text-decoration:underline;text-underline-offset:3px}.developer-tool-link:focus-visible{outline:3px solid #e69c3c;outline-offset:3px}h1{font-size:1.08rem;line-height:1.1}h2{font-size:1.05rem;line-height:1.2}.quest{margin-top:12px;padding-top:10px;border-top:1px solid rgba(43,55,48,.16)}.quest h2{font-size:.96rem}.quest p:last-child{display:-webkit-box;margin-top:5px;overflow:hidden;color:#405248;font-size:.8rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.quest p:last-child:not(:lang(zh)){-webkit-line-clamp:3}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:11px}.status-grid div{min-height:50px;padding:8px 9px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#fff7dc}.status-grid .hud-meowchant-tools{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:0;border:0;border-radius:0;background:transparent}.hud-meowchant-tools button{position:relative;display:grid;place-items:center;min-width:0;min-height:20px;padding:0;border:2px solid rgba(45,68,52,.12);border-radius:4px;background:#fff7dc;color:#18251f;cursor:pointer}.hud-meowchant-tools button:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 7px);top:50%;z-index:12;width:max-content;max-width:210px;padding:5px 7px;border-radius:4px;background:#21372a;color:#fff;font-size:.68rem;font-weight:800;line-height:1.35;opacity:0;pointer-events:none;transform:translate(3px,-50%);transition:opacity .12s ease,transform .12s ease}.hud-meowchant-tools button:hover:after,.hud-meowchant-tools button:focus-visible:after{opacity:1;transform:translateY(-50%)}.hud-meowchant-tools button:hover:not(:disabled),.hud-meowchant-tools button:focus-visible:not(:disabled){background:#ffe690;outline:0}.hud-meowchant-tools button:disabled{border-color:#2d44341a;background:#f6f0dc;color:#9ba39d;cursor:not-allowed}.hud-meowchant-tools svg{width:14px;height:14px;stroke-width:2}.status-grid strong{display:block;margin-top:4px;overflow:hidden;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.status-grid span{font-size:.62rem}.gem-flight{position:fixed;z-index:70;width:18px;height:18px;border:2px solid #8f6b24;border-radius:3px;background:#f4d35e;box-shadow:inset -5px -5px #ba832347,0 4px 10px #332a1447;pointer-events:none}.status-grid div.gem-arrival{animation:gem-hud-arrival .32s ease-out}@keyframes gem-hud-arrival{0%{background:#fff7dc;transform:scale(1)}42%{background:#ffe690;transform:scale(1.06)}to{background:#fff7dc;transform:scale(1)}}.code-panel{display:flex;flex-direction:column;top:20px;right:20px;bottom:20px;left:calc(32px + min(286px,calc(100vw - 40px)));width:auto;max-height:calc(100dvh - 40px);padding:16px;overflow:hidden;container-type:inline-size;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.code-panel.active{z-index:30}.panel-head,.panel-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head-actions{display:flex;align-items:center;gap:8px}.challenge-close{width:36px;height:36px;padding:0;border:2px solid #2f4438;border-radius:7px;background:#fffdf2;color:#25382e;font-size:1.35rem;font-weight:900;line-height:1}.challenge-close:hover,.challenge-close:focus-visible{background:#f7c95f;outline:0}.challenge-center-link{display:inline-flex;min-height:34px;align-items:center;gap:5px;padding:6px 9px;border:2px solid #2f4438;border-radius:7px;background:#fffdf2;color:#25382e;font-size:.74rem;font-weight:900;text-decoration:none}.challenge-center-link:hover,.challenge-center-link:focus-visible{background:#f7c95f;outline:0}.draft-status{min-width:7em;color:#637068;font-size:.72rem;font-weight:800}.draft-status[data-tone=dirty],.draft-status[data-tone=saving]{color:#825d18}.draft-status[data-tone=error]{color:#9b3e35}.panel-actions .judge-output{flex:0 0 100%}.pill{min-width:86px;padding:8px 10px;border-radius:999px;background:#e9dec2;color:#513f26;font-size:.78rem;font-weight:800;text-align:center}.pill.success{background:#bee59b;color:#1f4d2c}.challenge-cost-summary{display:grid;grid-template-columns:1fr auto;gap:2px 12px;margin-top:12px;padding:9px 12px;border-left:4px solid #d29a31;background:#fff7dc;color:#3b443e;font-size:.78rem}.panel-actions .challenge-cost-summary{flex:1 0 100%;width:100%;margin-top:0}.challenge-cost-summary strong{color:#204b31}#challenge-token-threshold.discounted{padding:4px 28px 4px 8px;border-radius:5px;background-color:#ffe39b;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Ctext x='4' y='14' fill='%23b66f18' fill-opacity='.25' font-family='sans-serif' font-size='13' font-weight='700'%3E%25%3C/text%3E%3C/svg%3E");box-shadow:inset 0 0 0 1px #b66f183d;cursor:help}.challenge-cost-summary small{color:#657168;font-size:.72rem}.challenge-cost-details{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 18px;padding-top:3px}#challenge-completion-reward{color:#3d6849;text-align:right}.challenge-tabs{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;border-bottom:2px solid #c8d0c9}.challenge-tabs button{min-height:38px;padding:7px 12px;border:0;border-radius:0;background:transparent;color:#69756d;box-shadow:none}.challenge-tabs button.active{border-bottom:4px solid #d8894d;color:#1d3026}.challenge-tabs button:focus-visible{outline:2px solid #d8894d;outline-offset:-2px}.challenge-workspace{display:grid;flex:1;min-height:0}.challenge-tab-panel{min-height:0;margin-top:10px}.challenge-tab-panel:not([hidden]){display:flex;flex-direction:column}.workspace-heading{display:none;margin:0 0 8px;color:#526158;font-size:.78rem;text-transform:uppercase}.code-panel.split-layout .challenge-workspace{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px}.code-panel.split-layout .challenge-tab-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}.code-panel.split-layout .workspace-heading{display:block}.prompt{flex:1;min-height:0;max-height:none;margin-top:0;padding:18px;overflow:auto;border:1px solid #cbd3cc;border-radius:8px;background:#fff;color:#26332c;font-size:.9rem;line-height:1.65;white-space:normal}.judge-rewards{margin:10px 0 0;padding:8px 10px;border-left:4px solid #70ad69;background:#edf7e9;color:#21472d;font-weight:800}.judge-summary small{color:#657168;font-size:.7rem;font-weight:800}.prompt h1,.prompt h2,.prompt h3,.prompt p,.prompt pre{margin:0}.prompt h2,.prompt h3{margin-top:18px;color:#26332c;font-size:.94rem;text-transform:none}.prompt h2:first-child,.prompt h3:first-child{margin-top:0}.prompt p,.prompt pre{margin-top:8px}.prompt pre{padding:10px 12px;overflow-x:auto;border:0;border-left:4px solid #70ad69;border-radius:0;background:#f0f3f0;color:#26332c}.prompt code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.prompt table{width:100%;margin:12px 0;border-collapse:collapse}.prompt th,.prompt td{padding:8px 10px;border:1px solid #ccd4ce;text-align:left}.prompt .katex-display{margin:8px 0 2px;overflow-x:auto;overflow-y:hidden}.prompt details{margin-top:12px;padding:0 12px;border:1px solid #ccd4ce;border-left:4px solid #70ad69;background:#f7faf7}.prompt details[open]{padding-bottom:8px}.prompt summary{padding:8px 0;color:#21472d;font-weight:700;cursor:pointer}.prompt details table{background:#fff}.code-panel .code-editor-host{display:block;flex:1;width:100%;height:auto;min-height:180px;margin-top:0;border:2px solid #2f4438;border-radius:8px;overflow:hidden;background:#17201b}.code-panel .cm-editor{height:100%;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.86rem;line-height:1.45}.code-panel .code-editor-host:not([data-editor-theme]) .cm-editor{background:#17201b;color:#e7efe9}.code-panel .cm-scroller{overflow:auto;font-family:inherit}.code-panel .cm-content{min-height:100%;padding:12px 4px}.code-panel .code-editor-host:not([data-editor-theme]) .cm-content{caret-color:#fff7dc}.code-panel .code-editor-host:not([data-editor-theme]) .cm-cursor,.code-panel .code-editor-host:not([data-editor-theme]) .cm-dropCursor{border-left-color:#fff!important}.code-panel .cm-line{padding:0 8px}.code-panel .code-editor-host:not([data-editor-theme]) .cm-gutters{border-right:1px solid #3b4b42;background:#111813;color:#819187}.code-panel .code-editor-host:not([data-editor-theme]) .cm-activeLine,.code-panel .code-editor-host:not([data-editor-theme]) .cm-activeLineGutter{background:#f7c95f14}.code-panel .code-editor-host:not([data-editor-theme]) .cm-selectionBackground,.code-panel .code-editor-host:not([data-editor-theme]) .cm-content ::selection{background:#7dbea357!important}.code-panel .code-editor-host:has(.cm-focused){border-color:#d8894d}.challenge-editor-resizer{position:relative;flex:0 0 14px;width:100%;cursor:row-resize;touch-action:none}.challenge-editor-resizer:before{position:absolute;top:5px;right:calc(50% - 30px);left:calc(50% - 30px);height:4px;border-radius:999px;background:#aab5ad;content:"";transition:background .12s ease,transform .12s ease}.challenge-editor-resizer:hover:before,.challenge-editor-resizer:focus-visible:before,.challenge-editor-resizer.dragging:before{background:#d8894d;transform:scaleX(1.25)}.challenge-editor-resizer:focus-visible{outline:2px solid #d8894d;outline-offset:-2px}.panel-actions{display:grid;grid-template-columns:minmax(0,1fr);flex:0 0 auto;margin-top:12px;align-items:flex-start}#challenge-code-panel.editor-resized .panel-actions{flex:1 1 170px;min-height:0;margin-top:0;overflow-y:auto;align-content:flex-start}#challenge-code-panel.editor-resized .judge-cases{max-height:none}.submission-controls{display:flex;flex:0 0 auto;align-items:center;flex-wrap:nowrap;gap:8px}.panel-action-primary-row{display:flex;flex:1 0 100%;width:100%}.panel-action-primary-row{display:grid;grid-template-columns:max-content minmax(7em,1fr);align-items:center;gap:8px 16px}.panel-action-statuses{display:grid;min-width:0;justify-items:end;gap:2px;text-align:right}.panel-action-statuses .draft-status{min-width:0}.free-practice-toggle{display:inline-flex;min-height:42px;align-items:center;gap:7px;color:#526257;cursor:pointer;font-size:.72rem;font-weight:900;white-space:nowrap}.free-practice-toggle input{position:absolute;width:1px;height:1px;opacity:0}.free-practice-switch{position:relative;width:38px;height:22px;flex:0 0 38px;border:2px solid #53685c;border-radius:999px;background:#dfe6e1;transition:border-color .14s ease,background .14s ease}.free-practice-switch:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#53685c;transition:transform .14s ease,background .14s ease}.free-practice-toggle input:checked+.free-practice-switch{border-color:#36799a;background:#bfe8f2}.free-practice-toggle input:checked+.free-practice-switch:after{background:#286886;transform:translate(16px)}.free-practice-toggle:has(input:focus-visible){outline:3px solid #75bad3;outline-offset:2px}body.free-practice-active .code-panel{border-color:#397b99;background:#edf8fbf7;box-shadow:0 18px 48px #1f4f6647}body.free-practice-active .code-panel .panel-head,body.free-practice-active .challenge-cost-summary{background:#e8f7fb}body.free-practice-active #submit-code{border-color:#315b70;background:#82c6d8;color:#173642}body.free-practice-active .source-file-button{border-color:#54717d;background:#f4fafb;color:#294652}body.free-practice-active .challenge-cost-summary{border-left-color:#4a9ab7;color:#294753}body.free-practice-active .challenge-cost-summary strong{color:#245e76}body.free-practice-active .challenge-cost-summary small,body.free-practice-active #challenge-completion-reward{color:#58727c}body.free-practice-active .judge-output.timeline,.judge-output.timeline.free-practice-result{border-color:#397b993d;background:#f2fafc}body.free-practice-active .judge-output.timeline .judge-line:before,.judge-output.timeline.free-practice-result .judge-line:before{background:#c8dce3}body.free-practice-active .judge-output.timeline .judge-case,.judge-output.timeline.free-practice-result .judge-case{background:#fbfeff}body.free-practice-active .judge-output.timeline .judge-case.selected,.judge-output.timeline.free-practice-result .judge-case.selected{outline-color:#4a9ab7}.free-practice-confirm{width:min(460px,calc(100% - 32px));padding:0;border:2px solid #315b70;border-radius:8px;background:#f7fcfd;color:#18313c;box-shadow:0 20px 52px #12334252}.free-practice-confirm::backdrop{background:#12262fa3}.free-practice-confirm-card{padding:24px}.free-practice-confirm-card h2,.free-practice-confirm-card p{margin:0}.free-practice-confirm-card h2{margin-top:5px;font-size:1.35rem}.free-practice-confirm-card>p:last-of-type{margin-top:12px;color:#516b76;line-height:1.6}.free-practice-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.free-practice-confirm-actions button{min-height:40px;padding:0 14px;background:#8fd3e5}.free-practice-confirm-actions .secondary{background:#fff}.source-file-button{display:inline-flex;min-width:104px;height:42px;align-items:center;justify-content:center;gap:6px;padding:0 12px;background:#f8f0d0}.source-file-button span{font-size:1rem}.source-file-status{min-width:0;color:#637068;font-size:.72rem;font-weight:800;overflow-wrap:anywhere;text-align:right}.source-file-status[data-tone=success]{color:#376846}.source-file-status[data-tone=error]{color:#9b3e35}@container (max-width: 1050px){.source-file-status:not([data-tone]) .source-file-format{display:none}}@container (max-width: 440px){.source-file-status:not([data-tone]){display:none}}button{border:2px solid #23332b;border-radius:8px;background:#f0b35d;color:#18231d;cursor:pointer;font-weight:900;box-shadow:inset 0 -3px #412a1629}button:active{transform:translateY(1px)}#submit-code{min-width:104px;height:42px}#submit-code:disabled,.source-file-button:disabled{cursor:not-allowed;opacity:.5}.judge-output{flex:1 1 100%;min-width:0;color:#526257;font-size:.84rem;line-height:1.35}.judge-output.timeline{display:grid;gap:10px;width:100%;padding:10px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#fff7dc}.judge-output.compile-error-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;border-left:5px solid #bf4d43;border-radius:6px;background:#fff0ed}.compile-error-trigger{border:0;padding:0;background:transparent;color:#a7352d;font:inherit;font-weight:900;text-align:left;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;box-shadow:none;cursor:pointer}.compile-error-trigger:hover,.compile-error-trigger:focus-visible{color:#7f241f}.compile-error-meta{flex:0 0 auto;color:#8a615d;font-size:.74rem;font-weight:800}.compile-error-dialog{width:min(860px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:0;border:3px solid #304b3a;border-radius:8px;background:#f5f7f2;color:#1d2b22;box-shadow:0 18px 50px #14231a4d}.compile-error-dialog::backdrop{background:#18281e94}.compile-error-card{display:grid;grid-template-rows:auto auto minmax(0,1fr);max-height:calc(100vh - 38px)}.compile-error-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #ccd5cd}.compile-error-head h2,.compile-error-help{margin:0}#compile-error-close{width:42px;height:42px;padding:0;font-size:1.6rem}.compile-error-help{padding:14px 22px 0;color:#637067;font-weight:700}#compile-error-output{min-height:180px;max-height:62vh;margin:14px 22px 22px;padding:16px;overflow:auto;border:2px solid #5d6e62;border-radius:6px;background:#142019;color:#ffd8d2;font:.82rem/1.55 SFMono-Regular,Consolas,Liberation Mono,monospace;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;-webkit-user-select:text;user-select:text}.pill.error{border-color:#a7352d;background:#fff0ed;color:#a7352d}.judge-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.judge-summary strong{color:#1d2b22}.judge-summary-result{display:flex;flex:1 1 240px;min-width:0;align-items:center;flex-wrap:wrap;gap:8px}.judge-mode-badge{flex:0 0 auto;padding:3px 6px;border:1px solid #b9c3bc;border-radius:4px;background:#f2f5f2;color:#5b685f;font-size:.66rem;font-weight:900}.judge-mode-badge.free-practice{border-color:#83b9ca;background:#dff3f8;color:#28657d}.judge-summary-sentence{margin:0;color:#526158;line-height:1.55}.judge-total-cost-value{color:#80551b!important;white-space:nowrap}.judge-total-cost-value.free-practice{color:#28657d!important}.judge-summary>span{color:#697567;font-size:.78rem;font-weight:800}.judge-token-estimate{margin:0;padding:8px 10px;border-radius:8px;background:#f8dfb4;color:#6b4426;font-size:.78rem;font-weight:800;line-height:1.45}.judge-practice-cost{margin:0;padding:8px 10px;border-left:4px solid #4a9ab7;background:#dff3f8;color:#285b70;font-size:.76rem;font-weight:800;line-height:1.45}.judge-line{position:relative;display:flex;justify-content:space-between;gap:8px;padding:8px 2px 6px}.judge-line:before,.judge-line:after{content:"";position:absolute;left:14px;right:14px;top:21px;height:4px;border-radius:999px;background:#d9d1ac}.judge-output[data-status=out-of-tokens] .judge-line:after{background:#d29a31}.judge-line:after{right:calc(14px + (100% - 28px) * (1 - var(--progress, 0)));background:#5b9f68;transition:right .22s ease}.judge-node{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;min-width:30px;padding:0;border-radius:999px;border:2px solid #c9bf94;background:#fffdf2;color:#6e684d;font-size:.78rem;box-shadow:none}.judge-node:disabled{cursor:default;opacity:1}.judge-node.passed{border-color:#2f7d4e;background:#5b9f68;color:#fffdf3}.judge-node.failed{border-color:#9a3f35;background:#d95f4c;color:#fffdf3}.judge-node.warning{border-color:#b77a18;background:#f5d77f;color:#5f4319}.judge-cases{display:grid;gap:8px;max-height:130px;overflow:auto;padding-right:2px}.judge-case{padding:9px;border-left:4px solid #5b9f68;border-radius:8px;background:#fffdf2;animation:reveal-case .18s ease both}.judge-case.selected{outline:3px solid #d29a31;outline-offset:-3px;animation:judge-case-focus .52s ease-out}.judge-case.failed{border-left-color:#d95f4c}.judge-case.warning{border-left-color:#d29a31;background:#fff8df}.judge-case>div{display:flex;justify-content:space-between;gap:8px}.judge-case strong{color:#1d2b22}.judge-case span,.judge-case dt{color:#697567;font-size:.74rem;font-weight:800}.judge-case dl{display:grid;gap:5px;margin:8px 0 0}.judge-case dl div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px}.judge-case dl div.instrumented-actual{margin-top:2px;padding-top:6px;border-top:1px dashed #d9a096}.judge-case .instrumented-actual dt span{cursor:help;color:#9a3f35;text-transform:none}.judge-case dd{min-width:0;margin:0;color:#24332a;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;overflow-wrap:anywhere}.case-content-truncated{margin:6px 0 0;color:#a9c4b3;font-family:inherit;font-size:.72rem;font-weight:700;white-space:normal}.judge-input-load{border:0;padding:0;background:transparent;color:#315f3b;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}.judge-input-load:disabled{color:#697567;cursor:wait}.judge-case p{margin:8px 0 0;color:#9a3f35;font-weight:800}@keyframes reveal-case{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes judge-case-focus{0%{background:#ffe7a3}to{background:#fffdf2}}.move-pad{position:fixed;left:20px;bottom:20px;z-index:12;display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,48px);gap:8px}.move-pad button{width:48px;height:48px;padding:0;background:#f8f0d0;font-size:1.05rem}.move-pad button[data-move=up]{grid-column:2;grid-row:1}.move-pad button[data-move=left]{grid-column:1;grid-row:2}.move-pad button[data-move=down]{grid-column:2;grid-row:2}.move-pad button[data-move=right]{grid-column:3;grid-row:2}.camera-pad{position:fixed;left:20px;bottom:192px;z-index:12;display:flex;gap:8px}.camera-pad button{width:48px;height:48px;padding:0;background:#d6ead2;font-size:1.25rem}.zoom-pad{position:fixed;left:20px;bottom:248px;z-index:12;display:flex;gap:8px}.zoom-pad button{width:48px;height:48px;padding:0;background:#d6ead2;font-size:1.35rem;font-weight:800;line-height:1}.zoom-pad button:disabled{cursor:default;opacity:.45}.stats-toggle{background:#fffdf2!important;color:#25382e;cursor:pointer}.stats-toggle span{font-size:1.45rem;line-height:1}.stats-toggle:hover,.stats-toggle:focus-visible,.stats-toggle[aria-pressed=true]{background:#f7c95f!important;outline:0}.toggle-row{display:flex;align-items:center;gap:8px;color:#26392f;font-size:.86rem;font-weight:900}.config-account{min-width:0}.select-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,180px);align-items:center;gap:12px;max-width:420px;color:#26392f;font-size:.86rem;font-weight:900}.select-row select{min-height:34px;padding:0 10px;border:2px solid #31463b;border-radius:6px;background:#fffdf3;color:#1d2b22;font:inherit;font-weight:800;cursor:pointer}.select-row select:hover,.select-row select:focus-visible{border-color:#4c8b66;outline:3px solid rgba(76,139,102,.18)}.render-quality-note{display:block;max-width:520px;margin-top:-7px;color:#68756a;font-size:.72rem;line-height:1.55}.toggle-row input{width:18px;height:18px;accent-color:#f0b35d}.camera-pitch-control{display:grid;gap:7px;max-width:320px;color:#26392f;font-size:.82rem;font-weight:900}.camera-pitch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.camera-pitch-heading output{min-width:3ch;color:#9a6418;font-variant-numeric:tabular-nums;text-align:right}.camera-pitch-control input[type=range]{width:100%;accent-color:#e9a949}.camera-pitch-control input[type=range]:disabled{cursor:not-allowed;opacity:.42}.interact-hint{appearance:none;position:fixed;left:0;top:0;z-index:18;min-width:132px;padding:10px 14px;transform:translate(-50%,-100%);border:2px solid #23332b;border-radius:8px;background:#fff7dc;color:#1d2b22;box-shadow:0 12px 24px #18282229;font-size:.86rem;font-family:inherit;font-weight:900;text-align:center;cursor:pointer;pointer-events:auto;transition:opacity .12s ease}:where(:root:not(:lang(zh))) .interact-hint{max-width:min(320px,calc(100vw - 24px));overflow-wrap:break-word}.interact-hint:hover,.interact-hint:focus-visible{background:#ffeeb5;outline:3px solid rgba(231,164,48,.38);outline-offset:2px}.interact-hint:active{transform:translate(-50%,calc(-100% + 2px))}.interact-hint:hover:after,.interact-hint:focus-visible:after{background:#ffeeb5}.interact-hint:after{position:absolute;left:50%;bottom:-8px;width:12px;height:12px;transform:translate(-50%) rotate(45deg);border-right:2px solid #23332b;border-bottom:2px solid #23332b;background:#fff7dc;content:""}.model-hover-bubble{position:fixed;left:0;top:0;z-index:19;padding:7px 11px;transform:translate(-50%,calc(-100% - 10px)) rotate(-2deg);border:2px solid #23332b;border-radius:7px;background:#fffdf2;color:#25382e;box-shadow:3px 4px #23332b38;font-size:.82rem;font-weight:900;letter-spacing:0;pointer-events:none;white-space:nowrap}.model-hover-bubble:after{position:absolute;left:50%;bottom:-7px;width:10px;height:10px;transform:translate(-50%) rotate(45deg);border-right:2px solid #23332b;border-bottom:2px solid #23332b;background:#fffdf2;content:""}.dialog-box{position:fixed;left:50%;bottom:24px;z-index:30;width:min(560px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:18px;overflow-y:auto;transform:translate(-50%);border:2px solid rgba(35,51,43,.22);border-radius:8px;background:#fcf9ebf5;box-shadow:0 20px 42px #18282238;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.dialog-illustration{display:grid;place-items:center;height:min(46vh,420px);margin:12px 0 0;overflow:hidden;border:2px solid rgba(35,51,43,.2);border-radius:7px;background:#171c19}.dialog-illustration img{display:block;width:100%;height:100%;object-fit:contain}.hud-confirm-dialog{width:min(460px,calc(100vw - 32px));max-width:none;padding:0;border:2px solid #2c4638;border-radius:8px;background:#f8f7ed;color:#203129;box-shadow:0 28px 72px #121f195c}.hud-confirm-dialog::backdrop{background:#19261f8c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.hud-confirm-card{padding:24px}.hud-confirm-card h2{margin-top:4px;font-size:1.45rem}.hud-confirm-message{margin-top:16px;color:#526257;line-height:1.65}.hud-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.hud-confirm-actions button{min-width:104px;min-height:44px;padding:8px 16px}.hud-confirm-actions .hud-confirm-cancel{background:#fffdf4;box-shadow:inset 0 -3px #23332b1a}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}#dialog-close{width:36px;height:36px;padding:0;background:#f8f0d0;font-size:1.1rem}.dialog-line{min-height:54px;margin-top:12px;color:#26392f;font-size:1rem;font-weight:650;line-height:1.5}#dialog-line,.dialog-line-rest{display:contents}.dialog-line-rest{visibility:hidden}.dialog-line-rest .dialog-code-block{animation:none}.dialog-choices{display:grid;gap:8px;margin-top:12px}.dialog-choice{position:relative;min-height:42px;padding:8px 14px 8px 28px;overflow:hidden;border:2px solid rgba(35,51,43,.18);border-radius:6px;background:#fffdf3;color:#31443a;font:inherit;font-weight:900;text-align:left;cursor:pointer}.dialog-choice:before{position:absolute;top:7px;bottom:7px;left:9px;width:5px;border-radius:3px;background:transparent;content:""}.dialog-choice.selected{border-color:#398a68;background:#edf7dc;color:#193c2c}.dialog-choice.selected:before{background:#7cf5aa;box-shadow:0 0 6px #51d98a,0 0 14px #51d98ab8}.dialog-choice:disabled{cursor:wait;opacity:.68}.dialog-tone-important{color:#9b4b2f;font-weight:900}.dialog-tone-code{color:#356e9a;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-weight:900}.dialog-tone-danger{color:#bd4338;font-weight:900}.dialog-tone-item{color:#267c70;font-weight:900}.dialog-tone-npc{color:#356e9a;font-weight:900}.dialog-tone-success{color:#38834f;font-weight:900}.dialog-inline-code{padding:2px 5px;border:1px solid rgba(35,51,43,.16);border-radius:4px;background:#17231d;color:#ecf4ed;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.9em;font-weight:700}.dialog-inline-code.is-open-end{padding-right:0;border-right-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.dialog-inline-code.is-open-start{padding-left:0;border-left-width:0;border-top-left-radius:0;border-bottom-left-radius:0}.dialog-code-block{max-height:180px;margin:10px 0 2px;padding:12px 14px;overflow:auto;border:2px solid #344b3f;border-radius:6px;background:#121d18;color:#ecf4ed;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.82rem;font-weight:650;line-height:1.55;white-space:pre;animation:dialog-code-enter .18s ease-out}.dialog-inline-code .tok-keyword,.dialog-code-block .tok-keyword{color:#f0ae68}.dialog-inline-code .tok-typeName,.dialog-inline-code .tok-className,.dialog-code-block .tok-typeName,.dialog-code-block .tok-className{color:#77c9df}.dialog-inline-code .tok-variableName,.dialog-inline-code .tok-labelName,.dialog-code-block .tok-variableName,.dialog-code-block .tok-labelName{color:#8ed1ba}.dialog-inline-code .tok-number,.dialog-inline-code .tok-bool,.dialog-inline-code .tok-atom,.dialog-code-block .tok-number,.dialog-code-block .tok-bool,.dialog-code-block .tok-atom{color:#f3cf72}.dialog-inline-code .tok-string,.dialog-code-block .tok-string{color:#b9dc89}.dialog-inline-code .tok-string2,.dialog-code-block .tok-string2{color:#e99583}.dialog-inline-code .tok-comment,.dialog-inline-code .tok-meta,.dialog-code-block .tok-comment,.dialog-code-block .tok-meta{color:#91a49a;font-style:italic}.dialog-inline-code .tok-operator,.dialog-inline-code .tok-punctuation,.dialog-code-block .tok-operator,.dialog-code-block .tok-punctuation{color:#e99583}@keyframes dialog-code-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.dialog-actions{margin-top:14px}#dialog-progress{color:#5d695d;font-size:.8rem;font-weight:900}#dialog-next{min-width:82px;height:38px}.video-panel{position:fixed;inset:0;z-index:42;display:grid;place-items:center;padding:24px;background:#141f19ad;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.video-panel-card{width:min(960px,calc(100vw - 32px));padding:20px;border:2px solid rgba(35,51,43,.3);border-radius:8px;background:#f8f7ed;box-shadow:0 30px 78px #121f196b}.video-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px}.video-panel-head h2{margin:0}#video-panel-close{width:42px;height:42px;padding:0;background:#f8f0d0;font-size:1.3rem}.video-panel-frame{position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;border:3px solid #24372d;border-radius:6px;background:#101814}.video-panel-frame iframe{display:block;width:100%;height:100%;border:0}.video-panel-error{display:grid;height:100%;margin:0;place-items:center;color:#fff}.shop-panel{position:fixed;inset:0;z-index:41;display:grid;place-items:center;padding:24px;background:#19261f94;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.progression-panel{position:fixed;inset:0;z-index:42;display:grid;place-items:start center;padding:24px;overflow-y:auto;background:#19261f94;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.progression-panel-card{width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;padding:22px;border:2px solid rgba(35,51,43,.25);border-radius:8px;background:#f8f7ed;box-shadow:0 30px 78px #121f195c}.progression-panel-head{padding-bottom:16px;border-bottom:2px solid rgba(43,55,48,.2)}.progression-panel-head h2,.function-card-summary h3{margin:0}.progression-wallet{display:flex;align-items:center;gap:18px;color:#647168;font-size:.86rem}.progression-wallet strong{color:#205134}.progression-return{display:inline-flex;min-height:36px;align-items:center;gap:6px;margin-left:auto;margin-right:14px;padding:4px 12px;border:2px solid #23332b;border-radius:8px;background:#f0b35d;color:#18231d;font-size:.8rem;font-weight:900;white-space:nowrap}.progression-return small{overflow:hidden;max-width:220px;font-size:.72rem;font-weight:800;opacity:.8;text-overflow:ellipsis}#progression-panel-close{width:40px;height:40px;padding:0;background:#f8f0d0;font-size:1.25rem}.progression-tabs{display:flex;gap:0;border-bottom:2px solid #c8d1cb}.progression-tabs button{flex:1 1 0;padding:13px 10px 10px;border:0;border-bottom:4px solid transparent;background:transparent;color:#69766e}.progression-tabs button.active{border-bottom-color:#db8e42;color:#1d3026}.progression-page{padding-top:18px}.progression-state{padding:22px;color:#66746b;text-align:center}.progression-state.error{margin-top:14px;border:1px solid #d59a91;background:#fff5f2;color:#8a3732}.research-overview{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid #c8d1cb;background:#f4f7f2}.research-overview>div:first-child>p:last-child{margin:4px 0 0;color:#66746b;font-size:.8rem}.research-point-wallet{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.research-point{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 10px;border:1px solid color-mix(in srgb,currentColor 38%,transparent);border-radius:999px;background:#fff;box-shadow:none;font-size:.72rem;font-weight:800;white-space:nowrap}.research-point:hover{background:color-mix(in srgb,var(--research-point-color) 9%,#fff);transform:translateY(-1px)}.research-point:focus-visible{outline:3px solid color-mix(in srgb,var(--research-point-color) 42%,transparent);outline-offset:2px}.research-point i{width:13px;height:16px;border-radius:55% 55% 48% 48%;background:var(--research-point-color);box-shadow:inset -2px -2px #00000024}.research-point b{font-size:1rem}.research-point-blue{--research-point-color: #4a82c3;color:#32679f}.research-point-yellow{--research-point-color: #feba12;color:#8b6200}.research-point-red{--research-point-color: #b12a1c;color:#a1281d}.research-branches{display:grid;gap:14px}.research-branch{overflow:hidden;scroll-margin-top:12px;border:1px solid color-mix(in srgb,var(--research-color) 48%,#c8d1cb);border-left:6px solid var(--research-color);background:#fffdf7}.research-branch-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 16px;background:color-mix(in srgb,var(--research-color) 8%,#fff)}.research-branch h3,.special-challenge-card h3{margin:2px 0 5px;font-size:1rem}.research-branch-head p{margin:4px 0 0;color:#66746b;font-size:.8rem;line-height:1.4}.research-branch-head .research-level-rule{color:var(--research-color);font-weight:800}.research-branch-actions{display:grid;justify-items:end;gap:7px}.research-branch-actions>span{color:var(--research-color);font-size:.82rem;font-weight:900}.research-branch-actions button{min-height:32px;padding:5px 9px;font-size:.72rem}.research-track-list{display:grid}.research-track{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,auto);align-items:center;gap:18px;padding:11px 16px;border-top:1px solid #e1e5de}.research-track-copy{min-width:0}.research-track-copy>p{margin:3px 0;color:#6d786f;font-size:.76rem}.research-track-metric{display:block;margin-top:4px;color:#536158;font-size:.78rem}.research-track-metric b{color:#20372d}.research-track-baseline{display:block;margin-top:3px;color:var(--research-color);font-size:.78rem;line-height:normal;font-weight:800}.research-track-upgrade{display:grid;grid-template-columns:minmax(130px,1fr) 70px max-content;align-items:center;gap:10px}.research-level{display:grid;grid-template-columns:repeat(10,minmax(8px,1fr));gap:3px}.research-level i{height:14px;border:1px solid color-mix(in srgb,var(--research-color) 48%,#aeb7b0);border-radius:2px;background:#edf0ec}.research-level i.filled{border-color:var(--research-color);background:var(--research-color);box-shadow:inset 0 -2px #00000029}.research-track-upgrade>span{color:#68746c;font-size:.72rem;font-weight:800;text-align:center}.research-track-upgrade button{min-height:34px;padding:6px 8px;white-space:nowrap}.research-track-upgrade button:disabled,.research-branch-actions button:disabled{border-color:#aeb7b0;background:#e3e7e2;color:#7a847d;box-shadow:none;cursor:not-allowed}.research-phase-note{margin:12px 0 0;color:#768178;font-size:.76rem;text-align:center}.special-challenge-list{display:grid;gap:10px}.special-challenge-card{border:1px solid #c8d1cb;border-left:5px solid #aeb6b0;background:#fffdf3}.special-challenge-card.unlocked{border-left-color:#dfad43}.special-challenge-card.completed{border-color:#8f7a3d;border-left-color:#4c9a68;background:#fff3c9;box-shadow:inset 0 -5px #bd692f24}.special-challenge-summary{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px;width:100%;padding:14px 16px;border:0;background:transparent;color:inherit;text-align:left}.special-challenge-summary>span:first-child{display:grid;align-content:center;gap:3px;min-width:0}.special-challenge-summary>span:first-child>strong{font-size:1rem}.special-challenge-summary>span:first-child>span:last-child{font-size:.8rem;line-height:1.45}.challenge-card-preview{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:10px;min-height:72px;padding:6px 0 6px 14px;border-left:3px solid #b7aa83;color:#6f705f}.challenge-card-preview.obtained{border-left-color:#4c9a68;color:#263b30}.challenge-card-preview-copy{display:grid;align-content:center;min-width:0}.challenge-card-preview small{font-size:.62rem;font-weight:900}.challenge-card-preview strong{margin-top:3px;font-size:1.08rem}.challenge-card-preview-copy>span{margin-top:5px;font-size:.68rem;font-weight:800}.challenge-card-icon{position:relative;display:inline-grid;place-items:center;width:46px;height:46px;flex:0 0 46px;overflow:hidden;border:2px solid var(--card-icon-ink);border-radius:7px;background:var(--card-icon-bg)}.challenge-card-icon.has-asset{border-color:transparent;background:transparent}.challenge-card-icon.hidden-card{border-color:#7c877f;background:#e5e9e3;color:#68736c;font-size:1.65rem;font-weight:900}.challenge-card-icon>span{position:relative;display:block}.challenge-card-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.challenge-card-icon img[hidden]{display:none}.challenge-card-icon[data-motif=roll]>span{width:27px;height:27px;border:5px solid var(--card-icon-primary);border-radius:50%;background:#fff7dc;box-shadow:inset 0 0 0 3px var(--card-icon-accent)}.challenge-card-icon[data-motif=roll]>span:after{position:absolute;inset:7px;border-radius:50%;background:var(--card-icon-accent);content:""}.challenge-card-icon[data-motif=scroll]>span{width:24px;height:29px;border:3px solid var(--card-icon-primary);border-radius:3px;background:#fff7dc;transform:rotate(-5deg)}.challenge-card-icon[data-motif=scroll]>span:before,.challenge-card-icon[data-motif=scroll]>span:after{position:absolute;left:-5px;width:28px;height:5px;border:2px solid var(--card-icon-primary);border-radius:5px;background:var(--card-icon-accent);content:""}.challenge-card-icon[data-motif=scroll]>span:before{top:-5px}.challenge-card-icon[data-motif=scroll]>span:after{bottom:-5px}.challenge-card-icon[data-motif=seal]>span{width:26px;height:26px;border:3px solid var(--card-icon-primary);background:var(--card-icon-accent);transform:rotate(45deg)}.challenge-card-icon[data-motif=seal]>span:after{position:absolute;inset:6px;border:2px solid #fff7dc;content:""}.special-challenge-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);gap:18px;padding:16px;border-top:1px solid #c8d1cb;background:#ffffff8c}.special-challenge-details ul{margin:8px 0 14px;padding-left:20px;font-size:.8rem;line-height:1.6}.challenge-card-copy{margin:0;padding:16px;border:2px solid #355f48;border-radius:6px;background:#ffe5a6;color:#263b30;box-shadow:inset 0 -6px #bd692f33}.challenge-card-copy-head{display:flex;align-items:center;gap:12px}.challenge-card-copy-head .challenge-card-icon{width:54px;height:54px;flex-basis:54px}.challenge-card-copy strong{display:block;margin-top:3px;font-size:1.35rem}.challenge-card-copy p:not(.eyebrow){margin:8px 0;font-size:.8rem;line-height:1.5}.challenge-card-copy footer{padding-top:8px;border-top:1px solid rgba(53,95,72,.28);font-size:.72rem;font-weight:800;line-height:1.45}.challenge-card-copy.concealed{display:grid;place-content:center;justify-items:center;min-height:150px;border-color:#aeb8b0;background:#edf0eb;color:#68736c;box-shadow:none}.challenge-card-copy.concealed>span{font-size:4rem;font-weight:900;line-height:1}.challenge-card-copy.concealed>small{margin-top:10px;font-size:.7rem;font-weight:900}.special-challenge-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#647168;font-size:.76rem;font-weight:800}.special-challenge-claim{display:flex;align-items:center;min-height:40px;margin-top:12px}.special-challenge-claim button{min-height:38px;padding:7px 12px;border:2px solid #315d47;border-radius:6px;background:#f5c15d;color:#1d2b22;font:inherit;font-weight:900;cursor:pointer}.special-challenge-claim button:disabled{border-color:#aeb7b0;background:#e3e7de;color:#7a847d;cursor:wait}.special-challenge-claim span{color:#52685b;font-size:.76rem;font-weight:900}.function-card-summary,.function-card-actions,.progression-test-equipment{display:flex;align-items:center;justify-content:space-between;gap:12px}.function-card-slot-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:14px 0;border-block:1px solid #bdc9c0}.function-card-slot-panel h3,.function-card-slot-panel p{margin:0}.function-card-slot-panel #function-card-slot-current{margin-top:5px;color:#647168;font-size:.76rem;font-weight:800}.function-card-slot-controls{display:flex;align-items:center;gap:8px}.function-card-slot-controls select{min-width:220px;padding:8px 10px;border:2px solid #527160;border-radius:5px;background:#fffdf3;color:#20372b;font:inherit;font-weight:800}.function-card-slot-controls button:disabled{border-color:#aeb7b0;background:#e3e7de;color:#7a847d;box-shadow:none;cursor:not-allowed}.function-card-library-layout{display:grid;grid-template-columns:minmax(180px,.32fr) minmax(0,1fr);gap:18px;min-height:0}.function-card-sidebar{min-width:0;padding-right:14px;border-right:1px solid #bdc9c0}.function-card-sidebar-head h3{margin:2px 0 12px}.function-card-list{display:grid;align-content:start;gap:8px}.function-card-list-item{display:grid;gap:5px;width:100%;padding:11px;border:2px solid #aeb9b2;border-radius:5px;background:#fffdf3;color:#253a2e;text-align:left}.function-card-list-item.selected{border-color:#397454;background:#eaf3e7;box-shadow:inset 4px 0 #397454}.function-card-list-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.function-card-list-item span{color:#6a766f;font-size:.68rem;font-weight:900}.function-card-list-item.written span{color:#2d7049}.function-card-editor-pane{min-width:0}.function-card-name-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin-top:12px;color:#52645a;font-size:.78rem;font-weight:900}.function-card-name-field input{min-width:0;padding:8px 10px;border:2px solid #9eafa5;border-radius:5px;background:#fffdf3;color:#20372b;font:inherit;font-weight:800}.function-card-name-field input:disabled{background:#e8ece5;color:#737e77}.function-card-name-error{margin:5px 0 0;color:#a23c35;font-size:.74rem;font-weight:800}.function-card-files{display:grid;gap:6px;margin-top:10px;font-size:.74rem;font-weight:800;color:#52645a}.function-card-files code{padding:2px 6px;border-radius:4px;background:#e6ece2;color:#20372b;font-family:SFMono-Regular,Consolas,monospace;font-size:.78rem}.function-card-files span{margin-left:8px}.function-card-source-file{margin:0}.function-card-header-preview summary{cursor:pointer}.function-card-header-preview pre{margin:6px 0 0;padding:8px 10px;border:2px solid #9eafa5;border-radius:5px;background:#f3f5ee;color:#20372b;font-family:SFMono-Regular,Consolas,monospace;font-size:.74rem;font-weight:600;white-space:pre-wrap}.function-card-limits{margin:5px 0 0;color:#607269;font-size:.76rem;font-weight:800}.function-card-limits.over-limit{color:#a23c35}#progression-function-card .cm-editor{height:310px;margin-top:12px;border:3px solid #294638;border-radius:6px}#progression-function-card .code-editor-host:not([data-editor-theme]) .cm-editor{background:#132019;color:#f5f4e7}#progression-function-card .code-editor-host.read-only .cm-editor{border-color:#718078;opacity:.88}.function-card-tests{display:grid;gap:6px;margin-top:12px;font-size:.8rem;font-weight:800}.function-card-tests-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.function-card-tests-head button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px}.function-card-tests-head svg{width:16px;height:16px}.function-card-test-list{display:grid;gap:8px}.function-card-test-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(110px,.45fr) auto;align-items:end;gap:9px;padding:10px;border:1px solid #bdc9c0;background:#fffdf3}.function-card-test-number{align-self:center;min-width:28px;color:#486052}.function-card-test-row label{display:grid;gap:4px;min-width:0;color:#68766e;font-size:.68rem}.function-card-test-row input{width:100%;min-width:0;padding:7px 8px;border:1px solid #9eafa5;border-radius:4px;background:#fff;color:#20372b;font:.78rem/1.35 ui-monospace,monospace}.function-card-test-remove{display:grid;place-items:center;width:34px;height:34px;padding:0;background:#f2eee2}.function-card-test-remove svg{width:16px;height:16px}.function-card-tests>p{margin:2px 0 0;color:#718078;font-size:.68rem;font-weight:700}.function-card-actions{justify-content:flex-end;margin-top:12px}.function-card-actions .secondary{background:#eef1e8}.function-card-capacity-warning{display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#bd453d;color:#fff}.function-card-capacity-warning[hidden]{display:none}.function-card-capacity-warning svg{width:18px;height:18px;stroke-width:3}.function-card-result{min-height:80px;padding:12px;overflow:auto;border:1px solid #bdc9c0;background:#17251e;color:#dce8de;white-space:pre-wrap}.function-card-runtime-note{color:#8b6725;font-size:.8rem;font-weight:800}.progression-test-equipment{margin-top:18px;padding:12px;border-top:2px solid #c8d1cb;justify-content:flex-start}.progression-test-equipment select{margin-left:auto;padding:8px}@media(max-width:820px){.progression-panel{padding:8px}.progression-panel-card{max-height:calc(100dvh - 16px);padding:14px}.progression-panel-head,.progression-wallet,.function-card-actions,.function-card-slot-panel,.progression-test-equipment,.function-card-slot-controls{align-items:stretch;flex-direction:column}.function-card-slot-controls select{min-width:0;width:100%}.function-card-library-layout{grid-template-columns:1fr}.function-card-sidebar{padding:0 0 12px;border-right:0;border-bottom:1px solid #bdc9c0}.function-card-list{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.function-card-test-row{grid-template-columns:auto minmax(0,1fr) auto}.function-card-test-row label:last-of-type{grid-column:2}.function-card-test-remove{grid-column:3;grid-row:1 / span 2;align-self:center}.research-overview,.research-branch-head,.research-track{grid-template-columns:1fr}.research-overview{align-items:stretch;flex-direction:column}.research-point-wallet{justify-content:flex-start}.research-branch-actions{justify-items:start}.research-track-upgrade{grid-template-columns:minmax(100px,1fr) 64px max-content}.special-challenge-summary,.special-challenge-details{grid-template-columns:1fr}.progression-wallet{gap:5px}#progression-panel-close{align-self:flex-end}.progression-test-equipment select{width:100%;margin-left:0}}.shop-panel-card{width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;padding:22px;border:2px solid rgba(35,51,43,.25);border-radius:8px;background:#f8f7ed;box-shadow:0 30px 78px #121f195c}.shop-panel-head{padding-bottom:18px;border-bottom:2px solid rgba(43,55,48,.2)}.shop-panel-head h2,.shop-section-heading h3,.shop-product-heading h3{margin:0}.shop-panel-head-actions,.shop-panel-wallet,.shop-product-heading,.shop-section-heading{display:flex;align-items:center}.shop-panel-head-actions{gap:18px}.shop-panel-wallet{gap:18px;color:#647168;font-size:.86rem}.shop-panel-wallet strong{color:#205134;font-size:1rem}#shop-panel-close{width:40px;height:40px;padding:0;background:#f8f0d0;font-size:1.25rem}.shop-panel-products{border-bottom:1px solid rgba(43,55,48,.18)}.shop-panel-product{display:grid;grid-template-columns:82px minmax(0,1fr) 270px;align-items:center;gap:36px;padding:22px 6px;border-top:1px solid rgba(43,55,48,.18)}.shop-product-visual{width:82px;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(43,55,48,.2);border-radius:6px;background:#fff9e7}.shop-product-model,.shop-product-model img,.shop-product-model canvas{width:100%;height:100%;display:block;object-fit:contain}.shop-product-gem{width:42px;height:50px;display:block;border:3px solid #876d1d;background:linear-gradient(135deg,#fff4a5 0 28%,#f1c94f 29% 62%,#c99228 63% 100%);clip-path:polygon(50% 0,100% 36%,78% 100%,22% 100%,0 36%);filter:drop-shadow(0 5px 4px rgba(64,54,23,.2))}.shop-panel-product:first-child{border-top:0}.shop-panel-product.locked{color:#77827c}.shop-product-heading{align-items:baseline;gap:12px}.shop-product-heading h3{font-size:1rem}.shop-product-heading span{color:#6c786f;font-size:.76rem;font-weight:800}.shop-product-copy>p{margin:7px 0 0;color:#56675e;font-size:.88rem}.shop-product-copy .locked-reason{color:#976c1f;font-weight:800}.shop-product-trade{display:grid;grid-template-columns:1fr 126px;align-items:center;gap:14px}.shop-product-reward{color:#315d47;font-weight:900;text-align:right}.shop-product-trade button{min-height:44px;background:#f1bb61}.shop-product-trade button:disabled{border-color:#aeb7b1;background:#e1e5e2;color:#7b857f;cursor:not-allowed}.shop-voucher-section{margin-top:28px}.shop-section-heading{justify-content:space-between;padding-bottom:10px;border-bottom:2px solid #294638}.shop-section-heading h3{font-size:1rem}.shop-voucher-row{display:grid;grid-template-columns:1fr auto 90px;gap:20px;padding:12px 4px;border-bottom:1px solid rgba(43,55,48,.18);font-size:.86rem}.shop-voucher-row span:last-child{text-align:right;font-weight:800}.shop-panel-state{margin:0;padding:24px 4px;color:#68756c}.shop-panel-state.error{margin-top:18px;padding:18px;border:1px solid #d59a91;background:#fff5f2;color:#7f3732}.shop-panel-state.error p{margin:6px 0 14px}.stats-panel{position:fixed;inset:0;z-index:38;display:grid;place-items:start center;padding:24px;overflow:hidden;background:#1f2f2775;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.stats-card{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 48px);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;padding:20px;border:2px solid rgba(35,51,43,.22);border-radius:8px;background:#fcf9ebf5;box-shadow:0 26px 70px #18282247}.stats-card-mail{width:min(860px,calc(100vw - 32px))}.mail-unread-dot{display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%;background:#c54d46;box-shadow:0 0 0 2px #faf8ed;vertical-align:super}.stats-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.stats-player-heading{min-width:0}.stats-player-heading h2{overflow-wrap:anywhere}.stats-head-actions{display:flex;align-items:center;gap:8px;min-width:0}.stats-head-actions .auth-trigger[data-variant=game]{max-width:160px}#stats-close{width:38px;height:38px;padding:0;background:#f8f0d0;font-size:1.25rem}.stats-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:16px;padding-bottom:4px;border-bottom:2px solid rgba(43,55,48,.18)}.stats-tabs-without-mail{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-tab{min-height:42px;padding:8px 10px;border:0;border-bottom:4px solid transparent;border-radius:4px 4px 0 0;background:transparent;color:#68756a;font:inherit;font-size:.82rem;font-weight:900;cursor:pointer}.stats-tab:hover,.stats-tab:focus-visible{background:#eae1bc7a;color:#26392f}.stats-tab.active,.stats-tab[aria-selected=true]{border-bottom-color:#dc8b42;background:#fff7dc;color:#20342a}.stats-tab-page{grid-row:3;min-height:0;width:calc(100% + 14px);margin-top:16px;margin-right:-14px;padding-right:4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#54705f rgba(45,68,52,.09);scrollbar-width:thin}.stats-tab-page::-webkit-scrollbar{width:10px}.stats-tab-page::-webkit-scrollbar-track{border-radius:999px;background:#2d443417}.stats-tab-page::-webkit-scrollbar-thumb{min-height:44px;border:2px solid transparent;border-radius:999px;background:linear-gradient(#688474,#496656) padding-box}.stats-tab-page::-webkit-scrollbar-thumb:hover{background:linear-gradient(#e4a24d,#c87935) padding-box}.stats-tab-page::-webkit-scrollbar-thumb:active{background:#b9662b padding-box}.stats-tab-page[hidden]{display:none}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:0}.stats-grid div,.equipment-slot{min-height:72px;padding:12px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#fff7dc}.stats-grid span,.equipment-slot span{display:block;color:#5d695d;font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.stats-grid strong,.equipment-slot strong{display:block;margin-top:8px;color:#1d2b22;font-size:1.12rem}.stats-config{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:18px;margin-top:0;padding:14px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#f6f2df}.settings-feedback{margin:0 0 12px;padding:10px 12px;border-left:4px solid #4f8767;background:#eaf4e9;color:#405e4d;font-size:.82rem;font-weight:750}.settings-feedback a{color:#205d3d;font-weight:900;text-underline-offset:2px}.stats-config-heading h3{margin:2px 0 0;font-size:1rem}.stats-config-content{display:grid;gap:14px;margin-top:12px;min-width:0}.stats-config-section-editor,.shortcut-settings{min-width:0;padding-top:18px;border-top:1px solid rgba(43,55,48,.16)}.shortcut-settings-heading,.shortcut-row,.shortcut-bindings{display:flex;align-items:center}.shortcut-settings-heading{justify-content:space-between;gap:12px}.shortcut-settings-heading h3{margin:2px 0 0;font-size:1rem}.shortcut-reset,.shortcut-binding{min-height:34px;border:2px solid #31483b;border-radius:6px;background:#fffdf2;color:#25382e;font:inherit;font-weight:900;cursor:pointer}.shortcut-reset{padding:6px 10px;font-size:.72rem}.shortcut-list{display:grid;gap:7px;margin-top:10px}.shortcut-row{justify-content:space-between;gap:12px;min-height:44px;padding:7px 0;border-bottom:1px solid rgba(43,55,48,.1)}.shortcut-copy{min-width:0}.shortcut-copy strong,.shortcut-copy small{display:block}.shortcut-copy strong{color:#24372d;font-size:.84rem}.shortcut-copy small,.shortcut-status{color:#68756a;font-size:.7rem}.shortcut-copy small{margin-top:2px}.shortcut-bindings{flex:0 0 auto;gap:6px}.shortcut-binding{min-width:54px;padding:6px 9px;font-size:.78rem}.shortcut-binding.listening{background:#f5c15d;outline:3px solid rgba(213,137,44,.22)}.shortcut-binding:hover,.shortcut-binding:focus-visible,.shortcut-reset:hover,.shortcut-reset:focus-visible{background:#f8d77f}.shortcut-status{min-height:1.2em;margin-top:8px}.shortcut-status[data-tone=error]{color:#a13f35;font-weight:800}.equipment-panel{margin-top:0;padding-top:0;border-top:0}.equipment-panel h3{margin-top:2px;font-size:1rem}.equipment-slot{display:grid;align-content:center;margin-top:10px;background:#eef2d2}.equipment-slot.empty strong{color:#697567}.equipment-switcher{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 10px;margin-top:10px}.equipment-switcher[hidden]{display:none}.equipment-switcher label{display:grid;gap:5px;color:#5d695d;font-size:.72rem;font-weight:800}.equipment-select-shell{position:relative;display:block}.equipment-select-shell:after{position:absolute;top:50%;right:14px;width:8px;height:8px;border-right:2px solid #315d47;border-bottom:2px solid #315d47;content:"";pointer-events:none;transform:translateY(-70%) rotate(45deg)}.equipment-switcher select,.equipment-switcher button{min-height:38px;border:2px solid #31463b;border-radius:6px;font:inherit}.equipment-switcher select{appearance:none;width:100%;padding:0 40px 0 12px;background:linear-gradient(90deg,#fffdf3 0 8px,#edf5e7 8px 11px,#fffdf3 11px);color:#1d2b22;font-weight:800;box-shadow:inset 0 -3px #315d471a;cursor:pointer}.equipment-switcher select:hover,.equipment-switcher select:focus-visible{border-color:#4c8b66;outline:3px solid rgba(76,139,102,.18)}.equipment-switcher button{padding:0 14px;background:#f5c15d;color:#1d2b22;font-weight:900}.equipment-switcher button:disabled{border-color:#aeb7b0;background:#e3e7de;color:#7a847d}.equipment-switcher p{grid-column:1 / -1;min-height:1.2em;margin:0;color:#5d695d;font-size:.76rem;font-weight:800}.equipment-switcher .equipment-device-effect{margin-top:-2px;color:#315d47}.equipment-switcher p[data-tone=error]{color:#9a4038}@media(max-width:520px){.equipment-switcher{grid-template-columns:1fr}.equipment-switcher p{grid-column:1}}.stats-actions{display:flex;align-items:end;gap:10px;justify-content:flex-end;margin-top:12px}.stats-actions button,.level-reset-controls select{min-height:36px;padding:0 12px;border-radius:8px;font:inherit}.stats-actions button{border:0;background:#d95f4c;color:#fffdf3;font-weight:900;cursor:pointer;box-shadow:inset 0 -3px #48221b38}.stats-actions button:hover{background:#c94f40}.level-reset-controls{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;gap:5px 8px}.level-reset-controls label{grid-column:1 / -1;color:#697567;font-size:.72rem;font-weight:900}.level-reset-controls select{max-width:240px;border:1px solid rgba(43,55,48,.28);background:#fffdf3;color:#26372e}.level-reset-controls #reset-level{background:#e59a3d}.level-reset-controls #travel-level{border:2px solid #355a46;background:#f8fbef;color:#26372e;box-shadow:inset 0 -3px #26372e24}.level-reset-controls #travel-level:hover{background:#e4efd8}.level-reset-controls #reset-level:hover{background:#d7872f}.item-panel,.codex-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;margin-top:16px}.inventory-groups{display:grid;align-content:start;gap:14px}.item-section{min-width:0;padding-top:14px;border-top:1px solid rgba(43,55,48,.16)}.item-section h3{margin-top:2px;font-size:1rem}.item-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px;margin-top:10px}.item-list.empty{min-height:54px;align-content:center;padding:12px;border:2px dashed rgba(45,68,52,.16);border-radius:8px;color:#697567}.item-button{position:relative;display:grid;place-items:center;width:100%;min-height:72px;padding:8px;background:#fff7dc}.item-model-thumbnail{position:absolute;inset:2px;display:grid;place-items:center;pointer-events:none}.item-model-thumbnail img,.item-model-thumbnail canvas{display:block;width:66px;height:66px;object-fit:contain}.item-button:has(.item-model-thumbnail.loaded) .item-cube-icon{opacity:0}.item-button.selected{border-color:#2e7c57;background:#dff0bd}.item-count{position:absolute;right:7px;bottom:6px;min-width:28px;padding:3px 6px;border:2px solid rgba(35,51,43,.18);border-radius:999px;background:#f8f0d0;font-size:.72rem;text-align:center;white-space:nowrap}.item-description{min-height:72px;margin-top:10px;padding:12px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#fff7dc;color:#405248;line-height:1.5}.item-use-preview{display:block;margin-top:8px;color:#2e6048}.item-use-preview strong{color:#204b37}.item-use-quantity{display:grid;gap:6px;margin-top:12px;padding:10px 12px;border:2px solid rgba(45,68,52,.12);border-radius:8px;background:#f8f0d0}.item-use-quantity[hidden]{display:none}.item-use-quantity label{display:flex;justify-content:space-between;gap:12px;color:#405248;font-size:.82rem;font-weight:700}.item-use-quantity output{color:#2e6048}.item-use-quantity input{width:100%;accent-color:#2e7c57}#item-use{min-width:96px;height:40px;margin-top:10px}#item-open-collection{min-width:132px;height:40px;margin-top:10px}.codex-open{min-height:44px;grid-column:1 / -1}.codex-panel{position:fixed;inset:0;z-index:39;display:grid;place-items:center;padding:24px;background:#1f2f2785;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.codex-card{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;padding:20px;border:2px solid rgba(35,51,43,.22);border-radius:8px;background:#fcf9ebf7;box-shadow:0 30px 78px #18282252}#codex-close{width:38px;height:38px;padding:0;background:#f8f0d0;font-size:1.25rem}.codex-layout{grid-template-columns:minmax(220px,.9fr) minmax(280px,1.1fr)}.item-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:12px}.item-icon-grid.empty{min-height:180px;align-content:center;padding:16px;border:2px dashed rgba(45,68,52,.16);border-radius:8px;color:#697567}.codex-detail{min-width:0}.card-box-panel{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;background:#19261f94;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.card-box-card{width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:hidden;padding:20px;border:2px solid rgba(35,51,43,.25);border-radius:8px;background:#f8f7ed;box-shadow:0 30px 78px #121f195c}#card-box-close{width:38px;height:38px;padding:0;background:#f8f0d0;font-size:1.25rem}.card-box-progress{margin-top:4px;color:#637168;font-size:.82rem;font-weight:800}.card-box-layout{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(420px,1.25fr);gap:20px;min-height:520px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(43,55,48,.18)}.knowledge-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;max-height:calc(100dvh - 190px);overflow-y:auto;padding:4px 8px 4px 4px}.knowledge-card{--card-bg: #dde8d8;--card-border: #80917c;--card-ink: #25352b;display:grid;grid-template-rows:auto 1fr auto;width:100%;aspect-ratio:.72;min-height:142px;padding:10px 8px;border:3px solid var(--card-border);border-radius:6px;background:var(--card-bg);color:var(--card-ink);text-align:left;box-shadow:inset 0 0 0 3px #ffffff57,0 4px #23332b29}.knowledge-card.rarity-1,.knowledge-card-detail-meta.rarity-1{--card-bg: #dde8d8;--card-border: #80917c;--card-ink: #25352b}.knowledge-card.rarity-2,.knowledge-card-detail-meta.rarity-2{--card-bg: #b9e8df;--card-border: #398f82;--card-ink: #174d46}.knowledge-card.rarity-3,.knowledge-card-detail-meta.rarity-3{--card-bg: #bedaf0;--card-border: #477fae;--card-ink: #193f63}.knowledge-card.rarity-4,.knowledge-card-detail-meta.rarity-4{--card-bg: #f3d78e;--card-border: #ae752c;--card-ink: #553715}.knowledge-card.rarity-5,.knowledge-card-detail-meta.rarity-5{--card-bg: #efb0b3;--card-border: #b34459;--card-ink: #5a1f31}.knowledge-card:hover:not(:disabled){transform:translateY(-2px)}.knowledge-card.selected{outline:3px solid #1e3428;outline-offset:2px}.knowledge-card.locked{--card-bg: #e4e5df;--card-border: #afb4ad;--card-ink: #7d857e;cursor:default;filter:saturate(.2);box-shadow:inset 0 0 0 3px #ffffff4d}.knowledge-card-number{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.68rem;font-weight:900}.knowledge-card strong{align-self:center;font-size:.84rem;line-height:1.3;overflow-wrap:anywhere}.knowledge-card-stars{font-size:.68rem;letter-spacing:0;white-space:nowrap}.knowledge-card-lock{align-self:end;font-size:1.5rem;font-weight:900;text-align:center}.knowledge-card-detail{min-width:0;max-height:calc(100dvh - 190px);overflow-y:auto;padding:18px 20px;border:2px solid rgba(45,68,52,.15);border-radius:8px;background:#fffef8;color:#293b31}.knowledge-card-detail-meta{display:flex;justify-content:space-between;gap:12px;margin:-18px -20px 18px;padding:12px 18px;border-bottom:3px solid var(--card-border);background:var(--card-bg);color:var(--card-ink);font-size:.82rem;font-weight:900}.knowledge-card-markdown h1{margin:0 0 14px;font-size:1.5rem;line-height:1.25}.knowledge-card-markdown p,.knowledge-card-markdown li{line-height:1.7}.knowledge-card-markdown p+p,.knowledge-card-markdown pre+p,.knowledge-card-markdown p+pre{margin-top:14px}.knowledge-card-markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.knowledge-card-markdown :not(pre)>code{padding:2px 5px;border-radius:4px;background:#e7ece5;color:#234a37}.knowledge-card-markdown pre{overflow-x:auto;padding:14px 16px;border:2px solid #30473a;border-radius:6px;background:#14231b;color:#e8f1e9;line-height:1.55}.knowledge-card-markdown .tok-keyword{color:#f0ae68}.knowledge-card-markdown .tok-typeName,.knowledge-card-markdown .tok-className{color:#77c9df}.knowledge-card-markdown .tok-variableName,.knowledge-card-markdown .tok-labelName{color:#8ed1ba}.knowledge-card-markdown .tok-number,.knowledge-card-markdown .tok-bool,.knowledge-card-markdown .tok-atom{color:#f3cf72}.knowledge-card-markdown .tok-string{color:#b9dc89}.knowledge-card-markdown .tok-string2,.knowledge-card-markdown .tok-operator,.knowledge-card-markdown .tok-punctuation{color:#e99583}.knowledge-card-markdown .tok-comment,.knowledge-card-markdown .tok-meta{color:#91a49a;font-style:italic}.knowledge-card-markdown .tok-macroName,.knowledge-card-markdown .tok-processingInstruction{color:#d9b6e5}.knowledge-card-markdown .tok-invalid{color:#fff;background:#a94242}.knowledge-card-markdown .knowledge-footnote-ref{margin-left:2px;font-size:.72em;font-weight:900;line-height:0;vertical-align:super}.knowledge-card-markdown .knowledge-footnote-ref a,.knowledge-card-markdown .knowledge-footnote-backlinks a{color:#2f7652;text-decoration:none}.knowledge-card-markdown .knowledge-footnote-ref a:hover,.knowledge-card-markdown .knowledge-footnote-ref a:focus-visible,.knowledge-card-markdown .knowledge-footnote-backlinks a:hover,.knowledge-card-markdown .knowledge-footnote-backlinks a:focus-visible{color:#b65d34;text-decoration:underline}.knowledge-footnotes{margin-top:24px;padding-top:14px;border-top:2px solid #d8dfd7;color:#526359;font-size:.88rem}.knowledge-footnotes ol{margin:0;padding-left:24px}.knowledge-footnotes li{padding-left:4px;scroll-margin-block:20px}.knowledge-footnotes li+li{margin-top:9px}.knowledge-footnotes li>div,.knowledge-footnotes li>div>p{display:inline}.knowledge-footnote-backlinks{margin-left:6px;white-space:nowrap}.item-cube-icon{position:relative;width:42px;height:42px;transform:rotateX(58deg) rotate(45deg);transform-style:preserve-3d}.item-cube-icon span{position:absolute;display:block;border:1px solid rgba(35,51,43,.16)}.item-cube-top{inset:0;background:var(--item-top, #72c8ba);transform:translateZ(12px)}.item-cube-front{right:0;bottom:-12px;left:0;height:12px;background:var(--item-front, #409984);transform:rotateX(-90deg);transform-origin:top}.item-cube-side{top:0;right:-12px;bottom:0;width:12px;background:var(--item-side, #2f6f63);transform:rotateY(90deg);transform-origin:left}.item-cube-cap{top:7px;left:7px;width:28px;height:22px;background:var(--item-cap, #e7d37a);transform:translateZ(15px)}.item-cube-accent{top:3px;left:34px;width:7px;height:24px;background:var(--item-detail, #34463e);transform:translateZ(16px)}.item-cube-icon.manual-energy-generator .item-cube-accent:after{position:absolute;top:-8px;left:4px;width:18px;height:7px;background:var(--item-accent, #f0b35d);content:""}.item-cube-icon.mini-energy-pack .item-cube-cap{top:2px;left:-1px;width:44px;height:8px}.item-cube-icon.mini-energy-pack .item-cube-accent{top:0;left:16px;width:10px;height:42px;background:var(--item-accent, #fff1c4);transform:translateZ(16px)}.level-transition{position:fixed;inset:0;z-index:40;display:grid;place-content:center;padding:28px;background:linear-gradient(#25372cbd,#25372cbd),#fcf9ebeb;color:#fff8df;text-align:center}.level-transition h2{margin-top:4px;font-size:clamp(2rem,5vw,4.4rem)}.level-transition h2:not(:lang(zh)){font-size:clamp(1.8rem,4vw,3.4rem);overflow-wrap:break-word;text-wrap:balance}.level-transition p:last-child{margin-top:10px;color:#e7efd3;line-height:1.45}@media(max-width:960px){.code-panel{inset:20px;width:auto;max-height:calc(100dvh - 40px)}}@media(max-width:780px){body{overflow:auto}#app,#scene{min-height:100vh}.hud-rail{top:12px;left:12px;width:calc(100vw - 24px)}.code-panel{inset:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.panel-head{align-items:flex-start}.panel-head-actions{flex-direction:row;align-items:center}.challenge-center-link{display:none}.pill.success{display:grid;width:36px;min-width:36px;height:36px;place-items:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:0}.pill.success:before{color:#2f7d4e;content:"✓";font-size:1.55rem;font-weight:900;line-height:1}.challenge-cost-details{grid-template-columns:1fr}#challenge-completion-reward{text-align:left}.code-panel .code-editor-host{height:auto;min-height:150px}.move-pad{left:12px;bottom:330px;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px)}.move-pad button{width:44px;height:44px}.camera-pad{left:168px;bottom:374px}.zoom-pad{left:168px;bottom:426px}.zoom-pad button,.camera-pad button{width:44px;height:44px}.interact-hint{top:auto!important;right:12px;bottom:18px;left:12px!important;width:auto;max-width:none;transform:none}.interact-hint:after{display:none}.interact-hint:active{transform:translateY(2px)}.dialog-box{right:12px;bottom:12px;left:12px;width:auto;transform:none}.dialog-illustration{height:min(34vh,320px)}.dialog-line{min-height:72px}.shop-panel{align-items:start;padding:14px;overflow-y:auto}.shop-panel-card{width:100%;max-height:none;padding:16px}.shop-panel-head,.shop-panel-head-actions{align-items:flex-start}.shop-panel-head-actions{gap:10px}.shop-panel-wallet{align-items:flex-end;flex-direction:column;gap:3px}.shop-panel-product{grid-template-columns:68px minmax(0,1fr);gap:14px}.shop-product-visual{width:68px}.shop-product-trade{grid-column:1 / -1}.shop-product-trade{grid-template-columns:1fr 128px}.shop-product-reward{text-align:left}.shop-voucher-row{grid-template-columns:1fr auto}.shop-voucher-row span:last-child{grid-column:2}.stats-panel{align-items:start;padding:14px;overflow:hidden}.stats-card{width:100%;padding:16px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-tabs{gap:2px}.stats-tab{min-height:46px;padding:7px 5px;font-size:.75rem}.stats-head-actions .auth-trigger[data-variant=game]{max-width:min(42vw,160px)}.stats-actions{align-items:stretch;flex-direction:column}.level-reset-controls{grid-template-columns:1fr 1fr}.level-reset-controls select{grid-column:1 / -1;width:100%;max-width:none}.item-panel{grid-template-columns:1fr}.codex-panel{align-items:start;padding:14px;overflow-y:auto}.codex-card{width:100%;padding:16px}.codex-layout{grid-template-columns:1fr}.card-box-panel{align-items:start;padding:14px;overflow-y:auto}.card-box-card{width:100%;max-height:none;overflow:visible;padding:16px}.card-box-layout{grid-template-columns:1fr;min-height:0}.knowledge-card-grid,.knowledge-card-detail{max-height:none}.knowledge-card{min-height:126px;padding:8px 6px}.knowledge-card strong{font-size:.72rem}}@media(max-width:780px){:root{--mobile-control-size: clamp(40px, 13vw, 44px);--mobile-safe-bottom: max(12px, env(safe-area-inset-bottom))}.move-pad{right:12px;bottom:var(--mobile-safe-bottom);left:auto;grid-template-columns:repeat(3,var(--mobile-control-size));grid-template-rows:repeat(2,var(--mobile-control-size));gap:6px}.move-pad button,.camera-pad button{width:var(--mobile-control-size);height:var(--mobile-control-size)}.camera-pad{bottom:var(--mobile-safe-bottom);left:12px;gap:6px}.zoom-pad{bottom:calc(var(--mobile-safe-bottom) + var(--mobile-control-size) + 6px);left:12px;gap:6px}.zoom-pad button{width:var(--mobile-control-size);height:var(--mobile-control-size)}.interact-hint{bottom:calc(var(--mobile-safe-bottom) + 106px)}}.challenge-eyebrow-row{display:flex;align-items:center;gap:10px}.challenge-editor-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;margin-bottom:6px}.challenge-editor-head-left,.challenge-editor-head-right{display:flex;align-items:center;gap:10px;min-width:0}.challenge-editor-head-right{position:relative;flex:none;gap:6px}.challenge-editor-head .workspace-heading{margin:0}.challenge-editor-head .draft-status{min-width:0}.challenge-editor-head .source-file-status{overflow:hidden;color:#526257;font-size:.7rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.challenge-editor-head .source-file-status[data-tone=error]{color:#9b3e35}.challenge-editor-head .source-file-button{min-width:0;height:32px;min-height:0;padding:0 10px;font-size:.74rem}.challenge-editor-head .source-file-button span{font-size:.86rem}.challenge-editor-head .source-file-button.icon-only{display:inline-grid;width:34px;padding:0;place-items:center}.challenge-editor-head .source-file-button.open{background:#f6f1e1}.code-panel .panel-actions{display:flex;flex-direction:column;gap:8px;margin-top:8px}.challenge-submit-bar{position:relative;display:flex;align-items:center;gap:8px;min-height:56px;padding:6px 8px;border:2px solid rgb(45 68 52 / 16%);border-radius:10px;background:#fffdf3}.challenge-submit-bar{flex:none;flex-wrap:wrap}.challenge-submit-bar-main{display:flex;flex:1 1 300px;min-width:0;align-items:center;justify-content:flex-end;gap:8px}.code-panel .test-run-cases{max-height:190px;overflow:auto;padding-right:2px}.code-panel .test-run-block dd{max-height:120px}#challenge-code-panel.editor-resized .test-run-cases{max-height:none}.code-panel .panel-actions .challenge-cost-summary{display:block;width:auto;min-width:0;flex:1 1 0;overflow:hidden;margin:0;padding:0 4px;border:0;background:transparent}.challenge-cost-mini{display:grid;min-width:0;justify-items:end;line-height:1.25;text-align:right}.challenge-cost-main{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#526257;font-size:.72rem;font-weight:800;white-space:nowrap}.challenge-cost-main strong{font-size:.86rem}.challenge-cost-mini .challenge-cost-details{display:block;width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.challenge-cost-mini .challenge-cost-details small{font-size:.66rem;font-weight:700}.challenge-cost-mini .challenge-cost-details small+small:before{content:" · "}.challenge-cost-mini #challenge-completion-reward{text-align:right}.challenge-submit-bar .free-practice-toggle{min-height:42px}#submit-code{display:inline-flex;align-items:center;justify-content:center;gap:6px}#submit-code.blocked{border-style:dashed;background:#efe3c8;color:#6d5a3a}.code-panel .judge-output{flex:0 0 auto;box-sizing:border-box;width:100%;padding:10px 12px;border:2px solid #23332b;border-radius:8px;background:#20352a;color:#c9dbcf}.code-panel .judge-output.timeline{border-color:#23332b;background:#20352a}.code-panel .judge-summary strong,.code-panel .judge-summary-sentence,.code-panel .judge-summary-sentence strong{color:#f3f7f4}.code-panel .judge-summary>span,.code-panel .judge-summary small{color:#a9c4b3}.code-panel .judge-total-cost-value{color:#f3d79a!important}.code-panel .judge-mode-badge{border-color:#4f6b5a;background:#2c4236;color:#d8ecdf}.code-panel .judge-line:before{background:#3c5747}.code-panel .judge-case{color:#26332c}.code-panel .judge-output.compile-error-summary{border-left:5px solid #e0705f;background:#20352a}.code-panel .compile-error-trigger{color:#ffb3a7}.code-panel .compile-error-meta{color:#c9a8a2}body.free-practice-active .challenge-submit-bar{border-color:#397b994d;background:#f4fafb}body.free-practice-active .code-panel .judge-output,body.free-practice-active .code-panel .judge-output.timeline,.code-panel .judge-output.timeline.free-practice-result{border-color:#1d4152;background:#1c3a48}body.free-practice-active .code-panel .judge-line:before,.code-panel .judge-output.timeline.free-practice-result .judge-line:before{background:#35596a}body.free-practice-active .code-panel .judge-mode-badge.free-practice,.code-panel .judge-mode-badge.free-practice{border-color:#83b9ca;background:#2a5466;color:#dff3f8}body.free-practice-active .code-panel .judge-total-cost-value.free-practice,.code-panel .judge-total-cost-value.free-practice{color:#9fd8ea!important}body.free-practice-active .challenge-cost-main strong{color:#245e76}@media(max-width:780px){.challenge-cost-mini{justify-items:start;text-align:left}.challenge-editor-head{flex-wrap:wrap}}.status-grid.hud-status{display:block;margin-top:11px}.status-grid.hud-status .hud-wallet{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:0;align-items:center;gap:10px;padding:7px 10px;border:2px solid rgb(45 68 52 / 18%);border-radius:8px;background:#f6f1e1;color:#1d2b22}.status-grid.hud-status .hud-wallet-cell{min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent}.status-grid.hud-status .hud-wallet-cell.tokens{text-align:right}.status-grid.hud-status .hud-wallet-cell.tokens .hud-wallet-label{justify-content:flex-end}.status-grid.hud-status .hud-wallet-label{display:inline-flex;align-items:center;gap:4px}.status-grid.hud-status .hud-wallet-label svg{flex:none;color:#2f6b47}.status-grid.hud-status .hud-wallet-cell span{color:#526257;font-size:.6rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.status-grid.hud-status .hud-wallet-cell strong{margin-top:1px;color:#1d2b22;font-size:1.02rem}.status-grid.hud-status .hud-wallet-cell.gate{flex:1;text-align:center}.status-grid.hud-status .hud-wallet-cell.gate strong{color:#6d5a3a;font-size:.86rem}.status-grid.hud-status .hud-exchange{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;gap:3px;padding:0;border:0;background:transparent}.hud-exchange-button{position:relative;display:grid;min-width:78px;height:22px;min-height:0;padding:0 7px;place-items:center;border:1.5px solid #c3ccc4;border-radius:5px;background:#fffdf3;color:#33463a;transition:background 90ms ease,border-color 90ms ease,color 90ms ease;box-shadow:none;cursor:pointer}.hud-exchange-button:hover:not(:disabled),.hud-exchange-button:focus-visible:not(:disabled){border-color:#23332b;background:#f0b35d;color:#18231d;outline:0}.hud-exchange-button:disabled{border-color:#d9ddd4;border-style:dashed;background:transparent;color:#a3ada5;cursor:not-allowed}.status-grid.hud-status .hud-exchange-rate{display:inline-flex;align-items:center;gap:4px;color:inherit;font:900 .7rem/1 SFMono-Regular,Consolas,Liberation Mono,monospace;letter-spacing:0;text-transform:none;white-space:nowrap}.status-grid.hud-status .hud-exchange-rate b{font:inherit}.hud-exchange-button:after,.status-grid.hud-status .hud-meowchant-tools button:after{content:attr(data-tooltip);position:absolute;top:calc(100% + 7px);left:50%;z-index:30;width:max-content;max-width:210px;padding:5px 7px;border-radius:4px;background:#21372a;color:#fff;font-size:.68rem;font-weight:800;line-height:1.35;text-align:left;white-space:pre-line;opacity:0;pointer-events:none;transform:translate(-50%,-2px);transition:opacity 70ms ease,transform 70ms ease}.hud-exchange-button:hover:after,.hud-exchange-button:focus-visible:after,.status-grid.hud-status .hud-meowchant-tools button:hover:after,.status-grid.hud-status .hud-meowchant-tools button:focus-visible:after{opacity:1;transform:translate(-50%)}.status-grid.hud-status .hud-meowchant-tools button:is([data-hud-tool=inventory],[data-hud-tool=function-library]):after{left:0;transform:translateY(-2px)}.status-grid.hud-status .hud-meowchant-tools button:is([data-hud-tool=inventory],[data-hud-tool=function-library]):is(:hover,:focus-visible):after{transform:translate(0)}.status-grid.hud-status .hud-meowchant-tools{display:flex;min-height:0;align-items:center;gap:6px;margin-top:8px;padding:0;border:0;background:transparent}.status-grid.hud-status .hud-meowchant-tools button{width:36px;height:36px;min-height:0;border-width:2px;border-radius:6px}.status-grid.hud-status .hud-meowchant-tools button[aria-pressed=true]{border-color:#23332b;background:#ffe690}.status-grid.hud-status .hud-meowchant-tools svg{width:18px;height:18px}.status-grid.hud-status .hud-tools-separator{flex:1;min-width:4px}.status-grid.hud-status .hud-wallet-cell.gem-arrival{animation:gem-hud-arrival .32s ease-out}.onscreen-control-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.onscreen-control-copy{display:grid;line-height:1.25}.onscreen-control-copy small{color:#69756d;font-size:.68rem;font-weight:700}.onscreen-control-options{display:inline-flex;flex:none;overflow:hidden;border:2px solid #23332b;border-radius:7px}.onscreen-control-options button{min-height:30px;padding:0 9px;border:0;border-right:1.5px solid #23332b;border-radius:0;background:#fffdf3;color:#1d2b22;font-size:.72rem;font-weight:900;box-shadow:none}.onscreen-control-options button:last-child{border-right:0}.onscreen-control-options button.active{background:#21372a;color:#fff}body.onscreen-move-hide .move-pad,body.onscreen-camera-hide .camera-pad,body.onscreen-zoom-hide .zoom-pad,body.onscreen-hide-while-answering.code-panel-open .move-pad,body.onscreen-hide-while-answering.code-panel-open .camera-pad,body.onscreen-hide-while-answering.code-panel-open .zoom-pad{display:none}@media(pointer:fine){body.onscreen-move-touch .move-pad,body.onscreen-camera-touch .camera-pad,body.onscreen-zoom-touch .zoom-pad{display:none}}
