/* Preserve the established art; reserve sufficient space for every destination. */
.game-header{gap:16px;padding:18px 26px}
/* Keep Play in reach while browsing. Phones already have the fixed bottom navigation. */
@media(min-width:701px){
 html{scroll-padding-top:112px}
 .game-header{position:sticky;top:0;z-index:30;background:#0c1c2ef7;box-shadow:0 6px 20px #030e1d38}
}
@media(min-width:701px) and (max-width:1120px){html{scroll-padding-top:184px}}
.game-brand{flex-shrink:0}.game-brand>span:last-child{white-space:nowrap}
.game-tabs{min-width:0;flex:1;justify-content:center;gap:4px}
.game-tabs button{flex:none;white-space:nowrap;padding:10px 12px;font-size:14px;gap:8px}
.game-tabs button>span{white-space:nowrap;word-break:normal;overflow-wrap:normal;line-height:1.25}
.profile-chip{flex-shrink:0;min-width:0}.profile-chip span{display:block;white-space:nowrap;max-width:104px}
.profile-chip img{flex-shrink:0}.hud-wallet{flex-shrink:0}
.game-tabs button.nav-play,.game-tabs button.nav-play.active{min-width:142px;min-height:56px;padding:12px 24px;background:linear-gradient(#ffe0a0,#f3c37a);color:#18293c;font-size:18px;font-weight:850;border:1px solid #ffe2aa;border-radius:13px;box-shadow:0 3px 0 #8f662f55}
.game-tabs .nav-play svg,.game-tabs .nav-play.active svg{width:24px;height:24px;padding:0;border:0;background:none;color:#18293c}
/* Keep the gradient on hover: removing it exposes a transparent first transition frame. */
.game-tabs button.nav-play:hover{background:linear-gradient(#ffe8b5,#f7ce88)}.game-tabs button.nav-play:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(min-width:701px) and (max-width:1350px){.game-header{gap:12px;padding:16px 20px}.game-tabs button{padding:10px;font-size:13px}.profile-chip span{max-width:86px}}
@media(min-width:701px) and (max-width:1120px){.game-header{display:grid;grid-template-columns:auto 1fr auto;row-gap:12px}.game-tabs{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}.game-tabs button{justify-content:center}.profile-chip{grid-row:1;grid-column:2;justify-self:start}.hud-wallet{grid-row:1;grid-column:3}}
@media(max-width:700px){.game-header{gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px}.game-tabs{gap:0}.game-tabs button{padding:5px 2px;font-size:9px;gap:4px}}
@media(max-width:700px){.game-tabs button.nav-play,.game-tabs button.nav-play.active{min-width:0;width:calc(100% - 8px);justify-self:center;min-height:58px;padding:5px 2px;margin-top:-5px;font-size:11px;gap:3px;border-radius:13px}.game-tabs .nav-play svg,.game-tabs .nav-play.active svg{width:25px;height:25px}.game-tabs .nav-play>span{color:#18293c}}
/* Mode choices open their own briefing; the home screen has no duplicate launch dock. */
.lobby-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.lobby-heading>p{margin:0 0 4px;color:#a9c2da;font-size:14px}
.lobby-team{margin-top:38px;padding-top:26px;border-top:1px solid #96b5cd25}.lobby-team .section-title{margin:0 0 16px}.lobby-team .section-title h2{font-size:20px}.lobby-team .section-title small{font-size:12px;color:#a6bed1;font-weight:500;margin-inline-start:8px}
.team-overview-header{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;margin-bottom:12px;min-width:0}.team-overview-header h2{font-size:20px;line-height:1.4;margin:0;white-space:nowrap}.team-overview-header h2 small{font-size:12px;color:#a6bed1;font-weight:500;margin-inline-start:8px}.team-overview-header .team-legendary-count{margin:0;font-size:12px}.team-overview-header .team-actions{display:flex;align-items:center;gap:16px;margin-inline-start:auto}.team-overview-header .text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:0;padding:8px 0;font-size:12px;white-space:nowrap}.team-overview-header .text-button svg{width:16px;height:16px}.team-overview-header .over-limit{flex:1 1 200px}
@media(max-width:600px){.team-overview-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;margin-bottom:10px}.team-overview-header h2{font-size:18px}.team-overview-header .team-legendary-count{grid-column:1;font-size:11px}.team-overview-header .team-legendary-count svg{width:13px;height:13px}.team-overview-header .team-actions{grid-column:2;grid-row:1/3;gap:12px;flex-wrap:wrap;justify-content:flex-end;max-width:160px}.team-overview-header .text-button{font-size:11px;gap:4px}.team-overview-header .text-button svg{width:14px;height:14px}}
.lobby-team .team-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.lobby-team .dino-card{width:100%;min-height:0}.lobby-team .dino-card .art{height:auto;aspect-ratio:1}.lobby-team .card-body{padding:10px}.lobby-team .card-body h3{font-size:13px;line-height:1.3;min-height:34px}.lobby-team .species-caption,.lobby-team .card-stats,.lobby-team .copy-count,.lobby-team .equipped{display:none}.lobby-team .power-score{margin-top:10px;font-size:10px}.lobby-team .power-score b{font-size:18px}.lobby-team .nature-badge{font-size:10px}.lobby-team .card-top{padding:7px;gap:4px}.lobby-team .card-rarity,.lobby-team .card-lvl{font-size:8px;padding:4px}
.mode-context-modal{width:min(520px,calc(100vw - 24px));padding:0;border:1px solid #617d964d;border-radius:22px;background:#102238;box-shadow:0 28px 100px #020a15aa}.mode-context-modal::backdrop{background:#030d1fbb;backdrop-filter:blur(6px)}
.mode-context-modal .modal-header{padding:12px 18px;background:#102238;position:sticky;top:0}.mode-context-modal .modal-header h2{font-size:23px}
/* Native landscape artwork fills the briefing without clipping its subjects. */
.mode-context-art{overflow:hidden;position:relative;background:#0869e8}.mode-context-art img{display:block;width:100%;height:auto;max-width:100%}.mode-context-art:after{content:none}
.mode-context-art.mode-raid-boss{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:10px;height:230px;padding:12px 22px 12px 12px;background:radial-gradient(ellipse at 27% 50%,#167df4 0,#0758b7 47%,#0c2e59 100%)}
.mode-raid-boss>.mode-raid-portrait{position:relative;justify-self:center;width:min(100%,206px);height:auto;aspect-ratio:1;min-width:0;min-height:0;margin:0;overflow:hidden;border:1px solid #b4d9ff40;border-radius:14px;background:none!important;--art-fit:contain;--art-position:50% 50%}
.mode-raid-boss-copy{position:relative;min-width:0;color:#f1f6ff}
.mode-raid-boss-copy>.eyebrow{margin:0 0 8px;color:#f6cb7c;font-size:12px}
.mode-raid-boss-copy>h3{margin:0;font-size:clamp(18px,4.5vw,25px);line-height:1.25;overflow-wrap:anywhere;text-wrap:balance;text-shadow:0 2px 12px #001d4d80}
.mode-raid-boss-copy>span{display:inline-flex;align-items:center;min-height:30px;margin-top:14px;padding:4px 10px;border:1px solid #b0d8ff55;border-radius:999px;background:#062a5a70;font-size:13px;font-weight:800}
@media(max-width:380px){.mode-context-art.mode-raid-boss{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:8px;height:200px;padding:10px 14px 10px 6px}.mode-raid-boss>.mode-raid-portrait{width:min(100%,180px);height:auto}}
.mode-context-copy{padding:12px 26px 8px}.mode-context-copy h3{font-size:20px;line-height:1.4;margin:0 0 12px;letter-spacing:-.02em}.mode-context-copy>p{color:#bbcedf;font-size:14px;line-height:1.65;margin:0 0 10px}.mode-commitment{border-inline-start:3px solid #f3cc87;padding:2px 0 2px 12px;margin:15px 0;color:#f3d398;font-size:13px}.mode-commitment p{margin:4px 0;color:#c2d0de;line-height:1.5}
.mode-context-chips{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 12px}.mode-context-chips span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #7694af3d;border-radius:999px;background:#0a1d31;color:#d9eaff;font-size:12px;font-weight:800}.mode-context-chips svg{width:15px;height:15px;color:#f5ca78}.mode-context-copy>.mode-commitment{border-inline-start:3px solid #f3cc87;padding:4px 0 4px 12px;margin:12px 0;color:#f3d398;font-size:13px;font-weight:800}
.mode-context-action{position:sticky;bottom:0;background:#102238;padding:12px 26px 18px;border-top:1px solid #8ba5c11a;text-align:center}.mode-context-action>p{color:#d6e4f0;font-size:13px;margin:0 0 10px}.mode-combat-button{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(#ffe1a3,#f4c271);color:#302411;border:1px solid #ffe2a9;border-bottom:3px solid #b18239;font-size:20px;font-weight:800;border-radius:12px;box-shadow:0 4px 12px #06152566}.mode-combat-button svg{width:24px;height:24px}.mode-combat-button:disabled{opacity:.45;filter:saturate(.3)}.mode-context-action>.text-button{display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;min-height:35px;font-size:12px;color:#a9c4df}.mode-context-action>.text-button svg{width:15px;height:15px}
@media(max-width:700px){
 .lobby-heading{display:block;margin-bottom:20px}.lobby-heading>p{margin-top:10px;font-size:13px}.game-main:has(.game-lobby){padding:22px 16px 20px}
 .play-mode-grid{gap:14px}.play-mode-card{grid-template-columns:42% minmax(0,1fr);min-height:138px;border-color:#56758e70;box-shadow:0 6px 14px #020d1826}.play-mode-art{min-height:138px}.play-mode-copy{padding:18px 24px 18px 12px}.play-mode-copy strong{font-size:23px}.play-mode-copy>span{font-size:12px;line-height:1.5}.play-mode-check{width:22px;height:22px;top:9px;inset-inline-end:9px;border:0;background:#0c243a9c}.mode-unlock-badge{font-size:10px;padding:4px 6px;margin-top:8px}
 .lobby-team{margin-top:28px;padding-top:22px}.lobby-team .team-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.lobby-team .card-body{padding:8px}.lobby-team .card-body h3{font-size:12px;overflow-wrap:anywhere}.lobby-team .nature-badge{font-size:9px}.lobby-team .nature-badge svg{width:12px;height:12px}.lobby-team .power-score>span{display:none}.lobby-team .power-score{margin-top:8px}.lobby-team .power-score b{font-size:17px}.lobby-team .card-rarity{max-width:70%;font-size:7px}.lobby-team .card-lvl{font-size:7px}.lobby-team .card-top{padding:5px}
 .is-lobby .game-footer{padding-bottom:calc(var(--hud-bottom) + 20px);padding-top:8px}.is-lobby .game-footer>span{color:#8ea9bf}.is-lobby .game-footer>button{font-size:11px}.game-footer{justify-content:center}
 body:has(.is-lobby) #toast{bottom:calc(var(--hud-bottom) + 12px)}
 .mode-context-modal{max-height:calc(100dvh - 24px);border-radius:20px}.mode-context-copy{padding:10px 20px 6px}.mode-context-copy h3{font-size:18px}.mode-context-copy>p{font-size:13px}.mode-context-action{padding:10px 20px 14px}.mode-context-modal .modal-header{padding:7px 14px}
 .game-audio-control:not(.in-modal):not(.has-custom-position){bottom:calc(var(--hud-bottom) + 12px);width:38px;height:38px;inset-inline-end:12px;background:#142c43f2;border-color:#6b89a965;box-shadow:0 4px 14px #03132355}.audio-equalizer{transform:scale(.85)}
}

/* Keep names and primary actions clear on the smallest screens. */
@media(max-width:480px){.lobby-team .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lobby-team .card-body h3{font-size:13px;min-height:2.6em;overflow-wrap:normal;word-break:normal}}
.identity-card{min-width:0}.identity-card>h1,.identity-card>.eyebrow{min-width:0;max-width:100%;overflow-wrap:anywhere}
body:has(.collection-page) .game-audio-control:not(.in-modal),body:has(.encyclopedia-grid) .game-audio-control:not(.in-modal){display:none}
@media(max-width:700px){body:has(.is-tournament) .game-audio-control:not(.in-modal):not(.has-custom-position){bottom:calc(var(--hud-bottom) + 88px)}}
.mode-context-copy .mode-instructions{display:grid;gap:9px;min-width:0;margin:2px 0 14px}
.mode-context-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.mode-context-chips>span{min-width:0;white-space:normal;border-radius:12px;line-height:1.4;font-size:12px;overflow-wrap:anywhere}.mode-context-chips>span>svg{flex:none}.mode-context-chips>span>b{min-width:0;font-weight:700}.mode-context-chips>.mode-prize-chip{grid-column:1/-1;background:#15344b;color:#f3d39a}
.mode-context-copy .mode-instructions>p{margin:0;color:#bed1df;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.expedition-renewal{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;margin:0 0 14px;color:#acc8d9;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.expedition-renewal>svg{width:16px;height:16px;flex:none}.map-conquered .expedition-renewal{margin:0;justify-content:center;color:#c9e0ed}.map-conquered:has(.expedition-renewal){flex-wrap:wrap}.map-conquered>.expedition-renewal{flex-basis:100%}
@media(max-width:700px){.mode-context-copy .mode-instructions{gap:8px;margin-bottom:12px}.mode-context-copy .mode-instructions>p{font-size:13px;line-height:1.55}}
/* Match the primary controls' touch area without enlarging their text. */
@media(max-width:700px){
 .mode-context-action>.text-button{min-height:44px}
 .game-shell .game-header{grid-template-rows:38px 44px;min-height:115px}
 .game-shell .game-header .hud-wallets .hud-wallet,
 .game-shell .game-header .hud-wallets .crystal-wallet.is-compact{height:44px;min-height:44px}
 body:has(>.game-audio-control:not([hidden]):not(.in-modal):not(.has-custom-position)) .game-footer{padding-inline-end:64px;flex-wrap:wrap}
 .game-main .eggs-hub .nursery-panel>.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
}
