:root {
  --bg-deep: #071e24;
  --bg-ocean: #0b3a42;
  --bg-foam: #d7f0ea;
  --ink: #f4fffb;
  --ink-soft: rgba(244, 255, 251, 0.78);
  --accent: #f0b429;
  --accent-soft: #ffd978;
  --danger: #ff8f7a;
  --ok: #7dffc0;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 1.25rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --touch: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
}

button,
input {
  font: inherit;
}

.app {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.room {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--pad);
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.room.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.room[hidden] {
  display: none !important;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 217, 120, 0.18), transparent 55%),
    radial-gradient(ellipse 100% 80% at 70% 100%, rgba(20, 90, 100, 0.55), transparent 50%),
    linear-gradient(165deg, #123f48 0%, #071e24 55%, #041216 100%);
}

.atmosphere--ocean {
  background:
    radial-gradient(circle at 30% 70%, rgba(60, 180, 170, 0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #0a4a55 0%, #062830 45%, #03151a 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere--night {
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 180, 41, 0.08), transparent 35%),
    linear-gradient(180deg, #050b12 0%, #0a1620 50%, #061018 100%);
}

.atmosphere--trail {
  background:
    radial-gradient(ellipse at 40% 0%, rgba(240, 180, 41, 0.2), transparent 45%),
    linear-gradient(160deg, #1c3a32 0%, #0d221c 40%, #071410 100%);
}

.atmosphere--dusk {
  animation: glowPulse 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.04) translateY(-1.5%);
  }
}

@keyframes glowPulse {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15) brightness(1.05);
  }
}

.room__content {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.room__content--center {
  align-items: stretch;
  text-align: center;
}

.room__content--photo {
  width: min(40rem, 100%);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-soft);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 22rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hint-line {
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  align-self: flex-start;
  min-height: var(--touch);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1200;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

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

.room__content--center .btn,
.btn--calendar {
  align-self: stretch;
  width: 100%;
}

.photo-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 60, 70, 0.3), rgba(2, 20, 28, 0.55)),
    repeating-linear-gradient(
      -12deg,
      #0d5560 0 12px,
      #0a4650 12px 24px
    );
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.photo-placeholder__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(244, 255, 251, 0.55);
}

.hotspot {
  position: absolute;
  border: 2px solid rgba(255, 217, 120, 0.35);
  background: rgba(125, 255, 192, 0.12);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.hotspot--turtle {
  /* Placeholder-positie: later fine-tunen op echte foto */
  width: min(28vw, 7.5rem);
  height: min(28vw, 7.5rem);
  left: 42%;
  top: 48%;
  transform: translate(-50%, -50%);
}

.hotspot--turtle.is-holding {
  box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.25);
  background: rgba(240, 180, 41, 0.22);
}

.hotspot--turtle.is-done {
  border-color: var(--ok);
  background: rgba(125, 255, 192, 0.28);
}

.patience-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.patience-meter__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  transition: width 0.1s linear;
}

.status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.status--error {
  color: var(--danger);
}

.silence-void {
  min-height: 30vh;
  display: grid;
  place-items: center;
}

.silence-prompt {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  animation: fadeUp 0.6s ease both;
}

.answer-form label {
  font-weight: 500;
}

.answer-form input {
  min-height: var(--touch);
  border: 1px solid rgba(244, 255, 251, 0.22);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  outline: none;
}

.answer-form input:focus {
  border-color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.letter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
}

.letter {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.letter p {
  margin: 0 0 1rem;
}

.letter__sign {
  color: var(--accent-soft);
  font-family: var(--font-display);
}

.yt-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 720px) {
  .photo-placeholder {
    aspect-ratio: 16 / 10;
  }

  .hotspot--turtle {
    width: 6.5rem;
    height: 6.5rem;
    left: 46%;
    top: 55%;
  }
}
