:root{color-scheme:dark;--bg:#101a22;--panel:#172833;--metal:#243b4b;--ink:#eaf2f4;--muted:#9fb1be;--edge:#536a7a;--cyan:#57e3e8;--gold:#ffc74b;--orange:#f28c48;--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#080f15}body{overscroll-behavior:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #7bf4f4;outline-offset:3px}a{color:inherit}button, a{transition:filter .12s,background .12s,transform .08s}button:active:not(:disabled){transform:translateY(2px);filter:brightness(.94)}svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}svg use{pointer-events:none}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.game-shell{width:100%;max-width:540px;height:100dvh;min-height:0;margin:0 auto;position:relative;display:flex;flex-direction:column;isolation:isolate;background:var(--bg);overflow:hidden;border-left:1px solid #3e52594d;border-right:1px solid #3e52594d}
.hud{position:relative;padding:calc(4px + var(--safe-t)) 9px 7px;background:linear-gradient(165deg,#233a49 0,#14232f 45%,#0e1a24 100%);box-shadow:0 3px 8px #0008,inset 0 -2px #69818a,inset 0 -4px #080f15;z-index:3;flex-shrink:0}.hud-top{display:flex;align-items:center;gap:8px;min-height:43px}.wordmark{margin-right:auto;line-height:1}.wordmark strong{font-size:clamp(15px,4.1vw,20px);font-weight:900;letter-spacing:-1px;display:block;text-shadow:0 2px 0 #030b10}.wordmark>span{display:block;font-size:7px;letter-spacing:1.3px;color:#a3b5bf;margin-top:5px}.slashes{color:var(--orange);font-size:19px;margin-left:4px;letter-spacing:-3px}.wallet{align-self:flex-start;margin-top:6px;display:flex;gap:9px;font-variant-numeric:tabular-nums;align-items:center}.currency{display:flex;gap:3px;align-items:center;font-size:15px}.currency svg{width:20px;height:20px}.coins{color:#ffe190}.gears{color:#d7e2e8}.icon-button{padding:0;display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:7px;filter:none}.icon-button svg{width:23px;height:23px}.icon-button:disabled{opacity:.3}.wave-count{display:flex;gap:4px;align-items:baseline;white-space:nowrap;flex-shrink:0;margin-left:auto}.wave-count>span{font-size:9px;letter-spacing:.8px;color:#a0bac8;font-weight:800}.wave-count b{font-size:15px;color:#6ce7ec;line-height:1}.wave-count small{font-size:9px;color:#abb9c1}.battlefield{position:relative;flex:1;min-height:0;overflow:hidden;background:#232e32}.battlefield canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.field-footer{height:29px;padding:0 10px;flex-shrink:0;display:flex;gap:7px;align-items:center;background:linear-gradient(#1a2c37,#101d27);border-top:1px solid #627986;box-shadow:inset 0 2px #080f18;font-size:10px;color:#bacbd1;margin-bottom:var(--safe-b)}.field-footer #field-status{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.status-led{height:5px;width:5px;border-radius:1px;background:var(--cyan);box-shadow:0 0 5px #57e3e844;flex-shrink:0}.field-footer .wave-count small{color:#a4b7c3;font-size:9px;letter-spacing:0}.mini-button{padding:5px 8px;background:#245363;border:1px solid #3f9faa;display:flex;gap:4px;align-items:center;font-size:9px;white-space:nowrap}.mini-button svg{width:12px;height:12px}.wave-banner{position:absolute;top:1%;left:50%;transform:translateX(-50%);padding:7px 18px;text-align:center;white-space:nowrap;background:linear-gradient(90deg,#10243200,#102432ed 14%,#102432ed 86%,#10243200);border-block:1px solid #b4d7e055;pointer-events:none;color:#ecf5f7;font-size:17px;font-weight:900;letter-spacing:1px;text-shadow:0 2px 2px #000;z-index:4;animation:banner-in .2s ease-out}.wave-banner small{display:block;font-weight:500;font-size:10px;letter-spacing:.4px;color:#a5d9df;margin-top:4px}.toast{position:absolute;left:50%;bottom:16px;max-width:calc(100% - 28px);width:max-content;transform:translateX(-50%);padding:9px 14px;background:#091821ef;border:1px solid #5e8b99;color:#e6f7fa;font-size:11px;line-height:1.5;pointer-events:none;z-index:12;box-shadow:0 5px 15px #0007}.save-warning{position:absolute;top:6px;left:6px;right:6px;background:#4f2718ed;border:1px solid #e09e5c;color:#ffe3b9;padding:7px 9px;font-size:10px;line-height:1.5;z-index:20}
.screen-overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:#07111bc2;padding:calc(18px + var(--safe-t)) 20px calc(18px + var(--safe-b));overflow-y:auto;overscroll-behavior:contain}.title-screen{background:linear-gradient(180deg,#08121af2,#0b1925dd 42%,#08121af7);z-index:8}.title-content{width:100%;max-width:350px;text-align:center;position:relative}.sector-tag{font-size:9px;color:#d2ab63;font-weight:700;letter-spacing:2.2px;display:flex;align-items:center;gap:12px;justify-content:center}.sector-tag:before,.sector-tag:after{content:"";width:20px;height:1px;background:#d2ab6355}h1{font-size:46px;font-weight:950;letter-spacing:-3px;margin:12px 0 4px;line-height:1.15;color:#f1f2e9;text-shadow:0 3px #0008}.title-subtitle{margin:0;color:#87d4da;font-size:16px;font-weight:700;letter-spacing:1px}.title-content>canvas{width:160px;height:160px;margin:9px 0 0;filter:drop-shadow(0 12px 12px #0007)}.title-copy{font-size:14px;line-height:1.7;color:#b4c2c8;margin:0 0 20px}.title-copy strong{color:#ecf4f5;font-weight:600}.loading{display:flex;gap:8px;align-items:center;justify-content:center;font-size:11px;color:#a5bac7;padding:12px 0}.loading-dot{width:5px;height:5px;background:var(--cyan);animation:pulse .75s infinite alternate}.save-info{font-size:11px;color:#a8c5cb;margin:0 0 12px;line-height:1.6}.save-info.error{color:#f0b276}.wide-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px;border-radius:7px;font-size:15px;font-weight:800;text-shadow:0 1px #0005}.wide-button.primary{color:#2a261b;text-shadow:0 1px #ffe9a180}.wide-button:disabled{opacity:.35}.title-content .wide-button+.wide-button{margin-top:8px}.title-content .wide-button.secondary{color:#b9ccd3;}.wide-button svg{height:19px;width:19px}.title-links{display:flex;justify-content:center;gap:24px;margin-top:22px;align-items:center;font-size:11px;color:#9eafb9}.title-links a{text-decoration:none}.title-links button{padding:6px 0;background:none;font-size:inherit;color:inherit}
.work-panel{position:absolute;bottom:calc(29px + var(--safe-b));left:0;right:0;z-index:7;max-height:min(61%,460px);display:flex;flex-direction:column;background:linear-gradient(130deg,#29404d,#182a35 70%);box-shadow:0 -4px 0 #7f96a1,0 -7px 0 #071019,0 -12px 24px #0007,inset 0 2px #a7bac4,inset 2px 0 #526c7b,inset -2px 0 #334d5c;border:3px solid #071119;border-bottom:0;border-radius:10px 10px 0 0;animation:sheet-in .18s ease-out}.sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:7px 10px 6px;background:linear-gradient(#425a69,#293f4d);border-bottom:3px solid #0d1b25;box-shadow:inset 0 2px #859da9;border-radius:6px 6px 0 0;margin-bottom:5px}.eyebrow{display:block;font-size:8px;letter-spacing:1.1px;color:#d6b875;font-weight:800;margin-bottom:5px}.sheet-heading h2{font-size:18px;letter-spacing:-.6px;line-height:1.2;margin:0;color:#f1f4ed}.sheet-heading p{font-size:10px;margin:4px 0 0;color:#9fb9c5;line-height:1.4}.sheet-heading .icon-button{width:34px;height:34px}.sheet-heading .icon-button svg{width:18px;height:18px}.work-tabs{display:flex;gap:4px;padding:0 10px 6px;flex-shrink:0}.work-tabs button{flex:1 1 0;min-width:0;min-height:44px;padding:6px;font-size:11px;line-height:1.2;font-weight:800;white-space:nowrap;border-radius:5px;color:#c0d0d7;}.work-tabs button[aria-selected=true]{color:#e1ffff;}.work-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px 6px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#506f80 #11232e}.option-card{position:relative;min-width:0;min-height:88px;text-align:left;border-radius:8px;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;align-content:start;gap:3px 6px;padding:7px;overflow:hidden}.option-card:disabled{filter:saturate(.55)}.option-card:disabled .option-title{word-break:keep-all;overflow-wrap:normal;color:#b2c0c8}.option-card:disabled .option-art{opacity:.6}.option-card .option-art{width:44px;height:44px;grid-row:1;grid-column:1;align-self:center;filter:drop-shadow(0 4px 3px #0005)}.option-card .option-icon{height:40px;width:40px;display:grid;place-items:center;color:#8edce1;grid-row:1;grid-column:1;align-self:center}.option-card .option-icon svg{width:25px;height:25px}.option-main{grid-column:2;align-self:center;min-width:0}.option-title{word-break:keep-all;overflow-wrap:normal;font-size:13px;font-weight:900;line-height:1.35;color:#f2f7f5;text-shadow:0 1px #07131d;display:block;letter-spacing:-.3px}.option-cost{display:flex;gap:6px;flex-wrap:wrap;margin-top:3px;font-size:12px;font-weight:750;color:#ffd56a}.option-cost>span{display:inline-flex;gap:3px;align-items:center;max-width:100%}.option-cost svg{width:13px;height:13px;flex-shrink:0}.option-cost span.gear-cost{color:#d0dce6}.option-detail{grid-column:1/-1;font-size:11px;color:#c5d6de;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}.option-footer svg{width:13px;height:13px}.option-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a7bfca;margin-top:2px;gap:4px}.option-reason{color:#efb88e;font-size:10px;line-height:1.35}.option-card.danger .option-title{color:#edbc9e}.option-card.wide-card{grid-column:1/-1;min-height:68px}.option-card .card-index{position:absolute;right:7px;top:5px;color:#a4c6d438;font-size:8px;letter-spacing:.5px}.sheet-foot{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 10px;font-size:9px;color:#86a1af;background:#0a1924;border-top:3px solid #0b1822;box-shadow:inset 0 1px #425c6b;flex-shrink:0}.sheet-foot svg{width:12px;height:12px}.empty-options{grid-column:1/-1;color:#a4bec9;padding:12px;font-size:12px;line-height:1.5}.job-meter{height:4px;background:#07121a;margin:6px 0}.job-meter>i{display:block;height:100%;background:var(--cyan)}
.modal-overlay{z-index:15;background:#050e18cc;backdrop-filter:blur(3px);padding-inline:18px}.dialog-panel{width:100%;max-width:380px;max-height:100%;overflow:auto;padding:18px;background:linear-gradient(145deg,#344d5c,#1c303e 60%,#142631);border:3px solid #07111a;border-radius:12px;box-shadow:inset 0 3px #9bb0bb,inset 3px 0 #607c8c,inset -3px 0 #263f50,inset 0 -3px #183342,0 0 0 2px #6b8594,0 15px 50px #0009;scrollbar-width:thin;scrollbar-color:#516f80 #162833}.dialog-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.dialog-heading h2{font-size:22px;line-height:1.2;letter-spacing:-.8px;margin:0}.dialog-heading .icon-button{width:34px;height:34px}.dialog-heading .icon-button svg{width:18px;height:18px}.dialog-subtitle{white-space:pre-line;font-size:11px;color:#aec2cd;line-height:1.7;margin:10px 0 15px}.menu-list{display:grid;gap:9px;margin-top:14px}.menu-list button{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:10px;border-radius:6px;font-size:13px;font-weight:750;text-align:left}.menu-list button>span{display:flex;align-items:center;gap:8px}.menu-list svg{width:17px;height:17px;color:#a9c8d2}.menu-list b{font-size:12px;color:var(--cyan)}.menu-list small{font-size:10px;color:#8cabb9}.menu-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0}.menu-secondary button{min-height:39px;padding:7px;border-radius:5px;color:#c2d0d8;font-size:11px;font-weight:700}.home-link{display:flex;justify-content:space-between;font-size:11px;color:#7f9fac;text-decoration:none;padding:9px 1px}.menu-version{font-size:9px;letter-spacing:.7px;color:#637f90;text-align:center;margin:9px 0 0}.help-panel h2{font-size:23px}.guide-list{padding:0;list-style:none;margin:18px 0}.guide-list li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #3b566766}.guide-list li>b{font-size:11px;font-variant-numeric:tabular-nums;color:#ffc668;margin-top:3px}.guide-list strong{font-size:14px}.guide-list p{font-size:11px;line-height:1.7;color:#b0c2cd;margin:6px 0 0}.confirm-overlay{z-index:30}.confirmation h2{font-size:22px;margin:8px 0 13px;letter-spacing:-.6px}.confirmation>p{font-size:12px;line-height:1.8;color:#b6c9d4;margin:0 0 23px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.confirm-actions .wide-button{font-size:13px;min-height:44px}/* Result uses the same armor frame; only the outcome accent and insignia change. */
.result-overlay{--result-accent:#74e8e6;--result-edge:#6a9a9c;z-index:18;background:linear-gradient(#09151cb3,#09151ceb)}
.result-panel{text-align:center;padding-block:28px;box-shadow:inset 0 3px #9bb0bb,inset 3px 0 #607c8c,inset -3px 0 #263f50,inset 0 -3px #183342,0 0 0 2px var(--result-edge),0 15px 50px #0009;animation:result-in .22s ease-out both}
.result-mark{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;color:var(--result-accent);border:2px solid #07141c;border-radius:14px;background:linear-gradient(145deg,#2a4b56,#142c37);box-shadow:0 0 0 2px var(--result-edge),inset 0 2px #b8eceb44,inset 0 -2px #030d16;transform:rotate(-3deg)}
.result-mark svg{width:43px;height:43px;transform:rotate(3deg);filter:drop-shadow(0 2px 0 #06121c)}
.result-panel .eyebrow{color:var(--gold);font-size:9px;letter-spacing:1.5px}
.result-panel h2{font-size:33px;letter-spacing:-1.5px;margin:7px 0 12px;color:#eafff8;text-shadow:0 2px #06131b}
.result-panel>p{font-size:12px;color:#b3c7d0;line-height:1.7;white-space:pre-line;word-break:keep-all}
.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid #516b7b77;margin:22px 0;padding:16px 0;gap:6px}
.result-stats>div{min-width:0}.result-stats dt{font-size:10px;color:#91adbd;white-space:nowrap}
.result-stats dd{margin:6px 0 0;width:100%;min-height:27px;font-size:clamp(18px,5.1vw,22px);font-weight:800;color:#e3eff4;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.2;letter-spacing:-.5px}
.result-stats #result-wave{font-size:18px}.result-stats #result-kills{color:var(--result-accent)}
.result-overlay[data-outcome=lost]{--result-accent:#ffa96b;--result-edge:#9f765d}
.result-overlay[data-outcome=lost] .result-mark{background:linear-gradient(145deg,#57443c,#302932);box-shadow:0 0 0 2px var(--result-edge),inset 0 2px #ffce9a44,inset 0 -2px #170c0a}
.result-overlay[data-outcome=lost] .eyebrow{color:#edac7e}.result-overlay[data-outcome=lost] h2{color:#ffddc6}
@keyframes result-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.text-button{background:none;font-size:12px;color:#9bb5c4;padding:14px}.no-script{position:fixed;inset:0;display:grid;place-items:center;background:#07111d;color:#fff;z-index:99;padding:30px}
/* Shared cartoon armor button: equal-width bevel, continuous corners, solid outer ink. */
:is(.icon-button,.wide-button,.work-tabs button,.facility-view-button,.repair-button,.option-card,.menu-list button,.menu-secondary button){--face-top:#375566;--face-bottom:#263f4e;--bevel-top:#8199a6;--bevel-right:#3c596a;--bevel-bottom:#172e3b;--bevel-left:#5e7b8b;border:3px solid;border-color:var(--bevel-top) var(--bevel-right) var(--bevel-bottom) var(--bevel-left);background:linear-gradient(150deg,var(--face-top),var(--face-bottom)) padding-box;box-shadow:0 0 0 2px #07121c,inset 0 0 0 1px #142b3977;transition:filter .10s,transform .08s,background .12s}
:is(.icon-button,.wide-button,.work-tabs button,.facility-view-button,.repair-button,.option-card,.menu-list button,.menu-secondary button):active:not(:disabled){--face-top:#1b3443;--face-bottom:#2c4757;--bevel-top:#172c39;--bevel-right:#34505f;--bevel-bottom:#71909f;--bevel-left:#2a4656;transform:translateY(1px);filter:brightness(.94)}
.wide-button.primary{--face-top:#eec25e;--face-bottom:#d79c35;--bevel-top:#fff0b0;--bevel-right:#b98631;--bevel-bottom:#8c6024;--bevel-left:#f4d077}
.wide-button.primary:active:not(:disabled){--face-top:#c98e2f;--face-bottom:#e3b44a;--bevel-top:#825a23;--bevel-right:#b6802d;--bevel-bottom:#ffe697;--bevel-left:#a8782b}
.work-tabs button[aria-selected=true]{--face-top:#2f626e;--face-bottom:#204753;--bevel-top:#9de9e5;--bevel-right:#2b8c99;--bevel-bottom:#197482;--bevel-left:#63cbd1;color:#eaffff;box-shadow:0 0 0 2px #07121c,inset 0 0 0 1px #81e6e155}
:is(.option-card:disabled,.wide-button:disabled,.icon-button:disabled,.repair-button:disabled){--face-top:#283b46;--face-bottom:#1e303b;--bevel-top:#465d6a;--bevel-right:#2a404d;--bevel-bottom:#162b37;--bevel-left:#3a5260;filter:saturate(.35);box-shadow:0 0 0 2px #101d27,inset 0 0 0 1px #1b303c}
.wave-banner.wave-clear{top:5px;max-width:calc(100% - 16px);padding:5px 9px;font-size:11px;line-height:1.3;letter-spacing:0;font-weight:750;color:#c6f5e8;border-color:#70c7b44d;background:linear-gradient(90deg,#10243200,#102d30ee 8%,#102d30ee 92%,#10243200);animation:banner-in .12s ease-out}.currency{border-radius:4px}.currency.gain-active{background:#e5f5e815;animation:resource-gain .36s ease-out}@keyframes resource-gain{0%,25%{filter:brightness(1.4);text-shadow:0 0 6px #eaf4c999}100%{filter:brightness(1);text-shadow:none}}
@keyframes sheet-in{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes banner-in{from{opacity:0;filter:brightness(1.5)}to{opacity:1;filter:brightness(1)}}@keyframes pulse{to{opacity:.25}}
@media(hover:hover){button:hover:not(:disabled){filter:brightness(1.15)}.option-card:hover:not(:disabled){}.title-links a:hover,.home-link:hover{color:#cce5ed}}
@media(max-width:355px){.hud{padding-inline:6px}.wallet{gap:6px}.currency{font-size:13px}.currency svg{width:17px;height:17px}.hud-top{gap:6px}.wordmark>span{font-size:6px;letter-spacing:1px}.wordmark strong{font-size:15px}.icon-button{width:38px;height:38px}.wave-count b{font-size:14px}.wave-count>span{font-size:8px}.work-panel{max-height:66%}.option-card{grid-template-columns:38px 1fr;padding:6px;gap:3px 5px}.option-card .option-art{width:38px;height:38px}.option-title{font-size:12px}.work-tabs button{padding-inline:3px;font-size:10px}.modal-overlay{padding-inline:12px}.dialog-panel{padding:18px}.title-content h1{font-size:39px}.title-content>canvas{width:135px;height:135px}.title-copy{font-size:13px}}
@media(max-height:680px){.title-content>canvas{width:120px;height:120px;margin:4px 0 0}.title-content h1{font-size:38px;margin-top:8px}.title-copy{font-size:12px;margin-bottom:12px}.title-subtitle{font-size:14px}.title-links{margin-top:10px}.wide-button{min-height:43px;padding-block:10px}.dialog-panel{padding:17px}.dialog-subtitle{margin:10px 0 15px}.menu-list{margin-top:12px}.menu-list button{min-height:43px}.menu-secondary{margin:12px 0}.menu-version{margin-top:6px}.guide-list{margin:10px 0}.guide-list li{padding:9px 0}.guide-list p{font-size:10px;margin-top:4px}.guide-list strong{font-size:12px}.result-panel{padding-block:23px}.result-mark{width:58px;height:58px;margin-bottom:10px}.result-mark svg{width:38px;height:38px}.result-stats{margin:15px 0}}
@media(min-width:760px),(orientation:landscape){.game-shell{box-shadow:0 0 80px #000b;max-width:min(540px,calc((100dvh - 83px)*.625))}.screen-overlay{padding-inline:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.work-open .toast{top:8px;bottom:auto}
.menu-list #saved-at{max-width:65%;text-align:right;line-height:1.4}.menu-list #saved-at[data-state=error],.text-button.save-retry{color:#efb58b}
.work-options{grid-auto-rows:max-content;align-content:start}.option-detail{white-space:pre-line}.option-footer{line-height:1.35;min-height:13px;padding-bottom:1px}
.base-critical .field-footer{border-top-color:#b78657;background:linear-gradient(#322c29,#1c2229)}.base-critical .status-led{background:#ffad68;box-shadow:0 0 5px #e9934c55}.base-critical #field-status{color:#f6ca9f}

/* Interrupted jobs keep their identity above two compact, distinct actions. */
.sheet-heading>div:first-child{min-width:0;flex:1}.sheet-heading h2{word-break:keep-all;overflow-wrap:anywhere}.sheet-heading p{overflow-wrap:anywhere}.sheet-heading .job-meter{margin:7px 0 1px;height:4px;border-radius:1px;overflow:hidden}
.pending-options .option-card{grid-template-columns:30px minmax(0,1fr);gap:4px 6px;min-height:88px;padding:8px}.pending-options .option-art,.pending-options .option-icon{width:30px;height:30px}.pending-options .option-icon svg{width:20px;height:20px}.pending-options .option-cost{font-size:12px;line-height:1.3;gap:4px}.pending-options .option-detail{font-size:11px;line-height:1.45}
.pending-options .job-resume:where(:not(:disabled)){--face-top:#2c6069;--face-bottom:#214650;--bevel-top:#9ad8dc;--bevel-left:#559da8;--bevel-right:#2c6875;--bevel-bottom:#1c3b47}.pending-options .job-cancel .option-icon{color:#b7a28f}.pending-options .job-cancel .option-cost{color:#c9c4b5}
.option-card .option-equipment{width:40px;height:40px;filter:drop-shadow(0 2px 0 #050d16)}.option-card .option-equipment svg{width:100%;height:100%}.pending-options .option-equipment{width:30px;height:30px}.option-card:disabled .option-equipment{opacity:.65}@media(max-width:355px){.option-card .option-equipment{width:36px;height:36px}.pending-options .option-equipment{width:30px;height:30px}}

/* Two independent audio channels share one compact row and the same touch target. */
.audio-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.menu-list .audio-controls button{min-height:60px;min-width:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;padding:7px 10px}
.audio-controls button>span{white-space:nowrap}.audio-controls b{padding-left:25px;font-size:10px;line-height:1.3;white-space:nowrap}
.audio-controls button[aria-pressed=false]{--face-top:#2c404d;--face-bottom:#20333f;--bevel-top:#5e7888;color:#9cb1be}.audio-controls button[aria-pressed=false] b,.audio-controls button[aria-pressed=false] svg{color:#8da6b4}
@media(max-height:680px){#menu-screen .dialog-panel{padding:14px 17px}#menu-screen .dialog-subtitle{line-height:1.5;margin:8px 0 10px}#menu-screen .menu-list{margin-top:10px;gap:8px}#menu-screen .menu-list>button,#menu-screen .wide-button{min-height:44px}#menu-screen .menu-secondary{margin:10px 0}#menu-screen .home-link{padding-block:7px}#menu-screen .menu-version{margin-top:4px}}

/* Narrow landscape shells keep the world proportions without wrapping HUD titles. */
@media(orientation:landscape) and (max-height:600px){.screen-overlay{padding-inline:9px}.hud{padding-inline:6px}.hud-top{gap:5px}.wordmark strong{font-size:13px;white-space:nowrap}.wordmark>span{display:none}.slashes{font-size:14px}.wallet{gap:4px}.currency{font-size:11px;gap:2px}.currency svg{width:14px;height:14px}.hud-top>.icon-button{width:32px;height:32px}.wave-count{gap:3px}.wave-count>span{font-size:7px;letter-spacing:0}.wave-count b{font-size:14px}.wave-count small{font-size:9px}.dialog-panel{padding:12px}.dialog-heading{gap:6px}.dialog-heading h2{font-size:18px}.dialog-heading .icon-button{width:30px;height:30px}.dialog-heading .icon-button svg{width:16px;height:16px}}

/* A lower facility keeps the same world position while its workshop docks above it. */
.work-panel[data-dock="top"]{border-radius:10px;box-shadow:0 3px 0 #7f96a1,0 6px 0 #071019,0 12px 24px #0007,inset 0 2px #a7bac4,inset 2px 0 #526c7b,inset -2px 0 #334d5c}
.work-panel[data-dock="top"] .sheet-foot{border-radius:0 0 6px 6px}
.work-open.work-top .toast{top:auto;bottom:16px}

/* Only cramped workshops expose a header-only view; the world remains paused. */
.sheet-actions{display:flex;align-items:flex-start;gap:18px;flex-shrink:0}
.facility-view-button{min-height:44px;min-width:68px;padding:6px 8px;border-radius:6px;font-size:11px;font-weight:800;white-space:nowrap}
.sheet-actions .icon-button{width:44px;height:44px}
.work-panel.work-collapsed :is(#work-eyebrow,#work-summary,#work-progress,#work-tabs,#work-options,#work-foot){display:none!important}
.work-panel.work-collapsed .sheet-heading{margin-bottom:0;border-bottom:0;align-items:center}
.work-panel.work-collapsed .sheet-heading h2{font-size:16px;line-height:1.25}

/* Repair and close are distinct 44px controls with an 18px safe gap. */
.repair-button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:62px;min-height:44px;padding:5px 7px;border-radius:7px;color:#d6ffff;font-size:12px;font-weight:850;line-height:1.15;--face-top:#35616a;--face-bottom:#22444f;--bevel-top:#91c8ce;--bevel-left:#558d9a;--bevel-right:#315f6a;--bevel-bottom:#15303c}
.repair-button svg{width:16px;height:16px;flex-shrink:0}.repair-button small{display:block;font-size:9px;font-weight:650;color:#b6d7dd;margin-top:3px;font-variant-numeric:tabular-nums}.repair-button:disabled{color:#93a7b2}.repair-button:disabled small{color:#859da8}
.sheet-heading .facility-view-button{margin-top:6px;min-width:66px;min-height:44px}
.work-panel.work-collapsed .sheet-heading .facility-view-button{margin-top:5px}

.sector-screen{z-index:9;background:#07111b;padding:0;display:block;overflow:hidden}.sector-map{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72;pointer-events:none}.sector-panel{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;padding:calc(12px + var(--safe-t)) 14px calc(14px + var(--safe-b));overflow-y:auto;overscroll-behavior:contain}.sector-panel .dialog-heading{background:#0b1a26d9;border:1px solid #4d6676;border-radius:8px;padding:9px 10px 9px 13px;flex-shrink:0}.sector-list{flex:1;display:flex;flex-direction:column-reverse;justify-content:space-between;gap:10px}.sector-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;width:100%;min-height:82px;padding:10px 12px;text-align:left;background:#0d1e2bea;border:2px solid #b98e43;border-radius:9px;box-shadow:0 3px 0 #06101a}.sector-card:disabled{border-color:#42586699;background:#0d1b26cc;box-shadow:none}.sector-card .sector-number{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(#f0c766,#c8912f);color:#1a1408;font-size:20px;font-weight:900}.sector-card:disabled .sector-number{background:#32454f;color:#9fb1be}.sector-card strong{display:block;font-size:17px;font-weight:850;line-height:1.25}.sector-card small{display:block;margin-top:2px;color:#b6c6d0;font-size:12px;line-height:1.4}.sector-card em{display:block;margin-top:3px;color:#ffd76a;font-size:12px;font-style:normal;font-weight:700}.sector-card:disabled em{color:#8aa0ad}

.wave-banner.boss-wave{color:#ffe2c4;border-color:#ff8a5c99;background:linear-gradient(90deg,#3a151000,#4a1a12f2 12%,#4a1a12f2 88%,#3a151000);animation:boss-banner .5s ease-out}@keyframes boss-banner{0%{transform:translateX(-50%) scale(1.25);opacity:0}60%{transform:translateX(-50%) scale(.98);opacity:1}100%{transform:translateX(-50%) scale(1)}}
.skill-bar{position:absolute;right:6px;bottom:6px;z-index:3;display:flex;gap:6px}.skill-bar[hidden]{display:none}.work-open .skill-bar{display:none}.skill-button{position:relative;width:clamp(36px,10.3vw,42px);height:clamp(36px,10.3vw,42px);padding:0;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(#2d4757,#16283a);border:2px solid #c9a24f;box-shadow:0 2px 0 #06101a,0 0 0 1px #06101a;color:#fff}.skill-button svg{width:62%;height:62%}.skill-button b{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;font-weight:900;color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000;z-index:2}.skill-button::after{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(#06101cd9 calc(var(--cool,0)*360deg),transparent 0);pointer-events:none;z-index:1}.skill-button:disabled{border-color:#55697a}.skill-button.active{border-color:#fff2b0;box-shadow:0 0 10px #ffd76a,0 2px 0 #06101a;animation:skill-on .5s ease-in-out infinite alternate}@keyframes skill-on{to{filter:brightness(1.3)}}
.sector-endless{width:100%;min-height:38px;padding:7px 12px;border-radius:8px;background:#102a35ee;border:1px solid #58c4cf;color:#bff4f6;font-size:13px;font-weight:800;text-align:center}.research-entry{display:flex;align-items:center;gap:10px;flex-shrink:0;width:100%;padding:8px 12px;text-align:left;border-radius:8px;background:#0d2530ea;border:2px solid #4fb6c2;color:#e8fbfb}.research-entry svg{width:28px;height:28px;flex-shrink:0}.research-entry span{flex:1;min-width:0}.research-entry strong{display:block;font-size:15px;font-weight:850}.research-entry small{display:block;font-size:11.5px;color:#a8c7cf}.research-entry b{font-size:18px;font-weight:900;color:#8ff3f6}
.research-panel{gap:10px}.research-chips{display:flex;align-items:center;gap:6px;margin:0;font-size:13.5px;color:#d5e6ea}.research-chips svg{width:20px;height:20px}.research-chips b{color:#8ff3f6;font-size:17px;font-weight:900}.research-list{display:flex;flex-direction:column;gap:8px}.research-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;width:100%;padding:10px 11px;text-align:left;border-radius:8px;background:#12283a;border:1px solid #5a7586;color:#eef6f6}.research-row:disabled{opacity:.62}.research-name strong{display:block;font-size:15px;font-weight:850}.research-name small{display:block;margin-top:1px;font-size:12px;color:#b4c6d0}.research-pips{display:flex;gap:3px}.research-pips i{display:block;width:9px;height:14px;border-radius:2px;background:#2a3e4c;border:1px solid #4c6677}.research-pips i.on{background:#77e7ee;border-color:#c6fbfb}.research-cost{display:flex;align-items:center;gap:3px;min-width:42px;justify-content:flex-end;font-size:14px;font-weight:900;color:#8ff3f6}.research-cost svg{width:16px;height:16px}.research-note{margin:0;font-size:12px;line-height:1.5;color:#a9bcc7}
.game-shell:not(.work-open) .battlefield:has(.skill-bar:not([hidden])) .toast{bottom:54px}
#research-screen{z-index:30}.research-list{gap:7px}.research-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 9px;padding:8px 11px}.research-name strong em{font-style:normal;font-size:12px;font-weight:800;color:#8ff3f6;margin-left:2px}.research-pips{grid-column:1/-1;gap:3px}.research-pips i{flex:1;width:auto;height:6px}.research-panel{max-height:100%;overflow-y:auto}.option-level{display:inline-block;margin-left:5px;padding:0 4px;border-radius:3px;background:#0b1a26;color:#9fe9ee;font-size:10px;font-weight:800;line-height:15px;vertical-align:1px}
.sector-loading{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;gap:9px;background:#07111bd9;color:#e8f4f6;font-size:15px;font-weight:800}.sector-loading[hidden]{display:none}

/* Extra screens: title modes, sub dialogs, first-battle guide, codex, rankings, co-op lobby, test shop. */
.title-links button,.title-links a{min-height:44px;display:inline-flex;align-items:center}
.title-links{gap:16px;margin-top:10px}
.title-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.title-extras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.title-content .title-extras .wide-button,.title-content .title-modes .wide-button{margin-top:0;min-height:44px;padding:5px 6px;font-size:13px;gap:0}
.mode-button{flex-direction:column;line-height:1.2;--face-top:#2d5a66;--face-bottom:#1f4450;--bevel-top:#9ad8dc;--bevel-left:#559da8;--bevel-right:#2c6875;--bevel-bottom:#1c3b47}
.mode-button small{font-size:10px;font-weight:650;color:#bfe7ea;margin-top:2px}
@media(max-height:680px){.title-copy{display:none}.title-content>canvas{width:84px;height:84px;margin:2px 0 4px}.title-content h1{font-size:34px;margin:4px 0 2px}.title-subtitle{font-size:13px}.save-info{margin:0 0 6px;font-size:10px;line-height:1.4}}
.banner-chip{color:#ffe08a;font-weight:900}
.menu-chips{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:6px 9px;border-radius:6px;background:#0d2530cc;border:1px solid #4fb6c2aa;color:#d9f5f7;font-size:12.5px;font-weight:800}
.menu-chips svg{width:18px;height:18px}
.menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-list .audio-controls,.menu-list #save-button{grid-column:1/-1}
.sub-screen{z-index:28}
.sub-panel{display:flex;flex-direction:column;padding:12px 12px 10px;max-height:calc(100dvh - 36px - var(--safe-t) - var(--safe-b));overflow:hidden}
.sub-panel .dialog-heading{align-items:center;flex-shrink:0;margin-bottom:8px}.sub-panel .dialog-heading h2{font-size:20px}
.sub-panel .dialog-heading .icon-button{width:44px;height:44px}
.sub-tabs-slot:empty{display:none}.sub-tabs{padding:0 0 8px}.sub-tabs button{font-size:12.5px}
.sub-body{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;scrollbar-color:#516f80 #162833}
.sub-body .wide-button{flex-shrink:0;min-height:46px}.sub-body a.wide-button{text-decoration:none;text-align:center}
.lobby-note{margin:0;font-size:12px;line-height:1.5;color:#b5cad4;word-break:keep-all}.lobby-note:empty{display:none}.rank-empty{margin:0;padding:18px 8px;text-align:center;font-size:13px;line-height:1.6;color:#c4d5dd;word-break:keep-all}
.guide-layer{position:absolute;inset:0;z-index:9;pointer-events:none;overflow:hidden}
.guide-ring{position:absolute;left:0;top:0;border:3px solid #ffd76a;border-radius:50%;box-shadow:0 0 0 2px #06121c,0 0 16px 4px #ffd76a99,inset 0 0 0 2px #06121c;animation:guide-pulse .8s ease-in-out infinite alternate;will-change:transform}
.guide-ring.square{border-radius:10px}@keyframes guide-pulse{to{box-shadow:0 0 0 2px #06121c,0 0 26px 10px #ffd76acc,inset 0 0 0 2px #06121c;opacity:.72}}
.guide-box{position:absolute;left:8px;right:8px;display:flex;align-items:center;gap:7px;padding:4px 5px 4px 9px;border-radius:9px;background:#08161ff4;border:2px solid #ffc74b;box-shadow:0 4px 14px #0009;color:#f6fbfb}
.guide-count{flex-shrink:0;font-size:11px;font-weight:900;color:#ffd76a;font-variant-numeric:tabular-nums}.guide-count:empty{display:none}
.guide-text{flex:1;min-width:0;margin:0;padding:6px 0;font-size:13.5px;font-weight:800;line-height:1.35;word-break:keep-all}
.guide-skip{flex-shrink:0;pointer-events:auto;min-width:68px;min-height:44px;padding:4px 8px;border-radius:7px;background:#1f3a48;border:1px solid #6c8b9a;color:#dbe9ee;font-size:12px;font-weight:800}
.air-tag{display:inline-block;margin-left:4px;padding:0 4px;border-radius:3px;background:#4a2a1c;border:1px solid #c98a5f;color:#ffd7ba;font-size:9.5px;font-weight:800;line-height:14px;vertical-align:1px;white-space:nowrap;text-shadow:none}
.codex-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:9px;align-items:start;padding:8px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a;flex-shrink:0}
.codex-card canvas{width:62px;height:62px;filter:drop-shadow(0 3px 3px #0006)}
.codex-card h3{margin:0 0 3px;font-size:15px;font-weight:900;color:#f1f6f4;letter-spacing:-.3px}
.codex-card p{margin:0 0 4px;font-size:12px;line-height:1.5;color:#c5d6de;word-break:keep-all}
.codex-beat b{display:block;font-size:11px;color:#ffd76a}
.codex-tag{display:inline-block;margin:1px 4px 0 0;padding:2px 7px;border-radius:4px;font-size:11px;font-weight:850;line-height:1.35}
.codex-tag.air-yes{background:#123f3c;border:1px solid #58d2b8;color:#a9f5e1}.codex-tag.air-no{background:#4a2a1c;border:1px solid #c98a5f;color:#ffd7ba}
.codex-tag.boss{background:#4a1a12;border:1px solid #ff8a5c;color:#ffd6bd}.codex-tag.sky{background:#17365a;border:1px solid #7eb6f2;color:#cfe6ff}
.codex-card.unknown{opacity:.72;align-items:center}.codex-unknown{display:grid;place-items:center;width:62px;height:62px;border-radius:8px;background:#0a1923;border:1px dashed #5f7b8b;color:#7d97a5;font-size:26px;font-weight:900}
.codex-count{margin:0;font-size:12px;font-weight:800;color:#a9c4cf;text-align:right}
.daily-info{padding:10px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a}.daily-info h3{margin:2px 0 8px;font-size:17px;font-weight:900;word-break:keep-all}
.daily-date{margin:0;font-size:12px;color:#ffd76a;font-weight:800}.daily-rule{margin:0 0 8px;font-size:13px;line-height:1.5;color:#d5e4ea;word-break:keep-all}.daily-rule b{color:#8ff3f6;margin-right:3px}
.daily-tries{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:13px;color:#d5e4ea}.daily-tries b{color:#ffd76a}.daily-pips{display:flex;gap:4px}.daily-pips i{width:13px;height:13px;border-radius:50%;background:#20323e;border:1px solid #4c6677}.daily-pips i.on{background:#ffc74b;border-color:#ffe9a8}
.daily-best{margin:7px 0 0;font-size:13px;color:#d5e4ea}.daily-best b{color:#8ff3f6}
.result-daily{display:grid;gap:8px;margin-bottom:8px}.daily-score{margin:0;font-size:14px;color:#d5e4ea}.daily-score b{font-size:26px;font-weight:950;color:#ffe08a;font-variant-numeric:tabular-nums}
.daily-status{display:grid;gap:6px;font-size:12px;line-height:1.5;color:#b5cad4;min-height:20px}.daily-rank{margin:0;font-size:14px;color:#e3eff4}.daily-rank b{color:var(--result-accent,#74e8e6);font-size:17px}.daily-next{margin:0;font-size:13px;color:#d5e4ea}.daily-next b{color:#ffd76a}
.rank-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.rank-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:44px;padding:4px 9px;border-radius:7px;background:#10222ecc;border:1px solid #3c5766}
.rank-no{font-size:14px;font-weight:900;color:#ffd76a;font-variant-numeric:tabular-nums;text-align:center}.rank-nick{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800}.rank-nick small{margin-left:5px;font-size:10px;color:#9fb5c1;font-weight:700}
.rank-score{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}.rank-score b{font-size:14px;font-variant-numeric:tabular-nums}.rank-score small{font-size:10px;color:#9fb5c1}
.rank-me{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:8px 10px;border-radius:8px;background:#123f3c;border:1px solid #58d2b8;font-size:12.5px;color:#d9f7ef;flex-shrink:0}.rank-me b{font-size:15px;color:#fff}.rank-gap{margin:0;font-size:12.5px;color:#ffd76a;font-weight:800}
.nick-form{display:grid;gap:5px;padding:9px;border-radius:8px;background:#10222eea;border:1px solid #c9a24f;flex-shrink:0}.nick-form label,.coop-join label{font-size:12.5px;font-weight:800;color:#e8f2f4}
.nick-form>div,.coop-join>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.nick-form input,.coop-join input{min-width:0;width:100%;min-height:44px;padding:0 10px;border-radius:7px;border:2px solid #5a7586;background:#07131b;color:#f3f8f9;font:inherit;font-size:16px}.nick-form .wide-button,.coop-join .wide-button{width:auto;min-width:76px;min-height:44px;padding:6px 10px;font-size:13px}
.coop-join{display:grid;gap:5px;flex-shrink:0}.coop-notes{display:flex;flex-wrap:wrap;gap:3px 10px;justify-content:center;flex-shrink:0}.coop-notes p{margin:0;font-size:11.5px;color:#a9c4cf}.coop-notes p+p:before{content:"· ";color:#ffd76a}
.coop-sectors{display:grid;gap:4px;flex-shrink:0}.coop-sector{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 10px;border-radius:7px;background:#10222ecc;border:1px solid #4d6a7a;text-align:left;font-size:13px;font-weight:800;color:#e4eff2}.coop-sector b{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;background:#32454f;color:#cfe0e7;font-size:13px}.coop-sector[aria-checked=true]{border:2px solid #ffc74b;background:#2a2c1ccc}.coop-sector[aria-checked=true] b{background:#ffc74b;color:#1a1408}
.room-code{display:flex;flex-direction:column;align-items:center;gap:1px;padding:9px;border-radius:8px;background:#07131b;border:2px solid #4fb6c2;flex-shrink:0}.room-code small{font-size:11.5px;color:#a9c4cf}.room-code b{font-size:34px;font-weight:950;letter-spacing:5px;color:#8ff3f6;font-variant-numeric:tabular-nums;line-height:1.2}
.room-players{list-style:none;margin:0;padding:0;display:grid;gap:4px;flex-shrink:0}.room-players li{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 10px;border-radius:7px;background:#10222ecc;border:1px solid #3c5766;font-size:13px;font-weight:800}.room-players li.empty{color:#9fb5c1;font-weight:650}.room-players .dot{width:12px;height:12px;flex-shrink:0;border-radius:50%;background:#4fa8ff}.room-players .dot.p1{background:#ff9a4d}.room-nick{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-players em{font-style:normal;font-size:11.5px;color:#9fb5c1}.room-players li.ready em{color:#a9f5e1}
.coop-leave{min-height:44px;padding:8px;flex-shrink:0}
.shop-notice{margin:0;padding:7px 9px;border-radius:7px;background:#4f2718ed;border:1px solid #e09e5c;color:#ffe3b9;font-size:13px;font-weight:900;text-align:center;flex-shrink:0}
.shop-heading{margin:5px 0 0;font-size:13px;font-weight:900;color:#ffd76a}
.shop-row{display:flex;align-items:center;gap:9px;width:100%;min-height:50px;padding:6px 10px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a;text-align:left;color:#eef6f6;flex-shrink:0}.shop-row[aria-pressed=true]{border:2px solid #58d2b8;background:#123f3ccc}.shop-row.later{opacity:.86}
.shop-swatch{width:26px;height:26px;flex-shrink:0;border-radius:50%;border:2px solid #fff6;box-shadow:0 0 0 1px #07121c}
.shop-name{flex:1;min-width:0}.shop-name strong{display:block;font-size:13.5px;font-weight:850;word-break:keep-all}.shop-name small{display:block;margin-top:1px;font-size:11px;line-height:1.35;color:#b4c6d0;word-break:keep-all}
.shop-side{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex-shrink:0;max-width:44%;text-align:right}.shop-side b{font-size:13px;font-weight:900;color:#ffe08a;white-space:nowrap}.shop-side em{font-style:normal;font-size:10.5px;line-height:1.3;color:#a9c4cf;word-break:keep-all}.shop-row[aria-pressed=true] .shop-side em{color:#a9f5e1;font-weight:800}
.title-links button,.title-links a{min-width:44px;justify-content:center}

/* C68 · speed and two-player battle */
.speed-button{min-width:44px;font-weight:800;position:relative}.speed-button::after{content:'';position:absolute;inset:-8px -4px}.speed-button[data-on="1"]{color:#201500;background:linear-gradient(#ffd45a,#e6a92c)}
.coop-hud{position:absolute;top:6px;left:6px;z-index:4;display:flex;align-items:center;gap:6px;padding:4px 6px;background:#0b1620d9;border:1px solid #6d8591;border-radius:6px;font-size:12px;color:#f5f0dd;max-width:calc(100% - 12px)}.coop-hud[hidden],.coop-wait[hidden]{display:none}
.coop-hud b{max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coop-dot{width:10px;height:10px;border-radius:50%;background:#4aa8ff;flex:none}.coop-dot[data-player="1"]{background:#ff9a4d}
.coop-coins{display:inline-flex;align-items:center;gap:2px;font-weight:700;color:#ffd96b}.coop-coins svg{width:13px;height:13px}.coop-hud .mini-button{min-height:26px;padding:0 7px;font-size:11px;white-space:nowrap}
.coop-wait{position:absolute;top:44%;left:50%;transform:translateX(-50%);z-index:6;padding:10px 14px;background:#0b1620f2;border:2px solid #ffd45a;border-radius:8px;color:#fff;font-size:14px;font-weight:700;text-align:center;width:max-content;max-width:calc(100% - 24px)}
.dialog-heading .icon-button{width:44px;height:44px}.menu-secondary button{min-height:44px}.home-link{min-height:44px;align-items:center;padding-block:0}.text-button{min-height:44px}.sector-endless{min-height:44px}
#result-screen:has(#result-daily:not([hidden])) .result-mark{display:none}
#result-screen:has(#result-daily:not([hidden])) .result-stats{margin:10px 0;padding:10px 0}
#result-screen:has(#result-daily:not([hidden])) .result-panel{padding-block:14px}
#result-screen:has(#result-daily:not([hidden])) .result-panel h2{font-size:26px;margin:2px 0 6px}
#result-screen:has(#result-daily:not([hidden])) :is(#result-research,#result-eyebrow){display:none}
.sub-body .wide-button:disabled{opacity:1;filter:none;color:#c5d6de;text-shadow:none}
#coop-ready:disabled{--face-top:#1d3f44;--face-bottom:#173338;--bevel-top:#58d2b8;--bevel-left:#3c9f8b;--bevel-right:#2c6875;--bevel-bottom:#1c3b47;color:#c9fbea}
a.lobby-login{text-decoration:none;text-align:center}
.battlefield:has(.coop-hud:not([hidden])) .wave-banner{margin-top:40px}
.score-pill{position:absolute;top:6px;right:6px;z-index:4;padding:4px 8px;background:#0b1620d9;border:1px solid #c79a3a;border-radius:6px;font-size:12px;color:#f5f0dd}.score-pill[hidden]{display:none}.score-pill b{font-size:14px;color:#ffd96b;margin-left:2px}
.toast{z-index:45}

/* C69 · boss arrival card */
.boss-card{position:absolute;left:50%;top:17%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;background:linear-gradient(100deg,#3a1510f2,#1a0d12f2);border:2px solid #ff8a5c;border-radius:10px;color:#fff;pointer-events:none;animation:boss-card 2.4s ease-out forwards;width:max-content;max-width:calc(100% - 20px)}.boss-card[hidden]{display:none}
.boss-card img{width:74px;height:74px;object-fit:contain;flex:none}.boss-card small{display:block;font-size:12px;color:#ffc9a8;font-weight:700}.boss-card b{display:block;font-size:20px;font-weight:800;white-space:nowrap}
@keyframes boss-card{0%{opacity:0;transform:translate(-50%,-14px) scale(.92)}10%{opacity:1;transform:translate(-50%,0) scale(1)}85%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){.boss-card{animation:boss-card-still 2.4s linear forwards}@keyframes boss-card-still{0%,90%{opacity:1;transform:translateX(-50%)}100%{opacity:0;transform:translateX(-50%)}}}
.sector-tiers{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:-2px 0 8px}.sector-tier{min-height:44px;border-radius:8px;border:1px solid #5a7586;background:#16242e;color:#f0d9a6;font-size:13px;font-weight:700;padding:4px 6px}.sector-tier:disabled{opacity:.5;color:#9db0bc}
/* C69 · two-player work window stays small so the shared battle stays visible */
.coop-shared .work-panel{max-height:min(46%,340px)!important}

/* ===== META SCREENS START · title row, missions, medals, titles, settings, story, starter card, interface pictures ===== */
.title-art{position:absolute;left:0;top:clamp(0px,calc(18.5dvh - 81px),110px);width:100%;height:68%;object-fit:cover;object-position:center 26%;opacity:.78;z-index:-1;pointer-events:none;-webkit-mask-image:linear-gradient(transparent,#000 16%,#000 60%,transparent);mask-image:linear-gradient(transparent,#000 16%,#000 60%,transparent)}
.title-screen.art-ready{background:#070f16}.title-screen.art-ready #title-portrait{visibility:hidden}
.title-screen.art-ready :is(h1,.title-copy,.sector-tag){text-shadow:0 2px 6px #000d}.title-screen.art-ready .title-subtitle{color:#c4f6f9;text-shadow:0 0 4px #000,0 2px 6px #000}
.title-extras{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.title-content .title-extras .icon-tile{position:relative;flex-direction:column;gap:1px;min-width:44px;min-height:52px;padding:3px 0 2px;font-size:11px;font-weight:800;line-height:1.15;letter-spacing:-.4px;white-space:nowrap}
.icon-tile svg{width:22px;height:22px}
.meta-dot{position:absolute;top:-5px;right:-5px;width:13px;height:13px;border-radius:50%;background:#ff4d3f;border:2px solid #07121c;box-shadow:0 0 6px #ff4d3f99;pointer-events:none}
@media(max-width:355px){.title-screen{padding-inline:12px}}
.menu-list{grid-template-columns:repeat(6,minmax(0,1fr))}
.menu-list>#help-button,.menu-list>#menu-codex,.menu-list>#menu-settings{grid-column:span 2;justify-content:center;gap:5px;padding-inline:3px;text-align:center}
@media(max-width:355px){.menu-list>#help-button svg,.menu-list>#menu-codex svg,.menu-list>#menu-settings svg{display:none}}
.meta-chips{display:flex;align-items:center;gap:6px;margin:0;font-size:13.5px;color:#d5e6ea;flex-shrink:0}.meta-chips svg{width:20px;height:20px}.meta-chips b{color:#8ff3f6;font-size:17px;font-weight:900}
.meta-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 9px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a;flex-shrink:0}
.meta-row h3{margin:0 0 5px;font-size:13.5px;font-weight:850;line-height:1.3;color:#f1f6f4;word-break:keep-all}
.meta-bar{height:7px;border-radius:4px;background:#07131b;border:1px solid #3c5766;overflow:hidden}.meta-bar i{display:block;height:100%;background:linear-gradient(90deg,#3fd0d6,#8ff3f6)}
.meta-count{display:block;margin-top:3px;font-size:11px;line-height:1.3;color:#a9c4cf;font-variant-numeric:tabular-nums;word-break:keep-all}
.meta-side{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:900;color:#8ff3f6;white-space:nowrap}.meta-side svg{width:16px;height:16px}.meta-side.done{font-size:11.5px;font-weight:800;color:#8fa9b6}
.sub-body .meta-claim{width:auto;min-height:44px;padding:4px 8px;gap:3px;font-size:13px;white-space:nowrap}.meta-claim svg{width:15px;height:15px}.meta-claim b{font-weight:950}
.meta-row.ready{border:2px solid #ffc74b;background:#2a2c1ccc}.meta-row.ready .meta-bar i{background:linear-gradient(90deg,#e6a92c,#ffd45a)}
.meta-row.claimed{opacity:.6}
.meta-bonus{background:#14303aea;border-color:#58c4cf}
.meta-optional{display:inline-block;margin-left:5px;padding:0 5px;border-radius:4px;background:#17365a;border:1px solid #7eb6f2;color:#cfe6ff;font-size:10px;font-weight:800;line-height:15px;vertical-align:1px}
.profile-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:6px 10px;align-items:center;padding:8px 10px;border-radius:10px;background:linear-gradient(135deg,#1c3a46,#10222e);border:1px solid #5b8a97;flex-shrink:0}
.profile-card canvas{width:62px;height:62px;grid-row:1}
.profile-card small{display:block;font-size:11px;color:#a9c4cf}.profile-card strong{display:block;margin:1px 0;font-size:18px;font-weight:900;line-height:1.25;color:#ffe08a;letter-spacing:-.4px;word-break:keep-all}.profile-card span{display:block;font-size:11.5px;color:#c5d6de}
.sub-body .profile-change{grid-column:1/-1;min-height:44px;padding:6px;font-size:13px}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;flex-shrink:0}
.profile-stats>div{min-width:0;padding:6px 3px;text-align:center;border-radius:7px;background:#10222ecc;border:1px solid #3c5766}
.profile-stats dt{font-size:10.5px;color:#9fb5c1;white-space:nowrap}.profile-stats dd{margin:2px 0 0;font-size:14px;font-weight:900;color:#eef6f6;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-streak{margin:0;font-size:12.5px;color:#d5e4ea;text-align:center;flex-shrink:0}.profile-streak b{color:#ffd76a}
.profile-sectors{list-style:none;margin:0;padding:0;display:grid;gap:4px;flex-shrink:0}
.profile-sectors li{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:46px;padding:4px 9px 4px 5px;border-radius:7px;background:#10222ecc;border:1px solid #3c5766}
.profile-boss{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;overflow:hidden;background:#32454f;color:#cfe0e7;font-size:15px;font-weight:900}
.profile-boss img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#1a2a34;filter:brightness(.22) saturate(.3)}.profile-sectors li.cleared .profile-boss img{filter:none}
.profile-sector-name{min-width:0}.profile-sector-name strong{display:block;font-size:13px;font-weight:850;line-height:1.25;word-break:keep-all}.profile-sector-name small{display:block;font-size:11px;color:#9fb5c1}
.profile-sectors em{font-style:normal;font-size:14px;letter-spacing:-1px;color:#ffd76a;white-space:nowrap}
.medal-wall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex-shrink:0}
.medal-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;min-height:88px;padding:5px 1px 4px;border-radius:8px;background:#10222ecc;border:1px solid #3c5766;color:#e4eff2}
.medal-cell[aria-pressed=true]{border:2px solid #ffc74b;background:#2a2c1ccc;padding:4px 0 3px}
.medal-art{position:relative;display:grid;place-items:center;width:46px;height:46px}.medal-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.medal-stand-in{width:36px;height:36px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a8,#c8912f 70%);border:2px solid #7b5a14;box-shadow:0 2px 0 #06101a}.medal-art.art-ready .medal-stand-in{display:none}
.medal-cell.locked .medal-art{filter:grayscale(1) brightness(.5);opacity:.75}
.medal-cell small{font-size:10.5px;font-weight:800;line-height:1.15;text-align:center;word-break:keep-all}.medal-cell b{font-size:10.5px;font-weight:800;color:#9fb5c1;font-variant-numeric:tabular-nums}
.medal-cell .meta-dot{top:2px;right:2px}
.title-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex-shrink:0}
.title-choice{display:flex;flex-direction:column;justify-content:center;min-height:54px;padding:6px 8px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a;text-align:left;color:#eef6f6}
.title-choice strong{font-size:13px;font-weight:850;line-height:1.3;word-break:keep-all}.title-choice small{margin-top:1px;font-size:10.5px;line-height:1.3;color:#a9c4cf;word-break:keep-all}
.title-choice[aria-pressed=true]{border:2px solid #58d2b8;background:#123f3ccc}.title-choice[aria-pressed=true] small{color:#a9f5e1;font-weight:800}.title-choice.locked{background:#0d1b26cc;opacity:.62}
.setting-row{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:7px 10px;border-radius:8px;background:#10222eea;border:1px solid #4d6a7a;text-align:left;color:#eef6f6;flex-shrink:0}
.setting-name{flex:1;min-width:0}.setting-name strong{display:block;font-size:14px;font-weight:850}.setting-name small{display:block;margin-top:1px;font-size:11.5px;line-height:1.35;color:#b4c6d0;word-break:keep-all}
.setting-state{flex-shrink:0;min-width:54px;padding:4px 8px;border-radius:999px;background:#20323e;border:1px solid #4c6677;font-size:12px;font-weight:850;color:#a9c4cf;text-align:center;white-space:nowrap}.setting-state.on{background:#123f3c;border-color:#58d2b8;color:#a9f5e1}
.meta-toast{position:absolute;left:50%;transform:translateX(-50%);z-index:46;display:flex;align-items:center;gap:5px;width:max-content;max-width:calc(100% - 20px);padding:5px 11px 5px 7px;border-radius:14px;background:#0b1620f2;border:1.5px solid #ffc74b;box-shadow:0 3px 10px #0008;color:#fff3c4;font-size:12.5px;font-weight:800;line-height:1.3;word-break:keep-all;pointer-events:none}
.meta-toast svg{width:16px;height:16px}.meta-toast.fresh{animation:meta-toast-in .2s ease-out}.meta-toast.low{top:auto!important;bottom:calc(10px + var(--safe-b))}
@keyframes meta-toast-in{from{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%,0)}}
.starter-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center;margin-top:10px;padding:8px 10px;border-radius:9px;background:linear-gradient(135deg,#3a2c14,#231f17);border:1.5px solid #ffc74b;text-align:left}
.starter-copy strong{display:block;font-size:14px;font-weight:900;color:#ffe08a}.starter-copy small{display:block;font-size:11.5px;line-height:1.3;color:#e4d8b8;word-break:keep-all}
.starter-price{font-size:15px;font-weight:950;color:#fff3c4;white-space:nowrap}
.starter-card .wide-button{grid-column:1/-1;min-height:44px;padding:6px;font-size:12.5px}
.result-art{display:block;width:100%;height:clamp(58px,calc(24dvh - 76px),140px);margin:-10px 0 8px;object-fit:cover;border-radius:8px;box-shadow:0 0 0 2px #07121c}
.result-panel.art-ready .result-mark{display:none}
#result-screen:has(#result-daily:not([hidden])) .result-art{display:none}
@media(max-height:680px){#result-screen:has(#result-starter) :is(.result-mark,.result-art){display:none}#result-screen:has(#result-starter) .result-panel{padding-block:12px}#result-screen:has(#result-starter) .result-panel h2{font-size:26px;margin:2px 0 6px}#result-screen:has(#result-starter) .result-panel>p{line-height:1.45}}
.sector-card{position:relative;overflow:hidden}.sector-card>span{position:relative;z-index:1}
.sector-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.52;-webkit-mask-image:linear-gradient(90deg,transparent 6%,#000 72%);mask-image:linear-gradient(90deg,transparent 6%,#000 72%);pointer-events:none}
.sector-card strong,.sector-card small,.sector-card em{text-shadow:0 1px 2px #000d}
.act-tag{position:absolute;top:5px;right:7px;z-index:1;padding:1px 6px;border-radius:5px;background:#4a1a12;border:1px solid #ff8a5c;color:#ffd6bd;font-size:10.5px;font-style:normal;font-weight:850}
.story-screen{position:absolute;inset:0;z-index:32;display:flex;flex-direction:column;justify-content:flex-end;padding:calc(10px + var(--safe-t)) 10px calc(12px + var(--safe-b));background:linear-gradient(#07111bf4,#07111be6 42%,#07111bf8);overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.story-banner-slot{position:absolute;inset:0 0 auto;height:min(40%,320px);pointer-events:none;overflow:hidden}
.story-banner{display:block;width:100%;height:100%;object-fit:cover;opacity:.72;-webkit-mask-image:linear-gradient(#000 50%,transparent);mask-image:linear-gradient(#000 50%,transparent)}
.story-top{position:absolute;top:calc(8px + var(--safe-t));left:10px;right:10px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.story-place{margin:0;padding:5px 10px;border-radius:7px;background:#0b1a26e6;border:1px solid #c9a24f;color:#ffe08a;font-size:12.5px;font-weight:850;line-height:1.35;word-break:keep-all}
.story-skip{flex-shrink:0;min-width:74px;min-height:44px;padding:4px 10px;border-radius:8px;background:#1f3a48;border:1px solid #6c8b9a;color:#dbe9ee;font-size:12.5px;font-weight:800}
.story-stage{position:relative;z-index:1;display:flex;justify-content:flex-start;align-items:flex-end;margin-bottom:-4px;pointer-events:none}.story-stage[data-side=right]{justify-content:flex-end}
.story-face{position:relative;display:grid;place-items:end center;width:min(58vw,270px);height:clamp(170px,42dvh,350px)}
.story-portrait{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom;animation:story-face-in .18s ease-out}
.story-coreby{width:min(46vw,190px);height:auto;margin-bottom:6px;animation:story-face-in .18s ease-out}
.story-mark{display:grid;place-items:center;width:88px;height:88px;margin-bottom:16px;border-radius:50%;font-style:normal;font-size:36px;font-weight:950;color:#1a1408;background:linear-gradient(#f0c766,#c8912f);border:3px solid #fff0b0;box-shadow:0 4px 12px #0008;animation:story-face-in .18s ease-out}
.story-face[data-who=doyun] .story-mark{background:linear-gradient(#7fe3e8,#3aa9b3);border-color:#d5fbfb}
.story-face.art-ready .story-mark{display:none}
@keyframes story-face-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.story-box{position:relative;z-index:2;display:block;width:100%;min-height:124px;padding:11px 13px 28px;text-align:left;border-radius:11px;background:linear-gradient(145deg,#1f3a48,#12232e);border:2px solid #ffc74b;box-shadow:0 0 0 2px #07121c,0 8px 22px #0009;color:#f3f8f9;-webkit-user-select:none;user-select:none}
.story-box.fresh .story-line{animation:story-line-in .16s ease-out}@keyframes story-line-in{from{opacity:0}to{opacity:1}}
.story-name{display:block;margin-bottom:5px;font-size:14px;font-weight:900;color:#ffd76a}.story-name[data-who=doyun]{color:#8ff3f6}.story-name[data-who=coreby]{color:#ffb56b}
.story-line{display:block;font-size:16px;font-weight:700;line-height:1.5;word-break:keep-all}
.story-more{position:absolute;right:11px;bottom:6px;font-size:11.5px;color:#9fc4cf}.story-more i{font-style:normal;font-size:9px;animation:pulse .75s infinite alternate}
/* ===== META SCREENS END ===== */
.wave-progress{position:absolute;top:0;left:0;right:0;height:3px;background:#0b162099;z-index:3;pointer-events:none}.wave-progress[hidden]{display:none}.wave-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ffd45a,#ff9a4d);transition:width .18s linear}
.wave-preview{position:absolute;top:36px;left:50%;transform:translateX(-50%);z-index:4;width:max-content;max-width:calc(100% - 16px);padding:4px 10px;background:#0b1620e0;border:1px solid #6d8591;border-radius:6px;color:#e8f2f4;font-size:12px;text-align:center;pointer-events:none}.wave-preview[hidden]{display:none}.wave-preview b{color:#ffd96b;margin-right:4px}.wave-preview em{color:#ffb08a;font-style:normal;font-weight:800}
.battlefield:has(.coop-hud:not([hidden])) .wave-preview{top:76px}

/* C69 online: weekly endless, season league, friends, invites, cloud save line. */
.title-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.title-content .title-modes .mode-button{padding-inline:2px;font-size:12.5px;letter-spacing:-.4px}
.title-content .title-modes .mode-button small{letter-spacing:-.2px;white-space:nowrap}
.title-sync{margin:2px 0 0;font-size:11px;line-height:1.3;color:#8fe6c9;text-align:center}
.invite-card{position:absolute;left:12px;right:12px;top:calc(8px + var(--safe-t));z-index:3;display:grid;gap:7px;max-width:380px;margin:0 auto;padding:9px 10px;border-radius:10px;background:#08161ff6;border:2px solid #ffc74b;box-shadow:0 4px 14px #0009;color:#f6fbfb;text-align:left}
.invite-card p{margin:0;font-size:14px;line-height:1.35;word-break:keep-all}.invite-card p b{color:#ffe08a}.invite-card small{display:block;margin-top:1px;font-size:11.5px;color:#b5cad4}
.invite-card>div{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:7px}
.invite-card .wide-button{margin-top:0;min-height:44px;padding:4px 6px;font-size:13px}
.friend-box{display:grid;gap:5px;flex-shrink:0}.friend-box[hidden]{display:none}
.friend-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.friend-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:2px 3px 2px 10px;border-radius:7px;background:#10222ecc;border:1px solid #4d6a7a}
.friend-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800;color:#e4eff2}
.sub-body .friend-invite{flex:none;width:72px;min-height:44px;margin:0;padding:0 8px;font-size:13px}
.coop-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;flex-shrink:0}
.coop-kind{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:48px;padding:4px 3px;border-radius:7px;background:#10222ecc;border:1px solid #4d6a7a;color:#e4eff2;line-height:1.25}
.coop-kind b{font-size:13px;font-weight:800}.coop-kind small{font-size:10.5px;color:#a9c4cf;letter-spacing:-.3px;word-break:keep-all;text-align:center}
.coop-kind[aria-checked=true]{border:2px solid #ffc74b;background:#2a2c1ccc}.coop-kind[aria-checked=true] small{color:#ffe08a}
.room-code .room-kind{color:#ffe08a;font-weight:700;text-align:center;word-break:keep-all}
.invite-sent{padding:6px 9px;border-radius:7px;background:#123f3c;border:1px solid #58d2b8;color:#d9f7ef;flex-shrink:0}
.rank-title{display:block;margin-top:1px;font-size:10.5px;font-weight:700;color:#ffd76a;overflow:hidden;text-overflow:ellipsis}
.rank-week{font-weight:800;color:#ffe08a;flex-shrink:0}
.season-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:6px 10px;align-items:center;padding:10px;border-radius:10px;background:linear-gradient(135deg,#1c3a46,#10222e);border:1px solid #5b8a97;flex-shrink:0}
.season-emblem{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffffff40,#ffffff00 55%),var(--tier);border:2px solid #0b1a24;box-shadow:0 0 0 2px var(--tier);color:#0b1a24;font-size:26px;font-weight:950}
.season-emblem img{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);object-fit:contain}.season-emblem img[hidden]{display:none}
.season-emblem.art-ready{background:none;border-color:transparent;box-shadow:none;color:transparent}
.season-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0}.season-text small{flex-basis:100%;font-size:11.5px;color:#a9c4cf}.season-text strong{font-size:20px;font-weight:950;letter-spacing:-.4px;color:#ffe08a}.season-text span{font-size:14px;font-weight:800;color:#e3eff4;font-variant-numeric:tabular-nums}
.season-bar{grid-column:1/-1;height:9px;border-radius:5px;background:#07131b;border:1px solid #4d6a7a;overflow:hidden}.season-bar i{display:block;height:100%;min-width:3px;border-radius:4px}
.season-goal{grid-column:1/-1;font-weight:800;color:#d9f5f7}
.season-goal,.rank-week{margin:0;font-size:12.5px;line-height:1.4}.invite-sent{margin:0;font-size:12px;line-height:1.45;word-break:keep-all}
.coop-sectors[hidden]{display:none}
.whats-new{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}.whats-new li{padding:8px 10px;background:#0f1c26;border:1px solid #47606e;border-radius:8px}.whats-new b{display:block;color:#ffd96b;font-size:14px}.whats-new span{display:block;font-size:13px;color:#d8e5ea;line-height:1.4}

/* C69 · Special Operation card choice */
.perk-screen{z-index:12}.perk-screen .dialog-panel{max-width:400px;width:100%;text-align:center}.perk-screen h2{margin:0 0 4px;font-size:21px}.perk-screen p{margin:0 0 12px;font-size:13px;color:#b9cbd4}
.perk-list{display:grid;gap:8px}.perk-card{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;min-height:76px;padding:6px 10px;text-align:left;border-radius:10px;border:2px solid #d9a94a;background:linear-gradient(120deg,#2c4251,#18283a);color:#fff;cursor:pointer}.perk-card:active{filter:brightness(1.25)}.perk-card img{width:60px;height:60px;object-fit:contain}.perk-card b{display:block;font-size:16px;color:#ffe08a}.perk-card small{display:block;font-size:13px;color:#e2edf1;line-height:1.35}

/* ===== PLAYTEST FIXES 2026-11-06 ===== */
/* Korean breaks between words, never in the middle of one. */
#game-shell{word-break:keep-all;overflow-wrap:break-word}
/* Sector list reads from the top: a card, then its own endless and tier buttons. The way out stays on screen. */
.sector-list{flex:none;flex-direction:column;justify-content:flex-start}
.sector-panel .dialog-heading{position:sticky;top:var(--safe-t);z-index:3;background:#0b1a26f7}
.sector-panel .dialog-heading::before{content:"";position:absolute;left:-16px;right:-16px;bottom:100%;height:calc(14px + var(--safe-t));background:#07111b;pointer-events:none}
.sector-list .sector-endless{margin-top:-6px}.sector-list .sector-tiers{margin:-6px 0 6px}
.sector-card.sector-rush{border-color:#ff8a5c;background:linear-gradient(100deg,#3a1510f2,#1a0d12f2)}.sector-rush .sector-number{background:linear-gradient(#ff9a6a,#c8502f);color:#fff3e6}
/* Messages never cover a talk, and nothing from the screen behind shows through it. */
.story-screen{background:#07111b}
.game-shell:has(.story-screen:not([hidden])) :is(.toast,.meta-toast){display:none}
/* A returning player needs no tagline, and the saved-battle line stays readable over the picture. */
.title-screen:has(#continue-button:not([hidden])) .title-copy{display:none}
.title-screen .save-info{width:fit-content;max-width:100%;margin:0 auto 8px;padding:3px 9px;border-radius:7px;background:#07111be0;word-break:keep-all}
/* Small footer buttons take a thumb-sized press without growing on screen. */
.speed-button::after{inset:-16px -5px -6px}
#next-wave{position:relative}#next-wave::after{content:'';position:absolute;inset:-16px -3px -6px}
#menu-button{position:relative}#menu-button::after{content:'';position:absolute;inset:-4px}
.skill-button{width:clamp(40px,11.4vw,44px);height:clamp(40px,11.4vw,44px)}
/* A long wave-clear line wraps instead of running off a small screen. */
.wave-banner.wave-clear{white-space:normal;width:max-content}
/* Earned messages keep off a work window docked at the top. */
.work-top .meta-toast{top:auto!important;bottom:calc(40px + var(--safe-b))}
/* A field guide card whose picture failed still uses the full width. */
.codex-card:has(>canvas[hidden]){grid-template-columns:minmax(0,1fr)}
/* A phone on its side keeps the battle's proportions in a narrow column, so everything else uses the free space. */
@media(orientation:landscape) and (max-height:600px){
 .screen-overlay,.story-screen{position:fixed}
 .dialog-heading .icon-button{width:44px;height:44px}.dialog-heading .icon-button svg{width:22px;height:22px}
 .menu-list{grid-template-columns:repeat(6,minmax(0,1fr))}
 #work-panel{position:fixed;left:calc(50% + min(270px,(100dvh - 83px)*.3125) + 8px);right:calc(8px + env(safe-area-inset-right,0px));top:calc(8px + var(--safe-t))!important;bottom:calc(8px + var(--safe-b))!important;max-height:none!important;border-radius:10px}
 #view-facility{display:none!important}
 .skill-button{width:36px;height:36px}
 body::before{content:'화면을 세로로 돌리면\A전장이 더 크게 보여요';white-space:pre-line;position:fixed;top:50%;left:calc(8px + env(safe-area-inset-left,0px));width:calc(50% - min(270px,(100dvh - 83px)*.3125) - 16px);transform:translateY(-50%);text-align:center;color:#8fa6b3;font-size:14px;line-height:1.6;word-break:keep-all}
}

/* C70 · 출석 카드 · 시즌 패스 · 점수 카드 (attendance.mjs, pass.mjs, sharecard.mjs) */
.title-modes{grid-template-columns:repeat(4,minmax(0,1fr))}
.pass-entry{position:relative}
.title-content .title-modes .mode-button{min-width:0}
.title-content .title-modes .mode-button>span{white-space:nowrap}
#attendance-screen{z-index:29}
#attendance-screen .sub-panel{max-width:340px}
.attend-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.attend-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 0 6px;border-radius:7px;background:#10222eea;border:1px solid #4d6a7a;color:#c9dae1;min-width:0}
.attend-day small{font-size:10.5px;font-weight:800;line-height:1.1;color:#a9c4cf}.attend-day b{font-size:12.5px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}.attend-day svg{width:18px;height:18px}
.attend-day.last{background:#2a2c1ccc;border-color:#d9a94a}
.attend-day.today{border:2px solid #ffc74b;background:#3a3216;color:#fff3c4;padding:4px 0 5px}.attend-day.today small{color:#ffd76a}
.attend-day.done{opacity:.72}.attend-day.done.today{opacity:1}
.attend-check{display:block;width:18px;height:18px;border-radius:50%;background:#2fae8a;position:relative}.attend-check:after{content:"";position:absolute;left:6px;top:3px;width:4px;height:8px;border:solid #06211a;border-width:0 2.4px 2.4px 0;transform:rotate(42deg)}
.attend-lead{margin:2px 0 0;text-align:center;font-size:15px;font-weight:800;line-height:1.35;color:#f1f6f4;word-break:keep-all}.attend-lead b{color:#ffd76a;font-weight:950}
#attendance-screen .wide-button{margin-top:0;gap:4px}#attendance-screen .wide-button svg{width:18px;height:18px}#attendance-screen .wide-button:focus-visible{outline-offset:-5px}
.attend-note{text-align:center}
#pass-screen .sub-panel{max-width:400px}
.pass-head{display:grid;gap:6px;margin-bottom:8px}.pass-head .shop-notice{padding:4px 8px;font-size:12px}
.pass-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:7px 10px 7px 7px;border-radius:9px;background:#10222eea;border:2px solid #ffc74b}
.pass-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;height:58px;border-radius:9px;background:linear-gradient(160deg,#ffd76a,#d79c35);color:#2a1c05;box-shadow:inset 0 2px #fff0b0,inset 0 -2px #8c6024}
.pass-badge small{font-size:10.5px;font-weight:850;line-height:1}.pass-badge b{font-size:29px;font-weight:950;line-height:1.02;font-variant-numeric:tabular-nums}
.pass-top-main{display:grid;gap:4px;min-width:0}.pass-top-main small{font-size:11.5px;font-weight:750;color:#b5cad4}.pass-top-main span{font-size:12.5px;font-weight:750;color:#e8f2f4;word-break:keep-all}.pass-top-main span b{color:#8ff3f6;font-weight:950}
.pass-top-main .meta-bar{height:9px}
.pass-how{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;flex-shrink:0}
.pass-how li{padding:5px 7px;border-radius:7px;background:#0d1b25cc;border:1px solid #3c5766;font-size:11.5px;font-weight:700;line-height:1.3;color:#d5e6ea;word-break:keep-all}.pass-how b{color:#ffd76a;font-weight:950}.pass-how small{display:block;font-size:10.5px;font-weight:650;color:#a9c4cf}
.pass-attend{padding:5px 9px}.pass-attend h3{margin:0}
.pass-track{flex-shrink:0}
.pass-columns{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:38px minmax(0,1fr) minmax(0,1fr);gap:4px;align-items:end;padding:4px 0 5px;background:#1c303e;font-size:12px;font-weight:900;line-height:1.15;color:#ffd76a;text-align:center}
.pass-columns small{display:block;margin-top:1px;font-size:10.5px;font-weight:750;line-height:1.2;color:#d9c9f0;word-break:keep-all}
.pass-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.pass-row{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(0,1fr);gap:4px;align-items:stretch}
.pass-no{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:7px;background:#0d1b25;border:1px solid #3c5766;color:#8fa9b6;font-variant-numeric:tabular-nums}.pass-no b{font-size:15px;font-weight:900;line-height:1}.pass-no small{font-size:9.5px;font-weight:900;line-height:1}
.pass-row.reached .pass-no{background:#173a47;border-color:#57e3e8;color:#d9f5f7}
.pass-row.now .pass-no{background:#ffc74b;border-color:#fff0b0;color:#2a1c05}
.pass-cell{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px 4px;min-width:0;min-height:48px;padding:4px 5px;border-radius:7px;font-size:12px;line-height:1.2;text-align:center;word-break:keep-all}
.pass-cell svg{width:16px;height:16px}.pass-cell b{font-weight:900}.pass-cell small{width:100%;font-size:10.5px;font-weight:750;line-height:1.15;opacity:.85}.pass-cell em{width:100%;font-size:10.5px;font-weight:850;font-style:normal;line-height:1.15}
.pass-cell .shop-swatch{flex:none;width:13px;height:13px;margin:0;border-radius:50%}
.pass-cell.free:not(.ready){background:#10222eea;border:1px solid #4d6a7a;color:#f1f6f4}
.pass-cell.free.locked{color:#b9ccd6}
.pass-cell.free.done{opacity:.58}
.pass-cell.free.empty:not(.ready){background:transparent;border:1px dashed #2c4352}
.sub-body .pass-cell.free.ready{width:auto;min-height:48px;margin:0;padding:4px 5px;gap:1px 4px;font-size:12.5px;line-height:1.2;color:#2a1c05;white-space:normal;flex-wrap:wrap}
.pass-cell.free.ready small{color:#4a3208;opacity:1}.pass-cell.free.ready em{font-size:11.5px;font-weight:950}
.pass-cell.paid{position:relative;padding-left:18px;background:#19202bcc;border:1px dashed #6a6680;color:#a8a4b8}
.pass-cell.paid svg{opacity:.75}
.pass-lock{position:absolute;left:4px;top:5px;width:12px!important;height:12px!important;color:#c9c4dc}
.score-card-image{display:block;width:100%;height:auto;border-radius:8px;flex-shrink:0;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;touch-action:auto}
/* Online playtest fixes: an invite shown on the two-player screen sits in the page flow; the wait banner never swallows taps; the gift button is easier to hit without growing. */
.coop-wait{pointer-events:none}.coop-hud .mini-button{position:relative}.coop-hud .mini-button::after{content:'';position:absolute;inset:-9px -4px}
.sub-body .invite-card{position:static;max-width:none;margin:0;flex-shrink:0}
@media(max-width:340px){.sub-tabs button{font-size:11.5px;padding-inline:2px}}
/* Long play test fixes (2026-11-06): challenge modes hide "새 방어전 시작", so the other button takes the whole row. A lone repair card fills its row too. */
.menu-secondary:has(#restart-button[hidden]) #lobby-button{grid-column:1/-1}
#work-options .option-card:only-child{grid-column:1/-1}
.goals-claim-all{flex-shrink:0;min-height:44px;margin:0 0 8px}
/* A new specialisation is the biggest choice on the tab, but it came after four other cards, below the fold. */
#work-options .option-card[data-action="specializeLayer"]{order:-1;border-color:#ffd76a}
/* ===== Pictures for the two mode cards, the ends of the acts and the tower specialties ===== */
.sector-card[data-sector="9"] .sector-banner{opacity:.82;object-position:50% 34%;-webkit-mask-image:linear-gradient(90deg,transparent 18%,#000 62%);mask-image:linear-gradient(90deg,transparent 18%,#000 62%)}
/* Coreby and the upgrade cards stay to the right, and the words wrap before they reach him. */
.sector-card[data-sector="10"] .sector-banner{left:auto;right:-5%;width:86%;opacity:.9;object-position:88% 42%;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 64%);mask-image:linear-gradient(90deg,transparent 30%,#000 64%)}
.sector-card[data-sector="10"] small{max-width:68%}
.story-ending .story-banner-slot{inset:0;height:auto}
.story-ending .story-banner-slot::after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(#07111b00,#07111bd9)}
.story-ending-art{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;animation:story-face-in .4s ease-out}
/* Small on short phones, so the face keeps clear of Coreby and the queen in the picture. */
.story-ending .story-face{width:auto;aspect-ratio:1;height:clamp(84px,calc(34.8dvh - 114px),180px)}
.story-ending .story-coreby{width:100%;margin-bottom:0}
.story-ending .story-mark{width:64px;height:64px;font-size:26px}
/* The picture is slid up and may end above the bottom edge. The shade turns solid exactly where it ends, so no line shows. */
.result-overlay.ending-art{place-items:end center;background:linear-gradient(#07111b00,#07111b33 calc(var(--ending-end,100%)*.6),#07111b var(--ending-end,100%)),var(--ending-art) 50% var(--ending-y,0px)/100% auto no-repeat #07111b}
.result-overlay.ending-art :is(.result-art,.result-mark){display:none}
.spec-strip{grid-column:1/-1;order:-2;display:flex;align-items:center;gap:8px;margin:0;padding:5px 9px 5px 6px;border:1px solid #ffd76a;border-radius:8px;background:#0b1a26cc;line-height:1.3}
.spec-strip canvas{flex:none;width:34px;height:34px}
.spec-strip span{min-width:0}.spec-strip b{display:block;font-size:12.5px;font-weight:850;color:#ffe08a}.spec-strip small{display:block;font-size:11px;color:#c6d8e0}
.dialog-banner{display:block;width:100%;height:clamp(70px,13dvh,112px);margin-bottom:8px;object-fit:cover;object-position:50% 58%;border-radius:8px;box-shadow:0 0 0 1px #c9a24f88}
@media(max-height:500px){.dialog-banner{display:none}}
/* The friend window can get long, and on a short phone every row counts there. */
@media(max-height:700px){#coop-screen .dialog-banner{display:none}}
/* On its side the picture is cut across, so it shows its middle instead of the sky. */
@media(orientation:landscape) and (max-height:600px){
 .story-ending-art{object-position:50% 46%}
 .result-overlay.ending-art{background-position:0 0,50% 46%;background-size:auto,cover}
}

/* Radio lines during a battle. They never catch a tap. */
.radio-line{position:absolute;left:8px;top:8px;z-index:4;display:flex;align-items:center;gap:8px;max-width:min(74%,310px);padding:5px 11px 5px 5px;background:#0b1a26ec;border:1px solid #c79a3a;border-radius:10px;box-shadow:0 2px 6px #0007;pointer-events:none;animation:radio-in .16s ease-out}
.radio-line[hidden]{display:none}
.radio-line img{flex:none;width:42px;height:42px;border-radius:8px;object-fit:cover;object-position:50% 8%;background:#17303f}
.radio-line b{display:block;font-size:11px;line-height:1.25;color:#ffd76a}
.radio-line span{display:block;font-size:13px;line-height:1.3;font-weight:700;color:#f5f0dd;word-break:keep-all}
@keyframes radio-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.radio-line{animation:none}}
/* The sector loading overlay: banner, the line that was always there, one tip. The banner's box keeps its size whether or not the picture has come. */
.sector-loading{flex-direction:column;gap:12px;padding:0 16px;background:#07111bf5}
.loading-art{flex:none;width:min(100%,360px);aspect-ratio:720/260}
.loading-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;box-shadow:0 0 0 2px #c9a24f99,0 8px 24px #0009;animation:story-face-in .25s ease-out}
.loading-line{display:flex;align-items:center;justify-content:center;gap:9px;max-width:360px;text-align:center}
.loading-tip{margin:0;max-width:360px;min-height:3em;font-size:13px;font-weight:600;line-height:1.5;color:#b9cfd9;text-align:center}
.sector-loading[data-failed] .loading-tip{visibility:hidden}.sector-loading[data-failed] .loading-dot{display:none}
@media(orientation:landscape) and (max-height:600px){.sector-loading{position:fixed}}

/* A wreck's restore card is the first thing to offer, and gear exchange sits under the base upgrades across the whole row. */
#work-options .option-card[data-action="restoreWreck"]{order:-1;grid-column:1/-1;border-color:#ffd76a}
#work-options .option-card[data-action="exchangeGears"]{grid-column:1/-1}
#work-options .option-card.gears-plenty{order:-1;border-color:#9fe3ff}
/* Side goals: a small row under a sector card, a short list in the pause menu, a few lines on the result screen. */
.sector-list .sector-goals{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:-6px;padding:0 12px;border-radius:8px;background:#0b1a26c4;border:1px solid #6d5a2c;color:#f6e3ae;font-size:12.5px;font-weight:800}
.sector-goals b{font-weight:900;color:#ffd76a;font-variant-numeric:tabular-nums}
.goal-pips{display:inline-flex;gap:4px}.goal-pips i{width:9px;height:9px;border-radius:50%;border:1.5px solid #c9a24f}.goal-pips i.on{background:#ffc74b;border-color:#ffc74b}
.menu-goals{display:block;width:100%;margin:-4px 0 12px;padding:6px 9px;border-radius:6px;background:#0d2530cc;border:1px solid #6d5a2c;color:#e3eef2;text-align:left;font-size:12px;line-height:1.35}
.menu-goals[hidden]{display:none}
.menu-goals-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:3px}.menu-goals-head b{color:#ffd76a;font-size:12.5px;font-weight:850}.menu-goals-head small{color:#a9bfca;font-size:11px;font-weight:700;white-space:nowrap}
.goal-line{display:grid;grid-template-columns:14px minmax(0,1fr) auto;column-gap:5px;align-items:baseline;padding:1px 0}
.goal-line i{font-style:normal;font-weight:900;text-align:center}.goal-line>span:nth-child(2){min-width:0}
.goal-line em{font-style:normal;font-size:11px;font-weight:800;white-space:nowrap;color:#8ff3f6;font-variant-numeric:tabular-nums}
.goal-line[data-status="got"] i,.goal-line[data-status="got"] em,.goal-line[data-status="done"] i,.goal-line[data-status="done"] em{color:#ffd76a}
.goal-line[data-status="lost"]{color:#8b9ea9}.goal-line[data-status="lost"] em{color:#ff9d8a}
.goal-sector{margin:0;font-size:13px;font-weight:850;color:#ffd96b}
.goal-row{flex-shrink:0}.goal-row h3{margin-bottom:3px}.goal-hint{display:block;font-size:12px;line-height:1.45;color:#b5cad4;word-break:keep-all}
.goal-now{display:block;margin-top:4px;font-size:12px;font-weight:800;color:#8ff3f6}.goal-now[data-status="got"]{color:#ffd76a}.goal-now[data-status="lost"]{color:#ff9d8a}
.result-goals{margin:10px 0 0;padding:7px 10px;border-radius:7px;background:#0d2530cc;border:1px solid #c9a24f;text-align:left;font-size:12px;line-height:1.4;color:#eaf4f6}
.result-goals>b{display:block;margin-bottom:3px;color:#ffd76a;font-size:12.5px;font-weight:850}
.result-goals ul{margin:0;padding:0;list-style:none;display:grid;gap:3px}.result-goals li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.result-goals em{display:inline-flex;align-items:center;gap:2px;font-style:normal;font-weight:900;color:#8ff3f6;white-space:nowrap}.result-goals svg{width:15px;height:15px}
.result-goals+.result-stats{margin-top:12px}
/* What one purchase adds, at the same spot on every card, in the colour the tower flashes when it finishes. */
.option-gain{margin-left:auto;font-size:13px;font-weight:850;line-height:1;color:#ffc061;white-space:nowrap}.option-gain:first-child{margin-left:0}.option-card[data-stat=rate] .option-gain{color:#8ff0b6}.option-card[data-stat=range] .option-gain{color:#8fd8ff}.option-card[data-stat=special] .option-gain{color:#d9b8ff}.option-card[data-stat=hp] .option-gain,.option-card[data-stat=armor] .option-gain{color:#a7f4e9}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* ===== Sectors open one at a time (web/lib/unlocks.mjs) ===== */
/* A locked card looks like the old disabled card, but stays a real button so a press can say why. The banner stays recognisable, only dark. */
.sector-card.sector-locked{border-color:#42586699;background:#0d1b26cc;box-shadow:none}
.sector-card.sector-locked .sector-number{position:relative;background:#32454f;color:#b6c6d0}
.sector-card.sector-locked .sector-banner{opacity:.3;filter:grayscale(.8) brightness(.8)}
.sector-card.sector-locked strong{color:#c3d1d9}
.sector-card.sector-locked small{color:#e8d7a6;font-weight:750}
.sector-lock{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#10222f;border:1.5px solid #8aa0ad;color:#e8d7a6}
.sector-lock svg{width:13px;height:13px}
.sector-card.lock-nudge .sector-lock{animation:sector-lock-nudge .32s ease-out}
@keyframes sector-lock-nudge{25%{transform:rotate(-16deg) scale(1.15)}60%{transform:rotate(12deg) scale(1.15)}}
/* A clear just opened this card. It stays marked until the player has gone in once. */
.sector-card.sector-new{border-color:#ffe08a;box-shadow:0 0 0 2px #ffd76a77,0 3px 0 #06101a}
.sector-card.sector-new em{display:inline-block;margin-top:5px;padding:1px 8px;border-radius:5px;background:#ffc74b;color:#1a1408;font-weight:850;text-shadow:none}
/* What a clear opened, on the result screen. */
.result-opened{margin:8px 0 0;padding:6px 10px;border-radius:7px;background:#3a2d0fd9;border:1px solid #ffc74b;text-align:center}
.result-opened p{margin:0;color:#ffe9b0;font-size:13px;font-weight:800;line-height:1.45;word-break:keep-all}
.result-opened+.result-stats{margin-top:12px}

/* The lab. Rows are grouped, the list scrolls by itself and the way back to battle stays in view. */
#research-screen .research-panel{display:flex;flex-direction:column;gap:6px;overflow:hidden;padding-block:14px}
#research-screen .research-panel>*{flex-shrink:0}
#research-screen .research-list{flex:1 1 auto;min-height:0;display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:1px 2px 2px;margin-inline:-2px}
.research-note{margin:0;font-size:12px;line-height:1.4;color:#a9bcc7;word-break:keep-all}
.research-group{display:grid;gap:6px}.research-group+.research-group{margin-top:10px}
.research-group h3{margin:0;font-size:12.5px;font-weight:850;letter-spacing:1px;color:#ffd76a}
#research-screen .research-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 9px;align-items:center;min-height:62px;padding:7px 10px 10px;overflow:hidden;background:#101f2c;border:1px solid #3e5564}
#research-screen .research-row:disabled{opacity:1;color:#b5c4cc}
#research-screen .research-row:disabled .research-name small{color:#8ea2ae}
.research-name strong em{font-style:normal;font-size:11.5px;font-weight:800;color:#8fb0bd;margin-left:3px}
.research-name small{word-break:keep-all}
.research-step{display:block;margin-top:1px;font-size:13px;font-weight:750;color:#c9d8df;font-variant-numeric:tabular-nums}
.research-step i{font-style:normal;color:#7f97a4}.research-step b{color:#8ff3f6;font-weight:900}
#research-screen .research-row:disabled .research-step b{color:#9fc4cc}
.research-cost{min-width:50px;padding:5px 7px;border-radius:7px;background:#17293a;color:#7f97a4}
#research-screen .research-row:disabled .research-cost svg{opacity:.55}
.research-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#0a151e}
.research-bar i{display:block;height:100%;background:#57c7d0}
#research-screen .research-row.can-buy{background:#17344a;border:2px solid #58dbe3;box-shadow:0 0 0 1px #07121c,inset 0 1px #ffffff22;padding:6px 9px 9px}
.research-row.can-buy .research-cost{background:linear-gradient(#ffd76a,#e8a93a);color:#2a1a02;box-shadow:0 1px 0 #6e4a0e}
#research-screen .research-row.maxed .research-cost{background:none;color:#ffd76a}
.research-row.research-hint{animation:research-hint 1.1s ease-in-out infinite}
@keyframes research-hint{0%,100%{box-shadow:0 0 0 2px #ffd76a,0 0 6px #ffd76a66}50%{box-shadow:0 0 0 3px #ffe9a8,0 0 16px #ffd76acc}}
@media(prefers-reduced-motion:reduce){.research-row.research-hint{animation:none;box-shadow:0 0 0 3px #ffd76a}}
.research-tip{grid-column:1/-1;font-size:12.5px;font-weight:850;color:#ffe08a}
#research-go{margin-top:2px;min-height:46px}
#title-research.has-dot,#research-button.has-dot{position:relative}
#title-research.has-dot::after,#research-button.has-dot::after{content:'';position:absolute;top:-5px;right:-5px;width:9px;height:9px;border-radius:50%;background:#ff4d3f;border:2px solid #07121c;box-shadow:0 0 6px #ff4d3f99;pointer-events:none}
#research-button.has-dot::after{top:-5px;right:-5px}
@media(max-height:600px){#research-screen .research-panel{padding-block:10px;gap:4px}#research-screen .research-row{min-height:58px;padding-block:5px 8px}#research-screen .research-row.can-buy{padding-block:4px 7px}#research-go{min-height:44px}.research-note{font-size:11.5px}}
.result-chips{display:grid;justify-items:center;gap:1px;margin:10px 0 0;padding:6px 10px;border-radius:8px;background:#0d2530cc;border:1px solid #58dbe3;text-align:center}
.result-chips>span{display:inline-flex;align-items:center;gap:5px}.result-chips svg{width:20px;height:20px}.result-chips b{font-size:16px;font-weight:900;color:#8ff3f6}
.result-chips small{font-size:12px;line-height:1.35;color:#c9d8df;word-break:keep-all}
.result-chips .result-learned{color:#ffe08a}
@media(max-height:680px){#result-screen .result-art,#result-screen .result-mark{display:none}#result-screen .result-panel{padding-block:12px}#result-screen .result-panel h2{font-size:26px;margin:2px 0 6px}#result-screen .result-panel>p{line-height:1.5}#result-screen .result-stats{margin:8px 0;padding:8px 0}#result-screen .result-stats dd{margin-top:2px;min-height:0}}
.result-chips+.result-stats{margin-top:12px}
.title-content .title-lab{display:grid;justify-items:center;gap:0;margin-top:6px;min-height:46px;padding:4px 10px;background:linear-gradient(#17394a,#102836);border:2px solid #4fb6c2;font-size:14.5px;font-weight:850;line-height:1.25;color:#e8fbfb}
.title-lab small{font-size:11px;font-weight:600;color:#a8c7cf;word-break:keep-all}
#title-research.has-dot::after{top:-5px;right:-5px;width:9px;height:9px}
/* ---- 손맛과 보는 맛 (2026-11-06): 눌렀을 때 답하는 화면, 안내 글과 띠의 자리, 새 그림 ---- */
button,a{transition:filter .1s,background .12s,transform .09s cubic-bezier(.3,1.7,.6,1)}
button:active:not(:disabled){transform:translateY(2px) scale(.975);filter:brightness(1.12)}
:is(.icon-button,.wide-button,.work-tabs button,.facility-view-button,.repair-button,.option-card,.menu-list button,.menu-secondary button):active:not(:disabled){transform:translateY(2px) scale(.985)}
@media(prefers-reduced-motion:reduce){button:active:not(:disabled){transform:none}}
/* C-04: 전투 시작 안내 글은 기지가 아니라 웨이브 표시 아래에 */
.game-shell:not(.work-open) .battlefield .toast,.game-shell:not(.work-open) .battlefield:has(.skill-bar:not([hidden])) .toast{top:64px;bottom:auto}
/* C-09: 웨이브를 막은 순간 */
.wave-banner.wave-clear{top:7px;padding:7px 20px 8px;font-size:18px;line-height:1.2;font-weight:900;letter-spacing:-.4px;text-align:center;color:#f2fff9;text-shadow:0 2px 0 #06201c;border:2px solid #7df0cf;background:linear-gradient(90deg,#0d3a34f7,#176a58f7 50%,#0d3a34f7);box-shadow:0 0 20px #4fe0b866,0 3px 0 #06201c;animation:clear-in .4s cubic-bezier(.2,1.6,.4,1) both;overflow:hidden}
.wave-banner.wave-clear::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,#ffffff70 50%,transparent 65%);animation:clear-shine .75s .16s ease-out both;pointer-events:none}
.wave-banner.wave-clear small{display:block;margin-top:1px;font-size:12px;font-weight:750;letter-spacing:0;color:#bff3e4;text-shadow:none}
.wave-banner.wave-clear .banner-chip{display:block;font-size:12.5px;font-weight:850;color:#8ff3f6;text-shadow:none}
@keyframes clear-in{0%{transform:translateX(-50%) scale(.55);opacity:0}100%{transform:translateX(-50%) scale(1);opacity:1}}
@keyframes clear-shine{0%{transform:translateX(-110%)}100%{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){.wave-banner.wave-clear{animation:none;transform:translateX(-50%)}.wave-banner.wave-clear::after{display:none}}
/* C-10: 다음 웨이브는 그림과 수로 */
.wave-preview{padding:3px 10px}.wp-row{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.wave-preview b{margin-right:0}
.wp-unit{display:inline-flex;align-items:center;gap:1px;font-weight:850;font-size:13px;color:#fff}.wp-unit canvas{width:25px;height:25px}
/* C-11: 보스 띠는 맨 위에서, 포탑을 가리지 않게 */
.boss-card{top:3px;left:3px;right:3px;width:auto;max-width:none;padding:5px 16px 5px 6px;transform:none;border:0;border-radius:7px;background:linear-gradient(90deg,#5a1408f7,#22090ef7 72%,#22090ee8);box-shadow:0 0 0 1px #000,0 6px 16px #000a;overflow:hidden;animation:boss-strip 2.5s ease-out forwards}
.boss-card::before,.boss-card::after{content:'';position:absolute;left:0;right:0;height:4px;background:repeating-linear-gradient(115deg,#ffb02e 0 10px,#1a0b10 10px 20px)}.boss-card::before{top:0}.boss-card::after{bottom:0}
.boss-card img{width:58px;height:58px}.boss-card small{font-size:12px;letter-spacing:1.5px;color:#ffb02e;font-weight:850}.boss-card b{font-size:21px;font-weight:900;text-shadow:0 2px 0 #000}
.boss-card.down{background:linear-gradient(90deg,#6b4a08f7,#231808f7 72%,#231808e8)}.boss-card.down small{color:#ffe08a}.boss-card.down::before,.boss-card.down::after{background:linear-gradient(90deg,#ffe08a,#ffb02e,#ffe08a)}
@keyframes boss-strip{0%{transform:translateX(-104%)}11%{transform:translateX(0)}14%{transform:translateX(-1.5%)}17%{transform:translateX(0)}88%{transform:translateX(0);opacity:1}100%{transform:translateX(0);opacity:0}}
@media(prefers-reduced-motion:reduce){.boss-card{animation:boss-strip-still 2.5s linear forwards}@keyframes boss-strip-still{0%,90%{opacity:1}100%{opacity:0}}}
.battlefield:has(.boss-card:not([hidden])) .wave-banner{opacity:0}
.battlefield.boss-alert::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;box-shadow:inset 0 0 50px 12px #ff2a14;animation:boss-alert 1.5s ease-in-out both}
@keyframes boss-alert{0%,100%{opacity:0}16%,60%{opacity:.85}38%{opacity:.35}}
/* C-12: 긴급 명령은 오른쪽 벽을 따라 */
.skill-bar{flex-direction:column;right:5px;bottom:7px;gap:6px}
/* C-13 */
.story-coreby{width:min(62vw,270px);height:auto;margin-bottom:-6px;object-fit:contain}
/* C-19 */
.starter-card{margin-top:8px}.starter-card .wide-button{white-space:normal;word-break:keep-all;line-height:1.25}
/* C-21 */
.shop-preview{width:50px;height:50px;flex-shrink:0;border-radius:9px;background:#0b1a26;border:1px solid #4d6a7a}
/* C-27 */
.codex-unknown{position:relative;overflow:hidden}.codex-unknown canvas{position:absolute;inset:6%;width:88%;height:88%}.codex-unknown i{position:relative;font-style:normal;color:#ffffffa8;text-shadow:0 2px 3px #000}
/* C-28 */
.sector-panel .dialog-heading{background:#0b1a26}
/* C-30 */
.hud .wordmark>span{display:none}.hud .wordmark strong{font-size:clamp(14px,3.8vw,18px)}
.speed-button{padding-inline:9px;color:#ffe9a8;background:linear-gradient(#3b5c6f,#223a49);border:1.5px solid #e9b949;border-radius:7px;box-shadow:0 2px 0 #06101a,inset 0 1px #ffffff33;font-weight:900}
.speed-button::before{content:'';position:relative;display:inline-block;width:0;height:0;margin-right:4px;border-left:7px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;vertical-align:-1px}
.speed-button[data-on="1"]{border-color:#fff0b0;box-shadow:0 0 10px #ffd45a88,0 2px 0 #06101a}
/* C-06, C-07: 시작 화면 */
.title-screen{background:#070f16}#title-version{display:none}.qa-mode #title-version{display:flex}.title-content .title-copy{display:none}
.title-art{height:auto;opacity:.86;object-position:center top;-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 68%,transparent 94%);mask-image:linear-gradient(transparent,#000 12%,#000 68%,transparent 94%)}
.title-content h1{text-shadow:0 3px 0 #000,0 0 18px #000c}.title-screen .title-subtitle{font-weight:800;text-shadow:0 0 6px #000,0 2px 4px #000}
.title-content>.loading{position:absolute;left:18px;right:18px;bottom:calc(10px + var(--safe-b));margin:0;padding-bottom:10px}
.title-content>.loading::after{content:'';position:absolute;left:0;right:0;bottom:0;height:5px;border-radius:3px;background:linear-gradient(90deg,#57e3e8 var(--progress,0%),#1b2f3b var(--progress,0%))}
.title-content .title-lab{position:relative;padding-left:58px;overflow:visible}
.title-stage{position:absolute;left:4px;bottom:1px;width:52px;height:60px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 2px 2px #000a);pointer-events:none}
/* 연구소 머리와 코어비 성장 */
#research-screen .research-panel{--edge:17px;padding:0 var(--edge) 12px}
#research-screen .research-panel>.dialog-heading{position:relative;margin:0 calc(var(--edge)*-1);padding:9px 8px 8px 14px;min-height:clamp(70px,13dvh,112px);align-items:flex-start;background:linear-gradient(90deg,#08141ef2 0,#08141ea8 42%,#08141e00 68%),url(assets/ui/banner_lab.webp) right 66%/cover no-repeat}
.research-panel>.dialog-heading .eyebrow{display:none}.research-panel>.dialog-heading h2{margin:0;font-size:22px;text-shadow:0 2px 0 #000}
.research-panel .research-chips{margin:4px 0 0;font-size:14px;font-weight:800;text-shadow:0 1px 2px #000}
.research-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:10px;min-height:92px;margin-top:-30px;padding:0 4px 6px 0;position:relative;z-index:1}
.stage-now{width:112px;height:112px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 3px #000b)}
.stage-info{display:grid;gap:3px;padding-bottom:2px;min-width:0}.stage-info b{font-size:16px;font-weight:900;color:#ffe08a;text-shadow:0 1px 2px #000}.stage-info small{font-size:12px;line-height:1.3;color:#c9dbe3;word-break:keep-all}
.stage-bar{display:block;height:9px;border-radius:5px;background:#0a151e;border:1px solid #4d6a7a;overflow:hidden}.stage-bar i{display:block;height:100%;background:linear-gradient(90deg,#57e3e8,#ffd76a);transition:width .4s ease-out}
.stage-next{width:50px;height:50px;object-fit:contain;object-position:bottom;filter:brightness(0) drop-shadow(0 0 3px #57e3e8);opacity:.85}
@media(max-height:680px){.research-stage{min-height:64px;margin-top:-18px}.stage-now{width:72px;height:72px}.stage-next{width:38px;height:38px}#research-screen .research-panel>.dialog-heading{min-height:58px}}
#research-screen .research-row{grid-template-columns:40px minmax(0,1fr) auto}.research-icon{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
/* 목표, 규칙, 트로피 */
.goal-row{grid-template-columns:44px minmax(0,1fr) auto}.goal-icon{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
.daily-rule{display:block}.rule-icon{float:left;width:38px;height:38px;margin:0 7px 2px 0;object-fit:contain}
.twist-row{display:flex;justify-content:space-around;gap:4px;margin:0 0 8px}.twist-row span{display:grid;justify-items:center;gap:1px;font-size:11.5px;font-weight:800;color:#d5e4ea}.twist-row img{width:36px;height:36px;object-fit:contain}
.trophy-shelf{list-style:none;margin:0;padding:8px 6px 4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-radius:9px;background:linear-gradient(#1c3442,#0e1d28);border:1px solid #4d6a7a;flex-shrink:0}
.trophy-shelf li{display:grid;justify-items:center;align-content:end;gap:1px;min-width:0;padding-bottom:4px;border-bottom:4px solid #7a5522;box-shadow:0 3px 0 #2a1b08}
.trophy-shelf img{width:100%;max-width:74px;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}.trophy-shelf .locked img{filter:brightness(0) opacity(.5)}
.trophy-shelf small{font-size:10.5px;line-height:1.15;font-weight:800;color:#ffe08a;text-align:center;word-break:keep-all;min-height:2.3em;display:grid;place-items:center}.trophy-shelf .locked small{color:#64808f}
/* 결과 화면의 별 */
.result-stars{display:flex;justify-content:center;gap:7px;margin:-6px 0 8px}
.result-stars i{width:40px;height:40px;background:#223546;clip-path:polygon(50% 0,62% 35%,98% 36%,69% 58%,80% 93%,50% 72%,20% 93%,31% 58%,2% 36%,38% 35%)}
.result-stars i.on{background:linear-gradient(#fff6c0,#ffc22e 58%,#d98a10);animation:star-land .42s cubic-bezier(.2,1.7,.4,1) var(--at,0ms) both}
@keyframes star-land{0%{transform:scale(2.8) rotate(-35deg);opacity:0}60%{opacity:1}100%{transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.result-stars i.on{animation:none}}
@media(max-height:680px){.result-stars{margin:-2px 0 4px}.result-stars i{width:28px;height:28px}}
/* 돈과 톱니 숫자가 커질 때 */
.currency{transform-origin:center}.currency.gain-active svg{animation:coin-tilt .3s ease-out}@keyframes coin-tilt{0%{transform:scale(1)}40%{transform:scale(1.28) rotate(-12deg)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.currency.gain-active svg{animation:none}}
#title-portrait{width:auto;height:clamp(84px,calc(100dvh - 540px),236px);margin:2px 0}
.title-art.narrow{-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 68%,transparent 94%),linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 12%,#000 68%,transparent 94%),linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
#research-screen .research-panel>.dialog-heading{background-position:0 0,right 42%}
/* 도감: 못 만난 적의 실루엣이 보이게 */
.codex-card.unknown{opacity:.9}.codex-unknown{background:linear-gradient(#2c4a5b,#1b3342);border-style:solid;border-color:#4d6a7a}
/* C-29: 특별 작전 카드의 글자가 그림에 묻히지 않게 */
.sector-card[data-sector="10"]::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#07111bf5 0,#07111be0 50%,#07111b00 76%)}
.sector-card[data-sector="10"] small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:66%}
/* 미션 그림 */
.meta-row.with-icon{grid-template-columns:40px minmax(0,1fr) auto}.meta-row.with-icon .goal-icon{width:40px;height:40px}
.game-shell:not(.work-open) .battlefield:has(.wave-banner.wave-clear:not([hidden])) .toast{top:92px}
.skill-bar.on-left{right:auto;left:5px}
.title-content:has(>.loading:not([hidden])) .title-links{visibility:hidden}
@media(max-height:620px){.skill-button{width:36px;height:36px}.skill-bar{gap:4px}}
@media(max-height:680px){.research-stage{margin-top:-8px}}
