.signin, .signin-return {
    min-height: 100svh;
    display: grid;
    place-items: center;
    background: linear-gradient(#0b172455, #0a1423cf 85%), #0a1423 url("skywheel-dusk.webp") center / cover;
}
.signin { padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom)); }
.signin-layout {
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid var(--brass-line);
    border-radius: 26px;
    background: #111e32;
    box-shadow: 0 24px 58px #06121da8;
}
.signin-hero {
    min-height: clamp(184px, 30svh, 300px);
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0 19px 21px;
    background: linear-gradient(180deg, #101a2d00 15%, #101a2d4d 52%, #111e32 98%),
        url("cloudyard-welcome.webp") center 18% / cover;
}
.signin-brand { display: flex; align-items: center; gap: 7px; }
.signin-brand img { object-fit: contain; filter: drop-shadow(0 2px 7px #0d1729); }
.signin-brand h1 { color: #fff1be; font: 800 clamp(2.2rem, 10vw, 3.45rem)/1 Georgia, serif; text-shadow: 0 3px 8px #102634; }
.signin-hero p { margin: 3px 0 0 5px; color: #e2eee6; font-size: .9rem; }
.signin-card {
    position: relative;
    margin: -10px 10px 10px;
    padding: 14px clamp(14px, 5vw, 26px);
    border: 1px solid #a9bca460;
    border-radius: 16px;
    color: #eef7e9;
    background: var(--deep-panel);
    box-shadow: 0 5px 18px #080f1d7a, inset 0 1px #fef7d81a;
}
.signin-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    gap: 4px;
    background: #0b2434;
    border: 1px solid #b2c7be3b;
    border-radius: 10px;
}
.signin-switcher button {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #cee2dc;
    font-size: .85rem;
    font-weight: 750;
}
.signin-switcher button[aria-pressed="true"] {
    color: #ffdfa0;
    background: linear-gradient(#2c5b60, #20424c);
    border-color: #ddbd7f75;
}
.signin-card h2 { margin-block: 12px 8px; color: #fff1c8; font: 750 clamp(1.45rem, 6vw, 1.9rem)/1.08 Georgia, serif; }
.signin-card form, .account-dialog form { display: grid; gap: 9px; text-align: left; }
.signin-card label, .account-dialog label { display: grid; gap: 4px; font-size: .84rem; font-weight: 750; }
.signin-card input, .account-dialog input:not([type="checkbox"]) {
    width: 100%; min-height: 44px; padding: 8px 10px;
    border: 1px solid #a6c8c087; border-radius: 8px;
    background: #0e1e31; color: #fff8e6; font: 1rem system-ui, sans-serif;
}
.signin-card input:focus, .account-dialog input:not([type="checkbox"]):focus {
    outline: 2px solid #f6ce83;
    outline-offset: 1px;
}
.signin-card form .voyage-button, .name-dialog form .voyage-button {
    display: inline-flex; justify-content: center; align-items: center; gap: 6px; margin-top: 3px;
    min-height: 46px; box-shadow: 0 3px 0 #8a5a38;
}
.signin-divider {
    display: flex; align-items: center; gap: 9px; margin: 9px 0 7px;
    color: #ceded8; font-size: .76rem; text-align: center;
}
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: #cbd6ca40; }
.google-button {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 43px; padding: 6px 10px;
    border-radius: 9px; border: 1px solid #b7cfc4;
    color: #213c4a; background: #fbf9ef; font-size: .85rem; font-weight: 800;
}
.google-monogram { color: #2560af; font: 800 1.1rem/1 system-ui, sans-serif; }
.google-button:disabled { background: #2c4755; color: #d1dee2; border-color: #8197a366; }
.google-button:disabled .google-monogram { color: #a9c9e4; }
.signin-legal { display: flex; justify-content: center; gap: 16px; margin-top: 13px; font-size: .75rem; }
.signin-legal a { color: #d9e6e0; }
.account-message { color: #ffe1a6; font-size: .82rem; }
.account-message:not(:empty) { margin-block: 11px 4px; }
.captain-button { position: relative; }
#alert-dot {
    position: absolute; top: 3px; right: 4px; width: 8px; height: 8px;
    border-radius: 50%; background: #ffd283; box-shadow: 0 0 8px #ffcb74;
}
.masthead-actions .help-button[aria-current="page"] {
    color: #fff0af; background: #437477; border-radius: 8px;
}
.account-dialog { overflow-y: auto; overscroll-behavior: contain; }
.profile-banner {
    display: flex; align-items: center; gap: 11px; margin-block: 7px 13px; padding: 11px 13px;
    background: radial-gradient(ellipse at 15% 0%, #346c67, transparent 70%), #173749;
    border: 1px solid #aed2c16a; border-radius: 10px;
}
.profile-banner strong { color: #fff0c4; font-size: 1.08rem; overflow-wrap: anywhere; }
.profile-emblem {
    display: grid; flex: none; place-items: center; width: 43px; height: 43px; border-radius: 13px;
    color: #ffdc91; background: #0b2d40; border: 1px solid #dcbe8260;
}
.profile-emblem svg { width: 24px; height: 24px; }
.account-dialog .push-preference { display: flex; align-items: center; gap: 9px; }
.push-preference input { width: 18px; height: 18px; accent-color: #f0ba72; }
.account-dialog .profile-identity { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .76rem; }
.account-dialog form small { margin-top: -5px; color: #d0e6df; }
.signout-button {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
    width: 100%; min-height: 48px; margin-top: 14px; padding: 7px 13px; text-align: left;
    border: 1px solid #e7aaa078; border-radius: 9px;
    color: #ffe5de; background: linear-gradient(105deg, #583543, #343145);
    font-weight: 800;
}
.signout-button:active { background: #663b48; }
.signout-button:disabled { opacity: .7; }
.name-dialog { text-align: center; background: radial-gradient(ellipse at 50% 0%, #3c726c, #143549 58%, #142c3c); }
.name-dialog img { display: block; margin: 0 auto 7px; }
.name-dialog p { max-width: 36ch; margin-inline: auto; }
.name-dialog form { margin-top: 12px; }

.community-screen {
    background: linear-gradient(180deg, #0c192966, #0c1929a8);
    padding-bottom: 11px;
}
.community-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; justify-items: start; gap: 6px; min-height: 147px; align-content: center;
    padding: 15px 17px; color: #f2f7ed; border: 1px solid #d6bd82b5; border-radius: 15px;
    background: linear-gradient(90deg, #0d2b42f1, #143a50dc 50%, #204a6142),
        url("cloudyard-welcome.webp") center 20% / cover;
    box-shadow: 0 3px 10px #061a2f60;
}
.alerts-hero {
    background: linear-gradient(90deg, #152d48f2, #1a4660b0 61%, #0c476529),
        url("map-bramble.webp") center 35% / cover;
}
.community-hero h2 { color: #fff0c0; font: 800 clamp(1.75rem, 8vw, 2.45rem)/1 Georgia, serif; }
.community-hero p { font-size: .81rem; }
.defense-panel {
    display: grid; gap: 10px; padding: 11px 12px; color: #d3eee9; border: 1px solid #b6e6c864; border-radius: 15px;
    background: radial-gradient(ellipse at 12% 0%, #235963, transparent 66%), linear-gradient(145deg, #163b4b, #162f43);
    box-shadow: 0 5px 15px #071e3077;
}
.defense-heading { display: flex; align-items: center; gap: 7px; color: #acdef4; }
.defense-heading h3 { flex: 1; color: #fff0c3; font: 800 clamp(1rem, 4.4vw, 1.35rem)/1 Georgia, serif; }
.defense-heading strong { padding: 4px 7px; border: 1px solid #9ed9ee65; border-radius: 8px; font-size: .71rem; white-space: nowrap; }
.defense-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.defense-row { display: grid; gap: 4px; padding: 6px 7px; border-radius: 9px; background: #102939; }
.defense-row strong { font-size: .82rem; }
.defense-row span, .defense-panel p { color: #cadee2; line-height: 1.25; font-size: .73rem; }
.defense-row[data-protected="true"] span { color: #a6f8cb; }
.defense-pips { display: flex; gap: 3px; }
.defense-pips i { flex: 1; height: 4px; border-radius: 5px; background: #4e7280; }
.defense-pips .used { background: #efcc85; }
.defense-row[data-protected="true"] .used { background: #9fe8cc; }
.community-emblem {
    display: grid; place-items: center; width: 34px; height: 34px;
    color: #ffe4a0; border: 1px solid #efd18c90; border-radius: 10px; background: #173d4cdf;
}
.community-emblem svg { width: 21px; height: 21px; }
.standing-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 9px;
    padding: 10px 12px; margin-top: 10px; border: 1px solid #d8c18682; border-radius: 10px;
    color: #f3ead5; background: linear-gradient(110deg, #335e61, #163a4e);
    font-size: .81rem;
}
.standing-banner strong { color: #ffe4a1; font-size: 1rem; }
.community-status:not(:empty) {
    margin-block: 10px;
    padding: 14px;
    border: 1px solid #a6c3b66b;
    border-radius: 10px;
    color: #e8f3eb;
    background: #153a4d;
    font-size: .9rem;
}
.ranking-entries, .alert-entries { display: grid; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.ranking-entry, .alert-entry {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px;
    padding: 8px 10px; border: 1px solid #a6c3b64d; border-radius: 10px;
    background: linear-gradient(112deg, #244b5d, #153345);
}
.ranking-entry[aria-current="true"] { border-color: #bde6ba; }
.ranking-position {
    display: grid; place-items: center; width: 39px; min-height: 36px; padding-inline: 3px;
    border-radius: 8px; background: #0b2b41; border: 1px solid #b1cbc750;
    color: #d0e7e2; font-size: .78rem; font-weight: 850;
}
.ranking-entry[data-medal="1"] { background: linear-gradient(109deg, #776343, #294653 65%); border-color: #e1bf76b7; }
.ranking-entry[data-medal="1"] .ranking-position { background: linear-gradient(#ffe3a0, #dbae59); color: #3c2a14; border-color: #ffe5a5; }
.ranking-entry[data-medal="2"] .ranking-position { background: #d7e6ed; color: #1e3f57; }
.ranking-entry[data-medal="3"] .ranking-position { background: #f0bb93; color: #4b3033; }
.ranking-player strong, .alert-copy strong { color: #fff3cd; line-height: 1.2; overflow-wrap: anywhere; }
.ranking-player small { display: block; color: #d9e9df; font-size: .75rem; margin-top: 3px; }
.ranking-level { color: #c4f4e2; padding: 5px 7px; border-radius: 6px; background: #154253; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.ranking-pager {
    position: sticky; bottom: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 6px; margin-top: 10px; padding: 6px; border-radius: 11px; 
    border: 1px solid #aec6ae73; background: #15374af8; color: #f5edd7; font-size: .78rem;
    box-shadow: 0 -4px 14px #12354e70;
}
.ranking-pager button {
    display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 4px;
    padding-inline: 4px; border: 1px solid #f5d193c5; border-radius: 7px; 
    color: #3a2d24; background: linear-gradient(#ffe8ae, #e8b867); font-size: .77rem; font-weight: 850;
}
.ranking-pager button:disabled { color: #bdd2ce; background: #294956; border-color: #9ebfb84c; }
.alert-entry { align-items: start; padding-block: 12px; }
.alert-emblem {
    display: grid; place-items: center; width: 39px; height: 39px;
    border: 1px solid #d2bd8c85; border-radius: 10px; color: #fbc9a9; background: #4f3944;
}
.alert-emblem[data-kind="chest"] { color: #ffe1a0; background: #5c4a40; }
.alert-emblem[data-kind="shield"] { color: #a3e9df; background: #214f5e; }
.alert-emblem svg { width: 22px; height: 22px; }
.alert-copy p { margin-block: 5px; color: #e4eee7; font-size: .83rem; line-height: 1.4; overflow-wrap: anywhere; }
.alert-copy time { color: #b9d3d5; font-size: .72rem; }
.alert-new { background: #ffe2a1; color: #392d20; border-radius: 5px; padding: 2px 5px; font-size: .66rem; font-weight: 900; }

.signin-return {
    padding: 20px;
    background: linear-gradient(175deg, #15374c4a, #11283ee0 68%),
        url("cloudyard-welcome.webp") center 24% / cover, #132e42;
}
.return-card {
    width: min(100%, 415px); margin-top: min(20svh, 174px); padding: 25px 20px;
    border: 1px solid #eac683a3; border-radius: 21px;
    background: linear-gradient(148deg, #25555ef5, #142b43fb);
    box-shadow: 0 20px 52px #091520b0;
    text-align: center;
}
.return-brand { color: #f1cf85; font-weight: 800; }
.return-card h1 { margin-block: 10px 7px; color: #fff2c0; font: 800 clamp(1.8rem, 9vw, 2.6rem)/1.04 Georgia, serif; }
.return-card p:not(.return-brand) { color: #e1f0e9; font-size: .94rem; }
.return-link {
    display: inline-flex; min-height: 45px; width: min(100%, 260px); margin-top: 17px;
    align-items: center; justify-content: center; border-radius: 9px; border: 1px solid #ffe6a5;
    color: #312e24; background: linear-gradient(#ffe8b2, #eeba6d);
    text-decoration: none; font-weight: 900;
}
@media (min-width: 780px) {
    .signin-layout { width: min(94vw, 920px); display: grid; grid-template-columns: 1.2fr .88fr; }
    .signin-hero {
        min-height: 518px; padding: 25px; 
        background-position: center, center top;
    }
    .signin-card { margin: 12px; align-self: center; padding: 20px; }
}
@media (orientation: landscape) and (min-width: 550px) and (max-height: 550px) {
    .signin-layout { width: min(96vw, 920px); display: grid; grid-template-columns: .95fr 1fr; }
    .signin-hero { min-height: 0; padding: 16px; }
    .signin-brand h1 { font-size: clamp(1.65rem, 4.8vw, 2.7rem); }
    .signin-brand img { width: 41px; height: 41px; }
    .signin-card { margin: 8px; padding: 10px 12px; }
    .signin-card h2 { margin-block: 7px; }
    .signin-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .signin-card form .voyage-button { grid-column: 1 / -1; }
    .signin-divider { margin-block: 6px; }
    .signin-legal { margin-top: 8px; }
}

.world-land:is([data-terrain="glacierwash"], [data-terrain="ambercap-wilds"], [data-terrain="porcelain-lakes"], [data-terrain="crimson-basalt"]) {
    --beacon-x: 50%; --beacon-y: 24%; --market-x: 22%; --market-y: 34%;
    --workshop-x: 78%; --workshop-y: 37%; --dock-x: 29%; --dock-y: 50%; --mill-x: 68%; --mill-y: 55%;
}
.world-land:is([data-terrain="moonlavender-vale"], [data-terrain="emerald-arches"], [data-terrain="dawncrest-summit"]) {
    --beacon-x: 50%; --beacon-y: 28%; --market-x: 21%; --market-y: 40%;
    --workshop-x: 78%; --workshop-y: 42%; --dock-x: 28%; --dock-y: 56%; --mill-x: 68%; --mill-y: 61%;
}

.online-message, .request-error {
    position: fixed; z-index: 20; left: 50%; bottom: max(75px, 10svh); transform: translateX(-50%);
    width: min(calc(100% - 24px), 390px); margin: 0; padding: 11px 14px;
    border-radius: 9px; color: #fff0cf; background: #122a38;
    border: 1px solid #edbe78; box-shadow: 0 8px 20px #071a26a8; text-align: center;
}
.request-error:empty { display: none; }

.legal-page {
    color: #f2f4e5; background: #0e283a; max-width: 650px; margin: 0 auto;
    padding: 24px; line-height: 1.55; overflow-wrap: anywhere;
}
.legal-page header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.legal-page h1, .legal-page h2, .legal-page a { color: #ffe6af; }
.legal-page h2 { margin: 20px 0 8px; }
.legal-page p + p { margin-top: 10px; }

.voyage-screen { padding-bottom: 14px; }
.voyage-screen .voyage-hero {
    min-height: 151px; isolation: isolate; overflow: hidden;
    background:
        linear-gradient(90deg, #101e33eb, #111e32a8 54%, #1722321a),
        url("skywheel-dusk.webp") center 68% / cover;
}
.voyage-hero .folio-copy { position: relative; z-index: 1; }
.voyage-screen .voyage-hero .miniature { width: clamp(100px, 34vw, 162px); }
.voyage-hero .folio-chip { color: #ffe3a6; background: #142d40dc; }
.voyage-section-heading {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    border-bottom: 1px solid #bdd3bb62; padding: 0 2px 7px;
}
.voyage-section-heading h3 { color: #ffe6af; font: 750 1.24rem/1.1 Georgia, serif; }
.voyage-section-heading span { font-size: .76rem; font-weight: 750; color: #d8ede4; }
.flight-board, .expedition-board {
    margin-top: 12px; padding: 11px; border: 1px solid #9bb2c04f; border-radius: 17px;
    background: #101d2fe8;
}
.flight-board .voyage-routes { margin-top: 8px; }
.flight-board .voyage-card {
    padding: 11px; border: 1px solid #a5c1cf47; border-radius: 13px;
    background: var(--deep-panel);
}
.flight-board .voyage-card[data-route="salvage"] .voyage-route-icon { color: #c8e8f8; }
.flight-board .voyage-card[data-route="courier"] .voyage-route-icon { color: #a6efcb; }
.flight-board .voyage-card[data-route="arsenal"] .voyage-route-icon { color: #dfbcff; }
.flight-board .voyage-route-icon { color: #ffde96; background: #0c2c3bc4; }
.voyage-card .flight-rewards { margin-top: 6px; }
.flight-limits { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.flight-limits span {
    padding: 4px 7px; border-radius: 5px; color: #e8f2e8;
    font-size: .75rem; font-weight: 700; background: #0a283d9e;
}
.active-voyage .voyage-kicker { color: #a5e4d4; font-size: .72rem; font-weight: 750; }
.voyage-screen .active-voyage { margin-top: 10px; border-color: #ead08a; }
.expedition-board #expedition-cards { margin-top: 8px; }
.mission-hero {
    min-height: 132px;
    background: linear-gradient(90deg, #101c2ef0 3%, #16273bb3 54%, #111e2f14),
        url("rival-return-art.webp") 65% 27% / cover;
}
.mission-hero .folio-copy { width: 100%; }
.mission-hero p { margin-top: 7px; color: #d4ebea; font-weight: 700; }
.mission-switch {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-block: 10px; padding: 4px;
    border: 1px solid #8ab5b879; border-radius: 12px; background: #102b3e;
}
.mission-switch button {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; padding-inline: 3px;
    border: 1px solid transparent; border-radius: 8px; color: #bbd7dc; background: transparent; font-size: .84rem; font-weight: 800;
}
.mission-switch button, .team-view-tabs button { -webkit-tap-highlight-color: transparent; }
.mission-switch button[aria-pressed="true"] {
    border-color: #eac990a3; color: #ffe6aa; background: linear-gradient(140deg, #2a5764, #1c4354);
}
.mission-switch .ready-dot { top: 6px; right: 6px; }
.mission-hint {
    padding: 11px 13px; border: 1px solid #acc6b979; border-radius: 12px;
    background: #14394bee; color: #d5edeb; font-size: .84rem; line-height: 1.35;
}
.tracked-contract {
    display: grid; gap: 11px; padding: 13px; border: 1px solid #dbb97cbb; border-radius: 16px;
    background: radial-gradient(ellipse at top left, #325263, transparent 74%), #141f34;
    box-shadow: 0 5px 14px #0a253b6b, inset 0 1px #fbecd124;
}
.tracked-heading, .dispatch-heading { display: flex; align-items: center; gap: 8px; }
.tracked-heading h3, .dispatch-heading h3 { color: #ffedbd; font: 800 clamp(1.12rem, 4.8vw, 1.5rem)/1.08 Georgia, serif; }
.tracked-heading p { margin-bottom: 4px; color: #b3e5e0; font-size: .75rem; font-weight: 760; }
.contract-goals { display: grid; gap: 9px; padding: 0; list-style: none; }
.contract-goals li { display: grid; gap: 4px; color: #e1ebec; font-size: .79rem; }
.contract-goals li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.contract-goals li strong { color: #fae4ac; white-space: nowrap; font-variant-numeric: tabular-nums; }
.contract-goals li[data-complete="true"] strong { color: #adeec3; }
.contract-goals progress { width: 100%; height: 5px; border: 0; overflow: hidden; border-radius: 5px; background: #0b2837; }
.contract-goals progress::-webkit-progress-bar { background: #0b2837; }
.contract-goals progress::-webkit-progress-value { border-radius: 5px; background: linear-gradient(90deg, #67b9a3, #b6ecc1); }
.mission-continue, .mission-reward-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; }
.mission-continue { border: 1px solid #a5d6ce8f; border-radius: 8px; color: #d3f4e9; background: #22586a; font-size: .82rem; font-weight: 800; }
.contract-list { display: grid; gap: 8px; margin-top: 9px; }
.contract-group { display: grid; gap: 7px; }
.contract-group > h3 { color: #fff2cb; font: 800 1.1rem/1.1 Georgia, serif; margin: 5px 2px 2px; }
.contract-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px;
    padding: 10px; border: 1px solid #b4c8b474; border-radius: 13px;
    background: var(--deep-panel); box-shadow: 0 4px 10px #090f2273;
}
.contract-card[data-contract-state="tracking"] { border-color: #f7ce86; }
.contract-card[data-contract-state="locked"] { background: linear-gradient(120deg, #1b3046, #111f32); }
.contract-card[data-contract-state="completed"] { border-color: #9addbe; }
:is(.contract-card[data-contract-state="cooldown"], .order-card[data-order-state="cooldown"]) {
    border-color: #a390a58c; background: linear-gradient(125deg, #28354d, #172a3e);
}
.mission-lock {
    display: inline-flex; align-items: center; gap: 5px; justify-self: end;
    padding: 5px 7px; border: 1px solid #b5a3c057; border-radius: 8px;
    background: #142234; color: #eee3f8; font-size: .68rem; font-weight: 800; white-space: nowrap;
}
.mission-lock svg { width: 14px; height: 14px; color: #d8b9ed; }
.mission-lock small { display: block; margin-top: 2px; color: #f8d19f; font-size: .68rem; font-variant-numeric: tabular-nums; }
.contract-copy h3 { color: #fff3cd; font: 800 clamp(.95rem, 4vw, 1.125rem)/1.1 Georgia, serif; }
.contract-copy > span { display: block; margin-block: 3px; color: #fee1a4; font-size: .72rem; font-weight: 800; }
.contract-copy p { color: #d1e6e7; font-size: .73rem; line-height: 1.3; }
.contract-card[data-contract-state="locked"] .contract-copy > span { color: #c7dbe4; }
.contract-card .voyage-button { min-width: clamp(62px, 20vw, 84px); padding-inline: 7px; font-size: .78rem; }
.contract-icon {
    display: grid; place-items: center; width: clamp(33px, 10vw, 44px); aspect-ratio: 1; border: 1px solid #e0c28d78;
    border-radius: 10px; color: #ffe2a7; background: linear-gradient(145deg, #31596b, #102b40);
}
.contract-icon svg { width: 1.35rem; height: 1.35rem; }
.dispatch-heading {
    justify-content: space-between; padding: 10px 12px; border-radius: 12px; color: #d1e6e6; background: #15394dea;
}
.dispatch-heading span { text-align: right; font-size: .73rem; }
.mission-crate-dialog { padding: 14px; background: linear-gradient(144deg, #205164, #162b41); }
.mission-crate-dialog .dialog-heading h2 { font-size: clamp(1.2rem, 6vw, 1.65rem); }
.contract-crate {
    width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
    margin-top: 8px; padding: 9px; border: 1px solid #e9c78991; border-radius: 11px; text-align: left;
    background: #18384b; color: #ffe9b6;
}
.contract-crate .reward-list { margin-top: 4px; }
.team-message, #team-board { display: grid; gap: 10px; }
.team-message { padding: 9px 11px; border-radius: 9px; color: #d4eceb; background: #153a4e; font-size: .79rem; }
.team-message:empty { display: none; }
.team-mission, .team-roster {
    display: grid; gap: 10px; padding: 11px; border: 1px solid #d1be82aa; border-radius: 14px;
    background: var(--deep-panel); box-shadow: 0 4px 11px #0a142577;
}
.team-mission { background: radial-gradient(ellipse at 6% 3%, #34586b, transparent 70%), #15263b; }
.team-mission-head, .team-roster header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.team-mission-head > div, .team-roster header > div { min-width: 0; }
.team-mission h3, .team-roster h3 {
    color: #fff0c5; font: 800 clamp(1.1rem, 5vw, 1.6rem)/1.1 Georgia, serif; overflow-wrap: anywhere;
}
.team-mission-head p, .team-roster p, .team-note { color: #cee7e6; font-size: .75rem; line-height: 1.32; }
.team-mission-head p { margin-bottom: 4px; }
.team-clock {
    flex: none; padding: 5px 8px; border: 1px solid #c5d9ab70; border-radius: 8px;
    color: #ffe2a0; background: #133244; font-size: .73rem; font-weight: 800;
}
.team-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 6px; font-size: .82rem; }
.team-progress strong { color: #ffe5a9; }
.team-progress > span { color: #c1e9eb; font-size: .74rem; }
.team-progress progress { grid-column: 1 / -1; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; accent-color: #7de3b8; }
.team-progress progress::-webkit-progress-bar { background: #0d2634; }
.team-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #5db3a6, #b3f3b9); }
.team-scoring { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; color: #d2e6e6; font-size: .73rem; }
.team-scoring > span { display: inline-flex; align-items: center; gap: 3px; }
.team-scoring > span:first-child, .team-scoring > span:nth-child(2) { padding: 4px 6px; border-radius: 5px; color: #ffe0a1; background: #102d3e; }
.team-scoring svg { width: 15px; height: 15px; }
.team-milestones, .team-roster ul { display: grid; gap: 6px; list-style: none; padding: 0; }
.team-milestone {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px;
    min-height: 54px; padding: 5px 6px; border: 1px solid #a5bfc046; border-radius: 9px; background: #122b3c;
}
.team-milestone > div > strong { color: #ffeac0; font-size: .81rem; }
.team-milestone .reward-list { margin-top: 3px; }
.team-milestone .reward-list > span { font-size: .66rem; }
.team-milestone small { max-width: 65px; text-align: right; color: #c5dee0; font-size: .68rem; }
.team-milestone small svg { display: block; width: 14px; height: 14px; margin: 0 0 3px auto; color: #d8b9ed; }
.team-milestone .voyage-button { min-width: 52px; min-height: 38px; padding-inline: 5px; font-size: .76rem; }
.team-medal {
    display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px;
    border: 1px solid #ffdcac65; color: #ffcf9f; background: #6b4139;
}
.team-milestone[data-tier="1"] .team-medal { color: #d6eef1; background: #446475; }
.team-milestone[data-tier="2"] .team-medal { color: #ffdfa1; background: #75532b; }
.team-roster li { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px; border-radius: 6px; color: #d7ebec; background: #122e41; font-size: .76rem; }
.team-roster li span { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.team-roster li strong { color: #ffe0a6; white-space: nowrap; }
.team-join form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.team-join label { display: grid; gap: 4px; color: #cce8e8; font-size: .76rem; font-weight: 800; }
.team-join input {
    width: 100%; min-width: 0; min-height: 40px; padding: 5px 7px; border: 1px solid #a3c1bd8f; border-radius: 7px;
    background: #112c40; color: #fff1c9; font: 1rem "Trebuchet MS", sans-serif;
}
.team-secondary { min-height: 34px; padding: 4px 7px; border: 1px solid #a6c9bc8c; border-radius: 6px; color: #e8efe3; background: #245063; font-size: .75rem; font-weight: 800; }
.team-leave { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--surface-line); }
.team-leave .team-danger { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rival-result .team-points-gain { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px; padding: 5px 8px; border-radius: 7px; color: #c9f3db; background: #245868; }
.team-banner {
    display: flex; align-items: center; gap: 10px; min-height: 67px; padding: 10px;
    border: 1px solid #dfbc7c9e; border-radius: 13px; background: linear-gradient(135deg, #245769, #163446);
}
.team-banner .contract-icon { flex: none; }
.team-banner h3 { color: #ffedbf; font: 800 clamp(1.05rem, 5vw, 1.45rem)/1.05 Georgia, serif; overflow-wrap: anywhere; }
.team-banner p { margin-top: 4px; color: #cce7e6; font-size: .78rem; }
.team-view-tabs {
    position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
    padding: 4px; border: 1px solid #accdb77a; border-radius: 9px; background: #112d43;
}
.team-view-tabs button { min-height: 40px; padding: 4px; border: 1px solid transparent; border-radius: 6px; color: #cde4e7; background: transparent; font-size: .78rem; font-weight: 800; }
.team-view-tabs button[aria-pressed="true"] { border-color: #e8c887ae; color: #ffe8b7; background: #28586a; }
.team-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-section-heading p { margin-top: 4px; }
.team-section-heading button { flex: none; }
.team-join .team-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.team-fields .voyage-button { justify-self: start; min-width: 116px; }
.team-directory li, .team-members li { min-height: 51px; padding: 7px 8px; border: 1px solid #9ac3bb46; border-radius: 8px; }
.team-directory li > div, .team-members li > div { display: grid; gap: 3px; min-width: 0; flex: 1; }
.team-directory li > div strong, .team-members li > div strong { white-space: normal; overflow-wrap: anywhere; font-size: .84rem; }
.team-directory li > div span, .team-members li > div span { color: #c4dce0; }
.team-directory li button { min-width: 65px; flex: none; font-size: .77rem; }
.team-directory .team-join-lock { color: #d8e4e4; text-align: right; flex: none; }
.team-management-buttons { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.team-management-buttons button { min-width: 76px; }
.team-secondary:disabled { opacity: .5; }
.team-danger {
    min-height: 36px; padding: 5px 9px; border: 1px solid #cf9a91; border-radius: 7px;
    color: #ffe4dc; background: #673844; font-size: .76rem; font-weight: 850;
}
.team-members li .team-danger { min-width: 61px; flex: none; }
.member-search { display: grid; gap: 4px; color: #cde3e4; font-size: .75rem; }
.member-search input {
    width: 100%; min-height: 40px; padding: 6px 8px; border-radius: 7px; border: 1px solid #8fb8bc; background: #102a3d; color: #fff3d8; font-size: 1rem;
}
.team-action-dialog .dialog-heading h2 { font-size: clamp(1.2rem, 5.6vw, 1.65rem); }
@media (max-width: 350px) {
    .signin-hero { min-height: 170px; }
    .signin-brand img { width: 48px; height: 48px; }
}
:root {
    --control-radius: 13px;
    --control-edge: #6b462e;
    --control-line: #f1d098;
    --control-fill: linear-gradient(180deg, #fff0cd, #ecc58a 54%, #d9a46c);
    --surface-line: #a7c1d145;
    --surface-shadow: 0 5px 15px #060e1d70, inset 0 1px #f0f4ff14;
}

.masthead-actions {
    gap: 1px; padding-inline: 2px; border: 1px solid #bdd2e52e; border-radius: 11px;
    background: #0d192a93;
}
.masthead-actions .help-button {
    width: clamp(27px, 8vw, 38px); height: 44px; border-radius: var(--control-radius);
}
.masthead-actions .help-button > [data-icon] {
    display: grid; place-items: center; width: clamp(24px, 7.5vw, 34px); height: 32px;
    border: 1px solid transparent; border-radius: 8px;
}
.masthead-actions .help-button[aria-current="page"] { background: transparent; }
.masthead-actions .help-button[aria-current="page"] > [data-icon] { border-color: #e6bf818e; color: #fff0bd; background: #3b3d4a; }
.game-nav {
    gap: 4px; padding: 6px 8px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--brass-line);
    background: linear-gradient(177deg, #1d2e43, #101b2d 78%);
    box-shadow: 0 -5px 18px #08111e78;
}
.game-nav button { min-height: 49px; gap: 5px; border-radius: 12px; color: #ccdae4; }
.game-nav button[aria-current="page"] {
    color: #ffe7b9; border-color: var(--brass-line);
    background: radial-gradient(ellipse at 50% 0%, #d4a86b39, transparent 93%), #252e40;
    box-shadow: inset 0 1px #fff0ce40, 0 3px 8px #080e1b77;
}
.game-nav button[aria-current="page"] > span:first-child { filter: drop-shadow(0 0 6px #edc88255); }
.game-shell[data-screen="spin"] .game-nav [aria-current="page"] {
    color: var(--wheel-foil); border-color: hsl(var(--wheel-hue) 36% 68% / .55);
    background: radial-gradient(ellipse at 50% 0%, hsl(var(--wheel-hue) 39% 54% / .33), transparent 93%), #252e40;
}

.folio-hero, .community-hero, .team-banner, .team-mission, .team-roster, .contract-card,
.voyage-card, .log-list li > div, .alert-entry, .ranking-entry {
    border-radius: 17px;
    box-shadow: var(--surface-shadow);
}
.folio-hero, .community-hero { border-color: var(--brass-line); }
.folio-hero h2, .community-hero h2, .game-dialog h2, .rival-result h2 { letter-spacing: -.035em; }
.folio-copy::before {
    display: block; width: 28px; height: 2px; margin-bottom: 7px; border-radius: 1px;
    background: linear-gradient(90deg, var(--brass), #edc88b38);
    content: "";
}
.voyage-card, .log-list li > div, .alert-entry { border-color: var(--surface-line); }
.game-dialog, .rival-result { border-radius: 23px; box-shadow: 0 14px 30px #080f1dbd, inset 0 1px #e5f7ff25; }
.game-dialog { background: var(--deep-panel); border-color: var(--brass-line); }
.game-dialog::backdrop { background: #080f1ac2; }
.building-detail-art { border-color: #c0cbe34d; background: radial-gradient(ellipse, #42647a, #1b3047 78%); }
.signin-card input, .account-dialog input:not([type="checkbox"]), .team-roster input {
    border-radius: var(--control-radius);
    box-shadow: inset 0 2px 3px #081e3066;
}
.mission-switch, .team-view-tabs, .signin-switcher {
    padding: 4px; border-radius: 15px; background: #0b2336;
    box-shadow: inset 0 2px 4px #06172566;
}
.mission-switch button, .team-view-tabs button, .signin-switcher button {
    min-height: 44px; border-radius: 11px;
}
.mission-switch button[aria-pressed="true"], .team-view-tabs button[aria-pressed="true"], .signin-switcher button[aria-pressed="true"] {
    background: linear-gradient(165deg, #354a5c, #233447);
    box-shadow: inset 0 1px #f8e2bb3d, 0 2px 5px #050e1899;
}
.voyage-button, .stake-button, .order-card button, .rival-return, .village-actions button,
.ranking-pager button, .team-secondary, .team-danger, .google-button, .signout-button, .auto-button {
    min-height: 44px; border-radius: var(--control-radius);
}
.team-milestone .voyage-button { min-height: 44px; }
.voyage-button:enabled, .order-card button:enabled, .rival-return:enabled:not(.secondary), .stake-button:enabled {
    color: #39271d; border-color: var(--control-line); background: var(--control-fill);
    box-shadow: inset 0 1px #fff8dc, 0 2px var(--control-edge), 0 4px 8px #0a182555;
}
.rival-return.secondary:enabled, .village-actions button:enabled, .team-secondary:enabled, .ranking-pager button:enabled {
    background: linear-gradient(180deg, #3b5066, #22354b);
    border-color: #acd1e26b; color: #e7f5f8;
    box-shadow: inset 0 1px #d0f0ff2b, 0 2px #111c2f, 0 4px 8px #0a18254a;
}
.team-danger:enabled, .signout-button:enabled {
    background: linear-gradient(180deg, #764b60, #54354a);
    border-color: #f8b3b87a; color: #ffedf1;
    box-shadow: inset 0 1px #ffc7d52c, 0 2px #291929;
}
.launch:enabled {
    background: radial-gradient(ellipse at 41% 0%, hsl(var(--wheel-hue) 72% 76% / .27), transparent 72%),
        linear-gradient(hsl(var(--wheel-hue) 53% 35%), hsl(var(--wheel-hue) 60% 21%));
    border-color: var(--wheel-edge);
    box-shadow: inset 0 1px #efffe68f, 0 4px #0e2934, 0 8px 18px #0a1726a1;
    text-shadow: 0 2px 2px #111c29;
}
.launch:enabled:active { box-shadow: inset 0 1px #ddffe273, 0 2px #0e2934, 0 5px 10px #0a172678; }
.auto-button { border-color: #bacad865; background: var(--deep-panel); box-shadow: inset 0 1px #d5e6f635, 0 3px #102031; }
.auto-button[aria-pressed="true"] { border-color: #c1ffd8; background: #aff4cd; box-shadow: inset 0 1px #f4fff78f, 0 3px #216256; }
button:is(.help-button, .wallet-item, .launch, .auto-button, .stake-button, .voyage-button, .rival-return,
    .team-secondary, .team-danger, .google-button, .signout-button, .ammo-button,
    .game-nav button, .mission-switch button, .team-view-tabs button, .signin-switcher button,
    .village-actions button, .ranking-pager button, .order-card button) {
    touch-action: manipulation;
    transition: transform 125ms ease-out, filter 125ms ease-out, box-shadow 125ms ease-out;
}
button:enabled:active:is(.help-button, .launch, .auto-button, .stake-button, .voyage-button, .rival-return,
    .team-secondary, .team-danger, .google-button, .signout-button, .ammo-button,
    .game-nav button, .mission-switch button, .team-view-tabs button, .signin-switcher button,
    .village-actions button, .ranking-pager button, .order-card button) {
    transform: translateY(2px);
    filter: brightness(1.12);
}
@media (hover: hover) {
    button:enabled:hover:is(.launch, .voyage-button, .rival-return, .team-secondary, .team-danger, .ammo-button, .game-nav button) {
        filter: brightness(1.08);
    }
}

.token-storm-bomb {
    background: url("cloud-bomb.webp") center / contain no-repeat;
    filter: hue-rotate(32deg) drop-shadow(0 0 5px #bb8effb5);
}
.ammo-button .token-storm-bomb, .arsenal-title .token-storm-bomb { position: relative; }
.token-storm-bomb::after {
    content: "✦"; position: absolute; top: 1%; right: -2%; color: #fff0fa; font-size: .9rem; line-height: 1;
}
.storm-wallet-mark {
    position: absolute; bottom: 2px; right: 3px; color: #fff2dd;
    font-size: .7rem; text-shadow: 0 0 6px #d29bff, 0 1px #462d71;
}
.spin-result .storm-discovery, .storm-result {
    display: inline-flex; justify-self: center; align-items: center; justify-content: center; gap: 5px;
    padding: 4px 9px; border-radius: 20px; border: 1px solid #be9cfb9e;
    color: #f4e5ff; background: #4a316b; font-size: .72rem; font-weight: 850;
}
@media (max-height: 620px) {
    .spin-result .storm-discovery { padding: 2px 6px; font-size: .66rem; white-space: nowrap; }
    .spin-result .storm-discovery > [data-icon] { display: none; }
}
.storm-result { margin-bottom: 6px; }
.arsenal-card {
    display: grid; gap: 10px; margin-top: 10px; padding: 12px;
    border: 1px solid var(--surface-line); border-radius: 16px;
    background: var(--deep-panel);
    box-shadow: var(--surface-shadow);
}
.arsenal-storm {
    border-color: #c2a5f58c;
    background: radial-gradient(ellipse at 0% 0%, #77579d, transparent 76%), #30274f;
}
.arsenal-title { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.arsenal-title .token { width: 50px; }
.arsenal-title h3 { font-size: 1rem; color: #fff0d3; margin-bottom: 3px; }
.arsenal-title div > span, .arsenal-card p { color: #e0d9f5; font-size: .8rem; line-height: 1.4; }
.arsenal-title > strong { color: #fff0d3; background: #0c1f37a6; border-radius: 10px; padding: 6px 8px; }
.arsenal-card .rival-return { margin: 0; }
.rival-bottom { border-radius: 18px; border-color: var(--mission-trim); background: var(--deep-panel); }
.rival-supply { align-items: center; min-height: 18px; margin-bottom: 5px; }
.ammo-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ammo-button {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px;
    text-align: left; min-height: 47px; padding: 4px 6px; border-radius: 11px;
    border: 1px solid #a0c8d659; color: #e7f4f1; background: #18364d;
}
.ammo-button .token { width: clamp(18px, 7vw, 33px); }
.ammo-button strong, .ammo-button small { display: block; }
.ammo-button strong { font-size: .71rem; }
.ammo-button small { font-size: .64rem; color: #ccdbe8; margin-top: 2px; }
.ammo-button[aria-pressed="true"] { border-color: #ffe2a0; box-shadow: inset 0 0 0 1px #ffe2a065; background: #2d5065; }
.ammo-button[data-bomb-type="storm"] { background: #3b3058; }
.ammo-button[data-bomb-type="storm"][aria-pressed="true"] { border-color: #d8bbff; box-shadow: inset 0 0 0 1px #d8bbff8c; background: #69488c; }
.ammo-button:disabled { border-color: #a0c8d62b; opacity: .68; box-shadow: none; }
.ammo-quantity { min-width: 19px; border-radius: 7px; padding: 3px 4px; background: #101d34; text-align: center; font-size: .71rem; font-weight: 850; }
.attack-approaches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.attack-approaches .ammo-button { grid-template-columns: 16px minmax(0, 1fr); min-height: 58px; }
.attack-approaches .ammo-button:last-child { color: #ffead2; background: linear-gradient(135deg, #754b49, #392c40); border-color: #ffc2a18c; }
.attack-approaches svg { width: 16px; height: 16px; color: #f9d5a8; }
.rival-bottom > .rival-return.secondary { color: #ffebd1; background: #285566; border-color: #b5c9bc; margin-top: 6px; }

.village .village-relic {
    display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 7px; padding: 5px 8px;
    color: #fff1c1; background: linear-gradient(130deg, #3b5361, #202c44);
    border: 1px solid #ffd98cb5; border-radius: 8px; font-size: .72rem; font-weight: 850;
}
.village .village-relic[hidden] { display: none; }
.village-relic [data-icon], .village-relic svg { width: 16px; height: 16px; }
.route-detour {
    width: 100%; min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 5px 8px; text-align: left;
    background: linear-gradient(135deg, #342d4b, #172f48); color: #ffebba; border: 1px solid #bd99d290; border-radius: 9px;
}
.route-detour span { flex: 1; }
.route-detour strong, .route-detour small { display: block; }
.route-detour strong { font-size: .77rem; }
.route-detour small { font-size: .66rem; color: #ddcee9; }
#route-extras:empty { display: none; }
#route-extras button + button { margin-top: 5px; }
.expedition-dialog[data-expedition="whisperglass"] .expedition-scene {
    background: linear-gradient(0deg, #142e46, #142e4600 50%), url("relic-island.webp") 50% 47% / cover;
}
.expedition-dialog[data-expedition="whisperglass"] .expedition-scene .miniature { display: none; }

.fleet-board {
    display: grid; gap: 10px; margin-top: 8px; padding: 12px;
    background: linear-gradient(145deg, #1d4156, #17273d); border: 1px solid #dfbe807d; border-radius: 14px;
}
.fleet-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ffe4aa; }
.fleet-heading p, .fleet-board > p { font-size: .73rem; color: #cde2ea; }
.fleet-heading h3 { margin-top: 3px; }
.fleet-heading svg { width: 32px; height: 32px; color: #ffdf99; }
.fleet-step { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; font-size: .76rem; color: #d6e8ef; }
.fleet-step strong { color: #ffe5a7; }
.fleet-step progress { grid-column: 1 / -1; width: 100%; height: 6px; border: 0; border-radius: 9px; overflow: hidden; accent-color: #89e2cd; }
.fleet-step progress::-webkit-progress-bar { background: #112335; }
.fleet-step progress::-webkit-progress-value { background: linear-gradient(90deg, #539eab, #a7eed6); }
.fleet-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; justify-content: space-between; font-size: .73rem; }
.fleet-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fleet-routes article { display: grid; align-content: start; gap: 6px; padding: 7px; background: #152d43; border: 1px solid #a8bbc35c; border-radius: 9px; }
.fleet-routes article > span { font-size: .69rem; color: #d0e4ec; }
.fleet-routes article > strong { color: #ffebba; font-size: .81rem; }
.team-view-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
.account-dialog form + button { margin-top: 10px; }
.account-dialog select {
    width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid #8fb8bc; border-radius: 8px;
    background: #102a3d; color: #fff3d8; font: inherit;
}
.blocked-list { display: grid; gap: 7px; list-style: none; padding: 0; }
.blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-name-button {
    border: 1px solid #a5b9cb60; border-radius: 7px; padding: 5px 6px; min-height: 32px;
    color: #e1edf7; background: #142d43; font-size: .68rem; font-weight: 800;
}
.ranking-entry:has(.report-name-button) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.team-directory .report-name-button, .rival-identity .rival-report { min-width: auto; font-size: .65rem; }
.rival-identity .rival-report { min-height: 25px; padding-block: 2px; }
.team-banner .report-name-button { margin-inline-start: auto; }
@media (orientation: landscape) and (max-width: 760px), (max-width: 350px) {
    .ammo-button { grid-template-columns: minmax(0, 1fr) auto; gap: 2px; }
    .ammo-button .token { grid-area: 1 / 1; width: 20px; }
    .ammo-button .ammo-copy { grid-area: 2 / 1 / 3 / 3; }
    .ammo-button .ammo-quantity { grid-area: 1 / 2; }
}
.storm-impact .strike-ring { border-color: #e0c5ff; box-shadow: 0 0 14px #c096ff; }
.storm-impact .strike-sparks i { background: #e9d1ff; }
.storm-impact:not(.shield-impact) .strike-impact {
    background: radial-gradient(circle, #fff 4%, #d9b4ff 30%, #9f6df988 53%, transparent 73%);
}
@media (max-width: 350px) {
    .ammo-button { gap: 3px; padding-inline: 4px; }
    .masthead-actions { gap: 0; }
    .masthead-actions .help-button > [data-icon] { width: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    button:is(.launch, .voyage-button, .rival-return, .team-secondary, .team-danger, .ammo-button, .game-nav button) {
        transition: none;
    }
}
