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

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

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0b0b0b;
  color: #fff;
}

/* ── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #242424; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ── Layout helpers ─────────────────────── */
.text-balance { text-wrap: balance; }

/* ── Background effects ─────────────────── */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 75%);
}

.hero-glow {
  background: radial-gradient(ellipse 55% 50% at 50% 0%, rgba(0,116,228,0.15), transparent 70%);
}

.panel-glow {
  background: radial-gradient(ellipse at top right, rgba(0,116,228,0.06), transparent 50%);
}

.diag-stripes {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 16px);
}

/* ── Buttons ────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0074E4;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: #005bb5;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #121212;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ── Cards ──────────────────────────────── */
.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover {
  border-color: #3a3a3a;
  background: #1e1e1e;
}

/* ── Form elements ──────────────────────── */
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.5rem;
}

.field {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.field::placeholder { color: #555; }
.field:focus {
  outline: none;
  border-color: #0074E4;
  background: #1e1e1e;
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.field { resize: vertical; font-family: inherit; }

/* ── FAQ / Accordion ────────────────────── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.25s ease; }

/* ── Status badges ──────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}
.status-active  { background: rgba(34,197,94,0.1);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.status-pending { background: rgba(234,179,8,0.1);  color: #facc15; border: 1px solid rgba(234,179,8,0.25); }

/* ── Utility ────────────────────────────── */
.dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-dot { animation: pulse-dot 2s ease-in-out infinite; }

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #222;
  font-size: 0.875rem;
  color: #999;
  transition: color 0.15s;
}
.link-row:hover { color: #fff; }
.link-row:last-child { border-bottom: none; }

/* ── TOC sidebar ────────────────────────── */
.toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #666;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.toc a:hover, .toc a.active {
  color: #fff;
  border-left-color: #0074E4;
  background: rgba(0,116,228,0.04);
}

/* ── Legal prose ────────────────────────── */
.prose-legal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.prose-legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-legal p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prose-legal ul {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.prose-legal li { margin-bottom: 0.35rem; list-style: disc; }
.prose-legal strong { color: #fff; font-weight: 600; }

/* ── Logo ───────────────────────────────── */
.logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wrap img {
  width: 200%;
  max-width: none;
}
.logo-wrap-sm {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wrap-sm img {
  width: 200%;
  max-width: none;
}

/* ── Site header (Epic-style) ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #1f1f1f;
}
.site-header-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 2rem;
  height: 72px;
}
.site-header-inner .site-divider { display: none; }
.site-header-inner .site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-header-inner .site-cta { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 200%; max-width: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #0074E4;
  text-transform: uppercase;
}
.site-divider {
  height: 28px;
  width: 1px;
  background: #232323;
  flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #a6a6a6;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background: #0074E4;
}
.site-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #161616;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 8px 12px;
  width: 300px;
  margin-left: auto;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.site-search:focus-within { border-color: #0074E4; background: #1a1a1a; }
.site-search svg { color: #666; flex-shrink: 0; }
.site-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.site-search input::placeholder { color: #555; }
.site-search .kbd {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  border: 1px solid #2a2a2a;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.site-cta {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem !important;
  font-size: 12px !important;
}
.site-header .mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #a6a6a6;
  cursor: pointer;
}
.site-header .mobile-toggle:hover { color: #fff; }

@media (max-width: 1100px) {
  .site-search { display: none; }
  .site-cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .site-nav, .site-divider { display: none; }
}
@media (max-width: 720px) {
  .site-cta { display: none !important; }
  .site-header .mobile-toggle { display: inline-flex; margin-left: auto; }
  .brand-text { display: none; }
}

/* Sub-nav pill bar under header (homepage) */
.subnav-bar {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
}
.subnav-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 10px 1.5rem;
}
.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 12px;
  font-weight: 700;
  color: #9a9a9a;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.subnav-pill:hover { color: #fff; background: #181818; }
.subnav-pill.active {
  color: #fff;
  background: #1a1a1a;
  border-color: #2a2a2a;
}

/* Brand/game tile */
.brand-tile {
  position: relative;
  background: #131313;
  border: 1px solid #202020;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
}
.brand-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,116,228,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.brand-tile:hover { border-color: #2f2f2f; background: #161616; }
.brand-tile:hover::before { opacity: 1; }
.brand-tile img {
  height: 40px;
  width: auto;
  max-width: 150px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  object-fit: contain;
}
.brand-tile .label {
  font-size: 11px;
  font-weight: 700;
  color: #6a6a6a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-tile .value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ── Mobile nav ─────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
