/* Fonts are self-hosted (faster, and no visitor data sent to Google). Latin subset. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/space-grotesk.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Nexcon game server hosting: dark theme, purple brand, white highlights */
:root, .force-dark {
  --bg: #0a0612;
  --bg-2: #0f0a1b;
  --surface: #150e25;
  --surface-2: #1c1431;
  --line: rgba(196, 181, 253, .12);
  --line-strong: rgba(196, 181, 253, .24);
  --text: #f6f3ff;
  --body: #b9b0d0;
  --muted: #8a80a6;
  --glass: var(--glass);
  --hover: var(--hover);
  --hover-2: var(--hover-2);
  --header-bg: rgba(10, 6, 18, .78);
  --grid-line: var(--glass);
  --code-bg: #06030c;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  --brand-glow: rgba(139, 92, 246, .45);
  color-scheme: dark;
}
:root {
  --brand: #8b5cf6;
  --brand-strong: #5b21b6;
  --brand-solid: #7c3aed; /* for backgrounds behind small white text (WCAG AA) */
  --brand-2: #d8b4fe;
  --brand-ink: #c4b5fd;
  --on-brand: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* per-game accents (overridden by .theme-*) */
  --accent: var(--brand);
  --accent-2: var(--brand-2);
  --accent-glow: var(--brand-glow);
}

