/* ============ Design tokens ============ */
:root {
  --bg: #06070c;
  --bg-alt: #0a0d16;
  --bg-card: #10131e;
  --bg-card-hover: #151827;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --text-dimmer: #6b7286;
  --accent: #35e0c9;
  --accent-2: #7c8cff;
  --good: #35e0a0;
  --warn: #ffb648;
  --radius: 14px;
  --maxw: 1180px;

  /* per-game accents */
  --a-abyss: #35c7e0;
  --a-atomic: #ffb648;
  --a-sixseven: #ff6ba8;
  --a-ramrun: #8fd35c;
  --a-alco: #e0a835;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: inherit; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code {
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}
strong { color: var(--text); font-weight: 650; }
::selection { background: var(--accent); color: #05070c; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ Nav ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,7,12,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark { color: var(--accent); font-size: 1.1em; }
.brand-thin { font-weight: 300; color: var(--text-dim); margin-left: 4px; }
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #05070c;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(53,224,201,0.25); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(53,224,201,0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(124,140,255,0.14), transparent 60%);
  filter: blur(10px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(53,224,201,0.3);
  background: rgba(53,224,201,0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 16ch;
}
.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  display: block;
  margin-top: 26px;
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #05070c; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(53,224,201,0.25); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-outline { color: var(--accent); border-color: rgba(53,224,201,0.4); }
.btn-outline:hover { background: rgba(53,224,201,0.08); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hstat { background: rgba(255,255,255,0.02); padding: 24px 20px; }
.hstat-num { font-size: 2.1rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.hstat-label { margin-top: 6px; font-size: 0.84rem; color: var(--text-dim); line-height: 1.35; }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Status strip ============ */
.status-strip { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.status-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.status-strip-head h3 { font-size: 1.1rem; }
.status-strip-head p { color: var(--text-dim); font-size: 0.92rem; max-width: 480px; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.status-row:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(53,224,160,0.5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53,224,160,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(53,224,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,224,160,0); }
}
.status-name { font-weight: 600; font-size: 0.94rem; }
.status-path { color: var(--text-dimmer); font-size: 0.84rem; font-family: monospace; }
.status-go { margin-left: auto; color: var(--accent); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 700px) {
  .status-grid { grid-template-columns: 1fr; }
}

/* ============ Generic section ============ */
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 650;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 1.02rem; max-width: 640px; }

/* ============ Thesis ============ */
.thesis-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.thesis-copy p { color: var(--text-dim); margin-top: 20px; font-size: 1.02rem; }
.thesis-copy .section-title { margin-bottom: 4px; }
.thesis-facts { display: flex; flex-direction: column; gap: 14px; }
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fact-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.fact-label { color: var(--text-dim); font-size: 0.9rem; line-height: 1.45; }

@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; }
}

/* ============ Game cards ============ */
.game-grid { display: flex; flex-direction: column; gap: 16px; }

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  --accent-c: var(--accent);
}
.game-card[data-accent="abyss"]     { --accent-c: var(--a-abyss); }
.game-card[data-accent="atomic"]    { --accent-c: var(--a-atomic); }
.game-card[data-accent="sixseven"]  { --accent-c: var(--a-sixseven); }
.game-card[data-accent="ramrun"]    { --accent-c: var(--a-ramrun); }
.game-card[data-accent="alco"]      { --accent-c: var(--a-alco); }

.game-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 30px 32px;
  position: relative;
  border-left: 3px solid var(--accent-c);
}
.game-card > summary::-webkit-details-marker { display: none; }
.game-card > summary:hover { background: rgba(255,255,255,0.015); }

.gc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gc-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dimmer); font-weight: 650; }
.gc-status { font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-live { color: var(--good); background: rgba(53,224,160,0.1); border: 1px solid rgba(53,224,160,0.3); }

.game-card h3 { font-size: 1.5rem; color: var(--accent-c); }
.gc-tagline { margin-top: 8px; color: var(--text-dim); font-size: 1rem; max-width: 640px; }

.gc-summary-layout { display: flex; gap: 26px; align-items: flex-start; }
.gc-shot-wrap {
  position: relative;
  flex: none;
  width: 132px;
  height: 264px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  background: #000;
}
.gc-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.gc-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  font-size: 1rem;
  color: #fff;
  background: rgba(5, 7, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gc-play:hover, .gc-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent-c);
  border-color: var(--accent-c);
  color: #05070c;
}
.gc-summary-text { flex: 1; min-width: 0; }
.gc-summary-text .gc-tagline { margin-top: 6px; }

