:root {
  --ink: #07060c;
  --ink-2: #110e18;
  --panel: #16121f;
  --line: rgba(232, 184, 74, 0.22);
  --gold: #e8b84a;
  --gold-2: #c8962a;
  --orange: #ff7a18;
  --cyan: #3ec7ff;
  --text: #f4efe6;
  --mute: #b7ad9c;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Outfit", system-ui, sans-serif;
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(62, 199, 255, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(255, 122, 24, 0.12), transparent 45%),
    var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  padding-bottom: 72px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4, .brand-lockup strong, .footer-heading {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }

.hero-title {
  font-size: clamp(4.2rem, 14vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration: none;
}
.hero-link:hover { text-decoration: underline; }
.hero-link .arrow {
  display: inline-block;
  animation: arrow-nudge 1s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

a { color: var(--gold); }
a:hover { color: #ffd36a; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 2000;
}
.skip-link:focus { left: 8px; }

.site-header {
  background: rgba(7, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner { min-height: 76px; }

.navbar-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-lockup strong {
  color: #fff;
  font-size: 1.02rem;
}
.brand-lockup small {
  color: var(--mute);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar .nav-link {
  color: var(--mute) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.5rem !important;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .navbar-nav { flex-wrap: wrap; justify-content: center; }
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #fff !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  line-height: 1.1;
}
.btn i { font-size: 0.92em; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-gold {
  background: linear-gradient(180deg, #ffd36a, var(--gold) 40%, var(--gold-2));
  color: #1a1204 !important;
  border: 0;
  box-shadow: 0 8px 24px rgba(232, 184, 74, 0.28);
}
.btn-gold:hover { filter: brightness(1.06); color: #1a1204 !important; }

.btn-play {
  background: linear-gradient(180deg, #4fd4ff, #1ea0d8);
  color: #041018 !important;
  border: 0;
}
.btn-play:hover { filter: brightness(1.06); color: #041018 !important; }

.btn-ghost {
  border: 1px solid var(--line);
  color: #fff !important;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

.hero {
  padding: 3.2rem 0 2.4rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-lead {
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-art {
  position: relative;
  text-align: center;
}
.hero-art img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}

.spec-section {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 1.6rem 0 1.8rem;
}
.spec-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 34%;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.18);
}
.spec-table td { color: #fff; font-weight: 500; }
.spec-table code {
  font-size: 0.86rem;
  color: #d7ecff;
  word-break: break-all;
}

.cred-card {
  background: linear-gradient(180deg, rgba(232,184,74,0.12), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
}
.cred-card h2, .cred-card h3 { margin-bottom: 0.85rem; }
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.cred-row:last-of-type { border-bottom: 0; }
.cred-row span {
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.cred-row strong {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #fff;
  word-break: break-all;
}
.cred-note { color: var(--mute); font-size: 0.9rem; margin: 0.8rem 0 0; }

.about-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
  display: block;
  margin: 0 0 1.4rem;
}
.article-logo-wrap {
  float: right;
  margin: 0 0 1rem 1.2rem;
}
@media (max-width: 575.98px) {
  .article-logo-wrap {
    float: none;
    margin: 0 0 1.2rem;
  }
  .about-logo { margin-left: auto; margin-right: auto; }
}

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  height: 100%;
}

.panel i.icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(232, 184, 74, 0.12);
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.panel p { color: var(--mute); margin-bottom: 0; }

.split-media img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.step-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.1rem;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.game-card h3 { margin-bottom: 0.4rem; }
.game-card p { color: var(--mute); margin: 0; font-size: 0.95rem; }

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
@media (min-width: 768px) {
  .game-list { grid-template-columns: 1fr 1fr; }
}
.game-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.game-list-rich li { align-items: start; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.game-main { display: flex; flex-direction: column; min-width: 0; }
.game-blurb {
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .game-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .game-list li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 767.98px) {
  .game-list li:last-child { border-bottom: 0; }
}
.game-list li:nth-child(even) { background: rgba(255,255,255,0.02); }
.game-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}
.game-name { color: #fff; font-weight: 600; }
.game-cat {
  color: var(--mute);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.log-item {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.4rem;
}
.log-item time {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--mute);
  padding-top: 1.4rem;
}
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.page-intro { padding: 1.2rem 0 0.4rem; }
.page-intro p.lead, .article-body p { color: var(--mute); }
.article-body { max-width: 46rem; }
.article-body h2 { margin-top: 2rem; }
.article-body ul, .article-body ol { color: var(--mute); }
.article-body li { margin-bottom: 0.4rem; }

.table-darkish {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: rgba(255,255,255,0.03);
}
.table-darkish th { color: var(--gold); font-weight: 600; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1rem;
  background: rgba(255,255,255,0.02);
  margin-bottom: 0.7rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--mute); }

.cta-band {
  background:
    linear-gradient(90deg, rgba(232,184,74,0.16), rgba(62,199,255,0.1)),
    var(--ink-2);
  border-block: 1px solid var(--line);
  padding: 2.6rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2rem;
  background: #05040a;
}
.footer-brand strong { color: #fff; font-family: var(--display); }
.footer-brand small { color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.68rem; }
.footer-heading {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.footer-links a {
  color: var(--mute);
  text-decoration: none;
  display: inline-block;
  padding: 0.18rem 0;
}
.footer-links a:hover { color: #fff; }
.footer-blurb { color: var(--mute); font-size: 0.92rem; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.85rem;
}

.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7,6,12,0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.mobile-dock .btn {
  width: 100%;
  padding: 0.58rem 0.55rem;
  font-size: 0.86rem;
}

.navbar-toggler { border-color: var(--line); padding: 0.3rem 0.45rem; }

@media (max-width: 991.98px) {
  .header-inner { min-height: 56px; }
  .navbar-brand img { width: 40px; height: 40px; }
  .brand-lockup strong { font-size: 0.9rem; }
  .brand-lockup small { display: none; }
  .hero { padding: 1.4rem 0 1.1rem; }
  .hero-lead { font-size: 0.95rem; max-width: none; }
  .section { padding: 2.2rem 0; }
  .section-tight { padding: 1.4rem 0; }
  .page-intro { padding: 0.7rem 0 0.15rem; }
  .crumbs { padding-top: 0.85rem; }
  .cta-band { padding: 1.5rem 0; }
  .panel { padding: 1.05rem; border-radius: 16px; }
  .site-footer { padding: 2.2rem 0 1.4rem; }
}

@media (max-width: 575.98px) {
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta .btn {
    width: 100%;
    padding: 0.68rem 0.45rem;
    font-size: 0.84rem;
  }
  .hero-title { font-size: clamp(3rem, 18vw, 4.4rem); }
  .spec-table th,
  .spec-table td { padding: 0.65rem 0.75rem; }
  .spec-table th { width: 36%; font-size: 0.72rem; }
  .spec-table td,
  .spec-table code { font-size: 0.82rem; }
  .game-list li {
    padding: 0.62rem 0.75rem;
    gap: 0.45rem;
    grid-template-columns: 1.8rem 1fr auto;
  }
  .cred-row strong { font-size: 1.15rem; }
  .split-media img { border-radius: 16px; }
}

.text-mute { color: var(--mute) !important; }
