:root {
  --bg: #06050a;
  --bg-2: #0c0a14;
  --surface: rgba(17, 14, 28, 0.72);
  --surface-solid: #110e1c;
  --surface-hover: rgba(27, 22, 44, 0.88);
  --border: rgba(139, 92, 246, 0.18);
  --border-strong: rgba(167, 139, 250, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --violet: #7c3aed;
  --violet-bright: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-glow: rgba(124, 58, 237, 0.38);
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(124, 58, 237, 0.22), transparent 65%),
    radial-gradient(700px 460px at 88% 8%, rgba(139, 92, 246, 0.14), transparent 65%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Ambient grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 40%, transparent 100%);
}

/* Navbar */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding 0.25s ease;
}

.nav {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(12, 10, 20, 0.55);
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: all 0.28s ease;
}

.nav-wrap.scrolled .nav {
  width: min(1040px, calc(100% - 32px));
  background: rgba(14, 11, 24, 0.86);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(124, 58, 237, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.brand span em {
  font-style: normal;
  color: var(--violet-light);
}

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

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn,
.nav-user-btn {
  white-space: nowrap;
}

.nav-user {
  position: relative;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-user-btn:hover {
  border-color: var(--border-strong);
  background: rgba(139, 92, 246, 0.14);
}

.nav-user-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #100d1b;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 80;
}

.nav-user-menu.open {
  display: grid;
  gap: 2px;
}

.nav-user-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-user-menu a:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.nav-user-menu a.logout:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-bright) 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--violet-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--border-strong);
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: var(--violet-light);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 10px var(--violet-light);
}

/* Hero Section */
.hero {
  padding: 54px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.hero-grid > *,
.dash-grid > *,
.bento > * {
  min-width: 0;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #ffffff 10%, #c4b5fd 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--violet-light);
}

/* Hero Terminal Card */
.terminal-card {
  background: linear-gradient(180deg, rgba(20, 16, 34, 0.92), rgba(11, 9, 20, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(124, 58, 237, 0.16);
}

.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.term-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.term-dots i:nth-child(1) { background: #ef4444; }
.term-dots i:nth-child(2) { background: #f59e0b; }
.term-dots i:nth-child(3) { background: #22c55e; }

.term-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.copy-btn {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.copy-btn:hover {
  background: rgba(139, 92, 246, 0.32);
}

.code-box {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  background: rgba(6, 5, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: hidden;
  max-width: 100%;
  color: #e2e8f0;
  margin: 0 0 14px;
}

.kw { color: #c084fc; }
.fn { color: #93c5fd; }
.str { color: #a7f3d0; }
.cm { color: #64748b; }

.term-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 64px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.stat-card span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Section Headings */
.sec {
  padding: 46px 0;
}

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

.sec-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sec-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 520px;
}

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.games-grid > *,
.game-card {
  min-width: 0;
  max-width: 100%;
}

.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 58, 237, 0.14);
}

.game-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.game-meta h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.game-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.76rem;
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-status {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.tag-status.template {
  background: rgba(167, 139, 250, 0.14);
  color: var(--violet-light);
}

.game-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.game-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.game-feats span {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
}

/* 3-Step Horizontal Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--violet), var(--violet-bright));
  color: #fff;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.bento-7 { grid-column: span 7; }
.bento-5 { grid-column: span 5; }
.bento-4 { grid-column: span 4; }

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bento-visual {
  background: rgba(6, 5, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--violet-light);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
}

.faq-q span:last-child {
  color: var(--violet-light);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q span:last-child {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* CTA Banner */
.cta-banner {
  margin: 54px 0 26px;
  padding: 42px 32px;
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(22, 17, 38, 0.9), rgba(11, 9, 20, 0.96));
  border: 1px solid var(--border-strong);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.cta-banner p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--muted);
}

.cta-banner .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 44px 0 36px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.foot-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.88rem;
}

.foot-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.16s ease;
}

.foot-col a:hover {
  color: var(--violet-light);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* Subpage Controls (Games, Get Key, Dashboard) */
.page-head {
  padding: 40px 0 24px;
}

.page-head h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

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

.search-input,
.text-input {
  background: rgba(14, 11, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input:focus,
.text-input:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--violet-bright);
  color: #fff;
}

/* Dashboard & Key Cards */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.kv-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(6, 5, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.9rem;
}

.kv-row span:first-child {
  color: var(--muted);
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.12);
  color: #e9d5ff;
  margin-bottom: 18px;
}

.alert.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.alert.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.alert.err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #100d1b;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.tier-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.tier-box {
  background: rgba(6, 5, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.tier-box.premium {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(6, 5, 10, 0.65));
  border-color: var(--border-strong);
}

.tier-box h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tier-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
}

.tier-box li::before {
  content: "✓ ";
  color: #4ade80;
  font-weight: 700;
}

.tier-box.premium li::before {
  content: "★ ";
  color: var(--violet-light);
}

.feat-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: rgba(6, 5, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feat-checklist li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-checklist li::before {
  content: "✓";
  color: var(--violet-light);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .tier-split,
  .feat-checklist {
    grid-template-columns: 1fr;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.2rem;
}

/* Responsive */
/* Animations & Reveals */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.in-up {
  animation: blurIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.in-d1 { animation-delay: 0.06s; }
.in-d2 { animation-delay: 0.14s; }
.in-d3 { animation-delay: 0.22s; }
.in-d4 { animation-delay: 0.3s; }

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop.open .modal {
  animation: blurIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 3D Coverflow Game Carousel */
.cf-wrap {
  position: relative;
  margin: 18px 0 34px;
  padding: 28px 0 18px;
  overflow: hidden;
  user-select: none;
}

.cf-stage {
  position: relative;
  height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.cf-item {
  position: absolute;
  width: 256px;
  height: 144px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: #100d1b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(0, 0, 0, 0.28));
}

.cf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-item.active {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75), 0 0 38px rgba(124, 58, 237, 0.42);
}

.cf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 15;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 14, 28, 0.85);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cf-nav:hover {
  background: var(--violet);
  box-shadow: 0 0 20px var(--violet-glow);
  transform: translateY(-60%) scale(1.06);
}

.cf-prev { left: 10px; }
.cf-next { right: 10px; }

.cf-caption {
  text-align: center;
  margin-top: 10px;
}

.cf-caption strong {
  font-size: 1.02rem;
  color: #fff;
}

.cf-caption span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: 8px;
}

@media (max-width: 960px) {
  .hero-grid,
  .games-grid,
  .steps-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-7, .bento-5, .bento-4 {
    grid-column: span 12;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1160px, calc(100% - 24px));
  }
  .nav {
    width: calc(100% - 24px);
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-wrap.scrolled .nav {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 0.96rem;
    gap: 8px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .nav-user-btn {
    padding: 4px 8px 4px 4px;
    font-size: 0.78rem;
  }
  .nav-user-btn span {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    background: #100d1b;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
