/* =========================================================
   Taste the World — Playful & Colorful theme
   ========================================================= */

:root {
  --cream:      #fff7e6;
  --cream-2:    #fdeccb;
  --terracotta: #e8593c;
  --mustard:    #f5b800;
  --teal:       #2bb7a8;
  --plum:       #6b3fa0;
  --ink:        #2a1f1a;
  --ink-soft:   #5b4a42;
  --shadow:     0 8px 0 rgba(42, 31, 26, 0.12);
  --radius:     22px;
  --radius-lg:  36px;
  --font-display: "Fredoka", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body:    "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe8c2 0, transparent 35%),
    radial-gradient(circle at 90% 20%, #ffd2c8 0, transparent 35%),
    radial-gradient(circle at 50% 90%, #cdeee9 0, transparent 40%),
    var(--cream);
  background-attachment: fixed;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline wavy; }
.logo, .logo:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p  { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

section {
  padding: 3.5rem 0;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px dashed var(--mustard);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--terracotta);
}
.logo .logo-emoji {
  font-size: 1.7rem;
  animation: bob 3s ease-in-out infinite;
  display: inline-block;
}
.logo .logo-img {
  height: 38px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  animation: bob 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-4px) rotate(6deg); }
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav ul a {
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.nav ul a:hover {
  background: var(--mustard);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}
.nav ul a.active,
.nav ul a.active:hover {
  background: var(--mustard);
  color: var(--ink);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }
  .nav.open ul { display: flex; }
  .nav-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  opacity: .55;
}
.hero::before {
  width: 220px; height: 220px;
  background: var(--mustard);
  top: -60px; left: -40px;
}
.hero::after {
  width: 280px; height: 280px;
  background: var(--teal);
  bottom: -80px; right: -60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-text h1 span {
  display: inline-block;
  background: linear-gradient(120deg, var(--terracotta), var(--mustard) 50%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p.lead,
.hero-text .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-text .manifesto-lead p {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.45;
}
.hero-text .manifesto-lead p:last-child { margin-bottom: 0; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  border: 3px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 12px 0 rgba(42,31,26,.15);
  text-decoration: none;
}
.btn:active {
  transform: translate(0, 2px);
  box-shadow: 0 4px 0 rgba(42,31,26,.15);
}
.btn.primary    { background: var(--terracotta); color: #fff; }
.btn.secondary  { background: var(--teal); color: #fff; }
.btn.ghost      { background: #fff; }

/* Hero video frame */
.video-frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-width: 560px;
  margin-inline: auto;
  transform: rotate(-2deg);
  transition: transform .3s;
}
.video-frame:hover { transform: rotate(0); }
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

/* Unmute prompt button overlaying the hero video */
.unmute-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .5rem .9rem;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  animation: unmutePulse 1.8s ease-in-out infinite;
}
.unmute-btn:hover { background: var(--terracotta); }
@keyframes unmutePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Sticker labels */
.sticker {
  position: absolute;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  z-index: 2;
}
.sticker.top-left  { top: -14px; left: -10px; transform: rotate(-8deg); background: var(--teal); color: #fff; }
.sticker.bot-right { bottom: -14px; right: -10px; transform: rotate(6deg); background: var(--terracotta); color: #fff; }

/* ---------- Did you know ---------- */
.dyk {
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.2)),
    var(--cream-2);
  border-top: 4px dashed var(--terracotta);
  border-bottom: 4px dashed var(--terracotta);
}
.dyk h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.dyk h2 em {
  font-style: normal;
  color: var(--terracotta);
}

.dyk-list {
  display: grid;
  gap: 1.2rem;
  max-width: 720px;
  margin-inline: auto;
}
.dyk-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.dyk-card.visible { opacity: 1; transform: translateY(0); }
.dyk-card:nth-child(odd)  { rotate: -1deg; }
.dyk-card:nth-child(even) { rotate:  1deg; }
.dyk-card .emoji {
  font-size: 2rem;
  margin-right: .5rem;
}
.dyk-card strong {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: block;
  margin-bottom: .2rem;
}

/* ---------- Manifesto ---------- */
.manifesto {
  text-align: center;
}
.manifesto blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
  line-height: 1.5;
}
.manifesto blockquote span {
  display: block;
  margin: .25rem 0;
}
.manifesto .punch {
  margin-top: 1.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--terracotta);
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px) rotate(-1deg); }
.card .icon {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: .4rem;
}
.card h3 { margin-bottom: .3rem; }
.card.teal       { background: #e7faf6; }
.card.mustard    { background: #fff3c2; }
.card.terracotta { background: #ffe2d8; }
.card.plum       { background: #efe4fb; }

/* ---------- Section headings ---------- */
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-title h2 { margin-bottom: .4rem; }
.section-title p  { color: var(--ink-soft); max-width: 600px; margin-inline: auto; }
.tag {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

/* ---------- Page header (non-home) ---------- */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header .tag { background: var(--terracotta); }
.page-header p {
  color: var(--ink-soft);
  max-width: 620px;
  margin-inline: auto;
  font-size: 1.1rem;
}

/* ---------- Fee callout ---------- */
.fee-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff3c2;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.fee-callout .fee-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.fee-callout strong {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 1.1rem;
}
.fee-callout p {
  margin: .15rem 0 0;
  color: var(--ink-soft);
}
.fee-callout p strong { color: var(--ink); font-size: 1rem; }

/* ---------- Events list ---------- */
.event-list {
  display: grid;
  gap: 1.4rem;
}
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; text-align: center; }
}
.event-date {
  background: var(--mustard);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: .6rem;
  text-align: center;
  font-family: var(--font-display);
}
.event-date .m { display: block; font-size: 1rem; color: var(--terracotta); }
.event-date .d { display: block; font-size: 2rem; line-height: 1; }
.event h3 { margin-bottom: .2rem; }
.event small { color: var(--ink-soft); }

/* Ingredients dropdown inside an event card */
.event .ingredients {
  margin-top: .8rem;
  background: var(--cream-2);
  border: 2px dashed var(--ink);
  border-radius: 14px;
  padding: .5rem .9rem;
}
.event .ingredients summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terracotta);
  list-style: none;
}
.event .ingredients summary::-webkit-details-marker { display: none; }
.event .ingredients summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform .2s;
}
.event .ingredients[open] summary::before { transform: rotate(90deg); }
.event .ingredients ul {
  margin: .6rem 0 .2rem 1.1rem;
  padding: 0;
  color: var(--ink);
}
.event .ingredients li { margin: .15rem 0; }

/* Flyer image inside event card */
.event-flyer {
  display: block;
  margin: .4rem 0 1rem;
  max-width: 360px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(42,31,26,.12);
  transition: transform .2s ease;
}
.event-flyer:hover { transform: translateY(-3px) rotate(-1deg); text-decoration: none; }
.event-flyer img { width: 100%; height: auto; display: block; }

/* "X going" RSVP count badge */
.rsvp-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .6rem 0 .2rem;
  padding: .3rem .75rem;
  background: #e7faf6;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}
.rsvp-badge .rsvp-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: rsvpPulse 1.6s ease-in-out infinite;
  display: inline-block;
}
.rsvp-badge .rsvp-count {
  color: var(--terracotta);
  font-weight: 800;
}
@keyframes rsvpPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.6); opacity: .35; }
}

