﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --violet: #7c3aed;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --gold: #f59e0b;
  --green: #10b981;
  --bg: #06071c;
  --surface: rgba(255,255,255,.04);
  --glass: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.09);
  --text: #e2e8f0;
  --muted: rgba(226,232,240,.65);
  --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(168,85,247,.2) 0%, transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(6,182,212,.12) 0%, transparent 22%),
    linear-gradient(180deg, #0b0e2c 0%, #07091d 35%, #050612 100%);
}

a { color: inherit; }
code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.site-header,
.site-footer,
.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(124,58,237,.35);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong,
.hero-title,
.section-head h2,
.game-card h3,
.feature-card h3,
.site-nav a,
.button,
.section-link,
.leaderboard-table th {
  font-family: 'Orbitron', sans-serif;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: .08em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: #fff;
  border-color: rgba(168,85,247,.35);
  background: rgba(168,85,247,.12);
}

.page-main,
.home-main {
  padding-bottom: 72px;
}

.hero,
.page-hero,
.panel,
.game-card,
.feature-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}

.hero,
.page-hero,
.panel {
  border-radius: 28px;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr);
  gap: 20px;
}

.hero-title,
.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
}

.hero-title span,
.page-hero h1 span {
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-copy p,
.page-hero p,
.game-card p,
.feature-card p,
.loading-state,
.empty-state,
.error-state {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.section-link,
.feature-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(135deg, var(--violet), var(--purple));
  box-shadow: 0 0 24px rgba(124,58,237,.35);
}

.button-secondary,
.section-link,
.feature-card a {
  background: rgba(255,255,255,.04);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
}

.section-block {
  padding-top: 28px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
}

.game-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-card,
.feature-card {
  border-radius: 24px;
  overflow: hidden;
}

.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.game-card-body,
.feature-card {
  padding: 18px;
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card h3,
.feature-card h3 {
  margin: 0;
}

.game-category {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6,182,212,.12);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.panel {
  overflow: hidden;
}

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

.leaderboard-table th,
.leaderboard-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.leaderboard-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 28px;
  color: var(--muted);
}

.loading-state,
.empty-state,
.error-state {
  margin: 0;
  padding: 24px;
}

.error-state {
  color: #fca5a5;
}

@media (max-width: 960px) {
  .hero,
  .site-header,
  .section-head,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .panel {
    padding: 20px;
  }

  .button,
  .section-link,
  .feature-card a {
    width: 100%;
  }

  .leaderboard-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
.game-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.game-card p {
  margin: 0;
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--purple));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(124,58,237,.24);
}


.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.lang-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option.is-active {
  color: #fff;
  background: rgba(168,85,247,.16);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.28);
  outline: none;
}

@media (max-width: 960px) {
  .site-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .lang-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-option {
    flex: 1 1 0;
  }
}
