/* Element defaults and the type scale. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bq-canvas-glow) no-repeat, var(--bq-canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.5;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--text-4xl); letter-spacing: -.005em; }
h2 { font-size: var(--text-xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 700; }
p { margin: 0 0 var(--space-3); }

/* Metallic display text: page titles, stat values and champion names only. A solid color is always set first. */
.chrome-text {
  color: var(--bq-chrome-solid);
  background: var(--bq-chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.display { font-family: var(--font-display); font-style: italic; font-weight: 700; }
.eyebrow { margin: 0; color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

a { color: var(--brand); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

img, svg { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .95em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-3); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius);
  background: var(--brand-fill); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

#blazor-error-ui {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 1000;
  padding: var(--space-3) var(--space-4); background: var(--danger-soft); color: var(--danger);
  border-top: 1px solid var(--border);
}

@media (forced-colors: active) {
  .chrome-text { -webkit-text-fill-color: currentColor; background: none; }
  * { box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