.force-dark { color: var(--body); }
.theme-hytale { --accent: #f5a524; --accent-2: #fcd34d; --accent-glow: rgba(245, 165, 36, .32); }
.theme-zomboid { --accent: #ef4444; --accent-2: #fb923c; --accent-glow: rgba(239, 68, 68, .3); }
.theme-valheim { --accent: #60a5fa; --accent-2: #c7d2fe; --accent-glow: rgba(96, 165, 250, .32); }
.theme-7dtd { --accent: #f97316; --accent-2: #facc15; --accent-glow: rgba(249, 115, 22, .3); }
.theme-rust { --accent: #dc5b2c; --accent-2: #fca5a5; --accent-glow: rgba(220, 91, 44, .3); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 600; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; color: var(--text); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
a { color: var(--brand-ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--body); }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px;
  border-radius: 12px; font-weight: 600; font-size: .96rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important; font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-solid), var(--brand-strong)); color: var(--on-brand); box-shadow: 0 10px 30px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--hover-2); border-color: rgba(255,255,255,.35); }
a.btn-discord, .site-footer a.btn-discord { background: #4752c4; color: #fff; box-shadow: 0 10px 30px -10px rgba(88,101,242,.6); }
a.btn-discord:hover, .site-footer a.btn-discord:hover { background: #3c45a5; color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.announce {
  background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(216,180,254,.12)); border-bottom: 1px solid var(--line);
  font-size: .86rem; color: var(--text); text-align: center; padding: 8px 20px;
}
.announce a { color: var(--text); font-weight: 600; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; color: var(--body); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--hover); text-decoration: none; }
.has-menu { position: relative; }
.has-menu > button svg { width: 14px; height: 14px; transition: transform .2s; }
.has-menu:hover > button svg, .has-menu.open > button svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: -10px; width: 340px; padding: 10px; list-style: none; margin: 0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); }
.menu a:hover { background: var(--hover); text-decoration: none; }
.menu small { display: block; color: var(--muted); font-size: .8rem; }
.menu .soon { opacity: .6; }
.game-dot { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); }
.game-dot svg { width: 20px; height: 20px; color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: 70px; left: -20px; right: -20px;
    padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open .menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 8px; }
}
@media (max-width: 480px) { .nav-cta .btn-primary { padding: 9px 12px; font-size: .85rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(600px 380px at 78% 18%, var(--accent-glow), transparent 65%),
    radial-gradient(520px 380px at 12% 85%, rgba(216, 180, 254, .12), transparent 65%),
    radial-gradient(800px 500px at 50% -10%, rgba(139, 92, 246, .24), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34M28 0v0' fill='none' stroke='%23c4b5fd' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero .lead { font-size: 1.22rem; max-width: 590px; margin-bottom: 34px; color: var(--body); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--body); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-strong); font-size: .87rem; color: var(--text); margin-bottom: 26px;
}
.pill b { background: var(--brand-solid); color: var(--on-brand); font-size: .72rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
@media (max-width: 960px) { .hero { padding: 70px 0 84px; } .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Game launcher cards in the hero */
.launcher { display: grid; gap: 14px; }
.launch-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--hover), var(--glass)); border: 1px solid var(--line-strong);
  color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.launch-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(300px 120px at 100% 50%, var(--accent-glow), transparent 70%);
}
.launch-card:hover { transform: translateX(6px); border-color: var(--accent); text-decoration: none; box-shadow: 0 20px 40px -20px var(--accent-glow); }
.launch-card .game-dot { width: 52px; height: 52px; border-radius: 14px; }
.launch-card .game-dot svg { width: 28px; height: 28px; }
.launch-card h3 { margin: 0; font-size: 1.1rem; }
.launch-card p { margin: 0; font-size: .88rem; color: var(--body); }
.launch-card .from { margin-left: auto; text-align: right; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.launch-card .from strong { display: block; font-size: 1.25rem; font-family: var(--display); color: var(--text); }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: var(--accent); color: #0b0b0b; margin-left: 8px; vertical-align: middle;
}
.tag-ghost { background: var(--hover-2); color: var(--body); }

/* Stats strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--text); letter-spacing: -.02em; }
.stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .stats .container { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card p { margin: 0; color: var(--body); font-size: .96rem; }
.card h3 { margin-bottom: 8px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.icon svg { width: 22px; height: 22px; }

/* Game showcase cards */
.game-card {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; color: var(--body);
  background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 30px 60px -30px var(--accent-glow); text-decoration: none; }
.game-art {
  position: relative; height: 190px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(220px 160px at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(260px 180px at 80% 90%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #0a0612), #0a0612);
}
.game-art::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.game-art svg { width: 84px; height: 84px; color: #fff; filter: drop-shadow(0 10px 30px var(--accent-glow)); position: relative; z-index: 1; }
.game-art .tag { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; }
.game-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.game-body p { font-size: .94rem; flex: 1; }
.game-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; font-size: .88rem; }
.game-meta strong { font-family: var(--display); font-size: 1.15rem; }
.game-meta .go { color: color-mix(in srgb, var(--accent) 70%, #fff); font-weight: 600; }
.game-card.soon .game-art { opacity: .6; transition: opacity .3s; }
.game-card.soon:hover .game-art { opacity: 1; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: .85rem; color: var(--accent);
  display: inline-block; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 18px;
}
.step p { margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 44px; } .split.reverse > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

/* Panel mockup */
.mock {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--code-bg);
  box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3242; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 12px; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; font-size: .82rem; }
.mock-side div { padding: 8px 10px; border-radius: 8px; color: var(--muted); margin-bottom: 2px; }
.mock-side div.on { background: var(--hover); color: var(--text); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-head b { font-family: var(--display); color: var(--text); font-size: 1rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ok); background: rgba(52,211,153,.1); padding: 3px 10px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.mock-btns { display: flex; gap: 6px; }
.mock-btns span { font-size: .72rem; padding: 5px 10px; border-radius: 7px; background: var(--hover); color: var(--text); }
.mock-btns span:first-child { background: var(--brand-solid); color: #fff; }
.mock-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gauge { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .72rem; color: var(--muted); }
.gauge b { display: block; color: var(--text); font-size: .95rem; font-family: var(--display); }
.gauge .bar { height: 4px; border-radius: 4px; background: var(--hover-2); margin-top: 8px; overflow: hidden; }
.gauge .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.console { font-family: var(--mono); font-size: .74rem; line-height: 1.7; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: #9fb0c8; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.console .i { color: #60a5fa; } .console .g { color: var(--ok); } .console .y { color: var(--warn); } .console .p { color: var(--accent); }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

/* Pricing */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--body); font: inherit; font-weight: 600; font-size: .93rem;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tabs button .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.tab-panel[hidden] { display: none; }

.plans { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.plan.featured { border-color: var(--brand); box-shadow: 0 30px 60px -30px var(--brand-glow); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--bg-2)); }
.plan.recommended { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--brand-solid); color: var(--on-brand); font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan .ram { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.plan .who { font-size: .88rem; color: var(--muted); margin-bottom: 18px; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--text); margin-bottom: 20px; }
.price .amount { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; }
.price .per { color: var(--muted); font-size: .95rem; }
.specs { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.specs li:last-child { border-bottom: 0; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { color: var(--text); font-weight: 500; text-align: right; }
.footnote { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }

/* Plan finder */
.finder {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 34px; margin-bottom: 44px;
  border-radius: 20px; border: 1px solid var(--line-strong); background:
  radial-gradient(500px 200px at 100% 0%, var(--brand-glow), transparent 70%), var(--surface);
}
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; padding: 26px; } }
.finder h3 { font-size: 1.4rem; }
.finder label { display: flex; justify-content: space-between; font-weight: 600; color: var(--text); font-size: .93rem; margin-bottom: 10px; }
.finder label output { font-family: var(--mono); color: var(--brand-ink); }
.finder .control { margin-bottom: 22px; }
.finder input[type="range"] { width: 100%; accent-color: var(--brand); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { padding: 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--body); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--brand); color: var(--text); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.finder-result { padding: 24px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.finder-result .muted { font-size: .86rem; }
.finder-result .rec { font-family: var(--display); font-size: 2rem; color: var(--text); font-weight: 700; letter-spacing: -.03em; margin: 4px 0; }
.finder-result .rec small { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 600; }
td.no { color: var(--muted); }
td:first-child { color: var(--text); }

/* Latency */
.ping-list { display: grid; gap: 10px; }
.ping { display: grid; grid-template-columns: 120px 1fr 60px; gap: 14px; align-items: center; font-size: .92rem; }
.ping .bar { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; }
.ping .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.ping b { font-family: var(--mono); color: var(--text); font-weight: 500; text-align: right; }

/* Spec panel */
.spec-panel { border-radius: 20px; padding: 30px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row b { color: var(--text); font-weight: 600; text-align: right; }

/* Quote/promise banner */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.promise > div { background: var(--surface); padding: 30px; }
.promise h3 { font-size: 1.05rem; }
.promise p { margin: 0; font-size: .93rem; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-ink); font-weight: 300; transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 26px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 36px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(600px 300px at 0% 0%, var(--brand-glow), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(216,180,254,.16), transparent 70%), var(--surface);
}
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
@media (max-width: 860px) { .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 96px 0 80px; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-hero p { font-size: 1.18rem; max-width: 680px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; font-family: var(--mono); }
.breadcrumbs a { color: var(--muted); }

/* Game hero */
.game-hero { padding: 90px 0 100px; }
.game-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 960px) { .game-hero .hero-grid { grid-template-columns: 1fr; } }
.game-emblem {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; border-radius: 32px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 55%),
              radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 55%),
              linear-gradient(160deg, color-mix(in srgb, var(--accent) 25%, #0a0612), #0a0612);
  border: 1px solid var(--line-strong); box-shadow: 0 50px 100px -40px var(--accent-glow);
}
.game-emblem::before { content: ""; position: absolute; inset: 14px; border-radius: 24px; border: 1px dashed var(--hover-2); }
.game-emblem svg { width: 42%; height: 42%; color: #fff; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.emblem-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: .82rem;
  background: rgba(10, 6, 18, .88); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.emblem-chip small { display: block; color: var(--muted); font-size: .72rem; }
.emblem-chip.a { top: 10%; left: -8%; } .emblem-chip.b { bottom: 12%; right: -6%; }
.emblem-chip svg { width: 20px; height: 20px; color: var(--accent); filter: none; }
@media (max-width: 960px) { .game-emblem { margin: 0 auto; max-width: 340px; } .emblem-chip.a { left: 0; } .emblem-chip.b { right: 0; } }

/* Notice */
.notice { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); color: var(--text); border-radius: 12px; padding: 16px 20px; font-size: .93rem; margin-bottom: 32px; }
.notice strong { color: var(--warn); }
.info { background: color-mix(in srgb, var(--brand) 7%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 14px; padding: 18px 22px; font-size: .93rem; }

/* Prose */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.meta { color: var(--muted); font-size: .9rem; }

/* Forms */
.form { display: grid; gap: 18px; padding: 32px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { padding: 22px; } }
label { display: block; font-weight: 600; color: var(--text); font-size: .9rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); }
textarea { min-height: 160px; resize: vertical; }
.form-hint { font-size: .85rem; color: var(--muted); font-weight: 400; }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-card .icon { margin: 0; flex: none; }
.contact-card h3 { margin-bottom: 2px; font-size: 1rem; }
.contact-card p { margin: 0; font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 80px 0 34px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer h4 { font-family: var(--font); color: var(--text); font-size: .85rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--text); }
.footer-brand p { max-width: 340px; margin: 16px 0 20px; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 28px; font-size: .8rem; color: var(--muted); display: grid; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .launch-card:hover, .game-card:hover, .card:hover, .plan:hover, .btn:hover { transform: none; }
}

/* Payment and trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trust span { font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--body); background: var(--glass); }

/* Price per GB hint */
.per-gb { font-size: .78rem; color: var(--muted); margin: -14px 0 18px; }

/* Comparison table */
.compare td.us { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--brand) 8%, transparent); }
.compare th.us { background: color-mix(in srgb, var(--brand) 18%, var(--surface-2)); color: var(--text); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

/* Guides */
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--body); transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--brand); transform: translateY(-3px); text-decoration: none; }
.guide-card h3 { margin: 0; font-size: 1.12rem; }
.guide-card p { margin: 0; font-size: .93rem; flex: 1; }
.guide-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.guide-meta .game-dot { width: 26px; height: 26px; border-radius: 8px; }
.guide-meta .game-dot svg { width: 14px; height: 14px; }
.article { max-width: 800px; margin: 0 auto; padding: 0 20px; font-size: 1.04rem; }
.article h2 { font-size: 1.55rem; margin-top: 2em; }
.article h3 { margin-top: 1.5em; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin-bottom: .55em; }
.article pre { background: var(--code-bg); color: #d8d0f0; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.7; }
.article pre code { background: none; padding: 0; color: inherit; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--surface); margin-bottom: 36px; }
.toc b { color: var(--text); display: block; margin-bottom: 8px; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: .35em; }
.article-cta { margin-top: 48px; padding: 28px; border-radius: 18px; border: 1px solid var(--line-strong); background: radial-gradient(400px 160px at 100% 0%, var(--brand-glow), transparent 70%), var(--surface); }
.article-cta h3 { margin-top: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .cta, .hero-bg, .announce { display: none !important; }
  body { background: #fff; color: #000; }
}
.article code { overflow-wrap: anywhere; }

.article-cta .btn { white-space: normal; text-align: center; }

/* =====================================================================
   Motion system
   Everything animates transform/opacity only, and is switched off for
   visitors who ask their device to reduce motion (see the end).
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Drifting glow orbs behind every hero */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; pointer-events: none; }
.orb.o1 { width: 440px; height: 440px; right: -80px; top: -120px; background: radial-gradient(circle, var(--accent-glow), transparent 70%); animation: drift1 22s ease-in-out infinite alternate; }
.orb.o2 { width: 360px; height: 360px; left: -120px; bottom: -140px; background: radial-gradient(circle, rgba(216, 180, 254, .22), transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
.orb.o3 { width: 280px; height: 280px; left: 42%; top: 30%; background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 70%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -70px) scale(.9); } }
@keyframes drift3 { from { transform: translate(-60px, -40px); } to { transform: translate(80px, 60px) scale(1.2); } }
.hero-bg::after { animation: gridPan 40s linear infinite; }
@keyframes gridPan { to { background-position: 56px 100px; } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* Page-load entrance: children of .rise-group fade up in sequence */
.rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease-out) forwards; }
.rise-group > .rise:nth-child(1) { animation-delay: .05s; }
.rise-group > .rise:nth-child(2) { animation-delay: .15s; }
.rise-group > .rise:nth-child(3) { animation-delay: .25s; }
.rise-group > .rise:nth-child(4) { animation-delay: .35s; }
.rise-group > .rise:nth-child(5) { animation-delay: .45s; }
.launcher .rise:nth-child(1) { animation-delay: .3s; }
.launcher .rise:nth-child(2) { animation-delay: .42s; }
.launcher .rise:nth-child(3) { animation-delay: .54s; }
.launcher .rise:nth-child(4) { animation-delay: .66s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.page-hero .container > *, .game-hero .hero-grid > div > * { animation: rise .9s var(--ease-out) both; }
.page-hero .container > *:nth-child(2), .game-hero .hero-grid > div > *:nth-child(2) { animation-delay: .08s; }
.page-hero .container > *:nth-child(3), .game-hero .hero-grid > div > *:nth-child(3) { animation-delay: .16s; }
.page-hero .container > *:nth-child(4), .game-hero .hero-grid > div > *:nth-child(4) { animation-delay: .24s; }
.game-hero .hero-grid > div > *:nth-child(5) { animation-delay: .32s; }
.game-hero .hero-grid > div > *:nth-child(6) { animation-delay: .4s; }
.game-hero .game-emblem { animation: emblemIn 1.2s var(--ease-out) .2s both; }
@keyframes emblemIn { from { opacity: 0; transform: scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* Rotating word in the home headline */
.rotator { display: inline-block; position: relative; text-align: left; }
.rotator-word { display: inline-block; position: relative; color: var(--text); }
.rw-t { display: inline-block; position: relative; }
.rw-t::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; animation: underline 2.6s var(--ease-out) infinite;
}
.rotator-word.out { animation: wordOut .35s ease-in forwards; }
.rotator-word.in { animation: wordIn .5s var(--ease-spring) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-.35em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes underline { 0% { transform: scaleX(0); } 25%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Gradient text slowly shimmers */
.gradient-text { background-size: 200% auto; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 100% center; } }

/* Primary button: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* Logo */
.brand img { transition: transform .5s var(--ease-spring), filter .3s; }
.brand:hover img { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 10px 18px var(--brand-glow)); }

/* Header gains depth once you scroll */
.site-header { transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled { background: rgba(10, 6, 18, .92); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .6); border-bottom-color: var(--line-strong); }

/* Mobile menu slides down */
@media (max-width: 960px) {
  .nav.open .nav-links { animation: menuIn .35s var(--ease-out); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* Cursor spotlight: a glowing border that follows the pointer */
[data-spot] { position: relative; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 181, 253, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
[data-spot]:hover::before { opacity: 1; }
.card[data-spot] { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .08), transparent 45%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); }
.plan[data-spot] { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .08), transparent 45%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.plan.featured[data-spot] { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .1), transparent 45%), linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--bg-2)); }
.guide-card[data-spot], .step[data-spot], .contact-card[data-spot] { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .08), transparent 45%); }

