:root {
  --pink: #ff4d8d;
  --pink-deep: #e61e6e;
  --purple: #6b2bd9;
  --violet: #8a3cff;
  --gold: #ffc107;
  --cream: #fff6fb;
  --ink: #2a1240;
  --muted: #7a5a8c;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(107, 43, 217, 0.16);
  --radius: 22px;
  --max: 1200px;
  --pad: clamp(16px, 3.5vw, 28px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(255, 77, 141, 0.28), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(138, 60, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #fff8fc 0%, #f3e8ff 40%, #ffe9f4 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 252, 0.82);
  border-bottom: 1px solid rgba(255, 77, 141, 0.12);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pink-deep);
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(255, 77, 141, 0.28);
  border: 2px solid #fff;
}
.brand span { color: var(--pink-deep); }

#icons-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.ui-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: visible;
}
.ui-icon-sm { width: 20px; height: 20px; }
.ui-icon-md { width: 24px; height: 24px; }
.ui-icon-lg { width: 36px; height: 36px; }
.ui-icon-xl { width: 52px; height: 52px; }
.product-icon {
  width: 88px;
  height: 88px;
  margin: 6px auto;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff7fb, #f3e8ff);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 141, 0.08);
}
.product-icon .ui-icon { width: 56px; height: 56px; }
.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
  order: 3;
  width: 100%;
}
.nav-links a {
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.section[id] {
  scroll-margin-top: 84px;
}
.nav-links a.active,
.nav-links a:hover {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.12);
}
.coin-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffe082, #ffc107);
  color: #5a3b00;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.35);
}
.coin-chip .ui-icon { filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.cart-btn {
  position: relative;
  border: 0;
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--pink-deep);
}
.cart-btn .ui-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}
.hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}
.hero-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 520px; }
.kicker {
  display: inline-block;
  background: rgba(255, 77, 141, 0.12);
  color: var(--pink-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #ff6ea5, #e61e6e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(230, 30, 110, 0.32);
}
.btn-ghost {
  background: #fff;
  color: var(--purple);
  box-shadow: var(--shadow);
}
.hero-art {
  position: relative;
  min-height: 340px;
}
.hero-frame {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  background: #2a1240;
}
.hero-frame img { width: 100%; height: auto; }
.float-logo {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: min(360px, 80%);
  filter: drop-shadow(0 10px 18px rgba(42, 18, 64, 0.35));
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--pad);
  width: 100%;
}
.section h2 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 32px); }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 640px; }
.grid-3, .grid-4 {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.page-home .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(107, 43, 217, 0.18);
}
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff0f7, #ffe0ef 45%, #f0e4ff);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 141, 0.1);
}
.icon-bubble .ui-icon { width: 34px; height: 34px; }
.icon-bubble.tone-purple { background: linear-gradient(160deg, #f5edff, #e8d8ff); }
.icon-bubble.tone-gold { background: linear-gradient(160deg, #fff7df, #ffe8a8); }
.icon-bubble.tone-mint { background: linear-gradient(160deg, #eafff4, #c9ffe4); }

.how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.how li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.step {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.store-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 0;
  background: #fff;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.chip.active {
  background: var(--pink);
  color: #fff;
}
.search {
  margin-left: auto;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 220px;
  box-shadow: var(--shadow);
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.product {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product .badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  background: #f3e8ff;
  color: var(--purple);
  padding: 3px 8px;
  border-radius: 999px;
}
.price {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-deep);
}
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.owned { color: #1b8a4a; font-weight: 800; }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(42, 18, 64, 0.45);
  display: none;
  z-index: 50;
}
.drawer-mask.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff8fc;
  z-index: 51;
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(42, 18, 64, 0.18);
}
.drawer.open { transform: translateX(0); }
.drawer header, .drawer footer { padding: 16px 18px; }
.drawer header { display: flex; justify-content: space-between; align-items: center; }
.cart-list { flex: 1; overflow: auto; padding: 0 18px 18px; display: grid; gap: 10px; }
.cart-item {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.qty {
  display: flex;
  gap: 8px;
  align-items: center;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #f3e8ff;
  cursor: pointer;
  font-weight: 800;
}
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 18, 64, 0.5);
  display: none;
  place-items: center;
  z-index: 70;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; margin: 10px 0; }
.field input, .field select {
  border: 1px solid #f0d6ea;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

.play-shell {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #11051c;
  overflow: hidden;
  position: relative;
  width: 100%;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}
.play-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(17, 5, 28, 0.28), rgba(17, 5, 28, 0.45)),
    url("../game/images/gamebackground-sheet0.png") center / cover no-repeat,
    #11051c;
}
.play-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  border: 0;
  display: block;
  background: transparent;
}
.play-shell.is-playing {
  background: #2b0a3d;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
.play-shell.is-playing .play-frame {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 5, 28, 0.28);
}
.auth-gate[hidden] { display: none !important; }
.auth-card {
  width: min(420px, 100%);
  background: #fff8fc;
  border-radius: 24px;
  padding: 24px 22px 18px;
  box-shadow: 0 20px 50px rgba(42, 18, 64, 0.35);
  color: var(--ink);
}
.auth-logo {
  width: min(260px, 80%);
  margin: 0 auto 10px;
  display: block;
}
.auth-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.55rem;
}
.auth-lead {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  background: #f3e8ff;
  color: var(--muted);
}
.auth-tab.is-on {
  background: linear-gradient(180deg, #ff6ea5, #e61e6e);
  color: #fff;
}
.auth-error {
  margin: 0 0 10px;
  min-height: 1.4em;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.auth-submit { width: 100%; margin-top: 4px; }
.auth-footer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}
.auth-footer a { color: var(--pink-deep); font-weight: 700; }

.play-topbar {
  flex: 0 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(17, 5, 28, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 2;
}
.play-topbar[hidden] { display: none !important; }
.play-user {
  font-size: 13px;
  color: #f8d7ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}
.play-logout {
  padding: 7px 14px;
  font-size: 13px;
}

.inventory-list { display: grid; gap: 10px; }
.inv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  gap: 10px;
}
.inv-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.site-footer {
  max-width: var(--max);
  margin: 20px auto 40px;
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
}
.footer-company {
  margin-bottom: 16px;
  line-height: 1.7;
}
.footer-company strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}
.footer-company a { color: var(--pink-deep); font-weight: 700; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 14px;
}
.footer-links a:hover { text-decoration: underline; }
.site-footer .copyright {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
body.is-policy {
  background: linear-gradient(180deg, #fff8fc 0%, #f7eefc 100%);
}
.policy-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 248, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 77, 141, 0.12);
}
.policy-back,
.policy-brand {
  font-weight: 800;
  color: var(--pink-deep);
}
.policy-brand { color: var(--ink); }
.policy-main {
  width: min(760px, 94vw);
  margin: 0 auto;
  padding: 36px 0 64px;
}
.policy-main h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}
.policy-meta {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
.policy-main h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.15rem;
}
.policy-main h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.02rem;
}
.policy-main p,
.policy-main li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}
.policy-main p { margin: 0 0 0.85rem; }
.policy-main ol,
.policy-main ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.policy-main li { margin-bottom: 0.45rem; }
.policy-main strong { color: var(--ink); }
.policy-main a {
  color: var(--pink-deep);
  font-weight: 700;
}
.policy-operator {
  margin-top: 2rem;
  padding: 16px 18px;
  border-left: 4px solid var(--pink);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--shadow);
}
.policy-operator h3 { margin: 0 0 0.5rem; color: var(--ink); }
.policy-operator p { margin: 0.2rem 0; font-size: 0.92rem; }
.policy-footer {
  max-width: min(760px, 94vw);
  margin-top: 0;
}

