/* ==========================================================================
   TONIGHT, JUST US ❤️ - Private Couples Challenge Game
   Aesthetic: Ultra-luxe Dark Romance, Glassmorphism, Deep Burgundy & Purple
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #060408;
  --bg-card: rgba(22, 12, 28, 0.72);
  --bg-card-hover: rgba(32, 18, 42, 0.85);
  --bg-glass-subtle: rgba(255, 255, 255, 0.04);

  --accent-burgundy: #881337;
  --accent-crimson: #be123c;
  --accent-rose: #e11d48;
  --accent-rose-glow: rgba(225, 29, 72, 0.35);

  --accent-purple-deep: #3b0764;
  --accent-purple: #7e22ce;
  --accent-violet: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.25);

  --accent-husband: #9f1239;
  --accent-husband-glow: rgba(159, 18, 57, 0.4);
  --accent-wife: #701a75;
  --accent-wife-glow: rgba(112, 26, 117, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(244, 63, 94, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-luxe: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(136, 19, 55, 0.15);
  --shadow-glow: 0 0 25px var(--accent-rose-glow);
}

/* Base Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(136, 19, 55, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(76, 29, 149, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 10, 25, 0.6) 0%, transparent 100%),
    linear-gradient(180deg, #060408 0%, #0d0614 100%);
  z-index: -2;
  pointer-events: none;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* App Wrapper */
.app-container {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 40px 20px;
  position: relative;
  z-index: 1;
}

/* Header Bar */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

.brand-badge span.sparkle {
  color: var(--accent-rose);
  animation: pulseSparkle 2.5s infinite ease-in-out;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  color: #fff;
  transform: scale(1.05);
}

.icon-btn.btn-stop {
  color: #f87171;
}
.icon-btn.btn-stop:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Main Hero Typography */
.hero-section {
  text-align: center;
  padding: 16px 0 12px 0;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--accent-rose);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-title .heart-glow {
  color: var(--accent-rose);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

/* Turn Tracker Banner */
.turn-tracker-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px 0;
}

.turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.5), rgba(76, 29, 149, 0.5));
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.25);
  animation: pulseGlow 2.5s infinite alternate;
}

.turn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 1.5s infinite;
}

/* Player Selector: Large Buttons */
.player-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 18px 0;
}

.player-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.player-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.player-btn.husband::before {
  background: radial-gradient(circle at 50% 0%, var(--accent-husband-glow), transparent 70%);
}

.player-btn.wife::before {
  background: radial-gradient(circle at 50% 0%, var(--accent-wife-glow), transparent 70%);
}

.player-btn:hover::before,
.player-btn.active::before {
  opacity: 1;
}

.player-btn.active {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 12px 30px -8px var(--accent-rose-glow), 0 0 15px rgba(225, 29, 72, 0.2);
}

.player-btn.husband.active {
  border-color: rgba(225, 29, 72, 0.8);
  box-shadow: 0 10px 28px -5px var(--accent-husband-glow);
}

.player-btn.wife.active {
  border-color: rgba(192, 132, 252, 0.8);
  box-shadow: 0 10px 28px -5px var(--accent-wife-glow);
}

.player-emoji {
  font-size: 2.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.player-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

.player-status-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

.player-btn.active .player-status-tag {
  color: #fda4af;
  font-weight: 600;
}

/* Stage & Progress Container */
.stage-card {
  background: rgba(18, 9, 24, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  position: relative;
}

.stage-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stage-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-badge {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.4), rgba(126, 34, 206, 0.4));
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.stage-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.stage-count-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Progress Bar */
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #be123c, #e11d48, #c084fc);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.7);
}

.partner-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.partner-breakdown-row span.partner-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-step-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.stage-step-marker {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.stage-step-marker.active {
  color: #fb7185;
  font-weight: 700;
}

/* 🎁 Mystery Gift & Random Roll Section */
.gift-section {
  background: linear-gradient(135deg, rgba(28, 12, 36, 0.7), rgba(48, 14, 40, 0.7));
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

.gift-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gift-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gift-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gift-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
}

.gift-btn:hover, .gift-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(225, 29, 72, 0.4);
}

.gift-btn.gift-wife:hover, .gift-btn.gift-wife:active {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(225, 29, 72, 0.2);
}

