:root{color-scheme:dark;--bg:#090e1e;--text:#f2f5ff;--muted:#9ba5c6;--cyan:#59e2e0;--violet:#a18bfa}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:320px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}.ambient{position:absolute;z-index:-1;pointer-events:none;filter:blur(90px);opacity:.25;width:400px;height:400px;border-radius:50%}.ambient-a{background:#246b9f;top:130px;left:-200px}.ambient-b{background:#5c347e;top:580px;right:0}.site{width:min(1160px,calc(100% - 48px));margin:auto}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #ffffff16}.brand{display:flex;align-items:center;gap:13px;font-size:21px;font-weight:800;letter-spacing:-.05em;line-height:1}.brand b{color:var(--cyan)}.brand small{display:block;margin-top:7px;color:#8594b7;font-weight:650;letter-spacing:.16em;font-size:8px}.brand-symbol{font-size:40px;color:var(--cyan);line-height:1}.topbar nav{display:flex;gap:35px;color:#a8b3d0;font-size:13px}.topbar nav a:hover,.text-btn:hover{color:var(--cyan)}.icon-btn{border:1px solid #2b3553;background:#151d35;border-radius:12px;color:#b0bcdd;width:42px;height:42px;display:grid;place-items:center}.icon-btn svg{width:20px}.hero{text-align:center;padding:65px 0 39px}.eyebrow,.section-id,.stat-label,.modal-kicker{font-size:11px;font-weight:750;letter-spacing:.18em;color:var(--cyan)}.live-dot{display:inline-block;width:7px;height:7px;background:#67f5ad;border-radius:50%;margin-right:8px;box-shadow:0 0 10px #67f5ad}.sep{padding:0 12px;color:#46546f}.hero h1{font-size:clamp(46px,7vw,82px);line-height:1.045;letter-spacing:-.065em;margin:22px 0 18px;font-weight:850}.hero h1 span{background:linear-gradient(90deg,#72eae3,#bc99ff);background-clip:text;color:transparent}.hero-desc{max-width:575px;margin:auto;color:#a5b1cf;line-height:1.7;font-size:16px}.game-wrap{background:#121a31;border:1px solid #2b395b;border-radius:22px;overflow:hidden;box-shadow:0 35px 90px #0005}.game-top{height:75px;padding:0 29px;display:flex;align-items:center;justify-content:space-between;gap:10px}.game-stat{display:grid;gap:3px}.game-stat strong{font-size:24px;font-weight:750;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.game-stat strong small{font-size:14px;color:#7281a5}.game-stat.right{text-align:right}.stat-label{color:#8795b5;font-size:9px}.world-status{display:flex;align-items:center;gap:9px;border:1px solid #34797e;color:#6af7e5;border-radius:24px;padding:10px 16px;font-weight:750;font-size:11px;letter-spacing:.07em;background:#163b49}.world-status.night{background:#34264f;color:#d9b5ff;border-color:#70539e}.world-indicator{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 12px currentColor}.game-stage{position:relative;overflow:hidden;background:#0c152b}.game-stage canvas{display:block;width:100%;height:auto;aspect-ratio:13/9;touch-action:none}.stage-bottom{position:absolute;left:0;bottom:0;right:0;min-height:44px;padding:11px 23px;background:#080f21df;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;font-weight:750;letter-spacing:.09em;color:#b5c3e2;pointer-events:none}.key-mark,.diamond{color:#f9c96b}.stage-hint{color:#6c7a9d}.overlay{position:absolute;inset:0;background:#080d1fdc;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(7px)}.overlay[hidden]{display:none}.modal{text-align:center;max-width:435px}.modal-orbit{font-size:55px;color:var(--cyan);text-shadow:0 0 35px #50fff588;margin:0 0 18px}.modal h2{font-size:clamp(29px,4vw,44px);letter-spacing:-.05em;line-height:1.12;margin:12px 0 17px}.modal p{color:#b5c0d7;line-height:1.7;margin:0 auto 26px;font-size:14px}.primary-btn{background:linear-gradient(110deg,#63e4e1,#a68eff);color:#10172b;border:0;padding:16px 25px;min-width:205px;border-radius:12px;font-weight:800;box-shadow:0 10px 35px #56c9d62f}.primary-btn:hover{filter:brightness(1.1)}.primary-btn span{margin-left:14px}.modal-help{margin-top:22px;font-size:10px;letter-spacing:.05em;color:#7f91b4}.game-controls{padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.dpad{display:grid;grid-template-columns:repeat(3,49px);grid-template-rows:repeat(2,43px);gap:5px}.dpad button{border:1px solid #364260;background:#222e4b;border-radius:9px;color:#dce7ff;font-size:23px;touch-action:manipulation}.dpad button:active,.switch-btn:active{transform:scale(.94)}.dpad-up{grid-column:2;grid-row:1}.dpad-left{grid-column:1;grid-row:2}.dpad-down{grid-column:2;grid-row:2}.dpad-right{grid-column:3;grid-row:2}.switch-container{display:flex;gap:12px;align-items:center}.switch-btn{min-width:205px;display:flex;align-items:center;justify-content:center;gap:11px;padding:13px 20px;background:#393363;border:1px solid #7066a4;color:#eee9ff;border-radius:12px;font-weight:800;font-size:12px;letter-spacing:.06em}.switch-btn small{display:block;font-size:9px;color:#aaa5cf;font-weight:600;margin-top:3px}.switch-icon{font-size:27px;color:#c8a7ff}.restart-btn{border:1px solid #364260;background:#1e2844;border-radius:11px;padding:15px;color:#d0d9ef;font-size:14px}.restart-btn:first-letter{font-size:19px}.game-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 27px;border-top:1px solid #293450;color:#8a99b9;font-size:11px;gap:20px}.game-footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.dot{display:inline-block;width:10px;height:10px;border-radius:3px}.dot.cyan{background:#275e71}.dot.purple{background:#654e91}.portal-symbol{color:#7df6e2}.text-btn{background:none;border:0;color:#bdd1fa;white-space:nowrap;font-size:11px}.level-picker{border-top:1px solid #30405c;padding:23px 30px 26px;background:#151e37}.level-picker[hidden]{display:none}.picker-head{display:flex;justify-content:space-between;align-items:center}.picker-head h3{margin:0;font-size:17px}.picker-head button{color:#dce8ff;background:transparent;border:0;font-size:26px}.level-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:9px;margin:19px 0}.level-grid button{border:1px solid #40506f;border-radius:8px;background:#233150;color:#e9efff;padding:13px 2px;font-weight:750}.level-grid button:disabled{opacity:.3;cursor:not-allowed}.level-grid button.current{border-color:#62e9de;color:#62e9de}.level-grid button.passed{background:#225f63}.level-picker p{font-size:12px;color:#97a5c5}.info-section{padding:115px 0 100px}.section-heading h2,.about-section h2{font-size:clamp(31px,4.5vw,48px);letter-spacing:-.05em;line-height:1.15;margin:14px 0 36px}.section-heading h2 span,.about-section h2 span{color:#8695bd}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-grid article{padding:27px;background:#131c33;border:1px solid #263452;border-radius:16px}.feature-icon{font-size:32px;color:var(--cyan)}.feature-grid h3{font-size:18px;margin:20px 0 10px}.feature-grid p{color:#99a8c5;font-size:14px;line-height:1.65;margin:0}.about-section{border-top:1px solid #25334e;display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:70px 0 85px}.about-section h2{margin-bottom:0}.about-section>p{font-size:16px;line-height:1.85;color:#a9b7d0;align-self:center}footer{border-top:1px solid #25334e;padding:30px 0 45px;display:flex;align-items:flex-end;justify-content:space-between;gap:25px}footer b{font-size:14px}footer p{font-size:11px;color:#7989aa;max-width:450px;line-height:1.6}footer>span{font-size:12px;color:#7e8baa;white-space:nowrap}
@media(max-width:720px){.site{width:min(100% - 24px,520px)}.topbar{height:73px}.topbar nav{gap:11px;font-size:11px}.topbar nav a:nth-child(2),.topbar nav a:nth-child(3){display:none}.brand{font-size:17px}.brand-symbol{font-size:33px}.hero{padding:45px 5px 32px}.hero-desc{font-size:14px}.eyebrow{font-size:9px}.game-top{padding:0 12px;height:62px}.world-status{font-size:8px;padding:8px}.game-stat strong{font-size:19px}.stat-label{font-size:7px}.stage-bottom{padding:6px 10px;min-height:26px;font-size:8px}.stage-hint{display:none}.game-controls{padding:18px 13px;gap:7px}.dpad{grid-template-columns:repeat(3,45px);grid-template-rows:repeat(2,43px);gap:4px}.switch-container{flex-direction:column;gap:6px}.switch-btn{min-width:0;width:150px;padding:10px 7px;font-size:10px}.switch-icon{font-size:23px}.restart-btn{padding:7px 10px;font-size:11px}.game-footer{padding:13px;align-items:flex-start;flex-direction:column;font-size:9px;gap:9px}.level-grid{grid-template-columns:repeat(5,1fr)}.info-section{padding:75px 0}.feature-grid{grid-template-columns:1fr}.feature-grid article{padding:20px}.about-section{grid-template-columns:1fr;gap:0;padding:55px 0}.about-section>p{margin-top:0}footer{flex-direction:column;align-items:flex-start}.modal-orbit{font-size:38px;margin-bottom:8px}.modal h2{margin:8px 0}.modal p{font-size:12px;margin-bottom:14px}.primary-btn{padding:12px}.modal-help{display:none}}
@media(max-width:400px){.stage-bottom{font-size:7px}.dpad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,40px)}.switch-btn{width:135px}.game-stat strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* Версия 1.1: история игровых измерений */
.lore-section{padding:80px 0 95px;border-top:1px solid #25334e}.lore-section .section-heading h2{margin-bottom:18px}.lore-lead{max-width:780px;color:#a9b7d0;line-height:1.85;font-size:16px;margin:0 0 32px}.world-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.world-card{position:relative;overflow:hidden;border-radius:20px;padding:32px;min-height:260px;border:1px solid #34516b;background:radial-gradient(circle at 95% 0%,#165f68 0%,transparent 54%),linear-gradient(135deg,#132e3f,#10182d)}.world-card.shadow-world{border-color:#594578;background:radial-gradient(circle at 95% 0%,#5b3684 0%,transparent 54%),linear-gradient(135deg,#28203f,#111527)}.world-card-mark{position:absolute;right:25px;top:13px;font-size:100px;line-height:1;color:#75f5e84a}.shadow-world .world-card-mark{color:#d8acff55}.world-card-id{display:block;font-size:11px;color:#78e7e5;letter-spacing:.15em;font-weight:800}.shadow-world .world-card-id{color:#cdaaff}.world-card h3{font-size:27px;letter-spacing:-.04em;margin:40px 0 12px}.world-card p{max-width:410px;line-height:1.7;color:#b7c5db;font-size:14px;margin:0}.mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:38px}.mission-grid article{padding:8px 0}.mission-grid h3{font-size:23px;letter-spacing:-.035em;margin:16px 0 10px}.mission-grid p{color:#9faccc;line-height:1.8;font-size:14px;margin:0}.lore-note{font-size:13px;color:#8fa1c4;padding:21px 24px;border:1px solid #283854;background:#111b30;border-radius:12px;margin:24px 0 0}
@media(max-width:720px){.lore-section{padding:65px 0}.world-cards,.mission-grid{grid-template-columns:1fr}.world-card{min-height:210px;padding:24px}.world-card h3{margin-top:26px}.mission-grid{gap:18px;margin-top:23px}.lore-lead{font-size:14px}.topbar nav a:nth-child(2){display:inline}}
@media(max-width:400px){.topbar nav{gap:8px;font-size:10px}.brand{font-size:15px}}
