/* =========================================================
   PANDALION — home page
   ========================================================= */

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: -82px;
  padding: 130px 0 60px;
  background: linear-gradient(180deg, #cfeeff 0%, #e9f7ff 38%, var(--cream) 100%);
  overflow: hidden;
}
.sun {
  position: absolute; top: 90px; right: 8%;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c9 0 40%, #ffe08a 41% 100%);
  box-shadow: 0 0 0 18px rgba(255, 224, 138, .25), 0 0 0 40px rgba(255, 224, 138, .12);
  animation: pulse 5s ease-in-out infinite;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 50px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); font-weight: 700; letter-spacing: -.02em; }
.hero h1 .line { white-space: nowrap; }
.hero h1 .fun {
  position: relative; color: var(--peach);
  display: inline-block; animation: wiggle 3.5s ease-in-out infinite; transform-origin: 50% 80%;
}
.hero h1 .great {
  position: relative; white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--honey) 62% 90%, transparent 90%);
  padding: 0 4px;
}
.hero-copy > p { font-size: 19px; color: var(--ink-soft); max-width: 470px; font-weight: 600; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.hero-art { position: relative; }
.village-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow-pop);
  transform: rotate(1.5deg);
  transition: transform .5s var(--bounce);
}
.village-frame:hover { transform: rotate(0) scale(1.015); }
.village-frame img { border-radius: calc(var(--r-xl) - 10px); width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.village-frame .tape {
  position: absolute; top: -14px; left: 50%;
  width: 110px; height: 30px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 213, 120, .75);
  border-radius: 4px;
}
.hero-panda {
  position: absolute; left: -46px; bottom: -66px;
  width: 170px; z-index: 3;
  transform-origin: 50% 100%;
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.15));
}
.speech {
  position: absolute; left: 92px; bottom: 120px; z-index: 4;
  padding: 10px 16px;
  background: #fff; border-radius: 20px 20px 20px 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow-soft);
  animation: bob 3.4s ease-in-out infinite .3s;
  white-space: nowrap;
}
.hero-art .sparkle.s1 { top: -24px; right: 30px; font-size: 30px; }
.hero-art .sparkle.s2 { bottom: 40px; right: -16px; font-size: 22px; animation-delay: .8s; }
.hero-art .sparkle.s3 { top: 40%; left: -24px; font-size: 18px; animation-delay: 1.5s; color: var(--pink); }

.value-strip {
  position: relative; z-index: 2;
  margin-top: 90px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.value {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.85);
  border: 2px solid #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--bounce);
}
.value:hover { transform: translateY(-5px) rotate(-1deg); }
.value-icon {
  flex: none; width: 50px; height: 50px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
}
.value:nth-child(1) .value-icon { background: var(--honey-soft); }
.value:nth-child(2) .value-icon { background: var(--pink-soft); }
.value:nth-child(3) .value-icon { background: var(--sage-soft); }
.value:nth-child(4) .value-icon { background: var(--sky-soft); }
.value p { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.value b { color: var(--ink); font-size: 15px; }

/* ---------- section headings ---------- */
.section { position: relative; padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 18px; font-weight: 600; }

/* ---------- studio spotlight ---------- */
.spotlight {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 50px 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.55) 0 80px, transparent 81px),
    linear-gradient(135deg, #ffe0ea 0%, #ffeccc 55%, #e2f4ff 100%);
  box-shadow: var(--shadow-pop);
}
.spotlight-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.spotlight h2 { font-size: clamp(32px, 4vw, 48px); }
.spotlight h2 em { font-style: normal; color: #e0664b; }
.spotlight p { color: var(--ink-soft); font-size: 17px; font-weight: 600; max-width: 460px; }
.spot-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spot-points li { padding: 7px 14px; background: #fff; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.06); }
.spotlight-art { position: relative; z-index: 2; display: grid; place-items: center; min-height: 340px; }
.spotlight-art .workshop { width: min(100%, 420px); animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(120, 80, 40, .2)); }
.filmstrip {
  position: absolute; left: -40%; right: -40%; top: 50%;
  height: 74px; transform: translateY(-50%) rotate(-8deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.95) 14px 26px) top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.95) 14px 26px) bottom / 100% 12px no-repeat,
    #3b3149;
  opacity: .14;
  animation: filmroll 14s linear infinite;
  z-index: 1;
}
.spotlight-art .floaty {
  position: absolute; font-size: 34px; z-index: 3;
  animation: bob 3s ease-in-out infinite;
}
.floaty.f1 { top: 6%; left: 8%; }
.floaty.f2 { bottom: 10%; right: 4%; animation-delay: .6s; }
.floaty.f3 { top: 12%; right: 10%; animation-delay: 1.2s; font-size: 26px; }
@keyframes filmroll { from { background-position: 0 0, 0 100%, 0 0; } to { background-position: 520px 0, 520px 100%, 0 0; } }