/* Staggered reveal for grids */
.reveal { transition-delay: var(--d, 0s); }

/* Icons pop on card hover */
.card .icon { transition: transform .4s var(--ease-spring), box-shadow .3s; }
.card:hover .icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); box-shadow: 0 10px 24px -8px var(--accent-glow); }
.game-card .game-art svg { transition: transform .6s var(--ease-spring); }
.game-card:hover .game-art svg { transform: scale(1.12) rotate(-4deg); }
.game-card .game-art::after { transition: opacity .4s, transform 6s linear; }
.game-card:hover .game-art::after { opacity: .8; transform: translateY(-18px); }
.launch-card .game-dot { transition: transform .45s var(--ease-spring); }
.launch-card:hover .game-dot { transform: scale(1.1) rotate(-6deg); }

/* Scrolling feature ticker */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "◆"; font-size: .55rem; color: var(--brand); margin-left: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Animated bars fill when scrolled into view */
.ping .bar i { width: 0; transition: width 1.4s var(--ease-out); }
.visible .ping .bar i, .ping-list.visible .bar i { width: var(--w); }
.visible .ping:nth-child(2) .bar i { transition-delay: .08s; } .visible .ping:nth-child(3) .bar i { transition-delay: .16s; }
.visible .ping:nth-child(4) .bar i { transition-delay: .24s; } .visible .ping:nth-child(5) .bar i { transition-delay: .32s; }
.visible .ping:nth-child(6) .bar i { transition-delay: .4s; } .visible .ping:nth-child(7) .bar i { transition-delay: .48s; }
.visible .ping:nth-child(8) .bar i { transition-delay: .56s; }
.gauge .bar i { transition: width 1s var(--ease-out); }

