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

:root {
  --bg: #0a0c14;
  --panel: #0f1628;
  --panel-strong: #121a30;
  --text: #e9ecf5;
  --text-muted: #a9b6d3;
  --line: #1f2a44;
  --accent: #d7b46a;
  --accent-2: #8c5aef;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-strong: #f3efe6;
  --text: #1f2937;
  --text-muted: #54607a;
  --line: #d9c8a4;
  --accent: #b7791f;
  --accent-2: #8c5aef;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background-image:
    linear-gradient(145deg, rgba(140, 90, 239, 0.06), transparent 55%),
    linear-gradient(45deg, rgba(215, 180, 106, 0.08), transparent 60%),
    radial-gradient(1200px at 10% 0%, rgba(16, 24, 48, 0.8), transparent 60%);
}

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

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(90deg, rgba(15, 22, 40, 0.9), rgba(15, 22, 40, 0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body[data-theme="light"] .topbar {
  background: rgba(247, 248, 251, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1224;
  font-size: 12px;
}

.brand-text small {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--panel);
  color: var(--accent);
}

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

.language select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.ghost,
.pill,
.primary,
.secondary,
.chip {
  border: none;
  cursor: pointer;
}

.ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 48px;
  height: 40px;
}

.ghost .icon:nth-child(1) { opacity: 1; }
.ghost .icon:nth-child(2) { opacity: 0.35; }

body[data-theme="dark"] .ghost .icon:nth-child(1) { opacity: 0.35; }
body[data-theme="dark"] .ghost .icon:nth-child(2) { opacity: 1; }

.pill {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1224;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 64px 0 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px at 20% 20%, rgba(215, 180, 106, 0.08), transparent 60%),
              radial-gradient(900px at 80% 30%, rgba(140, 90, 239, 0.08), transparent 70%);
  pointer-events: none;
}

.hero__copy h1 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.2px;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 42px);
}

.hero__copy .lede {
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1224;
  box-shadow: var(--shadow);
}

.secondary {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow);
}

.chip strong { font-size: 16px; }
.chip small { color: var(--text-muted); }
.label { color: var(--accent); font-weight: 700; font-size: 12px; }

.hero__visual {
  position: relative;
  min-height: 260px;
}

.floating-card {
  position: absolute;
  right: 16px;
  top: 20px;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.12), rgba(192, 132, 252, 0.24));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  width: 240px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.floating-card.delay { top: 140px; right: 52px; animation-delay: 1.5s; }

.floating-card__title {
  font-weight: 800;
  margin-bottom: 10px;
}

.floating-card__bars {
  display: grid;
  gap: 6px;
}

.floating-card__bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.floating-card__bars.alt span {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.floating-card__badge {
  margin-top: 12px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px at 70% 40%, rgba(125, 211, 252, 0.18), transparent 60%),
              radial-gradient(500px at 30% 70%, rgba(192, 132, 252, 0.16), transparent 55%);
  pointer-events: none;
}

.crest {
  position: absolute;
  inset: auto 50% 0 auto;
  right: 12px;
  bottom: 12px;
  font-size: 42px;
  color: rgba(215, 180, 106, 0.55);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  filter: blur(80px);
  opacity: 0.45;
}

.orb-a { background: #d7b46a; width: 280px; height: 280px; top: -40px; left: 12%; }
.orb-b { background: #8c5aef; width: 320px; height: 320px; bottom: -60px; right: 18%; }
.orb-c { background: #22d3ee; width: 220px; height: 220px; top: 40%; right: 4%; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.4), transparent 65%);
  pointer-events: none;
}

.section {
  padding: 32px 0 48px;
}

.section__head .lede {
  color: var(--text-muted);
  max-width: 720px;
}

.section__head h2,
.hero__copy h1 {
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.game-card {
  background: var(--panel);
  border: 1px solid rgba(215, 180, 106, 0.35);
  border-radius: 18px;
  padding: 0 0 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(145deg, rgba(215, 180, 106, 0.05), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 8px);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(215, 180, 106, 0.16), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(140, 90, 239, 0.22), transparent 50%);
  z-index: 0;
}

.game-card > * { position: relative; z-index: 1; }

.card-illustration {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(215, 180, 106, 0.35);
  filter: saturate(1.08);
  position: relative;
  overflow: hidden;
}

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

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  color: #0b1224;
  background: linear-gradient(90deg, rgba(215,180,106,0.95), rgba(140,90,239,0.95));
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.status-badge.status-testing { background: linear-gradient(90deg,#fbbf24,#f97316); color:#0b1224 }
.status-badge.status-dev { background: linear-gradient(90deg,#60a5fa,#7c3aed); color:#fff }
.status-badge.status-pending { background: linear-gradient(90deg,#94a3b8,#0b1224); color:#fff }

.game-card.is-pending {
  filter: grayscale(0.35) brightness(0.6);
  opacity: 0.85;
}

.game-card .badge { position: relative; z-index: 2 }

.card-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(215, 180, 106, 0.12);
  border: 1px solid rgba(215, 180, 106, 0.5);
  font-weight: 700;
  color: var(--accent);
  margin: 12px 16px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4e6c4;
  font-size: 12px;
  font-weight: 700;
}

.game-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.ghost-small {
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.game-extra {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

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

.statline span.label {
  min-width: 70px;
  color: var(--text-muted);
}

.bar {
  flex: 1;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 140px;
}

.feature-card h3 { margin-top: 0; }
.feature-card p { color: var(--text-muted); }

.game-card h3 {
  margin: 8px 16px 0;
  font-size: 20px;
  font-family: "Cinzel", serif;
}

.game-card p {
  margin: 0 16px;
}

.game-card .tags,
.game-card .game-actions,
.game-card .game-extra {
  margin: 0 16px;
}

.game-card .game-extra {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.timeline__list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.timeline__item strong { font-family: "Cinzel", serif; }
.timeline__item p { margin: 4px 0; color: var(--text-muted); }

.faq .accordion {
  display: grid;
  gap: 6px;
}

.accordion button {
  width: 100%;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion .panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  margin-top: -8px;
  padding: 12px 14px;
  color: var(--text-muted);
  display: none;
}

.accordion button[aria-expanded="true"] + .panel {
  display: block;
}

.chevron { transform: rotate(0deg); transition: transform 0.2s ease; }
.accordion button[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: center;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.micro { color: var(--text-muted); font-size: 13px; }

.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-weight: 700;
}

.footer {
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  color: var(--text-muted);
}

.footer__links,
.footer__legal {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.noscript {
  background: #f97316;
  color: #0b1224;
  padding: 10px 16px;
  text-align: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; position: sticky; }
  .nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding-top: 40px; }
  .timeline__item { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .ghost { order: 2; }
  .language { order: 1; }
  .pill { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; }
  .floating-card, .orb, .grid-overlay { animation: none; }
}
