@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Nunito:wght@600;800&display=swap");

:root {
  --ink: #2b2430;
  --muted: #6e6472;
  --orange: #f26422;
  --peach: #ffe8d6;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  padding-bottom: 120px;
  background: #fff8ef;
  overflow-x: hidden;
}

.blob {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  animation: float 7s ease-in-out infinite;
}
.b2 { animation-delay: -2s; }
.b3 { animation-delay: -4s; }
.b4 { animation-delay: -1s; }
.b1 { width: 220px; height: 180px; background: #fbc60a; top: -30px; left: 8%; }
.b2 { width: 180px; height: 160px; background: #16a3e0; top: 6%; right: 6%; animation-delay: -2s; }
.b3 { width: 200px; height: 170px; background: #9d079a; top: 28%; left: 32%; animation-delay: -4s; opacity: .55; }
.b4 { width: 170px; height: 150px; background: #5cab27; top: 48%; right: 10%; animation-delay: -1s; opacity: .7; }
.b5 { width: 160px; height: 160px; background: #f73e0f; top: 62%; left: 12%; animation-delay: -3s; opacity: .55; }
.b6 { width: 190px; height: 160px; background: #fa8009; bottom: 12%; left: 38%; animation-delay: -5s; opacity: .6; }
.b7 { width: 150px; height: 150px; background: #0660b1; top: 18%; left: 58%; animation-delay: -2.5s; opacity: .45; }

.app-header, .wrap, .nav { position: relative; z-index: 1; }
.app-header { padding: 18px 18px 0; }
.app-header .logo {
  display: block;
  width: min(200px, 52vw);
  margin: 8px auto 0;
  background: transparent;
}

.splash {
  position: fixed; inset: 0; z-index: 40;
  background: #fff8ef;
  display: flex; align-items: center; justify-content: center;
}
.splash-logo {
  width: min(78vw, 340px);
  clip-path: inset(0 100% 0 0);
  animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards;
}
.pen {
  position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #f73e0f;
  box-shadow: 0 0 0 6px #fbc60a88;
  left: 11%;
  top: 46%;
  animation: pen 2.4s cubic-bezier(.4,0,.2,1) forwards;
}
.splash.out {
  animation: splashUp .7s ease forwards;
  pointer-events: none;
}
.splash.out .pen { display: none; }
.splash.out .splash-logo {
  animation: none;
  clip-path: none;
  transition: transform .7s ease, width .7s ease;
  transform: translateY(-36vh) scale(.62);
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes pen {
  0% { left: 11%; opacity: 1; }
  85% { left: 86%; opacity: 1; }
  100% { left: 88%; opacity: 0; }
}
@keyframes splashUp { to { opacity: 0; visibility: hidden; } }

.wrap { max-width: 480px; margin: 0 auto; padding: 14px 16px 20px; }
.muted { color: var(--muted); font-size: .92rem; line-height: 1.4; margin: 6px 0 10px; }
.intro { color: var(--muted); font-size: .88rem; margin: 8px 6px 14px; }

.card {
  background: #fff;
  border-radius: 28px;
  padding: 16px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(42,36,48,.08);
  animation: rise .55s ease both;
}
.wrap .card:nth-child(2) { animation-delay: .08s; }
.wrap .card:nth-child(3) { animation-delay: .16s; }
.wrap .card:nth-child(4) { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(22px) scale(1.06); }
}
.event-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
}
.date-box {
  background: #ffe8d8;
  color: #f26422;
  border-radius: 18px;
  text-align: center;
  padding: 12px 4px 10px;
}
.date-box .d { display: block; font-family: Fraunces, Georgia, serif; font-size: 2rem; line-height: .9; color: #f26422; }
.date-box .m { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.date-box .t { display: block; font-size: .78rem; font-weight: 800; color: #c45a28; margin-top: 8px; }
.event-title {
  margin: 2px 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: #f26422;
  line-height: 1.15;
}
.event-photo {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin-bottom: 8px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 16px;
  font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-primary { background: #f26422; color: #fff; width: 100%; }
.btn-pill {
  background: #f26422;
  color: #fff;
  display: flex;
  width: 100%;
  margin-top: 12px;
  clear: both;
}
.btn-ghost { background: #fff7f2; color: var(--ink); border: 2px solid #ffd7c8; width: 100%; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; clear: both; }
.btn-row .btn { flex: 1; }
.event-body::after { content: none; }
.card { overflow: hidden; }

.nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  max-width: 456px; margin: 0 auto;
  background: #fff;
  border: 3px solid #f26422;
  border-radius: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  box-shadow: 0 8px 0 #e8c4a4, 0 18px 36px rgba(42,36,48,.28);
  z-index: 20;
}
.nav button {
  border: 0; background: none; padding: 8px 2px;
  font-size: .68rem; font-weight: 800; color: #5b90d6;
  border-radius: 22px; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  flex-direction: column;
}
.nav button:nth-child(4) { color: #e06aa8; }
.nav button:nth-child(3) { color: #e07a22; }
.nav button.active { color: #fff; background: #f26422; }
.nav button:not(.active) { background: #fff7f2; }

.map-view { padding: 0; margin: 0; }
#mapFrame {
  position: fixed;
  inset: 0;
  bottom: 86px;
  width: 100%;
  height: calc(100dvh - 86px);
  border: 0;
  background: #fff;
  z-index: 6;
}
body.map-mode .app-header,
body.map-mode .blob { display: none !important; }
body.map-mode { padding-bottom: 0; background: #fff; }
.news-card .event-title { margin-bottom: 10px; }
.socials { display: flex; justify-content: space-around; align-items: center; margin-top: 14px; }
.soc { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: #fff; border-radius: 20px; box-shadow: 0 6px 16px rgba(42,36,48,.08); }

.hidden { display: none !important; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
a { color: #0660b1; }
.os-title { margin: 14px 0 8px; }
.steps { margin: 0 0 10px; padding-left: 20px; line-height: 1.5; }
.steps li { margin-bottom: 8px; }
.ico {
  display: inline-flex; vertical-align: middle; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: #f2f2f7; border-radius: 8px;
}
input, textarea { width: 100%; border: 2px solid #f0e0cc; border-radius: 14px; padding: 10px 12px; font: inherit; }

#viewMap { position: fixed; inset: 0; z-index: 30; }
body.map-mode .nav { display: none; }
body.map-mode { overflow: hidden; }
