html:has(.intro-screen[open]) { overflow: hidden; }

.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  color-scheme: dark;
  color: #fafafa;
  background: radial-gradient(ellipse at 50% 44%, #292929 0%, #121212 30%, #070707 66%);
  overflow: auto;
}
.intro-screen[open] { display: grid; place-items: center; }
.intro-screen::backdrop { background: transparent; }
.intro-mark {
  display: grid;
  justify-items: center;
  gap: clamp(.7rem, 3vmin, 1.45rem);
  outline: none;
}
.intro-logo {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.intro-logo:disabled { cursor: default; }
.intro-logo::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: clamp(6px, 1.35vmin, 12px);
  box-shadow:
    0 0 clamp(11px, 2vmin, 19px) calc(clamp(3px, .6vmin, 5px) + 5px) rgb(236 236 236 / 44%),
    0 0 clamp(23px, 4.1vmin, 39px) calc(clamp(6px, 1.3vmin, 12px) + 5px) rgb(220 220 220 / 18%);
  opacity: 0;
  pointer-events: none;
}
.intro-logo:not(:disabled):is(:hover, :focus-visible)::after { opacity: .85; }
.intro-logo img {
  display: block;
  width: clamp(6.25rem, 26vmin, 12rem);
  height: auto;
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 45%);
}
.intro-country {
  display: flex;
  align-items: center;
  gap: .8em;
  color: #e3e3e3;
  font-size: clamp(.8rem, 2.6vmin, 1.15rem);
  font-weight: 800;
  letter-spacing: .24em;
}
.intro-country span {
  width: clamp(1rem, 4vmin, 1.75rem);
  height: 2px;
  background: currentColor;
}
@media (max-width: 36rem), (orientation: landscape) and (pointer: coarse) and (max-height: 30rem) {
  .intro-country { gap: .32em; }
  .intro-country span { height: 1.5px; }
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .45rem;
}
.intro-actions button {
  min-width: 7rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid #929292;
  border-radius: .25rem;
  background: #171717;
  color: #fafafa;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  cursor: pointer;
}
.intro-actions button:hover { background: #333; }
.intro-playing .intro-actions { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .intro-screen { transition: opacity 220ms ease; }
  .intro-screen.intro-leaving { opacity: 0; }
  .intro-screen[open] .intro-mark img { animation: intro-logo-in 720ms cubic-bezier(.2,.7,.3,1) both; }
  .intro-screen[open] .intro-country { animation: intro-country-in 610ms 180ms ease-out both; }
  .intro-screen[open]:not(.intro-playing) .intro-logo::after { animation: intro-silver-pulse 2s 520ms ease-in-out infinite; }
  .intro-sounding .intro-logo::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: url('./brand.png') center / contain no-repeat;
    filter: blur(clamp(4px, 1.5vmin, 10px));
    mix-blend-mode: screen;
    opacity: var(--intro-audio-glow, 0);
  }
}
@keyframes intro-silver-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes intro-logo-in {
  from { opacity: 0; transform: translateY(.45rem) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-country-in {
  from { opacity: 0; transform: translateY(.4rem); }
  to { opacity: 1; transform: none; }
}
