.odi-mode-nav__tariff-accent {
  display: none;
  pointer-events: none;
}

/* Equal cells in the mobile mode switcher; the experimental Lab has its own menu. */
@media (width < 48rem) {
  .odi-mode-nav:not(.trainer-lab *) {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: .375rem;
    padding: .375rem;
    border: 1px solid #eeebff;
    border-radius: 1.5rem;
    background: #e7e4f7;
  }

  .odi-mode-nav:not(.trainer-lab *) > button {
    min-width: 0;
    min-height: 44px;
    padding: .375rem .4375rem;
    gap: .25rem;
    border: 1px solid #d4cfee;
    background: #f9f8ff;
    text-align: center;
    font-size: clamp(.75rem, 3.6vw, .875rem);
    line-height: 1.17;
    white-space: normal;
    box-shadow: none;
  }

  .odi-mode-nav:not(.trainer-lab *) > button > span { min-width: 0; overflow-wrap: anywhere; }
  .odi-mode-nav:not(.trainer-lab *) > button > svg { width: .8125rem; height: .8125rem; margin: 0; }
  .odi-mode-nav:not(.trainer-lab *) > button:hover { background: #efecff; }
  .odi-mode-nav:not(.trainer-lab *) > button:is([data-trainer-selected="true"], [aria-pressed="true"]) {
    border-color: var(--color-brand);
    background: var(--color-brand);
  }
  .odi-mode-nav:not(.trainer-lab *) > .odi-mode-nav__arcade {
    grid-column: 1 / -1;
    background: #292044;
    border-color: #292044;
  }
  .odi-mode-nav:not(.trainer-lab *) > .odi-mode-nav__arcade:hover { background: #4a3579; }

  .odi-mode-nav:not(.trainer-lab *) > .odi-mode-nav__tariffs {
    display: grid;
    inline-size: min(100%, 26rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    justify-self: center;
    justify-items: center;
    gap: .375rem;
  }

  .odi-mode-nav:not(.trainer-lab *) .odi-mode-nav__tariff-accent {
    display: block;
    inline-size: clamp(2.5rem, 14vw, 3.375rem);
    max-inline-size: 100%;
    block-size: auto;
    filter: drop-shadow(0 2px 2px #3f337527);
  }

  .odi-mode-nav:not(.trainer-lab *) .odi-mode-nav__tariffs > button {
    min-height: 44px;
    min-width: 0;
    margin-inline: 0;
    white-space: normal;
    text-align: center;
  }
  .odi-mode-nav:not(.trainer-lab *) button:focus-visible { outline: 2px solid var(--color-brand-dark); outline-offset: 2px; }
}


/* Scale the artwork, keeping the existing layout and button hit areas. */
.odi-profile-popover :is(svg:not(.odi-profile-frame-art),.odi-profile-avatar-detail > .odi-profile-frame,.odi-profile-achievement-art) {
  scale:.94;
  transform-origin:center;
}

/* The profile is neutral except for the two Brilliant Move entries. */
.odi-profile-tile {min-width:0;padding:.625rem;border:1px solid var(--color-pill);border-radius:1rem;background:#fff;}
.odi-profile-summary {display:flex;align-items:center;gap:.625rem;width:100%;min-height:44px;text-align:left;}
.odi-profile-summary:not(.odi-profile-tile) {border-radius:.625rem;}
.odi-profile-summary:focus-visible {outline:2px solid var(--color-brand);outline-offset:2px;}
.odi-profile-tile:has(>.odi-profile-summary[aria-expanded="true"]) {background:color-mix(in srgb,var(--color-pill) 24%,#fff);}
.odi-profile-tile--link:hover {border-color:color-mix(in srgb,var(--color-brand) 28%,var(--color-pill));background:color-mix(in srgb,var(--color-pill) 24%,#fff);}
.odi-profile-detail {margin-top:.625rem;border-top:1px solid var(--color-pill);padding-top:.625rem;}
.odi-profile-stat {display:flex;align-items:flex-start;gap:.25rem;margin-top:.1875rem;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.25;font-weight:800;color:var(--color-ink-soft);}
.odi-profile-stat > .odi-profile-stat-icon {width:1rem;height:1rem;flex:none;}

/* Onyx from Brilliant Move (brilliant-studio.css), confined to these tiles. */
.odi-profile-tile--diamond {
  --profile-diamond-ink:#f8f5ff;
  --profile-diamond-muted:#d2c8e7;
  --profile-diamond-accent:#bc9cff;
  --profile-diamond-line:#554569;
  --profile-diamond-glow:radial-gradient(ellipse at 82% 30%,#352650 0%,transparent 54%);
  color:var(--profile-diamond-ink);
  border-color:var(--profile-diamond-line);
  background:var(--profile-diamond-glow),#191525;
}
.odi-profile-tile--diamond:is(:has(>.odi-profile-summary[aria-expanded="true"]),.odi-profile-tile--link:hover) {
  border-color:#8068ab;
  background:var(--profile-diamond-glow),#21192e;
}
.odi-profile-tile--diamond :is(.odi-profile-stat,.odi-profile-diamond-copy) {color:var(--profile-diamond-muted);}
.odi-profile-tile--diamond .odi-profile-detail {border-color:var(--profile-diamond-line);}
.odi-profile-diamond-chevron {color:var(--profile-diamond-accent);}
.odi-profile-diamond-action {color:var(--profile-diamond-ink);background:#342644;}
.odi-profile-diamond-action:hover {color:#211336;background:var(--profile-diamond-accent);}
.odi-profile-tile--diamond :is(.odi-profile-summary,.odi-profile-diamond-action):focus-visible {outline:2px solid var(--profile-diamond-accent);outline-offset:2px;}
.odi-profile-popover .odi-release-profile-art {display:block;flex:none;width:2.5rem;height:2.5rem;}
.odi-profile-popover .odi-release-profile-collection-gem {display:block;width:100%;height:100%;}
.odi-profile-popover .odi-release-profile-account {display:block;flex:none;width:2.75rem;height:2.75rem;}
.odi-profile-popover .odi-release-profile-subscription {display:block;flex:none;width:1.75rem;height:1.75rem;}
.odi-profile-popover .odi-release-profile-title {line-height:1.25;}
@media(max-width:639.98px){.odi-profile-popover{right:.625rem;left:.625rem;padding:.75rem;max-height:calc(100dvh - 6rem);}}
@media(min-width:640px){.odi-profile-popover{max-height:calc(100dvh - 5rem);}}
