:root {
  --ink: #1a1230;
  --bg-top: #ffe6f2;
  --bg-bottom: #d4f1ff;

  --accent: #ff3d8b;
  --accent-dark: #e02472;

  --c-yellow: #ffd93d;
  --c-mint:   #7ed957;
  --c-coral:  #ff8c5a;
  --c-sky:    #5cb6ff;

  --border: 3px solid var(--ink);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-lg: 8px 8px 0 var(--ink);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Fredoka', -apple-system, system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; }

#bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.title {
  font-family: 'Bagel Fat One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: clamp(4rem, 18vw, 9rem);
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow:
    4px 4px 0 white,
    8px 8px 0 var(--accent);
}

.title .age {
  display: inline-block;
  color: var(--accent);
  transform: rotate(-8deg);
  margin-left: 0.15em;
  text-shadow:
    4px 4px 0 white,
    8px 8px 0 var(--ink);
}

.subtitle {
  margin-top: 1.5rem;
  display: inline-block;
  background: white;
  border: var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  box-shadow: var(--shadow-hard);
  transform: rotate(-2deg);
}

.scroll-hint {
  margin-top: 3rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-hard);
  animation: bounce 1.6s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(12px); }
}

/* ============ RSVP BUTTONS ============ */
.rsvp-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding: 1rem 2.4rem;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-hard-lg);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.rsvp-btn:hover {
  background: var(--accent-dark);
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

.rsvp-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.rsvp-btn--primary { margin-top: 2rem; }

.rsvp-btn--center {
  align-self: center;
  margin: 2rem auto 0;
}

/* Language picker */
.lang-picker {
  position: fixed;
  top: max(0.9rem, env(safe-area-inset-top));
  right: 0.9rem;
  z-index: 10;
  display: inline-flex;
  background: white;
  border: var(--border);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 4px 4px 0 var(--ink);
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-btn:hover { background: rgba(0, 0, 0, 0.06); }

.lang-btn.is-active {
  background: var(--accent);
  color: white;
}

/* Floating RSVP button */
.rsvp-float {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: 1.25rem;
  z-index: 10;
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.4rem;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}

.rsvp-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rsvp-float:hover {
  background: var(--accent-dark);
}

/* ============ DETAILS ============ */
.details {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  border: var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-hard-lg);
  position: relative;
}

.card--yellow { background: var(--c-yellow); transform: rotate(-1.5deg); }
.card--mint   { background: var(--c-mint);   transform: rotate(1.2deg); }
.card--coral  { background: var(--c-coral);  transform: rotate(-0.8deg); }
.card--sky    { background: var(--c-sky);    transform: rotate(1deg); }

.card__label {
  display: inline-block;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.card__value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
}

.card__big {
  display: inline-block;
  font-family: 'Bagel Fat One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  margin-top: 0.35rem;
}

.card__body {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 600px) {
  .card { padding: 1.75rem 2rem; }
  .card__value { font-size: 1.75rem; }
  .card__big   { font-size: 3rem; }
  .card__body  { font-size: 1.2rem; }
}
