/* =========================================================
   DealScope — visual system
   Dark-first gaming catalogue with a light theme option.
   ========================================================= */

:root {
  --bg: #080c11;
  --bg-2: #0b1118;
  --surface: #101822;
  --surface-2: #141f2b;
  --surface-3: #1a2836;
  --line: #223041;
  --line-2: #2e4053;
  --ink: #f2f6f8;
  --ink-2: #c6d1da;
  --muted: #8696a6;
  --lime: #c8f560;
  --lime-ink: #0c1207;
  --green: #7ee787;
  --amber: #ffbf5a;
  --coral: #ff7a7a;
  --blue: #6cb6ff;
  --violet: #b8a1ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Bahnschrift", "Segoe UI", "Inter", system-ui, sans-serif;
  --font-body: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-h: 70px;
}

html[data-theme="light"] {
  --bg: #f3f5ef;
  --bg-2: #e9eee5;
  --surface: #ffffff;
  --surface-2: #f6f8f2;
  --surface-3: #edf2e8;
  --line: #dce3d5;
  --line-2: #c9d4c1;
  --ink: #111a12;
  --ink-2: #34423a;
  --muted: #66766b;
  --lime: #a8e04a;
  --lime-ink: #0c1207;
  --green: #2f7d32;
  --amber: #a86400;
  --coral: #c0392b;
  --blue: #2d6bb3;
  --violet: #6d55b8;
  --shadow: 0 22px 50px rgba(20, 38, 24, 0.14);
  --shadow-sm: 0 8px 22px rgba(20, 38, 24, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(200, 245, 96, 0.10), transparent 60%),
    radial-gradient(700px 420px at -10% 18%, rgba(108, 182, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(168, 224, 74, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 18%, rgba(45, 107, 179, 0.07), transparent 60%),
    var(--bg);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- type ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 245, 96, 0.10);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-sub {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}

.btn-primary:hover {
  background: #d7ff7d;
}

html[data-theme="light"] .btn-primary:hover {
  background: #b8ef5b;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--line-2);
  background: var(--surface-3);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-danger {
  background: rgba(255, 122, 122, 0.10);
  border-color: rgba(255, 122, 122, 0.28);
  color: var(--coral);
}

.btn-sm {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header {
    background: var(--bg);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 0 0 1px rgba(200, 245, 96, 0.22), 0 8px 18px rgba(200, 245, 96, 0.16);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-word span {
  color: var(--lime);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-signin {
  min-height: 38px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.user-chip:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.user-chip-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 36px;
  padding: 48px 0 36px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--ink-2);
  font-size: 13.5px;
}

.footer-small {
  max-width: 360px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col h3 {
  margin-bottom: 4px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.footer-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 150, 166, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 150, 166, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 54px;
  align-items: center;
}

.hero-title {
  max-width: 720px;
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-title .accent {
  color: var(--lime);
}

html[lang="zh-CN"] .hero-title span {
  display: block;
}

.hero-sub {
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 590px;
  margin-top: 28px;
  padding: 7px 7px 7px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-bar .search-icon {
  color: var(--muted);
  flex: 0 0 auto;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar .btn {
  min-height: 38px;
}

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

.hero-stat {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 24, 34, 0.58);
}

html[data-theme="light"] .hero-stat {
  background: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* hero live card */

.hero-live {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}

.hero-live::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(200, 245, 96, 0.35), transparent 40%, rgba(108, 182, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.hero-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(200, 245, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 245, 96, 0); }
}

.hero-live .cover {
  aspect-ratio: 460 / 215;
  border-radius: 14px;
}

.hero-live-info {
  padding-top: 14px;
}

.hero-live-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-live-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.hero-live-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.hero-live-price strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.hero-live-price del {
  color: var(--muted);
  font-size: 13px;
}

.hero-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

/* ---------- covers ---------- */

.cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 22% 18%, var(--c3), transparent 46%),
    linear-gradient(135deg, var(--c1), var(--c2));
  isolation: isolate;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 12, 0.82), transparent 62%);
  z-index: 1;
}

.cover-shape {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  mix-blend-mode: screen;
  z-index: 0;
}

.cover-rings .cover-shape {
  background:
    repeating-radial-gradient(circle at 18% 22%, transparent 0 18px, rgba(255, 255, 255, 0.28) 19px 20px, transparent 21px 36px),
    conic-gradient(from 200deg at 75% 70%, transparent, rgba(255, 255, 255, 0.22), transparent 40%);
}

.cover-grid .cover-shape {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(300px) rotateX(38deg) scale(1.4);
}

.cover-sigil .cover-shape {
  background:
    conic-gradient(from 45deg at 70% 30%, transparent 0 12%, rgba(255, 255, 255, 0.32) 13% 15%, transparent 16% 28%, rgba(255, 255, 255, 0.22) 29% 31%, transparent 32% 100%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.12) 15px 16px);
}

.cover-moon .cover-shape {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.72) 0 6%, transparent 6.5%),
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.18) 0 18%, transparent 18.5%),
    repeating-linear-gradient(-25deg, transparent 0 22px, rgba(255, 255, 255, 0.10) 23px 24px);
}