/* ask box + AI duo */
.ask-box { display: flex; gap: 8px; width: min(100%, 470px); padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-soft); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 14px; background: transparent; font-size: 16px; font-weight: 600; }
.ask-box .btn { padding: 11px 20px; font-size: 16px; }
.ai-duo { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
.ai-duo img { height: 250px; width: auto; filter: drop-shadow(0 16px 16px rgba(120, 80, 40, .18)); }
.ai-duo-panda { animation: sway 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.ai-duo-lion { height: 232px !important; margin-left: -24px; animation: sway 2.8s ease-in-out infinite .6s; transform-origin: 50% 100%; }
.bubble-q { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); padding: 10px 16px; background: #fff; border-radius: 20px 20px 20px 4px; font-family: var(--font-head); font-weight: 600; box-shadow: var(--shadow-soft); white-space: nowrap; animation: bob 3s ease-in-out infinite; }

/* floating AI button */
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-pop);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  transition: transform .35s var(--bounce);
  animation: fabIn .8s var(--bounce) 1.2s both;
}
.ai-fab img { height: 40px; width: auto; }
.ai-fab:hover { transform: translateY(-4px) scale(1.04) rotate(-2deg); }
@keyframes fabIn { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- places ---------- */
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.place {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s var(--bounce), box-shadow .3s;
  text-align: left;
  padding: 0;
}
.place:hover { transform: translateY(-10px) rotate(-.8deg); box-shadow: var(--shadow-pop); }
.place:nth-child(even):hover { transform: translateY(-10px) rotate(.8deg); }
.place-art {
  position: relative;
  height: 240px;
  display: grid; place-items: center;
  overflow: hidden;
}
.place-art::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 14px; height: 18px;
  background: radial-gradient(closest-side, rgba(70, 90, 40, .22), transparent);
}
.place-art img { position: relative; z-index: 1; height: 210px; width: auto; transition: transform .5s var(--bounce); }
.place:hover .place-art img { transform: scale(1.08) translateY(-6px); }
.place-art .big-emoji { position: relative; z-index: 1; font-size: 96px; transition: transform .5s var(--bounce); filter: drop-shadow(0 10px 10px rgba(0,0,0,.12)); }
.place:hover .place-art .big-emoji { transform: scale(1.12) rotate(-6deg); }
.art-pink { background: linear-gradient(180deg, #ffe4ec, #fff3f6); }
.art-green { background: linear-gradient(180deg, #dff3da, #f3faf1); }
.art-honey { background: linear-gradient(180deg, #ffefc7, #fff8e6); }
.art-sky { background: linear-gradient(180deg, #dcf1ff, #f1f9ff); }
.art-lilac { background: linear-gradient(180deg, #ece4ff, #f7f3ff); }
.art-peach { background: linear-gradient(180deg, #ffe3d6, #fff3ec); }
.place-art .sparkle { z-index: 2; font-size: 20px; }
.place-art .sparkle.s1 { top: 22px; left: 26px; }
.place-art .sparkle.s2 { top: 40px; right: 30px; animation-delay: 1s; color: var(--pink); }

.place-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .08em;
  background: #fff; color: var(--sage-dark);
  box-shadow: 0 3px 0 rgba(0,0,0,.06);
}
.place-tag.soon { color: #b07a1d; }
.place-tag.new { background: var(--peach); color: #fff; }
.place-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.place-body h3 { font-size: 24px; }
.place-body p { color: var(--ink-soft); font-weight: 600; flex: 1; }
.place-link { margin-top: 6px; font-weight: 900; color: var(--sage-dark); display: inline-flex; gap: 6px; align-items: center; }
.place-link span { transition: transform .3s var(--bounce); }
.place:hover .place-link span { transform: translateX(6px); }
.place.soon-card .place-link { color: #b07a1d; }

/* bubbles for Tiny Lab */
.bubble {
  position: absolute; bottom: 70px; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(201, 182, 255, .7);
  animation: float-up 3s ease-in infinite;
}
.bubble.b1 { left: 44%; } .bubble.b2 { left: 54%; animation-delay: 1s; width: 10px; height: 10px; } .bubble.b3 { left: 49%; animation-delay: 2s; width: 8px; height: 8px; }
.heart-float { position: absolute; z-index: 2; color: #ff7d9c; font-size: 22px; animation: float-up 3.4s ease-in infinite; bottom: 80px; }
.heart-float.h1 { left: 38%; } .heart-float.h2 { left: 60%; animation-delay: 1.4s; font-size: 16px; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 50px;
  padding: 50px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.about::before {
  content: ""; position: absolute; width: 380px; height: 380px; left: -90px; top: -90px;
  border-radius: 50%; background: var(--sage-soft);
}
.about-pandas { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 300px; }
.about-pandas img { width: 46%; max-width: 230px; filter: drop-shadow(0 14px 14px rgba(0,0,0,.12)); }
.about-pandas .p-wave { animation: sway 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.about-pandas .p-lion { animation: sway 2.6s ease-in-out infinite .5s; transform-origin: 50% 100%; margin-left: -10px; }
.about-pandas .heart { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-size: 30px; color: #ff7d9c; animation: pulse 1.4s ease-in-out infinite; }
.about-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about-copy h2 { font-size: clamp(34px, 4.2vw, 50px); }
.about-copy h2 em { font-style: normal; color: var(--sage-dark); }
.about-copy p { color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { padding: 12px 18px; border-radius: var(--r-md); background: var(--cream-2); text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--sage-dark); line-height: 1.1; }
.stat span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }

/* ---------- note board ---------- */
.note-board {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 46px 40px 40px;
  background: var(--honey-soft);
  border-radius: 8px 8px 26px 8px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-1.2deg);
  text-align: center;
}
.note-board::before { content: "📌"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 34px; }
.note-board h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 12px; }
.note-board p { color: var(--ink-soft); font-weight: 600; font-size: 17px; }
.note-board .btn { margin-top: 20px; }

/* ---------- popups specific to home ---------- */
.ticket-popup { width: min(100%, 420px); background: #120d08; border-color: #2b2118; padding: 14px; }
.ticket-popup img { border-radius: 22px; width: 100%; }
.ticket-popup .btn { width: 100%; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .places-grid { grid-template-columns: repeat(2, 1fr); }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-panda { width: 120px; left: -10px; bottom: -50px; }
  .speech { left: 80px; bottom: 80px; font-size: 14px; }
  .sun { width: 70px; height: 70px; top: 80px; right: 5%; }
  .spotlight { grid-template-columns: 1fr; padding: 38px 26px; text-align: center; }
  .spotlight-copy { align-items: center; }
  .spot-points { justify-content: center; }
  .spotlight-art { min-height: 260px; order: -1; }
  .about { grid-template-columns: 1fr; padding: 34px 24px; text-align: center; }
  .about-copy { align-items: center; }
  .stats { justify-content: center; }
}
@media (max-width: 620px) {
  .ai-fab span { display: none; }
  .ai-fab { padding: 8px; }
  .ai-duo img { height: 180px; } .ai-duo-lion { height: 168px !important; }
  .section { padding: 64px 0; }
  .places-grid { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr; margin-top: 80px; }
  .hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 17px; }
  .btn { padding: 13px 22px; font-size: 16px; }
  .note-board { padding: 40px 22px 30px; }
}

.place-body .game-link { color: var(--sage-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
