/* V10: replay identity, intelligence, achievements, spyglass help and saved cockpit arrangement */
.replay-notice{grid-template-columns:auto auto auto auto;gap:9px}
.replay-speed-controls{display:flex;gap:2px}
.replay-speed-controls button{min-width:30px;padding:5px 6px;border-color:#79562b;background:#21170d;color:#c9b990}
.replay-speed-controls button.active{border-color:#5cff9a;background:#123b2d;color:#baffd8;box-shadow:0 0 10px #5cff9a55}
body.replay-mode.replay-flash .replay-notice #replayNoticeLabel{animation:replayFlash .72s steps(2,end) infinite}

.trophy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:4px 0 7px}
.trophy-token{position:relative;display:grid;place-items:center;aspect-ratio:1;border:1px solid #31483d;background:radial-gradient(circle,#27362f,#080d0b);color:#40564a;font:900 16px/1 Consolas,monospace;clip-path:polygon(20% 0,80% 0,100% 20%,100% 80%,80% 100%,20% 100%,0 80%,0 20%)}
.trophy-token.unlocked{border-color:#ffc84d;background:radial-gradient(circle,#81651b,#261c08 72%);color:#ffe5a3;text-shadow:0 0 8px #ffbd2f;box-shadow:0 0 10px #ffad1433}
.trophy-token span{font-size:9px}.trophy-details{width:100%;padding:6px}
.trophy-cabinet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;text-align:left}
.trophy-card{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center;padding:11px;border:1px solid #33483e;background:#09120f;opacity:.48}
.trophy-card.unlocked{opacity:1;border-color:#9a7524;background:linear-gradient(135deg,#35290d,#0b1410)}
.trophy-card i{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#17231d;color:#667a70;font:normal 22px Consolas}
.trophy-card.unlocked i{background:radial-gradient(circle,#ffcf5a,#805612);color:#211503;box-shadow:0 0 15px #ffad1455}
.trophy-card b,.trophy-card small{display:block}.trophy-card b{color:#f0e6c6;font:900 10px Consolas}.trophy-card small{margin-top:4px;color:#82978d;font:7px/1.45 Consolas}

.intel-module>small{display:block;margin-top:6px;color:#5d766a;font:6px Consolas}
.intel-feed{display:grid;gap:5px}
.intel-item{display:grid;grid-template-columns:48px 1fr;gap:5px;padding:5px;border-left:2px solid #4ba985;background:#07110e}
.intel-item.hot{border-color:#ff715d;background:#1b0b09}.intel-item.watch{border-color:#ffbe3b;background:#191305}
.intel-item b,.intel-item span,.intel-item small{display:block}.intel-item b{color:#73dcb6;font:800 7px Consolas}.intel-item.hot b{color:#ff8b79}.intel-item.watch b{color:#ffcf66}.intel-item span{color:#c3d2c9;font:7px/1.25 Consolas}.intel-item small{margin-top:2px;color:#6e877b;font:6px Consolas}

.layout-setting{margin-top:13px;padding:10px;border:1px dashed #bb9138;background:#1a1407}.layout-setting b,.layout-setting small{display:block}.layout-setting b{color:#ffcf5a;font:900 9px Consolas}.layout-setting small{margin-top:5px;color:#a99d7c;font:7px/1.45 Consolas}
body.layout-edit [data-module].module-disabled{display:block!important;opacity:.36}
body.layout-edit .module{outline:1px dashed #ffcf5a;cursor:grab}
body.layout-edit .module h2{cursor:grab;background:#2e250d;color:#ffe099;padding:5px}
body.layout-edit .module.dragging{opacity:.28;outline:2px solid #5cff9a}
body.layout-edit .column,body.layout-edit .lower-console{outline:1px dashed #5cff9a55}
body.layout-edit #settingsOpen{position:relative;border-color:#5cff9a;color:#d6ffea;box-shadow:0 0 15px #5cff9a55}
body.layout-edit #settingsOpen:after{content:"SAVE";position:absolute;right:-4px;top:-7px;padding:2px 4px;background:#5cff9a;color:#05110c;font:900 6px Consolas}

.spyglass-help{position:fixed;z-index:90;display:none;width:min(430px,calc(100vw - 24px));padding:19px 22px 18px;border:2px solid #8ee6c5;border-radius:50% 12px 12px 12px;background:radial-gradient(circle at 18% 16%,#244e40f2,#07130ff7 68%);color:#e5fff4;box-shadow:0 0 0 5px #08100d,0 0 0 7px #4b8d76,0 15px 45px #000,inset 0 0 30px #5cff9a22;filter:drop-shadow(13px 13px 0 #030705)}
.spyglass-help.show{display:block}.spyglass-help:after{content:"";position:absolute;width:63px;height:14px;right:-48px;bottom:-21px;transform:rotate(42deg);border:3px solid #47665a;background:#111b17;box-shadow:0 4px 7px #000}
.spyglass-help>button{position:absolute;right:9px;top:7px;width:26px;height:26px;border:1px solid #75cbae;background:#0c211a;color:#dfffee;font-size:17px;cursor:pointer}
.spyglass-help>small,.spyglass-help>b{display:block;font-family:Consolas,monospace}.spyglass-help>small{color:#69c6a5;font-size:7px;letter-spacing:.14em}.spyglass-help>b{margin:8px 28px 5px 0;color:#ffcf5a;font-size:14px}.spyglass-help p{margin:0;color:#c7ded4;font-size:12px;line-height:1.45}.spyglass-help pre{max-height:126px;overflow:auto;white-space:pre-wrap;margin:9px 0 0;padding:8px;border:1px solid #31594a;background:#030906;color:#87ffc8;font:10px/1.45 Consolas,monospace}

/* Fixed equipment slots: hiding one system leaves room instead of inflating its neighbours. */
:is(html:fullscreen,html.fullscreen-fit) .left-column,:is(html:fullscreen,html.fullscreen-fit) .right-column{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;overflow:hidden}
:is(html:fullscreen,html.fullscreen-fit) .left-column>.module,:is(html:fullscreen,html.fullscreen-fit) .right-column>.module{flex-grow:0!important;flex-shrink:0!important}
:is(html:fullscreen,html.fullscreen-fit) .resource-module{flex-basis:clamp(98px,13vh,140px)}
:is(html:fullscreen,html.fullscreen-fit) .drone-module{flex-basis:clamp(212px,28vh,292px)}
:is(html:fullscreen,html.fullscreen-fit) .payload-module{flex-basis:clamp(98px,13vh,138px)}
:is(html:fullscreen,html.fullscreen-fit) .trophy-module{flex-basis:clamp(88px,11vh,120px)}
:is(html:fullscreen,html.fullscreen-fit) .front-view-module,:is(html:fullscreen,html.fullscreen-fit) .radar-module{flex-basis:clamp(76px,10.5vh,112px)}
:is(html:fullscreen,html.fullscreen-fit) .sensor-module{flex-basis:clamp(90px,12vh,128px)}
:is(html:fullscreen,html.fullscreen-fit) .matrix-module{flex-basis:clamp(100px,13vh,138px)}
:is(html:fullscreen,html.fullscreen-fit) .intel-module{flex-basis:clamp(92px,12vh,130px)}
:is(html:fullscreen,html.fullscreen-fit) body.lower-count-1 .lower-console,:is(html:fullscreen,html.fullscreen-fit) body.lower-count-2 .lower-console,:is(html:fullscreen,html.fullscreen-fit) .lower-console{grid-template-columns:1fr 1.3fr 1fr}
:is(html:fullscreen,html.fullscreen-fit) .trophy-token{font-size:11px}.trophy-token span{font-size:7px}
:is(html:fullscreen,html.fullscreen-fit) .trophy-details{padding:3px;font-size:6px}
:is(html:fullscreen,html.fullscreen-fit) .intel-feed{gap:2px}.intel-item{padding:3px}.intel-item:nth-child(n+4){display:none}
:is(html:fullscreen,html.fullscreen-fit) .intel-item span{font-size:6px}.intel-item small{display:none}

body.windowed-loadout.lower-count-1 .lower-console,body.windowed-loadout.lower-count-2 .lower-console{grid-template-columns:1fr 1.3fr 1fr}
@media(max-width:760px){.replay-notice{grid-template-columns:auto auto auto;max-width:95vw}.replay-notice>span{display:none}.trophy-cabinet-grid{grid-template-columns:1fr}.spyglass-help{left:12px!important;right:12px!important;top:auto!important;bottom:24px}.replay-speed-controls button{min-width:27px;padding:4px}}