.cover-orbs .cover-shape {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 8%, transparent 8.5%),
    radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.32) 0 5%, transparent 5.5%),
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.42) 0 11%, transparent 11.5%),
    radial-gradient(circle at 68% 76%, rgba(255, 255, 255, 0.24) 0 4%, transparent 4.5%);
}

.cover-stripes .cover-shape {
  background: repeating-linear-gradient(-38deg, transparent 0 22px, rgba(255, 255, 255, 0.20) 23px 30px);
}

.cover-field .cover-shape {
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.16) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.10) 27px 28px);
}

.cover-clouds .cover-shape {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, 0.30) 0 18%, transparent 19%),
    radial-gradient(ellipse at 62% 46%, rgba(255, 255, 255, 0.22) 0 22%, transparent 23%),
    radial-gradient(ellipse at 86% 74%, rgba(255, 255, 255, 0.18) 0 16%, transparent 17%);
}

.cover-gears .cover-shape {
  background:
    repeating-conic-gradient(from 0deg at 30% 35%, rgba(255, 255, 255, 0.18) 0 8deg, transparent 8deg 22deg),
    repeating-conic-gradient(from 0deg at 76% 70%, rgba(255, 255, 255, 0.14) 0 6deg, transparent 6deg 18deg);
}

.cover-dots .cover-shape {
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 1.2px, transparent 1.2px);
  background-size: 17px 17px;
}

.cover-drill .cover-shape {
  background:
    repeating-linear-gradient(58deg, transparent 0 20px, rgba(255, 255, 255, 0.18) 21px 26px),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.26) 0 10%, transparent 11%);
}

.cover-scan .cover-shape {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.12) 8px 9px),
    linear-gradient(90deg, transparent 0 62%, rgba(255, 255, 255, 0.18) 63% 64%, transparent 65%);
}

.cover-factory .cover-shape {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.13) 18% 20%, transparent 20% 48%, rgba(255, 255, 255, 0.16) 48% 50%, transparent 50% 100%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 255, 255, 0.09) 25px 26px);
}

.cover-planets .cover-shape {
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.42) 0 13%, transparent 13.5%),
    radial-gradient(circle at 70% 66%, rgba(255, 255, 255, 0.22) 0 9%, transparent 9.5%),
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.10) 0 30%, transparent 30.5%);
}

.cover-waves .cover-shape {
  background:
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 28px, rgba(255, 255, 255, 0.16) 29px 31px),
    linear-gradient(to top, rgba(255, 255, 255, 0.14), transparent 50%);
}

.cover-void .cover-shape {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.10) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 45%, transparent 0 32%, rgba(255, 255, 255, 0.22) 33% 34%, transparent 35%),
    radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: auto, auto, 23px 23px;
}