/* When the badge appears inside the Kick-Off banner (light gradient bg),
   give it a contrasting white background for readability. */
.kickoff-banner .rsvp-badge {
  background: #fff;
  border-color: var(--ink);
  margin-top: 0;
  margin-bottom: .9rem;
}

/* Event notice — e.g. allergy / heads-up warning shown on cards and banners */
.event-notice {
  background: #fff3c2;
  border: 2px solid var(--mustard);
  border-left: 6px solid var(--terracotta);
  border-radius: 12px;
  padding: .6rem .9rem;
  margin: .7rem 0;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--ink);
}
.event-notice strong { color: var(--terracotta); }

/* In the Kick-Off banner the notice sits on a colorful gradient,
   so use a brighter white background for readability. */
.kickoff-banner .event-notice {
  background: #fff;
  margin: 0 0 1rem;
}

/* Event highlights bullet list */
.event-highlights {
  list-style: none;
  margin: .6rem 0 .4rem;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.event-highlights li {
  background: var(--cream-2);
  border-left: 4px solid var(--terracotta);
  padding: .4rem .7rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Kick-off banner (home page) ---------- */
.kickoff-banner {
  position: relative;
  margin: 0 auto 2.5rem;
  max-width: 1100px;
  width: 92%;
  background: linear-gradient(135deg, #ffe2d8 0%, #fff3c2 55%, #cdeee9 100%);
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}
.kickoff-banner::before {
  content: "🎉 FIRST EVENT";
  position: absolute;
  top: 14px; right: -42px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  padding: .3rem 3rem;
  transform: rotate(35deg);
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}
.kickoff-flyer {
  display: block;
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(42,31,26,.18);
  transition: transform .2s ease;
}
.kickoff-flyer:hover { transform: rotate(-2deg) scale(1.02); text-decoration: none; }
.kickoff-flyer img { width: 100%; height: auto; display: block; }
.kickoff-body h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--terracotta);
}
.kickoff-when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 .25rem;
}
.kickoff-where {
  color: var(--ink-soft);
  margin: 0 0 .8rem;
}
.kickoff-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.kickoff-pills li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .85rem;
  font-weight: 700;
}
.kickoff-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
@media (max-width: 720px) {
  .kickoff-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .kickoff-flyer { max-width: 280px; margin: 0 auto; }
  .kickoff-pills { justify-content: center; }
  .kickoff-cta { justify-content: center; }
  .kickoff-banner::before { top: 8px; right: -50px; font-size: .75rem; }
}

