body.splash-locked { overflow: hidden; }

/* 呱小蛙游乐场 · 首页外壳（Playfull 风格信息架构，独立于旧版 SPA） */
:root {
  --bg: #071225;
  --bg-2: #0b1933;
  --panel: rgba(16, 31, 61, 0.78);
  --panel-strong: #102247;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7fbff;
  --muted: #aab9d4;
  --blue: #56a7ff;
  --cyan: #63e7ff;
  --lime: #b7f06c;
  --yellow: #ffd66d;
  --pink: #ff83c8;
  --purple: #9a84ff;
  --danger: #ff796f;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --container: min(1180px, calc(100% - 40px));
  --font: "Inter", ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  overflow-x: clip;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(86, 167, 255, 0.20), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(154, 132, 255, 0.16), transparent 25%),
    linear-gradient(180deg, #071225 0%, #07162b 45%, #081126 100%);
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a[data-go] { cursor: pointer; }
button { font: inherit; cursor: pointer; }
img { display: block; }

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-glow::before,
.page-glow::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.13;
}
.page-glow::before { background: var(--cyan); left: -220px; top: 36%; }
.page-glow::after { background: var(--pink); right: -220px; top: 60%; }

.container { width: var(--container); margin-inline: auto; }
main { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 18, 37, 0.80);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  white-space: nowrap;
}
.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(183, 240, 108, 0.95), rgba(74, 197, 104, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px rgba(84, 208, 112, 0.22);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-actions > .btn.ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

.notify-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  flex: 0 0 42px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.notify-bell:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(99, 231, 255, 0.45); }
.notify-bell:active { transform: translateY(0); }
.notify-bell:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6b7a, #ef4d5c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 77, 92, 0.45);
}
.notify-badge[hidden] { display: none; }