.cover-title {
  position: relative;
  z-index: 2;
  max-width: 85%;
  padding: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.cover-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- deal grid ---------- */

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select {
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.select:focus {
  border-color: var(--lime);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.deal-card .cover {
  border-radius: 0;
}

.deal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.deal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.deal-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.deal-meta {
  color: var(--muted);
  font-size: 11px;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.deal-price {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.deal-was {
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: line-through;
}

.deal-store {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
}

.deal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.deal-low {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
}

.deal-low.is-hit {
  color: var(--lime);
}

.deal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.save-btn:hover,
.save-btn.is-saved {
  border-color: var(--lime);
  color: var(--lime);
}

.deal-card .btn-sm {
  flex: 0 0 auto;
}

/* ---------- homepage discover ---------- */

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discover-panel .panel-body {
  padding-top: 4px;
}

.discover-list {
  display: grid;
}

.discover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.18s ease;
}

.discover-row:last-child {
  border-bottom: 0;
}

.discover-row:hover {
  background: var(--surface-2);
}

.discover-name {
  font-size: 13px;
  font-weight: 600;
}

.discover-meta {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

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

.empty-state {
  padding: 46px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

/* ---------- free strip ---------- */

.free-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.free-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.free-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.free-card .cover {
  aspect-ratio: 1;
  border-radius: 10px;
}

.free-card .cover-title {
  padding: 8px;
  font-size: 11px;
}

.free-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.free-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.free-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 600;
}

.store-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.free-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.countdown {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
}

/* ---------- tracker band ---------- */

.tracker-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(200, 245, 96, 0.14), transparent 60%),
    var(--surface);
}

.tracker-visual {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.chart-legend {
  display: flex;
  gap: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.chart-legend i.alt {
  background: var(--blue);
}

.sparkline {
  width: 100%;
  height: 150px;
}

.sparkline .area {
  fill: url(#trackerGradient);
  opacity: 0.55;
}

.sparkline .line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .dot {
  fill: var(--lime);
}

.sparkline .grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

/* ---------- steps / newsletter ---------- */

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

.step-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.step-card h3 {
  margin: 16px 0 7px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.newsletter p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.newsletter form {
  display: flex;
  gap: 8px;
  width: min(430px, 100%);
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.12);
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field > span {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- game page ---------- */

.game-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 44px 0 38px;
}

.game-cover-wrap {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.game-cover-wrap .cover {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.game-cover-wrap .cover-title {
  font-size: 30px;
  padding: 18px;
}

.game-title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.game-tagline {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.game-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.game-badge.is-lime {
  border-color: rgba(200, 245, 96, 0.35);
  background: rgba(200, 245, 96, 0.10);
  color: var(--lime);
}

.game-best {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.game-best-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.game-best-meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}

.game-best .btn {
  margin-left: auto;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.panel-body {
  padding: 18px 20px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  padding: 0 10px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.price-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.price-table tr:first-child td {
  border-top: 0;
}

.price-table .price {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.price-table .was {
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
}

.price-table .low {
  color: var(--amber);
  font-size: 11px;
}

.price-table .checked {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.store-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.store-name i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--store, var(--lime));
}

.history-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.history-tab {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.history-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.history-chart {
  width: 100%;
  height: 230px;
  margin-top: 4px;
}

.history-chart .area {
  fill: url(#historyGradient);
  opacity: 0.4;
}

.history-chart .line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-chart .axis {
  stroke: var(--line);
  stroke-width: 1;
}

.history-chart .axis-label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.history-chart .history-dot {
  fill: var(--lime);
  stroke: var(--surface);
  stroke-width: 2;
}

.alert-form {
  display: grid;
  gap: 10px;
}

.alert-form .row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.alert-note {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.worth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.worth-metric {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.worth-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.worth-metric span {
  color: var(--muted);
  font-size: 10.5px;
}

.worth-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.verdict-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- free page ---------- */

.page-hero {
  padding: 54px 0 34px;
}

.page-title {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

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

.free-big {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.free-big .cover {
  aspect-ratio: 16 / 9;
}

.free-big-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
}

.free-big-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.free-big-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.free-big-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.timeline-row:first-child {
  border-top: 0;
}

.timeline-date {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.timeline-title {
  font-weight: 600;
}

.timeline-store {
  color: var(--muted);
  font-size: 10.5px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list summary svg {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-list p {
  padding: 0 16px 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- login ---------- */

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 64px clamp(28px, 6vw, 88px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(200, 245, 96, 0.16), transparent 60%),
    radial-gradient(500px 300px at 90% 80%, rgba(108, 182, 255, 0.12), transparent 60%),
    var(--bg-2);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 150, 166, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 150, 166, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.auth-visual-inner {
  position: relative;
  max-width: 520px;
}

.auth-title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.auth-benefit {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.auth-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(200, 245, 96, 0.28);
  border-radius: 8px;
  background: rgba(200, 245, 96, 0.09);
  color: var(--lime);
}

.auth-benefit strong {
  display: block;
  font-size: 12.5px;
}

.auth-benefit span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.auth-float {
  position: relative;
  width: min(330px, 84%);
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.auth-float .cover {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.auth-float-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.auth-float-meta strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 17px;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 22px;
}

.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.auth-card .auth-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.google-btn:hover {
  border-color: var(--lime);
  background: var(--surface-3);
}

.google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form .btn {
  height: 44px;
}

.auth-code-input {
  height: 52px;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
}

.auth-demo-note {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 191, 90, 0.28);
  border-radius: 9px;
  background: rgba(255, 191, 90, 0.08);
  color: var(--amber);
  font-size: 10.5px;
  line-height: 1.5;
}

.auth-demo-note code {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
}

.auth-error {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255, 122, 122, 0.10);
  color: var(--coral);
  font-size: 11.5px;
  line-height: 1.5;
}

.auth-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10.5px;
}

.auth-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.auth-signed {
  display: grid;
  gap: 12px;
}

.auth-signed-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.auth-signed-user .avatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.auth-signed-user strong {
  display: block;
  font-size: 13px;
}

.auth-signed-user span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- modal / drawer ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.68);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.modal-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.account-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.account-row:hover {
  border-color: var(--lime);
}

.account-row .avatar {
  width: 34px;
  height: 34px;
}

.account-row strong {
  display: block;
  font-size: 12.5px;
}

.account-row span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.account-role {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(200, 245, 96, 0.10);
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
}

/* ---------- admin ---------- */

.admin-body {
  background: var(--bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}

.admin-sidebar .brand {
  padding: 4px 8px 18px;
}

.admin-sidebar-label {
  padding: 10px 10px 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 3px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.admin-nav-item:hover {
  background: var(--surface);
  color: var(--ink);
}

.admin-nav-item.is-active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.admin-nav-item.is-active svg {
  color: var(--lime);
}

.admin-nav-item svg {
  color: var(--muted);
  flex: 0 0 auto;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 9px;
}

.admin-user .avatar {
  width: 30px;
  height: 30px;
}

.admin-user strong {
  display: block;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}

.admin-search input {
  width: 100%;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.admin-content {
  max-width: 1320px;
  padding: 26px 26px 60px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.admin-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.stat-card-top svg {
  color: var(--lime);
}

.stat-number {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.activity-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--lime);
}

.activity-row p {
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.activity-row span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding-top: 10px;
}

.bar-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 36px;
  min-height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top, rgba(200, 245, 96, 0.28), var(--lime));
}

.bar-label {
  color: var(--muted);
  font-size: 9px;
}

.bar-value {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

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

.review-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.review-tab {
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.review-tab.is-active {
  background: var(--lime);
  color: var(--lime-ink);
}

.review-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}

.review-search input {
  width: 190px;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.data-table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table .cell-game {
  color: var(--ink);
  font-weight: 600;
}

.data-table .cell-mono {
  font-family: var(--font-mono);
  font-size: 10px;
}

.data-table .cell-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
}

.data-table .cell-old {
  color: var(--muted);
  text-decoration: line-through;
}

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
}

.confidence.high {
  background: rgba(126, 231, 135, 0.12);
  color: var(--green);
}

.confidence.medium {
  background: rgba(255, 191, 90, 0.12);
  color: var(--amber);
}

.confidence.low {
  background: rgba(255, 122, 122, 0.12);
  color: var(--coral);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
}

.status-pill.pending {
  background: rgba(255, 191, 90, 0.12);
  color: var(--amber);
}

.status-pill.approved {
  background: rgba(126, 231, 135, 0.12);
  color: var(--green);
}

.status-pill.rejected {
  background: rgba(255, 122, 122, 0.12);
  color: var(--coral);
}

.row-actions {
  display: flex;
  gap: 5px;
}

.row-check {
  width: 15px;
  height: 15px;
  accent-color: var(--lime);
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

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

.store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--store, var(--lime));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.store-info {
  min-width: 0;
  flex: 1;
}

.store-info strong {
  display: block;
  font-size: 12.5px;
}

.store-info span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 19px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch input:checked + span {
  background: rgba(200, 245, 96, 0.18);
  border-color: var(--lime);
}

.switch input:checked + span::after {
  background: var(--lime);
  transform: translateX(15px);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.form-grid .field.full {
  grid-column: 1 / -1;
}

.toggle-list {
  display: grid;
  gap: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.toggle-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.toggle-row strong {
  display: block;
  font-size: 11.5px;
}

.toggle-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.settings-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.audit-list {
  display: grid;
}

.audit-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}

.audit-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.audit-time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.audit-type {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audit-type.approve {
  color: var(--green);
}

.audit-type.reject {
  color: var(--coral);
}

.audit-type.login {
  color: var(--blue);
}

.audit-type.settings {
  color: var(--amber);
}

/* drawer */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100vh;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 0.24s ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.drawer-foot {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.drawer-detail {
  display: grid;
  gap: 0;
}

.drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.drawer-row span {
  color: var(--muted);
}

.drawer-row strong {
  text-align: right;
}

.drawer-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(3, 6, 9, 0.62);
  backdrop-filter: blur(3px);
}

.drawer-overlay[hidden] {
  display: none;
}

/* toast */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100% - 36px));
}

.toast {
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 0.22s ease both;
}

.toast-success {
  border-color: rgba(126, 231, 135, 0.4);
}

.toast-error {
  border-color: rgba(255, 122, 122, 0.4);
}

.toast.is-out {
  animation: toast-out 0.2s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 34px;
  }

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

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

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

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hero-grid,
  .tracker-band,
  .game-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-live {
    max-width: 520px;
    transform: none;
  }

  .game-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .auth-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 44px 24px;
  }

  .auth-float {
    display: none;
  }

  .auth-main {
    padding: 32px 20px 48px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar .brand {
    padding-bottom: 10px;
  }

  .admin-sidebar-label,
  .admin-sidebar-foot {
    display: none;
  }

  .admin-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-nav-item {
    white-space: nowrap;
    padding: 7px 10px;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .admin-content {
    padding: 20px 16px 50px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 44px 0 38px;
  }

  .hero-title {
    font-size: clamp(38px, 11vw, 54px);
  }

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

  .search-bar {
    flex-wrap: wrap;
  }

  .search-bar .btn {
    width: 100%;
  }

  .deal-grid,
  .free-strip,
  .free-grid,
  .step-grid,
  .store-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .deals-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-right {
    width: 100%;
  }

  .toolbar-right .select {
    flex: 1;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .newsletter form {
    width: 100%;
  }

  .tracker-band {
    padding: 22px;
  }

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

  .game-cover-wrap {
    position: static;
    max-width: 250px;
  }

  .game-cover-wrap .cover {
    aspect-ratio: 3 / 4;
  }

  .game-best {
    flex-wrap: wrap;
  }

  .game-best .btn {
    width: 100%;
    margin-left: 0;
  }

  .price-table {
    min-width: 560px;
  }

  .panel-head {
    flex-direction: column;
  }

  .free-card {
    grid-template-columns: 84px 1fr;
  }

  .timeline-row {
    grid-template-columns: 84px 1fr;
  }

  .timeline-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .auth-card {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .review-tools {
    width: 100%;
  }

  .review-search {
    flex: 1;
  }

  .review-search input {
    width: 100%;
  }

  .audit-row {
    grid-template-columns: 64px 1fr;
  }

  .audit-row .audit-type {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-actions .lang-toggle,
  .header-actions [data-theme-toggle] {
    display: none;
  }

  .user-chip-name {
    display: none;
  }

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

  .auth-benefits {
    gap: 10px;
  }

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

  .alert-form .row {
    grid-template-columns: 1fr;
  }

  .history-tabs {
    width: 100%;
  }

  .history-tab {
    flex: 1;
  }
}

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

/* ---------- Admin integrations ---------- */

.integration-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -6px 0 18px;
}

.integration-legend .chip {
  cursor: default;
}

.readiness-panel {
  margin-bottom: 22px;
}

.readiness-bar {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--green));
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.readiness-item input {
  margin-top: 2px;
  accent-color: var(--lime);
}

.integration-section {
  margin-top: 24px;
}

.integration-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.integration-section-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.integration-section-head > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

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

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-head .store-logo {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.integration-copy {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.integration-req {
  padding: 10px;
  border-radius: 9px;
  background: var(--surface-2);
}

.integration-req > span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.integration-req p {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.integration-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.integration-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.status-pill.connected {
  background: rgba(126, 231, 135, 0.12);
  color: var(--green);
}

.status-pill.apply,
.status-pill.needs_key {
  background: rgba(255, 191, 90, 0.12);
  color: var(--amber);
}

.status-pill.manual {
  background: rgba(108, 182, 255, 0.12);
  color: var(--blue);
}

@media (max-width: 720px) {
  .integration-grid,
  .readiness-grid {
    grid-template-columns: 1fr;
  }

  .integration-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Account ---------- */

.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  flex: 0 0 auto;
}

.account-profile h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.account-profile p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

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

.account-section {
  margin-top: 30px;
}

.account-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.account-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-game {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.account-game .cover {
  aspect-ratio: 1;
  border-radius: 8px;
}

.account-game .cover-title {
  padding: 6px;
  font-size: 10px;
}

.account-game-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-game .deal-price-row {
  margin-top: 6px;
}

.account-game .deal-price {
  font-size: 18px;
}

.account-alert-list {
  display: grid;
  gap: 8px;
}

.account-alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.account-alert-row > div {
  min-width: 0;
}

.account-alert-row strong {
  display: block;
  font-size: 12.5px;
}

.account-alert-row span {
  color: var(--muted);
  font-size: 10.5px;
}

.account-alert-row .icon-btn {
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex: 0 0 auto;
}

.account-empty {
  padding: 24px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.account-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
}

.account-plan h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.account-plan p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.account-guest {
  padding: 30px;
}

.account-guest h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.account-demo {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

@media (max-width: 720px) {
  .account-profile {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-actions {
    width: 100%;
    margin-left: 0;
  }

  .account-stats,
  .account-game-grid {
    grid-template-columns: 1fr;
  }

  .account-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-plan {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Real media + ad slots ---------- */

.cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-panel {
  margin-top: 18px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.screenshot-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.screenshot-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.screenshot-grid a:hover img {
  transform: scale(1.04);
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin: 20px 0;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ad-slot[data-ad-slot="game-sidebar"] {
  min-height: 250px;
  margin: 0;
}

/* 有真实广告时去掉占位框的虚线、底色和固定高度。 */
.ad-slot.is-live {
  display: block;
  min-height: 0;
  margin: 20px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.ad-slot.is-live[data-ad-slot="game-sidebar"] {
  min-height: 0;
  margin: 0;
}

.ad-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ad-slot.is-live .adsbygoogle {
  display: block;
  width: 100%;
}

@media (max-width: 720px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 首页编辑精选 */
.editor-list {
  display: grid;
  gap: 2px;
  padding: 6px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.editor-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.18s ease;
}

.editor-row:last-child {
  border-bottom: 0;
}

.editor-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.editor-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(200, 245, 96, 0.12);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.editor-name {
  color: var(--ink);
  font-weight: 650;
}

.editor-reason {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.editor-price {
  color: var(--lime);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .editor-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .editor-reason {
    grid-column: 2 / -1;
  }
}

/* 指南列表与文章 */
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.guide-card:hover {
  border-color: rgba(200, 245, 96, 0.5);
  transform: translateY(-2px);
}

.guide-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.guide-more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.article-body h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 20px;
}

@media (max-width: 720px) {
  .article-body {
    padding: 20px 18px;
  }
}

/* 游戏页基本信息 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 28px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.spec-item span {
  color: var(--muted);
  font-size: 13px;
}

.spec-item strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.spec-item a {
  color: var(--lime);
}

/* 数据透明度页 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.data-card {
  padding: 16px 18px;
}

.data-card strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.data-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* ---- Cookie 同意横幅 & 广告占位 ---- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px 20px;
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.consent-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.consent-text a { color: var(--lime); text-decoration: underline; }
.ad-placeholder {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* 全局键盘焦点反馈（可访问性） */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
