:root {
  --cream: #faf7f2;
  --warm: #f5ede0;
  --sand: #e8d5c0;
  --brown: #a07850;
  --dark: #3d2b1f;
  --green: #6b8f6e;
  --green-light: #e8f0e9;
  --accent: #c9845a;
  --text: #4a3728;
  --muted: #9e8070;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Georgia", serif;
  background-color: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #e8d5c0 0%, #f5ede0 50%, #e8f0e9 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(107, 143, 110, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 132, 90, 0.12) 0%, transparent 50%);
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.emoji-row {
  font-size: 2.4rem;
  letter-spacing: 8px;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

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

@keyframes emoji-fall {
  0%  { transform: translateY(-60px) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(105vh) rotate(600deg); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--dark);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta-icon {
  font-size: 1.1rem;
}

.event-meta-sep {
  color: var(--sand);
  font-size: 1.2rem;
}

.invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.9rem;
  color: var(--brown);
  box-shadow: 0 2px 12px rgba(160, 120, 80, 0.12);
}

/* ── Main ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  min-height: 100vh;
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Cards ── */
.wishlist {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 20px;
  box-shadow: 0 2px 16px rgba(60, 40, 20, 0.06);
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(60, 40, 20, 0.12);
  border-color: var(--sand);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.card-icon.green  { background: var(--green-light); }
.card-icon.warm   { background: #fdebd8; }
.card-icon.blue   { background: #e8eef8; }
.card-icon.yellow { background: #fef8e8; }

.card-body h2 {
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--dark);
  margin-bottom: 4px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-wish     { background: #fdebd8; color: var(--accent); }
.tag-priority { background: #fde8e8; color: #b85050; }
.tag-store    { background: var(--green-light); color: var(--green); }

/* ── Stores block (unused but kept for future) ── */
.stores-section { margin-top: 48px; }

.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.store-card {
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 40, 20, 0.1);
}

.store-card .store-logo { font-size: 1.8rem; margin-bottom: 8px; }
.store-card h3 { font-size: 0.95rem; font-weight: normal; color: var(--dark); margin-bottom: 4px; }
.store-card p  { font-size: 0.78rem; color: var(--muted); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 48px 24px 64px;
  background: var(--warm);
  border-top: 1px solid var(--sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-heart { font-size: 1.6rem; margin-bottom: 12px; }
.footer h3 { font-size: 1.2rem; font-weight: normal; color: var(--dark); margin-bottom: 8px; }
.footer p  { font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* ── Address & Map ── */
.address-section { margin-top: 56px; }

.address-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(60, 40, 20, 0.06);
  border: 1.5px solid var(--sand);
}

.address-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.address-icon {
  width: 52px;
  height: 52px;
  background: #fdebd8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.address-text h3 { font-size: 1rem; font-weight: normal; color: var(--dark); margin-bottom: 4px; }
.address-text a  { font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.address-text a:hover { text-decoration: underline; }

.map-frame {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ── Controller list ── */
.controller-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controller-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border-radius: 10px;
  flex-wrap: wrap;
}

.controller-name {
  font-size: 0.82rem;
  color: var(--text);
  font-family: sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-mfi {
  font-size: 0.68rem;
  background: var(--green-light);
  color: var(--green);
  border-radius: 4px;
  padding: 2px 5px;
  font-weight: bold;
}

.controller-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.controller-links a {
  font-size: 0.75rem;
  font-family: sans-serif;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 3px 8px;
  transition: background 0.15s, color 0.15s;
}

.controller-links a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── Joystick slots ── */
.joystick-slots {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.joystick-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 12px;
  flex: 1;
  min-width: 180px;
}

.joystick-slot .btn-reserve { margin-top: 0; }

.joystick-slot-label {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

.badge-price {
  font-size: 0.68rem;
  background: #fef8e8;
  color: #a07020;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: sans-serif;
}

/* ── Reserve button ── */
.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-reserve:hover:not(:disabled) {
  background: var(--accent);
  color: white;
}

.btn-reserve.reserved {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
  cursor: default;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(60, 40, 20, 0.22);
}

.modal-card h3 { font-size: 1.05rem; font-weight: normal; color: var(--dark); margin-bottom: 8px; }
.modal-card > p { font-size: 0.86rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--sand);
  background: white;
  font-size: 0.95rem;
  color: var(--text);
  font-family: "Georgia", serif;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}

.modal-input:focus { border-color: var(--accent); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-cancel:hover { border-color: var(--brown); color: var(--brown); }

.btn-confirm {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.86rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-confirm:hover    { opacity: 0.88; }
.btn-confirm:disabled { opacity: 0.5; cursor: default; }

/* ── Dog photo parallax layers ── */
#dogs-bg,
#dogs-fg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

#dogs-bg { z-index: 2; }
#dogs-fg { z-index: 5; }

.dog-photo {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(60, 40, 20, 0.22);
  will-change: transform;
}

.dog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1100px) {
  #dogs-bg,
  #dogs-fg {
    display: none;
  }
}

/* ── Add to calendar button ── */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: white;
  color: var(--brown);
  font-size: 0.88rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(160, 120, 80, 0.1);
}

.btn-calendar:hover {
  border-color: var(--brown);
  box-shadow: 0 4px 16px rgba(160, 120, 80, 0.2);
}

/* ── Emoji particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.p-emoji {
  position: absolute;
  user-select: none;
  line-height: 1;
  will-change: transform;
}

#bg-emojis {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .card {
    grid-template-columns: 52px 1fr;
    padding: 20px;
  }

  .card-tag {
    grid-column: 2;
    justify-self: start;
  }

  .stores-grid {
    grid-template-columns: 1fr;
  }
}
