/* Build010: explicitly reset inherited transforms; keep the world in view. */
.mouse-state{display:none!important}
.intro-utilities{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px;color:#b6c8cd;font-size:14px}
.intro-utilities button{font-size:14px;padding:8px 12px;min-height:36px}
.intro-utilities span:empty{display:none}
.intro-content{padding-bottom:100px}
.intro-content .fiction-label{font-size:12px;margin-top:12px}
.intro-content #creator-status{font-size:15px;margin-top:18px}
.start-panel{display:grid;place-items:center;padding:30px;z-index:110}
.start-card{display:grid;grid-template-columns:0.85fr 1fr;max-width:900px;width:100%;background:#0d222c;border:1px solid #50616b;border-radius:8px;overflow:hidden;box-shadow:0 24px 90px #0008;max-height:calc(100dvh - 60px)}
.start-card>img{height:100%;width:100%;object-fit:cover;min-height:0}
.start-copy{padding:32px;overflow:auto}
.start-copy h2{font-size:48px;line-height:1;margin:10px 0 20px}
.start-copy>p{font-size:17px;line-height:1.5}
.start-controls{list-style:none;padding:0;margin:24px 0;display:grid;gap:13px;font-size:16px}
.start-copy .start-fine{font-size:13px;color:#b3c5cc}
.start-copy button{margin:10px 8px 0 0}
.toast,.toast.show{left:auto;right:22px;top:auto;bottom:22px;transform:none;max-width:min(300px,calc(100vw - 44px));width:max-content;height:auto;padding:7px 11px;font-size:13px;line-height:1.4;text-align:left;border:0;border-radius:4px;background:#091923dc;box-shadow:none;z-index:120;pointer-events:none}
.story-thread{left:24px;right:auto;top:190px;bottom:auto;width:min(335px,32vw);max-height:190px;overflow:auto;background:#081923c7;padding:10px 12px;border-left:2px solid #d7ff65;box-shadow:none}
.story-thread #thread-title,.story-thread #thread-chapter{display:none}
.story-thread #thread-next{font-size:15px;line-height:1.4;margin:0 0 4px}
.story-thread button{font-size:12px;min-height:24px;padding:0;margin:0 10px 0 0}
.story-thread #thread-collapse{float:none;padding:0;font-size:12px;margin:0 0 6px}
.story-thread.lead-collapsed{width:max-content;max-width:160px}
body[data-state=battle] .story-thread{display:none}
.battle-banner{top:190px;left:24px;transform:none;text-align:left;max-width:270px;padding:7px 10px;background:#091923a8;border:0}
.battle-banner strong{font-size:16px;margin:4px 0}.battle-banner span{font-size:12px}.battle-banner #battle-reward{display:none}
.battle-result{left:auto;right:24px;top:190px;bottom:auto;transform:none;width:290px;max-width:calc(100vw - 48px);height:auto;max-height:calc(100dvh - 285px);padding:12px 15px;text-align:left;border-top:2px solid var(--acid);overflow:auto;background:#0c202be8}
.battle-result>.eyebrow{display:none}.battle-result h2{font:600 17px/1.3 Arial,sans-serif;margin:0}.battle-result>strong{font-size:18px;margin:5px 0 9px}.battle-result details{font-size:13px}.battle-result summary{cursor:pointer;color:#c4d3d8;min-height:28px;padding:5px 0}.battle-result details p{font-size:14px;line-height:1.45}.battle-result details select{width:100%;font-size:14px}.battle-result #battle-onward{font-size:14px;min-height:36px;padding:8px;line-height:1.3}.battle-result .room-tag-control{position:static;transform:none;font-size:14px;max-width:none}.battle-result .stock-label{font-size:14px}.battle-result #battle-return{width:auto}
.room-actions{position:fixed;left:auto;right:24px;bottom:24px;top:auto;transform:none;margin:0;width:auto;max-width:calc(100vw - 300px);max-height:110px;overflow:auto;justify-content:flex-end;gap:8px}
.room-actions button{font-size:14px;padding:9px 12px;min-height:40px;max-width:250px}
.room-exit{position:static;transform:none}
#room-return,#battle-return,#retreat,#door-close,#story-close,#terminal-close,#view-close{position:fixed;left:24px;bottom:24px;top:auto;right:auto;transform:none;min-width:0;width:auto;max-width:min(240px,46vw);height:auto;min-height:40px;max-height:90px;overflow:auto;font-size:14px;padding:10px 14px;margin:0;z-index:65}
.room-hud label,.room-hud select,.room-hud input,.room-hud textarea,.room-hud summary,.room-hud details{pointer-events:auto}
.room-notes{position:fixed;right:24px;bottom:146px;width:230px;max-height:calc(100dvh - 334px);overflow:auto;z-index:25;background:#0b202be8;border:1px solid #405962;border-radius:5px;padding:0 12px;text-align:left}
.room-notes summary{padding:9px 0;cursor:pointer;font-size:14px;color:#c3d4d9}
.room-notes[open]{padding-bottom:12px}
#room-notes #room-tag-control,#room-notes .stock-label{position:static;inset:auto;transform:none;width:100%;max-width:none;display:block;font-size:14px;margin:8px 0}
.room-notes select{font-size:14px;min-height:38px;width:100%;margin-top:5px;padding:7px}
#room-station{position:fixed;left:24px;right:auto;top:auto;bottom:90px;transform:none;width:min(350px,calc(100vw - 310px));max-height:calc(100dvh - 310px);overflow:auto;padding:14px;pointer-events:auto}
#room-station p{font-size:14px;line-height:1.4;margin:8px 0}#room-station button{font-size:14px;padding:9px;min-height:36px}
.room-caption{left:24px;top:108px;max-width:min(560px,70vw)}.room-caption h2{font-size:36px}.room-caption .eyebrow{font-size:12px;margin:0 0 8px}.room-caption p:not(.eyebrow){font-size:15px;margin:8px 0}
#room-cache-note{display:none}.room-token-balance{right:24px;top:108px}.room-token-balance strong{font-size:24px}.room-token-balance span{font-size:13px}
#room-onward{position:fixed;left:24px;bottom:76px;right:auto;top:auto;font-size:14px;max-width:240px;background:#102833;z-index:30}
.retry-reward{left:auto;right:24px;bottom:76px;transform:none;max-width:260px;font-size:14px;padding:10px;min-height:40px}
.map-panel{max-height:36vh;bottom:86px}.map-panel canvas{max-height:185px;object-fit:contain}.token-wallet{bottom:24px;right:24px}.token-wallet>span,.token-wallet small{font-size:12px}.token-wallet strong{font-size:24px}
.overlay-screen{overflow:auto;padding:95px 24px 32px;align-items:flex-start}.overlay-content h2{font-size:52px}.overlay-content>p{font-size:16px;margin:12px auto}.overlay-content>button{margin:6px}.overlay-content .restart-note{font-size:13px;max-width:460px;color:#b3c5cc}.overlay-content .pause-controls{display:none}.overlay-content .overlay-secondary{gap:8px;margin:14px 0}.overlay-content .overlay-secondary button{font-size:14px;min-height:38px;padding:8px 12px}.overlay-content label{font-size:15px}.overlay-content select{font-size:16px;padding:8px;min-height:38px}
.discovery-modal .terminal-content{margin:auto;max-height:none;transform:none}.discovery-modal{z-index:100;padding:100px 6vw;align-items:flex-start}.discovery-modal.start-panel{padding:30px;align-items:center}.discovery-modal .terminal-content h2{font-size:46px}.discovery-modal .terminal-content>p{font-size:18px}.discovery-modal .terminal-content #story-note p{font-size:19px;line-height:1.65}
@media(max-height:780px){.intro-content{padding-top:92px}.hero-title{font-size:76px}.intro-content .hero-copy{font-size:17px;margin:14px 0}.intro-actions button{min-height:38px}.intro-utilities{margin-top:10px}.intro-content #creator-status{margin:10px 0}.intro-bottom{font-size:12px}.room-caption{top:88px}.room-caption h2{font-size:30px}.room-token-balance{top:88px}.story-thread,.battle-result,.battle-banner{top:164px}.battle-result{max-height:calc(100dvh - 250px)}.start-copy{padding:22px}.start-controls{gap:9px;margin:18px 0}.start-copy h2{font-size:38px}}
@media(max-width:750px){.start-card{grid-template-columns:1fr;max-width:480px}.start-card>img{display:none}.start-copy{padding:24px}.start-copy h2{font-size:38px}.story-thread{left:12px;top:180px;max-width:52vw;width:260px}.battle-result{right:12px;top:190px;width:240px}.room-caption{left:16px;max-width:80vw}.room-caption p:not(.eyebrow){display:none}.room-actions{right:12px;bottom:72px;max-width:calc(100vw - 24px);max-height:90px}.room-notes{right:12px;bottom:172px;width:185px;max-height:40vh}.room-notes select{font-size:13px}#room-station{left:12px;bottom:170px;width:calc(100vw - 230px);max-height:36vh}#room-return,#battle-return,#retreat,#door-close,#story-close,#terminal-close,#view-close{left:12px;bottom:16px;max-width:calc(100vw - 24px)}.room-token-balance{display:none}#room-onward{left:auto;right:12px;bottom:16px;max-width:45vw}.toast,.toast.show{right:12px;bottom:120px;max-width:260px}.battle-banner{left:12px;top:180px;max-width:250px}.discovery-modal{padding:80px 24px 100px}.discovery-modal.start-panel{padding:16px}.start-card{max-height:calc(100dvh - 32px)}.overlay-screen{padding-top:85px}}
