:root {
  --cream: #fff6ec;
  --cream-2: #ffe9d6;
  --ink: #5a4030;
  --ink-soft: #8a6a55;
  --muted: #b08a72;
  --pink: #ff8fb8;
  --pink-soft: #ffd0e0;
  --mint: #6fd6a8;
  --mint-soft: #c8f0dc;
  --peach: #ffb07a;
  --peach-soft: #ffe0c4;
  --sky: #8ecbff;
  --sky-soft: #d6eeff;
  --lavender: #c9a8ff;
  --gold: #ffc85a;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(180, 120, 90, 0.16);
  --shadow-sm: 0 4px 14px rgba(180, 120, 90, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Fredoka", "Nunito", "Noto Sans SC", sans-serif;
  --body: "Nunito", "Noto Sans SC", sans-serif;
  --nav-h: 78px;
  --castle: #ff8fb8;
  --adventure: #5ecf98;
  --arena: #ff9a5a;
  --town: #c9a8ff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.park-home {
  font-family: var(--body);
  color: var(--ink);
  background: #f7f1e6;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 1.2rem);
}

.sky-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 18% 12%, rgba(255, 255, 255, 0.85), transparent 62%),
    radial-gradient(ellipse 48% 36% at 82% 10%, rgba(255, 248, 236, 0.7), transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 214, 190, 0.35), transparent 55%),
    linear-gradient(180deg, #f4efe6 0%, #f8f3ea 45%, #efe6d8 100%);
}
.cloud {
  position: absolute;
  width: 160px; height: 48px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  filter: blur(0.2px);
  animation: drift 40s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: inherit;
}
.cloud::before { width: 70px; height: 48px; left: 22px; top: -22px; }
.cloud::after { width: 58px; height: 42px; right: 24px; top: -16px; }
.c1 { top: 10%; left: -8%; animation-duration: 48s; }
.c2 { top: 18%; right: -10%; width: 120px; opacity: 0.75; animation-duration: 56s; animation-direction: reverse; }
.c3 { top: 28%; left: 40%; width: 90px; opacity: 0.55; animation-duration: 62s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(110vw); }
}

/* ===== Header ===== */
.park-header {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.2fr) minmax(240px, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem 0.4rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 56px; height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(180, 120, 90, 0.25));
  animation: bob-soft 2.8s ease-in-out infinite;
}
@keyframes bob-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #6b4535;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.daily-banner {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9f2, #ffe8d2);
  color: var(--ink);
  font: 700 0.86rem/1.2 var(--display);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.daily-banner img {
  width: 28px; height: 24px; object-fit: contain;
}
.daily-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.header-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lang-host { display: flex; align-items: center; }

.profile-card {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.profile-avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff0c8, #ffd4a8);
  font-size: 1.35rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.profile-meta { display: grid; line-height: 1.15; min-width: 0; }
.profile-meta strong {
  font-family: var(--display);
  font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}
.profile-stats { display: flex; gap: 0.35rem; }
.stat {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fff6e8;
}
.stat.points { color: #c07a10; background: #fff0c8; }
.stat.diamonds { color: #7a4ec8; background: #f0e4ff; }
.stat i { font-style: normal; font-size: 0.68rem; }
.profile-bell {
  width: 28px; height: 32px;
  object-fit: contain;
  opacity: 0.95;
}

/* ===== Main stage ===== */
.park-stage {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 0.9rem;
  max-width: 1280px;
  margin: 0.35rem auto 0;
  padding: 0 1.1rem;
  align-items: stretch;
}

.island-wrap {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.5), rgba(245, 238, 228, 0.35));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.float-tools {
  position: absolute; z-index: 6;
  top: 0.65rem; left: 0.65rem;
  display: grid; gap: 0.55rem;
}
.float-btn {
  display: grid; justify-items: center; gap: 0.15rem;
  width: 72px; padding: 0.4rem 0.3rem 0.45rem;
  border: 0; border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.18s ease;
}
.float-btn img {
  width: 40px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(90, 60, 40, 0.18));
}
.float-btn small { font-size: 0.62rem; font-weight: 700; }
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-btn:active { transform: translateY(0) scale(0.96); }

.island-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 614 / 546;
  max-height: min(70vh, 680px);
  margin: 0.6rem auto 3rem;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.island-art {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(120, 90, 60, 0.18));
  user-select: none;
  pointer-events: none;
}

