:root {
  --ink: #0b0a0f;
  --ink-2: #14121a;
  --bone: #f2ece3;
  --muted: #8c8597;
  --rose: #e36a86;
  --alarm: #ff2233;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--bone);
  background-color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.room {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 1.5rem 4rem;
  overflow: hidden;
  text-align: center;
}

.spotlight {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(120vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(227, 106, 134, 0.16) 0%,
    rgba(227, 106, 134, 0.06) 30%,
    transparent 62%
  );
  pointer-events: none;
  animation: breathe 5.5s ease-in-out infinite;
}

.eyebrow {
  position: relative;
  margin: 0 0 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.question {
  position: relative;
  margin: 0 0 3rem;
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.8rem, 12vw, 7.5rem);
  line-height: 0.98;
  color: var(--bone);
}

.question em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.choices {
  position: relative;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.choice {
  min-width: 9.5rem;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.28);
  border-radius: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.08s ease;
}

.choice:hover {
  border-color: var(--bone);
}

.choice:active {
  transform: translateY(1px);
}

.choice--yes:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ink);
}

.choice--no:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.choice:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade 0.25s ease both;
  z-index: 10;
}

.verdict {
  position: relative;
  width: min(440px, 100%);
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: var(--ink-2);
  border: 1px solid rgba(242, 236, 227, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.verdict__emoji {
  font-size: 4.5rem;
  line-height: 1;
}

.verdict__line {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--bone);
}

.verdict__liar {
  margin: 0.5rem 0;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: clamp(3.5rem, 16vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--alarm);
  animation: flash 0.7s steps(1) infinite;
}

.verdict--alarm {
  border-color: rgba(255, 34, 51, 0.45);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 34, 51, 0.25),
    0 0 60px rgba(255, 34, 51, 0.25);
}

.verdict__dismiss {
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.18);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.verdict__dismiss:hover {
  color: var(--bone);
  border-color: rgba(242, 236, 227, 0.5);
}

.verdict__dismiss:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes flash {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.12;
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .choices {
    width: min(100%, 21rem);
  }

  .choice {
    flex: 1 1 9.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight,
  .verdict__liar,
  .backdrop,
  .verdict {
    animation: none;
  }

  .verdict__liar {
    opacity: 1;
  }
}
