* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #e5e7eb;
  min-height: 100vh;
}

.fullscreen-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-image {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.title-overlay {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe8ff;
  text-shadow:
    0 0 14px #ff00e1,
    -4px -4px 0 #00f0ff,
    4px 4px 0 #7b2cff,
    0 0 30px rgba(0, 0, 0, 0.9),
    0 0 55px rgba(255, 0, 128, 0.9);
  padding: 0.4rem 1.8rem;
  text-align: center;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.speaker-overlay {
  position: absolute;
  /* tweak these percents to fine-tune over the head */
  top: 48%;
  left: 29%;
  transform: translate(-50%, -50%) rotate(-36deg);
  z-index: 2;
  display: none;
}

.speaker-icon {
  font-size: 3.6rem;
  color: #38bdf8;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  animation: speaker-blink 0.4s steps(2, jump-start) infinite;
}

@keyframes speaker-blink {
  0% {
    opacity: 1;
    filter: brightness(1.4);
  }
  20% {
    opacity: 0.2;
    filter: brightness(0.7);
  }
  35% {
    opacity: 1;
    filter: brightness(1.3);
  }
  55% {
    opacity: 0.3;
    filter: brightness(0.8);
  }
  80% {
    opacity: 1;
    filter: brightness(1.4);
  }
  100% {
    opacity: 0.4;
    filter: brightness(0.9);
  }
}

.speaker-overlay-right {
  position: absolute;
  /* initial guess near the other person’s face; tweak if needed */
  top: 18%;
  left:50%;
  transform: translate(-50%, -50%) rotate(160deg);
  z-index: 2;
  display: none;
}

.completion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  z-index: 5;
}

.completion-visible {
  opacity: 1;
  pointer-events: auto;
}

.completion-card {
  background: rgba(15,15,23,0.96);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(148,148,180,0.55);
  box-shadow:
    0 22px 70px rgba(0,0,0,0.9),
    0 0 0 2px rgba(15,15,23,1);
  max-width: 900px;
  width: 90%;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.completion-video {
  flex: 0 0 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.completion-video video {
  width: 100%;
  height: auto;
  display: block;
}

.completion-content {
  flex: 1;
  text-align: center;
}

.completion-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f9fafb;
  text-shadow:
    0 0 10px rgba(0,0,0,0.8),
    0 0 26px rgba(0,0,0,0.9);
  margin-bottom: 0.9rem;
}

.completion-title span {
  color: #facc15;
}

.completion-sub {
  margin-bottom: 1.5rem;
  color: #cbd5f5;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.completion-stars {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 2.2rem;
}

.completion-stars .star {
  cursor: pointer;
  color: #1f2937;
  text-shadow:
    0 0 0 rgba(0,0,0,0),
    0 0 12px rgba(0,0,0,0.7);
  transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease;
}

.completion-stars .star:hover {
  transform: translateY(-4px) scale(1.05);
  color: #facc15;
  text-shadow:
    0 0 10px rgba(250,204,21,0.9),
    0 0 22px rgba(234,179,8,0.9);
}

.desktop-warning {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20;
}

.desktop-warning-visible {
  display: flex;
}

.desktop-warning-card {
  background: #020617;
  color: #e5e7eb;
  padding: 2rem 2.4rem;
  border-radius: 1.25rem;
  box-shadow: 0 22px 80px rgba(0,0,0,0.95);
  max-width: 420px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(148,163,184,0.8);
}

.desktop-warning-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-warning-card p {
  font-size: 0.95rem;
  color: #cbd5f5;
}

.pause-toggle {
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #22c55e, #a3e635);
  color: #052e16;
  box-shadow:
    0 0 0 2px #000,
    0 6px 0 #14532d,
    0 10px 25px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  z-index: 6;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  opacity: 0;
  pointer-events: none;
}

.pause-toggle-icon {
  font-size: 1.2rem;
}

.pause-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px #000,
    0 4px 0 #14532d,
    0 8px 20px rgba(0,0,0,0.9);
  filter: brightness(1.05) saturate(1.15);
}

.pause-toggle:active {
  transform: translateY(1px);
  box-shadow:
    0 0 0 2px #000,
    0 1px 0 #14532d,
    0 4px 12px rgba(0,0,0,1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.2rem 1.8rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(145deg, #ff007a, #ffdd00);
  box-shadow:
    0 0 0 3px #000,
    0 10px 0 #2b0b45,
    0 14px 25px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  z-index: 1;
}

.play-button:before {
  content: "PLAY";
}

.play-icon {
  font-size: 1.3rem;
}

.play-button:hover {
  transform: translate(-50%, -52%);
  box-shadow:
    0 0 0 3px #000,
    0 6px 0 #2b0b45,
    0 10px 20px rgba(0, 0, 0, 0.8);
  filter: brightness(1.08) saturate(1.2);
}

.play-button:active {
  transform: translate(-50%, -46%);
  box-shadow:
    0 0 0 3px #000,
    0 2px 0 #2b0b45,
    0 4px 10px rgba(0, 0, 0, 0.9);
}
