:root {
    --obsidian: #0A0A0B;
    --ember: #FF2E00;
    --gunmetal: #1A1B1E;
    --steel: #F2F2F2;
    --steel-dim: #8A8B8E;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--obsidian);
    color: var(--steel);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    cursor: none;
  }

  @media (hover: none) {
    body { cursor: auto; }
    #crosshair { display: none; }
  }

  a { color: inherit; }

  h1, h2, h3, .display {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 0;
  }

  .mono { font-family: 'Roboto Mono', monospace; }

  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 4px;
  }

  /* Tactical crosshair cursor */
  #crosshair {
    position: fixed;
    top: 0; left: 0;
    width: 22px; height: 22px;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  #crosshair::before, #crosshair::after {
    content: '';
    position: absolute;
    background: var(--steel);
  }
  #crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; }
  #crosshair::after { left: 50%; top: 0; height: 100%; width: 1px; }
  #coord {
    position: fixed;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--steel-dim);
    pointer-events: none;
    z-index: 999;
    transform: translate(14px, 14px);
  }

  /* Layout shell */
  .wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(to bottom, rgba(10,10,11,0.9), transparent);
  }
  nav .wordmark { font-family: 'Syne'; font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
  nav .links { display: flex; gap: 28px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
  nav .links a { text-decoration: none; color: var(--steel-dim); transition: color 0.2s; }
  nav .links a:hover { color: var(--steel); }

  /* Hero */
  .hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 30%, rgba(255,46,0,0.16), transparent 60%),
      repeating-linear-gradient(0deg, rgba(242,242,242,0.03) 0px, rgba(242,242,242,0.03) 1px, transparent 1px, transparent 80px),
      repeating-linear-gradient(90deg, rgba(242,242,242,0.03) 0px, rgba(242,242,242,0.03) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
  }
  .hero .tag {
    font-family: 'Roboto Mono';
    font-size: 0.8rem;
    color: var(--ember);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    z-index: 1;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 13vw, 9.5rem);
    line-height: 0.92;
    z-index: 1;
  }
  .hero p {
    max-width: 560px;
    color: var(--steel-dim);
    margin: 28px 0 44px;
    font-size: 1.05rem;
    z-index: 1;
  }
  .cta {
    z-index: 1;
    display: inline-block;
    padding: 18px 44px;
    background: var(--ember);
    color: var(--obsidian);
    font-family: 'Syne';
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 2px;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 0 0 rgba(255,46,0,0.5);
  }
  .cta:hover {
    box-shadow: 0 0 36px rgba(255,46,0,0.55);
    transform: translateY(-2px);
  }

  /* Section shared */
  section { padding: 100px 0; position: relative; }
  .eyebrow-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(242,242,242,0.12);
    padding-bottom: 20px;
  }
  .eyebrow-row h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .eyebrow-row .count { font-family: 'Roboto Mono'; color: var(--steel-dim); font-size: 0.85rem; }

  /* Killstrike ticker */
  .ticker {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    background: rgba(242,242,242,0.12);
    scrollbar-width: thin;
  }
  .ticker::-webkit-scrollbar { height: 6px; }
  .ticker::-webkit-scrollbar-thumb { background: var(--ember); }
  .kill-card {
    flex: 0 0 260px;
    background: var(--obsidian);
    padding: 28px 24px;
    border-left: 2px solid var(--ember);
  }
  .kill-card .op { font-family: 'Roboto Mono'; font-size: 0.85rem; color: var(--steel-dim); }
  .kill-card .stat { font-family: 'Syne'; font-weight: 800; font-size: 2.4rem; margin: 8px 0; }
  .kill-card .weapon { font-size: 0.85rem; color: var(--ember); font-family: 'Roboto Mono'; }

  /* Armory */
  .armory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(242,242,242,0.12);
  }
  .armory-col {
    background: var(--gunmetal);
    padding: 40px 32px;
  }
  .armory-col h3 { font-size: 1.4rem; margin-bottom: 20px; }
  .armory-col ul { list-style: none; padding: 0; margin: 0; color: var(--steel-dim); font-size: 0.92rem; }
  .armory-col li { padding: 10px 0; border-top: 1px solid rgba(242,242,242,0.08); }
  .armory-col li:first-child { border-top: none; }
  .armory-col[data-track="combat"] h3 { color: var(--ember); }
  .armory-col[data-track="intel"] h3 { color: #3FD0FF; }

  @media (max-width: 900px) {
    .armory-grid { grid-template-columns: 1fr; }
    nav .links { display: none; }
  }

  /* Footer */
  footer {
    border-top: 1px solid rgba(242,242,242,0.12);
    padding: 28px 0;
  }
  footer .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'Roboto Mono';
    font-size: 0.8rem;
    color: var(--steel-dim);
  }
  footer .status { color: #3EFF8B; }
  footer a.discord {
    color: var(--steel);
    text-decoration: none;
    border-bottom: 1px solid var(--ember);
  }

/* ===== BLACKHEAVEN platform upgrade (games, AI, mobile nav, readable wordmark) ===== */
nav .wordmark {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
nav .wordmark a, nav .wordmark { color: var(--steel); text-decoration: none; }
nav .wordmark::after { content: ''; display: block; height: 2px; width: 38%; background: var(--ember); margin-top: 6px; }
nav .links a.active { color: var(--steel); border-bottom: 1px solid var(--ember); padding-bottom: 2px; }
nav .links a.hot { color: var(--ember); }
.hero h1 {
  font-size: clamp(2.6rem, 10.5vw, 8rem);
  letter-spacing: 0.02em;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(242,242,242,0.3); color: var(--steel);
  font-family: 'Roboto Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em;
  padding: 8px 12px; border-radius: 2px; cursor: pointer;
}
@media (max-width: 900px) {
  nav { padding: 16px 20px; background: rgba(10,10,11,0.96); }
  .nav-toggle { display: inline-block; }
  nav.open .links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,11,0.98); border-top: 1px solid rgba(242,242,242,0.1);
    padding: 8px 20px 16px;
  }
  nav.open .links a { padding: 12px 0; border-bottom: 1px solid rgba(242,242,242,0.06); font-size: 0.95rem; }
  .wrap { padding: 0 20px; }
}

