/* Princess the Unicorn — princesstheunicorn.com
   The park entrance: night-blue sky, golden light, storybook paper. */

:root {
  --night: #101b3a;
  --night-2: #1b2b55;
  --paper: #fdf8ef;
  --paper-2: #f6ecdc;
  --ink: #3c3450;
  --gold: #e3b25c;
  --gold-2: #f3cf8b;
  --pink: #ef9ec4;
  --violet: #9a7fd1;
  --teal: #6fc7c1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .btn { font-family: "Baloo 2", "Nunito", sans-serif; }

.h-script {
  font-family: "Berkshire Swash", "Baloo 2", cursive;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 400;
  text-align: center;
  padding-top: 3.6rem;
}
.section-sub {
  text-align: center;
  font-size: 1.06rem;
  opacity: .82;
  margin: .5rem auto 2rem;
  max-width: 34rem;
  padding: 0 1.2rem;
}

/* ── hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(90% 55% at 22% 18%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(75% 45% at 76% 30%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #aecdf0 0%, #cfe3f7 38%, #f2ead8 82%, #f7d9b4 100%);
  overflow: hidden;
}
#fireflies, #fireflies2 {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 4rem 1.4rem 7rem; }
.hero-logo {
  width: min(420px, 78vw);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 12px 34px rgba(120, 90, 40, .35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-line {
  font-family: "Berkshire Swash", "Baloo 2", cursive;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 700;
  color: #8a5f1d;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.hero-sub {
  color: #4c4a66;
  max-width: 30rem;
  margin: .8rem auto 1.8rem;
  font-size: 1.05rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.hero-vista {
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 34vh;
  background: url("assets/vista.jpg") center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  opacity: .9;
}

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  border: 0;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #4a3413;
  box-shadow: 0 8px 26px rgba(227, 178, 92, .45);
}
.btn-moon {
  background: linear-gradient(180deg, #cfd8ff, #9aa8e8);
  color: #232c58;
  box-shadow: 0 8px 26px rgba(154, 168, 232, .4);
}

/* ── the map ──────────────────────────────────────── */
.map-section { background: var(--paper); padding-bottom: 0; }
.map-wrap {
  position: relative;
  width: 100%;
}
.map-art {
  width: 100%;
  height: 100vh;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}
.spot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  background: none; border: 0; cursor: pointer;
  display: grid; justify-items: center; gap: .4rem;
  z-index: 2;
}
.spot .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e3, var(--gold));
  box-shadow: 0 0 0 6px rgba(243, 207, 139, .35), 0 0 22px 6px rgba(255, 224, 150, .8);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 12px rgba(243, 207, 139, .18), 0 0 30px 10px rgba(255, 224, 150, .9); }
}
.spot .tag {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: rgba(24, 22, 52, .82);
  padding: .32rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s;
}
.spot:hover .tag, .spot:focus .tag { opacity: 1; transform: none; }
@media (max-width: 700px) { .spot .tag { opacity: 1; font-size: .62rem; } }

