:root {
  --cream: #fffaf0;
  --paper: #fffef9;
  --blue: #8ed5ec;
  --blue-deep: #2f7f9f;
  --mint: #9fe4d0;
  --pink: #ffc6d8;
  --gray: #eef2f4;
  --ink: #27435a;
  --muted: #6e8191;
  --line: #b7dceb;
  --shadow: 0 18px 45px rgba(74, 126, 148, 0.16);
  --pixel: 0 0 0 2px #2f7f9f, 5px 5px 0 #d9f0f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(142, 213, 236, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(142, 213, 236, 0.11) 1px, transparent 1px),
    var(--cream);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid rgba(47, 127, 159, 0.16);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--blue-deep);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 3px 3px 0 #cdeef6;
}

.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--blue-deep);
}

.site-nav {
  position: absolute;
  inset: 60px 14px auto 14px;
  display: none;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: grid;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 800;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e5f7fb;
  color: var(--blue-deep);
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 10vw, 72px);
}

h2 {
  font-size: clamp(26px, 7vw, 42px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  align-items: center;
  gap: 28px;
  padding: 34px 0 56px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-title em {
  display: block;
  color: var(--blue-deep);
  font-style: normal;
}

.hero-actions,
.card-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--blue-deep);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 198, 216, 0.42), transparent 38%),
    linear-gradient(225deg, rgba(159, 228, 208, 0.55), transparent 40%),
    white;
  box-shadow: var(--pixel);
}

.hero-visual::before {
  position: absolute;
  inset: 20px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  content: "";
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(72%, 340px);
  filter: drop-shadow(0 18px 12px rgba(46, 95, 113, 0.14));
}

.bubble {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 22px;
  max-width: 220px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--blue-deep);
  font-weight: 900;
  box-shadow: 4px 4px 0 #d9f0f7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--blue-deep);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-deep);
  color: white;
  box-shadow: 4px 4px 0 #c9ebf4;
}

.btn-ghost {
  background: white;
  color: var(--blue-deep);
}

.btn-pink {
  border-color: #d16b8b;
  background: var(--pink);
  color: #7f2c4b;
}

.grid,
.product-grid,
.game-card-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card,
.product-card,
.game-card,
.info-panel,
.result-card,
.story-band,
.mascot-profile {
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.feature-card,
.game-card,
.info-panel,
.story-band,
.mascot-profile {
  padding: 18px;
}

.feature-card {
  display: grid;
  gap: 10px;
}

.feature-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7fbfc;
}

.product-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #a6d9e6;
  border-radius: 999px;
  background: #eefbff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.product-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-card dt {
  font-weight: 900;
}

.product-card dd {
  margin: 0;
}

.mascot-split,
.catalog-layout,
.game-layout {
  display: grid;
  gap: 20px;
}

.mascot-profile {
  display: grid;
  gap: 16px;
}

.mascot-profile img {
  justify-self: center;
  max-height: 360px;
  object-fit: contain;
}

.line-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.line-list li {
  padding: 12px 14px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: #fbfeff;
  font-weight: 800;
}

.bgm-widget {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 4px 4px 0 #d9f0f7;
}

.bgm-widget small {
  display: block;
  color: var(--muted);
}

.icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  background: #e5f7fb;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 900;
}

.volume {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.volume input {
  width: 100%;
}

.page-title {
  display: grid;
  gap: 14px;
  padding: 34px 0 18px;
}

.notice {
  padding: 14px 16px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.game-card {
  display: grid;
  gap: 14px;
}

.game-card img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 2px dashed var(--line);
  border-radius: 18px;
  background: #f7fbfc;
}

.game-shell {
  display: grid;
  gap: 14px;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hud-item {
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: center;
  font-weight: 900;
}

.hud-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.game-arena {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 3px solid var(--blue-deep);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("../images/game/station-bg.png") center bottom / min(96%, 650px) auto no-repeat,
    linear-gradient(180deg, #e9fbff, #fffaf0);
  box-shadow: var(--pixel);
}

.game-arena::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 110px;
  height: 150px;
  background: url("../images/mascot/stand.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.sampling-arena::after {
  background-image: url("../images/mascot/swab.png");
}

.game-target {
  position: absolute;
  display: grid;
  width: 86px;
  height: 94px;
  place-items: center;
  padding: 4px;
  border: 2px solid var(--blue-deep);
  border-radius: 18px;
  background: white;
  box-shadow: 4px 4px 0 rgba(47, 127, 159, 0.22);
  color: var(--ink);
  cursor: pointer;
  animation: pop 0.2s ease-out;
}

.game-target.bad {
  border-color: #d16b8b;
  box-shadow: 4px 4px 0 rgba(209, 107, 139, 0.22);
}

.game-target img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  pointer-events: none;
}

.game-target span {
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

.metric-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-list span {
  padding: 7px 9px;
  border-radius: 12px;
  background: #eefbff;
  color: var(--blue-deep);
  font-weight: 900;
}

.game-status {
  min-height: 48px;
  padding: 12px 14px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: white;
  font-weight: 900;
}

.result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.result-card h2 {
  color: var(--blue-deep);
}

.result-score {
  font-size: 42px;
  font-weight: 900;
}

.result-metrics,
.bars {
  display: grid;
  gap: 8px;
}

.result-metrics span {
  padding: 10px;
  border-radius: 14px;
  background: #eefbff;
  font-weight: 900;
}

.recommend {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fbfeff;
}

.recommend img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.bars label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  overflow: hidden;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #f8fdff;
  font-weight: 900;
}

.bars i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) var(--value), #e5eef2 var(--value));
}