/* Mock console: blinking cursor while lines type in */
.console .cursor { display: inline-block; width: .55em; height: 1em; vertical-align: -2px; background: var(--brand-2); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console .ln { display: block; animation: lineIn .35s var(--ease-out); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.status::before { animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); } }
.pill .dot { animation: pulseDot 2.2s ease-in-out infinite; }

/* Game emblem floats, with an orbiting light */
.game-emblem svg { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.emblem-chip { animation: bob 5s ease-in-out infinite; }
.emblem-chip.b { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.orbit { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); animation: spin 18s linear infinite; pointer-events: none; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px var(--accent-glow), 0 0 4px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tabs: sliding highlight */
.tabs { position: relative; }
.tabs .tab-ind { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out); z-index: 0; }
.tabs button { position: relative; z-index: 1; transition: color .2s; }
.tabs.js-ind button[aria-selected="true"] { background: none; box-shadow: none; }
.tab-panel:not([hidden]) .plan { animation: rise .6s var(--ease-out) both; }
.tab-panel:not([hidden]) .plan:nth-child(2) { animation-delay: .05s; } .tab-panel:not([hidden]) .plan:nth-child(3) { animation-delay: .1s; }
.tab-panel:not([hidden]) .plan:nth-child(4) { animation-delay: .15s; } .tab-panel:not([hidden]) .plan:nth-child(5) { animation-delay: .2s; }

/* Plan finder: recommended plan pulses when it changes */
.plan.recommended { animation: recPulse .9s var(--ease-out); }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(216, 180, 254, .55); } 100% { box-shadow: 0 0 0 18px rgba(216, 180, 254, 0); } }
.finder-result .rec { transition: opacity .2s; }
.finder-result .rec.swap { animation: wordIn .45s var(--ease-spring); }
.finder input[type="range"] { cursor: grab; }
.finder input[type="range"]:active { cursor: grabbing; }

