:root {
  color-scheme: dark;
  --pluff-hot-off: #e8475b;
  --pluff-cream: #f4eee1;
  --footer-gray: rgba(170, 170, 170, 0.86);
  --control-bg: rgba(14, 14, 16, 0.24);
  --control-border: rgba(255, 255, 255, 0.16);
  --control-text: rgba(255, 255, 255, 0.78);
  --headline-text: rgba(244, 238, 225, 0.92);
  --subhead-text: rgba(244, 238, 225, 0.6);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #050505;
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  -webkit-touch-callout: none;
  user-select: none;
}

.background-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
  pointer-events: none;
}

.background-video {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.background-video::-webkit-media-controls,
.background-video::-webkit-media-controls-panel,
.background-video::-webkit-media-controls-play-button,
.background-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

/* Shown only if canvas rendering never starts (video blocked/failed) */
.background-poster {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.brand-lockup {
  position: absolute;
  top: clamp(26px, 5vw, 58px);
  left: 50%;
  width: min(47vw, 280px);
  min-width: 170px;
  transform: translateX(-50%);
  z-index: 2;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.24));
  -webkit-user-drag: none;
}

.headline-block {
  position: absolute;
  left: 50%;
  top: 46vh;
  transform: translateX(-50%);
  z-index: 2;
  width: min(80vw, 380px);
  text-align: center;
  pointer-events: none;
}

.headline {
  margin: 0;
  color: var(--headline-text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2.4vw, 18px);
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  opacity: 0.85;
}

.subhead {
  margin: 6px 0 0;
  color: var(--subhead-text);
  font-size: clamp(11px, 1.6vw, 12.5px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.notify-form {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 2;
  width: min(86vw, 380px);
  text-align: center;
}

.notify-label {
  display: block;
  margin: 0 0 10px;
  color: var(--subhead-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.notify-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  color: rgba(244, 238, 225, 0.92);
  background: rgba(14, 14, 16, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.notify-input::placeholder {
  color: rgba(244, 238, 225, 0.4);
}

.notify-input:focus-visible {
  border-color: rgba(232, 71, 91, 0.65);
  background: rgba(14, 14, 16, 0.46);
}

.notify-submit {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  color: rgba(244, 238, 225, 0.95);
  background: var(--pluff-hot-off);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.notify-submit:hover {
  filter: brightness(1.08);
}

.notify-submit:active {
  transform: scale(0.97);
}

.notify-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.notify-feedback {
  min-height: 16px;
  margin: 10px 0 0;
  color: var(--subhead-text);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Honeypot: kept in the tab/DOM flow (not display:none) so it still
   fools simple bots, but positioned off-screen so real people never
   see or reach it. */
.notify-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notify-feedback.is-error {
  color: var(--pluff-hot-off);
}

.notify-form.is-submitted .notify-row,
.notify-form.is-submitted .notify-label {
  display: none;
}

.sound-toggle {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--control-text);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  z-index: 2;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.sound-toggle:hover {
  color: #ffffff;
  background: rgba(14, 14, 16, 0.34);
  border-color: rgba(255, 255, 255, 0.26);
}

.sound-toggle:focus-visible {
  outline: 2px solid rgba(232, 71, 91, 0.72);
  outline-offset: 4px;
}

.sound-toggle:active {
  transform: scale(0.96);
}

.sound-icon {
  display: none;
  width: 19px;
  height: 19px;
}

.sound-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle:not(.is-playing) .sound-icon--off,
.sound-toggle.is-playing .sound-icon--on {
  display: block;
}

@media (max-width: 700px) {
  .page-shell {
    min-height: 100dvh;
  }

  .brand-lockup {
    top: max(24px, env(safe-area-inset-top));
    width: min(56vw, 230px);
    min-width: 150px;
  }

  .background-video {
    object-position: center center;
  }

  .headline-block {
    top: 42vh;
    width: min(80vw, 320px);
  }

  .notify-form {
    bottom: 40px;
    width: min(92vw, 360px);
  }

  .notify-label {
    margin: 0 0 8px;
  }

  .notify-input,
  .notify-submit {
    height: 40px;
  }

  .notify-submit {
    padding: 0 14px;
  }

  .sound-toggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .notify-form {
    bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle,
  .notify-submit {
    transition: none;
  }
}

/* Short viewports (landscape phones) — collapse vertical rhythm to avoid overlap */
@media (max-height: 480px) {
  .brand-lockup {
    top: 10px;
    width: min(26vw, 130px);
    min-width: 95px;
  }

  .headline-block {
    top: 64px;
  }

  .headline {
    font-size: clamp(13px, 3vw, 16px);
  }

  .subhead {
    display: none;
  }

  .notify-form {
    bottom: 12px;
  }

  .notify-label {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .notify-input,
  .notify-submit {
    height: 34px;
  }
}