/* Past event embedded YouTube */
.event .event-video {
  margin-top: .9rem;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #000;
  max-width: 520px;
}
.event .event-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  background: #fff;
  border: 4px dashed var(--terracotta);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
}
.empty .big-emoji {
  font-size: 4rem;
  display: inline-block;
  animation: bob 3s ease-in-out infinite;
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.video-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.video-card:hover { transform: translateY(-4px); }
.video-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-card .thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card .body { padding: 1rem 1.2rem 1.2rem; }
.video-card .body h3 { margin-bottom: .2rem; }
.video-card .body small { color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-wrap label {
  display: block;
  font-weight: 800;
  margin: 1rem 0 .3rem;
  color: var(--ink);
}
.form-wrap input,
.form-wrap select,
.form-wrap textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}
.form-wrap textarea { min-height: 110px; resize: vertical; }
.form-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #fff7e6;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  border-top: 6px solid var(--mustard);
}
footer .foot-emoji { font-size: 2rem; }
footer a { color: var(--mustard); }

/* Partners / Sponsors in footer */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem 2.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px dashed rgba(255, 247, 230, 0.18);
}
.partners-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 160px;
  padding: 0.9rem 1.1rem 0.8rem;
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.15);
  border-radius: 16px;
  color: #fff7e6;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
a.partner-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 247, 230, 0.14);
  border-color: var(--mustard);
}
.partner-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mustard);
  font-weight: 800;
}
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 80px;
  padding: 0.45rem 0.7rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.partner-logo {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.partner-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff7e6;
}
.partner-name-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  padding: 0.25rem 0.4rem;
}
@media (max-width: 520px) {
  .partners { gap: 1rem; }
  .partner-card { min-width: 140px; padding: 0.75rem 0.9rem; }
  .partner-logo-wrap { height: 46px; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.wavy-divider {
  height: 28px;
  background:
    radial-gradient(circle at 14px 0, var(--cream) 14px, transparent 15px) repeat-x;
  background-size: 28px 28px;
}

/* ---------- Join-Us modal ---------- */
.join-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.join-modal.open { display: flex; animation: joinFade .2s ease; }
@keyframes joinFade { from { opacity: 0; } to { opacity: 1; } }

.join-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 26, 0.65);
  backdrop-filter: blur(3px);
}
.join-dialog {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 0 rgba(42, 31, 26, 0.18);
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  animation: joinPop .25s ease;
}
@keyframes joinPop {
  from { transform: translateY(20px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.join-close {
  position: absolute;
  top: 10px; right: 14px;
  background: var(--terracotta);
  color: #fff;
  border: 3px solid var(--ink);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(42,31,26,.18);
  transition: transform .15s ease;
}
.join-close:hover { transform: rotate(90deg); }
.join-dialog h2 {
  color: var(--terracotta);
  margin: 0 0 .25rem;
}
.join-sub {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.join-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) {
  .join-options { grid-template-columns: 1fr; }
}
.join-option {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.join-option-head {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.join-option-head h3 { margin: 0; }
.join-option-icon { font-size: 1.6rem; }
.join-icon {
  font-size: 4rem;
  line-height: 1;
}
.join-qr-wrap {
  background: #fff;
  padding: .5rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.join-qr {
  width: 180px;
  height: 180px;
  display: block;
  object-fit: contain;
}
.join-qr-fallback {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--cream-2);
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
  padding: .6rem;
  font-size: .95rem;
}
.join-qr-fallback small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: .3rem;
  word-break: break-all;
}
.join-option-desc {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 0;
  flex: 1;
}
.join-hint {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------- Mascot collection ---------- */
.mascot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.mascot-tab {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(42, 31, 26, 0.18);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.mascot-tab:hover { transform: translateY(-2px); }
.mascot-tab.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--ink);
}

.mascot-panel { display: none; }
.mascot-panel.active { display: block; animation: mascotFade .3s ease; }
@keyframes mascotFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mascot-country-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.mascot-country-head h2 { margin-bottom: .25em; }
.mascot-country-head p { color: var(--ink-soft); margin: 0; }

.mascot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.mascot-card {
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease;
}
.mascot-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.mascot-img-wrap {
  background: var(--cream-2);
  padding: 1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mascot-card figcaption {
  padding: .9rem 1rem 1.1rem;
  border-top: 3px dashed var(--mustard);
}
.mascot-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.mascot-card figcaption span {
  font-size: .9rem;
  color: var(--ink-soft);
}
