:root {
  --bg: #0b0e17;
  --bg-alt: #10141f;
  --surface: #151a28;
  --surface-hover: #1c2233;
  --border: #232a3d;
  --text: #f2f4f8;
  --text-dim: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #3ee8b5;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #3ee8b5 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #0b0e17;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  height: 34px;
  width: auto;
}

.brand-name span {
  color: var(--accent-2);
  font-weight: 800;
}

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

.nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-2) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Games section */
.games-section {
  padding: 40px 0 100px;
}

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

.section-head h2 { margin: 0; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 260px;
  color: var(--text-dim);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

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

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: var(--shadow);
}

.game-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.game-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-name {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  min-height: 2.6em;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.game-meta .stars {
  color: #ffc94b;
}

.game-meta .no-rating {
  font-style: italic;
  opacity: 0.7;
}

.game-play-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.game-play-btn:hover {
  background: var(--accent-grad);
  color: #0b0e17;
  border-color: transparent;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}

/* About */
.about-section {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-logo {
  width: 220px;
  max-width: 60%;
  margin-bottom: 24px;
}

.about-cards {
  display: grid;
  gap: 16px;
}

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

.about-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* CTA */
.cta-section {
  padding: 90px 0;
  text-align: center;
}

.cta-inner p {
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-inner .hero-actions {
  margin-top: 28px;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-stats {
    gap: 32px;
  }

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

  .search-box {
    min-width: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================= */
/* Policy pages (privacy policy) */
/* ============================= */

.policy-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pill-accent {
  color: var(--accent-2);
  border-color: rgba(62, 232, 181, 0.35);
}

.policy-hero h1 {
  max-width: 640px;
}

.policy-lede {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.meta-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta-item span:last-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.policy-body {
  padding: 60px 0 40px;
}

.policy-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 48px;
}

.notice-box .icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.notice-box p {
  margin: 0;
  font-size: 0.94rem;
}

.policy-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.policy-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.policy-section .eyebrow {
  margin-bottom: 10px;
}

.policy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.policy-section p {
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

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

.feature-card .icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.policy-table th {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-alt);
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table a {
  color: var(--accent-2);
}

.policy-table a:hover {
  text-decoration: underline;
}

.policy-contact {
  padding: 70px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.email-link .arrow {
  transition: transform 0.2s ease;
}

.email-link:hover .arrow {
  transform: translateX(4px);
}

.policy-lede-center {
  margin-left: auto;
  margin-right: auto;
}

.policy-contact-note {
  margin-top: 24px;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .policy-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .meta-row {
    gap: 24px;
  }
}
