/* tcgacha.xyz door — zoomed iPhone held in a blurred neon collector's bedroom. */
.door {
  min-height: 100dvh;
  background: #050506 url("./room.jpg") center/cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Vignette: room falls away, phone is the light in the room. */
.door::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(5,5,6,0.18) 0%, rgba(5,5,6,0.06) 42%, rgba(5,5,6,0.55) 100%);
}

/* Zoomed: phone = viewport height. Not a desk mockup. */
.phone {
  position: relative;
  height: 100dvh;
  width: calc(100dvh * 393 / 852);
  max-width: 100vw;
  z-index: 1;
  filter: drop-shadow(0 0 6vh rgba(0,0,0,0.85));
}

.phone-screen {
  position: absolute;
  inset: 1.41% 3.05%; /* 12/852, 12/393 */
  border-radius: calc(42 / 852 * 100dvh);
  overflow: hidden;
  background: #000;
}

.phone-screen video,
.phone-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Play: simple white circle with a play triangle. Lives IN the glass. */
.phone-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 3vh rgba(0,0,0,0.45);
}

.phone-play .play-icon {
  width: 42%;
  height: 42%;
  fill: #050506;
  transform: translateX(6%); /* optical centering of the triangle */
}

.phone-play:disabled { opacity: 0.4; cursor: default; }

/* After clip 1: the circle sits on the vault door. */
.phone-play.on-door {
  top: 27%;
  transform: translate(-50%, -50%);
}

/* Real phone: film is the screen. Drop the fake bezel and the room. */
@media (max-width: 699px), (max-aspect-ratio: 3/4) {
  .door { background: #050506; }
  .door::before { display: none; }
  .phone { width: 100vw; height: 100dvh; filter: none; }
  .phone-frame { display: none; }
  .phone-screen { inset: 0; border-radius: 0; }
}
