/* Shared materials for the site menus. Illustrated stages and combat effects have their own palettes. */
.progress-hub1272{box-sizing:border-box;min-width:0;margin:12px 0;border:1px solid var(--liga-line);border-radius:14px;background:var(--liga-paper);color:var(--liga-ink);overflow:hidden;}
.progress-hub1272>summary{min-height:56px;box-sizing:border-box;padding:12px 16px;cursor:pointer;color:var(--liga-ink)!important;}
.progress-hub-copy1272{display:inline-grid;gap:4px;vertical-align:middle;max-width:calc(100% - 24px);}
.progress-hub-copy1272 strong{font-size:1rem;color:var(--liga-ink)!important;}
.progress-hub-copy1272 small{font-size:.875rem;line-height:1.4;color:var(--liga-muted)!important;overflow-wrap:anywhere;}
.progress-hub-content1272{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;padding:0 12px 12px;}
body.rojo-liga .progress-hub-content1272>:is(.profile-entry1259,.legacy-entry1252,.focus1257){margin:0!important;padding:12px!important;display:flex!important;flex-direction:column;align-items:stretch;gap:8px;background:var(--liga-soft)!important;box-shadow:none;border-radius:10px;}
body.rojo-liga .progress-hub-content1272 :is(h2,h3){font-size:1.05rem!important;line-height:1.3!important;}
body.rojo-liga .progress-hub-content1272 :is(p,span,small){font-size:.9rem!important;line-height:1.4!important;}
body.rojo-liga .progress-hub-content1272 button{margin-top:auto!important;min-height:44px;max-width:100%;width:100%;white-space:normal;}
@media(max-width:600px){.progress-hub-content1272{grid-template-columns:minmax(0,1fr);}.progress-hub1272>summary{padding:12px;}}
body.rojo-liga {
  color-scheme: light;
  --liga-bg: #f4efeb;
  --liga-paper: #fffcf8;
  --liga-panel: #fff;
  --liga-soft: #f5eeea;
  --liga-line: #ddceca;
  --liga-ink: #282128;
  --liga-muted: #62545c;
  --liga-red: #ae2340;
  --liga-deep: #82172f;
  --liga-tint: #fae8ec;
  --liga-shadow: 0 6px 20px #45233014;
  --menu-bg: var(--liga-bg);
  --menu-surface: var(--liga-panel);
  --menu-raised: var(--liga-soft);
  --menu-line: var(--liga-line);
  --menu-ink: var(--liga-ink);
  --menu-muted: var(--liga-muted);
  --menu-gold: var(--liga-red);
  --arena-bg456: var(--liga-bg);
  --arena-panel456: var(--liga-panel);
  --arena-line456: var(--liga-line);
  --arena-ink456: var(--liga-ink);
  --arena-muted456: var(--liga-muted);
  --arena-gold456: var(--liga-red);
  --arena-panel: var(--liga-paper);
  --arena-ink: var(--liga-ink);
  --arena-muted: var(--liga-muted);
  --arena-line: var(--liga-line);
  --arena-gold: var(--liga-red);
}

