:root {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  color: #f7f7f7;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  letter-spacing: 0.03em;
}

.frame {
  width: min(560px, 92%);
  padding: 3rem clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02) 65%
    )
    rgba(15, 15, 15, 0.75);
  box-shadow: 0 35px 60px -40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  text-align: center;
}

.label {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}

.choices {
  display: grid;
  gap: 1.2rem;
}

.choice {
  appearance: none;
  border: 0;
  padding: 1.1rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  color: #031222;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.4);
}

.choice--warm {
  color: #2a0b05;
  background: linear-gradient(135deg, #ffbe76, #ff6f61);
  box-shadow: 0 14px 30px -18px rgba(255, 111, 97, 0.55);
}

.choice--cool {
  background: linear-gradient(135deg, #5ad7ff, #1a6bff);
  box-shadow: 0 14px 30px -18px rgba(26, 107, 255, 0.55);
}

.choice.is-disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.choice:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
}

.choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -22px rgba(0, 0, 0, 0.9);
}

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

.transition-message {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.2rem);
  background: linear-gradient(135deg, rgba(2, 6, 10, 0.9), rgba(7, 7, 7, 0.9));
  color: #f7f7f7;
  text-align: center;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.transition-message__images {
  position: relative;
  width: min(90vw, 560px);
  height: min(80vh, 740px);
  max-width: 100%;
  max-height: 100%;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.transition-message__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 280ms ease, transform 280ms ease;
}

.transition-message.is-visible .transition-message__image--before {
  opacity: 1;
  transform: scale(1);
}

.transition-message.is-after .transition-message__image--before {
  opacity: 0;
  transform: scale(1.02);
}

.transition-message.is-after .transition-message__image--after {
  opacity: 1;
  transform: scale(1);
}

.transition-message__text {
  margin: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.transition-message.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.transition-message.is-visible .transition-message__text {
  display: none;
}