.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(183, 240, 108, 0.35);
  border-radius: 999px;
  background: rgba(183, 240, 108, 0.10);
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(145deg, #4fd3ff, #2f8cff);
  color: #04101f;
  box-shadow: 0 14px 34px rgba(86, 167, 255, 0.32);
}
.btn.primary:hover { box-shadow: 0 18px 42px rgba(86, 167, 255, 0.42); }
.btn.primary:active {
  background: linear-gradient(145deg, #3fc2f0, #2379e8);
  box-shadow: 0 8px 20px rgba(86, 167, 255, 0.30);
  transform: translateY(0);
}
.btn.primary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.account-login .btn.primary {
  background: linear-gradient(145deg, #4fd3ff, #2f8cff);
  color: #04101f;
  min-width: 200px;
}
.account-login .btn.primary:hover {
  box-shadow: 0 18px 42px rgba(86, 167, 255, 0.42);
}
.account-login .btn.primary:active {
  background: linear-gradient(145deg, #3fc2f0, #2379e8);
  box-shadow: 0 8px 20px rgba(86, 167, 255, 0.30);
  transform: translateY(0);
}
.account-login .btn.primary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.ghost:active { background: rgba(255, 255, 255, 0.18); }
.btn.ghost:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
}
.hero-copy {
  position: relative;
  z-index: 3;
}
.hero-kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(183, 240, 108, 0.12);
  border: 1px solid rgba(183, 240, 108, 0.30);
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
}
.hero-sub {
  margin: 18px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}
.hero-sub,
.page-title p,
.shop-group-heading p {
  text-wrap: pretty;
}
.hero-actions {
  position: relative;
  z-index: 4;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-actions .btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.hero-actions .hero-island-btn {
  border-color: #b7f06c;
  background: linear-gradient(145deg, #d8ff8f, #8ee15f);
  color: #102414;
  box-shadow: 0 14px 34px rgba(183, 240, 108, 0.30);
}
.hero-actions .hero-game-btn {
  border-color: #4fd3ff;
  background: linear-gradient(145deg, #63e7ff, #2f8cff);
  color: #04101f;
  box-shadow: 0 14px 34px rgba(86, 167, 255, 0.34);
}
.hero-actions .hero-shop-btn {
  border-color: #ffe08a;
  background: linear-gradient(145deg, #ffe27f, #ffad42);
  color: #3f2500;
  box-shadow: 0 14px 34px rgba(255, 173, 66, 0.28);
}
.hero-actions .hero-game-btn:hover {
  box-shadow: 0 18px 42px rgba(86, 167, 255, 0.44);
}
.hero-actions .hero-island-btn:hover {
  box-shadow: 0 18px 42px rgba(183, 240, 108, 0.40);
}
.hero-actions .hero-shop-btn:hover {
  background: linear-gradient(145deg, #ffea9c, #ffb955);
  box-shadow: 0 18px 42px rgba(255, 173, 66, 0.38);
}
.hero-action-hint {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.hero-art {
  position: relative;
  z-index: 1;
  pointer-events: none;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}
.hero-orb-a {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 34% 30%, rgba(99, 231, 255, 0.55), rgba(47, 140, 255, 0.18) 60%, transparent 72%);
  animation: floatA 7s ease-in-out infinite;
}
.hero-orb-b {
  width: 190px;
  height: 190px;
  right: 4%;
  bottom: 8%;
  background: radial-gradient(circle at 40% 35%, rgba(183, 240, 108, 0.5), rgba(47, 140, 255, 0.12) 62%, transparent 74%);
  animation: floatB 9s ease-in-out infinite;
}
.hero-frog {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(99, 231, 255, 0.30));
  animation: floatFrog 6s ease-in-out infinite;
}
.hero-star {
  position: absolute;
  z-index: 2;
  color: var(--yellow);
  opacity: 0.9;
}
.hero-star-1 { top: 12%; left: 18%; font-size: 26px; animation: twinkle 3.2s ease-in-out infinite; }
.hero-star-2 { top: 24%; right: 12%; font-size: 20px; animation: twinkle 3.8s ease-in-out 0.6s infinite; }
.hero-star-3 { bottom: 18%; left: 10%; font-size: 22px; animation: twinkle 4.2s ease-in-out 1.1s infinite; }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes floatFrog { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 96px; }
.section-head { margin-bottom: 26px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 900;
}
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Steps ---------- */
.steps { padding: 8px 0 72px; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(86, 167, 255, 0.18);
  color: var(--cyan);
  font-weight: 900;
  font-size: 15px;
}
.step-icon { font-size: 42px; display: block; margin-bottom: 10px; }
.step-card h3 { margin: 0 0 8px; font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Featured games ---------- */
.featured, .rewards, .missions { padding: 72px 0; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.game-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 26%, rgba(99, 231, 255, 0.32), transparent 58%),
    linear-gradient(150deg, #123052, #0c2040);
  display: grid;
  place-items: center;
  font-size: 52px;
}
.game-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 37, 0.92) 58%);
}
.game-card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(183, 240, 108, 0.14);
  border: 1px solid rgba(183, 240, 108, 0.32);
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 800;
}
.game-type {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.game-card:hover .game-cover { transform: scale(1.02); }
.game-cover { transition: transform 0.3s ease; }

/* ---------- Learning roadmap ---------- */
.learning { padding: 72px 0; }
.road-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.road-card {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.road-level {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(99, 231, 255, 0.9), rgba(86, 167, 255, 0.75));
  color: #04101f;
  font-weight: 900;
  font-size: 15px;
}
.road-card:nth-child(2) .road-level { background: linear-gradient(145deg, rgba(183, 240, 108, 0.95), rgba(74, 197, 104, 0.85)); }
.road-card:nth-child(3) .road-level { background: linear-gradient(145deg, rgba(255, 214, 109, 0.95), rgba(255, 150, 60, 0.85)); }
.road-card:nth-child(4) .road-level { background: linear-gradient(145deg, rgba(255, 131, 200, 0.95), rgba(154, 132, 255, 0.85)); }
.road-card h3 { margin: 0 0 6px; font-size: 18px; }
.road-card p { margin: 0; color: var(--muted); font-size: 14px; }
.learning-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Rewards ---------- */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.reward-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}
.reward-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 214, 109, 0.30), transparent 58%),
    linear-gradient(150deg, #18315a, #0d1f3d);
  display: grid;
  place-items: center;
  font-size: 48px;
}
.cover-fallback {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.reward-cover.image-error {
  box-shadow: inset 0 0 0 1px rgba(255, 214, 109, 0.18);
}
.reward-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 18px;
  min-width: 0;
}
.reward-body h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.42;
  min-height: 2.84em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.reward-pricing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.reward-price { color: var(--yellow); font-size: 16px; font-weight: 900; white-space: nowrap; }