.recharge-page {
  width: min(900px, 94vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}
.recharge-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.section-kicker {
  display: inline-block;
  margin: 0;
  background: rgba(255, 77, 141, 0.12);
  color: var(--pink-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.recharge-lead {
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}
.recharge-lead a { color: var(--pink-deep); font-weight: 700; }
.coin-balance {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink);
}
.recharge-panel {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.recharge-panel h2 { margin: 0 0 12px; font-size: 1.2rem; }
.recharge-panel ul { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.7; }
.recharge-panel li { margin-bottom: 8px; }
.recharge-panel a { color: var(--pink-deep); font-weight: 700; }
.recharge-panel--note {
  background: linear-gradient(160deg, #fff7df, #ffe8a8);
  color: #5a3b00;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.pack-card {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(160deg, #fff7fb, #f3e8ff);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.pack-card:hover { transform: translateY(-2px); }
.pack-card.is-selected {
  border-color: var(--pink);
  background: #fff;
}
.pack-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.pack-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 40px; }
.pack-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.recharge-form { display: grid; gap: 14px; }
.recharge-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-label { font-weight: 700; color: var(--ink); }
.field-label em { color: var(--pink-deep); font-style: normal; }
.field--pay { border: 0; margin: 0; padding: 0; }
.pay-options { display: grid; gap: 10px; margin-top: 8px; }
.pay-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff6fb;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.pay-option small { display: block; color: var(--muted); margin-top: 2px; }
.field--check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.recharge-submit { width: fit-content; }
.recharge-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.recharge-cta-note { margin: 0; color: var(--muted); font-size: 13px; }
.recharge-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #f3e8ff;
  color: var(--ink);
  line-height: 1.65;
}
.recharge-result h3 { margin: 0 0 8px; }
.recharge-result a { color: var(--pink-deep); font-weight: 700; }

@media (max-width: 720px) {
  .recharge-fields-row { grid-template-columns: 1fr; }
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.shot {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #2a1240;
}
.page-home .shot img {
  height: clamp(200px, 28vw, 280px);
  image-rendering: auto;
}
.shot figcaption {
  padding: 12px 16px;
  font-weight: 700;
  color: var(--muted);
}
.contact-form { margin-top: 8px; }

@media (min-width: 981px) {
  .nav-links {
    order: 0;
    width: auto;
    margin-left: auto;
    margin-right: 0;
  }
  .nav-actions { margin-left: 0; }
}

@media (max-width: 980px) {
  .shot-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; order: 2; }
  .nav-actions { order: 2; margin-left: 0; }
  .brand { order: 1; margin-right: auto; }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 4px;
    background: rgba(255, 248, 252, 0.96);
    border-radius: 18px;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(255, 77, 141, 0.08);
  }
  .section[id] { scroll-margin-top: 72px; }
  .hero {
    padding-top: 24px;
    gap: 20px;
  }
  .hero-art { min-height: 0; }
  .float-logo { width: min(280px, 72%); bottom: -12px; }
  .section { padding: 40px 16px; }
  .section h2 { font-size: 26px; }
  .store-toolbar { align-items: stretch; }
  .search { margin-left: 0; width: 100%; min-width: 0; }
  .drawer { width: min(100%, 420px); }
  .policy-main { width: min(760px, 92vw); padding: 24px 0 48px; }
  .policy-main h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .recharge-page { width: min(900px, 92vw); padding: 20px 0 40px; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 20px 16px 16px; }
}

@media (max-width: 699px) {
  .hero:not(.hero--home),
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 12px; gap: 8px; }
  .brand span { font-size: 15px; }
  .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .coin-chip { padding: 6px 10px; font-size: 13px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-copy p { font-size: 15px; }
  .cta-row .btn { flex: 1 1 auto; min-width: 140px; }
  .hero-frame { border-width: 4px; border-radius: 20px; }
  .shot img { height: 180px; }
  .product-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 10px 14px; }
  .card { padding: 16px; }
}

/* Landscape phones / short viewports */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 16px 16px 10px;
    gap: 16px;
    align-items: center;
  }
  .hero-copy h1 { font-size: clamp(22px, 4.5vw, 32px); margin: 4px 0 8px; }
  .hero-copy p { font-size: 14px; line-height: 1.5; margin: 0; }
  .cta-row { margin-top: 12px; }
  .btn { padding: 9px 16px; font-size: 13px; }
  .hero-art { min-height: 0; }
  .float-logo { width: min(200px, 50%); bottom: -8px; }
  .section { padding: 28px 16px; }
  .section h2 { font-size: 22px; }
  .nav-links {
    max-height: calc(100dvh - 70px);
    overflow: auto;
  }
  .auth-card { max-height: calc(100dvh - 24px); overflow: auto; }
  .policy-main { padding-top: 16px; }
}

