:root{color-scheme:dark;--accent:#d5f86b}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#080d12;color:#eef3f4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}button,input,select{-webkit-tap-highlight-color:transparent}#app{position:relative;width:100%;height:100vh;height:100svh;min-height:460px;max-width:none;margin:0;padding:0;isolation:isolate}.stage{position:absolute;inset:0;width:100%;height:100%!important;min-height:0;border:0;border-radius:0;overflow:hidden;background:radial-gradient(ellipse at 63% 46%,#22313a 0,#101a20 40%,#070c10 78%)}#fx{position:absolute;inset:0;width:100%;height:100%;z-index:1}.scene-haze{background:radial-gradient(ellipse at 60% 50%,#c7e5de11,transparent 60%)}.studio-lines{opacity:.18}.masthead{position:absolute;top:0;left:0;right:0;height:76px;padding:0 26px;z-index:30;background:linear-gradient(#040b12bc,#040b1233,transparent);border:0}.brand{font-size:20px;gap:9px;white-space:nowrap}.brand small{font-size:6px;letter-spacing:2.5px}.brand svg{width:30px}.header-controls{margin-left:auto;gap:10px}.header-controls .status{display:none}.volume{width:75px}.mode-nav{position:absolute;z-index:35;top:17px;left:230px;right:230px;display:flex;align-items:center;justify-content:center;height:42px;gap:3px;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;background:none;border:0}.mode-nav button{height:39px;min-width:90px;white-space:nowrap;font-size:12px;border-radius:0;border:0;background:transparent;padding:0 10px;color:#c4d2dc;flex-shrink:0}.mode-nav svg{display:none}.mode-nav button[aria-pressed=true]{background:transparent;border-bottom:2px solid var(--accent);color:#fff;box-shadow:none}.scene-heading{top:108px;left:34px;z-index:4}.scene-heading>span{font-size:9px;letter-spacing:2px;color:#b3c5d1}.scene-heading h1{font-size:23px;margin-top:11px;letter-spacing:1px}.scene-heading p{font-size:11px;color:#a2b5c4}.vehicle-art{width:75%;height:87%;right:-11%;bottom:-12%;background-size:300% 200%;z-index:3}.gauge-shell{width:min(39vw,390px);max-width:none;height:auto;left:5%;top:53%;aspect-ratio:1}.speed-readout strong{font-size:49px}.render-status{top:87px;right:28px;font-size:9px;color:#d5e3ee;z-index:8}.render-status i{width:4px;height:4px}.motion-pill{position:absolute;right:28px;top:107px;z-index:8;font-size:9px;color:#c0ceda}.stage-bottom{left:35px;right:35px;bottom:155px}.stage-bottom>span{font-size:10px;color:#a9bdce}.special-button{height:38px;padding:0 18px;font-size:12px;backdrop-filter:blur(16px);background:#17222d77;border:1px solid #dce7ed33;border-radius:24px}.drive-controls{position:absolute;z-index:40;bottom:30px;left:50%;transform:translateX(-50%);width:calc(100% - 64px);max-width:1120px;height:88px;padding:13px 22px;display:grid;grid-template-columns:1.05fr .95fr .95fr 1.45fr;align-items:center;gap:15px;border:1px solid #ffffff3a;border-radius:45px;background:#172431a3;backdrop-filter:blur(24px);box-shadow:0 12px 36px #0005}.primary{min-height:48px;border:0;border-radius:26px;box-shadow:none;font-size:14px;background:#edf4f1;color:#0b181f;padding:0 20px}.primary.running{background:#ffffff15;border:1px solid #ffffff42;color:#f7fbff}.secondary{height:45px;background:transparent;border:0;border-radius:25px;font-size:12px;padding:0 8px;color:#e0ebf1}.secondary[aria-pressed=true]{background:#ffffff15;border:0;color:var(--accent)}.throttle{padding-left:16px;border-left:1px solid #ffffff32}.throttle>span{font-size:10px}.throttle b{color:#d8e6ee}.throttle input{height:28px;margin:2px 0}.throttle small{font-size:8px;color:#b2c6d4}.throttle output{font-size:10px}footer{position:absolute;bottom:7px;left:35px;right:35px;z-index:35;padding:0;font-size:8px;color:#afbfca;display:flex;justify-content:space-between;line-height:1.2;pointer-events:none}.footer-links{opacity:.6}.garage-drawer{position:absolute;z-index:45;right:35px;bottom:132px;background:#17212cbd;border:1px solid #fff3;border-radius:22px;padding:10px 18px;font-size:11px;color:#e3edf5}.garage-drawer span{margin-left:22px;color:var(--accent)}#garage-options{position:absolute;z-index:44;left:32px;right:32px;bottom:177px;padding:10px 16px 0;border:1px solid #ffffff26;border-radius:18px;background:#0b151fec;backdrop-filter:blur(25px);display:none}#garage-options.expanded:not([hidden]){display:block}.car-strip{padding:3px 0 7px;gap:8px}.car-option{height:99px;border-radius:8px}.car-thumb{height:65px}.car-option strong{font-size:12px}.dashboard-row{padding:4px 0 8px}.segments button{height:31px;min-width:115px;font-size:11px}.scene-options{position:absolute;z-index:12;left:35px;right:35px;bottom:130px;height:auto;padding:0;display:flex;gap:8px}.scene-options>div:not(.speech){display:none}.scene-options>.secondary{height:32px;background:#142332aa;border:1px solid #ffffff25;border-radius:22px;font-size:10px}.speech{position:relative;left:auto;right:auto;bottom:auto!important;flex:1;max-width:600px;padding:12px 18px;min-height:0;background:#101c27c4;border-color:#ffffff30;backdrop-filter:blur(20px)}.speech p{font-size:14px;margin:5px 0 0}.speech>span{font-size:9px}.scene-options.talking{align-items:flex-end}.camera-box{top:135px;right:28px;width:160px}.stage:not([data-mode=garage]) .scene-heading{left:35px;top:108px;max-width:48%}.stage:not([data-mode=garage]) .scene-heading h1{max-width:300px;font-size:28px;line-height:1.4}.stage:not([data-mode=garage]) .gauge-shell{left:35px;top:auto;bottom:205px;width:180px;height:100px;transform:none}.stage:not([data-mode=garage]) .speed-readout strong{font-size:46px}.stage:not([data-mode=garage]) .speed-readout .readout-label{font-size:9px}.stage:not([data-mode=garage]) .unit{font-size:11px}.stage:not([data-mode=garage]) .scene-meter{left:35px;top:230px;width:180px}.stage:not([data-mode=garage]) .scene-meter strong{font-size:32px}.stage:not([data-mode=garage]) .stage-bottom{bottom:177px}.stage[data-mode=horse] .character-art{width:75%;right:-4%;top:-4%;aspect-ratio:1}.stage[data-mode=girlfriend] .character-art,.stage[data-mode=empress] .character-art{width:64%;right:0;top:0;height:95%;background-position-y:0;background-size:300% auto}.stage[data-mode=garage][data-dashboard=digital] .gauge-shell,.stage[data-mode=garage][data-dashboard=hud] .gauge-shell{height:46%;top:52%;left:5%;width:32%}.stage[data-mode=garage][data-dashboard=digital] .speed-readout strong,.stage[data-mode=garage][data-dashboard=hud] .speed-readout strong{font-size:78px}
body[data-mode=rocket]{--accent:#ffbd80}.stage[data-mode=rocket]{background:#83a6bf}.stage[data-mode=rocket] .scene-haze,.stage[data-mode=rocket] .studio-lines,.stage[data-mode=rocket] .scene-heading,.stage[data-mode=rocket] .scene-meter,.stage[data-mode=rocket] .special-flash{display:none}.stage[data-mode=rocket] .gauge-shell{left:35px;top:218px;bottom:auto;height:92px;width:180px;z-index:10}.stage[data-mode=rocket] .speed-readout strong{font-size:38px;font-weight:450}.stage[data-mode=rocket] .readout-label{color:#e2eaf0;font-size:10px}.stage[data-mode=rocket] .unit{color:#e1e9ef}.stage[data-mode=rocket] .stage-bottom{bottom:142px;left:auto;right:34px}.stage[data-mode=rocket] .stage-bottom>span{display:none}body[data-mode=rocket] .scene-options{bottom:141px;right:180px;left:265px}body[data-mode=rocket] .scene-options>.secondary{display:none}.flight-hud{position:absolute;z-index:9;left:35px;top:125px;bottom:142px;text-shadow:0 2px 13px #0007;pointer-events:none;color:#f7f9fa}.altitude-stat>span{display:block;font-size:11px;color:#e2e9ef;margin-bottom:5px}.altitude-stat strong{font-size:41px;font-weight:450;letter-spacing:1px;font-variant-numeric:tabular-nums}.altitude-stat>small{font-size:13px;margin-left:6px}.flight-small{position:absolute;top:186px;left:0;display:flex;flex-direction:column;gap:11px;white-space:nowrap;font-size:10px;color:#dce7ef}.flight-small b{font-size:20px;font-weight:500;margin-left:12px;color:#fff}.flight-small small{margin-left:4px;font-size:10px}.flight-route{position:absolute;bottom:44px;left:3px;width:75px;height:120px;display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:#dce6ed;padding-left:18px}.route-line{position:absolute;left:0;top:4px;bottom:4px;width:1px;background:#d5e1e580}.route-line i{position:absolute;bottom:0;height:0;max-height:100%;width:2px;background:#ffe1ad;box-shadow:0 0 10px #ffab38}.flight-route>span:before{content:'';position:absolute;left:-2px;width:5px;height:5px;border-radius:50%;margin-top:3px;background:#edf0f5}.flight-phase{position:absolute;bottom:12px;white-space:nowrap;display:flex;align-items:center;gap:8px;font-size:10px}.flight-phase i{width:5px;height:5px;background:#ffb568;border-radius:50%;box-shadow:0 0 11px #ffba82}.reset-flight{position:absolute;bottom:-17px;left:0;font-size:9px;padding:3px 0;background:none;border:0;color:#ccdae5;pointer-events:auto}#toast{bottom:132px}dialog{z-index:100;background:#101b26;border-color:#ffffff42}
@media(max-width:1100px){.brand{font-size:16px}.brand small{font-size:5px}.mode-nav{left:187px;right:125px;justify-content:flex-start}.mode-nav button{min-width:79px;padding:0 8px;font-size:11px}.volume{display:none}.masthead{padding:0 21px}.flight-hud{left:29px}.drive-controls{width:calc(100% - 40px);gap:8px;padding:12px 18px}.primary{font-size:12px;padding:0 10px}.secondary{font-size:11px}.brand svg{width:25px}}
@media(max-height:700px) and (min-width:641px){.masthead{height:62px}.mode-nav{top:10px}.scene-heading,.stage:not([data-mode=garage]) .scene-heading{top:85px}.render-status{top:72px}.motion-pill{top:91px}.flight-hud{top:90px;bottom:134px}.altitude-stat strong{font-size:34px}.stage[data-mode=rocket] .gauge-shell{top:169px;left:29px}.stage[data-mode=rocket] .speed-readout strong{font-size:31px}.flight-small{top:153px;gap:4px}.flight-small b{font-size:18px}.flight-route{height:77px;bottom:47px}.drive-controls{height:76px;bottom:26px}.scene-options{bottom:117px}.stage-bottom{bottom:150px}.garage-drawer{bottom:113px}#garage-options{bottom:154px}.gauge-shell{width:min(38vw,310px);top:50%}.stage:not([data-mode=garage]) .gauge-shell{bottom:170px}.stage:not([data-mode=garage]) .scene-meter{top:193px}.stage[data-mode=horse] .character-art{width:65%;top:-15%;right:-3%}.stage[data-mode=girlfriend] .character-art,.stage[data-mode=empress] .character-art{width:57%}.vehicle-art{bottom:-17%;height:100%;width:73%}.flight-route{display:none}}
@media(max-width:640px){#app{min-height:590px}.masthead{height:55px;padding:0 16px}.brand{font-size:17px}.brand small{display:none}.header-controls{gap:4px}.mode-nav{left:10px;right:10px;top:57px;height:39px;gap:3px;justify-content:flex-start;background:#0a172046;border-radius:0;padding:0 6px}.mode-nav button{min-width:80px;font-size:11px;height:38px}.scene-heading,.stage:not([data-mode=garage]) .scene-heading{top:121px;left:22px}.scene-heading h1,.stage:not([data-mode=garage]) .scene-heading h1{font-size:21px;max-width:250px}.scene-heading p{display:none}.render-status{top:105px;right:18px;font-size:8px}.motion-pill{top:122px;right:18px;font-size:8px}.vehicle-art{width:110%;height:78%;right:-24%;bottom:5%}.gauge-shell{width:64%;left:-5%;top:55%}.speed-readout strong{font-size:32px}.drive-controls{bottom:27px;width:calc(100% - 24px);height:119px;border-radius:24px;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:9px 10px}.drive-controls .primary{min-height:40px;font-size:11px}.drive-controls .secondary{height:40px;font-size:10px}.power-icon{font-size:18px}.throttle{grid-column:1/-1;padding:2px 7px 0;border-left:0}.throttle>span{font-size:9px}.throttle input{height:23px;margin:0}.throttle small{font-size:7px;text-align:right}.throttle output{font-size:8px}footer{left:16px;right:16px;bottom:7px;font-size:7px;display:block}footer .footer-links{display:none}.garage-drawer{bottom:157px;right:18px;padding:8px 13px;font-size:10px}#garage-options{left:12px;right:12px;bottom:195px;padding:7px 9px}.car-strip{gap:6px}.car-option{min-width:90px;height:90px}.car-thumb{height:59px}.car-option strong{font-size:10px}.car-option small{font-size:7px}.dashboard-row{padding-bottom:7px}.segments button{min-width:0;height:29px;font-size:10px}.stage-bottom{bottom:159px;left:20px;right:20px}.stage-bottom>span{font-size:8px;max-width:55%}.stage-bottom .special-button{height:32px;font-size:10px;padding:0 12px}.stage[data-mode=garage] .stage-bottom .special-button{margin-right:131px}.scene-options{left:20px;right:20px;bottom:157px;gap:6px;display:flex}.scene-options .secondary{font-size:9px;padding:0 9px}.speech{padding:9px 13px;max-width:100%}.speech p{font-size:12px}.scene-options.talking>.secondary{display:none}.stage:not([data-mode=garage]) .stage-bottom{bottom:206px}.stage:not([data-mode=garage]) .scene-meter{top:225px;left:22px;width:126px}.stage:not([data-mode=garage]) .gauge-shell{left:22px;bottom:239px;width:140px;height:84px}.stage:not([data-mode=garage]) .speed-readout strong{font-size:34px}.stage[data-mode=horse] .character-art{width:112%;right:-18%;top:17%}.stage[data-mode=girlfriend] .character-art,.stage[data-mode=empress] .character-art{width:100%;right:-24%;top:18%;height:70%;opacity:1}.camera-box{top:143px;right:16px;width:100px}.stage[data-mode=garage][data-dashboard=digital] .gauge-shell,.stage[data-mode=garage][data-dashboard=hud] .gauge-shell{width:53%;height:33%;top:55%;left:5%}.stage[data-mode=garage][data-dashboard=digital] .speed-readout strong,.stage[data-mode=garage][data-dashboard=hud] .speed-readout strong{font-size:59px}.flight-hud{left:22px;top:143px;bottom:177px}.altitude-stat strong{font-size:32px}.altitude-stat>span{font-size:10px}.flight-small{top:156px;gap:8px}.flight-small b{font-size:18px}.stage[data-mode=rocket] .gauge-shell{left:22px;top:224px;bottom:auto;height:70px}.stage[data-mode=rocket] .speed-readout strong{font-size:30px}.stage[data-mode=rocket] .stage-bottom{bottom:161px;right:20px}.flight-route{display:none}.flight-phase{bottom:25px}.reset-flight{bottom:0}.stage[data-mode=rocket] .special-button{margin:0}body[data-mode=rocket] .scene-options{left:170px;right:15px;bottom:205px}.stage[data-mode=rocket] .speech{width:auto;max-width:100%;font-size:11px}#toast{bottom:155px}}
@media(prefers-reduced-motion:reduce){.speech i{animation:none}}

.stage[data-mode=rocket]:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#06132155,transparent 28%,transparent 86%,#06132122),linear-gradient(0deg,#07131c44,transparent 30%,transparent 80%,#07131c55)}
