.ark-dock-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #ad788c;border-radius:18px;padding:22px;background:#0b101a;color:#f7ece4}.ark-dock-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ark-dock-dialog h2{font-size:23px}.ark-dock-dialog header>button{min-width:44px;min-height:44px;font-size:23px}.ark-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.ark-project{border:1px solid #51485e;background:linear-gradient(150deg,#182131,#0b0e17);padding:16px;border-radius:14px;min-width:0}.ark-project>small{font-size:10px;color:#bca9bc}.ark-project h3{font-size:19px}.ark-project p{font-size:13px;line-height:1.65}.ark-message{font-size:13px;color:#f2c39e;min-height:20px}.ark-pay{padding:10px;border:1px solid #a7865e;border-radius:9px;background:#251d2055}.ark-materials{display:grid;gap:8px}.ark-materials>div{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:space-between;font-size:12px;padding:8px;background:#070c14;border-radius:8px}.ark-materials button{font-size:12px;min-height:40px;padding:7px 9px}.ark-meter{height:8px;background:#04060c;border-radius:10px;overflow:hidden}.ark-meter i{display:block;height:100%;background:linear-gradient(90deg,#5bcbbd,#d9d49e)}
.ark-art{position:relative;height:150px;isolation:isolate}.ark-art>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 8px #52aac433)}.ark-modules{position:absolute;left:29%;right:27%;bottom:23%;display:flex;gap:5px;transform:rotate(-9deg)}.ark-modules i{flex:1;height:11px;border:1px dashed #8fb6c266;background:#0c1728bb}.ark-modules .built{border-style:solid;border-color:#8fe9d8;background:linear-gradient(#79b7b4,#254a56);box-shadow:0 0 7px #6bf6d577}.ark-scorch{display:none;position:absolute;left:47%;top:35%;width:21%;height:26%;border-radius:50%;background:radial-gradient(ellipse,#08090cee 30%,#f2603077 45%,transparent 70%);filter:drop-shadow(0 -9px 8px #222)}.ark-damaged>img,.ark-battle-scars>img{filter:grayscale(.5) brightness(.65) drop-shadow(0 0 8px #ea5a2455)!important}.ark-damaged .ark-scorch{display:block;animation:ark-smoke 5s ease-in-out infinite}.ark-repair-light{position:absolute;left:30%;top:48%;width:50%;height:2px;opacity:.4;background:#8feaff;box-shadow:0 0 8px #63f5ff;transform:rotate(-9deg);animation:ark-weld 4s ease-in-out infinite}.ark-art:not(.ark-damaged) .ark-repair-light{opacity:calc(.5 - var(--work)*.5)}
.ark-world-node{position:absolute;left:23%;top:27%;transform:translate(-50%,-50%);z-index:66;width:150px;padding:0!important;border:0!important;background:none!important;color:#f5e6d5;pointer-events:auto}.ark-world-node .ark-art{height:100px}.ark-world-node>b,.ark-world-node>small{display:block;padding:3px 6px;background:#07101ce8;border-radius:5px;font-size:11px}.ark-world-node>small{font-size:10px;color:#b5e7e5}.planet-map:has(.space-action-sector) .ark-world-node{display:none}
.rare-wreck-marker{position:absolute;left:73%;top:70%;transform:translate(-50%,-50%);z-index:72;width:145px;border:0!important;background:none!important;padding:0!important;pointer-events:auto}.rare-wreck-marker img{width:100px;height:65px;object-fit:contain;rotate:24deg;filter:grayscale(.9) brightness(.65) drop-shadow(0 0 5px #e96b38)}.rare-wreck-marker>b,.rare-wreck-marker>small{display:block;background:#100b15e8;border:1px solid #8e6569;border-radius:6px;padding:3px;color:#f0d5bc;font-size:11px}.rare-wreck-marker>small{font-size:9px}.rare-wreck-marker i{position:absolute;left:65px;top:25px;width:6px;height:6px;border-radius:50%;background:#ff805c;box-shadow:0 0 8px #f94629;animation:ark-weld 3s infinite}.discovery-wreck-art{width:160px;height:85px;object-fit:contain;rotate:12deg;float:right;filter:grayscale(.8) drop-shadow(0 0 7px #a65345)}
@keyframes ark-smoke{50%{translate:0 -8px;opacity:.5;scale:1.15}}@keyframes ark-weld{50%{opacity:.15}}
@media(max-width:600px){.ark-dock-dialog{padding:14px}.ark-dock-dialog h2{font-size:20px}.ark-world-node{width:105px;left:23%;top:25%}.ark-world-node .ark-art{height:76px}.rare-wreck-marker{width:110px;top:74%}.rare-wreck-marker img{width:78px;height:52px}.discovery-wreck-art{width:110px;height:70px}}
body[data-motion="off"] .ark-art *,body[data-motion="off"] .rare-wreck-marker *{animation:none!important}@media(prefers-reduced-motion:reduce){.ark-art *,.rare-wreck-marker *{animation:none!important}}
.ark-history{grid-column:1/-1;margin:0;font-size:12px;color:#bbdbd8}.ark-battle-scars::after{content:'';position:absolute;left:42%;top:30%;width:24%;height:28%;border-radius:50%;background:radial-gradient(ellipse,#08090c 28%,#ff713b99 40%,transparent 70%);box-shadow:0 -10px 12px #15141a88;opacity:calc(1 - var(--repair-work,0));animation:ark-smoke 5s ease-in-out infinite;pointer-events:none}body[data-motion="off"] .ark-battle-scars::after{animation:none}@media(prefers-reduced-motion:reduce){.ark-battle-scars::after{animation:none}}

.mothership-art svg{width:100%;max-height:240px;filter:drop-shadow(0 0 12px #5dbeff44)}.ms-part{opacity:.12;stroke-dasharray:5 4}.mothership-art[data-stage="1"] .ms-1,.mothership-art[data-stage="2"] :is(.ms-1,.ms-2),.mothership-art[data-stage="3"] :is(.ms-1,.ms-2,.ms-3),.mothership-art[data-stage="4"] .ms-part{opacity:1;stroke-dasharray:none}
.ark-watch{grid-column:1/-1}.ark-watch .ark-art{height:clamp(160px,28vw,260px)}.ark-watch .ark-modules,.ark-watch .ark-repair-light{display:none}.ark-watch-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ark-watch-stats>div{padding:12px;background:#0b2638;border:1px solid #5b9bae55;border-radius:9px;font-size:12px}.ark-watch-stats b{display:block;margin-top:6px;color:#d2f7ff;font-size:16px}.ark-wave-list{display:grid;gap:8px;margin:16px 0}.ark-wave-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #547b8c55;border-radius:8px;font-size:13px}.ark-wave-list span{color:#b5dedb;text-align:right}.ark-watch>.primary{width:100%;min-height:48px;margin-top:12px}.ark-legacy{grid-column:1/-1;border-top:1px solid #5b7d8c55;padding-top:14px}.ark-legacy>summary{cursor:pointer;padding:10px}.ark-watch-phase{color:#a6e7d5}@media(max-width:420px){.ark-watch-stats{gap:4px}.ark-watch-stats>div{padding:8px}.ark-watch-stats b{font-size:13px}.ark-wave-list>div{font-size:12px}}
.ark-dock-dialog>header{position:sticky;top:0;z-index:3;background:#0b101a;padding-bottom:8px}

/* A readable, slowly drifting derelict, independent of convoy flight and combat layout.
   Animate compositor transforms only; performance.css pauses it offscreen/when hidden. */
body #page .planet-map button.rare-wreck-marker{
 left:29%;top:65%;width:24%!important;max-width:440px;min-width:0!important;min-height:0!important;
 height:auto!important;display:flex!important;flex-direction:column;align-items:center;gap:2px;
 padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
 overflow:visible!important;opacity:1!important;z-index:5;
 animation:rare-wreck-drift 34s ease-in-out infinite;
}
body #page .planet-map button.rare-wreck-marker img{
 display:block;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;
 aspect-ratio:2;object-fit:contain;rotate:0deg!important;filter:none!important;pointer-events:none;
 transform-origin:50% 50%;animation:rare-wreck-tumble 43s ease-in-out infinite;
}
body #page .planet-map button.rare-wreck-marker>b,
body #page .planet-map button.rare-wreck-marker>small{
 display:block!important;position:static!important;transform:none!important;max-width:100%;box-sizing:border-box;
 color:#f5ddbd!important;background:#100e19ed!important;border:1px solid #967a59!important;
 border-radius:5px;padding:3px 6px!important;font:600 clamp(9px,.75vw,12px)/1.25 system-ui!important;
 text-align:center;white-space:nowrap;
}
body #page .planet-map button.rare-wreck-marker>small{font-weight:400!important;font-size:clamp(8px,.65vw,10px)!important}
body #page .planet-map button.rare-wreck-marker:focus-visible{outline:2px solid #a4e8ff!important;outline-offset:5px}
@keyframes rare-wreck-drift{
 0%,100%{transform:translate(-54%,-53%)}
 35%{transform:translate(-42%,-60%)}
 70%{transform:translate(-47%,-43%)}
}
@keyframes rare-wreck-tumble{
 0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)}
}
@media(orientation:portrait){
 body #page .planet-map button.rare-wreck-marker{left:27%;top:61%;width:35%!important;max-width:190px}
 body #page .planet-map button.rare-wreck-marker>b{font-size:10px!important}
 body #page .planet-map button.rare-wreck-marker>small{font-size:8px!important;white-space:normal}
}
body[data-motion="off"] #page .planet-map button.rare-wreck-marker,
body[data-motion="off"] #page .planet-map button.rare-wreck-marker img{animation:none!important}
@media(prefers-reduced-motion:reduce){
 body #page .planet-map button.rare-wreck-marker,
 body #page .planet-map button.rare-wreck-marker img{animation:none!important}
}
