/* Import modern fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

/* Global variables and color system — Light Theme */
:root {
  --bg-color: #fff6fb;
  --bg-gradient: linear-gradient(135deg, #fff0f8 0%, #f3e8ff 50%, #ffe4f5 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(236, 56, 188, 0.15);
  --panel-shadow: 0 8px 40px 0 rgba(180, 60, 150, 0.12);
  --text-primary: #2b1c40;
  --text-secondary: #8b6b9a;
  --accent-pink: #d63c9c;
  --accent-purple: #7b3fc4;
  --accent-cyan: #06b6d4;
  --font-title: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --glow-shadow: 0 0 18px rgba(214, 60, 156, 0.25);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(ellipse at 30% 20%, #ffd6f0 0%, #f9f0ff 40%, #fff6fb 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Cosmic Canvas and Stars */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1;
  position: relative;
}

/* Glass Card System */
.glass-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(214, 60, 156, 0.12);
  border-radius: 28px;
  padding: 35px 30px;
  box-shadow: 0 10px 45px rgba(180, 60, 150, 0.1), 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.5s;
  pointer-events: none;
}

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Headings and Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.2rem;
  background: linear-gradient(120deg, #2b1c40 20%, #d63c9c 70%, #7b3fc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.8rem;
  color: #2b1c40;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Inputs & Form Controls */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  padding-left: 5px;
}

input[type="text"], textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid rgba(214, 60, 156, 0.18);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus, textarea:focus {
  background: #fff;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(214, 60, 156, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.occasions-container {
  margin-bottom: 25px;
}

.occasions-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 160px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(214, 60, 156, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(214, 60, 156, 0.1);
}

/* Custom scrollbar for occasions container */
.occasions-flex::-webkit-scrollbar {
  width: 5px;
}
.occasions-flex::-webkit-scrollbar-track {
  background: transparent;
}
.occasions-flex::-webkit-scrollbar-thumb {
  background: rgba(214, 60, 156, 0.25);
  border-radius: 4px;
}

.occasion-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid rgba(214, 60, 156, 0.15);
  border-radius: 14px;
  color: #5a3d6e;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(214, 60, 156, 0.06);
}

.occasion-chip:hover {
  background: #fff5fb;
  border-color: rgba(214, 60, 156, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 60, 156, 0.12);
}

.occasion-chip.selected {
  background: linear-gradient(135deg, #ffeaf6 0%, #f3d6ff 100%);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  box-shadow: 0 0 12px rgba(214, 60, 156, 0.18);
  font-weight: 600;
}

.select-row {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.custom-select-wrapper {
  flex: 1;
  position: relative;
}

select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid rgba(214, 60, 156, 0.18);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(214, 60, 156, 0.12);
}

.custom-select-wrapper::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  gap: 10px;
  width: 100%;
}

.btn:disabled, .btn[disabled] {
  background: #d6cbd9 !important;
  color: #ffffff !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.7;
}
.btn:disabled::after, .btn[disabled]::after {
  display: none !important;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-pink), #ff51b5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 56, 188, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 56, 188, 0.5);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-icon-back {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.btn-icon-back:hover {
  background: rgba(214, 60, 156, 0.08);
  transform: scale(1.05);
}

/* Dashboard List Style */
.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 245, 252, 0.9);
  border: 1.5px solid rgba(214, 60, 156, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.dashboard-item:hover {
  background: #fff0f8;
  border-color: rgba(214, 60, 156, 0.25);
  box-shadow: 0 4px 14px rgba(214, 60, 156, 0.08);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe4f5 0%, #f0d9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-icon svg {
  width: 28px;
  height: 28px;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
}

.item-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
}

.btn-change {
  background: rgba(236, 56, 188, 0.12);
  border: 1.5px solid rgba(236, 56, 188, 0.2);
  color: #ff85df;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change:hover {
  background: rgba(236, 56, 188, 0.2);
  border-color: rgba(236, 56, 188, 0.4);
  transform: translateY(-1px);
}

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 40, 120, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  background: #f7f7f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #2b1c40;
}

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

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a103c;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: #8d7a96;
  margin-top: 5px;
}

