.games-page{--accent:#d9edb1}.games-hero{background:radial-gradient(ellipse at 95% 35%,#3a4e394d,transparent 60%),#19141e}.games-hero .hero-grid{grid-template-columns:1fr 1fr;gap:56px;padding-bottom:76px}.games-hero h1{font-size:clamp(40px,4.7vw,62px)}.games-hero .hero-lead{font-size:25px}.hero-lead>span{color:#d9edb1}.game-editor{position:relative;min-width:0;background:#2a2730;border:1px solid #625963;border-radius:15px;transform:rotate(2deg);box-shadow:0 28px 50px #0004}.editor-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;gap:14px;font-size:10px;letter-spacing:1.4px}.editor-top>span:first-child{display:flex;gap:5px}.editor-top i{display:block;width:6px;height:6px;background:#847b87;border-radius:50%}.editor-top b{font-weight:500}.editor-play{color:#d9edb1}.editor-map{position:relative;overflow:hidden;background:#303e33}.editor-map>img{width:100%;aspect-ratio:1.47;object-fit:cover}.map-caption{position:absolute;inset:auto 0 0;padding:55px 22px 22px;background:linear-gradient(transparent,#0c1217ed);font:700 26px/1.2 Manrope,sans-serif;letter-spacing:-.5px}.editor-bottom{display:flex;justify-content:space-between;gap:10px;padding:17px;font-size:11px;color:#ddd2dc}.editor-bottom b{color:#c6e69e;margin-right:5px}.game-sticker{position:absolute;right:-13px;bottom:-54px;padding:14px 20px 14px 55px;background:#d9edb1;color:#24212a;font-size:13px;line-height:1.35;border-radius:12px;transform:rotate(-7deg);box-shadow:0 7px 15px #0002}.game-sticker>span{position:absolute;left:14px;top:14px;font-size:30px}.game-sticker b{font-size:18px}.games-hero .hero-facts{grid-template-columns:1.4fr 1fr 1fr}.game-intro{border-bottom:1px solid var(--line)}.game-intro>div:first-of-type{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}.game-intro>div>p{font-size:20px;color:var(--muted);margin-bottom:0}.creation-path{display:flex;gap:22px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:30px;margin-top:24px;font:600 17px Manrope,sans-serif}.creation-path b{font-weight:400;color:#b8441a}.game-track{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:center;padding-block:50px}.game-track+.game-track{border-top:1px solid var(--line);padding-top:65px}.track-age{font:800 22px Manrope,sans-serif;letter-spacing:-.7px;margin-bottom:23px}.track-age span{font:600 10px 'Golos Text',sans-serif;letter-spacing:1px;display:inline-block;margin-left:16px;color:#69656c}.game-track h3{font-size:43px;letter-spacing:-1.6px;margin-bottom:15px}.track-lead{font-size:20px;line-height:1.5}.game-track p:not(.track-age):not(.track-lead){color:var(--muted);font-size:16px}.game-track ul{padding-left:20px;font-size:15px;color:var(--muted);line-height:1.8;margin:24px 0}.game-track li{padding-left:5px;margin-bottom:8px}.rpg-notebook{padding:35px;background:#e7ebdb;border:1px solid #d1d9c2;border-radius:5px 20px 20px 5px;box-shadow:8px 10px 0 #24212a0c;transform:rotate(-2deg)}.notebook-label{font-size:10px;letter-spacing:1.5px}.quest-map{display:flex;justify-content:space-between;align-items:center;gap:5px;padding-block:36px;color:#465338;font-size:45px;overflow:hidden}.quest-dots{font:14px monospace;color:#71805b;letter-spacing:-2px}.rpg-notebook h4{font:750 26px/1.3 Manrope,sans-serif;margin:0 0 16px;letter-spacing:-.8px}.rpg-notebook p{font-size:16px;color:#595f50}.note-rule{padding:20px;border-block:1px solid #bcc7a8;font:16px/2 Consolas,monospace;margin:24px 0}.note-rule>span{font-weight:bold;color:#41633b}.rpg-notebook small{display:block;font-size:11px;line-height:1.7;color:#616756}.python-screen{margin:0;background:#29252e;border-radius:15px;padding:18px;max-width:430px;justify-self:center;width:100%;box-shadow:8px 10px 0 #24212a0c}.screen-heading{display:flex;justify-content:space-between;color:#d9edb1;font:11px/1.5 monospace;padding-bottom:16px}.python-screen img{width:100%;max-height:390px;object-fit:cover;object-position:top;border-radius:5px}.python-screen figcaption{color:#d5cbd7;font-size:12px;padding-top:15px}.game-sources{font-size:12px;color:var(--muted);display:flex;gap:20px;flex-wrap:wrap;margin:15px 0 0}.game-sources a{text-decoration:underline;text-underline-offset:4px}.rule-section{background:#e7e2ed}.rule-lab{display:grid;grid-template-columns:1.2fr 1fr;background:#201c27;border-radius:20px;overflow:hidden;color:#faf8f3}.door-stage{padding:28px;min-width:0;border-right:1px solid #ffffff20}.stage-heading{display:flex;justify-content:space-between;gap:16px;font-size:10px;letter-spacing:1px;color:#ddd2df}.stage-heading>span:last-child{color:#d9edb1;letter-spacing:0;font-size:12px}.stage-scene{height:250px;position:relative;overflow:hidden;margin-block:20px;border-radius:10px;background:linear-gradient(0deg,#393447 0 19%,transparent 19%),repeating-linear-gradient(0deg,transparent 0 39px,#ffffff06 39px 40px),repeating-linear-gradient(90deg,#302b3d 0 59px,#ffffff06 59px 60px)}.scene-floor{position:absolute;bottom:15%;left:0;right:0;border-top:3px solid #5c5267}.scene-window{position:absolute;left:12%;top:15%;width:60px;height:74px;background:#a8bcba;border:7px solid #544b61;border-radius:30px 30px 0 0;box-shadow:0 0 40px #c4e0c31a}.scene-window:before{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:4px solid #544b61}.scene-window:after{content:'';position:absolute;top:40%;left:0;right:0;border-top:4px solid #544b61}.scene-key{position:absolute;bottom:17%;left:17%;font-size:48px;line-height:1;color:#ffcb78;transform:rotate(-30deg);transition:opacity .2s}.door-frame{position:absolute;right:20%;bottom:16%;width:105px;height:165px;border:8px solid #76617d;border-bottom:0;border-radius:13px 13px 0 0;background:#14121b;perspective:500px}.scene-door{position:absolute;inset:0;background:#a87855;border:4px solid #c29469;border-bottom:0;border-radius:5px 5px 0 0;transform-origin:left;transition:transform .4s;z-index:2}.scene-door:before{content:'';position:absolute;inset:13px 13px 46%;border:3px solid #885c43}.scene-door:after{content:'';position:absolute;right:9px;top:55%;width:9px;height:9px;border-radius:50%;background:#f4ce85}.door-glow{position:absolute;inset:0;display:grid;place-items:center;color:#d9edb1;font-size:50px;background:radial-gradient(#799e4d77,transparent);opacity:0;transition:opacity .4s}.has-key .scene-key{opacity:0}.door-open .scene-door{transform:rotateY(-75deg)}.door-open .door-glow{opacity:1}#door-status{min-height:50px;font-size:14px;color:#ddd2df;line-height:1.5;margin-bottom:16px}.lab-actions{display:flex;gap:12px;align-items:stretch}.lab-actions>button{min-width:0;flex:1;cursor:pointer;border:0;font-size:13px;padding:14px 10px;border-radius:9px}.lab-actions>button:first-child{background:#3b3444;color:#faf8f3;border:1px solid #65586e}.lab-actions>button:disabled{opacity:.5;cursor:default}.rule-editor{padding:32px;min-width:0}.rule-editor .eyebrow{color:#cabbce;font-size:10px}.rule-switch{display:flex;align-items:center;gap:14px;cursor:pointer;line-height:1.6;font-size:17px}.rule-switch input{width:23px;height:23px;accent-color:#ff7945;flex-shrink:0}.rule-switch b{color:#d9edb1;font-weight:500}.rule-editor pre{font:15px/2 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:24px 20px;background:#14111a;color:#d9edb1;border-radius:10px;margin:25px 0 20px}.rule-explanation{font-size:14px;color:#cabbce}.lab-reset{border:0;border-bottom:1px solid #a691af;background:none;color:#e5d9e9;cursor:pointer;padding:5px 0;font-size:13px}.demo-note{font-size:12px;color:#69656c;margin:22px 0 0;max-width:650px}.project-ideas{display:grid;grid-template-columns:repeat(3,1fr);gap:44px;margin-top:40px}.project-ideas article{border-top:2px solid #d4c9b9;padding-top:24px}.project-ideas article>span{font:11px monospace;color:#9a4d2c}.project-ideas h3{font-size:28px;margin-top:25px}.project-ideas p{font-size:16px;color:var(--muted);margin-bottom:0}.ideas-note{font-size:12px;color:var(--muted);margin:30px 0 0}.game-teacher{background:#e6eadc}.teacher-feature{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px;align-items:center}.teacher-portrait{position:relative}.teacher-portrait img{border-radius:20px 20px 65px 20px;width:100%}.teacher-portrait>span{display:block;font:600 10px 'Golos Text',sans-serif;letter-spacing:1.3px;padding-top:17px}.teacher-feature h2{font-size:clamp(32px,4vw,47px)}.teacher-bio{font-size:17px;color:#535c46}.teacher-feature p:not(.eyebrow):not(.teacher-bio){font-size:16px;color:var(--muted)}.teacher-method{list-style:none;padding:0;margin:28px 0}.teacher-method li{padding-block:15px;border-top:1px solid #cbd2bf;font-size:14px;color:#535c46}.teacher-method b{font-weight:600;color:#24212a}.games-page .learning-steps{margin-bottom:0}.rule-switch:has(input:focus-visible){outline:3px solid #ff7945;outline-offset:6px;border-radius:3px}
@media(max-width:1000px){.game-track,.teacher-feature{gap:40px}.games-hero .hero-grid{gap:30px}.game-sticker{right:-5px}.editor-bottom{font-size:10px;padding:14px 10px}.game-intro>div:first-of-type{gap:40px}.rule-editor{padding:26px}.door-stage{padding:24px}.project-ideas{gap:28px}.games-hero .hero-facts{gap:20px}}
@media(max-width:760px){.games-hero .hero-grid{grid-template-columns:1fr;gap:35px;padding-bottom:65px}.games-hero h1{font-size:clamp(36px,9vw,55px)}.games-hero .hero-lead{font-size:23px}.game-editor{max-width:500px;width:calc(100% - 10px);justify-self:center}.editor-bottom{padding:16px;font-size:10px}.map-caption{font-size:24px}.game-sticker{right:-4px;font-size:11px;padding:12px 16px 12px 48px}.game-sticker b{font-size:16px}.games-hero .hero-facts{grid-template-columns:1fr}.game-intro>div:first-of-type,.game-track,.teacher-feature,.rule-lab{grid-template-columns:1fr;gap:24px}.game-intro>div>p{font-size:18px}.creation-path{gap:13px;font-size:13px;line-height:1.7}.game-track{padding-block:30px}.game-track+.game-track{padding-top:45px;margin-top:20px}.game-track h3{font-size:35px}.track-age span{display:block;margin:9px 0 0}.track-lead{font-size:19px}.rpg-notebook{margin:15px 5px 10px;padding:26px;transform:rotate(-1deg)}.python-screen{max-width:400px;margin-top:10px}.python-screen img{max-height:340px}.game-sources{gap:12px}.rule-lab{gap:0}.door-stage{border-right:0;border-bottom:1px solid #ffffff20;padding:22px}.stage-scene{height:230px}.rule-editor{padding:26px}.project-ideas{grid-template-columns:1fr;gap:30px;margin-top:30px}.project-ideas h3{font-size:27px;margin-top:16px}.project-ideas h3 br{display:none}.teacher-feature{gap:35px}.teacher-portrait{max-width:350px}.teacher-feature h2{font-size:34px}.teacher-feature .eyebrow{font-size:10px}.games-page .contact-grid h2{font-size:34px}}
@media(max-width:360px){.games-hero h1{font-size:34px}.editor-bottom{font-size:9px;padding:13px 9px}.editor-top{padding:13px;font-size:9px}.map-caption{font-size:22px}.games-hero .hero-facts span{display:block}.rpg-notebook{padding:22px}.rule-editor,.door-stage{padding:19px}.lab-actions{flex-direction:column}.teacher-feature h2{font-size:30px}.game-track h3{font-size:32px}}
.game-track>*{min-width:0}
@media(prefers-reduced-motion:reduce){.scene-key,.scene-door,.door-glow{transition:none}}
