/* Ironwake harbour. Salt-white type, blue water, brass details. */
body.harbour { --harbour-ink:#071c2d;--harbour-blue:#14374c;--harbour-line:#335365;--harbour-white:#f1f1e7;--harbour-muted:#a6bdc7;--harbour-teal:#71dec5;--harbour-brass:#e7bb72;--abyss:#071c2d;--paper:#f1f1e7;background:var(--harbour-ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.harbour #shell { max-width:1440px; }
.harbour #sea-backdrop { background:radial-gradient(ellipse at 20% 0,#204b61 0,transparent 55%),#071c2d; }
.harbour #sea-backdrop::after { display:none; }
.harbour #vignette { box-shadow:none; }
.harbour button,.harbour a { -webkit-tap-highlight-color:transparent; }
.harbour button:focus-visible,.harbour a:focus-visible,.harbour input:focus-visible,.harbour summary:focus-visible { outline:2px solid var(--harbour-brass);outline-offset:4px; }
.harbour .cta-btn { min-height:48px;border:1px solid #71dec5;background:#71dec5;color:#092b32;border-radius:9px;box-shadow:none;font:750 14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;text-transform:none;padding:12px 20px;cursor:pointer; }
.harbour .cta-btn:hover { background:#a0ecd8;box-shadow:0 5px 18px #0002; }
.harbour .foot-btn { text-transform:none;letter-spacing:.01em;font-weight:600;line-height:1.4; }
.harbour .overline { display:block;margin:0 0 7px;font:600 10px/1.2 ui-monospace,monospace;letter-spacing:.14em;color:#e7bb72; }
.harbour .section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.harbour h2 { font-weight:700;letter-spacing:-.025em; }
.harbour .section-heading h2 { margin:0;font-size:25px;line-height:1.15; }
.harbour .section-copy { font-size:13px;line-height:1.6;color:#a6bdc7;margin:12px 0 18px; }
#screen-menu { display:block;overflow-y:auto;padding:max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
#screen-menu::after { display:none; }
.harbour-mast { display:flex;align-items:center;gap:14px;max-width:1220px;margin:0 auto 20px;min-height:38px; }
.arcade-home { color:#f1f1e7;text-decoration:none;font:900 22px/1 sans-serif;letter-spacing:-.08em; }
.arcade-home span { color:#71dec5; }
.harbour-mast>span { color:#aec3cc;font:600 9px ui-monospace,monospace;letter-spacing:.13em; }
.harbour-mast>button { margin-left:auto;border:1px solid #476070;border-radius:50px;min-height:34px;font-size:9px;padding:8px 11px; }
.harbour-layout { display:grid;grid-template-columns:1fr;gap:24px;max-width:1220px;margin:auto; }
.harbour-intro { min-width:0; }
.harbour-hero { position:relative;height:235px;overflow:hidden;border-radius:13px;isolation:isolate;background:#183e50; }
.harbour-hero>img { width:100%;height:100%;display:block;object-fit:cover;object-position:center 47%; }
.hero-shade { position:absolute;inset:0;background:linear-gradient(90deg,#05202dda,#092e3910 100%),linear-gradient(0deg,#0a223bd9,transparent 80%); }
.hero-copy { position:absolute;left:22px;bottom:27px; }
.hero-copy>p { font:500 14px/1.4 -apple-system,sans-serif;margin:0 0 2px;color:#e2eee9; }
.hero-copy h1 { font:500 clamp(52px,12vw,96px)/1 Impact,'Arial Narrow',sans-serif;letter-spacing:.01em;margin:0 0 5px;color:#fffcef; }
.hero-copy h1 span { color:#a4ebd9; }
.hero-copy>span { font-size:13px;color:#dbebe9; }
.hero-bearing { position:absolute;right:15px;top:15px;letter-spacing:.08em;font:9px ui-monospace,monospace;color:#fff4d2; }
.commander-card { display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#173649;border:1px solid #395668;border-radius:10px;padding:15px;margin-top:12px;cursor:pointer;transition:background .18s; }
.commander-card:hover { background:#214658; }
.commander-flag { display:grid;place-items:center;width:50px;height:50px;font-size:30px;flex:none;border-radius:10px;background:#0b2334; }
.commander-details { display:flex;flex-direction:column;min-width:0;gap:4px; }
.commander-details>small { color:#a6bdc7;font-size:8px;letter-spacing:.12em; }
.commander-details>strong { color:#f2f2e7;font-size:17px;font-weight:750; }
.commander-details>span { font-size:10px;line-height:1.5;color:#bfd0d5; }
.commander-edit { color:#98e4cf;font-size:10px;white-space:nowrap;margin-left:auto; }
#screen-menu .rank-strip { background:none;border:0;border-bottom:1px solid #355264;border-radius:0;max-width:none;width:100%;margin:12px 0 0;padding:8px 0 12px;min-height:48px;gap:12px; }
#screen-menu .rank-badge { width:34px;height:34px;font-size:15px;background:#304856;border-color:#5b6970;color:#e7bb72; }
#screen-menu .rank-copy { flex:1; }
#screen-menu .rank-copy strong { font-size:11px;color:#e7bb72;letter-spacing:.1em; }
#screen-menu .rank-copy span { font-size:9px;letter-spacing:.015em;line-height:1.5; }
#screen-menu .rank-strip button { font-size:10px;padding:8px;min-height:34px; }
.resume-stack { display:flex;flex-direction:column;gap:8px;margin-top:10px; }
.resume-stack:has(>button[hidden]):not(:has(>button:not([hidden]))) { display:none; }
#screen-menu .resume-button { min-height:52px;border:1px solid #71dec5;background:#143f45;padding:10px 14px;border-radius:9px; }
#screen-menu .resume-button strong { font-size:15px; }
#screen-menu .resume-button span { font-size:11px; }
.harbour-live { min-width:0; }
.live-count { flex:none;font:600 9px/1 ui-monospace,monospace;display:inline-flex;align-items:center;gap:6px;color:#bfd3dd;letter-spacing:0;background:#102c3b;border:1px solid #355365;padding:8px;border-radius:6px;white-space:nowrap; }
.live-count:before { content:'';width:5px;height:5px;border-radius:50%;background:#e7bb72; }
.live-count[data-state=online]:before { background:#71dec5;box-shadow:0 0 8px #71dec55c; }
.live-count[data-state=offline]:before { background:#ffb1a5; }
.harbour-room-list { list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px; }
.harbour-empty { padding:22px 14px;text-align:center;border:1px dashed #4a6978;border-radius:10px;background:#17374a40; }
.empty-anchor { display:block;font-size:30px;color:#a5c9cd;margin:0 0 10px; }
.harbour-empty strong { display:block;font-size:17px;letter-spacing:0;font-weight:650; }
.harbour-empty p { font-size:12px;color:#aec5cd;line-height:1.65;max-width:260px;margin:7px auto 0; }
.harbour-room { display:flex;align-items:center;width:100%;min-height:79px;gap:12px;background:#17384a;border:1px solid #36596c;border-radius:9px;padding:12px;text-align:left;cursor:pointer;transition:background .16s,border-color .16s; }
.harbour-room:hover { background:#204959;border-color:#71dec5; }
.room-flag { font-size:26px;flex:none;width:34px;text-align:center; }
.room-copy { min-width:0;flex:1;display:flex;flex-direction:column;gap:7px; }
.room-copy strong { font-size:13px;line-height:1.3;overflow-wrap:anywhere;letter-spacing:0; }
.room-copy small { font-size:10px;color:#b0c7d0;letter-spacing:0;line-height:1.4; }
.room-join-action { color:#a5f1dc;font-size:12px;font-weight:750;white-space:nowrap; }
.online-launch { display:flex;flex-direction:column;gap:9px;margin-top:12px; }
.online-launch .cta-btn { display:flex;justify-content:space-between;align-items:center;width:100%; }
#screen-menu .private-action { min-height:55px;padding:11px 15px;border:1px solid #446171;background:transparent;border-radius:9px; }
#screen-menu .private-action strong { font-size:14px; }
#screen-menu .private-action span { font-size:11px; }
#screen-menu .menu-btn::after { display:none; }
.public-explainer { font-size:10px;line-height:1.6;color:#a0bbc5;margin:12px 0 0; }
.solo-dock { min-width:0;padding-top:4px; }
.solo-cards { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px; }
#screen-menu .solo-cards .menu-btn { display:flex;align-items:flex-start;min-height:145px;flex-direction:column;gap:7px;background:#173549;border:1px solid #345366;border-radius:10px;padding:13px 11px;color:#f0f2e7; }
#screen-menu .solo-cards .mode-symbol { font-size:24px;color:#e7bb72;line-height:1.1;margin-bottom:7px; }
#screen-menu .solo-cards strong { font-size:14px;line-height:1.2;font-weight:700; }
#screen-menu .solo-cards .menu-btn>span:last-child { color:#b2c5cd;font-size:10px;line-height:1.5; }
#screen-menu .menu-btn:hover { border-color:#72cdbd; }
.more-modes { border-bottom:1px solid #355365;padding:15px 0 12px;margin-top:7px; }
.more-modes summary { cursor:pointer;list-style:none;display:flex;justify-content:space-between;font-size:12px; }
.more-modes summary::-webkit-details-marker { display:none; }
.more-modes>div { display:grid;gap:9px;margin-top:12px;grid-template-columns:1fr; }
#screen-menu .more-modes .menu-btn { min-height:55px;padding:12px 14px;background:#143246;border:1px solid #315469;border-radius:8px; }
#screen-menu .more-modes strong { font-size:14px; }.more-modes .menu-btn span { font-size:11px; }
.harbour-foot { max-width:1220px;margin:24px auto 0;display:flex;align-items:center;gap:14px; }
.harbour-foot .install-card { padding:10px 12px;background:#112e3f;border-color:#355568;flex:1; }
.harbour-foot .install-card strong { font-size:11px; }.harbour-foot .install-card span { font-size:10px; }
.harbour-foot>.foot-btn { flex:none;font-size:11px; }
/* Dedicated online screen: rooms are the primary content. */
#screen-online { width:100%;max-width:860px;align-self:center;padding-top:max(18px,env(safe-area-inset-top));gap:22px;overflow-y:auto; }
#screen-online .screen-head { align-items:center;gap:14px;margin:0;flex:none; }
#screen-online .screen-head .back-btn { position:static;background:#193c51;border:1px solid #456577;border-radius:9px;width:40px;height:40px;font-size:19px; }
#screen-online .screen-head h2 { font-size:27px;line-height:1.1;letter-spacing:-.03em;margin:0; }
#screen-online .screen-head .overline { font-size:8px;margin-bottom:5px; }
#btn-refresh-rooms { margin-left:auto;font-size:11px;min-height:40px; }
#screen-online .online-panel { width:100%;max-width:none;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:0;background:none;border:0; }
.lobby-actions { display:grid;grid-template-columns:1fr;gap:10px; }
.lobby-actions>.cta-btn { display:flex;justify-content:space-between;align-items:center; }
#screen-online .menu-btn { border:1px solid #406073;background:#173549;border-radius:9px;padding:13px 16px;text-align:left;min-height:60px; }
#screen-online .menu-btn strong { font-size:15px;letter-spacing:0;text-transform:none; }
#screen-online .menu-btn span { color:#b6ccd3;font-size:11px;letter-spacing:0;text-transform:none;line-height:1.6; }
#screen-online .room-board { padding:0;border:0;background:none;overflow:visible; }
#screen-online .room-board-head { padding:8px 0 13px;border:0;background:none;align-items:center; }
#screen-online .room-board-head h3 { margin:0;font-size:24px;letter-spacing:-.02em;color:#f1f1e7; }
#screen-online .quick-action { align-self:flex-start;color:#96e5d0;font-size:12px;padding:5px 0; }
.invite-drawer { padding:15px 0;border-top:1px solid #35586b;border-bottom:1px solid #35586b; }
.invite-drawer summary { font-size:13px;cursor:pointer;color:#d3e4e4; }
#screen-online .join-block { margin:15px 0 0; }.join-block>label { font-size:10px;letter-spacing:0;text-transform:none;color:#b3cad3; }
#screen-online .join-row { margin:8px 0;gap:7px; }
#screen-online #join-code { font:14px -apple-system,sans-serif;letter-spacing:0;text-transform:none;background:#0c2638;border:1px solid #42687d;border-radius:7px;padding:13px;color:#f1f4ea;min-width:0; }
#screen-online .join-go { border-radius:7px;background:#71dec5;color:#062b32;border:0;font-size:13px;min-width:60px; }
#screen-online #btn-paste-invite { font-size:11px; }
.lobby-tip { margin:0;font-size:11px;line-height:1.6;color:#a6bdc7; }
#btn-lobby-practice { align-self:flex-start;padding:3px 0;font-size:11px; }
/* Host waiting room. */
#screen-online #online-wait { text-align:center;align-items:center;gap:13px;padding:8px 0 20px; }
.waiting-beacon { width:96px;height:96px;position:relative;display:grid;place-items:center;margin:0 auto 5px; }
.waiting-beacon>span,.waiting-beacon>i { position:absolute;inset:5px;border-radius:50%;border:1px solid #548b92;animation:harbour-pulse 3.2s ease-out infinite; }
.waiting-beacon>i { inset:20px;animation-delay:.7s; }
.waiting-beacon>b { font-size:35px;color:#b2e8dd;font-weight:400; }
@keyframes harbour-pulse { 0%{opacity:1;transform:scale(.8)}100%{opacity:0;transform:scale(1.25)} }
#screen-online .wait-label { font-size:11px;letter-spacing:.1em;margin:0;color:#e7bb72;text-transform:uppercase; }
#screen-online .room-code { font:700 clamp(30px,7vw,46px)/1.1 -apple-system,sans-serif;letter-spacing:-.035em;word-break:normal;overflow-wrap:normal;color:#eff3e9;margin:0;padding:0;background:none;border:0;text-shadow:none; }
#screen-online .wait-status { font:400 13px/1.6 -apple-system,sans-serif;letter-spacing:0;color:#bfd6db;margin:0;min-height:21px; }
.crew-seats { display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:490px;gap:12px;margin:10px 0; }
.crew-seat { border:1px dashed #466d80;border-radius:11px;min-width:0;display:flex;align-items:center;flex-direction:column;padding:20px 10px;gap:9px; }
.crew-seat.occupied { background:#153c48;border:1px solid #5c928e; }
.crew-seat>span { font-size:32px;line-height:1; }.crew-seat>.seat-empty { color:#829fac;font-size:34px; }
.crew-seat strong { font-size:15px;overflow-wrap:anywhere; }.crew-seat small { font-size:10px;line-height:1.6;color:#aecad2; }.crew-seat em { font:600 9px/1.4 -apple-system,sans-serif;color:#84d8c2;margin-top:auto;padding-top:8px; }
#screen-online .invite-row { display:flex;gap:12px;width:100%;max-width:490px;justify-content:center;margin:0; }
#screen-online .invite-row .cta-btn { flex:1; }
.waiting-visibility { margin:0;max-width:420px;font-size:11px;line-height:1.6;color:#a6c2cd; }
#screen-online .wait-practice { width:100%;max-width:490px;margin:12px 0 0; }
#screen-online .app-help { font-size:10px;color:#a4becb; }
/* Fleet identity editor. */
#command-profile { width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:24px;color:#f1f1e7;background:#102e42;border:1px solid #547383;border-radius:16px;overflow-y:auto;box-shadow:0 30px 100px #0009; }
#command-profile::backdrop { background:#03131cdd;backdrop-filter:blur(8px); }
#command-profile header { display:flex;justify-content:space-between;align-items:center; }
#command-profile header>button { font-size:19px;min-width:40px;min-height:40px;padding:5px; }
#command-profile h2 { font-size:32px;line-height:1.1;letter-spacing:-.03em;margin:4px 0 10px; }
.dialog-intro { font-size:13px;line-height:1.6;color:#b3cbd3;margin:0 0 23px; }
#command-profile label,#command-profile legend { font-size:12px;font-weight:700;color:#eef4ec; }
#captain-name { display:block;width:100%;font:16px -apple-system,sans-serif;color:#eff4ee;background:#0a2233;border:1px solid #4e7187;border-radius:8px;padding:12px;margin:8px 0 20px; }
#command-profile fieldset { padding:0;margin:0 0 20px;border:0;min-width:0; }
#command-profile legend { margin-bottom:11px; }
.navy-choices { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
.navy-choice { border:1px solid #3c6074;border-radius:8px;background:#173a4f;padding:9px 3px;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:69px;cursor:pointer; }
.navy-choice>span { font-size:24px;line-height:1; }.navy-choice>small { font-size:9px;line-height:1.25;text-align:center;letter-spacing:0; }
.navy-choice[aria-pressed=true],.division-choice[aria-pressed=true] { border-color:#95f0d3;background:#25565b;box-shadow:inset 0 0 0 1px #95f0d3; }
.division-choices { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
.division-choice { display:grid;grid-template-columns:28px 1fr;text-align:left;column-gap:8px;row-gap:4px;align-items:center;min-height:75px;border:1px solid #3c6074;background:#173a4f;border-radius:8px;padding:10px;cursor:pointer; }
.division-choice>span { grid-row:1/3;color:#e7bb72;font-size:23px; }.division-choice>strong { font-size:11px;line-height:1.3;letter-spacing:0; }.division-choice>small { font-size:9px;color:#bdd3d9;line-height:1.4;letter-spacing:0; }
.cosmetic-note { color:#adcad2;font-size:11px;line-height:1.6;margin:0 0 17px; }
#btn-save-command { width:100%; }
/* In-match changes stay compact: the ensign belongs with its fleet. */
.harbour #screen-battle .manifest-label { writing-mode:horizontal-tb;font-size:16px;max-width:30px;line-height:1; }
.harbour #screen-battle .battle-kicker { letter-spacing:.03em; }
.harbour #screen-battle .battle-head h2 { color:#eef5eb; }
.harbour #screen-battle .battle-head h2.mine { color:#90edd1; }
.harbour #screen-battle .fire-btn { background:#e7bb72;border-color:#e7bb72;color:#1c2930; }
@media(min-width:760px) {
 #screen-menu { padding:24px 32px; }
 .harbour-layout { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px 36px; }
 .harbour-hero { height:310px; }.hero-copy { left:28px;bottom:35px; }.hero-copy h1 { font-size:78px; }.hero-copy>p { font-size:17px; }.hero-copy>span { font-size:15px; }
 .harbour-live { padding:8px 0 0; }.harbour-empty { padding:32px 24px; }.harbour-room { min-height:85px; }
 .solo-dock { grid-column:1/-1;border-top:1px solid #365669;padding-top:26px; }.solo-dock .section-heading h2 { font-size:26px; }
 #screen-menu .solo-cards .menu-btn { min-height:115px;display:grid;grid-template-columns:42px 1fr;align-content:center;column-gap:12px;padding:20px; }
 #screen-menu .solo-cards .mode-symbol { grid-row:1/3;font-size:30px;margin:0;align-self:center; }
 #screen-menu .solo-cards strong { font-size:18px; }.more-modes>div { grid-template-columns:repeat(3,1fr); }
 #screen-menu .solo-cards .menu-btn>span:last-child { font-size:12px; }
 .harbour-foot { margin-top:20px; }.harbour-foot .install-card { max-width:530px; }.harbour-foot>.foot-btn { margin-left:auto; }
 .harbour-mast { margin-bottom:25px; }.harbour-mast>span { font-size:10px; }
 .lobby-actions { grid-template-columns:1fr 1fr; }
 .navy-choices { grid-template-columns:repeat(5,minmax(0,1fr)); }
 #screen-online { padding-left:28px;padding-right:28px; }
}
@media(max-width:380px) {
 .harbour-mast { gap:10px; }.harbour-mast>span { font-size:8px; }
 .commander-edit { font-size:9px; }.commander-card { gap:9px;padding:12px; }.commander-flag { width:40px;height:40px;font-size:25px; }
 .harbour .section-heading h2 { font-size:23px; }.harbour .live-count { font-size:8px;padding:6px; }
 #screen-menu .solo-cards .menu-btn { padding:12px 8px;min-height:135px; }.solo-cards { gap:6px; }
 .harbour-foot { gap:9px; }.harbour-foot .install-card strong { font-size:10px; }.harbour-foot .install-card span { display:none; }
 #command-profile { padding:18px; }.navy-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .waiting-beacon>span,.waiting-beacon>i { animation:none; }.commander-card,.harbour-room { transition:none; } }
/* Keep joining above the fold on a phone. */
#screen-menu .solo-cards .menu-btn { order:0; }
@media(max-width:759px) {
 .harbour-hero { height:150px; }
 .hero-copy { bottom:18px;left:18px; }.hero-copy h1 { font-size:48px; }.hero-copy>p { font-size:12px; }.hero-copy>span { font-size:11px; }.hero-bearing { font-size:8px;top:12px;right:12px; }
 .harbour-mast { margin-bottom:14px; }.harbour-layout { gap:18px; }
 .commander-card { padding:11px;gap:10px; }.commander-flag { width:40px;height:40px;font-size:27px; }.commander-details>strong { font-size:15px; }.commander-details>span { font-size:9px; }
 #screen-menu .rank-strip { margin-top:7px;padding-bottom:8px; }
 .harbour-empty { padding:13px 12px; }.empty-anchor { display:none; }.harbour-empty strong { font-size:15px; }.harbour-empty p { font-size:11px;line-height:1.5; }
 .harbour .section-copy { margin:8px 0 12px; }
 #command-profile h2 { font-size:27px; }.dialog-intro { margin-bottom:16px; }
 #btn-save-command { position:sticky;bottom:-6px;box-shadow:0 0 0 9px #102e42,0 -12px 24px #102e42; }
}
