:root {
  color-scheme: light;
  --bg: #18050d;
  --bg-soft: #2a0a16;
  --text: #ffe7ef;
  --text-muted: #cf9ead;
  --accent: #ff6f86;
  --accent-soft: #5b1128;
  --line: #6c2038;
  --card: rgba(56, 12, 28, 0.78);
  --shadow: 0 18px 55px rgba(8, 0, 2, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 98, 58, 0.18) 0%, rgba(0, 0, 0, 0) 35%),
    radial-gradient(circle at 86% 16%, rgba(255, 62, 108, 0.2) 0%, rgba(0, 0, 0, 0) 32%),
    linear-gradient(180deg, #14040a 0%, #1d0610 35%, #17050c 100%) fixed;
}

body.gate-active {
  overflow: hidden;
}

.hidden-by-gate {
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transition: opacity 260ms ease, filter 260ms ease;
}

.experience-visible {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(34, 20, 27, 0.58);
  padding: 1rem;
  transition: opacity 240ms ease, transform 240ms ease;
}

.auth-overlay {
  z-index: 40;
}

.gate-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.01);
}

.gate-card {
  width: min(520px, 94vw);
  background: linear-gradient(140deg, #4b1025 0%, #2c0a17 100%);
  border: 1px solid #7f2f49;
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.gate-card::before,
.gate-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.28;
}

.gate-card::before {
  top: -38px;
  left: -26px;
  background: radial-gradient(circle at 35% 35%, #ff96b3 0%, #9c254b 56%, rgba(0, 0, 0, 0) 72%);
}

.gate-card::after {
  right: -28px;
  bottom: -42px;
  background: radial-gradient(circle at 35% 35%, #ffcc91 0%, #a6334b 54%, rgba(0, 0, 0, 0) 72%);
}

.gate-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gate-card h2 {
  margin: 0.5rem 0;
  font-family: "Playfair Display", Georgia, serif;
}

.gate-copy {
  margin: 0 auto 1rem;
  max-width: 42ch;
  color: var(--text-muted);
}

.gate-sensual-row {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  margin: 0.1rem 0 0.95rem;
}

.gate-sensual-row span {
  display: inline-block;
  font-size: 1.12rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
  animation: sensualBob 2.2s ease-in-out infinite;
}

.gate-sensual-row span:nth-child(2) { animation-delay: 0.14s; }
.gate-sensual-row span:nth-child(3) { animation-delay: 0.26s; }
.gate-sensual-row span:nth-child(4) { animation-delay: 0.38s; }
.gate-sensual-row span:nth-child(5) { animation-delay: 0.5s; }

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

.gate-yes {
  width: 100%;
  min-height: 44px;
  font-weight: 600;
  background: #672039;
  border-color: #8f3758;
  color: #ffe4ec;
}

.no-escape-zone {
  position: relative;
  height: auto;
}

.gate-no {
  width: 100%;
  min-height: 44px;
  font-weight: 600;
  padding-inline: 1.05rem;
  position: relative;
  top: 0;
  left: 0;
}

.gate-hint {
  margin: 0.85rem 0 0;
  min-height: 1.3rem;
  color: #875f6d;
  font-size: 0.9rem;
}

.auth-card {
  width: min(740px, 96vw);
}

.auth-copy {
  margin: 0.45rem auto;
  max-width: 62ch;
  color: #e8b5c3;
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.auth-input {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #8f3758;
  background: #310d1b;
  color: #ffe6ee;
  padding: 0.55rem 0.95rem;
  font: inherit;
}

.auth-input::placeholder {
  color: #a87c8b;
}

.auth-input:focus-visible {
  outline: 2px solid #ff8aa5;
  outline-offset: 1px;
}

.sus-gallery {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}

.sus-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #7f2f49;
  background: rgba(38, 11, 21, 0.82);
}

.sus-empty {
  margin: 0;
  color: #b88b99;
  font-size: 0.88rem;
  text-align: center;
  grid-column: 1 / -1;
}

.jumpscare-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  opacity: 1;
  transition: opacity 520ms ease;
}

.jumpscare-overlay.is-fading {
  opacity: 0;
}

.jumpscare-overlay.is-active {
  animation: jumpscareBackdrop 1200ms ease forwards;
}

.jumpscare-image {
  width: min(68vw, 520px);
  max-height: 72vh;
  object-fit: contain;
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(10px) scale(0.25) rotate(-35deg);
}

.jumpscare-overlay.is-active .jumpscare-image {
  animation: jumpscareSpinGrow 1200ms cubic-bezier(0.15, 0.9, 0.2, 1) forwards;
}

.jumpscare-fallback {
  position: absolute;
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  font-weight: 700;
  text-align: center;
}

.celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
}

.celebrate-piece {
  position: absolute;
  top: -12vh;
  left: 0;
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  animation: celebrateFall var(--dur, 2400ms) linear forwards;
  animation-delay: var(--delay, 0ms);
}

.wrapper {
  width: min(1050px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 4rem 0 2rem;
}

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

h1 {
  margin: 0.5rem 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.hero-copy {
  max-width: 58ch;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spotlight {
  background: linear-gradient(130deg, rgba(104, 21, 49, 0.95), rgba(56, 10, 27, 0.95));
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.spotlight-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.spotlight-text {
  margin: 0.45rem 0 0.8rem;
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
}

.soft-button,
.close-button {
  border: 1px solid var(--line);
  background: #4f142a;
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.soft-button {
  padding: 0.55rem 1rem;
}

.soft-button:hover,
.soft-button:focus-visible {
  transform: translateY(-1px);
  background: #6b1c39;
}

.timeline-header {
  margin-top: 2.5rem;
}

.stats-section {
  margin-top: 2rem;
  padding: 1rem 0 0.3rem;
}

.stats-intro {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(63, 14, 30, 0.78);
  padding: 0.8rem 0.86rem;
  box-shadow: 0 8px 22px rgba(5, 0, 2, 0.4);
}

.stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.stat-value {
  margin: 0.38rem 0 0;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 700;
}

.pie-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(63, 14, 30, 0.78);
  padding: 0.92rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(5, 0, 2, 0.4);
}

.pie-card h3 {
  margin: 0 0 0.55rem;
}

.viz-image {
  width: min(100%, 880px);
  border-radius: 0.75rem;
  border: 1px solid rgba(199, 120, 148, 0.35);
  box-shadow: 0 10px 26px rgba(5, 0, 2, 0.46);
  display: block;
  margin: 0 auto;
}

.timeline-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}

.timeline-header p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.timeline {
  margin: 2rem 0 3rem;
}

.month-group {
  margin-bottom: 2.2rem;
}

.month-title {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.message-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(5, 0, 2, 0.45);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.message-card:hover,
.message-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(5, 0, 2, 0.62);
  border-color: #a94867;
}

.message-text {
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.message-tag {
  background: var(--accent-soft);
  color: #ffdce7;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.status {
  color: var(--text-muted);
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 2, 6, 0.78);
}

.modal-panel {
  position: relative;
  width: min(340px, 84vw);
  margin: 3vh auto;
  background: transparent;
  border-radius: 1.7rem;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow);
  outline: none;
}

.close-button {
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  width: 2rem;
  height: 2rem;
  font-weight: 700;
  z-index: 3;
}

.close-button:hover,
.close-button:focus-visible {
  background: #fff5f9;
}

.modal-date,
.modal-sender {
  color: var(--text-muted);
  margin: 0.15rem 0;
}

.phone-shell {
  background: #300d1a;
  border: 8px solid #1f1f25;
  border-radius: 1.8rem;
  overflow: hidden;
  height: min(72vh, 560px);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
}

.phone-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #4d1428, #36101f);
  border-bottom: 1px solid #6f2742;
  text-align: center;
  padding: 0.3rem 0.72rem 0.56rem;
}

.phone-notch {
  display: block;
  margin: 0 auto 0.42rem;
  width: 78px;
  height: 13px;
  border-radius: 999px;
  background: #25252c;
}

.phone-header #modalTitle {
  margin: 0;
  font-size: 1rem;
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.56rem 0.8rem;
  background:
    radial-gradient(circle at 20% 20%, #4a1427 0, #34101e 45%),
    linear-gradient(180deg, #3b1220 0%, #2f0d19 100%);
}

.chat-bubble {
  max-width: 84%;
  border-radius: 1rem;
  padding: 0.56rem 0.7rem 0.52rem;
  margin-bottom: 0.52rem;
  display: block;
  box-shadow: 0 5px 14px rgba(157, 126, 138, 0.12);
}

.chat-bubble.me {
  margin-left: auto;
  background: #5b1f37;
  border: 1px solid #8e3f60;
  color: #ffe7ef;
}

.chat-bubble.them {
  margin-right: auto;
  background: #2f0e19;
  border: 1px solid #5f2239;
  color: #ffd9e5;
}

.chat-bubble.gm-focus {
  border: 2px solid #ff9ab4;
  background: #74253f;
}

.bubble-text {
  margin: 0;
  line-height: 1.35;
  white-space: pre-wrap;
}

.bubble-meta {
  margin-top: 0.34rem;
  font-size: 0.68rem;
  color: #d0a2b1;
}

.context-fallback {
  color: var(--text-muted);
  font-style: italic;
  margin: 0.45rem;
}

.background-floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floater {
  position: absolute;
  border-radius: 999px;
  opacity: 0.66;
  filter: blur(0.6px);
  transform-origin: bottom center;
  animation: flameFlicker 7s ease-in-out infinite;
}

.floater-1 {
  width: 120px;
  height: 190px;
  background: radial-gradient(ellipse at 50% 75%, rgba(255, 186, 92, 0.92) 0%, rgba(255, 68, 59, 0.62) 52%, rgba(0, 0, 0, 0) 74%);
  bottom: -42px;
  left: 7%;
  animation-delay: 0.3s;
}

.floater-2 {
  width: 90px;
  height: 150px;
  background: radial-gradient(ellipse at 50% 75%, rgba(255, 150, 73, 0.95) 0%, rgba(255, 37, 95, 0.56) 58%, rgba(0, 0, 0, 0) 75%);
  bottom: -24px;
  right: 13%;
  animation-delay: 1.2s;
}

.floater-3 {
  width: 76px;
  height: 124px;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 203, 123, 0.84) 0%, rgba(255, 63, 63, 0.58) 57%, rgba(0, 0, 0, 0) 74%);
  bottom: -16px;
  left: 26%;
  animation-delay: 0.9s;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 260ms ease, transform 260ms ease;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-16px) translateX(8px);
  }
}

@keyframes flameFlicker {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.56;
  }
  50% {
    transform: translateY(-16px) scale(1.08, 1.18) rotate(2deg);
    opacity: 0.86;
  }
}

@keyframes sensualBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-4deg);
  }
}

@keyframes jumpscareBackdrop {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes jumpscareSpinGrow {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.22) rotate(-40deg);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(0.9) rotate(280deg);
  }
  100% {
    opacity: 1;
    transform: translateY(-2px) scale(1.9) rotate(720deg);
  }
}

@keyframes celebrateFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(540deg);
    opacity: 0.95;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 2.5rem;
  }

  .auth-form {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    margin-top: 3vh;
    width: min(330px, 90vw);
  }

  .close-button {
    right: 0;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