.play-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 8, 0.88);
  backdrop-filter: blur(4px);
}
.play-modal.is-open { display: flex; }
.play-modal-frame-wrap {
  width: min(430px, 94vw);
  height: min(860px, 92vh);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}
.play-modal-frame { width: 100%; height: 100%; border: 0; display: block; }
.play-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background .15s ease;
}
.play-modal-close:hover { background: rgba(255, 255, 255, 0.18); }

.gc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gc-badges span {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: 999px;
}
.gc-expand { display: inline-block; margin-top: 20px; font-size: 0.86rem; color: var(--accent-c); font-weight: 600; }
.game-card[open] .gc-expand::after { content: ""; }
.gc-expand::before { content: ""; }
.game-card[open] summary .gc-expand { opacity: 0.55; }

.gc-body {
  padding: 8px 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}
.gc-col h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 10px; }
.gc-col h4:not(:first-child) { margin-top: 24px; }
.gc-col p { color: var(--text-dim); font-size: 0.94rem; }
.dot-list { margin: 12px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.94rem; display: flex; flex-direction: column; gap: 10px; }
.dot-list li::marker { color: var(--accent-c); }
.gc-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 800px) {
  .gc-body { grid-template-columns: 1fr; gap: 24px; }
  .game-card > summary { padding: 24px 20px; }
  .gc-body { padding: 8px 20px 28px; }
}

@media (max-width: 560px) {
  .gc-summary-layout { flex-direction: column; }
  .gc-shot-wrap { width: 100%; height: auto; aspect-ratio: 1 / 2; }
}

/* ============ Performance ============ */
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.perf-metric { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.perf-metric-label { color: var(--text-dim); font-size: 0.86rem; margin-top: 4px; margin-bottom: 18px; }
.perf-detail { display: flex; flex-direction: column; gap: 8px; }
.perf-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: var(--text-dim); }
.perf-val { color: var(--text); font-weight: 650; }
.perf-val.good { color: var(--good); }
.perf-val em { color: var(--text-dimmer); font-style: normal; font-weight: 400; font-size: 0.85em; }
.perf-card-honest { border-color: rgba(255,182,72,0.3); background: rgba(255,182,72,0.04); }
.perf-card-honest .perf-metric { color: var(--warn); }
.honest-note { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.admin-demo-note { margin-top: 14px; max-width: 46ch; }

.scale-note {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}
.scale-note strong { color: var(--text); }

@media (max-width: 1000px) {
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .perf-grid { grid-template-columns: 1fr; }
}

/* ============ Fairness steps ============ */
.fairness-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.fstep {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.fstep-num { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 0.05em; }
.fstep h4 { font-size: 1rem; margin-bottom: 10px; }
.fstep p { color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 1000px) {
  .fairness-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fairness-steps { grid-template-columns: 1fr; }
}

/* ============ Admin panel showcase ============ */
.admin-panel-showcase {
  background: linear-gradient(160deg, rgba(53,224,201,0.06), transparent 60%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.admin-copy h3 { font-size: 1.3rem; margin-bottom: 12px; }
.admin-copy > p { color: var(--text-dim); margin-bottom: 20px; }
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { color: var(--text-dim); font-size: 0.94rem; padding-left: 26px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

@media (max-width: 700px) {
  .admin-panel-showcase { padding: 26px; }
}

/* ============ Honest / compliance grid ============ */
.honest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.honest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.honest-card h4 { font-size: 1rem; margin-bottom: 10px; }
.honest-card p { color: var(--text-dim); font-size: 0.92rem; }

@media (max-width: 800px) {
  .honest-grid { grid-template-columns: 1fr; }
}

/* ============ Contact ============ */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact .section-sub { margin: 0 auto; }

/* ============ Footer ============ */
.footer { padding: 32px 0 60px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dimmer);
  font-size: 0.86rem;
}
.footer-links a:hover { color: var(--text-dim); }

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}
