@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--black); }
html { overscroll-behavior: none; }
body { overflow: hidden; }

.screen {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.playback-toggle {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.playback-toggle:focus-visible { outline: 1px solid #ffffff70; outline-offset: -10px; }
.logos { opacity: 0; }
.logos, .brand { position: absolute; inset: 0; }
.brand { display: grid; place-items: center; opacity: 0; pointer-events: none; }
.artwork { position: relative; display: block; width: min(var(--logo-width), 53vw, 29vh); height: min(126px, 32vw, 25vh); }
.core { display: block; width: 100%; height: 100%; object-fit: contain; }
.core {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 5px #ffffffbc) drop-shadow(0 0 19px #ffffff73) drop-shadow(0 0 48px #ffffff38);
}

.direction {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 2px;
  margin-left: -16px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--white);
  opacity: 0;
  filter: drop-shadow(0 0 6px #ffffff70);
}
.direction::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  content: "";
}

.paused-icon {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(25px, env(safe-area-inset-bottom));
  width: 11px;
  height: 13px;
  border-left: 3px solid;
  border-right: 3px solid;
  opacity: 0;
  transition: opacity 150ms ease;
}
.screen[data-paused="true"] .paused-icon { opacity: 0.45; }
.identity {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: center;
}
.identity h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 11vw, 68px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.055em;
  text-shadow: 0 0 20px #ffffff36, 0 0 48px #ffffff1a;
}
.identity a {
  display: grid;
  min-height: 44px;
  padding: 8px 10px;
  place-items: center;
  color: #e4e4e4;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
}
.identity .website { color: #a6a6a6; }
.identity a:focus-visible { outline: 1px solid #ffffffb3; outline-offset: 0; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .identity a:hover { color: #ffffff; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fallback { position: fixed; top: 50%; left: 50%; width: min(168px, 45vw); transform: translate(-50%, -50%); }

@media (orientation: landscape) and (max-height: 500px) {
  .artwork { width: min(var(--logo-width), 42vw, 43vh); }
  .identity h1 { font-size: 45px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .paused-icon { transition: none; }
}
