/* Rojo Liga, selected by Toni from the palette prototypes. Only the landing page and Adventure shell opt in.
   Battle canvases, rarity/type colours and game state are deliberately separate. */
body.menu-theme586 {
  color-scheme: light;
  --menu-accent: #ffd166;
  --menu-bg: #f6f4ef;
  --menu-surface: #ffffff;
  --menu-raised: #eeeae4;
  --menu-line: #ded9d2;
  --menu-ink: #25252d;
  --menu-muted: #62616b;
  --menu-gold: #cd3345;
  --menu-mint: #20664e;
  --bg: var(--menu-bg); --panel: var(--menu-surface);
  --edge: var(--menu-line); --text: var(--menu-ink);
  --muted: var(--menu-muted); --gold: var(--menu-gold);
  --arena-bg456: var(--menu-bg); --arena-panel456: var(--menu-surface);
  --arena-line456: var(--menu-line); --arena-ink456: var(--menu-ink);
  --arena-muted456: var(--menu-muted); --arena-gold456: var(--menu-gold);
  background: radial-gradient(ellipse at 80% 0, #ffd16616, transparent 52%), var(--menu-bg);
  color: var(--menu-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.menu-theme586 ::selection { background: #ffd166; color: #25252d; }
.menu-theme586 :is(h1,h2,h3) { color: var(--menu-ink); text-wrap: balance; }
.menu-theme586 :is(h1,h2) { letter-spacing: -.035em; font-weight: 750; }
.menu-theme586 :is(p,small) { text-wrap: pretty; }
.menu-theme586 :is(button,a,summary,select,input):focus-visible {
  outline: 3px solid var(--menu-gold); outline-offset: 4px;
}
.menu-theme586 :is(button,.button,.player-primary) {
  border-radius: 11px; font-weight: 650;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.menu-theme586.collection-shell528 :is(button,.button):where(:not(.primary):not(.text-button):not(.favorite511)) {
  background-color: var(--menu-raised); border-color: var(--menu-line); color: var(--menu-ink);
  box-shadow: none;
}
.menu-theme586.collection-shell528 :is(.primary,.button.primary),
.menu-theme586.arena-menu .player-primary {
  background: #cd3345;
  border: 1px solid #b52a3d; color: #ffffff;
  box-shadow: 0 5px 18px #cd33451a; font-weight: 750;
  text-shadow: none;
}
.menu-theme586.collection-shell528 .text-button { color: #5f5864; text-underline-offset: 4px; }
.menu-theme586 :is(button,.button):disabled { opacity: .45; box-shadow: none; }
.menu-theme586.collection-shell528 :is(select,input[type=search],input[type=text]) {
  background: #ffffff; color: var(--menu-ink); border: 1px solid #c8c0bd;
  border-radius: 10px; min-height: 44px; padding: 10px 12px;
}
.menu-theme586 :is(.eyebrow,.page-kicker528) { letter-spacing: .12em; }
.menu-theme586.collection-shell528 :is(.col-header,.col-footer) { border-color: #ded9d2; }
.menu-theme586.collection-shell528 .col-header { background: transparent; }
.menu-theme586.collection-shell528 .col-logo { color: var(--menu-ink); }
.menu-theme586.collection-shell528 .col-logo small { color: var(--menu-gold); }
.menu-theme586 .more-modes497>summary { color: #62616b; font-weight: 550; }
.menu-theme586 .more-modes497 nav {
  background: #ffffff; border-color: #d5ceca; box-shadow: 0 12px 32px #33221916;
}
.menu-theme586 .language565 select {
  background: #ffffff; border-color: #cbc4c0; color: #25252d; border-radius: 9px;
}
.menu-theme586 .page-header528 { border-color: #ded9d2; padding-bottom: 18px; }
.menu-theme586 .page-header528 h1 { color: var(--menu-ink); letter-spacing: -.04em; }
.menu-theme586.collection-shell528 .page-header528 .backup-access512 {
  background: transparent; border-color: transparent; color: #62616b;
  font-size: 11px; font-weight: 500;
}
.menu-theme586.collection-shell528 #collection-root .wallet528>span {
  background: #ffffff; border: 1px solid #ded9d2; border-radius: 10px;
}
.menu-theme586.collection-shell528 .wallet528 b { color: #25252d; font-variant-numeric: tabular-nums; }
.menu-theme586.collection-shell528 .wallet528 small { color: #62616b; }
.menu-theme586.collection-shell528 .navigation528 { background: transparent; }
.menu-theme586.collection-shell528 .navigation528 button {
  background: transparent; border-color: transparent; color: #62616b;
  font-weight: 550; border-radius: 12px;
}
.menu-theme586.collection-shell528 .navigation528 button[aria-selected=true] {
  color: var(--menu-gold); background: #fbe8eb; border-color: #e9bcc3;
  box-shadow: inset 3px 0 var(--menu-gold);
}
.menu-theme586 .navigation528 .nav-count506 {
  background: #cd3345; color: #322b24; border-radius: 5px; font-weight: 750;
}
.menu-theme586.collection-shell528 :is(.panel,.starter-card,.trainer-card528,.expedition-card) {
  background: #ffffff;
  border-color: var(--menu-line); border-radius: 16px; box-shadow: none;
}
.menu-theme586.collection-shell528 .home-hero528 {
  background: radial-gradient(ellipse at 94% 0, #ffd16620, transparent 70%),
    linear-gradient(130deg, #fff0cf, #fff0cf);
  border: 1px solid #e4d4b3; border-radius: 20px;
  box-shadow: 0 18px 48px #53351d08;
}
.menu-theme586 .home-hero528 .eyebrow { color: #a3293a; }
.menu-theme586 .home-stage528 { background: var(--menu-accent); color: #624a23; border-color: #e8c46c; }
.menu-theme586 .home-hero528 h2 { color: #322b24; font-weight: 750; }
.menu-theme586 :is(.home-rival528,.home-prize528,.home-hint544) { color: #695d4e; }
.menu-theme586 .home-orbit528 { border-color: #9f772d30; box-shadow: 0 0 0 20px #d6b7640a, 0 0 0 40px #d6b76406; }
.menu-theme586 .home-ace-name528 { background: #fff8e7; border-color: #dfca9f; color: #695d4e; }
.menu-theme586.collection-shell528 :is(.active-partner528,.trainer-refine557,.trainer-heading528) { border-color: #ded9d2; }
.menu-theme586.collection-shell528 .poke-face { background: #eeeae4; border-color: #ded9d2; border-radius: 9px; }
.menu-theme586.collection-shell528 :is(.home-shortcut528,.milestone575,.optional497,.more-home544) {
  background: #ffffff; border-color: #ded9d2; border-radius: 12px; box-shadow: none;
}
.menu-theme586.collection-shell528 .clear-trainer576.active {
  background: linear-gradient(145deg, #fff5df, #fffaf0);
  border-color: #cd3345!important; box-shadow: inset 0 2px var(--menu-gold);
}
.menu-theme586.collection-shell528 .trainer-era528 { color: #62616b; }
.menu-theme586.collection-shell528 .view-team576 { color: #62616b; font-weight: 500; }
.menu-theme586.collection-shell528 .ownership528 { background: #eeeae4; border-color: var(--menu-line); border-radius: 11px; }
.menu-theme586.collection-shell528 .ownership-choice528 { background: transparent; border-color: transparent; color: #62616b; }
.menu-theme586.collection-shell528 .ownership-choice528[aria-pressed=true] {
  background: #ffffff; border-color: #b8aaa5; color: #a3293a;
}
.menu-theme586.collection-shell528 #adventure-stage515 { background: #ffffff; border-color: #ded9d2; }
.menu-theme586 .stage-banner515 { border-color: #c6bbac; }
.menu-theme586.collection-shell528 :is(.preparation508,.stage-brief506) {
  background: #f6f4ef; border-color: #ded9d2; border-radius: 12px;
}
.menu-theme586.collection-shell528 .stage-launch513 { background: transparent; border: 0; box-shadow: none; }
.menu-theme586 .retry-guide585 { background: #e8f4ec; border-left-color: var(--menu-mint); }
.menu-theme586 :is(.encounter-details575,.encounter-settings575,.first-details563,.first-difficulty563) { border-color: #ded9d2; }
.menu-theme586.collection-shell528 :is(.recruit-machine574,.reward-hero584) {
  background: radial-gradient(ellipse at 90% 0, #ffd16618, transparent 65%),
    linear-gradient(135deg, #fff0cf, #fff5e0);
  border: 1px solid #e4d4b3; border-radius: 18px; box-shadow: none;
}
.menu-theme586 .reward-hero584 h2 { color: #322b24; font-weight: 750; }
.menu-theme586 :is(.reward-total584,.recruit-savings574) { color: #76551f; }
.menu-theme586 .reward-kicker584 { color: #81551f; }
.menu-theme586 .reward-hero584[data-state=saved] { background: linear-gradient(125deg,#e8f4ec,#eef7f0); border-color: #a9cdb5; }
.menu-theme586 .reward-hero584[data-state=saved] h2 { color: #20664e; }
.menu-theme586 :is(.daily-compact584,.recruit-return574,.recruit-adventure574) {
  background: #ffffff; border-color: #ded9d2; border-radius: 14px;
}
.menu-theme586 :is(.daily-check584,.daily-task584,.milestone-row584) { border-color: #ded9d2; }
.menu-theme586 :is(.daily-heading584>span,.daily-state584,.daily-bonus584) { color: var(--menu-mint); }
.menu-theme586 :is(.daily-task584 small,.daily-reset584,.reward-note584) { color: #62616b; }
.menu-theme586 .daily-task584 progress { background: #e6e3de; }
.menu-theme586 .daily-task584 progress::-webkit-progress-bar { background: #e6e3de; }
.menu-theme586 .daily-task584 progress::-webkit-progress-value { background: var(--menu-mint); }
.menu-theme586 .daily-task584 progress::-moz-progress-bar { background: var(--menu-mint); }
.menu-theme586.collection-shell528 :is(.rewards-extras584,.recruit-extras574)>details {
  background: transparent; border: 0; border-top: 1px solid #ded9d2; border-radius: 0;
  padding-inline: 2px!important; margin-block: 0;
}
.menu-theme586.collection-shell528 :is(.rewards-extras584,.recruit-extras574)>details>summary { color: #4c4851; font-weight: 550; }
.menu-theme586.collection-shell528 #collection-dialog {
  background: #ffffff; border: 1px solid #495775; border-radius: 20px;
  box-shadow: 0 28px 100px #33221926; color: var(--menu-ink);
}
.menu-theme586 #collection-dialog::backdrop { background: #30282766; backdrop-filter: blur(8px); }
.menu-theme586.collection-shell528 #collection-dialog-close {
  background: var(--menu-raised); border-color: #cbc4c0; color: var(--menu-ink); box-shadow: none;
}
.menu-theme586.collection-shell528 :is(.recruit-partner526,.recruit-matchups574>article) {
  background: #f6f4ef; border-color: #ded9d2;
}
.menu-theme586 .recruit-details585 { border-color: #ded9d2; }
.menu-theme586 .trainer-sheet528>details { border-color: #ded9d2; }
.menu-theme586.collection-shell528 .trainer-sheet528>.sheet-section528 {
  background: #f6f4ef; border-color: #ded9d2; border-radius: 12px;
}
.menu-theme586 .col-status { background: #ffffff; color: #25252d; border-color: #cfaaa8; box-shadow: 0 10px 35px #33221916; }
/* The landing page shares the same hierarchy and controls. */
.menu-theme586.arena-menu .home { max-width: 1200px; }
.menu-theme586.arena-menu .arena-header456 { border-color: #ded9d2; }
.menu-theme586.arena-menu .hero380 { gap: 64px; }
.menu-theme586.arena-menu .hero380 h1 { font-size: clamp(48px,6.2vw,82px); line-height: 1.02; letter-spacing: -.06em; font-weight: 750; }
.menu-theme586.arena-menu .hero380 h1 em { color: var(--menu-gold); font-style: normal; }
.menu-theme586.arena-menu .hero-description { color: #62616b; font-size: 17px; line-height: 1.7; }
.menu-theme586.arena-menu :is(.hero-note380,.adventure-how562) { color: #62616b; }
.menu-theme586.arena-menu .hero-copy380>.eyebrow { color: #a3293a; }
.menu-theme586 .status-dot { background: #cd3345; box-shadow: 0 0 10px #cd334522; }
.menu-theme586 .journey-card562 { border-color: #ded9d2; background: #ffffff; border-radius: 20px; box-shadow: 0 24px 64px #33221912; }
.menu-theme586 .journey-art562 { background-image: linear-gradient(0deg,#322b24e6 0%,#322b2433 80%),url('assets/lobby405/stadium-cover.jpg'); }
.menu-theme586 .journey-tag562 { background: #fff4d4f0; color: #322b24; border-color: #d8bd70; border-radius: 7px; }
.menu-theme586 .journey-art562 h2 { color: #ffffff; }
.menu-theme586 .journey-body562>p:first-child { color: #62616b; }
.menu-theme586 .journey-steps562 li { color: #62616b; }
.menu-theme586 .journey-steps562 li:before { color: #a3293a; border-color: #ddbab5; background: #fbe8eb; }
.menu-theme586 .journey-steps562 strong { color: #a3293a; }
.menu-theme586 .journey-foot562 { border-color: #ded9d2; color: #62616b; }
.menu-theme586.arena-menu .home-options497 { border-color: #ded9d2; }
.menu-theme586.arena-menu .home-options497>summary { color: #62616b; font-size: 14px; font-weight: 550; }
.menu-theme586.arena-menu .play-strip380 { background: transparent; border-color: #ded9d2; color: #62616b; }
.menu-theme586.arena-menu .play-strip380 b { color: #624a23; }
.menu-theme586.arena-menu :is(.mode-card456,.mode-history456) { background: #ffffff; border-color: #ded9d2; border-radius: 14px; }
@media(hover:hover) {
  .menu-theme586.collection-shell528 :is(.primary,.button.primary):hover:not(:disabled),
  .menu-theme586.arena-menu .player-primary:hover { background: #b52a3d; border-color: #a3293a; box-shadow: 0 6px 24px #cd334522; transform: none; }
  .menu-theme586.collection-shell528 :is(.secondary,.ownership-choice528):hover:not(:disabled) { background-color: #eee6e3; border-color: #baaaa5; }
  .menu-theme586.collection-shell528 .navigation528 button:not([aria-selected=true]):hover { background: #e9e4de; border-color: #ded9d2; }
}
@media(max-width:760px) {
  .menu-theme586.collection-shell528 .col-header { padding-block: 16px; }
  .menu-theme586.collection-shell528 .navigation528 {
    background: #fffffff5; border-color: #ded9d2; border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px #33221912; backdrop-filter: blur(18px);
  }
  .menu-theme586.collection-shell528 .navigation528 button { border-radius: 11px; background: transparent; border-color: transparent; }
  .menu-theme586.collection-shell528 .navigation528 button[aria-selected=true] {
    background: #fbe8eb; border-color: #e9bcc3; box-shadow: inset 0 2px var(--menu-gold);
  }
  .menu-theme586.collection-shell528 .navigation528 .nav-label528 { font-size: 11px; font-weight: 600; }
  .menu-theme586.collection-shell528 #collection-root .page-header528 h1 { font-weight: 750; letter-spacing: -.035em; }
  .menu-theme586.collection-shell528 .primary { font-size: 14px; }
  .menu-theme586 .home-hero528 { border-radius: 16px; }
  .menu-theme586.arena-menu .hero380 { gap: 28px; }
  .menu-theme586.arena-menu .hero380 h1 { font-size: clamp(43px,12.7vw,65px); }
  .menu-theme586.arena-menu .hero-description { font-size: 15px; }
  .menu-theme586.arena-menu .hero-actions .player-primary { width: 100%; min-width: 0; min-height: 54px; }
}
@media(prefers-reduced-motion:reduce) {
  .menu-theme586 :is(button,a,summary) { transition: none!important; }
}
/* Legacy Adventure modules use fixed dark colours. Give their optional panels
   the selected light surfaces without changing layout, state or type accents. */
.menu-theme586 :is(#collection-main,#collection-dialog-body) :where(p,small,label,dd,li,td) {
  color: var(--menu-muted);
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) :where(h2,h3,h4,strong,dt,summary,th) {
  color: var(--menu-ink);
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .first-step563,.eyebrow,.dossier-kicker524,.page-kicker528,.recruit-team-title526,
  .move-name537,.team-origin557 a,.rematch-path571 a
) { color: #a3293a; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .first-pick563,.training-desk533,.training521,.training-preview521,
  .preparation508,.style-brief544,.route-node515,.origin-details557,
  .mastery-next525,.mastery-milestone525,.mastery-track525,
  .challenge-card494,
  .trainer-dossier524,.rematch-review524,.dossier-fact524,.compare-team508,
  .scout-style532,.scout-matchup532,.scout-six532 article,.rival-scout532 details,
  .owned-card571,.owned-ready571,.weekly-goal523,.weekly-rival523,
  .rematch556,.rematch-stats556>div,.recruit-matchups574>article,
  .duplicate-reward526,.duplicate-other526,.recruit-browse526,
  .fork560,.fork-card560,.chosen-path560,.layout-preview537,
  .move-list509>.move509,.stage-brief506,.encounter558,.decision558,
  .next-guarantee,.welcome-note497,.adventure-goal568,.champion-route521,
  .chapter504,.route-chapter515,.campaign-node504,.pokemon-theme516,
  .team-identity496,.recruit-insight538,.recruit-new526
) {
  background: var(--menu-surface); border-color: var(--menu-line);
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) details {
  background: var(--menu-surface); border-color: var(--menu-line);
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(.scout-owned-list532 span,.route-node-kind515,.route-chapter-number515) {
  color: #76551f;
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) b { color: var(--menu-ink); }
.menu-theme586.collection-shell528 .navigation528 button[aria-selected=true] { color: #b52a3d; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(.fork-card560[data-path=quarry],.owned-card571[data-current=true]) {
  background: #fff5df; border-color: #d5b977;
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .stat-table508 th,.stat-table508 td,.team-origin557 dd,.compare-pokemon508,
  .rematch-prize556,.recruit-details585,.team-proof-note516
) { border-color: var(--menu-line); }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .move-meta537,.layout-legend537,.scout-six532 span,.scout-type-note532,
  .trainer-sheet-level528,.trainer-sheet-locked528,.encounter-mode575,
  .first-pace563,.recruit-style526,.recruit-receipt538,.compare-subtitle508
) { color: var(--menu-muted); }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .reward-total584,.recruit-savings574,.home-stage528,.adventure-prize504,
  .lobby-prize517,.weekly-bonus523,.rematch-prize556,.fork-prize560
) { color: #76551f; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(
  .daily-state584,.daily-bonus584,.stat-gain508,.daily-heading584>span,
  .reward-hero584[data-state=saved] h2
) { color: #20664e; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .layout-preview537 p { color: var(--menu-muted)!important; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .preparation508 { background: #f6f4ef!important; border-color: var(--menu-line)!important; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .route-rival515 { color: var(--menu-muted); }
.menu-theme586 #adventure-stage515 .eyebrow { color: #a3293a!important; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .owned-risk571 { color: #7e4c28!important; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) :is(.level-celebrate508,.boss-brief532) {
  background: #fff5df!important; border-color: #d5b977!important;
}
.menu-theme586 .col-footer :is(p,small,summary,a) { color: var(--menu-muted); }
.menu-theme586 .currency-coins528>.icon528 { color: #88601e; }
.menu-theme586 .currency-tickets528>.icon528 { color: #7354a2; }
.menu-theme586 .currency-notes528>.icon528 { color: #236c52; }
.menu-theme586 .navigation528 .nav-count506 { color: #ffffff; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .guarantees>span {
  background: var(--menu-surface); color: var(--menu-muted); border-color: var(--menu-line);
}
.menu-theme586 :is(#collection-main,#collection-dialog-body) .milestone-row584>span { color: #20664e; }
.menu-theme586 :is(#collection-main,#collection-dialog-body) .challenge-ready494 { color: #20664e; }
.menu-theme586.collection-shell528 input::placeholder { color: #736c75; opacity: 1; }
.menu-theme586.collection-shell528 .trainer-sheet-actions528 { background: #ffffff; border-color: var(--menu-line); }
.menu-theme586.collection-shell528 .trainer-sheet-actions528:has(>.primary:only-child) { grid-template-columns: 1fr; }
.menu-theme586 .trainer-paging533>span { color: var(--menu-muted); }
.menu-theme586 .rarity-badge {
  color: #514659; background: color-mix(in srgb,var(--rarity,#b9ced2) 18%,#ffffff);
  border-color: color-mix(in srgb,var(--rarity,#b9ced2) 60%,#8c838d);
}
.menu-theme586 :is(.more-modes497,.arena-header456) a { color: var(--menu-ink); }
.menu-theme586 :is(.more-modes497,.arena-header456) a:hover { background: #fbe8eb; color: #a3293a; }
.menu-theme586.collection-shell528 .primary:active:not(:disabled) { box-shadow: 0 2px 0 #a3293a; }
.menu-theme586 .journey-art562 p { color: #ffedbb; }
.menu-theme586.arena-menu .arena-header456 nav a { color: var(--menu-muted); }
.menu-theme586.arena-menu .arena-logo456 { color: var(--menu-ink); }
.menu-theme586.arena-menu .arena-logo456 small { color: #a3293a; }
.menu-theme586.arena-menu .mode-card456 :is(strong,.mode-action456) { color: #a3293a; }
.menu-theme586.arena-menu .mode-card456 :is(p,.mode-number456) { color: var(--menu-muted); }