.asset-showcase {
  display: grid;
  gap: 14px;
}

.asset-showcase img {
  border: 2px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 2px solid rgba(47, 127, 159, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 8px;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

dialog::backdrop {
  background: rgba(39, 67, 90, 0.42);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 3px solid var(--blue-deep);
  border-radius: 24px;
  background: white;
  box-shadow: var(--pixel);
}

.modal-card img {
  width: 100%;
  max-height: 380px;
  border-radius: 18px;
  object-fit: cover;
}

.modal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  color: var(--muted);
}

.modal-meta dt {
  font-weight: 900;
}

.modal-meta dd {
  margin: 0;
}

@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 46px;
  }

  .feature-grid,
  .game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-layout,
  .mascot-split,
  .game-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .volume {
    grid-column: auto;
    min-width: 160px;
  }

  .bgm-widget {
    grid-template-columns: 1fr auto auto minmax(160px, 220px);
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .game-hud {
    grid-template-columns: 1fr;
  }

  .game-target {
    width: 76px;
    height: 86px;
  }

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

  .recommend img {
    width: 100%;
    height: 160px;
  }
}

/* Integrated redesign overrides */
:root {
  --color-bg: #f8f3e8;
  --color-card: #fffdf7;
  --color-blue: #4b87a5;
  --color-blue-dark: #28465e;
  --color-pink: #f3a9c4;
  --color-green: #8fc8b4;
  --color-text: #26384c;
  --color-muted: #6f7f8d;
  --radius-xl: 28px;
  --shadow-card: 0 14px 36px rgba(40, 70, 94, 0.12);
  --cream: var(--color-bg);
  --paper: var(--color-card);
  --blue-deep: var(--color-blue);
  --mint: var(--color-green);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --line: rgba(75, 135, 165, 0.24);
  --shadow: var(--shadow-card);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 169, 196, 0.24), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(143, 200, 180, 0.26), transparent 24%),
    linear-gradient(90deg, rgba(80, 120, 140, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(80, 120, 140, 0.08) 1px, transparent 1px),
    var(--color-bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page-wide {
  width: min(1220px, calc(100% - 28px));
}

.centered {
  justify-items: center;
  text-align: center;
}

.site-nav a {
  font-size: 14px;
}

.card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(40, 70, 94, 0.16);
}

.feature-grid-3 {
  grid-template-columns: 1fr;
}

.feature-card img {
  width: 100%;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
  background: #f8fdff;
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.muted {
  color: var(--muted);
}

.game-banner {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 3px solid var(--blue-deep);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(142, 213, 236, 0.34), transparent 45%),
    linear-gradient(225deg, rgba(255, 198, 216, 0.34), transparent 45%),
    var(--paper);
  box-shadow: var(--shadow);
}

.shot-grid,
.expression-grid,
.story-timeline,
.buy-grid,
.game-help {
  display: grid;
  gap: 16px;
}

.shot-card {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f7fbfc;
}

.shot-card div {
  display: grid;
  gap: 10px;
  padding: 0 16px;
}

.expression-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: center;
}

.expression-card img {
  justify-self: center;
  width: min(72%, 180px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.story-timeline .card,
.buy-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.game-frame-wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--blue-deep);
  border-radius: 24px;
  background: #111;
  box-shadow: 0 18px 40px rgba(33, 80, 110, 0.16);
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mobile-hint {
  display: inline-flex;
  padding: 8px 12px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 900;
}

.centered-actions {
  justify-content: center;
  padding-bottom: 42px;
}

@media (min-width: 720px) {
  .site-nav a {
    padding: 8px 7px;
  }

  .product-grid,
  .feature-grid-3,
  .shot-grid,
  .expression-grid,
  .story-timeline,
  .buy-grid,
  .game-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-banner {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 980px) {
  .product-grid,
  .feature-grid-3,
  .shot-grid,
  .expression-grid,
  .buy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
