/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --primary: #ff6b6b;
  --primary-glow: rgba(255, 107, 107, 0.3);
  --accent: #ffd166;
  --accent-soft: rgba(255, 209, 102, 0.15);
  --bisexual-pink: #ff69b0;
  --bisexual-purple: #9b59b6;
  --bisexual-blue: #4a90d9;
  --text: #f0ede8;
  --text-muted: #888;
  --text-dim: #555;
  --radius: 16px;
  --radius-sm: 10px;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  cursor: default;
}

/* ===== NOISE TEXTURE ===== */
.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== BLOBS ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: rgba(255, 107, 107, 0.12); top: -100px; right: -100px; }
.blob-2 { width: 300px; height: 300px; background: rgba(255, 105, 176, 0.1); bottom: -80px; left: -60px; animation-delay: 2s; }
.blob-3 { width: 350px; height: 350px; background: rgba(74, 144, 217, 0.1); top: 50px; left: -80px; animation-delay: 1s; }
.blob-4 { width: 280px; height: 280px; background: rgba(155, 89, 182, 0.12); bottom: 0; right: 0; animation-delay: 3s; }
.blob-5 { width: 200px; height: 200px; background: rgba(255, 209, 102, 0.1); top: 40%; left: 20%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

/* ===== SCREENS ===== */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  overflow: hidden;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0px);
}

.screen.exit {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

/* ===== CONTENT ===== */
.content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.content.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
.tag-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid #2a2a2a;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

.display-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.display-title.mid {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.display-title.big {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.name-highlight {
  background: linear-gradient(135deg, var(--bisexual-pink), var(--bisexual-purple), var(--bisexual-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.italic { font-style: italic; }

.roast-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--primary);
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
}

.small-sub {
  font-size: 0.55em;
  font-family: 'Caveat', cursive;
  color: var(--text-muted);
  vertical-align: middle;
  font-style: normal;
}

/* ===== CORNER TEXT ===== */
.corner-text {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  z-index: 2;
}

/* ===== ROAST CARD ===== */
.roast-card {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.roast-item {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #222;
  font-family: 'DM Sans', sans-serif;
}

.roast-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roast-aside {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--primary);
  margin-left: 6px;
}

/* ===== FEELINGS GRID ===== */
.feelings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}

.feeling-card {
  background: var(--surface);
  border: 1px solid #252525;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
  color: var(--text);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}

.feeling-card:hover {
  border-color: #3a3a3a;
  background: #1c1c1c;
}

.feeling-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.small-note {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 4px;
}

/* ===== PROPOSAL NOTE ===== */
.proposal-note {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 rgba(255, 107, 107, 0);
}
.btn-primary:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #333;
}
.btn-ghost:hover {
  border-color: #555;
  color: var(--text);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-yes {
  background: linear-gradient(135deg, var(--bisexual-pink), var(--bisexual-purple));
  color: white;
  font-size: 1.1rem;
  padding: 15px 40px;
  box-shadow: 0 0 0 rgba(255, 105, 176, 0);
  transition: all 0.3s ease;
}
.btn-yes:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 105, 176, 0.4);
}

.btn-no {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid #2a2a2a;
  font-size: 1rem;
  padding: 15px 30px;
  position: relative;
  transition: all 0.2s ease;
}
.btn-no:hover {
  color: var(--text-dim);
}

/* ===== YES SCREEN ===== */
.big-emoji {
  font-size: 5rem;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

.shake {
  animation: shake 0.5s ease-in-out infinite !important;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.yes-note {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 420px;
}

.no-note {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 380px;
}

.love-stamp {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 8px 18px;
  transform: rotate(-2deg);
  opacity: 0;
  animation: stampIn 0.5s 0.8s forwards;
}

@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-2deg) scale(2); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* ===== CONFETTI ===== */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== POLAROID ===== */
.polaroid-float {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  z-index: 3;
  animation: polaSway 5s ease-in-out infinite;
}

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

.polaroid {
  background: #f5f0e8;
  padding: 10px 10px 36px 10px;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.polaroid img {
  width: 140px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 1px;
}

.polaroid-label {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: #333;
  text-align: center;
  margin-top: 6px;
  display: block;
  width: 100%;
}

/* ===== YES PHOTO ===== */
.yes-photo-wrap {
  position: relative;
  display: inline-block;
}

.yes-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 3px solid transparent;
  background: linear-gradient(#161616, #161616) padding-box,
              linear-gradient(135deg, var(--bisexual-pink), var(--bisexual-purple), var(--bisexual-blue)) border-box;
  animation: photoFloat 3s ease-in-out infinite;
}

.yes-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 105, 176, 0.25);
  animation: ringPulse 2s ease-in-out infinite;
}

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

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .feelings-grid { grid-template-columns: 1fr; }
  .display-title { font-size: 2.5rem; }
  .content { padding: 1.5rem; }
  .roast-card { padding: 1.2rem; }
  .polaroid-float { display: none; }
}
