@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 30%, #f9c4d4 0%, #f0d5ee 45%, #dcc4f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: relative;
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -20px;
  font-size: 1rem;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 44px 52px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(180, 90, 140, 0.18);
}

/* Avatar */
.avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.avatar-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: #2d1a1a;
  line-height: 1.35;
  margin-bottom: 28px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #2d1a1a;
  line-height: 1.35;
  margin-bottom: 10px;
}

p {
  color: #5a3a3a;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  user-select: none;
}

.btn:hover {
  transform: scale(1.06);
}

.btn-yes {
  background: #e06485;
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 80, 120, 0.38);
}

.btn-yes:hover {
  box-shadow: 0 6px 20px rgba(220, 80, 120, 0.5);
}

.btn-no {
  background: #9b7fca;
  color: #fff;
  box-shadow: 0 4px 14px rgba(155, 127, 202, 0.38);
  position: relative;
  z-index: 999;
  transition: transform 0.2s ease-out;
  cursor: default;
}

.btn-primary {
  background: #e06485;
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 80, 120, 0.38);
  width: 100%;
  margin-top: 8px;
}

.btn-primary:disabled {
  background: #e0b4c2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(220, 80, 120, 0.5);
}

/* Button row */
.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form styles */
.form-group {
  text-align: left;
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  color: #3d2020;
  margin-bottom: 7px;
  font-size: 0.95rem;
}

input[type="date"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0c0d0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #3d2020;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: auto;
}

input[type="date"]:focus,
select:focus {
  border-color: #e06485;
}

/* Food grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.food-item {
  border: 2px solid #eeddee;
  border-radius: 16px;
  padding: 16px 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.food-item:hover {
  border-color: #e06485;
  transform: scale(1.03);
}

.food-item.selected {
  border-color: #e06485;
  background: #fde8ef;
}

.food-item .food-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.food-item span:last-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d2020;
}

/* Hearts decoration */
.hearts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 1.1rem;
  color: #e06485;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
