:root {
  --blue: #1b9bf0;
  --blue-deep: #0a6ebd;
  --wordmark: #0b57a4;
  --navy: #073a6e;
  --sky: #e9f7ff;
  --ink: #0e2a3f;
  --muted: #5b7a90;
  --grad: linear-gradient(135deg, #1b9bf0 0%, #0a6ebd 100%);
  --card: #ffffff;
  --radius: 26px;
  --shadow: 0 14px 34px rgba(27, 155, 240, 0.18);
  --shadow-hover: 0 20px 48px rgba(27, 155, 240, 0.3);
  --display: 'Arial Rounded MT Bold', 'Hiragino Maru Gothic ProN',
    'SF Pro Rounded', ui-rounded, Quicksand, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic",
    Quicksand, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ---- brand ---- */
.brand {
  background: #fff;
  color: var(--navy);
  text-align: center;
  padding: 1.3rem 1rem 1.2rem;
  border-radius: 0 0 36px 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.brand .logo {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--wordmark);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transform: rotate(-2deg);
}
.mascot { display: inline-block; vertical-align: middle; }
.brand .logo .mascot { flex: none; }
.brand .slogan {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 700;
}
.back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 87, 164, 0.1);
  color: var(--wordmark);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}
.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 87, 164, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}
.lang-switch a { color: var(--wordmark); opacity: 0.65; }
.lang-switch a.cur { opacity: 1; text-decoration: underline; }
.lang-switch .sep { margin: 0 0.4rem; opacity: 0.4; }

/* ---- hero ---- */
.hero {
  max-width: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #bfe3ff 0%, #dff4ff 100%);
  border-radius: 0 0 36px 36px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.hero-text { flex: 1; padding-bottom: 2.8rem; }
.hero-text h1 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--navy);
}
.hero-sub {
  margin: 0 0 1.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}
.cta {
  display: inline-block;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(10, 110, 189, 0.45);
  transition: transform 0.15s, background 0.15s;
}
.cta:hover { transform: translateY(-2px) scale(1.03); background: var(--navy); }
.hero-mascot { flex: none; margin-bottom: -28px; }
.mascot-hero { width: 280px; height: 280px; }
@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 2rem 1.2rem 0;
  }
  .hero-text { padding-bottom: 2.2rem; }
  .mascot-hero { width: 160px; height: 160px; }
  .hero-mascot { margin-bottom: -20px; }
}

/* ---- layout ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem; }

/* ---- search & capsules ---- */
.searchbar { text-align: center; margin-top: 0.5rem; }
.searchbar input {
  width: min(560px, 100%);
  padding: 0.9rem 1.4rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: inherit;
  outline: none;
  background: #fff;
}
.searchbar input:focus { box-shadow: 0 0 0 3px rgba(27, 155, 240, 0.4), var(--shadow); }
.capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.2rem 0 0.4rem;
}
.capsule {
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.capsule:hover { transform: translateY(-2px); }
.capsule.active { background: var(--grad); color: #fff; }
.count { text-align: center; color: var(--muted); font-weight: 600; }

/* ---- card grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-hover); }
.card-icon {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji { font-size: 4.2rem; line-height: 1; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
}
.card-meta { margin: 0.4rem 0; }
.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--muted);
  text-transform: capitalize;
}
.card-desc { font-size: 0.9rem; color: var(--muted); min-height: 2.6em; }
.badge {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-deep);
  background: rgba(27, 155, 240, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ---- category pages ---- */
.cat-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  color: var(--navy);
  font-size: 2.2rem;
}

/* ---- landing page ---- */
.landing { max-width: 900px; margin: 0 auto; }
.landing-hero {
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}
.landing-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-xl { font-size: 3.4rem; line-height: 1; }
.landing-hero h1 {
  margin: 0.8rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 900;
  color: var(--navy);
  font-size: 2.1rem;
}
.landing-meta { display: flex; gap: 0.6rem; justify-content: center; align-items: center; }
.landing-meta .badge { margin-top: 0; }
.landing-desc { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 1rem auto 0; }
.landing-controls {
  display: inline-block;
  background: var(--sky);
  border-radius: 18px;
  padding: 0.8rem 1.4rem;
  margin-top: 1rem;
  font-size: 1rem;
}
.frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  margin: 1.5rem auto 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #111;
  max-width: 900px;
}
.game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .frame-wrap { aspect-ratio: 4 / 5; border-radius: 24px; }
}
.home-link { text-align: center; margin-top: 1.4rem; font-weight: 800; }
.home-link a { color: var(--blue-deep); }

/* ---- hero buttons / surprise ---- */
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
button.cta { border: none; cursor: pointer; }
.cta-surprise {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.cta-surprise:hover { background: var(--sky); }
@media (max-width: 720px) {
  .hero-btns { justify-content: center; }
}

/* ---- card meta specs line ---- */
.card-specs {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---- scenes (browse by experience) ---- */
.scenes { margin-top: 2.4rem; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.scene-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.scene-emoji { font-size: 2rem; line-height: 1.2; }
.scene-name { font-family: var(--display); font-weight: 900; color: var(--navy); }
.scene-count { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.scene-blurb {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.2rem auto 0.4rem;
}

/* ---- landing: why / specs / also-like ---- */
.why, .specs, .also {
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 1.6rem 2rem;
  margin-top: 1.5rem;
  text-align: left;
}
.why h2, .specs h2, .also h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.45rem;
}
.why ul { margin: 0.7rem 0 0; padding-left: 1.25rem; }
.why li { margin: 0.4rem 0; font-size: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--sky);
  font-size: 0.98rem;
}
.spec-table th { color: var(--muted); font-weight: 800; width: 32%; }
.also .grid { margin-top: 0.9rem; }

/* ---- browse cross-link nav ---- */
.browse-nav {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 2;
}
.browse-nav a { color: var(--blue-deep); font-weight: 800; }
.browse-nav .nav-label {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 900;
  margin-right: 0.5rem;
}

/* ---- footer ---- */
.foot {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 2.5rem;
  font-weight: 600;
}
.foot a { color: var(--blue-deep); font-weight: 800; }