/* Custom Card Options (Cakes, Friends, etc.) */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 25px;
  max-height: 320px;
  overflow-y: auto;
  padding: 5px;
}

/* Custom scrollbar for options list */
.options-grid::-webkit-scrollbar {
  width: 6px;
}
.options-grid::-webkit-scrollbar-track {
  background: rgba(214, 60, 156, 0.04);
}
.options-grid::-webkit-scrollbar-thumb {
  background: rgba(214, 60, 156, 0.2);
  border-radius: 3px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1.5px solid #eae6eb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  color: #5c4d66;
}

.option-card:hover {
  background: #faf8fb;
  border-color: #d6c8d9;
}

.option-card.selected {
  background: #fff5fa;
  border-color: #ec38bc;
  color: #d63384;
  box-shadow: 0 0 15px rgba(236, 56, 188, 0.12);
}

.option-graphic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8fb;
  border: 1px solid #eae6eb;
  border-radius: 12px;
}

.option-graphic svg {
  width: 32px;
  height: 32px;
}

.option-details {
  display: flex;
  flex-direction: column;
}

.option-name {
  font-weight: 600;
  font-size: 1rem;
  color: #2d1f3b;
}

.option-desc {
  font-size: 0.8rem;
  color: #a08da6;
  margin-top: 1px;
}

/* Grid Layout for Friend selection and Vibes */
.options-grid-cols {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.options-grid-cols .option-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
}

.options-grid-cols .option-graphic {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
}

.options-grid-cols .option-graphic svg {
  width: 56px;
  height: 56px;
}

/* Multi-select Adjectives layout */
.adjectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.adjective-chip {
  padding: 14px 10px;
  background: #fff;
  border: 1.5px solid rgba(214, 60, 156, 0.15);
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 0.95rem;
  color: #5a3d6e;
}

.adjective-chip:hover {
  background: #fff5fb;
  border-color: rgba(214, 60, 156, 0.3);
}

.adjective-chip.selected {
  background: linear-gradient(135deg, #ffeaf6 0%, #f0d9ff 100%);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(214, 60, 156, 0.12);
}

.adjectives-counter {
  font-size: 0.85rem;
  color: var(--accent-pink);
  font-weight: 600;
  margin-bottom: 10px;
  text-align: right;
}

/* Link Share Box */
.share-link-box {
  display: flex;
  align-items: center;
  background: #fff5fb;
  border: 1.5px solid rgba(214, 60, 156, 0.18);
  padding: 12px 16px;
  border-radius: 16px;
  margin: 20px 0;
  gap: 10px;
}

.share-link-text {
  flex: 1;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8b6b9a;
  text-align: left;
}

.btn-copy {
  background: var(--accent-pink);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #ff51b5;
}

/* Audio Player Toggle */
.music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(214, 60, 156, 0.2);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(214, 60, 156, 0.15);
}

.music-toggle:hover {
  background: #fff0f8;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(214, 60, 156, 0.2);
}

.music-toggle.playing svg {
  animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================================================== */
/* RECIPIENT VIEW / CELEBRATION SCREENS */
/* ======================================================== */

/* Intro Screen: Gift Box */
.gift-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin: 30px 0;
  cursor: pointer;
}

.gift-box {
  width: 140px;
  height: 140px;
  position: relative;
  transform-style: preserve-3d;
  animation: floatGift 3s ease-in-out infinite;
  transition: transform 0.8s ease;
}

@keyframes floatGift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.gift-box:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

