/* Accent the interactive content while keeping its surface steady. */
:root {
  --interaction-glow: color-mix(in srgb, var(--tempo-teal) 30%, transparent);
}

#tempo-shell > #navigation > button:is(:hover, :focus-visible),
#tempo-shell > #navigation > button.selected,
:is(.releaseprofilesub, .matchtabs) > button:is(:hover, :focus-visible, .selected) {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  color: var(--tempo-teal);
  text-shadow: 0 0 8px var(--interaction-glow);
}

#tempo-shell > #navigation > button.selected:not(.shell-utility)::after {
  box-shadow: 0 0 7px var(--interaction-glow);
}


:is(.ranknext, .patchversiontools button, .profileupdate, .releaseherotools button,
    .settingscard button):enabled:is(:hover, :focus-visible) {
  color: var(--tempo-teal);
  text-shadow: 0 0 8px var(--interaction-glow);
  box-shadow: none;
}

.rankcardheading .ranknext:is(:hover, :focus-visible),
:is(.tierchamp, .patchportrait):is(:hover, :focus-visible) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--tempo-text);
  text-shadow: 0 0 8px var(--interaction-glow);
}

.historycard.historywin,
.historycard.historyloss {
  border: 0;
  background-clip: padding-box;
}

.historycard:is(.historywin, .historyloss):is(:hover, :focus-visible) {
  border-color: transparent;
  background-color: var(--tempo-panel);
}

.historycard:is(.historywin, .historyloss) :is(.historycontext, .historyfooter) {
  border: 0;
}

.historycard:is(:hover, :focus-visible) .historychevron,
:is(.analysischampion, .historyplayer):hover,
.releasehero h1:hover {
  color: var(--tempo-text);
  text-shadow: 0 0 8px var(--interaction-glow);
}


:is(.historycard, .tierchamp, .patchportrait, .releaseprofilesub button, .matchtabs button):focus-visible {
  outline: 2px solid var(--tempo-teal);
  outline-offset: 2px;
}

:is(.patchversiontools button, .profileupdate, .releaseherotools button,
    .settingscard button):not([aria-pressed="true"]):enabled:hover {
  border-color: var(--tempo-line);
}

.historycard .historyteams {
  border-left: 0;
}

#tempo-shell > #navigation > button:is(:hover, :focus-visible) > svg,
:is(.ranknext, .patchversiontools button, .profileupdate, .releaseherotools button,
    .settingscard button):enabled:is(:hover, :focus-visible) > svg,
:is(.tierchamp, .patchportrait, .historyplayer, .analysischampion):hover img,
.releasehero img.releaseavatar:hover {
  filter: drop-shadow(0 0 4px var(--interaction-glow));
}

/* The search field already draws a ring around the entire control. */
#accountsearch select:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
}

.historycard:is(.historywin, .historyloss):is(:hover, :focus-visible) {
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--result-fill) 65%, transparent) 0%,
    color-mix(in srgb, var(--result-fill) 36%, transparent) 33%,
    color-mix(in srgb, var(--result-fill) 12%, transparent) 62%,
    transparent 94%);
}
.historycard:is(.historywin, .historyloss) {
  position: relative;
  box-shadow: var(--tempo-card-shadow);
}

