*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The [hidden] attribute must always win, even over components that set
   their own `display` (e.g. `.player-resume{display:flex}`) — otherwise
   an author rule's specificity silently beats the UA's [hidden]{display:
   none}, and JS toggling the attribute stops having any visible effect. */
[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top left, rgba(158, 34, 51, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 197, 24, 0.08), transparent 24%),
    linear-gradient(180deg, #09090a 0%, #060607 32%, #040405 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, 100% 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

img {
  max-width: 100%;
  display: block;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

main {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(158, 34, 51, 0.35);
}

[tabindex]:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-hover);
  border-radius: var(--radius-pill);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