/* FAQ: smooth open and close (height animated in JS) */
.faq details > div { overflow: hidden; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary::after { transition: transform .35s var(--ease-spring); }

/* Steps: number badge lights up */
.step::before { transition: transform .4s var(--ease-spring), background .3s; }
.step:hover::before { transform: scale(1.12); background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* Guide reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 0 12px var(--brand-glow); }

/* Count-up numbers keep their width steady */
[data-count] { font-variant-numeric: tabular-nums; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .orb, .particles, .orbit, .marquee-track { animation: none !important; }
  .particles { display: none; }
  .ping .bar i { width: var(--w); }
}

.mobile-only { display: none; }
@media (max-width: 960px) { .nav.open .mobile-only { display: list-item; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* Menu icon morphs into a close icon */
.nav-toggle path { transition: transform .3s var(--ease-out), opacity .2s; transform-origin: 12px 12px; }
.nav.open .nav-toggle path { d: path("M5 5L19 19M19 5L5 19"); }
@media (max-width: 960px) { .nav.open .nav-links { box-shadow: 0 30px 60px rgba(0,0,0,.6); max-height: calc(100vh - 110px); } }

/* =====================================================================
   Hexagon motif (matches the logo)
   ===================================================================== */
:root { --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.game-dot { clip-path: var(--hex); border-radius: 0 !important; }
.launch-card .game-dot { width: 56px; height: 56px; }
.eyebrow::before { width: 10px; height: 11px; background: currentColor; border-radius: 0; clip-path: var(--hex); }
.marquee span::after { content: "⬢"; font-size: .7rem; }
.checklist li::before { clip-path: var(--hex); border-radius: 0; border: 0; width: 22px; height: 24px; top: 2px; }
.icon { clip-path: var(--hex); border: 0; border-radius: 0; width: 50px; height: 56px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.contact-card .icon { width: 46px; height: 52px; }
.step::before { clip-path: var(--hex); border-radius: 0; padding: 12px 10px; }
.orbit i { clip-path: var(--hex); border-radius: 0; width: 12px; height: 13px; }
.pill b { border-radius: 6px; }
.brand img { filter: drop-shadow(0 4px 14px rgba(139, 92, 246, .35)); }

/* Contact form spam trap and status */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #fca5a5; }
.form.sent { animation: rise .6s var(--ease-out); }

/* Accessibility: links inside text are underlined, not just coloured */
main p a:not(.btn), main li a:not(.btn), .faq a, .footnote a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a:not(.btn):hover, main li a:not(.btn):hover { text-decoration-thickness: 2px; }
/* Headings that are styled smaller than their level */
.foot-h { font-family: var(--font); color: var(--text); font-size: .85rem; margin: 0 0 16px; letter-spacing: .02em; font-weight: 600; }
.launch-card h2 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.contact-card h2 { margin-bottom: 2px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.guide-card h2 { margin: 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.game-body h2 { font-size: 1.35rem; margin-bottom: 6px; font-weight: 600; letter-spacing: -.01em; }
.table-wrap:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.article pre:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* Launch offer */
.offer { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: radial-gradient(500px 220px at 0% 0%, var(--brand-glow), transparent 70%), radial-gradient(400px 200px at 100% 100%, rgba(216,180,254,.14), transparent 70%), var(--surface); }
.offer h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.offer-terms { margin: 0; padding: 22px 22px 22px 40px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: .9rem; }
.offer-terms li { margin-bottom: 8px; }
.offer-terms li:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; padding: 28px; } }
.code-chip { display: inline-flex; align-items: center; gap: 10px; font: 600 .9rem var(--mono); letter-spacing: .06em; color: var(--text); cursor: pointer;
  padding: 4px 10px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--brand-2) 70%, transparent); background: color-mix(in srgb, var(--brand) 14%, transparent); transition: background .2s, transform .2s; }
.code-chip:hover { background: color-mix(in srgb, var(--brand) 26%, transparent); }
.code-chip:active { transform: scale(.97); }
.code-chip.big { font-size: 1.25rem; padding: 12px 18px; border-radius: 12px; margin-top: 8px; }
.code-chip span { font: 600 .72rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); }
.code-chip.copied span { color: var(--ok); }
.offer-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; justify-content: center; text-align: center; margin: -24px auto 34px; padding: 12px 18px; max-width: 860px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); font-size: .92rem; }
.offer-tag { font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand); background: var(--brand-solid); padding: 3px 8px; border-radius: 6px; }
.announce strong { color: #fff; }
#offer + .section { padding-top: 30px; }