@media (min-width: 641px) and (max-width: 980px) and (orientation: landscape) {
  .hero:not(.hero--home) { grid-template-columns: 1fr 1fr; }
  .hero--home .hero-inner { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) and (orientation: portrait) {
  .hero { grid-template-columns: 1fr; }
}

/* —— Home page polish —— */
.page-home {
  font-family: "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(255, 77, 141, 0.26), transparent 58%),
    radial-gradient(900px 520px at 96% 4%, rgba(255, 193, 7, 0.16), transparent 52%),
    radial-gradient(700px 420px at 50% 30%, rgba(138, 60, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #fff8fc 0%, #fff1f8 38%, #f7eefc 70%, #ffe9f4 100%);
}
.page-home h1,
.page-home h2,
.page-home h3,
.page-home .hero-brand,
.page-home .brand span {
  font-family: "Trebuchet MS", "Gill Sans", "PingFang SC", sans-serif;
  letter-spacing: 0.01em;
}

.hero--home {
  position: relative;
  display: block;
  max-width: none;
  width: 100%;
  min-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
}
.hero--home .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad) clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  width: 100%;
}
.hero--home .hero-brand {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--pink-deep);
  line-height: 1.15;
}
.hero--home .hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  color: var(--ink);
}
.hero--home .hero-copy > p {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 34rem;
}
.hero--home .cta-row { margin-top: clamp(18px, 3vw, 28px); }
.hero--home .hero-art {
  --tilt-x: 0px;
  --tilt-y: 0px;
  min-height: 0;
  padding-bottom: 36px;
  transition: transform .35s var(--ease-out);
  transform: translate3d(var(--tilt-x), var(--tilt-y), 0);
}
.hero--home .hero-frame {
  border-radius: clamp(18px, 2.5vw, 28px);
  border-width: clamp(3px, 0.5vw, 6px);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, rgba(42, 18, 64, 0.15), rgba(42, 18, 64, 0.35)),
    #2a1240;
}
.hero--home .hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .8s var(--ease-out);
}
.hero--home .hero-art:hover .hero-frame img {
  transform: scale(1.06);
}
.hero--home .float-logo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(340px, 78%);
  display: block;
  transform: translateX(-50%);
  animation: logo-float 4.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(42, 18, 64, 0.35));
}
.hero--home .float-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-ambient .orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: orb-drift 14s ease-in-out infinite;
  contain: strict;
}
.page-home .section-defer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.orb-a {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  left: -8%;
  top: 8%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 110, 165, 0.55), transparent 68%);
}
.orb-b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  right: -6%;
  top: 18%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.4), transparent 70%);
  animation-delay: -4s;
}
.orb-c {
  width: min(30vw, 240px);
  height: min(30vw, 240px);
  left: 38%;
  bottom: -4%;
  background: radial-gradient(circle at 40% 40%, rgba(138, 60, 255, 0.28), transparent 70%);
  animation-delay: -7s;
}
.hero-ambient .spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 77, 141, 0.2);
  animation: spark-twinkle 2.8s ease-in-out infinite;
}
.spark.s1 { left: 14%; top: 22%; animation-delay: 0s; }
.spark.s2 { left: 72%; top: 16%; width: 6px; height: 6px; animation-delay: .7s; }
.spark.s3 { left: 58%; top: 68%; width: 7px; height: 7px; animation-delay: 1.3s; }
.spark.s4 { left: 28%; top: 74%; width: 5px; height: 5px; animation-delay: 1.9s; }