/* ── bands ────────────────────────────────────────── */
.band { padding: 1rem 1.4rem 4.4rem; }
.band-paper { background: var(--paper); }
.band-meadow {
  background: linear-gradient(180deg, var(--paper) 0%, #f2e6f2 50%, var(--paper) 100%);
}
.band-night {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #efe9fb;
}
.band-night .h-script { color: var(--gold-2); }
.band-bedtime {
  position: relative;
  background: radial-gradient(120% 90% at 50% 0%, #2a3766 0%, #131c3d 55%, #0b1129 100%);
  color: #e8e6f7;
  overflow: hidden;
  text-align: center;
}
.band-bedtime .h-script { color: #cfd8ff; }

/* ── cast ─────────────────────────────────────────── */
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  /* a button centres its content vertically — in a stretched grid row
     that floated three images off the top edge (Lars: "in line with
     Pip"). A top-pinned flex column keeps every image flush. */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 10px 34px rgba(60, 40, 100, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 18px 44px rgba(60, 40, 100, .26); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card h3 { padding: .8rem 1rem 0; font-size: 1.3rem; }
.card p { padding: .3rem 1rem 1.1rem; font-size: .93rem; opacity: .85; }

/* ── splits & figures ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.6rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 1rem;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .h-script { text-align: left; padding-top: 1.4rem; }
.split p { margin: .8rem 0; line-height: 1.65; }
.film-figure img, .book-figure img {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.book-figure img { box-shadow: 0 18px 50px rgba(70, 40, 20, .3); transform: rotate(-1.6deg); }
.film-figure figcaption { font-size: .85rem; opacity: .7; margin-top: .6rem; text-align: center; }
.soon-badge {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #4a3413;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .95rem;
}
.fine { font-size: .92rem; opacity: .78; }

/* ── season shelf ─────────────────────────────────── */
.shelf-title { margin-top: 1.6rem; font-size: 1.15rem; }
.shelf {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .55rem;
  margin-top: .8rem;
}
.shelf li {
  background: #fff;
  border-radius: 12px;
  padding: .55rem .8rem;
  font-size: .84rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(60, 40, 100, .1);
}
.shelf li span { display: block; font-size: .72rem; font-weight: 400; opacity: .6; }

/* ── bedtime ──────────────────────────────────────── */
.bedtime-inner { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; padding-bottom: 1rem; }
.lyrics { margin: 2rem 0 1.4rem; }
.lyrics p {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.12rem;
  line-height: 1.7;
  margin: .9rem 0;
  color: #dfe4ff;
}

/* ── grown-ups ────────────────────────────────────── */
.grown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
  max-width: 1080px;
  margin: 1rem auto 0;
}
.grown-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(60, 40, 100, .12);
}
.grown-card h3 { margin-bottom: .5rem; font-size: 1.12rem; }
.grown-card p { font-size: .95rem; line-height: 1.6; opacity: .88; }

/* ── footer ───────────────────────────────────────── */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3.2rem 1rem 2.6rem;
}
.foot-mark { font-family: "Futura", "Nunito", sans-serif; font-weight: 300; letter-spacing: .35em; font-size: 1.05rem; }
.foot-fine { opacity: .5; font-size: .8rem; margin-top: .9rem; }

/* ── modal ────────────────────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14, 12, 34, .7);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.modal-card {
  background: var(--paper);
  border-radius: 22px;
  max-width: 24rem;
  width: 100%;
  padding: 1.2rem 1.2rem 1.6rem;
  text-align: center;
  position: relative;
  animation: pop .28s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal-card img { border-radius: 16px; margin-bottom: .8rem; }
.modal-card h3 { font-size: 1.5rem; }
.modal-card p { margin-top: .4rem; line-height: 1.6; }
.modal-x {
  position: absolute; top: .7rem; right: .8rem;
  border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}


/* ── the kingdom hero (v2, Lars's vision) ─────────── */
.hero-kingdom {
  background:
    linear-gradient(180deg, rgba(20,30,70,0) 55%, rgba(20,25,60,.42) 100%),
    url("assets/hero2.jpg") center bottom / cover no-repeat;
}
.hero-kingdom .hero-vista { display: none; }
.hero-kingdom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 92vh;
  padding: 2.2rem 1.4rem 2.4rem;
}
.hero-kingdom .hero-logo { width: min(340px, 62vw); margin: 0; }
.hero-actions { display: grid; justify-items: center; gap: 1.1rem; }
.btn-enter {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  padding: 1rem 2.4rem;
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.045); } }
.doors { display: flex; gap: 1rem; }
.door {
  display: grid; justify-items: center; gap: .35rem;
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.door-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #4a3413;
  background: linear-gradient(180deg, #fff6e2, var(--gold-2));
  box-shadow: 0 8px 22px rgba(30, 25, 60, .4);
  transition: transform .18s ease;
}
.door-icon svg { width: 30px; height: 30px; }
.door:hover .door-icon { transform: translateY(-4px) scale(1.08); }
.grownups-link {
  color: #fff;
  opacity: .75;
  font-size: .85rem;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.grownups-link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 560px) {
  .doors { gap: .7rem; }
  .door-icon { width: 52px; height: 52px; }
}


/* small screens: the WHOLE map, uncropped — hotspots stay on their
   landmarks; the full-viewport crop is a wide-screen luxury */
@media (max-width: 900px) {
  .map-art { height: auto; min-height: 0; }
  .spot .tag { white-space: normal; max-width: 34vw; text-align: center;
               font-size: .58rem; padding: .22rem .5rem; }
  .spot .dot { width: 16px; height: 16px; }
}


/* ── mobile hero: dedicated portrait art, Princess centred low ── */
@media (max-width: 700px) {
  .hero-kingdom {
    background:
      linear-gradient(180deg, rgba(174,205,240,.0) 60%, rgba(247,217,180,.25) 100%),
      url("assets/hero-p.jpg") center bottom / cover no-repeat;
  }
}

/* ── mobile map: portrait art, its own coordinates, bigger doors ── */
@media (max-width: 700px) {
  .spot { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .spot .dot { width: 28px; height: 28px; }
  .spot .tag { font-size: .68rem; max-width: 44vw; }
}

/* ── the location card row: mobile's way to explore one place at a time ── */
.loc-row { display: none; }
@media (max-width: 700px) {
  .loc-row {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding: 1rem 1.2rem 1.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
  }
  .loc-card {
    flex: 0 0 46vw;
    scroll-snap-align: center;
    border: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(60, 40, 100, .16);
    font-family: "Baloo 2", sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
  }
  .loc-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
  .loc-card span { display: block; padding: .55rem .5rem .7rem; }
}
