:root {
  --bg: #020612;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(3, 8, 20, 0.9);
  --panel-strong: rgba(5, 11, 28, 0.96);
  --blue-glow: rgba(13, 56, 132, 0.72);
  --blue-glow-soft: rgba(9, 42, 106, 0.36);
  --black-outline: #02030a;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.background-video,
.video-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  object-fit: cover;
  z-index: -3;
  background: #020612;
  filter: saturate(1.12) contrast(1.06);
}

.video-shade {
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(2, 6, 18, 0.04), rgba(2, 6, 18, 0.66) 74%),
    linear-gradient(180deg, rgba(2, 6, 18, 0.18), rgba(2, 6, 18, 0.72));
  pointer-events: none;
}

.hero-message {
  width: min(1220px, calc(100vw - 36px));
  padding: 24px 0 120px;
  text-align: center;
}

.hero-message h1 {
  margin: 0 auto;
  font-family: "lindsey-signature", "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
  font-size: clamp(4.1rem, 10vw, 10.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  color: #fff;
  -webkit-text-stroke: clamp(1px, 0.14vw, 2px) var(--black-outline);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 var(--black-outline),
    2px 0 0 var(--black-outline),
    0 -2px 0 var(--black-outline),
    -2px 0 0 var(--black-outline),
    0 0 16px var(--blue-glow),
    0 0 34px var(--blue-glow-soft),
    0 0 68px rgba(1, 24, 72, 0.34);
  animation: bluePulse 4.8s ease-in-out infinite;
}

.hero-message h1 span {
  display: block;
}

.hero-message h1 .mobile-line {
  display: none;
}

.sound-toggle,
.streetkings-mail {
  position: fixed;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(3, 8, 20, 0.48);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.sound-toggle:hover,
.streetkings-mail:hover,
.sound-toggle:focus-visible,
.streetkings-mail:focus-visible {
  border-color: rgba(129, 174, 255, 0.58);
  background: rgba(3, 8, 20, 0.66);
  box-shadow: 0 0 0 4px rgba(13, 56, 132, 0.2), 0 0 24px rgba(13, 56, 132, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.sound-toggle {
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.sound-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-icon-live {
  display: none;
}

.sound-toggle.is-live .sound-icon-muted {
  display: none;
}

.sound-toggle.is-live .sound-icon-live {
  display: block;
}

.streetkings-mail {
  left: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
}

.streetkings-mail img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 8;
  width: 100%;
  padding: 0 88px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.86);
  pointer-events: none;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(3, 8, 20, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.legal-links button {
  border: 0;
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.legal-links button:hover,
.legal-links button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.site-footer p {
  width: min(920px, 100%);
  margin: 0 auto;
  pointer-events: auto;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.42);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
  outline: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(620px, 100%);
  max-height: min(76vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.88);
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.62), 0 0 36px rgba(13, 56, 132, 0.24);
  transform: translateY(8px) scale(0.985);
  transition: transform 200ms ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header,
.modal-actions {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.modal-content {
  overflow: auto;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.modal-content p {
  margin: 0 0 12px;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.button.ghost {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  cursor: pointer;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: #fff;
  border-color: rgba(129, 174, 255, 0.58);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes bluePulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow:
      0 2px 0 var(--black-outline),
      2px 0 0 var(--black-outline),
      0 -2px 0 var(--black-outline),
      -2px 0 0 var(--black-outline),
      0 0 14px rgba(13, 56, 132, 0.54),
      0 0 32px rgba(9, 42, 106, 0.28),
      0 0 58px rgba(1, 24, 72, 0.26);
  }
  50% {
    transform: scale(1.012);
    text-shadow:
      0 2px 0 var(--black-outline),
      2px 0 0 var(--black-outline),
      0 -2px 0 var(--black-outline),
      -2px 0 0 var(--black-outline),
      0 0 22px rgba(22, 79, 166, 0.72),
      0 0 46px rgba(13, 56, 132, 0.44),
      0 0 82px rgba(1, 24, 72, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .site-shell {
    min-height: 100svh;
  }

  .hero-message {
    width: min(94vw, 620px);
    padding-bottom: 182px;
  }

  .hero-message h1 {
    font-size: clamp(2.45rem, 12.2vw, 4.25rem);
  }

  .hero-message h1 .desktop-line {
    display: none;
  }

  .hero-message h1 .mobile-line {
    display: block;
  }

  .site-footer {
    bottom: calc(76px + env(safe-area-inset-bottom));
    padding: 0 16px;
    font-size: 0.7rem;
  }

  .site-footer p {
    max-width: 340px;
  }

  .legal-links {
    gap: 4px;
    margin-bottom: 5px;
  }
}

@media (max-width: 420px) {
  .hero-message h1 {
    font-size: clamp(2.35rem, 11.8vw, 3.75rem);
  }

  .sound-toggle {
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .streetkings-mail {
    left: 14px;
    width: 50px;
    height: 50px;
  }

  .streetkings-mail img {
    width: 39px;
    height: 39px;
  }
}
