:root {
  --bg: #07080d;
  --surface: #0f121b;
  --surface-elevated: #161b29;
  --border: #232a3d;
  --border-bright: #374361;
  --text: #f3f5fa;
  --text-muted: #a1abbf;
  --text-dim: #667089;
  --gold: #e0af4b;
  --gold-bright: #ffd97d;
  --gold-soft: rgba(224, 175, 75, 0.14);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --fel: #34d399;
  --fel-soft: rgba(52, 211, 153, 0.14);
  --font-display: "Chakra Petch", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-rpg: "Cinzel", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.bg-embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(224, 175, 75, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.09) 0%, transparent 42%),
    radial-gradient(ellipse at center, transparent 45%, rgba(4, 5, 8, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 3px;
}

.mark-tile {
  border-radius: 3px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-bright);
}

.mark-tile--gold {
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(224, 175, 75, 0.45);
}

.mark-tile--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  background: rgba(224, 175, 75, 0.1);
  border: 1px solid rgba(224, 175, 75, 0.35);
  border-radius: 8px;
  padding: 7px 13px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hud-badge:hover {
  background: rgba(224, 175, 75, 0.2);
  border-color: var(--gold-bright);
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fel);
  box-shadow: 0 0 10px var(--fel);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 48px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(224, 175, 75, 0.32);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(7, 8, 13, 0.94) 0%, rgba(7, 8, 13, 0.78) 52%, rgba(7, 8, 13, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.25) 0%, rgba(7, 8, 13, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(28px, 5vw, 52px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.eyebrow-tag {
  color: var(--gold-bright);
  font-weight: 700;
}

.eyebrow-sep {
  color: var(--text-dim);
}

.eyebrow-sub {
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-title--accent {
  background: linear-gradient(95deg, var(--gold-bright) 0%, var(--gold) 52%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3ca6b 0%, #c9922c 100%);
  color: #0b0d12;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(224, 175, 75, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(224, 175, 75, 0.42);
  filter: brightness(1.06);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cta-secondary:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(15, 18, 27, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cabinet-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

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

.game-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 27, 41, 0.94), rgba(13, 16, 25, 0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.game-card:hover .cover-img {
  transform: scale(1.04);
}

.featured-banner {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 175, 75, 0.28);
}

.card-cover {
  position: relative;
  height: 175px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 13, 0.55) 0%,
    rgba(7, 8, 13, 0.15) 45%,
    rgba(13, 16, 25, 0.95) 100%
  );
}

.card-top--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  margin-bottom: 0;
  z-index: 1;
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
}

.card-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(224, 175, 75, 0.45);
  background: linear-gradient(135deg, rgba(224, 175, 75, 0.08) 0%, rgba(15, 18, 27, 0.97) 52%);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
}

.game-card--featured:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(224, 175, 75, 0.12);
}

.card-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(224, 175, 75, 0.14), transparent 70%);
  pointer-events: none;
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.card-index {
  color: var(--gold);
  font-weight: 700;
}

.card-genre {
  color: var(--text-dim);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 4px 10px;
}

.tag--live {
  color: var(--fel);
  background: var(--fel-soft);
  border: 1px solid rgba(52, 211, 153, 0.38);
}

.tag--queued {
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-copy {
  flex: 1;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-title--rpg {
  font-family: var(--font-rpg);
  font-size: 1.65rem;
  background: linear-gradient(180deg, #fff1c1 0%, #e0af4b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.perk {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
}

.card-actions {
  margin-top: 20px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 9px;
  background: var(--gold-soft);
  border: 1px solid rgba(224, 175, 75, 0.5);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.play-btn:hover {
  background: rgba(224, 175, 75, 0.24);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.mini-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 46px);
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid rgba(224, 175, 75, 0.35);
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65);
}

.mini-cell {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-rpg);
  font-size: 1.05rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.mini-cell--fixed {
  background: var(--surface-elevated);
  color: var(--text-muted);
  cursor: default;
}

.mini-cell--editable:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.mini-cell--filled {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.5);
}

.mini-cell--complete {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--fel);
  color: var(--fel);
}

.mini-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.vote-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.vote-btn.is-voted {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: #bae6fd;
}

.game-card--upcoming.is-voted {
  border-color: rgba(56, 189, 248, 0.45);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer p {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
}

@media (max-width: 760px) {
  .main-content {
    gap: 44px;
    padding: 30px 0 40px;
  }

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

  .card-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-board-wrap {
    align-self: center;
  }
}
