﻿/* Menu, level selection and soundtrack controls share the game's palette. */
[hidden]{display:none!important}
body{background:#101b1e}
button,a,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.launcher{min-height:100vh;background:radial-gradient(ellipse at 74% 42%,#23413e70,transparent 55%),linear-gradient(135deg,#142226,#10191c 72%);position:relative;overflow:hidden}
.launcher:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#72948908 1px,transparent 1px),linear-gradient(90deg,#72948908 1px,transparent 1px);background-size:64px 64px;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000)}
.launcher-bar{height:100px;max-width:1480px;padding:0 64px;margin:auto;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}
.launcher-brand{display:flex;align-items:center;gap:14px;color:#e4eadd;text-decoration:none;font-size:21px;letter-spacing:4px;font-weight:600}
.launcher-brand small{display:block;font:9px/1.8 Consolas,monospace;letter-spacing:2.2px;color:#869c98}
.launcher-actions{display:flex;gap:14px}.launcher-actions button{border-color:#5a777248;color:#b9cac3;padding:8px 16px}
.home-screen{max-width:1480px;min-height:calc(100vh - 100px);padding:48px 100px 0;margin:auto;display:grid;grid-template-columns:1fr 1.15fr;grid-template-rows:1fr auto;align-items:center;position:relative}
.menu-eyebrow{font:11px/1.8 Consolas,"Microsoft YaHei",monospace;letter-spacing:2.5px;color:var(--gold);margin:0 0 18px}
.home-copy{padding:0 0 54px;z-index:1}.home-copy h1{font-size:64px;letter-spacing:12px;line-height:1.2;font-weight:600;margin:0 0 25px}.home-copy h1 span{display:block;font-size:28px;font-weight:400;line-height:1.7;letter-spacing:5px;color:#bbcdc3;margin-top:25px}.home-description{font-size:14px;line-height:2.1;color:#8da49f;margin:0 0 35px}
.home-buttons{display:grid;max-width:315px;gap:12px}.home-buttons button{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;border-radius:4px;font-size:15px;letter-spacing:2px}.primary-action{background:#dfc98f;color:#242e27;border:1px solid #f0dfa9}.primary-action:hover{background:#eddda9;border-color:#fff0bd}.secondary-action{background:#21342e60;border:1px solid #526d62;color:#c2d4c8}.home-buttons span{font-size:22px;line-height:1}.home-copy .muted{font-size:11px;margin-top:15px}
.home-art{min-height:490px;height:100%;position:relative;display:grid;place-items:center;margin-bottom:45px}.home-art #hero-model{width:96%;position:relative;z-index:1;filter:drop-shadow(0 28px 20px #0006);transform:translateY(-6px)}#hero-model svg{width:100%;max-height:480px;overflow:visible}.art-orbit{position:absolute;width:93%;aspect-ratio:1;border:1px solid #8ea58e24;border-radius:50%;transform:rotateX(57deg) rotateZ(-25deg)}.orbit-two{width:115%;border-style:dashed;border-color:#8ea58e1a}.art-tag{position:absolute;color:#8ca899;font:10px/2 Consolas,"Microsoft YaHei",monospace;letter-spacing:2px}.tag-top{top:25px;right:10px}.tag-bottom{bottom:35px;left:35px;border-left:2px solid var(--gold);padding-left:14px}
.home-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:23px 0 26px;border-top:1px solid #718c7b30;color:#7c9789;font-size:11px;letter-spacing:1px}.home-footer>div{display:flex;align-items:center;gap:13px}.home-footer b{font:26px Consolas,monospace;color:var(--gold)}.home-footer i{height:15px;width:1px;background:#4b6454;margin:0 10px}
.level-screen{max-width:1390px;margin:auto;padding:24px 58px 65px;position:relative}.selection-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.selection-heading .menu-eyebrow{margin-bottom:8px}.selection-heading h1{font-size:34px;letter-spacing:5px;margin:0}.selection-heading p:not(.menu-eyebrow){color:#92aaa1;font-size:12px;margin:9px 0}.level-filters{display:flex;gap:9px;align-items:center;margin:26px 0 23px;flex-wrap:wrap}.level-filters button{background:transparent;border-color:#3a534a;padding:7px 18px;font-size:12px;border-radius:4px}.level-filters button.active{background:#b6be9224;border-color:#a3ad78;color:#e1dfb3}#level-progress{margin-left:auto;color:#8fa79a;font-size:12px}.level-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.level-card{text-align:left;background:linear-gradient(145deg,#22362f90,#142321);border:1px solid #55736265;border-radius:8px;padding:18px 18px 15px;overflow:hidden;transition:transform .18s,border-color .18s,background .18s}.level-card:hover{background:linear-gradient(145deg,#304739,#1c2f29);border-color:#c7bb7d;transform:translateY(-4px)}.card-top{display:flex;align-items:center;gap:10px}.card-index{font:17px Consolas,monospace;color:#e0ce9a}.card-category{font-size:10px;color:#a0b49e;letter-spacing:1px}.card-done{font-size:10px;color:#9acbb2;margin-left:auto}.card-model{height:157px;display:grid;place-items:center;margin:8px 0 10px}.card-model svg{height:100%;width:100%;filter:drop-shadow(0 10px 8px #0003)}.card-info{display:flex;align-items:center;justify-content:space-between}.card-info h2{font-weight:500;font-size:19px;letter-spacing:2px;margin:0}.card-arrow{color:#b1b28b}.card-meta{display:flex;justify-content:space-between;gap:7px;font-size:10px;color:#839e8d;margin-top:10px;flex-wrap:wrap}.card-music{color:#a3bda7}
.topbar{gap:18px}.topbar .brand{min-width:195px}.playing-title{color:#aebfb7;font-size:12px;margin-right:auto;white-space:nowrap}.play-actions{display:flex;gap:7px;align-items:center}.play-actions button,#import{white-space:nowrap}#audio-toggle{color:#dacb9b}#game-shell main{height:calc(100vh - 82px);min-height:620px}.result-actions{flex-wrap:wrap}
.shell-notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 24px;border:1px solid #9d9470;background:#26372df5;border-radius:8px;color:#efe7c6;box-shadow:0 8px 30px #0005;z-index:40;font-size:13px;max-width:90vw;text-align:center}
#music-dialog{width:550px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 38px);padding:29px 32px;border:1px solid #617565;border-radius:13px;background:#172823;color:#e1e9df;box-shadow:0 24px 100px #0009;overflow:auto}#music-dialog::backdrop{background:#071313bd;backdrop-filter:blur(5px)}.music-heading{display:flex;align-items:flex-start;justify-content:space-between}.music-heading .menu-eyebrow{font-size:9px;margin-bottom:6px}.music-heading h2{font-size:25px;font-weight:500;letter-spacing:3px;margin:0}.music-intro{font-size:12px;line-height:1.9;color:#93aaa0;margin:18px 0 22px}#music-dialog label{display:block;font-size:11px;color:#afc4b5;margin-bottom:8px}#music-level{width:100%;font:13px "Microsoft YaHei",sans-serif;border:1px solid #48614e;background:#20372a;color:#e0e8d9;border-radius:5px;padding:10px 12px}.track-card{display:flex;align-items:center;gap:15px;padding:20px 0;min-height:95px}.track-icon{font-size:31px;color:#d1bf87}.track-card div{min-width:0}.track-card b{font-size:13px;display:block;overflow-wrap:anywhere;font-weight:500}.track-card div>span{display:block;font-size:10px;color:#87a18d;margin-top:5px}.music-buttons{display:flex;gap:8px;flex-wrap:wrap}.music-buttons button{font-size:12px}#music-import{background:#c8b67e;color:#1e3024;border-color:#d5c793}.volume-row{display:flex;align-items:center;gap:14px;margin-top:25px}.volume-row label{white-space:nowrap;margin:0!important}.volume-row output{color:#d9cf9c;display:inline-block;min-width:32px;margin-left:5px}.volume-row input{flex:1;min-width:50px;accent-color:#d6c68e}.volume-row button{min-width:60px}.storage-note{font-size:10px;line-height:1.8;color:#8da38d;margin:14px 0 23px}.music-sharing{border-top:1px solid #3e5746;padding-top:18px}.music-sharing h3{font-size:12px;font-weight:500;margin:0 0 6px}.music-sharing p{color:#8fa68e;font-size:11px;line-height:1.9;margin:0 0 12px}#music-feedback{font-size:11px;line-height:1.8;color:#d4c999;margin:18px 0 0;overflow-wrap:anywhere;min-height:20px}
@media(min-width:1700px){.home-copy h1{font-size:76px}.home-art{min-height:600px}}
@media(max-width:1150px){.launcher-bar{padding:0 35px}.home-screen{padding:35px 55px 0}.home-copy h1{font-size:52px}.home-art{min-height:420px}.level-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.level-screen{padding:20px 35px 45px}.play-actions{gap:4px}.topbar{padding:0 16px;gap:12px}.topbar .brand{min-width:155px}.topbar .brand small{letter-spacing:0}.topbar .brand b{font-size:17px;letter-spacing:1px}.play-actions .quiet{padding:6px}.home-footer>span{display:none}}
@media(max-width:800px){.launcher-bar{height:85px;padding:0 22px}.launcher-brand{font-size:18px;letter-spacing:2px}.launcher-actions{gap:6px}.launcher-actions button{font-size:11px;padding:6px 9px}.home-screen{padding:30px 30px 0;min-height:calc(100vh - 85px)}.home-copy h1{font-size:42px;letter-spacing:7px}.home-copy h1 span{font-size:22px}.home-art{min-height:350px}.tag-top{display:none}.tag-bottom{font-size:8px;left:10px;bottom:20px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.playing-title{display:none}.play-actions{margin-left:auto}.topbar .brand{min-width:auto}.topbar .brand small{display:none}.topbar .brand-mark{font-size:28px}.play-actions button{font-size:10px}#game-shell .topbar{height:82px;flex-wrap:wrap;gap:4px 12px}.selection-heading h1{font-size:28px}}
@media(max-width:560px){.home-screen{display:flex;flex-direction:column;padding:35px 26px 0;align-items:stretch}.home-copy{padding-bottom:15px}.home-copy h1{font-size:42px}.home-copy h1 span{font-size:21px;margin-top:15px}.home-description{margin-bottom:22px}.home-art{min-height:250px;height:250px;margin:0 0 15px}.home-art #hero-model{height:250px;width:80%;margin:auto}#hero-model svg{height:100%}.home-footer{padding:20px 0;font-size:10px}.home-footer i{margin:0}.home-footer>div{gap:8px}.home-buttons{max-width:none}.home-copy .muted{font-size:10px}.level-screen{padding:15px 18px 35px}.selection-heading{align-items:flex-start}.selection-heading>button{font-size:10px}.selection-heading p:not(.menu-eyebrow){font-size:10px}.level-grid{gap:10px}.level-card{padding:12px}.card-model{height:120px}.card-info h2{font-size:16px}.card-done{display:none}.level-filters button{padding:6px 10px}.level-filters{gap:6px}#level-progress{font-size:10px}#music-dialog{padding:23px}.launcher-brand small{font-size:7px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.level-card{transition:none}.level-card:hover{transform:none}}
#library-track,.scene-music select{width:100%;font:13px "Microsoft YaHei",sans-serif;border:1px solid #48614e;background:#20372a;color:#e0e8d9;border-radius:5px;padding:9px 10px}
#track-id{display:block;font:10px/1.8 Consolas,monospace;color:#b9b68b;overflow-wrap:anywhere;margin-top:5px}.music-editor-link{font-size:11px;color:#cbbf91;align-self:center;text-decoration:none}
.scene-music{border-top:1px solid #3e5746;margin-top:22px;padding-top:15px}.scene-music h3{font-size:12px;font-weight:500;margin:0}.scene-music p{font-size:10px;color:#8fa68e;margin:7px 0 12px}.scene-music-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.scene-music select{font-size:11px;margin-top:5px}.scene-music label{margin:0!important}
#music-dialog .music-sharing{margin-top:20px}.legacy-music{font-size:10px;color:#92a88e;margin-top:16px}.legacy-music summary{cursor:pointer}.legacy-music button{font-size:10px;margin-right:6px}.legacy-music p{line-height:1.8}#music-save-package{background:#c8b67e;color:#1e3024;border-color:#d5c793}
@media(max-width:560px){.launcher-bar{height:auto;min-height:95px;flex-wrap:wrap;padding-top:16px;padding-bottom:12px;gap:13px}.launcher-actions{flex-wrap:wrap}.scene-music-grid{grid-template-columns:1fr}.volume-row{gap:8px}}
#settings-dialog{width:460px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 38px);padding:29px 32px;border:1px solid #617565;border-radius:13px;background:#172823;color:#e1e9df;box-shadow:0 24px 100px #0009;overflow:auto}
#settings-dialog::backdrop{background:#071313bd;backdrop-filter:blur(5px)}#settings-dialog .volume-row{margin-top:32px}#settings-dialog label{font-size:12px;white-space:nowrap}.settings-note{font-size:11px;color:#a4b5a8;line-height:1.8;margin:17px 0 0}.settings-display{border-top:1px solid #3e5746;margin-top:22px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;font-size:12px}