.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: btn-shine 3.6s ease-in-out infinite;
}
.page-home .shot {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.page-home .shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(107, 43, 217, 0.16);
}
.page-home .shot img {
  transition: transform .55s var(--ease-out);
}
.page-home .shot:hover img {
  transform: scale(1.04);
}

.reveal-up,
.reveal-in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

@keyframes logo-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.06); }
}
@keyframes spark-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes btn-shine {
  0%, 55%, 100% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .hero--home { min-height: 0; }
  .hero--home .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .hero--home .hero-art { order: -1; max-width: 640px; margin: 0 auto; width: 100%; }
  .hero--home .float-logo { width: min(280px, 70%); }
}

@media (max-width: 860px) {
  .page-home .grid-3 { grid-template-columns: 1fr; }
  .page-home .how ol { gap: 12px; }
}

@media (min-width: 700px) and (max-width: 860px) {
  .page-home .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .grid-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 861px) and (max-width: 980px) {
  .page-home .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .grid-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero--home .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero--home .cta-row .btn { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .hero--home .hero-art { padding-bottom: 28px; }
  .page-home .card:hover { transform: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero--home { min-height: 0; }
  .hero--home .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 16px var(--pad) 28px;
    gap: 16px;
  }
  .hero--home .hero-art { order: 0; padding-bottom: 20px; }
  .hero--home .float-logo { width: min(180px, 48%); }
  .hero-ambient .orb { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home .float-logo,
  .hero-ambient .orb,
  .hero-ambient .spark,
  .btn-glow::after,
  .page-home .card,
  .page-home .shot,
  .page-home .shot img,
  .hero--home .hero-frame img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .hero-ambient .orb-c,
  .hero-ambient .spark { display: none; }
  .hero--home .float-logo { animation-duration: 5.5s; }
}
