:root {
  color-scheme: only light;
  --bg: #fff0f7;
  --bg-deep: #ffe2f2;
  --ink: #221b33;
  --ink-muted: rgba(34, 27, 51, 0.62);
  --primary: #ff62b5;
  --secondary: #7cc7ff;
  --accent: #ffd36b;
  --mint: #6ff2d2;
  --lavender: #c7a6ff;
  --peach: #ffc5a8;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(34, 27, 51, 0.12);
  --shadow: 0 24px 80px rgba(255, 98, 181, 0.22);
  --radius: 24px;
  --max-width: 1200px;
  --transition: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Avenir", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at 12% 12%, #fff7fd, transparent 55%),
    radial-gradient(circle at 80% 10%, #e8f7ff, transparent 50%),
    radial-gradient(circle at 50% 120%, #ffe3f0, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 18px 28px 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  margin-top: 6px;
}

.hero-copy {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 98, 181, 0.9);
  margin: 0 0 10px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}

.stat-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -30% 40% auto -30%;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 155, 209, 0.6), rgba(255, 255, 255, 0));
}

.hero-card-title {
  position: relative;
  font-weight: 700;
  margin: 0 0 12px;
}

.hero-guide {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-muted);
}

.hero-chip {
  position: relative;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 98, 181, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  box-shadow: 0 0 24px rgba(255, 98, 181, 0.5);
  animation: pulse 3s ease-in-out infinite;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn,
.primary,
.ghost,
.panel-close {
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  color: var(--ink);
  font-weight: 600;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 98, 181, 0.2);
}

.primary {
  background: linear-gradient(120deg, var(--primary), var(--lavender));
  color: #fff;
  box-shadow: var(--shadow);
}

.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 24px 60px;
}

#world {
  width: min(1120px, 95vw);
  height: min(680px, 72vh);
  border-radius: 34px;
  background: linear-gradient(150deg, #fff7fd, #e8f7ff);
  box-shadow: 0 40px 100px rgba(255, 98, 181, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.hud {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  gap: 12px;
}

.hud-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 130px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hud-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hud-value {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.floating-hint {
  position: absolute;
  right: 24px;
  top: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 18px;
  max-width: 240px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.hint-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.hint-text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.panel {
  position: absolute;
  inset: 10% 12% auto 12%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(34, 27, 51, 0.18);
  display: none;
  z-index: 6;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-close {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.map-cell {
  background: #f6eaff;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.map-cell.active {
  background: #ffd7ec;
}

.map-cell.marker::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.6);
}

.achievements {
  display: grid;
  gap: 12px;
}

.achievement {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.achievement.done {
  background: rgba(111, 242, 210, 0.3);
}

.message-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.message-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.message-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.message-note {
  font-size: 12px;
  color: var(--ink-muted);
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.message-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.message-text {
  color: var(--ink);
  font-size: 14px;
}

.music-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.music-now {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.music-title {
  font-weight: 700;
  color: var(--ink);
}

.music-artist {
  color: var(--ink-muted);
  font-size: 14px;
}

.music-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.music-controls .ghost.active {
  border-color: #ff62b5;
  color: #ff62b5;
  box-shadow: 0 6px 14px rgba(255, 98, 181, 0.18);
}

.music-lyrics {
  min-height: 88px;
  max-height: 140px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.music-lyrics .active {
  color: #ff62b5;
  font-weight: 700;
}

.music-list {
  display: grid;
  gap: 8px;
  max-height: 200px;
  overflow: auto;
}

.music-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.music-item.active {
  border-color: #ff62b5;
  box-shadow: 0 6px 14px rgba(255, 98, 181, 0.15);
}

.floating-music {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #fff1fb 0%, #ff9bd1 55%, #ff62b5 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(255, 98, 181, 0.35);
  cursor: pointer;
}

.site-footer {
  text-align: center;
  padding: 18px;
  color: var(--ink-muted);
}

.footer-declare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  background: radial-gradient(circle at 35% 35%, #fff6fb 0%, #ff9bd1 45%, #ff62b5 100%);
  box-shadow: 0 0 0 2px rgba(255, 98, 181, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: center;
  }

  .panel {
    inset: 10% 6% auto 6%;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}