/* Platform cards (home page) */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(242,242,242,0.12); }
.platform-card { background: var(--gunmetal); padding: 32px 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: background 0.2s; }
.platform-card:hover { background: #222328; }
.platform-card .num { font-family: 'Roboto Mono', monospace; color: var(--ember); font-size: 0.8rem; letter-spacing: 0.1em; }
.platform-card h3 { font-size: 1.35rem; }
.platform-card p { color: var(--steel-dim); font-size: 0.9rem; margin: 0; flex: 1; }
.platform-card .go { font-family: 'Roboto Mono', monospace; font-size: 0.8rem; color: var(--steel); }
@media (max-width: 1000px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .platform-grid { grid-template-columns: 1fr; } }

/* QR buy corners (HQ page, footer area) */
.qr-corners { position: relative; min-height: 160px; display: flex; align-items: center; justify-content: center; padding: 24px 76px; margin-bottom: 10px; }
.qr-strip-label { color: var(--steel-dim); font-size: 0.7rem; letter-spacing: 0.1em; }
.qr-mini { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--steel-dim); font-family: 'Roboto Mono', monospace; font-size: 0.68rem; text-align: center; }
.qr-mini img { width: 44px; height: 44px; border-radius: 4px; }
.qr-mini:hover { color: var(--steel); }
.qr-mini.corner-tl { top: 0; left: 0; }
.qr-mini.corner-tr { top: 0; right: 0; }
.qr-mini.corner-bl { bottom: 0; left: 0; }
@media (max-width: 560px) {
  .qr-corners { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 16px 0; min-height: 0; }
  .qr-mini { position: static; }
}

/* Connect list (join page) */
.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(242,242,242,0.12); margin-bottom: 100px; }
.connect-item { background: var(--gunmetal); padding: 28px; }
.connect-item .label { font-family: 'Roboto Mono', monospace; font-size: 0.75rem; color: var(--ember); letter-spacing: 0.1em; }
.connect-item h3 { font-size: 1.2rem; margin: 8px 0; }
.connect-item p { color: var(--steel-dim); font-size: 0.9rem; margin: 0 0 14px; }
.connect-item a.btn { display: inline-block; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; text-decoration: none; border: 1px solid var(--steel); padding: 8px 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.connect-item a.btn:hover { background: var(--steel); color: var(--obsidian); }
@media (max-width: 800px) { .connect-grid { grid-template-columns: 1fr; } }

/* Footer links */
footer .links-row { display: flex; gap: 20px; flex-wrap: wrap; }
footer .links-row a { color: var(--steel-dim); text-decoration: none; }
footer .links-row a:hover { color: var(--steel); }

/* Phone fixes: keep every page inside the screen width */
@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .plans { grid-template-columns: 1fr !important; }
  .connect-box { padding: 22px 18px; }
  .connect-box .server-ip { flex-wrap: wrap; gap: 12px; font-size: 1rem; word-break: break-all; }
  .eyebrow-row { flex-wrap: wrap; gap: 8px; }
  #market-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  img, video, canvas, iframe { max-width: 100%; }
}