/* Invisible zone hit areas over 3D map */
.zone-hit {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  transform: translate(-50%, -50%);
  z-index: 3;
  border: 0;
  border-radius: 28px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.zone-hit:hover,
.zone-hit.is-hot {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 2px rgba(255, 200, 120, 0.5), 0 0 24px rgba(255, 180, 100, 0.22);
}

/* Soft-3D speech-bubble zone callouts on the island map */
.zone-label {
  --badge: #ff9a4a;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.28rem 0.85rem 0.28rem 0.3rem;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.95), transparent 48%),
    linear-gradient(180deg, #fffefb, #f4ebe0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 0 #e4d6c4,
    0 10px 18px rgba(90, 60, 40, 0.18);
  color: #5a4030;
  cursor: pointer;
  transform: translate(-18%, -100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.zone-label::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #f4ebe0, #efe4d6);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(90, 60, 40, 0.1);
  z-index: -1;
}
.zone-label:hover,
.zone-label.is-hot,
.zone-label.is-active {
  transform: translate(-18%, calc(-100% - 4px)) scale(1.04);
  filter: brightness(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 0 #e4d6c4,
    0 0 0 3px rgba(255, 210, 140, 0.45),
    0 14px 22px rgba(90, 60, 40, 0.2);
}
.zone-label:focus-visible {
  outline: 3px solid #ffb070;
  outline-offset: 3px;
}
.zone-badge {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font: 800 1rem/1 var(--display);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 48%),
    linear-gradient(160deg, color-mix(in srgb, var(--badge) 78%, #fff), var(--badge));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 3px 0 color-mix(in srgb, var(--badge) 55%, #5a4030),
    0 4px 8px rgba(90, 60, 40, 0.16);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.zone-name {
  font: 800 0.82rem/1.1 var(--display);
  letter-spacing: 0.01em;
  color: #5a4030;
  padding-right: 0.15rem;
}
.zone-label[data-zone="castle"] { --badge: #ff9a4a; }
.zone-label[data-zone="adventure"] { --badge: #7bc93e; }
.zone-label[data-zone="arena"] { --badge: #9b6ae8; }
.zone-label[data-zone="town"] { --badge: #f078a8; }

.zone-picker {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(320px, 86%);
  padding: 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: picker-in 0.22s ease;
}
.zone-picker[hidden] { display: none !important; }
@keyframes picker-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.zone-picker-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.zone-picker-head img {
  width: 48px; height: 48px;
  object-fit: contain;
}
.zone-picker-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: #6b4535;
}
.zone-picker-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.zone-picker-close {
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: #ffe8d4;
  color: #8a5a40;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.zone-picker-links {
  display: grid;
  gap: 0.4rem;
}
.zone-picker-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf4, #fff0e2);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 150, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.zone-picker-links a small {
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--muted);
}
.zone-picker-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.zone-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: blur(10px);
}
.zone-glow[data-zone="castle"] { left: 38%; top: 14%; width: 28%; height: 28%; background: radial-gradient(circle, rgba(255, 160, 120, 0.42), transparent 70%); }
.zone-glow[data-zone="adventure"] { left: 14%; top: 8%; width: 30%; height: 30%; background: radial-gradient(circle, rgba(100, 220, 160, 0.4), transparent 70%); }
.zone-glow[data-zone="arena"] { left: 58%; top: 6%; width: 30%; height: 28%; background: radial-gradient(circle, rgba(255, 200, 100, 0.4), transparent 70%); }
.zone-glow[data-zone="town"] { left: 54%; top: 48%; width: 32%; height: 32%; background: radial-gradient(circle, rgba(255, 150, 190, 0.42), transparent 70%); }
.zone-glow.is-hot { opacity: 1; }

.week-star {
  position: absolute; z-index: 6;
  left: 0.65rem; bottom: 0.65rem;
  width: min(220px, 46%);
  padding: 0.75rem 0.85rem 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.week-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display);
}
.week-head strong { font-size: 0.92rem; }
.week-head span { font-size: 0.72rem; color: var(--peach); font-weight: 800; }
.week-star p { margin: 0.25rem 0 0.5rem; font-size: 0.72rem; color: var(--muted); }
.week-bar {
  height: 10px; border-radius: 999px;
  background: #ffe8d6; overflow: hidden;
}
.week-bar i {
  display: block; height: 100%; width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb070, #ff8fb8);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.week-gift {
  position: absolute; right: 0.45rem; top: 0.4rem;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #fff0d8;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease;
  padding: 0;
}
.week-gift img { width: 28px; height: 32px; object-fit: contain; }
.week-gift:hover { transform: scale(1.12) rotate(-8deg); }

.map-mini {
  position: absolute; z-index: 6;
  right: 0.65rem; bottom: 0.65rem;
  display: grid; justify-items: center; gap: 0.1rem;
  width: 72px; padding: 0.35rem 0.3rem 0.4rem;
  border: 0; border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.18s ease;
}
.map-mini img { width: 40px; height: 46px; object-fit: contain; }
.map-mini small { font-size: 0.62rem; font-weight: 700; }
.map-mini:hover { transform: translateY(-3px); }

/* ===== Guide panel ===== */
.guide-panel {
  display: flex; flex-direction: column;
  min-height: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 0.95rem 0.9rem 0.85rem;
  backdrop-filter: blur(10px);
}
.guide-head {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.guide-mark {
  width: 40px; height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(90, 60, 40, 0.15));
}
.guide-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  color: #6b4535;
  letter-spacing: 0.02em;
}
.guide-head p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.guide-scroll {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  padding-right: 0.15rem;
  max-height: min(58vh, 520px);
}
.guide-zone {
  padding: 0.55rem;
  border-radius: 18px;
  background: #fffaf6;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 170, 0.45);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.guide-zone.is-hot {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(255, 176, 120, 0.55), var(--shadow-sm);
}
.guide-zone.theme-castle { background: linear-gradient(180deg, #fff8f0, #ffe8d4); }
.guide-zone.theme-adventure { background: linear-gradient(180deg, #f4fff8, #dff8ea); }
.guide-zone.theme-arena { background: linear-gradient(180deg, #f8f4ff, #ebe0ff); }
.guide-zone.theme-town { background: linear-gradient(180deg, #fff5fa, #ffe0ec); }

.zone-banner {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.15s ease;
}
.zone-banner:hover {
  background: rgba(255, 255, 255, 0.55);
}
.zone-banner img {
  width: 64px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(90, 60, 40, 0.15));
}
.guide-zone h3 {
  margin: 0;
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--display);
  font-size: 0.95rem;
}
.guide-zone h3 b {
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
}
.guide-zone.theme-castle h3 { color: #c06828; }
.guide-zone.theme-castle h3 b { background: #ff9a4a; }
.guide-zone.theme-adventure h3 { color: #2f8a58; }
.guide-zone.theme-adventure h3 b { background: #4ecf90; }
.guide-zone.theme-arena h3 { color: #6a48b0; }
.guide-zone.theme-arena h3 b { background: #9b78e8; }
.guide-zone.theme-town h3 { color: #c05080; }
.guide-zone.theme-town h3 b { background: #ff8fb8; }

.guide-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.28rem;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.guide-link:last-child { margin-bottom: 0; }
.link-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffb070;
  box-shadow: 0 0 0 3px rgba(255, 176, 112, 0.28);
  flex-shrink: 0;
}
.guide-zone.theme-castle .link-dot { background: #ff9a4a; box-shadow: 0 0 0 3px rgba(255, 154, 74, 0.28); }
.guide-zone.theme-adventure .link-dot { background: #4ecf90; box-shadow: 0 0 0 3px rgba(78, 207, 144, 0.28); }
.guide-zone.theme-arena .link-dot { background: #9b78e8; box-shadow: 0 0 0 3px rgba(155, 120, 232, 0.28); }
.guide-zone.theme-town .link-dot { background: #ff8fb8; box-shadow: 0 0 0 3px rgba(255, 143, 184, 0.28); }
.guide-link span { display: grid; gap: 0.08rem; min-width: 0; }
.guide-link strong {
  font-family: var(--display);
  font-size: 0.86rem;
  line-height: 1.2;
}
.guide-link small {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guide-link:hover,
.guide-link.is-hot,
.guide-link.is-active {
  transform: translateX(3px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.guide-cta {
  margin-top: 0.75rem;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe0c0, #ffc090);
  color: #6b4535;
  font: 800 0.95rem/1 var(--display);
  box-shadow: 0 6px 0 #e09860, var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.guide-cta img { width: 22px; height: 28px; object-fit: contain; }
.guide-cta .cta-arrow { margin-left: auto; font-size: 1.2rem; opacity: 0.7; }
.guide-cta:hover { transform: translateY(-2px); filter: brightness(1.04); }
.guide-cta:active { transform: translateY(2px); box-shadow: 0 3px 0 #e09860; }

/* ===== Bottom nav ===== */
.bottom-nav {
  position: fixed; z-index: 20;
  left: 50%; bottom: 0.7rem;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 1.4rem));
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr);
  align-items: end;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem 0.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(140, 100, 70, 0.2);
  backdrop-filter: blur(12px);
}
.bn-item {
  display: grid; justify-items: center; gap: 0.12rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-decoration: none;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bn-item span { font-size: 1.15rem; line-height: 1; }
.bn-item em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--display);
}
.bn-item:hover { transform: translateY(-2px); color: var(--ink); }
.bn-item.is-on {
  background: #ffe0c4;
  color: #b06020;
}
.bn-explore {
  position: relative;
  top: -1.15rem;
  width: 78px; height: 78px;
  margin: 0 0.15rem;
  border: 0;
  border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 0;
  background: radial-gradient(circle at 35% 30%, #fff0d0, #ffc878 55%, #ff9a58);
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(255, 200, 120, 0.35),
    0 10px 24px rgba(255, 140, 70, 0.4);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0.2rem;
}
.bn-explore img {
  width: 52px; height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
  animation: bob-soft 2.4s ease-in-out infinite;
}
.bn-explore em {
  position: absolute;
  bottom: 0.35rem;
  font-style: normal;
  font-size: 0.52rem;
  font-weight: 800;
  font-family: var(--display);
  text-shadow: 0 1px 2px rgba(120, 60, 20, 0.35);
}
.bn-explore:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 0 8px rgba(255, 200, 120, 0.4),
    0 14px 28px rgba(255, 140, 70, 0.45);
}

/* ===== Modal / toast ===== */
.soft-modal {
  border: 0; padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 2rem));
}
.soft-modal::backdrop {
  background: rgba(90, 60, 40, 0.35);
  backdrop-filter: blur(4px);
}
.soft-modal-card {
  margin: 0;
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf4, #ffe9d6);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
}
.modal-hero {
  width: 120px; height: 118px;
  object-fit: contain;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 8px 12px rgba(120, 80, 40, 0.2));
  animation: bob-soft 2.8s ease-in-out infinite;
}
.soft-modal-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.soft-modal-card ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid; gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}
.soft-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.btn-ghost, .btn-solid {
  border: 0; border-radius: 999px;
  padding: 0.7rem 0.8rem;
  font: 800 0.88rem/1 var(--display);
  cursor: pointer;
}
.btn-ghost { background: #ffe8d4; color: var(--ink); }
.btn-solid {
  background: linear-gradient(180deg, #7fe0b0, #4ecf90);
  color: #fff;
  box-shadow: 0 5px 0 #2fa86a;
}

.page-toast {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(var(--nav-h) + 1.2rem);
  transform: translateX(-50%) translateY(12px);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(90, 55, 40, 0.92);
  color: #fff8ec;
  font: 700 0.86rem/1.2 var(--display);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden; text-overflow: ellipsis;
}
.page-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== First-login onboarding ===== */
.onboarding-modal {
  width: min(880px, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 0;
  border-radius: 30px;
  background: transparent;
}
.onboarding-modal::backdrop {
  background: rgba(74, 55, 43, 0.5);
  backdrop-filter: blur(9px) saturate(0.8);
}
.onboarding-shell {
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(330px, 1.05fr) 92px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 4%, rgba(255, 224, 173, 0.35), transparent 30%),
    linear-gradient(150deg, #fffdf9, #f8eee2);
  box-shadow: 0 35px 90px rgba(71, 47, 31, 0.32);
}
.onboarding-close {
  position: absolute;
  z-index: 6;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #9a7b66;
  border: 1px solid #ead8c5;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 12px rgba(83, 55, 34, 0.1);
  cursor: pointer;
  font: 800 1rem/1 var(--display);
}
.onboarding-close:hover { color: #5e4230; background: #fff; transform: rotate(6deg); }

.onboarding-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(224, 244, 247, 0.92), rgba(255, 232, 192, 0.86)),
    url("/assets/park/clay/island.png") center / cover;
}
.onboarding-visual::before {
  content: "";
  position: absolute;
  inset: auto -12% -25% -12%;
  height: 62%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.72), transparent 67%);
}
.onboarding-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 31%, rgba(255,232,145,.9) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 77%, rgba(255,255,255,.9) 0 2px, transparent 3px);
  animation: onboarding-glow 3s ease-in-out infinite;
}
#onboarding-art {
  position: relative;
  z-index: 2;
  width: min(74%, 245px);
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(81, 57, 35, 0.2));
  animation: bob-soft 3s ease-in-out infinite;
  transition: transform 320ms ease, opacity 200ms ease;
}
.onboarding-visual.is-changing #onboarding-art { opacity: 0; transform: translateY(10px) scale(.95); }
.onboarding-ticket {
  position: absolute;
  z-index: 3;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 8px 22px rgba(79, 50, 29, .14);
  backdrop-filter: blur(8px);
}
.onboarding-ticket span {
  min-width: 46px;
  padding: .32rem .4rem;
  color: #b26626;
  border-radius: 999px;
  background: #ffe3b7;
  text-align: center;
  font: 800 .68rem/1 var(--display);
}
.onboarding-ticket strong {
  overflow: hidden;
  color: #634430;
  font: 800 .64rem/1.2 var(--display);
  letter-spacing: .08em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.onboarding-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2rem 1.55rem;
}
.onboarding-eyebrow {
  color: #d9812f;
  font: 900 .66rem/1 var(--body);
  letter-spacing: .15em;
}
.onboarding-copy h2 {
  margin: .45rem 0 .55rem;
  color: #503424;
  font: 700 clamp(1.6rem, 3.2vw, 2.25rem)/1.06 var(--display);
  letter-spacing: -.02em;
}
.onboarding-copy > p {
  margin: 0;
  color: #846a58;
  font-size: .82rem;
  line-height: 1.55;
  font-weight: 700;
}
.onboarding-features {
  display: grid;
  gap: .48rem;
  margin: 1.15rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.onboarding-features li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: .65rem;
  padding: .58rem .66rem;
  border: 1px solid #ecddcd;
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.onboarding-features li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--feature-bg, #fff0cf);
  font-size: 1.12rem;
}
.onboarding-features strong,
.onboarding-features small { display: block; }
.onboarding-features strong { color: #5b3f2e; font: 700 .72rem/1.2 var(--display); }
.onboarding-features small { margin-top: .12rem; color: #8d7361; font-size: .58rem; line-height: 1.28; font-weight: 700; }
.onboarding-actions { margin-top: auto; }
.onboarding-primary {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1rem;
  color: #fffaf1;
  border: 1px solid #df8128;
  border-radius: 999px;
  background: linear-gradient(#ffc56b, #e88b32);
  box-shadow: 0 5px 0 #c76c23, 0 12px 22px rgba(210,113,34,.22);
  cursor: pointer;
  font: 800 .86rem/1 var(--display);
}
.onboarding-primary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.onboarding-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c76c23; }
.onboarding-skip {
  display: block;
  margin: .72rem auto 0;
  padding: .2rem .5rem;
  color: #816858;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 900;
}
.onboarding-skip:hover { color: #d2792a; }
.onboarding-dots { display: flex; justify-content: center; gap: .38rem; margin-top: .75rem; }
.onboarding-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8c9bb;
  cursor: pointer;
}
.onboarding-dot.is-on { width: 22px; border-radius: 999px; background: #e89b42; }

.onboarding-tabs {
  display: grid;
  align-content: center;
  gap: .68rem;
  padding: 3rem .65rem 1rem;
  border-left: 1px solid #ead8c6;
  background: rgba(255,250,244,.72);
}
.onboarding-tab {
  position: relative;
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .3rem;
  padding: .45rem .25rem;
  color: #7e6858;
  border: 1px solid #e8d6c3;
  border-radius: 15px;
  background: rgba(255,255,255,.68);
  cursor: pointer;
  opacity: .7;
}
.onboarding-tab:hover { opacity: 1; transform: translateX(-2px); }
.onboarding-tab.is-on { color: #c36d26; border-color: #e6aa65; background: #fff7e9; box-shadow: 0 5px 0 rgba(211,125,45,.18); opacity: 1; }
.onboarding-tab img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(75,45,25,.12)); }
.onboarding-tab span { font: 800 .52rem/1.15 var(--display); text-align: center; }
.onboarding-tab b { position: absolute; top: .3rem; right: .35rem; color: #b49379; font-size: .46rem; }

@keyframes onboarding-glow {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 760px) {
  .onboarding-modal { width: min(560px, calc(100vw - 1rem)); }
  .onboarding-shell { grid-template-columns: 1fr; min-height: 0; max-height: calc(100vh - 1rem); overflow: auto; }
  .onboarding-visual { min-height: 220px; }
  #onboarding-art { width: 160px; height: 170px; }
  .onboarding-ticket { right: auto; min-width: 230px; }
  .onboarding-copy { padding: 1.35rem 1rem 1.1rem; }
  .onboarding-copy h2 { font-size: 1.55rem; }
  .onboarding-tabs { display: none; }
  .onboarding-features { margin: .8rem 0 1rem; }
}

@media (max-width: 430px) {
  .onboarding-visual { min-height: 185px; }
  #onboarding-art { height: 138px; }
  .onboarding-ticket { left: .65rem; bottom: .65rem; padding: .5rem; }
  .onboarding-copy > p { font-size: .74rem; }
  .onboarding-features li { padding: .45rem; }
  .onboarding-features li:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .brand-mark, .island-art, .bn-explore img, .modal-hero, #onboarding-art, .onboarding-aurora { animation: none; }
  .island-stage { transition: none; }
}

@media (max-width: 980px) {
  .park-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand profile"
      "daily daily";
  }
  .brand { grid-area: brand; }
  .daily-banner { grid-area: daily; justify-self: stretch; }
  .header-end { grid-area: profile; }
  .park-stage { grid-template-columns: 1fr; }
  .guide-panel { order: 2; }
  .guide-scroll { max-height: none; }
  .island-wrap { min-height: 0; }
  .island-stage { max-height: none; margin-bottom: 4.5rem; }
}

@media (max-width: 640px) {
  .profile-stats { display: none; }
  .brand em { display: none; }
  .bottom-nav {
    width: calc(100vw - 0.8rem);
    gap: 0;
    padding: 0.35rem 0.25rem 0.4rem;
  }
  .bn-item em { font-size: 0.52rem; }
  .bn-explore { width: 68px; height: 68px; top: -0.9rem; }
  .bn-explore img { width: 44px; height: 40px; }
  .float-tools { top: 0.6rem; left: 0.6rem; }
  .float-btn, .map-mini { width: 64px; }
  .week-star { width: min(180px, 52%); }
  .zone-label {
    min-height: 34px;
    padding: 0.2rem 0.65rem 0.2rem 0.22rem;
    gap: 0.32rem;
  }
  .zone-badge { width: 26px; height: 26px; font-size: 0.85rem; }
  .zone-name { font-size: 0.68rem; }
}