.gift-lid {
  position: absolute;
  width: 150px;
  height: 35px;
  background: #ff3e7f;
  top: -20px;
  left: -5px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  z-index: 3;
  transform-origin: bottom right;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-lid::after {
  content: '';
  position: absolute;
  left: 65px;
  top: -20px;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 0 0;
  border: 8px solid #ffeb3b;
  border-bottom: none;
  transform: rotate(-45deg);
}

.gift-lid::before {
  content: '';
  position: absolute;
  left: 65px;
  top: -20px;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 0 0;
  border: 8px solid #ffeb3b;
  border-bottom: none;
  transform: scaleX(-1) rotate(-45deg);
}

.gift-body {
  position: absolute;
  width: 140px;
  height: 120px;
  background: #ff5722;
  bottom: 0;
  border-radius: 0 0 12px 12px;
  z-index: 2;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Bow ribbon stripes on the gift box */
.gift-ribbon-v {
  position: absolute;
  width: 24px;
  height: 100%;
  background: #ffeb3b;
  left: 58px;
  top: 0;
  z-index: 2;
}

.gift-ribbon-h {
  position: absolute;
  width: 100%;
  height: 24px;
  background: #ffeb3b;
  top: 48px;
  left: 0;
  z-index: 2;
}

.gift-lid .gift-ribbon-v {
  left: 63px;
  height: 35px;
}

/* Gift Open States */
.gift-box.opened .gift-lid {
  transform: translateY(-80px) rotate(45deg) scale(0.8);
  opacity: 0;
}

.gift-box.opened {
  transform: scale(0);
  opacity: 0;
}

/* Recipient Letter Card Display */
.letter-display-box {
  background: rgba(255, 245, 252, 0.95);
  border: 1.5px solid rgba(214, 60, 156, 0.14);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #2b1c40;
  margin-bottom: 25px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(214, 60, 156, 0.08);
}

.letter-text {
  font-family: var(--font-title);
  white-space: pre-wrap;
  background: linear-gradient(180deg, #2b1c40 0%, #8b3a7c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bond Constellation Visualization */
.constellation-wrapper {
  height: 220px;
  position: relative;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.constellation-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.constellation-node {
  position: absolute;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(255,240,250,0.95) 0%, rgba(240,225,255,0.95) 100%);
  border: 1.5px solid rgba(214, 60, 156, 0.25);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a2e6e;
  box-shadow: 0 4px 16px rgba(214, 60, 156, 0.12);
  z-index: 2;
  transform: scale(0);
  animation: nodeEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes nodeEnter {
  to { transform: scale(1); }
}

.constellation-node:nth-child(1) { top: 30px; left: 15%; animation-delay: 0.3s; }
.constellation-node:nth-child(2) { top: 120px; left: 55%; animation-delay: 0.6s; }
.constellation-node:nth-child(3) { top: 60px; right: 15%; animation-delay: 0.9s; }

.constellation-svg line {
  stroke: rgba(214, 60, 156, 0.4);
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  animation: dashLine 10s linear infinite;
}

@keyframes dashLine {
  to { stroke-dashoffset: -100; }
}

/* Friend Greeting View */
.friend-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
}

.friend-graphic-container {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
  animation: floatFriend 3.5s ease-in-out infinite;
}

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

.friend-speech-bubble {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 16px 24px;
  color: #1a082e;
  font-weight: 500;
  max-width: 80%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-size: 1rem;
}

.friend-speech-bubble::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 12px 12px;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
}

/* Cake Ceremony Interaction */
.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  position: relative;
}

.cake-container {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cake-container:hover {
  transform: scale(1.03);
}

.cake-container:active {
  transform: scale(0.97);
}

/* Confetti canvas overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* SVG Cake Custom Styling & Keyframes */
.candle-flame {
  animation: flicker 0.6s infinite alternate;
  transform-origin: center bottom;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); filter: drop-shadow(0 0 4px #ffc107); }
  100% { transform: scale(1.15) rotate(2deg); filter: drop-shadow(0 0 8px #ff5722); }
}

.candle-flame.blown-out {
  display: none;
}

/* Custom styles for vibe-specific themes — Light */
body.vibe-warm {
  background-image: radial-gradient(ellipse at 30% 20%, #ffd6ee 0%, #fff0fa 50%, #f9f5ff 100%);
  --accent-pink: #d63c9c;
}

body.vibe-fun {
  background-image: radial-gradient(ellipse at 30% 20%, #fff3c4 0%, #fff8e6 50%, #f0fff4 100%);
  --accent-pink: #d97706;
  --text-primary: #2c1a08;
}

body.vibe-love {
  background-image: radial-gradient(ellipse at 30% 20%, #ffd6d6 0%, #fff0f0 50%, #fdf5ff 100%);
  --accent-pink: #e11d48;
}

/* Responsive Optimization */
@media (max-width: 480px) {
  .glass-card {
    padding: 25px 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .options-grid-cols {
    grid-template-columns: 1fr;
  }
}