.gift-btn.gift-husband:hover, .gift-btn.gift-husband:active {
  border-color: rgba(190, 18, 60, 0.6);
  background: rgba(190, 18, 60, 0.2);
}

.gift-btn.gift-wild:hover, .gift-btn.gift-wild:active {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(126, 34, 206, 0.25);
}

.gift-btn-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.gift-btn-text {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Challenge Glass Card */
.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-luxe);
  backdrop-filter: blur(20px);
  margin-bottom: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 20%, rgba(225, 29, 72, 0.12), transparent 60%);
  pointer-events: none;
}

.challenge-card.animating-in {
  animation: cardAppear 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}

.category-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.intensity-stars {
  display: flex;
  gap: 3px;
  font-size: 0.82rem;
  color: #f43f5e;
}

.duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.challenge-text-wrap {
  position: relative;
  z-index: 2;
  margin: 10px 0 16px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.challenge-prompt {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Action Controls */
.action-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.primary-btn-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #9333ea 100%);
  color: #fff;
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(225, 29, 72, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover, .btn-secondary:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-complete {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.5);
}

.btn-complete:hover, .btn-complete:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.7);
}

/* Interactive Countdown Timer Component */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 18px 0;
  padding: 16px;
  background: rgba(14, 7, 20, 0.8);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease;
}

.timer-circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.timer-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.95s linear;
}

.timer-display {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
}

.timer-controls-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.timer-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.timer-btn:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.4);
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 6, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #110716;
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(190, 18, 60, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.close-btn:hover {
  color: #fff;
}

/* 🎁 Gift Mystery Box Animation in Modal */
.gift-modal-body {
  text-align: center;
  padding: 10px 0;
}

.gift-box-anim {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: 12px;
  cursor: pointer;
}

.gift-box-anim.rolling {
  animation: giftWiggle 0.6s infinite ease-in-out;
}

.gift-title-display {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fda4af;
  font-weight: 700;
  margin-bottom: 8px;
}

.gift-text-display {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #fff;
  margin: 12px 0 20px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* History List in Modal */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Stage Unlock Celebration Modal */
.celebrate-modal {
  text-align: center;
}

.celebrate-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  animation: bounce 1s infinite alternate;
}

.celebrate-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.celebrate-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Discreet Panic Screen */
.panic-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.panic-screen.active {
  display: flex;
}

/* Keypad & Login PIN Pad */
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.pin-key {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pin-key:hover, .pin-key:active {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.5);
  transform: scale(0.97);
}

.pin-display-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
}

/* Settings Form Controls */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-label {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.settings-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.settings-input, .settings-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
}

.settings-select option {
  background: #110716;
  color: #fff;
}

/* Animations */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px var(--accent-rose)); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  70% { transform: scale(1); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(225, 29, 72, 0.2); }
  100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.5), 0 0 30px rgba(126, 34, 206, 0.3); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes giftWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

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

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Media Queries for Large or Small screens */
@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .challenge-prompt { font-size: 1.25rem; }
  .btn { padding: 14px 14px; font-size: 0.9rem; }
}

/* Turn Mode Toggle Button */
.turn-tracker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.turn-mode-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fce7f3;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.turn-mode-btn:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-1px);
}

.turn-mode-btn.auto-mode {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  color: #e9d5ff;
}

/* Role Owner & Sequence Badges on Card */
.role-owner-pill {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.role-owner-pill.husband {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.role-owner-pill.wife {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
}

.sequence-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Sequence Navigation Row */
.sequence-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 16px 0;
  z-index: 2;
  position: relative;
}

.seq-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seq-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.switch-partner-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 4px;
}

.switch-partner-btn:hover {
  color: #fff;
}

/* All Challenges Browser Modal */
.modal-large {
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.all-challenges-filters {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-tab:hover, .filter-tab.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(126, 34, 206, 0.4));
  border-color: rgba(225, 29, 72, 0.5);
  color: #fff;
}

.all-challenges-content {
  overflow-y: auto;
  max-height: 58vh;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.all-stage-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px;
}

.all-stage-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.all-challenge-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s;
}

.all-challenge-item:hover {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateX(3px);
}

.all-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.all-item-tag {
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.all-item-tag.tag-husband {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.all-item-tag.tag-wife {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.all-item-tag.tag-both {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