.reward-original-price { color: var(--muted); font-size: 12px; white-space: nowrap; }
.reward-points {
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}
.product-mode-badge {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid rgba(183, 240, 108, 0.34);
  border-radius: 999px;
  background: rgba(183, 240, 108, 0.12);
  color: var(--lime);
  font-size: 11.5px;
  font-weight: 850;
}
.product-mode-badge.affiliate {
  border-color: rgba(255, 214, 109, 0.38);
  background: rgba(255, 214, 109, 0.13);
  color: var(--yellow);
}
.reward-stock { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.reward-arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 214, 109, 0.14);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}

/* ---------- Missions ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mission-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.mission-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(86, 167, 255, 0.16);
  font-size: 26px;
}
.mission-copy { flex: 1; min-width: 0; }
.mission-copy h3 { margin: 0 0 4px; font-size: 16px; }
.mission-reward { margin: 0; color: var(--lime); font-size: 13px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 88px; }
.cta-inner {
  padding: 56px 32px;
  text-align: center;
  border: 1px solid rgba(99, 231, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(86, 167, 255, 0.24), transparent 62%),
    var(--panel);
  box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.cta p { margin: 0 0 26px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}
.footer-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.footer-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.footer-note { color: var(--muted); font-size: 12.5px; }
.compliance-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.compliance-info[hidden] { display: none; }
.compliance-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  text-align: center;
}
.compliance-sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}
.compliance-item {
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}
.compliance-item:hover { color: var(--text); text-decoration: underline; }
.compliance-gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.compliance-gongan[hidden] { display: none; }
.compliance-gongan-icon {
  width: 18px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

@media (max-width: 520px) {
  .compliance-info { font-size: 11.5px; gap: 7px; }
  .compliance-line { gap: 5px 8px; }
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 17, 38, 0.985);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.32);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  isolation: isolate;
  transform: none;
}
.bottom-nav-item {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 60px;
  display: grid;
  grid-template-rows: 30px 16px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  margin: 0;
  padding: 6px 2px 5px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  transform: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.bottom-nav-icon {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  line-height: 30px;
}
.bottom-nav-label {
  display: block;
  height: 16px;
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: 0;
}
.nav-notify-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d6c;
  box-shadow: 0 0 0 2px rgba(7, 18, 37, 0.9);
}
.nav-notify-dot[hidden] { display: none; }
.bottom-nav-item { position: relative; }
.bottom-nav-item:active { background: rgba(99, 231, 255, 0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .game-grid, .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav .nav-link { padding: 9px 10px; font-size: 14px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner {
    grid-template-columns: auto 1fr;
    min-height: 64px;
    gap: 12px;
  }
  .header-actions { justify-content: flex-end; }
  .page-view .page-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back extra"
      "title title";
    gap: 10px 12px;
    padding: 14px;
  }
  .page-view .page-head .back-btn { grid-area: back; justify-self: start; }
  .page-view .page-head:not(.account-page-head) .page-title {
    grid-area: title;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .page-view .page-head .page-head-note {
    grid-area: extra;
    justify-self: end;
  }
  .hero { padding: 34px 0 42px; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-art { min-height: 170px; }
  .hero-frog { width: 126px; height: 126px; }
  .step-grid, .mission-grid { grid-template-columns: 1fr; }
  .game-grid, .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .road-grid { grid-template-columns: 1fr; }
  .features, .rewards, .missions { padding: 52px 0; }
  .cta-inner { padding: 44px 22px; }
  .site-footer { padding-bottom: 112px; }
  .bottom-nav { display: grid; }
}

@media (max-width: 420px) {
  .game-grid, .reward-grid { grid-template-columns: 1fr; }
  .points-chip { display: none; }
  .brand-name { font-size: 17px; }
  .hero h1 { font-size: 31px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-sub { margin-top: 12px; font-size: 14px; }
  .hero-actions { gap: 8px; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .hero-art { min-height: 140px; }
  .hero-frog { width: 112px; height: 112px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .header-actions { min-width: 0; gap: 6px; }
  #accountBtn { min-height: 40px; padding-inline: 14px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Empty/loading states */
