/* Adventure stays in orbit; the permanent colony remains a peaceful place. */
.mode-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.mode-bar>div{min-width:0}.mode-bar #mode-name{font-size:19px;font-weight:650;color:#e7f1dc}.mode-bar small{display:block;font-size:11px;line-height:1.5;color:#b9d2cb;margin-top:3px}.mode-bar button{flex-shrink:0;min-height:43px;font-size:11px;padding:9px 12px;border-color:#9fcebb5c;background:#c4ebd50b}.mode-bar button span{padding-left:6px;color:#b9e9cd;font-size:17px}
.raid-panel{position:relative;isolation:isolate;overflow:hidden;padding:16px 15px 12px;margin-bottom:17px;border:1px solid #a6b9f06b;border-radius:16px;background:linear-gradient(125deg,#192c48,#192b41 60%,#24324b);box-shadow:inset 0 1px 0 #c3d3ff0d}.raid-panel[hidden]{display:none}.raid-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.raid-top>div:first-child{display:flex;flex-direction:column;gap:5px}.raid-top .eyebrow{font-size:9px;letter-spacing:1.7px;color:#bfcbf5}.raid-top strong{font-size:17px;font-weight:600;color:#f3e9d7}.raid-shield{display:flex;gap:6px;align-self:flex-start;padding-top:2px}.raid-shield i{display:block;width:18px;height:21px;clip-path:polygon(50% 0,100% 18%,91% 66%,50% 100%,9% 66%,0 18%);background:linear-gradient(145deg,#d8f8e1,#7edec3);box-shadow:0 0 12px #b1e8de77}.raid-shield i.spent{background:#6c7c9359}.defense-heading{display:flex;align-items:center;justify-content:space-between;margin:17px 0 6px;font-size:9px;letter-spacing:1px;color:#d0d5f0}.defense-heading strong{font-size:12px;letter-spacing:0;color:#ecf2de}.defense-track{height:5px;border-radius:6px;background:#060e1d77;overflow:hidden}.defense-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#8eb8ee,#9ce4d2);border-radius:inherit}.raid-panel p{font-size:10px!important;line-height:1.5!important;margin:9px 0 5px;color:#d1deea}.raid-panel>small{font-size:9px;color:#9db5c6;line-height:1.5}
.raid-horizon{position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.32;overflow:hidden}.raid-world{position:absolute;top:27px;right:80px;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#75bfa6,#35607a 46%,#112b46 75%);box-shadow:inset -16px -5px 18px #071a3888}.raid-dome{position:absolute;top:19px;right:72px;width:112px;height:112px;border-radius:50%;border:1px solid #abd9ef;box-shadow:0 0 14px #8ac4f13b,inset 0 0 14px #8ac4f138}.raid-drone{position:absolute;top:65px;right:22px;width:20px;height:9px;background:linear-gradient(#cfb8ec,#9d9dc9);clip-path:polygon(0 0,40% 20%,50% 0,60% 20%,100% 0,85% 70%,50% 100%,15% 70%);animation:drone-patrol 4s ease-in-out infinite}.drone-b{top:84px;right:37px;animation-delay:-1.8s;scale:.75}.drone-c{top:43px;right:41px;animation-delay:-2.7s;scale:.65}.raid-beam{position:absolute;top:69px;right:46px;width:40px;height:2px;background:#d7ebff;opacity:0;transform-origin:right}
.raid-defended .raid-panel{animation:shield-deflect 1.6s ease-out}.raid-hit .raid-panel{animation:shield-absorb 1.6s ease-out}.raid-defended .raid-dome,.raid-hit .raid-dome{animation:shield-ripple 1.6s ease-out}.raid-defended .raid-beam,.raid-hit .raid-beam{animation:raid-shot 1.3s ease-out}.raid-hit .raid-shield{animation:shield-signal 1.6s ease-out}
#mode-dialog{width:min(510px,calc(100% - 24px))}#mode-dialog h2{font-size:29px;margin:13px 0 9px;padding-right:19px;line-height:1.17}.mode-lede{font-size:13px!important;color:#c3d8cc;margin-bottom:23px}.mode-choices{display:flex;flex-direction:column;gap:12px}.mode-choices>button{display:flex;align-items:center;gap:15px;text-align:left;position:relative;padding:19px 33px 19px 15px;width:100%;background:linear-gradient(135deg,#1b3c45,#142b3b);border:1px solid #739c9759;border-radius:16px}.mode-choices>button[aria-pressed=true]{border-color:#b7edca;box-shadow:inset 0 0 0 1px #9ddcb82b;background:linear-gradient(135deg,#254a49,#183947)}.mode-choices>button[data-mode=adventure]{background:linear-gradient(135deg,#2b354c,#192b40)}.mode-choices>button[data-mode=adventure][aria-pressed=true]{border-color:#bfcdf0}.mode-art{display:grid;place-items:center;flex-shrink:0;width:50px;height:50px;border-radius:50%;font-size:36px;color:#b8ecc7;background:radial-gradient(circle at 33% 25%,#9dd8b851,#226d6442 60%,#081e33);box-shadow:inset -5px -5px 10px #071e3c66}.adventure-art{color:#d9dbfd;background:radial-gradient(circle at 33% 25%,#a4bceb61,#394b7a 65%,#142337);font-size:40px}.mode-choices b{font-size:18px;display:block;color:#f2ecda}.mode-choices small{display:block;font-size:12px;line-height:1.6;color:#c3d6d3;margin:6px 0 9px}.mode-choices em{font-size:10px;font-style:normal;color:#bcdfbf}.mode-choices>button>i{display:none;position:absolute;top:17px;right:13px;font-size:15px;color:#c2ebce;font-style:normal}.mode-choices>button[aria-pressed=true]>i{display:block}.colony-promise{display:flex;align-items:flex-start;gap:11px;font-size:11px!important;line-height:1.65!important;padding:16px 4px 5px;color:#c3d7cd}.colony-promise>span:first-child{font-size:26px;color:#b7e0be;line-height:1.2}.colony-promise b{display:block;font-size:12px;color:#e5e7d3;margin-bottom:4px}#mode-dialog>.secondary{width:100%;margin-top:9px}
@keyframes drone-patrol{0%,100%{transform:translate(0,0) rotate(-5deg)}50%{transform:translate(-9px,-6px) rotate(6deg)}}
@keyframes shield-deflect{15%{border-color:#ccffe8;box-shadow:inset 0 0 35px #90f3d53f,0 0 20px #a1e5d426}100%{border-color:#a6b9f06b;box-shadow:inset 0 1px 0 #c3d3ff0d}}
@keyframes shield-absorb{15%{border-color:#f0cf97;box-shadow:inset 0 0 35px #e4c07a35}100%{border-color:#a6b9f06b;box-shadow:inset 0 1px 0 #c3d3ff0d}}
@keyframes shield-ripple{20%{scale:1.12;opacity:1;box-shadow:0 0 30px #b5ecfc88}100%{scale:1;opacity:1}}
@keyframes raid-shot{0%{opacity:0;scale:0 1}15%,28%{opacity:1;scale:1 1}40%,100%{opacity:0;scale:1 1}}
@keyframes shield-signal{20%{opacity:.4}65%,100%{opacity:1}}
.calm .raid-panel *,.scene-paused .raid-panel *{animation:none!important}.calm .raid-panel{animation:none!important}.scene-paused .raid-panel{animation:none!important}
@media(prefers-reduced-motion:reduce){body:not(.lively) .raid-panel,body:not(.lively) .raid-panel *{animation:none!important}}
@media(max-width:620px){.mode-bar{margin-bottom:12px}.mode-bar #mode-name{font-size:17px}.mode-bar small{font-size:10px}.mode-bar button{padding:8px 10px;font-size:10px;min-height:42px}.raid-panel{padding:12px;margin-bottom:13px}.raid-top strong{font-size:15px}.defense-heading{margin-top:12px}.raid-panel>small{display:none}.mode-choices>button{gap:11px;padding:16px 27px 16px 12px}.mode-art{width:40px;height:40px;font-size:30px}.mode-choices small{font-size:11px}.mode-choices b{font-size:17px}#mode-dialog h2{font-size:26px}}
@media(max-width:350px){.mode-bar small{max-width:137px}.mode-bar button span{display:none}.mode-choices>button{align-items:flex-start}.mode-art{width:33px;height:33px;font-size:27px}}
@media(max-width:620px){body[data-mode=adventure] .run-controls{position:sticky;top:64px;z-index:20;background:#173442;border-radius:16px;box-shadow:0 7px 18px #0016286b;padding-bottom:1px;margin-bottom:9px}body[data-mode=adventure] .run-controls .queue{margin-bottom:0;background:#173442}.raid-panel{position:relative;padding:10px 12px;margin-bottom:6px;background:linear-gradient(125deg,#192c48,#192b41 60%,#24324b)}.raid-top>div:first-child{flex-direction:row;align-items:baseline;gap:9px}.raid-top strong{font-size:14px}.raid-shield i{width:14px;height:17px}.raid-shield{gap:4px;padding-top:0}.defense-heading{margin:8px 0 5px}.raid-panel p{display:none}.raid-horizon{opacity:.19}.board{scroll-margin-top:260px}body[data-mode=adventure] .run-controls .pressure-bar{margin:6px 0 0;background:#233e42;padding:7px 10px}body[data-mode=adventure] .run-controls .pressure-bar small{font-size:9px}}

@media(max-width:620px) and (max-height:600px){body[data-mode=adventure] .run-controls{position:static}}
