.code-shell{--code-line:#d9c696;display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,30%);overflow:hidden;border:1px solid var(--code-line);border-radius:18px;color:#867343;background:#fffaf0}.code-main{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;min-height:720px;padding:22px;border-right:1px solid var(--code-line);background:#f7edce}.code-main>*{width:min(100%,440px);flex-shrink:0}.code-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.code-eyebrow{color:#b29d65;font-size:10px;font-weight:950;letter-spacing:.8px}.code-top strong{display:block;margin-top:3px;font-size:18px;line-height:1.2}.code-actions button,.code-top button{min-width:0;min-height:44px;padding:7px 10px;border:1px solid #ccb77d;border-radius:9px;color:#9a824b;background:#fffcf3;font-size:13px;font-weight:850;touch-action:manipulation}.code-top button{display:flex;align-items:center;justify-content:center;gap:6px}.code-top button>span:first-child{font-size:25px;line-height:1}.code-history-wrap{position:relative;flex:1;min-height:100px;border:1px solid #dbc992;border-radius:13px;background:#fffdf4;overflow:hidden}.code-history{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px}.code-history:focus-visible{outline:3px solid #b59c59;outline-offset:-4px;border-radius:12px}.code-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;min-height:125px;padding:15px;text-align:center}.code-empty>span{color:#c0aa70;font-family:Fredoka Variable,sans-serif;font-size:37px;word-spacing:15px}.code-empty h2{font-size:23px;line-height:1.15}.code-empty p{max-width:270px;color:#b09b67;font-size:13px;line-height:1.5}.code-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;color:#af9a65;font-size:11px;font-weight:850}.code-row{display:grid;grid-template-columns:25px minmax(0,1fr) 80px;align-items:center;gap:10px;min-height:53px;padding:5px 8px;border-bottom:1px dashed #eee1b8}.code-row:last-child{border-bottom:0}.code-row-number{color:#bda978;font-size:12px;font-weight:850}.code-row-symbols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;justify-items:center;gap:8px}.code-token{--code-tint:#f3e6c1;position:relative;display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--code-tint)}.code-token[data-symbol="1"]{--code-tint:#e3edd5}.code-token[data-symbol="2"]{--code-tint:#e6def2}.code-token[data-symbol="3"]{--code-tint:#f6e6ab}.code-token[data-symbol="4"]{--code-tint:#f4dac4}.code-token[data-symbol="5"]{--code-tint:#f1d9df}.code-token[data-symbol="6"]{--code-tint:#d8e9ec}.code-token svg{width:85%;height:85%}.code-token b{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:18px;height:18px;border:1px solid #dbd0ac;border-radius:50%;color:#80653b;background:#fffdf0;font-size:12px;line-height:1;font-weight:950}.code-token>span{color:#b4a174;font-size:28px}.code-feedback,.code-token>span{font-family:Fredoka Variable,sans-serif}.code-feedback{display:flex;justify-content:end;gap:10px;color:#8e7847;font-size:21px}.code-feedback>span{display:flex;align-items:center;gap:3px}.code-feedback i{font-family:sans-serif;font-size:16px;font-style:normal}.code-clues{display:flex;align-items:center;justify-content:center;gap:9px;min-height:34px;color:#a18d59;font-size:12px;font-weight:850}.code-clues>span[data-index]{display:inline-flex;align-items:center;gap:4px;min-width:29px}.code-clues>span small{color:#b7a36f;font-size:9px}.code-clues b{min-width:18px;padding:1px 3px;border:1px solid #decd9c;border-radius:5px;background:#fff9e4;text-align:center}.code-clues>small{font-size:10px;color:#b7a36f}.code-entry{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 30px}.code-entry:focus-visible{outline:3px solid #b59c59;outline-offset:3px;border-radius:10px}.code-slot{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:64px;padding:5px;border:1px solid #d4bf8a;border-radius:10px;background:#fffaf0;touch-action:manipulation}.code-slot[aria-pressed=true]{border-color:#ac8e41;box-shadow:inset 0 -3px #c9ab5e;background:#fff8d8}.code-slot:focus-visible{outline:3px solid #ad8b42;outline-offset:1px}.code-slot>small{position:absolute;right:3px;top:2px;color:#c6b27c;font-size:8px}.code-slot .code-token{width:43px;height:43px}.code-slot .code-token b{width:20px;height:20px;font-size:14px}.code-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.code-keys button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:49px;padding:4px;border:1px solid #cbb581;border-radius:10px;background:#fffaf0;box-shadow:inset 0 -2px #e2cfa3;touch-action:manipulation}.code-actions{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:6px}.code-actions .code-check{border-color:#b59955;background:#b99d59;color:#fffdf3;box-shadow:inset 0 -2px #967c4266}.code-actions button:disabled,.code-keys button:disabled,.code-top button:disabled{opacity:.4}.code-status{display:flex;align-items:center;justify-content:center;min-height:38px;height:38px;overflow:auto;color:#a78f56;font-size:13px;font-weight:850;line-height:1.4;text-align:center}.code-side{display:flex;flex-direction:column;min-width:0;gap:22px;padding:28px 23px}.code-lock{position:relative;display:flex;align-items:end;justify-content:center;height:100px;margin-bottom:20px}.code-lock>span{display:grid;place-items:center;width:67px;height:61px;margin-bottom:8px;border:2px solid #bca66c;border-radius:12px;color:#ac9256;background:#eed993;font-family:Fredoka Variable,sans-serif;font-size:32px;transform:rotate(-10deg)}.code-lock>span:before{content:"";position:absolute;left:16px;top:-27px;width:31px;height:29px;border:6px solid #c4af76;border-bottom:0;border-radius:20px 20px 0 0}.code-lock svg{width:68px;height:68px;margin-left:-9px;transform:rotate(9deg)}.code-note h2{margin-block:9px 13px;font-size:34px;line-height:1.08;letter-spacing:-.5px}.code-guide p,.code-note p{color:#ad9b6f;font-size:14px;line-height:1.65}.code-guide{padding-block:18px;border-block:1px solid #ecdfbc}.code-guide h3{font-size:18px;line-height:1.3}.code-guide p{margin-top:11px}.code-guide .code-shortcuts{font-size:12px;font-weight:850}.code-records{display:grid;gap:12px}.code-records>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.code-records dt{font-size:13px;font-weight:850}.code-records dd{font-family:Fredoka Variable,sans-serif;font-size:26px;line-height:1}.code-records small{color:#b7a679;font-family:Nunito Variable,sans-serif;font-size:11px}.code-save{display:flex;align-items:start;gap:6px;margin-top:auto;color:#b7a477;font-size:12px;line-height:1.5}.code-save svg{flex-shrink:0;margin-top:2px}.code-result{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:12px;background:#f4e7c3eb}.code-complete{width:100%;max-width:330px;max-height:100%;overflow:auto;padding:18px 12px;border:1px solid #d6c18c;border-radius:12px;background:#fffdf4;text-align:center}.code-complete h2{margin-block:9px;font-size:28px;line-height:1.1}.code-complete p{margin-top:7px;color:#ac9561;font-size:12px;line-height:1.4}.code-secret{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:10px}.code-complete .button{display:flex;justify-content:center;min-height:44px;margin:14px auto 0;padding:8px 15px;color:#fffaf0;background:#b49a58;border-color:#a58a46;font-size:14px}.code-dialog .button{min-height:44px}@media (min-width:761px) and (min-height:541px){.game-frame-code.is-expanded .code-shell{height:100%;grid-template-columns:minmax(0,1fr) minmax(245px,28%)}.game-frame-code.is-expanded .code-main{height:100%;min-height:0}.game-frame-code.is-expanded .code-history-wrap{min-height:100px}.game-frame-code.is-expanded .code-side{overflow:auto}}@media (max-width:760px){.code-shell{grid-template-columns:minmax(0,1fr);border-radius:12px}.code-main{gap:6px;height:min(650px,calc(100svh - 80px));min-height:450px;padding:8px;border-right:0}.code-top strong{font-size:16px}.code-top .code-eyebrow{font-size:8px}.code-top button{padding:6px 9px;font-size:12px}.code-history{padding:5px}.code-empty{gap:9px;padding:9px}.code-empty>span{font-size:27px;word-spacing:10px}.code-empty h2{font-size:19px}.code-empty p{font-size:11px}.code-empty .code-legend{font-size:10px}.code-row{grid-template-columns:18px minmax(0,1fr) 68px;gap:6px;min-height:45px;padding:4px}.code-row-symbols{gap:5px}.code-row .code-token{width:29px;height:29px;border-radius:8px}.code-row .code-token b{width:16px;height:16px;font-size:10px}.code-feedback{gap:8px;font-size:18px}.code-feedback i{font-size:13px}.code-clues{gap:6px;min-height:30px;font-size:11px}.code-clues>span[data-index]{min-width:27px;gap:3px}.code-entry{gap:6px;padding-inline:13px}.code-slot{min-height:50px;padding:4px}.code-slot .code-token{width:34px;height:34px}.code-slot .code-token b{width:17px;height:17px;font-size:12px}.code-keys{gap:2px}.code-keys button{min-height:44px;padding:3px}.code-keys .code-token{width:31px;height:31px}.code-actions{gap:4px}.code-actions button{padding:6px 3px;font-size:11px}.code-status{min-height:34px;height:34px;font-size:11px}.code-side{padding:10px 12px;border-top:1px solid var(--code-line)}.code-guide,.code-note,.code-records{display:none}.code-save{justify-content:center;font-size:11px}.game-frame-code.is-expanded .code-main,.game-frame-code.is-expanded .code-shell{height:100%;min-height:0}.game-frame-code.is-expanded .code-side{display:none}.code-complete{padding:10px}.code-complete h2{font-size:22px}.code-complete .code-eyebrow{font-size:8px}}@media (orientation:landscape) and (max-height:540px){.code-shell{grid-template-columns:minmax(0,1fr)}.code-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,46%);grid-template-rows:44px 30px 50px 44px 44px minmax(25px,1fr);align-content:start;gap:7px 20px;height:310px;min-height:0;padding:10px;border-right:0}.code-main>*{width:100%}.code-history-wrap{grid-column:1;grid-row:1/7;min-height:0;height:100%}.code-top{grid-column:2;grid-row:1}.code-clues{grid-column:2;grid-row:2;min-height:30px}.code-entry{grid-column:2;grid-row:3;padding-inline:20px}.code-slot{min-height:50px;padding:3px}.code-slot .code-token{width:34px;height:34px}.code-keys{grid-column:2;grid-row:4;gap:2px}.code-keys button{min-height:44px;padding:3px}.code-keys .code-token{width:31px;height:31px}.code-actions{grid-column:2;grid-row:5}.code-actions button{padding:6px 3px;font-size:12px}.code-status{grid-column:2;grid-row:6;align-self:start;min-height:25px;height:100%;font-size:11px}.code-side{display:none}.code-row{min-height:49px}.game-frame-code.is-expanded .code-main,.game-frame-code.is-expanded .code-shell{height:100%;min-height:0}.code-complete{padding:10px}.code-complete h2{font-size:23px}}