:root {
  color-scheme: dark;
  --black: #020202;
  --ink: #090909;
  --steel: #b7b7aa;
  --blue: #0b4fff;
  --red: #8a0f12;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.film.has-source {
  opacity: 1;
  z-index: 2;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.09), transparent 18%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 35%),
    #000;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4px, 4px 100%;
  mix-blend-mode: screen;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), transparent 23%, transparent 78%, rgba(0, 0, 0, 0.9)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 26%, transparent 72%, rgba(0, 0, 0, 0.82));
}

.video-placeholder-office {
  background:
    linear-gradient(90deg, #000 0 17%, #090909 17% 20%, #020202 20% 80%, #0a0a0a 80% 83%, #000 83%),
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.12), transparent 35%),
    #000;
}

.video-placeholder-office .play-mark {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(16vw, 112px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  opacity: 0.4;
}

.video-placeholder-office .play-mark::after,
.video-placeholder-desk .play-mark::after,
.video-placeholder-confirmed .play-mark::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 32%;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid rgba(255, 255, 255, 0.42);
}

.video-placeholder-desk {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(90, 75, 55, 0.38), transparent 32%),
    linear-gradient(0deg, #130e0a 0 36%, #040404 36% 100%);
}

.video-placeholder-alley {
  background:
    radial-gradient(ellipse at 52% 10%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(90deg, #020202 0 24%, #090909 24% 31%, #000 31% 69%, #080808 69% 76%, #020202 76%),
    #000;
}

.alley-light {
  position: absolute;
  left: 50%;
  top: -4%;
  width: min(52vw, 540px);
  height: 72vh;
  transform: translateX(-50%);
  opacity: 0.42;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
}

.video-placeholder-confirmed {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(32, 85, 255, 0.16), transparent 25%),
    radial-gradient(ellipse at 50% 66%, rgba(255, 255, 255, 0.06), transparent 30%),
    #000;
}

.choice-table,
.single-choice {
  position: absolute;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.choice-table.is-visible,
.single-choice.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.choice-table {
  left: 50%;
  bottom: 9vh;
  width: min(82vw, 820px);
  height: min(29vh, 240px);
  transform: translateX(-50%);
  border-radius: 50% 50% 8% 8% / 20% 20% 8% 8%;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(55, 42, 31, 0.94), rgba(17, 12, 8, 0.98));
  box-shadow: 0 -18px 90px rgba(0, 0, 0, 0.72);
}

.single-choice {
  left: 50%;
  bottom: 13vh;
  width: min(62vw, 520px);
  height: min(30vh, 260px);
  transform: translateX(-50%);
}

.phone {
  position: absolute;
  display: block;
  width: clamp(78px, 17vw, 148px);
  height: clamp(132px, 25vw, 222px);
  border-radius: 20px;
  transform: perspective(700px) rotateX(58deg) rotateZ(var(--rotate, 0deg));
  outline: none;
  filter: saturate(0.9);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.2), transparent 4%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    #050505;
}

.phone::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 180ms ease;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.22), transparent 62%);
}

.phone:hover::after,
.phone:focus-visible::after {
  opacity: 1;
}

.phone-primary {
  --rotate: -13deg;
  left: 24%;
  top: 10%;
  background: linear-gradient(145deg, #32302a, #030303 70%);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(255, 255, 255, 0.09);
}

.phone-blue {
  --rotate: 14deg;
  right: 24%;
  top: 10%;
  background: linear-gradient(145deg, #1c65ff, #001344 72%);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.72),
    0 0 50px rgba(17, 86, 255, 0.34);
}

.phone-large {
  left: 50%;
  top: 50%;
  width: clamp(96px, 21vw, 172px);
  height: clamp(160px, 31vw, 258px);
  transform: translate(-50%, -50%) perspective(700px) rotateX(58deg) rotateZ(-4deg);
}

@media (max-width: 680px) {
  .stage {
    min-height: 100svh;
  }

  .choice-table {
    width: 96vw;
    height: 27vh;
    bottom: 8vh;
  }

  .phone-primary {
    left: 17%;
  }

  .phone-blue {
    right: 17%;
  }
}
