#social-overlay{position:fixed;inset:0;z-index:80;overflow:auto;padding:32px 16px;background:#092534dd;backdrop-filter:blur(8px);pointer-events:auto;color:#e0ece5;font:0.875rem/1.55 system-ui,sans-serif}
#social-overlay[hidden]{display:none}.social-panel{max-width:850px;margin:3vh auto;background:#143447;border:1px solid #5a929c;border-top:3px solid #9adfde;padding:28px;box-shadow:0 20px 80px #0005}.social-panel h2{font-size:1.875rem;margin:12px 0}.social-panel h3{font-size:1.0625rem;margin:24px 0 12px}.social-panel>p{color:#a8c3c5}.social-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.social-heading .eyebrow{font-size:0.625rem}.social-panel button{cursor:pointer;border:1px solid #5a8792;background:#20495a;color:#e1ece5;padding:10px 15px;font:inherit}.social-panel button:hover{background:#34707a}.social-panel button:disabled{opacity:.5;cursor:wait}.social-panel button.primary{width:100%;background:#9adfde;color:#143447;font-weight:700}.social-panel form{display:grid;gap:14px;margin:18px 0}.social-panel label{display:grid;gap:6px;font-size:0.75rem;color:#b9d3d2}.social-panel input,.social-panel select{box-sizing:border-box;width:100%;min-width:0;border:1px solid #527985;background:#0d2839;color:#e8eee4;padding:10px 12px;border-radius:0;font:0.9375rem system-ui}.social-panel input:focus,.social-panel select:focus{outline:2px solid #9adfde;outline-offset:2px}.social-panel .social-check{display:flex;align-items:center;gap:10px}.social-check input{width:auto}.social-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.social-note{font-size:0.75rem;color:#b5c9c8}.social-panel #social-message{padding:12px 15px;background:#30575d;color:#f1dfb6;border-left:3px solid #dfc58c;margin-bottom:12px}.ship-card{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #3c6776;padding:12px;margin:8px 0}.ship-card b{word-break:break-word}.ship-card small{display:block;color:#acc5c5;font-size:0.75rem}.server-search{grid-template-columns:1fr auto;align-items:end}.character-editor{display:grid;grid-template-columns:230px 1fr;gap:20px;background:#0f2b3c;padding:16px;border:1px solid #3d6973}.character-preview{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 60%,#4b7272,#173746 70%)}.character-preview canvas{display:block;position:static!important;width:220px!important;height:270px!important}.character-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-samples{display:flex;gap:5px}.color-samples i{display:block;width:15px;height:8px;border:1px solid #b5d0ca55}.cosmetic-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cosmetic-card{display:flex;gap:14px;border:1px solid #436a77;padding:15px}.cosmetic-card h4{margin:0;color:#e7d5ac;font-size:1rem}.cosmetic-card p{font-size:0.75rem;color:#b2caca}.cosmetic-swatch{background:var(--cloth);border:4px solid #dfc89e;color:#efddbb;font-size:3rem;flex-shrink:0;width:62px;height:80px;display:flex;align-items:center;justify-content:center}.account-settings{border-top:1px solid #4c7480;margin-top:16px;padding-top:10px}.account-settings h3{font-size:0.9375rem;color:#9adfde}#crew-hud{position:fixed;right:20px;top:90px;z-index:8;max-width:310px;background:#102d40dc;border:1px solid #577c83;padding:10px 14px;color:#daebe3;pointer-events:none;font:0.75rem system-ui}#crew-hud>b{display:block;overflow-wrap:anywhere;font-weight:500;color:#a6ddda}#crew-hud>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}#crew-hud span{display:flex;align-items:center;gap:6px}#crew-hud i{width:12px;height:14px;border:4px solid;border-radius:45% 45% 25% 25%}body[data-mode="welcome"] #crew-hud{display:none}
@media(max-width:650px){#social-overlay{padding:12px 8px}.social-panel{margin:0;padding:17px}.social-panel h2{font-size:1.5625rem}.character-editor{grid-template-columns:1fr;padding:12px}.character-preview canvas{width:180px!important;height:220px!important}.character-fields{gap:10px}.cosmetic-grid{grid-template-columns:1fr}.social-heading .eyebrow{font-size:0.5rem}.social-heading button{padding:7px}.ship-card{align-items:flex-start}.ship-card button{flex-shrink:0}.server-search{grid-template-columns:1fr}#crew-hud{top:82px;right:10px;max-width:180px;font-size:0.625rem;padding:6px 8px}.social-panel button{font-size:0.8125rem}}
.cosmetic-swatch svg{width:60px;height:72px}.cosmetic-card button+button{margin-left:6px}

/* Keep objectives and server details in one flowing column, with objectives first. */
#voyage-hud{--voyage-hud-top:94px;position:fixed;top:var(--voyage-hud-top);right:18px;width:286px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - var(--voyage-hud-top) - 230px);overflow-y:auto;overflow-x:hidden;pointer-events:auto;scrollbar-width:thin;scrollbar-color:var(--line) var(--navy)}
#voyage-hud #quest-tracker,#voyage-hud #crew-hud{position:static;flex:none;width:100%;min-width:0;max-width:none;max-height:none;margin:0;overflow:visible}
#voyage-hud #crew-hud span{min-width:0;overflow-wrap:anywhere}
#voyage-hud #crew-hud i{flex-shrink:0}
body:not([data-mode="playing"]) #voyage-hud{display:none}
@media(max-width:1100px){#voyage-hud{width:258px}}
@media(max-width:850px){#voyage-hud{width:236px}}
@media(max-height:650px){#voyage-hud{--voyage-hud-top:89px}}
@media(max-width:650px){#voyage-hud{--voyage-hud-top:72px;right:10px;width:calc(100vw - 206px);min-width:140px;gap:8px}}