.card-skeleton {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.empty-note {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
}

/* ============================================================
   In-shell views: games / shop / campaigns / account
   ============================================================ */
[hidden] {
  display: none !important;
}

.view { display: none; }
.view.active { display: block; }

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(99, 231, 255, 0.10);
}
.bottom-nav-item.active {
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(99, 231, 255, 0.14), rgba(99, 231, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(99, 231, 255, 0.10);
}

.page-view { padding: 48px 0 84px; }
.page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "back title extra";
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 34, 71, 0.90), rgba(10, 26, 54, 0.78));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}
.back-btn {
  grid-area: back;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 12px 5px 7px;
  border: 1px solid rgba(99, 231, 255, 0.28);
  border-radius: 13px;
  background: rgba(99, 231, 255, 0.08);
  color: #dff8ff;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.back-btn:hover { transform: translateY(-1px); border-color: rgba(99, 231, 255, 0.58); background: rgba(99, 231, 255, 0.14); }
.back-btn:active { transform: translateY(0); }
.back-btn:focus-visible { outline: 3px solid rgba(99, 231, 255, 0.30); outline-offset: 2px; }
.back-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: rgba(99, 231, 255, 0.14);
  color: var(--cyan);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.page-title { grid-area: title; flex: 1; min-width: 0; }
.page-title h2 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.page-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-primary-action { display: none; margin-top: 10px; }
.account-page-head {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title";
  padding-left: 22px;
}
.page-head-note {
  grid-area: extra;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(99, 231, 255, 0.18);
  border-radius: 999px;
  background: rgba(99, 231, 255, 0.08);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* View cards: add action rows */
.game-card, .reward-card { display: flex; flex-direction: column; }
.game-card-actions, .reward-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.game-card-actions .btn, .reward-card-actions .btn {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13.5px;
  border-radius: 12px;
  white-space: nowrap;
  word-break: keep-all;
}
.affiliate-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.shop-group-heading {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(99, 231, 255, 0.14);
  border-radius: 18px;
  background: rgba(11, 29, 58, 0.72);
}
.shop-group-heading:first-child { margin-top: 0; }
.shop-group-heading h3 { margin: 0 0 5px; font-size: 20px; }
.shop-group-heading p { margin: 0; color: var(--muted); font-size: 13.5px; }
.view-card-title {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Campaigns */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.campaign-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.campaign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.campaign-type {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(86, 167, 255, 0.16);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 800;
}
.campaign-status {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--yellow);
}
.campaign-card h3 { margin: 0; font-size: 17px; }
.campaign-time { margin: 0; color: var(--muted); font-size: 12.5px; }
.campaign-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.campaign-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.campaign-progress-label { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.campaign-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.campaign-reward span { color: var(--muted); font-size: 13px; }
.campaign-reward strong { color: var(--lime); font-size: 16px; }
.campaign-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.campaign-card-actions .btn { min-height: 40px; font-size: 13.5px; border-radius: 12px; }

/* Account */
.account-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.account-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.account-balance-label { color: var(--muted); font-size: 14px; }
.account-balance-value { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; color: var(--lime); }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.account-stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.account-stat span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.account-stat strong { font-size: 22px; }
.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.account-login {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
}
.account-login h3 { margin: 0 0 8px; font-size: 22px; }
.account-login p { color: var(--muted); margin: 0 0 20px; }

/* Current account dashboard */
.account-dashboard { display: grid; gap: 20px; }
.account-loading { display: grid; gap: 18px; }
.account-loading-hero { min-height: 164px; }
.account-loading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-loading-grid .card-skeleton { min-height: 118px; }
.account-profile-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 164px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(99, 231, 255, 0.22);
  border-radius: 26px;
  background: radial-gradient(circle at 4% 10%, rgba(99, 231, 255, 0.18), transparent 34%), radial-gradient(circle at 92% 10%, rgba(183, 240, 108, 0.12), transparent 32%), linear-gradient(140deg, rgba(17, 48, 91, 0.97), rgba(11, 28, 60, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.account-profile-hero::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -80px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(99, 231, 255, 0.05);
  border-radius: 50%;
}
.account-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-avatar {
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid rgba(183, 240, 108, 0.50);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(183, 240, 108, 0.22), rgba(99, 231, 255, 0.18));
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-identity-copy { min-width: 0; }
.account-kicker { display: block; margin-bottom: 5px; color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.account-identity-copy h3 { margin: 0; font-size: clamp(23px, 3vw, 32px); }
.account-identity-copy p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.account-hero-balance { min-width: 144px; padding: 14px 20px; border-inline: 1px solid rgba(255, 255, 255, 0.12); }
.account-hero-balance span, .account-hero-balance small { display: block; color: var(--muted); font-size: 12px; }
.account-hero-balance strong { display: block; margin: 2px 0; color: var(--lime); font-size: 34px; line-height: 1.1; }
.account-hero-actions { display: flex; gap: 8px; }
.account-hero-actions .btn { min-height: 42px; padding-inline: 15px; border-radius: 13px; font-size: 13px; }
.btn.danger-btn { min-height: 42px; padding-inline: 15px; border-color: rgba(255, 121, 111, 0.35); background: rgba(255, 121, 111, 0.10); color: #ffaaa3; }
.btn:disabled { opacity: 0.52; cursor: not-allowed; transform: none; box-shadow: none; }
.account-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.account-metric-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(16, 35, 72, 0.76);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.account-metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cyan); }
.account-metric-card.tone-lime::before { background: var(--lime); }
.account-metric-card.tone-blue::before { background: var(--blue); }
.account-metric-card.tone-purple::before { background: #b18cff; }
.account-metric-card.tone-gold::before { background: var(--yellow); }
.account-metric-icon { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 20px; }
.account-metric-copy { min-width: 0; }
.account-metric-copy > span, .account-metric-copy small { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.account-metric-copy strong { display: block; margin: 1px 0; color: #fff; font-size: 22px; }
.account-workspace { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.82fr); grid-template-areas: "main side"; align-items: start; gap: 18px; }
.account-main-column, .account-side-column { display: grid; gap: 18px; }
.account-main-column { grid-area: main; }
.account-side-column { grid-area: side; }
.account-module {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(16, 31, 61, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.account-module-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-module-head h3 { margin: 0; color: #fff; font-size: 17px; }
.account-notifications {
  border-color: rgba(99, 231, 255, 0.22);
}
.account-notifications.has-unread {
  border-color: rgba(255, 109, 122, 0.45);
}
.account-list-row.unread {
  background: rgba(99, 231, 255, 0.08);
}
.account-list-row.unread .account-row-result strong {
  color: #ff8b96;
}
.account-module-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.account-module-head .btn { flex: 0 0 auto; min-height: 36px; padding-inline: 13px; border-radius: 11px; font-size: 12px; }
.account-list { display: grid; }
.account-list-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.account-list-row:first-child { padding-top: 3px; }
.account-list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.account-row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(99, 231, 255, 0.09); font-size: 19px; }
.account-row-copy { min-width: 0; }
.account-row-copy strong, .account-row-copy span, .account-row-result strong, .account-row-result span { display: block; }
.account-row-copy strong { overflow: hidden; color: #fff; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.account-row-copy span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.account-row-result { min-width: 76px; text-align: right; }
.account-row-result strong { font-size: 15px; }
.account-row-result strong.credit { color: var(--lime); }
.account-row-result strong.debit { color: #ffaaa3; }
.account-row-result strong.neutral { color: var(--muted); }
.account-row-result span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-list-empty { padding: 22px 12px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.account-reward-copy, .account-invite-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-reward-copy strong, .account-invite-code strong { color: #fff; font-size: 15px; }
.account-reward-copy span, .account-invite-code span { color: var(--muted); font-size: 12px; }
.account-progress-track { height: 9px; margin: 14px 0 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.10); }
.account-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--cyan)); box-shadow: 0 0 18px rgba(183, 240, 108, 0.40); }
.account-progress-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.account-reward-goal > .btn { width: 100%; min-height: 40px; border-radius: 12px; font-size: 13px; }
.account-invite-code { padding: 13px 14px; border: 1px dashed rgba(99, 231, 255, 0.26); border-radius: 14px; background: rgba(99, 231, 255, 0.06); }
.account-invite-code strong { color: var(--cyan); font-size: 18px; letter-spacing: 0.08em; }
.account-invite-card { background: linear-gradient(145deg, rgba(16, 31, 61, 0.86), rgba(13, 42, 75, 0.78)); }
.account-mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.account-mini-stats > div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.account-mini-stats span, .account-mini-stats strong { display: block; }
.account-mini-stats span { color: var(--muted); font-size: 11px; }
.account-mini-stats strong { margin-top: 3px; color: #fff; font-size: 14px; }
.account-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-action-grid .btn { min-height: 40px; padding-inline: 10px; border-radius: 12px; font-size: 12px; }
.account-task-list { display: grid; }
.account-task-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.account-task-row:last-child { padding-bottom: 0; border-bottom: 0; }
.account-task-icon { font-size: 19px; }
.account-task-copy { min-width: 0; }
.account-task-copy strong, .account-task-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-task-copy strong { color: #fff; font-size: 13px; }
.account-task-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.account-task-row .btn { min-height: 34px; padding-inline: 10px; border-radius: 10px; font-size: 11px; }
.account-profile-editor { padding: 0; overflow: hidden; }
.account-profile-editor > summary { padding: 18px 20px; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; list-style-position: inside; }
.account-profile-editor[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.account-editor-body { display: grid; gap: 12px; padding: 18px 20px 20px; }
.account-editor-help { margin: -2px 0 0; color: var(--muted); font-size: 11px; }
.account-error { max-width: 520px; margin-inline: auto; }
.account-error .btn { min-width: 150px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(16, 34, 71, 0.96);
  border: 1px solid rgba(99, 231, 255, 0.35);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(255, 121, 111, 0.5); }

/* Dialog */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 24, 0.72);
  backdrop-filter: blur(6px);
}
.dialog {
  position: relative;
  width: min(92vw, 480px);
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}
.dialog h3 { margin: 0 0 12px; font-size: 20px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dialog-body { color: var(--muted); font-size: 14px; }
.dialog-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.10);
}
.dialog-fact:last-child { border-bottom: 0; }
.dialog-fact span { color: var(--muted); }
.dialog-fact strong { color: var(--text); }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions .btn { flex: 1; }

@media (max-width: 1024px) {
  .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-profile-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .account-hero-actions { grid-column: 1 / -1; }
  .account-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .account-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-profile-editor { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page-view { padding: 20px 0 116px; }
  .page-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 18px;
  }
  .page-head .page-head-note {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-page-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 16px;
  }
  .back-btn { min-height: 40px; padding: 5px 11px 5px 6px; }
  .page-title h2 { font-size: 24px; }
  .page-title p { font-size: 12.5px; line-height: 1.4; }
  .campaign-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr; }
  .account-dashboard { gap: 14px; }
  .account-loading-grid { grid-template-columns: 1fr; }
  .account-profile-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }
  .account-avatar { flex-basis: 58px; width: 58px; height: 58px; border-radius: 18px; font-size: 24px; }
  .account-identity { gap: 12px; }
  .account-identity-copy h3 { font-size: 21px; }
  .account-identity-copy p { font-size: 11px; }
  .account-hero-balance { min-width: 96px; padding: 8px 0 8px 14px; border-inline: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .account-hero-balance strong { font-size: 27px; }
  .account-hero-balance small { display: none; }
  .account-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .account-hero-actions .btn { width: 100%; }
  .account-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .account-metric-card { gap: 9px; padding: 13px 11px; border-radius: 16px; }
  .account-metric-card:last-child { grid-column: 1 / -1; }
  .account-metric-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 17px; }
  .account-metric-copy strong { font-size: 19px; }
  .account-workspace, .account-main-column, .account-side-column { gap: 14px; }
  .account-side-column { grid-template-columns: minmax(0, 1fr); }
  .account-profile-editor { grid-column: auto; }
  .account-module { padding: 16px; border-radius: 18px; }
  .account-module-head { margin-bottom: 12px; }
  .account-module-head h3 { font-size: 16px; }
  .account-list-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding-block: 11px; }
  .account-row-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .account-row-result { min-width: 64px; }
  .account-profile-editor { padding: 0; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .campaign-grid { grid-template-columns: 1fr; }
  .page-head { gap: 10px; padding: 11px; }
  .back-btn { min-height: 38px; padding: 4px 10px 4px 5px; font-size: 12px; }
  .back-icon { width: 27px; height: 27px; }
  .page-title h2 { font-size: 22px; }
  .page-title p { margin-top: 2px; }
  .bottom-nav { padding-inline: 5px; }
  .bottom-nav-icon { font-size: 24px; }
  .bottom-nav-label { font-size: 11px; }
  .account-profile-hero { grid-template-columns: minmax(0, 1fr); }
  .account-hero-balance { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: space-between; width: 100%; padding: 11px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.10); }
  .account-hero-balance strong { justify-self: end; }
  .account-row-copy span { max-width: 170px; }
  .account-action-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .points-chip { display: none; }
  .brand-name { font-size: 17px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .reward-card-actions {
    grid-template-columns: minmax(44px, 0.8fr) minmax(0, 1.2fr);
    gap: 6px;
    padding-inline: 10px;
  }
  .reward-card-actions .btn {
    padding-inline: 4px;
    font-size: 12px;
  }
}

/* ---------- Login panel ---------- */
.account-login.login-panel {
  max-width: 460px;
  margin-inline: auto;
  border: 1px solid rgba(99, 231, 255, 0.30);
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 231, 255, 0.15), transparent 34%),
    linear-gradient(155deg, #102b55, #0b1b39 62%, #101d3d);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.account-login.login-panel h3 { color: #ffffff; }
.login-tabs {
  display: flex;
  gap: 6px;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}
.login-tab {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.login-tab.active {
  background: rgba(99, 231, 255, 0.16);
  color: var(--cyan);
}
.login-fields {
  display: grid;
  gap: 12px;
  text-align: left;
}
.login-field { display: grid; gap: 6px; text-align: left; }
.login-field span { color: var(--muted); font-size: 13px; font-weight: 700; }
.login-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.login-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(99, 231, 255, 0.18); }
.login-pane-title { margin: 0 0 4px; color: #fff; font-size: 17px; }
.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
}
.password-field {
  position: relative;
}
.login-link {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.login-link:hover { color: var(--cyan); text-decoration: underline; }
.password-field .login-link {
  position: absolute;
  right: 0;
  bottom: 10px;
  margin: 0;
}
.password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.password-field .login-link {
  position: static;
  margin: 0;
}
.code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.code-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.code-row button,
.code-row .btn.ghost,
.login-pane .code-row .btn.ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
}
.login-method-toggle { width: 100%; text-align: center; }
.login-pane .btn.primary { width: 100%; }
.login-pane .btn.ghost { width: 100%; }
.wechat-btn {
  margin-top: 14px;
  width: 100%;
  background: rgba(86, 167, 255, 0.14);
  border: 1px solid rgba(86, 167, 255, 0.35);
  color: var(--blue);
}
.wechat-btn:hover { background: rgba(86, 167, 255, 0.24); }
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
  .account-login.login-panel { padding: 28px 16px; border-radius: 20px; }
  .login-tabs { width: 100%; }
  .login-tab { flex: 1 1 0; padding-inline: 8px; font-size: 13px; }
}

/* ---------- 英语岛入口 ---------- */
.learning-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:26px;padding:20px 22px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(135deg,rgba(183,240,108,.1),rgba(99,231,255,.06))}
.learning-cta-copy{min-width:0}
.learning-cta-copy strong{display:block;font-size:16px;color:#fff}
.learning-cta-copy span{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.learning-cta-progress{white-space:nowrap;color:var(--cyan);font-size:13px;font-weight:800}
.learning-cta-btn{flex:0 0 auto}
@media(max-width:760px){.learning-cta{flex-wrap:wrap}.learning-cta-progress{order:3;width:100%}.learning-cta-btn{width:100%}}

/* ---------- Mobile first-screen actions ---------- */
@media (max-width: 760px) {
  .hero { padding: 24px 0 26px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-art { display: none; }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .hero-actions .hero-island-btn {
    grid-column: 1 / -1;
    min-height: 56px;
    font-size: 17px;
  }
  .hero-action-hint { display: block; }
  .page-primary-action {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    padding-inline: 16px;
  }
}

@media (max-width: 420px) {
  .hero-actions { gap: 8px; margin-top: 18px; }
}