/* Catalog cards use the same paper surfaces as the rest of the collection. */
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 {
  background:var(--liga-soft)!important;
  border-color:var(--liga-line)!important;
  color:var(--liga-ink)!important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 strong {
  color:var(--liga-ink)!important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 .pool-status1246 {
  color:var(--liga-muted)!important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 .pool-owned1246 {
  color:#226047!important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732:focus-visible {
  outline:3px solid var(--liga-red)!important;outline-offset:2px;
}
/* Menu additions share the same paper surfaces, including asynchronously loaded dialogs. */
body.rojo-liga :is(.profile-entry1259,.profile-hero1259,.profile-block1259,.legacy-entry1252,.legacy-section1252,.focus1257,.preparation-scout,.side-routes854) {
  background:var(--liga-paper)!important;
  border-color:var(--liga-line)!important;
  color:var(--liga-ink)!important;
  box-shadow:var(--liga-shadow);
}
body.rojo-liga :is(.profile-entry1259,.profile1259,.legacy-entry1252,.legacy-dialog1252,.focus1257,.preparation-scout,.side-routes854) :is(h2,h3,h4,strong,summary) {
  color:var(--liga-ink)!important;
}
body.rojo-liga :is(.profile-entry1259,.profile1259,.legacy-entry1252,.legacy-dialog1252,.focus1257,.preparation-scout,.side-routes854) :is(p,small,span) {
  color:var(--liga-muted)!important;
}
body.rojo-liga :is(.profile-stats1259 article,.profile-badge1259,.profile-row1259,.legacy-section1252 article,.season-row1257,.prep-scout-line,.prep-scout-team,.prep-scout-options,.side-route854) {
  background:var(--liga-soft)!important;
  border-color:var(--liga-line)!important;
  color:var(--liga-ink)!important;
}
body.rojo-liga .profile-badge1259[data-earned=true] {
  background:var(--liga-tint)!important;
  border-color:var(--liga-red)!important;
}
body.rojo-liga .preparation-scout .prep-scout-line[data-tone=threat] {border-inline-start-color:#a76324!important;}
body.rojo-liga .preparation-scout .prep-scout-line[data-tone=response] {border-inline-start-color:#288064!important;}
body.rojo-liga .preparation-scout .prep-scout-team .prep-strategy1251 {color:#226047!important;}
body.rojo-liga .legacy-dialog1252 .legacy-lab1253 {
  background:var(--liga-tint)!important;
  color:var(--liga-deep)!important;
  border-color:var(--liga-line)!important;
}
@media(max-width:600px) {
  body.rojo-liga .profile-entry1259 {grid-template-columns:minmax(0,1fr);}
  body.rojo-liga .profile-entry1259 button {grid-column:1;grid-row:auto;width:100%;}
}
body.rojo-liga:not([data-duel]) { background: var(--liga-bg) !important; color: var(--liga-ink); }
.rojo-liga ::selection { color: var(--liga-deep); background: var(--liga-tint); }
body.rojo-liga :is(button,a,select,input,summary):focus-visible {
  outline: 3px solid var(--liga-red) !important;
  outline-offset: 3px;
}
.rojo-liga :is(.arena-header456,.arena-header456 nav,.language565 select) {
  color: var(--liga-ink) !important;
}
body.rojo-liga :is(.arena-header456,.quick-more-list893) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  box-shadow: var(--liga-shadow) !important;
}
body.rojo-liga :is(.arena-logo456,.arena-header456 nav a,.arena-header456 nav button,.quick-more893>summary) {
  color: var(--liga-ink) !important;
}
body.rojo-liga :is(.arena-logo456 small,.page-kicker528,.arena-eyebrow924) {
  color: var(--liga-deep) !important;
}

body.rojo-liga.arena-menu.menu-theme586.game-title-screen { background: var(--liga-bg) !important; color: var(--liga-ink); }
body.rojo-liga.game-title-screen .arena-header456 :is(.arena-logo456, nav a, nav button, .language565 span) {
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-title-screen .arena-header456 .arena-logo456 small { color: var(--liga-deep) !important; }

/* Home uses the arena as an illustration beside the main action. */
body.rojo-liga.game-title-screen .hero380.adventure-hero562 {
  background:
    linear-gradient(90deg,#fffcf8 0%,#fffcf8 35%,#fffcf8d9 51%,#fffcf800 79%),
    url('assets/game-interface/title-arena.webp') right top/auto 74% no-repeat,
    var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  box-shadow: var(--liga-shadow) !important;
}
body.rojo-liga.game-title-screen #home-title {
  color: var(--liga-ink) !important;
  text-shadow: none;
}
body.rojo-liga.game-title-screen #home-title em { color: var(--liga-red) !important; }
body.rojo-liga.game-title-screen .adventure-hero562 :is(#adventure-description562,#adventure-save562) {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-title-screen .hero-actions #adventure-cta562 {
  background: var(--liga-red) !important;
  border-color: var(--liga-deep) !important;
  color: #fff !important;
  box-shadow: 0 3px var(--liga-deep) !important;
}
body.rojo-liga.game-title-screen .hero-actions #adventure-cta562:hover { background: var(--liga-deep) !important; }
body.rojo-liga.game-title-screen .adventure-hero562 .journey-card562 {
  border-color: var(--liga-line) !important;
  background: var(--liga-paper) !important;
  box-shadow: var(--liga-shadow) !important;
}
body.rojo-liga.arena-menu.menu-theme586.game-title-screen .journey-card562 .journey-body562 {
  background: var(--liga-paper) !important;
  color: var(--liga-muted);
}
body.rojo-liga.arena-menu.menu-theme586.game-title-screen .journey-body562 :is(p,li,small),
body.rojo-liga.game-title-screen .journey-foot562 { color: var(--liga-muted) !important; }
body.rojo-liga.game-title-screen .journey-card562 .journey-art562 :is(h2,p) { color: #fff !important; }
body.rojo-liga.game-title-screen .journey-card562 :is(p,li),
body.rojo-liga.game-title-screen :is(.home>footer,.legal-links898) { color: var(--liga-muted) !important; }
body.rojo-liga.game-title-screen .journey-card562 :is(h2,strong),
body.rojo-liga.game-title-screen :is(.home>footer,.legal-links898) a { color: var(--liga-deep) !important; }
body.rojo-liga .game-mode-select h2 { color: var(--liga-ink) !important; }
body.rojo-liga .game-mode-select .game-mode {
  background:
    linear-gradient(0deg,var(--liga-paper) 0 44px,#fffcf800 44px),
    var(--mode-art) center 44%/cover;
  border-color: var(--liga-line);
  border-bottom: 2px solid var(--liga-line);
  color: var(--liga-ink) !important;
  padding-block: 10px;
}
body.rojo-liga .game-mode-select .game-mode :is(strong,span) { color: inherit; }
body.rojo-liga .game-mode-select .game-mode:hover { border-color: var(--liga-red); box-shadow: none; }
@media (max-width: 700px) {
  body.rojo-liga.game-title-screen .hero380.adventure-hero562 {
    background:
      linear-gradient(180deg,#fffcf800 20px,#fffcf8 167px),
      url('assets/game-interface/title-arena.webp') center top/100% 170px no-repeat,
      var(--liga-paper) !important;
  }
  body.rojo-liga.game-title-screen .hero-copy380 { padding-top: 118px; }
  body.rojo-liga .game-mode-select .game-mode {
    min-height: 120px;
    background-image: linear-gradient(0deg,var(--liga-paper) 0 52px,#fffcf800 52px), var(--mode-art);
  }
}

/* The hub keeps the map artwork behind warm, opaque reading surfaces. */
body.rojo-liga.game-shell924 #arena-shell924 {
  background: var(--liga-bg);
}
body.rojo-liga.game-shell924 #arena-shell924 .arena-environment924 {
  opacity: .36;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 :is(.arena-hud924,.arena-nav924,.arena-system-content924) {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
  box-shadow: var(--liga-shadow) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 :is(.arena-brand924,.page-header528 h1,.currency528 b) {
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 :is(.arena-brand924 small,.currency528 small) {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 :is(.currency528,.arena-system924>summary,.arena-nav924 .navigation528 button) {
  background: var(--liga-soft) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 :is(.prizes-access702,.arena-nav924 .navigation528 button[aria-selected=true]) {
  background: var(--liga-red) !important;
  color: #fff !important;
  border-color: var(--liga-deep) !important;
  box-shadow: none !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-nav924 .navigation528 button[aria-selected=true] svg { color: currentColor; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  .arena-hangar924:not(.habitat-stage927),.arena-briefing924,.arena-active924,.arena-lineup978,.arena-preparation924,
  .room-recruit925,.room-events925,.room-events925 .rotating849,
  .arena-pilot924,.arena-roster924,.arena-commands924,.summon-chamber925 .summon-console921,
  .summon-rail925>button,.summon-chamber925 .summon-six921,.arena-partner-tile
) {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
  box-shadow: none !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  .arena-screen924>:is(.menu-heading883,.page-intro920) h1,
  .arena-pilot924 .lobby-identity698 :is(h2,small,span,p),
  .room-recruit925 :is(.page-intro920,.page-intro920 h1,.page-intro920 p,.summon-chamber925 h2,.summon-chamber925 h3),
  .summon-console921 :is(h3,p,small,strong),.summon-rail925 :is(p,small,strong,span),
  .summon-chamber925 .summon-six921 :is(span,small),.mission-heading925 :is(h2,small)
) { color: var(--liga-ink) !important; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  .arena-partner-tile .arena-partner-action,.arena-partner-tile .arena-partner924,.tableau-names884,.rotation-card849
) {
  background: var(--liga-soft) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924 #collection-root .arena-partner-tile[data-lead=true] .arena-partner-lead {
  background: var(--liga-tint) !important;
  border-color: var(--liga-red) !important;
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-shell924 #arena-shell924 #panel-events .mission-featured-modes :is(.mission-cup-access,.mission-market-access) {
  background: var(--liga-tint) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-deep) !important;
}
body.rojo-liga #arena-shell924 #collection-root .market-draft :is(.market-match,.market-offers,.market-roster li,.market-offer,.market-signing,.market-intel,.market-captain,.market-recovery .pending-result869) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga #arena-shell924 #collection-root .market-draft :is(.market-streak,.market-swap-in,.market-offer:has(input:checked)) {
  background: var(--liga-tint) !important;
  color: var(--liga-deep) !important;
}
body.rojo-liga #arena-shell924 #collection-root .market-draft button.primary,
body.rojo-liga #arena-shell924 #collection-root #panel-rewards .reward-hero584 .primary {
  background: var(--liga-red) !important;
  border-color: var(--liga-deep) !important;
  color: #fff !important;
}

/* The trainer picker, lobby, and side pages use the same card and control states. */
body.rojo-liga :is(.selection-footer,.quick-capture893,.trainer-card,.trainer-card.right,#trainer-picker,#pokemon-detail,
  .picker-trainer,.quick-search893,.pokemon-slot,.selector-shortcuts button,.legend-exhibition1015) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
  box-shadow: none !important;
}
body.rojo-liga :is(.trainer-card,.trainer-card.right) { border-top: 3px solid var(--liga-red) !important; }
body.rojo-liga .trainer-choice { background: transparent !important; color: var(--liga-ink) !important; }
body.rojo-liga :is(.trainer-name,.pokemon-slot span,.quick-capture893 h2,.picker-trainer strong,#matchup) { color: var(--liga-ink) !important; }
body.rojo-liga :is(.trainer-era,.trainer-style380,.picker-style380,.picker-team380,.quick-search-count893,.selector-subtitle380,.quick-capture893 p,#selection-summary) { color: var(--liga-muted) !important; }
body.rojo-liga :is(.side-label,.quick-capture893 small,.trainer-choice .change,.quick-studio893 .intro>p:first-child,.pokemon-slot[data-opener=true]::after) { color: var(--liga-deep) !important; }
body.rojo-liga :is(.trainer-choice .change,.quick-actions893 .quick-record893,.quick-more-list893 a,.quick-more-list893 button,.picker-trainer[aria-pressed=true],.trainer-filters487 button[aria-pressed=true]) {
  background: var(--liga-tint) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-deep) !important;
}
body.rojo-liga :is(#start-battle,.cup-start button,.ranked-start1001 .primary,.help-cta590 .button.primary) {
  background: var(--liga-red) !important;
  color: #fff !important;
  border-color: var(--liga-deep) !important;
  text-shadow: none !important;
  box-shadow: 0 3px var(--liga-deep) !important;
}
body.rojo-liga .quick-search893::placeholder { color: var(--liga-muted); }
body.rojo-liga :is(.rivalry-stage411,.lineup-comparison436,.select-settings,.cup-route,.cup-bracket,.cup-entry453,.cup-history453,
  .cup-rules,.ranked-start1001,.ranked-account912,.ranked-loadout912,.ranked-rules912,.ranked-extra862,.friend-grid729>section,
  .training-body,.training-goals,.help-section,.privacy-summary898) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
  box-shadow: none !important;
}
body.rojo-liga .help-hero590 { background: var(--liga-tint) !important; color: var(--liga-ink) !important; border-color: var(--liga-line); }
body.rojo-liga .legal-links898 a { color: var(--liga-deep) !important; }

/* Keep text and foreground colours paired with their corresponding surfaces. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  .arena-mission924,.arena-more924,.arena-preparation924 :is(.game-own920,.game-rival920,.stage-launch513),
  .arena-roster-team924,.arena-commands924 .lobby-destination698,.room-events925 .rotation-group849
) {
  background: var(--liga-soft) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  .arena-mission924 :is(h3,p,span),.arena-active-head924 :is(h2,p,small),
  .arena-commands924 :is(strong,span),.arena-partner924 :is(span,small),
  .tableau-names884 li,.arena-lineup-lock978,.arena-roster924 :is(h2,p),
  .arena-roster-team924 :is(strong,small),.preparation-heading913 :is(h2,p),
  .arena-preparation924 :is(.adventure-rival504,.game-vs920),.stage-launch513 :is(p,small,span)
) { color: var(--liga-ink) !important; text-shadow: none !important; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-roster-team924[aria-pressed=true] {
  background: var(--liga-tint) !important;
  border-color: var(--liga-red) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-roster-team924[aria-pressed=true] :is(span,strong,small) {
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(
  #panel-home .lobby-play698,#panel-adventure .stage-launch513 button.primary,
  .summon-console921 button.primary
) {
  background: var(--liga-red) !important;
  color: #fff !important;
  border-color: var(--liga-deep) !important;
  box-shadow: none !important;
}
body.rojo-liga.game-shell924 #arena-shell924 #collection-root #panel-events {
  --event-paper: var(--liga-paper);
  --event-card: var(--liga-panel);
  --event-ink: var(--liga-ink);
  --event-muted: var(--liga-muted);
  --event-line: var(--liga-line);
  --event-gold: var(--liga-deep);
}

body.rojo-liga.arena-selector :is(.settings-title,.team-heading405,.selection-heading,.profile-identity436,
  .rivalry-stage411 :is(h2,h3,p,span),.lineup-comparison436 :is(h2,h3,p),.trainer-filters487 button,
  .picker-trainer small,.picker-heading, .select-settings summary,.intro h1) {
  color: var(--liga-ink) !important;
}
body.rojo-liga.arena-selector :is(.versus-grid>.vs) {
  background: var(--liga-deep) !important;
  color: #fff !important;
}
body.rojo-liga.arena-selector .trainer-choice:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}
body.rojo-liga.arena-selector .trainer-filters487 button {
  background: var(--liga-soft) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.arena-selector .trainer-filters487 button[aria-pressed=true] {
  background: var(--liga-tint) !important;
  border-color: var(--liga-red) !important;
  color: var(--liga-deep) !important;
}

body.rojo-liga.arena-cup456 {
  --ink: var(--liga-ink);
  --gold: var(--liga-deep);
  --muted: var(--liga-muted);
}
body.rojo-liga.arena-cup456 :is(.cup-hero h1,.cup-hero>p,.cup-route p,.cup-rules summary,.contender-team,
  .match-kicker,.match-duration,.bracket-team small,.cup-muted452) {
  color: var(--liga-ink) !important;
  text-shadow: none !important;
}
body.rojo-liga.arena-cup456 :is(.contender,.cup-match,.cup-step452,.cup-history453,.cup-entry453,dialog) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga :is(.ranked-start1001 h2,.ranked-start1001 li span,.ranked-start1001 li::before) { color: var(--liga-ink); }
body.rojo-liga .ranked-tabs912 { background: var(--liga-soft); }
body.rojo-liga .ranked-tabs912 button[aria-selected=true] { background: var(--liga-red); color: #fff; }

body.rojo-liga.rojo-access :is(#entry,#legal,.beta-loop896 article),
body.rojo-liga .creator476 {
  color-scheme: light;
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
  box-shadow: var(--liga-shadow);
}
body.rojo-liga.rojo-access :is(.brand,.eyebrow,h1,h2,h3),
body.rojo-liga .creator476 :is(h2,h3,strong) { color: var(--liga-ink) !important; }
body.rojo-liga.rojo-access :is(p,small,li),
body.rojo-liga .creator476 :is(p,small,label) { color: var(--liga-muted) !important; }
body.rojo-liga.rojo-access :is(button,input),
body.rojo-liga .creator476 :is(button,select,input) {
  background: var(--liga-soft);
  color: var(--liga-ink);
  border-color: var(--liga-line);
}
body.rojo-liga.rojo-access .primary,
body.rojo-liga .creator-download476 {
  background: var(--liga-red);
  color: #fff;
  border-color: var(--liga-deep);
}

body.rojo-liga #arena-shell924 #collection-root .market-draft {
  --market-edge: var(--liga-line);
  --market-green: var(--liga-deep);
  background: var(--liga-paper);
  color: var(--liga-ink);
}
body.rojo-liga #arena-shell924 #collection-root .market-hero {
  --market-green: #dcf1ec;
  color: #fff;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(#panel-recruit,#panel-rewards) .primary {
  background: var(--liga-red) !important;
  color: #fff !important;
  border-color: var(--liga-deep) !important;
}

body.rojo-liga .arena-header456 .language565 select {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga .arena-header456 .language565 span,
body.rojo-liga.arena-selector .team-label :is(span,b,strong) { color: var(--liga-muted) !important; }
body.rojo-liga.arena-selector .team-label { color: var(--liga-deep) !important; }

body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-screen924#panel-recruit {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit :is(
  .recruit-poster994,.recruit-poster-trainer995,.recruit-poster-actions994 button,
  .recruit-payments975 .secondary,.upcoming-rotation,.summon-fold800
) {
  background: var(--liga-soft) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit :is(
  .recruit-poster-trainer995 :is(strong,span,small),.upcoming-rotation :is(summary,strong,time),
  .summon-fold800>summary,.recruit-purchase994 :is(h3,p,strong,small,span)
) { color: var(--liga-ink) !important; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-select994[aria-pressed=true] {
  background: var(--liga-tint) !important;
  border-color: var(--liga-red) !important;
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root :is(.preparation-own913 h3,.arena-more924>summary) {
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events :is(
  .mission-featured-modes .mission-cup-access,.event-recommendation1006,.mission-group979[data-state=featured] .mission-action979
) {
  background: var(--liga-tint) !important;
  color: var(--liga-deep) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.arena-menu.menu-theme586.game-title-screen .journey-steps562 strong {
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-title-screen .journey-steps562 li::before {
  color: var(--liga-deep);
  border-color: var(--liga-line);
  background: var(--liga-tint);
}

/* Secondary views, disclosures and labels exposed after the first screen. */
body.rojo-liga.game-title-screen .film-heading380 {
  color: var(--liga-muted) !important;
  background: var(--liga-paper) !important;
}
body.rojo-liga.game-title-screen .battle-art .versus {
  color: #fff !important;
  background: var(--liga-deep);
  border-radius: 20px;
  padding: 2px 6px;
  opacity: 1;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .settings-menu756>summary {
  background: var(--liga-soft) !important;
  color: var(--liga-deep) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.game-shell924 #collection-status:not(:empty) {
  color: var(--liga-ink) !important;
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-rival986 {
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit :is(
  .upcoming-rotation :is(li,strong,small,time),
  .recruit-odds975 :is(h3,h4,p,th,td,strong,small),
  .banner-review847 :is(h3,h4,p,li,span),
  .recruit-history .history-row :is(span,p,small)
) {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit :is(
  .recruit-odds975 table,.recruit-odds975 tr,.recruit-odds975 th,.recruit-odds975 td
) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .journey-node894[data-state=done] .journey-node-rank894 {
  color: #fff !important;
  background: #356647;
}
body.rojo-liga.arena-cup456 .cup-history-tools464 .secondary {
  background: var(--liga-soft) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.arena-cup456 footer a,
body.rojo-liga.rojo-access a:not(.primary),
body.rojo-liga.rojo-access .beta-loop896 article>span,
body.rojo-liga.rojo-access .beta-loop896 article>small {
  color: var(--liga-deep) !important;
}

/* Use the space in each card rather than shrinking the Pokémon names. */
body.rojo-liga.arena-selector .pokemon-slot span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-overflow: clip;
}
body.rojo-liga.arena-selector #pokemon-detail {
  box-sizing: border-box;
  max-height: min(90dvh, 880px);
  overflow-y: auto;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  body.rojo-liga.arena-selector .pokemon-slot span {
    font-size: clamp(8px, 2.45vw, 11px);
  }
  body.rojo-liga.arena-selector .selection-footer {
    padding-inline: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  body.rojo-liga.arena-selector .quick-actions893 :is(button,a) {
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.2;
  }
}

body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards :is(
  .calendar754,.reward-group756,.milestone-group722,.milestone-card722,.milestone-history1171
) {
  background: var(--liga-soft) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards :is(
  .calendar754,.reward-group756,.milestone-panel722
) :is(h2,h3,h4,p,summary,strong,small,span,time) {
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .primary :is(span,strong,small) {
  color: #fff !important;
}

body.rojo-liga.rojo-legal :is(.brand,main,article,footer) { color: var(--liga-ink); }
body.rojo-liga.rojo-legal :is(.brand, a) { color: var(--liga-deep) !important; }
body.rojo-liga.rojo-legal article :is(p,li,small) { color: var(--liga-muted) !important; }

body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit :is(
  .upcoming-rotation li,.recruit-history
) {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .upcoming-rotation li :is(span,p) {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #save-state687 {
  background: var(--liga-paper) !important;
  border-color: var(--liga-line) !important;
  color: var(--liga-ink) !important;
}

/* Keep the forest visible through the habitat and leave its overlays on dark surfaces. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924[data-screen924=home] .arena-environment924 {
  opacity: 1;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .habitat-stage927 {
  background: transparent !important;
  border-radius: 14px !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .habitat-identity927 {
  background: #102938ed !important;
  min-height: 0 !important;
  border-color: #b5c9bd !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .habitat-identity927 h2 {
  color: #ffedbc !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .habitat-identity927 :is(span,p,small) {
  color: #ebf6f4 !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .habitat-play927 :is(h3,p) {
  color: #f6fafb !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-more924 {
  background: var(--liga-paper) !important;
  color: var(--liga-ink) !important;
  border-color: var(--liga-line) !important;
  backdrop-filter: none;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-active-head924 :is(p,small) {
  color: var(--liga-muted) !important;
}

/* Rewards heading, claim feedback and secondary links share the warm menu surfaces. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-room-head1174 {
  background: linear-gradient(125deg,#fff4ee,var(--liga-tint));
  border: 1px solid var(--liga-line);
  border-inline-start: 3px solid var(--liga-red);
  border-radius: 12px;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-room-head1174 h2 {
  color: var(--liga-ink) !important;
  line-height: 1.15;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-room-head1174 p {
  color: var(--liga-muted) !important;
  font-size: .875rem;
  line-height: 1.45;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .help-bar753 button {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--liga-deep) !important;
  min-height: 44px;
  padding: 4px 0 !important;
  font-size: .82rem !important;
  text-align: start;
  white-space: normal;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards #collection-status:not([hidden]) {
  position: relative !important;
  min-height: 44px;
  padding-block: 12px !important;
  box-shadow: none !important;
  font-size: .875rem;
  line-height: 1.4;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards #collection-status[role=status] {
  background: #e9f3ea !important;
  color: #244d35 !important;
  border-color: #a6beaa !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards #collection-status[role=alert] {
  background: var(--liga-tint) !important;
  color: var(--liga-deep) !important;
  border-color: var(--liga-red) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .dismiss-status513 {
  top: 50%;
  transform: translateY(-50%);
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .beta-entry787 {
  min-height: 44px !important;
  padding: 9px 12px !important;
  font-size: .875rem !important;
  line-height: 1.3;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-group756>summary small {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards>.calendar754[data-ready1174=true] {
  border-inline-start-color: var(--liga-red) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .calendar754[open] .calendar-content757 {
  padding-block-start: 4px;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .calendar754[data-collected757=true] {
  padding-block: 0;
  border-radius: 12px;
}

/* The event schedule is a light reading panel around the dark illustrated covers. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849>h2 {
  color: var(--liga-ink) !important;
  margin-block: 0 .4em;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849>p {
  color: var(--liga-muted) !important;
  margin-block: .4em;
  line-height: 1.45;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849>.rotation-deadline875 {
  color: var(--liga-deep) !important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotation-group849>summary {
  min-height: 44px;
  background: var(--liga-tint) !important;
  color: var(--liga-deep) !important;
  border: 1px solid var(--liga-line);
  border-radius: 9px;
  padding: 10px 12px;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-board979>button.secondary {
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 {
    grid-template-rows: 85px minmax(0,1fr) calc(58px + env(safe-area-inset-bottom));
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-hud924 {
    grid-template-rows: 44px 24px !important;
    gap: 3px 7px !important;
    padding: 5px 10px 8px !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-status924 h1 {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: .875rem !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-status924 .wallet528 {
    gap: 0 !important;
    border: 1px solid var(--liga-line);
    border-radius: 9px;
    background: var(--liga-soft) !important;
    overflow: hidden;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-status924 .wallet528>.currency528 {
    min-height: 0 !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-status924 .wallet528>.currency528 + .currency528 {
    border-inline-start: 1px solid var(--liga-line) !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-status924>.prizes-access702,
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-system924>summary {
    min-height: 44px !important;
    height: 44px !important;
    box-sizing: border-box;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924[data-room=rewards] .arena-status924>.prizes-access702 {
    display: none !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-system-content924 {
    top: 84px !important;
    max-height: calc(100dvh - 148px - env(safe-area-inset-bottom)) !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-nav924 .navigation528 button {
    height: 48px !important;
    min-height: 48px !important;
    background: transparent !important;
    border-color: transparent !important;
    gap: 3px !important;
    font-size: 11px !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 .arena-nav924 .navigation528 button[aria-selected=true] {
    background: var(--liga-tint) !important;
    color: var(--liga-deep) !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #save-state687 {
    min-height: 30px !important;
    margin-block-end: 5px !important;
    color: var(--liga-muted) !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-room-head1174 {
    padding: 10px 13px;
    gap: 2px;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards :is(.calendar754,.reward-group756)>summary {
    min-height: 44px;
    overflow-wrap: anywhere;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-group756>summary {
    display: grid;
    gap: 2px;
    padding-block: 8px;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-rewards .reward-group756>summary small {
    margin-inline-start: 0;
    text-align: start;
  }

  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-active-head924 {
    gap: 8px;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-active-head924 .game-change920 {
    margin: 0 !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-partner-tile {
    min-width: 0;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-partner-tile .arena-partner924 span {
    overflow-wrap: anywhere;
  }

  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849 {
    padding: 10px !important;
    margin: 8px 0;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849>h2 {
    font-size: 1.35rem !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .rotating849>p {
    font-size: .875rem;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-board979>h2 {
    margin: 0 0 8px;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-board979>button.secondary {
    min-height: 44px;
    margin: 0 0 10px;
    padding: 7px 12px;
    background: var(--liga-tint) !important;
    border-color: var(--liga-line) !important;
    color: var(--liga-deep) !important;
    line-height: 1.25;
    white-space: normal;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-caption994 h3 {
    hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster994 {
    box-shadow: none;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster994[data-selected994=true] {
    border-color: var(--liga-red) !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-purchase994 {
    padding: 9px 10px;
    background: var(--liga-tint);
    border-radius: 9px;
  }
  body.rojo-liga.game-shell924 #collection-dialog #collection-dialog-close {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}

/* Menu polish1246: keep foreground and background paired across shared menu themes. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-history>summary {
  color: var(--liga-ink) !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 .pool-status1246 {
  color: var(--liga-muted) !important;
  opacity: 1 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 .pool-owned1246 {
  color: #226047 !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-browser732:not(.recruit-catalog994) .pool-person732 .pool-status1246 {
  color: var(--liga-muted) !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-browser732:not(.recruit-catalog994) .pool-person732 .pool-owned1246 {
  color: #20664e !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog:has(.pool-browser732) {
  box-sizing: border-box;
  overflow-x: hidden !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog:has(.pool-browser732) #collection-dialog-body {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  scrollbar-gutter: auto;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-browser732,
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-list732 {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  white-space: normal;
  margin: 0 !important;
  text-align: center;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 canvas {
  display: block;
  flex: none;
  object-fit: contain;
  max-width: 100% !important;
}
body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-browser732 :is(input,select,button,details) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster994 {
  display: grid;
  grid-template-rows: auto 1fr;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-details994 {
  grid-template-rows: auto auto 1fr;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-details994:has(.recruit-poster-series1246) {
  grid-template-rows: auto auto auto 1fr;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-trainer995 {
  grid-template-rows: auto 1fr;
  align-content: stretch;
}
@supports (grid-template-rows: subgrid) {
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster994 {
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-details994 {
    grid-row: span 4;
    grid-template-rows: subgrid !important;
  }
  .recruit-poster-details994>.recruit-poster-series1246 { grid-row: 1; }
  .recruit-poster-details994>.recruit-poster-cast994 { grid-row: 2; }
  .recruit-poster-details994>.recruit-poster-rarities994 { grid-row: 3; }
  .recruit-poster-details994>.recruit-poster-actions994 { grid-row: 4; }
}
@media (max-width: 700px) {
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-preparation924.preparation913 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: start;
    overflow: visible !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-preparation924.preparation913> * {
    min-width: 0;
    margin: 0 !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .preparation-heading913 h2 {
    font-size: clamp(1.4rem,6vw,1.75rem) !important;
    line-height: 1.18;
    overflow-wrap: break-word;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .preparation-heading913>button {
    margin-top: 10px !important;
    max-width: 100%;
    white-space: normal;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-preparation924 :is(.preparation-settings913,.preparation-more913) {
    border-radius: 12px !important;
    overflow: visible !important;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .arena-preparation924 :is(.preparation-settings913,.preparation-more913)>summary {
    min-height: 44px;
    line-height: 1.35;
    padding: 10px 12px !important;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-cast994 {
    grid-auto-rows: 1fr;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-trainer995 {
    min-height: 94px;
    grid-template-rows: 49px 1fr;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-trainer995 span {
    font-size: .7rem !important;
    line-height: 1.18;
    hyphens: none;
    overflow-wrap: break-word;
  }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-poster-rarity994 {
    min-height: 40px;
    line-height: 1.15;
  }
  body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .recruit-catalog-filters994 {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-list732 {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  body.rojo-liga.game-shell924 #collection-dialog#collection-dialog .pool-person732 {
    align-items: center;
    justify-content: flex-start;
    min-height: 108px;
    padding: 8px 5px !important;
  }
}
@media (max-width: 350px) {
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-posters994 {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Journey, summon collection and team workshop: compact, readable first screens. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .prep-hero1248 {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(72px,112px);
  gap: 6px 12px;
  align-items: center;
  padding: 14px !important;
  border: 1px solid var(--liga-line);
  border-radius: 14px;
  background: linear-gradient(135deg,var(--liga-paper),var(--liga-tint)) !important;
  box-sizing: border-box;
  min-width: 0;
}
.preparation-heading913 > .boss-strategy1304 {
  grid-column: 1 / -1;
  min-width: 0;
  padding-block-start: 8px;
  border-top: 1px solid var(--liga-line);
  color: var(--liga-ink);
}
.preparation-heading913 > .boss-strategy1304 p { margin: 3px 0 0; line-height: 1.4; }
.prep-hero1248 > :is(h2,p,button) { grid-column: 1; min-width: 0; }
.prep-hero1248 > .prep-rival-portrait1248 { grid-column: 2; grid-row: 2 / span 3; }
.prep-rival-portrait1248 { display:grid; place-items:center; min-width:0; align-self:stretch; background:linear-gradient(140deg,#243e52,#112738); border:1px solid #627d8c; border-radius:10px; }
.prep-rival-portrait1248 canvas { width:100%!important; max-width:112px!important; height:auto!important; aspect-ratio:1; display:block; image-rendering:pixelated; }
.prep-journey1248 { display:grid; grid-column:1/-1; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 8px; min-width:0; margin:0 0 4px; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .prep-journey1248 :is(.prep-track1248,.prep-stage-count1248) { color:var(--liga-deep)!important; font-size:.78rem!important; font-weight:750; line-height:1.25; }
.prep-stage-count1248 { text-align:end; white-space:nowrap; }
.prep-progress1248 { grid-column:1/-1; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #adventure-stage515.preparation913 .preparation-launch1114>.stage-launch513 {
  grid-area: auto / 1 / auto / -1 !important;
  align-self:start!important;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .prep-level1248 { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; align-items:center; margin:0 0 10px!important; color:var(--liga-muted)!important; font-size:.85rem!important; }
.prep-level1248 span { color:var(--liga-deep)!important; font-weight:700; }
.prep-progress1248,.banner-completion1248 progress,.team-xp1248 { display:block; appearance:none; -webkit-appearance:none; width:100%; max-width:100%; height:7px; border:none; border-radius:99px; background:#dfd3ce; overflow:hidden; accent-color:#ae2340; }
:is(.prep-progress1248,.banner-completion1248 progress,.team-xp1248)::-webkit-progress-bar { background:#dfd3ce; border-radius:99px; }
:is(.prep-progress1248,.banner-completion1248 progress,.team-xp1248)::-webkit-progress-value { background:#ae2340; border-radius:99px; }
:is(.prep-progress1248,.banner-completion1248 progress,.team-xp1248)::-moz-progress-bar { background:#ae2340; border-radius:99px; }
.banner-completion1248 { display:grid; gap:4px; min-width:0; width:100%; }
.banner-completion1248>span { font-weight:700; font-size:.76rem; line-height:1.2; }
.recruit-poster-caption994 .banner-completion1248 { margin-top:7px; }
.recruit-poster-caption994 .banner-completion1248>span { margin:0; color:#fff2cf!important; }
.recruit-poster-caption994 .banner-completion1248 progress { height:6px; background:#273b4c; accent-color:#f7d692; }
.recruit-poster-caption994 .banner-completion1248 progress::-webkit-progress-bar { background:#273b4c; }
.recruit-poster-caption994 .banner-completion1248 progress::-webkit-progress-value { background:#f7d692; }
.recruit-poster-caption994 .banner-completion1248 progress::-moz-progress-bar { background:#f7d692; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit button.recruit-poster-rarity994 { appearance:none; box-sizing:border-box; margin:0!important; padding:5px 3px!important; min-width:0!important; min-height:44px!important; width:100%; display:grid!important; justify-items:center; align-content:center; border:1px solid #c2d1e02b!important; color:#e7ecf5!important; background:#0b1928!important; font-size:.72rem!important; line-height:1.15; border-radius:7px; box-shadow:none!important; cursor:pointer; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit button.recruit-poster-rarity994.rarity-uncommon { background:#173e32!important; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit button.recruit-poster-rarity994.rarity-god { background:#382353!important; border-color:#d3b36d!important; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit button.recruit-poster-rarity994:hover { border-color:#d3b36d!important; }
.recruit-selected1248 { display:flex; align-items:center; gap:10px; flex-wrap:wrap; flex:1 1 280px; min-width:0; }
.recruit-selected1248 .banner-completion1248 { flex:1 1 120px; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-recruit .recruit-selected1248 .recruit-missing1248 { flex:0 1 auto; min-height:44px; margin:0!important; font-size:.82rem!important; white-space:normal; }
#collection-dialog .pool-browser732>.banner-completion1248 { padding:9px 0 12px; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .team-level-summary1248 { color:var(--liga-muted)!important; font-weight:650; font-size:.85rem!important; margin:3px 0 7px!important; }
.team-quick1248 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .team-quick1248 button { min-width:0; width:100%; min-height:44px; margin:0!important; padding:8px 10px!important; white-space:normal; line-height:1.24; }
.arena-partner924 .team-xp1248 { height:5px; width:calc(100% - 8px); margin:2px 4px; }
@media (max-width: 700px) {
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .prep-hero1248 { grid-template-columns:minmax(0,1fr) 82px; padding:10px!important; gap:5px 8px; }
  body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .prep-hero1248>h2 { font-size:1.35rem!important; margin:0!important; }
  .prep-journey1248 { grid-template-columns:minmax(0,1fr) auto; }
  .recruit-poster-caption994 .banner-completion1248>span { font-size:.66rem!important; }
  .recruit-selected1248 { flex-basis:100%; }
  .team-quick1248 button { font-size:.85rem!important; }
}
@media (max-width: 350px) { .team-quick1248 { grid-template-columns:minmax(0,1fr); } }

/* Visible early roadmap and event-specific identity, using saved progress only. */
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .first-roadmap1250 {
  margin:14px auto!important; padding:14px!important; max-width:960px; background:var(--liga-paper)!important; color:var(--liga-ink)!important; border:1px solid var(--liga-line)!important; border-radius:14px;
}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .first-roadmap1250 summary { color:var(--liga-deep)!important; font-weight:800; }
.first-roadmap1250 ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:0!important; list-style:none; }
.first-roadmap1250 li { background:#f5eeee; color:#4e3941!important; border:1px solid #ddceca; border-radius:8px; padding:10px; font-size: .88rem; }
.first-roadmap1250 li.done864 { background:#e2f1e6; border-color:#a1c7a9; color:#20573b!important; }
.first-roadmap1250 li[aria-current=step] { background:#fae8ec; border-color:#ae2340; color:#82172f!important; font-weight:750; }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-ticket979 { --mission-accent:#8a4b66; border-inline-start:4px solid var(--mission-accent)!important; }
#panel-events .mission-ticket979[data-mission=daily] { --mission-accent:#bd7b27!important; }
#panel-events .mission-ticket979[data-mission=weekly] { --mission-accent:#526ea7!important; }
#panel-events .mission-ticket979[data-mission=rotation] { --mission-accent:#9a55ae!important; }
#panel-events .mission-ticket979[data-mission=guests] { --mission-accent:#288064!important; }
#panel-events .mission-ticket979:is([data-mission=tower],[data-mission=bosses]) { --mission-accent:#9a473e!important; }
#panel-events .mission-ticket979[data-state=ready] { --mission-accent:#b17b27!important; }
#panel-events .mission-meter1250 { grid-column:1/-1; width:100%; max-width:100%; height:7px; border:0; background:#dfd3ce; accent-color:var(--mission-accent); border-radius:99px; overflow:hidden; }
#panel-events .mission-meter1250::-webkit-progress-bar { background:#dfd3ce; }
#panel-events .mission-meter1250::-webkit-progress-value { background:var(--mission-accent); }
#panel-events .mission-meter1250::-moz-progress-bar { background:var(--mission-accent); }
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root #panel-events .mission-ticket979 .mission-reward979 { justify-self:start; padding:5px 8px; background:#f3ead9; color:#76511c!important; border-radius:6px; font-weight:700; font-size:.78rem!important; line-height:1.25; }
@media(max-width:400px){.first-roadmap1250 ol { grid-template-columns:1fr; }}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .retention-home1251 {max-width:960px;margin:12px auto!important;padding:14px!important;display:grid;gap:7px;min-width:0;background:var(--liga-paper)!important;border:1px solid var(--liga-line)!important;border-inline-start:4px solid #288064!important;border-radius:12px;color:var(--liga-ink)!important}
body.rojo-liga.game-shell924 #arena-shell924#arena-shell924 #collection-root .retention-home1251 :is(h2,p,strong,small){color:var(--liga-ink)!important;margin:0!important}
.retention-home1251 h2{font-size:1.2rem!important}.retention-meter1251{width:100%;height:8px;accent-color:#288064;border-radius:99px;overflow:hidden}.retention-home1251>button{justify-self:start;min-height:44px;max-width:100%;white-space:normal}.prep-scout-team .prep-strategy1251{color:#b9f1cb!important; font-weight:700}
@media(max-width:700px){.retention-home1251>button{width:100%;}}

.member-orders1304 label { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: .5rem; align-items: center; margin-block: .45rem; }
.member-orders1304 select { width: 100%; min-width: 0; }
.rivalry1305 { grid-column: 1 / -1; min-width: 0; padding: .85rem; border: 1px solid var(--liga-line); border-radius: 14px; background: var(--liga-paper, #faf7f3); color: var(--liga-ink, #292029); }
.rivalry1305 > :is(strong,summary) { color: var(--liga-ink, #292029); font-weight: 750; }
.rivalry1305 p { margin: .55rem 0; line-height: 1.4; }
.rivalry-steps1305 { list-style: none; padding: 0; margin: .5rem 0 0; }
.rivalry-steps1305 li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .7rem; padding: .45rem 0; border-top: 1px solid var(--liga-line); }
.rivalry-steps1305 small { font-weight: 650; }
.rivalry-steps1305 .cleared1305 small { color: #236b50; }
