.desktop-download-link { position: fixed; right: max(24px, env(safe-area-inset-right,0px)); bottom: calc(96px + env(safe-area-inset-bottom,0px)); z-index: 8; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #eadbb9; text-decoration: none; border: 1px solid #c4b07155; border-radius: 6px; background: #07101bcc; font-size: 15px; }
.desktop-download-link[hidden] { display: none; }
.desktop-update-button { width: auto; text-align: left; font-family: inherit; cursor: pointer; }
.desktop-update-button:disabled { opacity: .8; cursor: default; }
@media (max-width: 700px) { .desktop-download-link { display: none; } }
.desktop-download-link:hover { background: #253629; border-color: #eadbb9; }
.desktop-download-link:focus-visible { outline: 2px solid #eadbb9; outline-offset: 3px; }
.desktop-download-link svg { width: 25px; height: 25px; flex-shrink: 0; }
.desktop-download-link small { display: block; margin-top: 3px; color: #a4bda8; font-size: 11px; }
body.arena-shell .overlay:has(.title-menu-home) { background: transparent; align-items: flex-end; justify-content: flex-start; }
body.arena-shell .panel.title-menu-home { position: absolute !important; left: 48px !important; bottom: 24px !important; top: auto !important; right: auto !important; width: auto !important; max-width: 48%; max-height: none !important; margin: 0 !important; padding: 0; border: 0; background: transparent; overflow: visible; transform: none !important; animation: none; }
body.arena-shell .title-menu-home > :not(.lobby-heading):not(.title-menu-navigation) { display: none !important; }
body.arena-shell .title-menu-home .lobby-heading { position: fixed; left: 48px; right: 48px; top: 28px; border: 0; }
body.arena-shell .title-menu-home .lobby-heading .lobby-identity { padding: 8px 12px; background: #101814c9; border-radius: 8px; }
body.arena-shell .title-menu-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
body.arena-shell .title-menu-navigation .title-menu-link { position: relative; background: transparent; border: 0; border-radius: 0; padding: 7px 14px 7px 0; min-height: 42px; color: #e8dfc6; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; letter-spacing: .8px; text-align: left; text-shadow: none; transition: color .18s; }
body.arena-shell .title-menu-link::before { content: '›'; position: absolute; left: -20px; opacity: 0; transition: opacity .18s; }
body.arena-shell .title-menu-link:is(:hover, :focus-visible) { color: #ffe6a3; transform: none; }
body.arena-shell .title-menu-link:is(:hover, :focus-visible)::before { opacity: 1; }
body.arena-shell .title-menu-back { margin-bottom: 12px; }
body.arena-shell .lobby-utility-actions #titleMenuToggle[hidden] { display: none; }
@media (max-height: 640px) {
    body.arena-shell .title-menu-home .lobby-heading { top: 12px; }
    body.arena-shell .title-menu-navigation { gap: 0; }
    body.arena-shell .title-menu-navigation .title-menu-link { font-size: 19px; min-height: 32px; padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    body.arena-shell .title-menu-link, body.arena-shell .title-menu-link::before { transition: none; }
}

body.arena-shell .overlay:has(.title-menu-setup) { background: transparent; }
body.arena-shell .panel.title-menu-setup { width: calc(100% - 32px) !important; max-width: 1240px; min-width: 0; padding: 20px 28px; background: linear-gradient(135deg,#101c24f2,#071018e8); border: 1px solid #bda76e55; border-radius: 4px; overflow-y: auto; box-sizing: border-box; }
body.arena-shell .title-menu-setup .lobby-heading { margin-bottom: 18px; }
body.arena-shell .title-menu-setup .lobby-brand-warden { width: 48px; height: 54px; flex-basis: 48px; }
body.arena-shell .title-menu-setup .lobby-wordmark { font-size: 26px; }
body.arena-shell .cinematic-setup-grid { display: grid; grid-template-columns: minmax(190px,1fr) minmax(240px,1.5fr) minmax(240px,1.2fr); gap: 30px; align-items: start; }
body.arena-shell .cinematic-wanderers .hero-cards { display: flex; flex-direction: column; gap: 4px; overflow: visible; margin: 0; }
body.arena-shell .cinematic-wanderers .hero-card-shell { width: 100%; }
body.arena-shell .cinematic-wanderers .hero-card { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 12px; flex: 1 1 auto; border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent !important; text-align: left; }
body.arena-shell .cinematic-wanderers .hero-card[aria-pressed=true] { background: #c4b07118 !important; border-left-color: #e8d196; outline: none; }
body.arena-shell .cinematic-wanderers .hero-card:hover { background: #c4b0710c !important; }
body.arena-shell .cinematic-wanderers .hero-card canvas { width: 42px; height: 42px; margin: 0; }
body.arena-shell .cinematic-wanderers .hero-card b { font: 18px Georgia,serif; color: #eadbb9; }
body.arena-shell .cinematic-wanderers .hero-card :is(span,small) { display: none; }
body.arena-shell .cinematic-wanderers .skin-toggle { right: 4px; top: 8px; }
body.arena-shell .cinematic-hero-stage { text-align: center; background: radial-gradient(ellipse at 50% 45%,#83956122,transparent 65%); }
body.arena-shell .cinematic-hero-stage canvas { width: 230px; height: 260px; max-width: 100%; object-fit: contain; }
body.arena-shell .cinematic-hero-stage h2 { font: 34px Georgia,serif; color: #efd9a3; margin: 0 0 12px; }
body.arena-shell .cinematic-hero-stage p { font-size: 14px; line-height: 1.6; color: #c4d0c8; }
body.arena-shell .cinematic-hero-stage .cinematic-hero-stats { font-size: 12px; color: #a4bda8; }
body.arena-shell .cinematic-expedition .lobby-biomes { display: flex; flex-direction: column; gap: 6px; overflow: visible; }
body.arena-shell .cinematic-expedition .lobby-biome { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; align-items: center; min-height: 64px; padding: 8px; text-align: left; border-radius: 2px; }
body.arena-shell .cinematic-expedition .lobby-biome-art { grid-row: 1 / 3; width: 58px; height: 48px; margin: 0; border-radius: 2px; }
body.arena-shell .cinematic-expedition .lobby-biome b { font: 15px Georgia,serif; }
body.arena-shell .cinematic-expedition .lobby-biome small { font-size: 10px; }
body.arena-shell .cinematic-launch { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #bda76e33; margin-top: 20px; padding-top: 16px; }
body.arena-shell .cinematic-launch .lobby-combat { max-width: 400px; width: 55%; margin: 0; }
body.arena-shell .cinematic-launch #start { min-width: 240px; min-height: 52px; font: 22px Georgia,serif; background: #354d3c; border: 1px solid #b9bf88; border-radius: 3px; color: #f1e6c7; }
body.arena-shell .cinematic-original-actions { display: none !important; }
@media (max-height: 760px) {
 body.arena-shell .title-menu-setup .lobby-heading { margin-bottom: 8px; }
 body.arena-shell .cinematic-wanderers .hero-card { min-height: 38px; padding-block: 2px; }
 body.arena-shell .cinematic-wanderers .hero-card canvas { width: 34px; height: 34px; }
 body.arena-shell .cinematic-hero-stage canvas { width: 190px; height: 215px; }
 body.arena-shell .cinematic-expedition .lobby-biome { min-height: 52px; padding: 5px; }
}
@media (max-width: 960px) {
 body.arena-shell .cinematic-setup-grid { grid-template-columns: 1fr 1.3fr; gap: 18px; }
 body.arena-shell .cinematic-expedition { grid-column: 1 / -1; }
 body.arena-shell .cinematic-expedition .lobby-biomes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (pointer: coarse) {
 body.arena-shell .overlay:has(.title-menu) { top: 0; bottom: calc(env(safe-area-inset-bottom,0px) + 48px); padding: 8px; }
 body.arena-shell .panel.title-menu-home { left: 24px !important; bottom: 12px !important; max-width: calc(100% - 48px); }
 body.arena-shell .title-menu-home .lobby-heading { left: 16px; right: 16px; top: calc(env(safe-area-inset-top,0px) + 12px); gap: 8px; }
 body.arena-shell .title-menu-home .lobby-brand-warden { width: 48px; height: 54px; flex-basis: 48px; }
 body.arena-shell .title-menu-home .lobby-wordmark { font-size: 24px; }
 body.arena-shell .title-menu-home .lobby-heading p { display: none; }
 body.arena-shell .title-menu-home .lobby-identity { font-size: 10px; max-width: 140px; }
 body.arena-shell .title-menu-home .lobby-identity .player-avatar { display: none; }
 body.arena-shell .title-menu-navigation .title-menu-link { font-size: 21px; min-height: 38px; padding-block: 5px; }
 body.arena-shell .panel.title-menu-setup { width: calc(100% - 8px) !important; padding: 12px; }
 body.arena-shell .cinematic-launch { gap: 12px; flex-wrap: wrap; }
 body.arena-shell .cinematic-launch .lobby-combat { width: 100%; }
 body.arena-shell .cinematic-launch #start { width: 100%; min-width: 0; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .cinematic-setup-grid { display: flex; flex-direction: column; gap: 16px; }
 body.arena-shell .cinematic-setup-grid > section { width: 100%; }
 body.arena-shell .cinematic-hero-stage { order: -1; }
 body.arena-shell .cinematic-hero-stage canvas { width: 120px; height: 135px; }
 body.arena-shell .cinematic-hero-stage h2 { font-size: 26px; }
 body.arena-shell .cinematic-wanderers .hero-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 body.arena-shell .cinematic-wanderers .hero-card { gap: 6px; padding-inline: 4px; }
 body.arena-shell .cinematic-wanderers .hero-card b { font-size: 15px; }
 body.arena-shell .title-menu-setup .lobby-heading:has(.lobby-brand) { grid-template-columns: 1fr; }
 body.arena-shell .title-menu-setup .lobby-heading .lobby-identity { grid-column: 1; grid-row: 2; justify-self: start; }
}

@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .title-menu-home .lobby-heading:has(.lobby-brand) { grid-template-columns: 1fr; }
 body.arena-shell .title-menu-home .lobby-heading .lobby-identity { grid-column: 1; grid-row: 2; max-width: none; justify-self: end; }
 body.arena-shell .title-menu-home .lobby-heading .lobby-identity canvas { display: none; }
}

@media (pointer: coarse) { body.arena-shell .title-menu-home .lobby-avatar { display: none; } }
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .title-menu-navigation { gap: 0; }
 body.arena-shell .title-menu-navigation .title-menu-link { min-height: 32px; padding-block: 3px; font-size: 18px; }
}

body.arena-shell .title-menu-party .lobby-heading h2 { font-family: Georgia,serif; color: #efdbad; }
body.arena-shell .title-menu-party .lobby-heading { border-bottom: 1px solid #bda76e33; padding-bottom: 12px; }
body.arena-shell .cinematic-party-connect { margin-top: 16px; border-top: 1px solid #bda76e33; padding-top: 16px; gap: 16px; }
body.arena-shell .title-menu-party :is(.lobby-host-block,.lobby-join-block,.lobby-invite,.lobby-member,.lobby-party-settings,.lobby-history) { background: #0a1a2ad9; border-color: #60819855; border-radius: 4px; }
body.arena-shell .title-menu-party .lobby-sprite-button { background: #183049; border: 1px solid #587189; color: #e1e5db; border-radius: 3px; font-family: Georgia,serif; }
body.arena-shell .title-menu-party .lobby-sprite-button:hover { background: #274460; }
body.arena-shell .title-menu-party .lobby-input { font-size: 16px; min-height: 44px; background: #071523; border-color: #50708a; }
body.arena-shell .cinematic-party-mode .lobby-combat { max-width: 400px; margin-top: 16px; }

body.arena-shell .nightfall-lobby button, body.arena-shell .lobby-utility-actions button { text-shadow: none; filter: none; }
body.arena-shell .nightfall-lobby button:is(:hover,:focus-visible,:active), body.arena-shell .lobby-utility-actions button:is(:hover,:focus-visible,:active) { filter: none; transform: none; }

body.arena-shell .cinematic-party-connect { display: grid; grid-template-columns: 1fr 1.4fr .8fr; align-items: stretch; }
body.arena-shell .cinematic-party-connect .lobby-join-block { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 8px; }
body.arena-shell .cinematic-party-connect .lobby-join-block label { grid-column: 1 / -1; margin: 0; }
body.arena-shell .cinematic-party-connect .lobby-join-block input { min-width: 0; width: 100%; }
body.arena-shell .cinematic-party-connect .lobby-find-servers { grid-column: auto; min-height: 0; }
body.arena-shell .cinematic-party-connect .lobby-sprite-button { min-height: 44px; padding: 8px 12px; }
body.arena-shell .cinematic-party-connect .lobby-host-block { display: flex; align-items: center; }
body.arena-shell .cinematic-party-connect .lobby-host-block button { width: 100%; }
body.arena-shell .cinematic-party-mode .lobby-combat { margin-top: 10px; }
body.arena-shell .cinematic-party-mode .lobby-combat :is(h3,p) { display: none; }
body.arena-shell .cinematic-party-mode .lobby-attack-toggle { min-height: 42px; padding-block: 5px; }
@media (pointer: fine) and (max-height: 850px), (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .title-menu-party { padding-block: 10px; }
 body.arena-shell .title-menu-party .lobby-heading { margin-bottom: 8px; padding-bottom: 8px; }
 body.arena-shell .title-menu-party .lobby-heading h2 { font-size: 24px; }
 body.arena-shell .title-menu-party .page-top-navigation { margin-bottom: 8px; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card { min-height: 32px; padding-block: 0; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card canvas { width: 30px; height: 30px; }
 body.arena-shell .title-menu-party .cinematic-hero-stage canvas { width: 160px; height: 180px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome { min-height: 42px; padding: 3px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome-art { height: 36px; }
 body.arena-shell .cinematic-party-connect { margin-top: 8px; padding-top: 8px; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .cinematic-party-connect { grid-template-columns: 1fr; }
}

body.arena-shell.cinematic-menu-active .nightfall-lobby :is(.lobby-combat,.lobby-party-settings,.lobby-destination,.lobby-host-block,.lobby-join-block,.lobby-invite,.lobby-member,.lobby-history,.lobby-biome) { background: #0a1a2ae8 !important; border-color: #496980; }
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-biome[aria-pressed=true] { background: #1d3850 !important; border-color: #8eabc0; }
body.arena-shell.cinematic-menu-active .nightfall-lobby :is(input,select,.lobby-attack-toggle) { background: #071525; border-color: #496980; color: #d9e5ef; }
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-attack-toggle[aria-pressed=true] { background: #18344c; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member { padding: 8px; min-height: 100px; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member canvas { width: 56px; height: 56px; }
body.arena-shell .title-menu-party :is(.lobby-invite,.lobby-party-settings) { padding: 10px; margin-block: 10px; }
body.arena-shell .title-menu-party .lobby-history { padding: 6px 10px; margin-block: 6px; }
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .title-menu-party .cinematic-setup-grid { grid-template-columns: 1.2fr .8fr 1.1fr; gap: 10px; }
 body.arena-shell .title-menu-party .cinematic-expedition { grid-column: auto; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card b { font-size: 12px; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card { gap: 4px; padding-inline: 2px; }
 body.arena-shell .title-menu-party .cinematic-hero-stage canvas { width: 90px; height: 100px; }
 body.arena-shell .title-menu-party .cinematic-hero-stage h2 { font-size: 20px; margin-bottom: 4px; }
 body.arena-shell .title-menu-party .cinematic-hero-stage p { font-size: 10px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biomes { display: flex; gap: 2px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome { min-height: 24px; grid-template-columns: 1fr; padding: 3px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome :is(canvas,small) { display: none; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome b { font-size: 11px; }
 body.arena-shell .title-menu-party .lobby-heading p { display: none; }
 body.arena-shell .title-menu-party .lobby-heading h2 { font-size: 20px; }
 body.arena-shell .title-menu-party .cinematic-party-mode { position: absolute; left: 36%; bottom: 92px; }
 body.arena-shell .title-menu-party .cinematic-party-mode .lobby-combat { width: 100%; }
 body.arena-shell .title-menu-party .cinematic-party-connect { gap: 5px; }
 body.arena-shell .title-menu-party .cinematic-party-connect .lobby-sprite-button { font-size: 12px; padding-inline: 6px; }
}

@media (pointer: fine) {
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card { min-height: 40px; padding-block: 2px; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card canvas { width: 34px; height: 34px; }
}

body.arena-shell.cinematic-menu-active .cinematic-party-connect :is(.lobby-host-block,.lobby-join-block) { background: transparent !important; border: 0; box-shadow: none; padding: 0; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-combat { margin: 0; padding: 8px; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-combat :is(h3,p) { display: none; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-destination canvas { width: 72px; height: 48px; }
body.arena-shell .title-menu-party .lobby-member.empty img { width: 48px; height: 48px; }
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-member-self { border-color: #8eabc0; box-shadow: 0 0 0 2px #29465e; }
@media (pointer: fine) and (max-height: 850px) {
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card { min-height: 30px; padding-block: 0; }
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card canvas { width: 28px; height: 28px; }
 body.arena-shell .title-menu-party .cinematic-party-mode .lobby-combat { padding: 6px; }
 body.arena-shell .title-menu-party .lobby-heading p { margin-block: 4px; }
}
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-room-settings { background: #0a1a2ae8; border-color: #496980; padding: 10px; margin-block: 8px; }
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-room-fields :is(input,select) { background: #071525; border-color: #496980; }
body.arena-shell.cinematic-menu-active .nightfall-lobby .lobby-room-actions button { background: #18344c; border-color: #587189; }
body.arena-shell .panel.title-menu-party { padding-bottom: 8px; }
body.arena-shell .title-menu-party .lobby-history { margin-bottom: 0; }
@media (pointer: fine) and (max-height: 850px) {
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome { min-height: 40px; padding-block: 2px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome-art { height: 30px; }
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biomes { gap: 4px; }
}
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-invite { padding: 4px 8px; margin-block: 6px; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-party-settings { padding: 6px; margin-block: 6px; }
body.arena-shell .title-menu-party .lobby-room-settings h3 { margin-bottom: 6px; }
body.arena-shell .title-menu-party .lobby-room-fields label { gap: 4px; }
body.arena-shell .title-menu-party .lobby-room-fields :is(input,select) { padding: 6px 10px; }
body.arena-shell .title-menu-party .lobby-room-actions { margin-top: 6px; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member { min-height: 88px; padding-block: 4px; }
body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member canvas { width: 44px; height: 44px; }
/* Keep host and join actions on the same baseline with identical button geometry. */
body.arena-shell .cinematic-party-connect { --party-button-width: clamp(120px, 18vw, 240px); grid-template-columns: var(--party-button-width) minmax(0,1fr) var(--party-button-width); align-items: end; }
body.arena-shell .cinematic-party-connect .lobby-host-block { align-items: flex-end; }
body.arena-shell .cinematic-party-connect .lobby-join-block { grid-template-columns: minmax(0,1fr) var(--party-button-width); }
/* Let the expedition roster and controls float over the lobby artwork. */
body.arena-shell .title-menu-party.title-menu-party :is(.lobby-combat,.lobby-party-settings,.lobby-destination,.lobby-host-block,.lobby-join-block,.lobby-invite,.lobby-history,.lobby-room-settings) { background: transparent !important; border-color: transparent; box-shadow: none; }

body.arena-shell .title-menu-party.title-menu-party .lobby-member-self b { color: #e8d7a9; }

body.arena-shell .title-menu-party.title-menu-party :is(input,select) { background: #080e1480 !important; border: 1px solid #c8c4b340; border-radius: 6px; box-shadow: none; }
body.arena-shell .cinematic-party-connect :is(#createLobby,#joinLobby,.lobby-find-servers) { width: var(--party-button-width); height: 48px; min-height: 48px; margin: 0; padding: 8px 12px; box-sizing: border-box; }
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .cinematic-party-connect { --party-button-width: 100%; grid-template-columns: 1fr; }
 body.arena-shell .cinematic-party-connect .lobby-join-block { grid-template-columns: 1fr; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .panel.title-menu-home { top: calc(env(safe-area-inset-top,0px) + 120px) !important; bottom: 8px !important; max-height: none !important; overflow-y: auto; }
 body.arena-shell .title-menu-home .title-menu-link { min-height: 28px; padding-block: 2px; font-size: 17px; }
}
body.arena-shell .lobby-utility-actions { background: transparent; border: 0; padding: 0; }
body.arena-shell .lobby-utility-actions button, body.arena-shell .lobby-utility-actions .language-picker select { border: 0; background: #071525df; box-shadow: none; }
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .overlay:has(.nightfall-lobby:not(.title-menu)) { top: calc(env(safe-area-inset-top,0px) + 8px); bottom: calc(env(safe-area-inset-bottom,0px) + 48px); padding: 8px; }
 body.arena-shell .panel.nightfall-lobby:not(.title-menu) { padding: 12px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; overflow: visible; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell { min-width: 0; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card { min-width: 0; width: 100%; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell:not(.cinematic-menu-active) .lobby-utility-actions { flex-direction: column; align-items: stretch; flex-wrap: nowrap; right: calc(env(safe-area-inset-right,0px) + 8px); bottom: calc(env(safe-area-inset-bottom,0px) + 8px); max-width: 100px; gap: 6px; }
 body.arena-shell:not(.cinematic-menu-active) .lobby-utility-actions .language-picker { align-self: center; }
 body.arena-shell:not(.cinematic-menu-active) .overlay:has(.nightfall-lobby) { right: calc(env(safe-area-inset-right,0px) + 112px); bottom: calc(env(safe-area-inset-bottom,0px) + 8px); }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .lobby-utility-actions, body.arena-shell.cinematic-menu-active .lobby-utility-actions { flex-direction: column; align-items: stretch; flex-wrap: nowrap; right: calc(env(safe-area-inset-right,0px) + 8px); bottom: calc(env(safe-area-inset-bottom,0px) + 8px); max-width: 100px; gap: 6px; }
 body.arena-shell .lobby-utility-actions .language-picker { align-self: center; }
 body.arena-shell .overlay:has(.nightfall-lobby), body.arena-shell .overlay:has(.title-menu) { right: calc(env(safe-area-inset-right,0px) + 112px); bottom: calc(env(safe-area-inset-bottom,0px) + 8px); }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .lobby-utility-actions { flex-direction: row; flex-wrap: nowrap; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading:has(.lobby-brand) { display: grid; grid-template-columns: 1fr; gap: 8px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading .lobby-identity { position: static; grid-column: 1; grid-row: 2; justify-self: end; font-size: 11px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-avatar { display: none; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-brand-warden { width: 48px; height: 54px; flex-basis: 48px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-wordmark { font-size: 26px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-brand p { font-size: 11px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card { min-height: 140px; padding: 8px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card canvas { width: 58px; height: 58px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card b { font-size: 14px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card :is(span,small) { font-size: 10px; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell.cinematic-menu-active .overlay:has(.title-menu) { right: calc(env(safe-area-inset-right,0px) + 112px); bottom: calc(env(safe-area-inset-bottom,0px) + 8px); }
}
@media (pointer: fine) {
 body.arena-shell .lobby-utility-actions { bottom: calc(env(safe-area-inset-bottom,0px) + 52px); }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading:has(.lobby-brand), body.arena-shell .title-menu-home .lobby-heading:has(.lobby-brand) { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading .lobby-identity, body.arena-shell .title-menu-home .lobby-heading .lobby-identity { grid-column: 2; grid-row: 1; font-size: 9px; max-width: 130px; padding: 4px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-brand, body.arena-shell .title-menu-home .lobby-brand { gap: 4px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-brand-warden, body.arena-shell .title-menu-home .lobby-brand-warden { width: 30px; height: 36px; flex-basis: 30px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading .lobby-wordmark, body.arena-shell .title-menu-home .lobby-heading .lobby-wordmark { font-size: 19px; letter-spacing: 1px; }
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-brand p { font-size: 9px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell { width: 100%; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell > .hero-card { flex: 1 1 0; max-width: none; width: 100%; box-sizing: border-box; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .skin-toggle { right: 3px; top: 5px; width: 22px; min-width: 22px; padding: 3px; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell.cinematic-menu-active .lobby-utility-actions { right: env(safe-area-inset-right,0px); }
 body.arena-shell .title-menu-home .lobby-heading { left: 24px; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card { min-height: 132px; padding: 5px 3px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card canvas { width: 42px; height: 42px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card b { font-size: 11px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card span { font-size: 9px; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card small { display: none; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card .hero-status { font-size: 7px; padding-right: 12px; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card .hero-status { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
}
@media (pointer: coarse) {
 body.arena-shell .title-menu-home .lobby-avatar { display: flex; width: 28px; height: 28px; min-width: 28px; }
 body.arena-shell .title-menu-home .lobby-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
 body.arena-shell .lobby-utility-actions #titleMenuToggle { order: 0; }
 body.arena-shell .lobby-utility-actions #openGameSettings { order: 1; }
 body.arena-shell .lobby-utility-actions #lobbySound { order: 2; }
 body.arena-shell .lobby-utility-actions .language-picker { order: 3; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .lobby-utility-actions, body.arena-shell:not(.cinematic-menu-active) .lobby-utility-actions, body.arena-shell.cinematic-menu-active .lobby-utility-actions { position: fixed; right: calc(env(safe-area-inset-right,0px) + 16px); width: 100px; max-width: 100px; align-items: stretch; }
 body.arena-shell .lobby-utility-actions .language-picker { align-self: stretch; width: 100%; }
 body.arena-shell .lobby-utility-actions .language-picker select, body.arena-shell.cinematic-menu-active .lobby-utility-actions .language-picker select { width: 100%; height: 32px; color: #cfdfec; padding: 5px 4px 5px 27px; font-size: 11px; appearance: none; }
 body.arena-shell .lobby-utility-actions .language-globe { left: 5px; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .title-menu-home .lobby-heading { left: 48px; }
 body.arena-shell .title-menu-home .lobby-heading .lobby-identity { max-width: 220px; display: flex; align-items: flex-start; gap: 6px; }
}
@media (pointer: coarse) and (orientation: landscape) {
 body.arena-shell .lobby-utility-actions, body.arena-shell:not(.cinematic-menu-active) .lobby-utility-actions, body.arena-shell.cinematic-menu-active .lobby-utility-actions { right: 4px; left: auto; transform: none; }
}
@media (pointer: coarse) {
 body.arena-shell .nightfall-lobby .lobby-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; box-sizing: border-box; border-radius: 50%; overflow: hidden; }
 body.arena-shell .nightfall-lobby .lobby-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .lobby-utility-actions, body.arena-shell.cinematic-menu-active .lobby-utility-actions { bottom: calc(env(safe-area-inset-bottom,0px) + 44px); right: calc(env(safe-area-inset-right,0px) + 6px); }
 body.arena-shell:not(.cinematic-menu-active) .overlay:has(.nightfall-lobby) { bottom: calc(env(safe-area-inset-bottom,0px) + 84px); }
 body.arena-shell .nightfall-lobby .lobby-heading .lobby-identity { max-width: 150px; }
}
@media (pointer: coarse) {
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-avatar, body.arena-shell .title-menu-home .lobby-avatar { display: grid; flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; border-radius: 50%; }
}

/* Classic cards fill their grid cells in either phone orientation. */
@media (pointer: coarse) {
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell { width: 100%; }
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell > .hero-card { flex: 1 1 0; max-width: none; width: 100%; box-sizing: border-box; }
}

body.arena-shell .cinematic-wanderers .skin-toggle{background:transparent!important;border:0;box-shadow:none}
@media(pointer:coarse){
 body.arena-shell .cinematic-wanderers .skin-toggle{opacity:1;pointer-events:auto;top:0;bottom:0;margin-block:auto;transform:none}
 body.arena-shell .cinematic-wanderers .hero-card-shell{height:auto;align-items:center}
 body.arena-shell .cinematic-wanderers .hero-card-shell>.hero-card{height:auto}
 body.arena-shell .cinematic-wanderers .hero-card{padding-right:28px}
}
@media(pointer:coarse) and (orientation:landscape){
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-cards{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));grid-auto-rows:minmax(170px,auto);gap:4px;align-content:start;justify-content:start}
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell{height:auto}
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-card-shell>.hero-card{height:auto;min-height:0}
 body.arena-shell .lobby-utility-actions .lobby-sound-control{width:100%;min-width:0;align-self:stretch;justify-items:start}
 body.arena-shell .lobby-utility-actions .lobby-sound-control #lobbySound{width:36px}
 body.arena-shell .lobby-volume-popover{left:0;right:auto}
 body.arena-shell .title-menu-party .cinematic-party-mode{position:static;clear:both;margin-top:10px}
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome{grid-template-columns:36px minmax(0,1fr);min-height:36px;column-gap:5px}
 body.arena-shell .title-menu-party .cinematic-expedition .lobby-biome canvas{display:block;width:36px;height:30px;grid-row:1 / 3}
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card{padding-right:24px}
}

/* The phone home menu sits directly on the artwork, anchored like desktop. */
@media(pointer:coarse){
 body.arena-shell .overlay:has(.title-menu-home){background:transparent;border:0;box-shadow:none}
 body.arena-shell .panel.title-menu-home{top:auto!important;bottom:12px!important;left:24px!important;height:auto;max-height:calc(100dvh - 140px)!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0;overflow-y:auto}
 body.arena-shell .title-menu-home .title-menu-navigation{margin:0}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card b{font-size:15px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card span{font-size:11px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card small{font-size:11px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card canvas{width:64px;height:64px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .lobby-heading .lobby-wordmark{font-size:24px}
}
@media(pointer:coarse) and (orientation:landscape){
 body.arena-shell .lobby-scroll-layout:not(.title-menu) .hero-cards{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-auto-rows:minmax(220px,auto)}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card canvas{width:84px;height:84px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card b{font-size:17px}
 body.arena-shell .nightfall-lobby:not(.title-menu) .hero-card :is(span,small){font-size:12px}
}
/* Keep account controls at the upper-right edge of each lobby panel. */
body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-heading .lobby-identity { position: absolute; top: 20px; right: 28px; margin: 0; padding-top: 0; }
body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-heading:has(.lobby-identity) { padding-right: 220px; }
body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-heading .lobby-identity { display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; width: max-content; max-width: 220px; }
body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-identity > div { flex: 0 1 auto; }
@media (pointer: coarse) {
 body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-heading .lobby-identity { top: 12px; right: 12px; max-width: 150px; }
 body.arena-shell .nightfall-lobby:not(.title-menu-home) .lobby-heading:has(.lobby-identity) { padding-right: 0; padding-top: 80px; }
}
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell .nightfall-lobby:not(.title-menu-home) .page-top-navigation { padding-right: 150px; flex-wrap: wrap; justify-content: flex-start; }
}
/* Shared moonlit-blue palette for all progression menus. */
body.arena-shell .panel:is(.panel-talents,.panel-achievements,.market-page-shell,:has(.leaderboard-page)) { background: linear-gradient(135deg,#101c24f2,#071018e8); border-color: #bda76e55; color: #d9e5ef; border-radius: 4px; }
body.arena-shell :is(.panel-talents,.panel-achievements,.market-page-shell,.panel:has(.leaderboard-page)) :is(.talent-node,.achievement,.market-tile,.market-objective,.challenges-hub-card,.talent-detail,.talent-heart,.market-build-ingredients>div) { background: #0a1a2ae8; border-color: #496980; color: #d9e5ef; }
body.arena-shell :is(.panel-talents,.panel-achievements) .progression-navigation { background: #101c24; }
body.arena-shell .talent-map-viewport { background: #071018; border-color: #496980; }
body.arena-shell .talent-paths path { stroke: #354e63; }
body.arena-shell .talent-paths path.open { stroke: #bda76e; }
body.arena-shell .panel-talents .talent-orb { background: #18344c; border-color: #6b8da6; }
body.arena-shell .panel-talents .talent-orb.locked { background: #0a1825; border-color: #354e63; }
body.arena-shell .panel-talents .talent-orb.mastered { background: #294257; border-color: #dfc681; }
body.arena-shell .panel-talents .talent-rank { background: #071525; border-color: #6b8da6; }
body.arena-shell :is(.panel-talents,.panel-achievements,.market-page-shell,.panel:has(.leaderboard-page)) :is(select,input,.quiet,.lobby-sprite-button) { background: #183049; border-color: #587189; color: #e1e5db; }
body.arena-shell :is(.panel-talents,.panel-achievements,.market-page-shell) :is(.achievement.earned,.market-tile.selected,.market-tile:hover,.chronicle-category.active,.market-tabs button[aria-pressed=true]) { background: #1d3850; border-color: #8eabc0; color: #e8d7a9; }
body.arena-shell :is(.panel-talents,.panel-achievements,.market-page-shell) :is(.chronicle-category:not(.active),.market-mastery-intro) { background: transparent; }
body.arena-shell .leaderboard-page th, body.arena-shell .market-shop-page .market-status { background: #101c24; color: #d9e5ef; }
body.arena-shell :is(.panel-talents,.panel-achievements,.market-page-shell,.leaderboard-page) :is(p,small,.talent-map-tools,.market-character,.market-pose) { color: #b7c8d5; }
/* Phone progression pages share one header rhythm and back-button size. */
@media (pointer: coarse) {
 body.arena-shell .panel:is(.panel-talents,.panel-achievements,.market-page-shell,:has(.leaderboard-page)) { padding: 12px; }
 body.arena-shell :is(.panel-talents,.panel-achievements) > .eyebrow { display: none; }
 body.arena-shell :is(.panel-talents,.panel-achievements) > .progression-navigation,
 body.arena-shell :is(.market-page,.leaderboard-page) > :is(.market-top-back,.page-top-navigation) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; position: static; min-height: 40px; margin: 0 0 16px; padding: 0; border: 0; background: transparent; }
 body.arena-shell :is(#talentBack,#chronicleBack,.market-top-back button,.leaderboard-page .page-top-navigation button) { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 112px; min-width: 112px; max-width: 112px; height: 40px; min-height: 40px; margin: 0 !important; padding: 8px 12px; font: 600 13px/1.2 system-ui; border: 1px solid #587189; border-radius: 4px; }
 body.arena-shell :is(.market-page,.leaderboard-page) > .lobby-heading { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: auto; min-height: 0; gap: 8px; margin: 0 0 16px; padding: 0 0 12px; text-align: center; }
 body.arena-shell :is(.panel-talents,.panel-achievements) > h2,
 body.arena-shell :is(.market-page,.leaderboard-page) > .lobby-heading h2 { margin: 0 0 8px; font: 700 22px/1.2 system-ui; text-align: center; letter-spacing: 0; }
 body.arena-shell :is(.market-page,.leaderboard-page) > .lobby-heading p,
 body.arena-shell .panel-talents > p:not(.hint) { margin: 0; font-size: 11px; line-height: 1.5; text-align: center; }
 body.arena-shell .panel-talents > p:not(.hint) { margin-bottom: 16px; }
 body.arena-shell :is(.panel-achievements,.challenge-page) .chronicle-summary { position: static; height: auto; min-height: 0; flex-shrink: 0; margin: 8px auto 16px; gap: 8px; font-size: 11px; line-height: 1.5; }
 body.arena-shell .market-heading-actions { position: static; height: auto; line-height: 1.5; }
 body.arena-shell .market-wallet { font-size: 11px; }
 body.arena-shell :is(.panel-achievements,.challenge-page) :is(.chronicle-section-heading,.chronicle-card-heading,.market-progress-line) { height: auto; min-height: 0; flex-wrap: wrap; gap: 6px; }
 body.arena-shell :is(.panel-achievements,.challenge-page) :is(h3,p,small) { overflow-wrap: anywhere; }
}
body.arena-shell :is(#talentBack,#chronicleBack,.market-top-back button,.leaderboard-page .page-top-navigation button) { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 112px; min-width: 112px; max-width: 112px; height: 40px; min-height: 40px; margin: 0 !important; padding: 8px 12px; font: 600 13px/1.2 system-ui; border: 1px solid #587189; border-radius: 4px; }
/* Keep portrait menu controls below the iPhone status bar and notch. */
@media (pointer: coarse) and (orientation: portrait) {
 body.arena-shell { --menu-safe-top: max(24px, env(safe-area-inset-top,0px)); }
 body.arena-shell .overlay:has(:is(.nightfall-lobby,.panel-talents,.panel-achievements,.leaderboard-page)) { top: calc(var(--menu-safe-top) + 8px) !important; }
 body.arena-shell .title-menu-home .lobby-heading { top: calc(var(--menu-safe-top) + 12px); }
 body.arena-shell .panel:is(.panel-talents,.panel-achievements,.market-page-shell,:has(.leaderboard-page)) { max-height: calc(100dvh - var(--menu-safe-top) - 72px); }
}

/* Screen-sized navigation pages, retaining only a safe edge gutter. */
body.arena-shell .overlay:has(> .panel:is(.panel-talents,.panel-achievements,.challenge-page,.challenge-page-shell,.nightfall-lobby:not(.title-menu-home))) {
 top:calc(env(safe-area-inset-top,0px) + 12px)!important; bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;
 left:calc(env(safe-area-inset-left,0px) + 12px)!important; right:calc(env(safe-area-inset-right,0px) + 12px)!important;
 padding:0!important; align-items:stretch; justify-content:stretch;
}
body.arena-shell .overlay > .panel:is(.panel-talents,.panel-achievements,.challenge-page,.challenge-page-shell,.nightfall-lobby:not(.title-menu-home)) {
 position:relative!important; inset:auto!important; margin:0!important; width:100%!important; min-width:0!important; max-width:none!important;
 height:100%!important; max-height:100%!important; box-sizing:border-box; transform:none!important;
}
body.arena-shell .overlay > .panel:is(.panel-achievements,.challenge-page,.challenge-page-shell,.nightfall-lobby:not(.title-menu-home)) { overflow-y:auto; }
@media(max-width:700px) { body.arena-shell .overlay:has(> .panel:is(.panel-talents,.panel-achievements,.challenge-page,.challenge-page-shell,.nightfall-lobby:not(.title-menu-home))) { top:calc(env(safe-area-inset-top,0px) + 6px)!important; bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important; left:calc(env(safe-area-inset-left,0px) + 6px)!important; right:calc(env(safe-area-inset-right,0px) + 6px)!important; } }

body.arena-shell .lobby-utility-actions[hidden] { display:none!important; }

body.arena-shell .title-menu-home .title-menu-navigation .title-menu-balance-link { margin-top:22px; font-size:18px; color:#b8c9d3; }
body.arena-shell .title-menu-home .title-menu-balance-link::after { content:" ↗"; display:inline-block; margin-left:8px; color:#d9c48b; font:18px system-ui; }

body.arena-shell .title-menu-back { background:#183049; border:1px solid #587189; color:#e1e5db; border-radius:5px; padding:10px 22px; min-height:40px; font:600 13px system-ui; }

body.arena-shell .title-menu-home > .lobby-release { display:block!important; position:fixed; right:20px; bottom:8px; }

/* Give large setup screens a central preview and an anchored action footer. */
@media(min-width:960px) and (min-height:700px) {
 body.arena-shell .panel.title-menu-setup { display:flex; flex-direction:column; overflow-y:auto; padding-bottom:30px; }
 body.arena-shell .title-menu-setup > :is(.title-menu-back,.page-top-navigation,.lobby-heading,.lobby-invite) { flex:none; }
 body.arena-shell .title-menu-setup .cinematic-setup-grid { flex:1; min-height:450px; align-items:center; padding-block:20px; }
 body.arena-shell .title-menu-setup .cinematic-hero-stage canvas { width:clamp(280px,26vw,400px); height:auto; aspect-ratio:8/9; }
 body.arena-shell .title-menu-setup .cinematic-launch { flex:none; margin-top:auto; padding-top:18px; }
 body.arena-shell .title-menu-party .cinematic-party-mode { margin-top:auto; flex:none; border-top:1px solid #bda76e33; padding-top:14px; }
 body.arena-shell .title-menu-party .cinematic-party-connect { flex:none; }
 body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-roster { flex:1; min-height:260px; align-content:center; margin-block:18px; }
 body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member { min-height:230px; padding:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
 body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member canvas { width:clamp(100px,12vw,190px); height:clamp(100px,12vw,190px); }
 body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-member.empty > img { width:100px; height:100px; object-fit:contain; }
 body.arena-shell .title-menu-party:not(:has(.cinematic-setup-grid)) .lobby-party-settings { margin-top:auto; flex:none; }
 body.arena-shell .title-menu-party > :is(.lobby-party-actions,.lobby-history,.lobby-status) { flex:none; }
}

body.arena-shell .title-menu-setup > .title-menu-back { align-self:flex-start; width:auto; }
/* Keep the party preview and roster inside their grid, above the action footer. */
@media(min-width:960px) and (min-height:700px){
 body.arena-shell .title-menu-party .cinematic-setup-grid{flex:1 0 auto;min-height:410px;align-items:center;padding-block:12px}
 body.arena-shell .title-menu-party .cinematic-hero-stage{justify-self:center;width:100%;max-width:360px}
 body.arena-shell .title-menu-party .cinematic-hero-stage canvas{display:block;width:clamp(230px,19vw,290px);height:auto;margin:0 auto 6px}
 body.arena-shell .title-menu-party .cinematic-hero-stage h2{margin-bottom:6px}
 body.arena-shell .title-menu-party .cinematic-hero-stage p{margin:6px auto;max-width:340px}
 body.arena-shell .title-menu-party .cinematic-hero-stage>.character-level-ring{left:calc(50% - clamp(115px,9.5vw,145px) + 12px);top:12px;width:38px;height:38px;font-size:16px}
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card{min-height:40px;flex:none}
 body.arena-shell .title-menu-party .cinematic-wanderers .hero-card canvas{flex:none;width:36px;height:36px}
 body.arena-shell .title-menu-party .cinematic-party-mode{margin-top:16px}
}
@media(min-width:960px) and (min-height:700px){
 body.arena-shell .title-menu-party .cinematic-setup-grid{min-height:380px;padding-block:8px}
 body.arena-shell .title-menu-party .cinematic-hero-stage canvas{width:clamp(210px,17vw,250px)}
 body.arena-shell .title-menu-party .cinematic-hero-stage>.character-level-ring{left:calc(50% - clamp(105px,8.5vw,125px) + 12px)}
 body.arena-shell .title-menu-party .cinematic-party-mode{margin-top:8px;padding-top:10px;padding-bottom:10px}
 body.arena-shell .title-menu-party .cinematic-party-mode .lobby-combat{margin:0}
}
/* Size setup content from available viewport height; never let it spill into the footer. */
@media(min-width:960px){
 body.arena-shell .panel.title-menu-setup .cinematic-setup-grid{flex:1 0 auto;min-height:0;align-items:center;padding-block:12px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage{justify-self:center;width:100%;max-width:360px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage canvas{display:block;width:clamp(160px,28vh,250px);height:auto;aspect-ratio:8/9;margin:0 auto 6px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage h2{margin-bottom:6px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage p{margin:6px auto;max-width:340px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage>.character-level-ring{left:calc(50% - clamp(80px,14vh,125px) + 12px);top:12px;width:38px;height:38px;font-size:16px}
 body.arena-shell .panel.title-menu-setup .cinematic-wanderers .hero-card{min-height:clamp(30px,4.3vh,40px);flex:none;padding-block:2px}
 body.arena-shell .panel.title-menu-setup .cinematic-wanderers .hero-card canvas{flex:none;width:34px;height:34px}
 body.arena-shell .panel.title-menu-setup .cinematic-launch{margin-top:12px}
}
body.arena-shell .panel.title-menu-setup .cinematic-wanderers .hero-card-shell{position:relative;height:auto;align-items:center}
body.arena-shell .panel.title-menu-setup .cinematic-wanderers .skin-toggle{top:0;bottom:0;margin-block:auto;height:30px;min-height:30px;width:24px;padding:3px;transform:none}
@media(pointer:fine) and (min-width:700px){
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage canvas{width:clamp(180px,23vw,250px);height:auto;aspect-ratio:8/9;margin:0 auto 6px}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage h2{font-size:clamp(24px,2.5vw,32px)}
 body.arena-shell .panel.title-menu-setup .cinematic-wanderers .hero-card canvas{width:42px;height:42px;flex:none}
 body.arena-shell .panel.title-menu-setup .cinematic-hero-stage>.character-level-ring{left:calc(50% - clamp(90px,11.5vw,125px) + 12px);top:12px;width:38px;height:38px;font-size:16px}
}
