/* ─────────────────────────────────────────────────────────────────────
   GAMESPY.DK — Visual System
   "Dark Ops Terminal" — modernized GameSpy-DNA with deliberate Web 1.0 charm
   ───────────────────────────────────────────────────────────────────── */

:root{
  /* Surfaces — deep terminal void */
  --bg:           #0a0d12;
  --bg-1:         #0e131a;
  --bg-2:         #141a23;
  --bg-3:         #1c2330;
  --bg-elev:      #232b3a;

  /* Ink */
  --ink:          #e9ecf3;
  --ink-2:        #a8b0c2;
  --ink-dim:      #6b7488;
  --ink-faint:    #3b4356;

  /* Brand — amber ops (GameSpy orange lineage) */
  --accent:       #ff7a1a;
  --accent-hi:    #ffa14d;
  --accent-deep:  #d75800;
  --amber:        #ffc233;

  /* Status colors (terminal palette) */
  --green:        #39ff7a;   /* online / good ping */
  --green-deep:   #0d6e36;
  --yellow:       #ffd23f;   /* warning ping */
  --red:          #ff3956;   /* full / offline */
  --cyan:         #4dd0ff;   /* links */
  --magenta:      #ff4dd2;   /* hot tag */

  /* Lines */
  --line:         #232a36;
  --line-2:       #2e3646;
  --line-hot:     #ff7a1a;

  /* Typography */
  --f-display:    "Space Grotesk", system-ui, sans-serif;
  --f-body:       "Geist", "Public Sans", system-ui, sans-serif;
  --f-mono:       "JetBrains Mono", ui-monospace, monospace;
  --f-pixel:      "VT323", "JetBrains Mono", monospace;
  --f-tiny-px:    "Press Start 2P", monospace;

  /* Rhythm */
  --pad: 14px;
  --gap: 16px;
  --radius: 4px;          /* sharp — this is a terminal, not a SaaS app */
}

/* ─── Theme variants (driven by Tweaks) ─────────────────────────────── */
[data-theme="green"]{
  --accent:       #39ff7a;
  --accent-hi:    #80ffac;
  --accent-deep:  #0c8a3a;
  --amber:        #b8ff5c;
  --line-hot:     #39ff7a;
}
[data-theme="cyan"]{
  --accent:       #4dd0ff;
  --accent-hi:    #94e2ff;
  --accent-deep:  #0a7fb8;
  --amber:        #4dd0ff;
  --line-hot:     #4dd0ff;
}
[data-theme="magenta"]{
  --accent:       #ff4dd2;
  --accent-hi:    #ff94e5;
  --accent-deep:  #b81f8e;
  --amber:        #ff7eb6;
  --line-hot:     #ff4dd2;
}

[data-density="compact"]{ --pad: 10px; --gap: 12px; }
[data-density="comfy"]  { --pad: 18px; --gap: 22px; }

/* ─── Base ──────────────────────────────────────────────────────────── */

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body{
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint terminal vignette */
  background:
    radial-gradient(ellipse at top, rgba(255,122,26,.04), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(57,255,122,.02), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

a{ color: var(--cyan); text-decoration: none; }
a:hover{ color: var(--accent-hi); text-decoration: underline; }

button{ font-family: inherit; }

/* ─── CRT scanline overlay ──────────────────────────────────────────── */

body[data-scanlines="1"]::before{
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.015) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

body[data-scanlines="1"]::after{
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
}

/* ─── Layout shell ──────────────────────────────────────────────────── */

.shell{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Topbar (ultra thin) ───────────────────────────────────────────── */

.topbar{
  background: #06080c;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.topbar .shell{
  display: flex;
  align-items: center;
  gap: 18px;
  height: 28px;
  overflow: hidden;
}
.topbar .tb-left{ display:flex; gap:18px; align-items:center; flex: 0 0 auto; }
.topbar .tb-right{ margin-left:auto; display:flex; gap:14px; align-items:center; }
.topbar b{ color: var(--ink-2); font-weight: 500; }
.topbar .online-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }

.tb-ticker{
  flex: 1; min-width: 0;
  display: flex; gap: 22px;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.tb-ticker .tk{ color: var(--ink-2); }
.tb-ticker .tk em{ color: var(--accent); font-style: normal; font-weight: 700; }
.tb-ticker-track{
  display: flex; gap: 22px;
  animation: ticker 60s linear infinite;
}
@keyframes ticker{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── Masthead ──────────────────────────────────────────────────────── */

.masthead{
  background:
    linear-gradient(180deg, #0c1118 0%, #07090d 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.masthead::before{
  /* faint grid */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,122,26,.04) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(to bottom, rgba(255,122,26,.04) 1px, transparent 1px) 0 0/40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.masthead .shell{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 16px;
  position: relative;
  z-index: 1;
}
.masthead-right{ margin-left:auto; display:flex; align-items:center; gap:16px; }

/* Logo */
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover{ color: var(--ink); text-decoration: none; }
.logo-mark{
  width: 46px; height: 46px;
  flex: 0 0 auto;
  position: relative;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0d12;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px #0a0d12,
    0 0 0 3px var(--accent),
    0 0 18px rgba(255,122,26,.35);
}
.logo-mark svg{ width: 30px; height: 30px; display:block; }
.logo-wm{ display:flex; flex-direction:column; gap:2px; }
.logo-wm .row1{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo-wm .row1 em{
  font-style: normal;
  color: var(--accent);
}
.logo-wm .row2{
  font-family: var(--f-tiny-px);
  font-size: 8px;
  color: var(--ink-dim);
  letter-spacing: .15em;
  margin-top: 2px;
}

/* search */
.searchbox{
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 6px 10px;
  gap: 8px;
  width: 320px;
}
.searchbox:focus-within{ border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,26,.15); }
.searchbox input{
  background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: var(--f-mono); font-size: 12px;
  flex: 1; min-width: 0;
}
.searchbox input::placeholder{ color: var(--ink-dim); }
.searchbox kbd{
  font-family: var(--f-mono); font-size: 10px;
  background: var(--bg-3); padding: 2px 5px; border-radius: 2px;
  color: var(--ink-dim); border: 1px solid var(--line);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.btn:hover{ border-color: var(--accent); color: var(--accent); }
.btn.primary{ background: var(--accent); color: #0a0d12; border-color: var(--accent); font-weight: 700; }
.btn.primary:hover{ background: var(--accent-hi); color: #0a0d12; }
.btn.ghost{ background: transparent; }

/* ─── Main nav ──────────────────────────────────────────────────────── */

.mainnav{
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.mainnav .shell{
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 40px;
}
.mainnav a{
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  position: relative;
}
.mainnav a:first-child{ border-left: 1px solid var(--line); }
.mainnav a:hover{ color: var(--accent); background: var(--bg-2); text-decoration: none; }
.mainnav a.active{ color: var(--accent); background: var(--bg-2); }
.mainnav a.active::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}
.mainnav .spacer{ flex: 1; }
.mainnav .nav-tag{
  font-size: 9px; padding: 1px 4px;
  background: var(--accent); color: #0a0d12;
  border-radius: 2px; font-weight: 700;
  margin-left: 4px;
}
.mainnav .nav-tag.new{ background: var(--green); color: #0a0d12; }
.mainnav .nav-tag.hot{ background: var(--red); color: #fff; animation: blink 1.5s steps(2) infinite; }

@keyframes blink{ 50%{opacity:.25} }

.blink{ animation: blink 1.2s steps(2) infinite; }

/* ─── Section heading (signature pattern) ───────────────────────────── */

.section-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
  font-family: var(--f-display);
}
.section-head .sh-tag{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(255,122,26,.1);
  border: 1px solid rgba(255,122,26,.3);
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-head h2{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-head .sh-line{
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, transparent 100%);
  opacity: .5;
}
.section-head .sh-link{
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-dim);
}
.section-head .sh-link:hover{ color: var(--accent); }

/* ─── Cards / panels ────────────────────────────────────────────────── */

.panel{
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel-hd{
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  display: flex; align-items:center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  background:
    linear-gradient(90deg, rgba(255,122,26,.08) 0%, transparent 100%);
}
.panel-hd .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.panel-hd .ct{
  margin-left: auto;
  color: var(--ink-dim);
  font-size: 10px;
}
.panel-body{ padding: var(--pad); }

/* ─── Planet network ribbon ─────────────────────────────────────────── */

.planet-ribbon{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 10px 0;
}
.planet-ribbon .shell{ display:flex; align-items:center; gap: 12px; }
.planet-label{
  flex: 0 0 auto;
  font-family: var(--f-tiny-px);
  font-size: 8px;
  color: var(--accent);
  letter-spacing: .15em;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.planet-track{
  flex: 1; min-width: 0;
  display: flex; gap: 8px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
}
.planet-chip{
  display: flex; align-items: center; gap: 6px;
  flex: 0 0 auto;
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}
.planet-chip:hover{ border-color: var(--accent); color: var(--accent); text-decoration:none; }
.planet-chip .pl-ic{
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 2px;
  font-family: var(--f-tiny-px);
  font-size: 6px;
  color: #0a0d12;
  font-weight: 700;
}
.planet-chip em{ font-style: normal; color: var(--ink-dim); font-size: 10px; }

/* ─── Hero feature ──────────────────────────────────────────────────── */

.hero-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-top: 22px;
}

.hero{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  background: var(--bg-2);
  isolation: isolate;
}
.hero-art{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-art::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0) 0%, rgba(10,13,18,.5) 55%, rgba(10,13,18,.98) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding: 24px;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
}
.hero-eyebrow{
  display: inline-flex;
  align-items: center; gap: 8px;
  align-self: flex-start;
  background: var(--accent);
  color: #0a0d12;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-eyebrow .blink-d{
  width:6px; height:6px; border-radius:50%; background:#0a0d12;
  animation: blink 1s steps(2) infinite;
}
.hero h1{
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  max-width: 90%;
  text-wrap: balance;
}
.hero h1 em{ font-style: normal; color: var(--accent); }
.hero p{
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 56ch;
  line-height: 1.55;
}
.hero-meta{
  display: flex; gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-meta b{ color: var(--ink-2); font-weight: 500; }
.hero-meta .sep{ color: var(--ink-faint); }

/* sub-hero (smaller features under hero) */
.sub-hero{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.feature-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 210px;
  background: var(--bg-2);
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.feature-card .art{ position:absolute; inset:0; z-index:0; }
.feature-card .art::after{
  content: ""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,13,18,.96) 100%);
}
.feature-card .fc-inner{
  position: relative; z-index: 1;
  padding: 16px;
}
.feature-card .fc-tag{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.feature-card h3{
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.feature-card .fc-meta{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: .04em;
}

/* ─── News bites sidebar ────────────────────────────────────────────── */

.news-list{ display: flex; flex-direction: column; }
.news-item{
  display: flex; gap: 10px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
}
.news-item:last-child{ border-bottom: 0; }
.news-item:hover{ background: var(--bg-2); }
.news-item .ni-time{
  flex: 0 0 56px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  padding-top: 2px;
  letter-spacing: .04em;
}
.news-item .ni-time .new{
  display: inline-block;
  background: var(--green);
  color: #0a0d12;
  padding: 1px 4px;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 9px;
  border-radius: 1px;
  letter-spacing: .05em;
}
.news-item .ni-time .hot{
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 1px 4px;
  font-weight: 700;
  font-size: 9px;
  border-radius: 1px;
  letter-spacing: .05em;
}
.news-item .ni-body{ min-width: 0; flex: 1; }
.news-item .ni-body h4{
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.news-item .ni-body p{
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.news-item:hover .ni-body h4{ color: var(--accent); }

.tags{ display:flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag{
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--bg-3);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.tag.q3{ color: #ff6b35; border-color: #5e2a14; background: rgba(255,107,53,.08); }
.tag.hl{ color: #ffa14d; border-color: #5e3a14; background: rgba(255,161,77,.08); }
.tag.cs{ color: #fdd835; border-color: #5e521a; background: rgba(253,216,53,.08); }
.tag.dk{ color: #ef5350; border-color: #5e1f1c; background: rgba(239,83,80,.08); }
.tag.new{ color: #39ff7a; border-color: #1a4d2e; background: rgba(57,255,122,.08); }
.tag.retro{ color: #b89cff; border-color: #3a2e5e; background: rgba(184,156,255,.08); }

/* ─── Server browser (the signature feature) ────────────────────────── */

.serverbrowser{ margin-top: 8px; }

.sb-toolbar{
  display: flex; gap: 8px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  align-items: center;
  flex-wrap: wrap;
}
.sb-toolbar .filt{
  display:flex; align-items:center; gap:6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.sb-toolbar select, .sb-toolbar input{
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 2px;
  padding: 4px 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  outline: none;
}
.sb-toolbar select:focus, .sb-toolbar input:focus{ border-color: var(--accent); }
.sb-toolbar .filt-spacer{ flex: 1; }
.sb-toolbar .sb-stats{
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.sb-toolbar .sb-stats b{ color: var(--green); font-weight: 500; }

.sb-table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 11.5px;
}
.sb-table thead{
  background: var(--bg-2);
  color: var(--ink-dim);
  text-align: left;
}
.sb-table th{
  padding: 6px 10px;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.sb-table th:hover{ color: var(--accent); }
.sb-table th.sorted::after{
  content: " ▾";
  color: var(--accent);
}
.sb-table tbody tr{
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sb-table tbody tr:hover{ background: rgba(255,122,26,.05); }
.sb-table tbody tr.fav{ background: rgba(255,194,51,.04); }
.sb-table tbody tr.fav:hover{ background: rgba(255,194,51,.08); }
.sb-table td{
  padding: 7px 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.sb-table td.name{
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.sb-table td.name .star{ color: var(--amber); margin-right: 6px; }
.sb-table td.name .tag-inline{
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--accent);
  background: rgba(255,122,26,.1);
  border: 1px solid rgba(255,122,26,.3);
  padding: 0px 4px;
  border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
  vertical-align: middle;
}
.sb-table td.game{ color: var(--ink-2); }
.sb-table td.players{ color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sb-table td.ping{ font-variant-numeric: tabular-nums; }

.ping-bar{
  display: inline-flex; align-items: center; gap: 6px;
}
.ping-bar i{
  display: inline-block;
  width: 3px;
  background: var(--ink-faint);
}
.ping-bar i:nth-child(1){ height: 4px; }
.ping-bar i:nth-child(2){ height: 7px; }
.ping-bar i:nth-child(3){ height: 10px; }
.ping-bar i:nth-child(4){ height: 13px; }
.ping-bar[data-q="4"] i{ background: var(--green); }
.ping-bar[data-q="3"] i:nth-child(-n+3){ background: var(--green); }
.ping-bar[data-q="2"] i:nth-child(-n+2){ background: var(--yellow); }
.ping-bar[data-q="1"] i:nth-child(1){ background: var(--red); }
.ping-bar span{
  color: var(--ink-2); min-width: 30px; text-align: right;
}
.ping-bar[data-q="4"] span{ color: var(--green); }
.ping-bar[data-q="1"] span{ color: var(--red); }

.player-bar{
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.player-bar .pb-bar{
  width: 60px; height: 5px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.player-bar .pb-bar i{
  display: block; height: 100%;
  background: var(--accent);
}
.player-bar.full .pb-bar i{ background: var(--red); }

.sb-empty{ padding: 30px; text-align: center; color: var(--ink-dim); font-family: var(--f-mono); }

/* ─── Two-col section ───────────────────────────────────────────────── */

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 980px){ .two-col{ grid-template-columns: 1fr; } }

/* ─── Top 10 ────────────────────────────────────────────────────────── */

.top10{ list-style: none; padding: 0; margin: 0; }
.top10 li{
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.top10 li:last-child{ border-bottom: 0; }
.top10 li:hover{ background: var(--bg-2); }
.top10 .rank{
  flex: 0 0 38px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink-faint);
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.top10 li:nth-child(1) .rank{ color: var(--amber); }
.top10 li:nth-child(2) .rank{ color: var(--ink-2); }
.top10 li:nth-child(3) .rank{ color: #cd7f32; }
.top10 .t10-name{
  flex: 1; min-width: 0;
}
.top10 .t10-name b{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top10 .t10-name span{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.top10 .t10-trend{
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.top10 .t10-trend.up{ color: var(--green); }
.top10 .t10-trend.down{ color: var(--red); }
.top10 .t10-trend.flat{ color: var(--ink-dim); }
.top10 .t10-trend b{
  display: block;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ─── Reviews ───────────────────────────────────────────────────────── */

.reviews{ display: flex; flex-direction: column; }
.review-row{
  display: flex; gap: 14px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
}
.review-row:last-child{ border-bottom: 0; }
.review-row:hover{ background: var(--bg-2); }
.review-art{
  flex: 0 0 96px;
  width: 96px; height: 96px;
  border-radius: 2px;
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
.review-body{ flex: 1; min-width: 0; }
.review-body h3{
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
.review-body p{
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-body .rb-meta{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.score-box{
  flex: 0 0 64px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: rgba(255,122,26,.08);
  flex-direction: column;
  align-self: center;
  position: relative;
}
.score-box .sc{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.score-box .sc-lbl{
  font-family: var(--f-tiny-px);
  font-size: 6px;
  color: var(--ink-dim);
  margin-top: 4px;
  letter-spacing: .15em;
}
.score-box.gold{ border-color: var(--amber); background: rgba(255,194,51,.08); }
.score-box.gold .sc{ color: var(--amber); }
.score-box.meh{ border-color: var(--yellow); background: rgba(255,210,63,.06); }
.score-box.meh .sc{ color: var(--yellow); }
.score-box.bad{ border-color: var(--red); background: rgba(255,57,86,.06); }
.score-box.bad .sc{ color: var(--red); }

/* ─── FilePlanet downloads ──────────────────────────────────────────── */

.dl-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .dl-grid{ grid-template-columns: repeat(2, 1fr); } }

.dl-card{
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dl-card .dl-art{
  height: 110px;
  position: relative;
}
.dl-card .dl-body{ padding: 10px 12px; flex: 1; display:flex; flex-direction:column; gap:6px; }
.dl-card h4{
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 34px;
}
.dl-card .dl-meta{
  display: flex; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: .04em;
}
.dl-card .dl-meta b{ color: var(--ink-2); font-weight: 500; }
.dl-card .dl-row{
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  margin-top: auto;
}
.dl-card .dl-size{ color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl-card .dl-btn{
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--accent);
  color: #0a0d12;
  border-radius: 2px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dl-card .dl-btn:hover{ background: var(--accent-hi); text-decoration: none; color: #0a0d12; }
.dl-card .stars{ color: var(--amber); letter-spacing: -1px; font-size: 11px; }

/* ─── Forum strip ───────────────────────────────────────────────────── */

.forum-strip{ }
.forum-row{
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  align-items: center;
  gap: 10px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.forum-row:last-child{ border-bottom: 0; }
.forum-row:hover{ background: var(--bg-2); }
.forum-row .fr-title{
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-row .fr-title .fr-sub{
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.forum-row .fr-replies{
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.forum-row .fr-replies span{ display:block; font-size: 9px; color: var(--ink-dim); text-transform: uppercase; }
.forum-row .fr-time{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-align: right;
}
.forum-row .fr-time b{ display: block; color: var(--ink-2); font-size: 11px; font-weight: 500; }

/* ─── Poll widget ───────────────────────────────────────────────────── */

.poll{ }
.poll h4{
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.poll-opts{ display:flex; flex-direction:column; gap: 6px; }
.poll-opt{
  position: relative;
  display: flex; align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  cursor: pointer;
  background: var(--bg-2);
  overflow: hidden;
}
.poll-opt:hover{ border-color: var(--accent); }
.poll-opt .pb{
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,122,26,.12);
  z-index: 0;
}
.poll-opt > *{ position: relative; z-index: 1; }
.poll-opt input{ accent-color: var(--accent); }
.poll-opt .pct{
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.poll .poll-foot{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Ad / banner ───────────────────────────────────────────────────── */

.ad-slot{
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255,122,26,.02) 0 10px, transparent 10px 20px);
  color: var(--ink-faint);
  font-family: var(--f-tiny-px);
  font-size: 8px;
  letter-spacing: .15em;
  text-align: center;
  padding: 10px;
  min-height: 90px;
}
.ad-728{ min-height: 90px; margin: 24px 0; }
.ad-300{ min-height: 250px; }

.house-ad{
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #1c0f0a 0%, #0a0d12 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.house-ad::before{
  content: "AD";
  position: absolute; top: 4px; right: 6px;
  font-family: var(--f-tiny-px);
  font-size: 6px;
  color: var(--ink-faint);
  letter-spacing: .15em;
}
.house-ad .ha-art{
  flex: 0 0 80px;
  width: 80px; height: 80px;
  border-radius: 2px;
  display: grid; place-items: center;
}
.house-ad .ha-body{ flex: 1; min-width: 0; }
.house-ad h4{
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--accent);
}
.house-ad p{
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--ink-2);
}
.house-ad .ha-cta{
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ─── Footer ────────────────────────────────────────────────────────── */

.site-foot{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #06080c;
  padding: 32px 0 24px;
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.foot-grid h5{
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin: 0 0 12px;
}
.foot-grid ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid a{
  font-size: 12px;
  color: var(--ink-2);
}
.foot-grid a:hover{ color: var(--accent); }
.foot-about p{ font-size: 12px; color: var(--ink-dim); line-height: 1.5; margin: 8px 0 14px; }

.visitor-counter{
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #000;
  border: 1px solid var(--green);
  border-radius: 2px;
  font-family: var(--f-pixel);
  font-size: 18px;
  color: var(--green);
  letter-spacing: .05em;
  text-shadow: 0 0 6px var(--green);
}
.visitor-counter span{
  display: inline-block;
  background: #001a08;
  padding: 0 4px;
  border: 1px solid var(--green-deep);
  min-width: 14px;
  text-align: center;
}
.visitor-label{
  display:block;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--ink-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.foot-legal{
  margin-top: 22px;
  display: flex; gap: 18px; align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-wrap: wrap;
}
.foot-legal a{ color: var(--ink-dim); }
.foot-legal .est{ color: var(--accent); }
.foot-legal .spacer{ flex: 1; }
.foot-legal .bvi{ color: var(--ink-faint); }

/* ─── Scroll to top ─────────────────────────────────────────────────── */

.bvi-banner{
  text-align: center;
  font-family: var(--f-tiny-px);
  font-size: 7px;
  color: var(--ink-faint);
  letter-spacing: .2em;
  margin: 14px 0;
}

/* ─── Generic poster art (no real images) ───────────────────────────── */
/* Each game gets a deterministic colorway + bold title overlay so the
   site looks rich without needing real screenshots. */

.poster{
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.poster .ttl{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 56px);
  letter-spacing: -.03em;
  line-height: .9;
  color: rgba(255,255,255,.94);
  text-align: center;
  white-space: pre;
  text-shadow:
    2px 2px 0 rgba(0,0,0,.55),
    0 0 30px rgba(0,0,0,.4);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}
.poster .sub{
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-tiny-px);
  font-size: 7px;
  color: rgba(255,255,255,.5);
  letter-spacing: .25em;
  z-index: 2;
  text-align: center;
  white-space: nowrap;
}
.poster::before{
  /* halftone dither */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,.18) 1px, transparent 1.5px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.06) 1px, transparent 1.5px);
  background-size: 6px 6px, 6px 6px;
  z-index: 1;
}
.poster::after{
  /* scanlines on art */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
  z-index: 1;
}

/* poster colorways */
.poster.p-quake     { background: radial-gradient(ellipse at center, #b04a1c 0%, #4a1208 70%, #1a0500 100%); }
.poster.p-halflife  { background: radial-gradient(ellipse at center, #d68a1c 0%, #5e3b08 60%, #1a1004 100%); }
.poster.p-cs        { background: radial-gradient(ellipse at center, #1c5a8a 0%, #08294a 70%, #02101a 100%); }
.poster.p-doom      { background: radial-gradient(ellipse at center, #6a0a0a 0%, #2a0202 70%, #100000 100%); }
.poster.p-ut        { background: radial-gradient(ellipse at center, #4a1c8a 0%, #1e0a4a 70%, #08021a 100%); }
.poster.p-stalker   { background: radial-gradient(ellipse at center, #6e5a1c 0%, #2e2408 70%, #100c02 100%); }
.poster.p-deus      { background: radial-gradient(ellipse at center, #1c6e5a 0%, #082e24 70%, #02100c 100%); }
.poster.p-tf2       { background: radial-gradient(ellipse at center, #c44a1c 0%, #6a2208 60%, #1e0a02 100%); }
.poster.p-mc        { background: radial-gradient(ellipse at center, #3a8a1c 0%, #1a4a08 70%, #061a02 100%); }
.poster.p-baldur    { background: radial-gradient(ellipse at center, #8a1c1c 0%, #4a0808 70%, #1a0202 100%); }
.poster.p-cs2       { background: radial-gradient(ellipse at center, #1c4a8a 0%, #082248 70%, #020a18 100%); }
.poster.p-arma      { background: radial-gradient(ellipse at center, #5a6a1c 0%, #1e2408 70%, #080c02 100%); }
.poster.p-tarkov    { background: radial-gradient(ellipse at center, #4a4a4a 0%, #1a1a1a 70%, #0a0a0a 100%); }
.poster.p-helldiver { background: radial-gradient(ellipse at center, #8a5a1c 0%, #4a2c08 70%, #1a1002 100%); }
.poster.p-pal       { background: radial-gradient(ellipse at center, #1c8a8a 0%, #084a4a 70%, #021a1a 100%); }
.poster.p-rust      { background: radial-gradient(ellipse at center, #a04020 0%, #401608 70%, #100402 100%); }
.poster.p-dayz      { background: radial-gradient(ellipse at center, #5a3a1c 0%, #221408 70%, #0a0402 100%); }
.poster.p-elden     { background: radial-gradient(ellipse at center, #d1a23c 0%, #5a3e0c 60%, #1c1002 100%); }

/* mini icon variants for planet network */
.pl-q  { background: #b04a1c; }
.pl-hl { background: #d68a1c; }
.pl-cs { background: #1c5a8a; }
.pl-dm { background: #6a0a0a; }
.pl-ut { background: #4a1c8a; }
.pl-st { background: #6e5a1c; }
.pl-dx { background: #1c6e5a; }
.pl-mc { background: #3a8a1c; }
.pl-bg { background: #8a1c1c; }
.pl-tf { background: #c44a1c; }
.pl-ar { background: #5a6a1c; }
.pl-tk { background: #4a4a4a; }

/* ─── Utility ───────────────────────────────────────────────────────── */
.mono{ font-family: var(--f-mono); }
.dim{ color: var(--ink-dim); }
.accent{ color: var(--accent); }
.green{ color: var(--green); }
.red{ color: var(--red); }
.amber{ color: var(--amber); }

.ascii-divider{
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-align: center;
  margin: 20px 0;
  user-select: none;
}

.kbd-hint{
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-top: 8px;
}
.kbd-hint kbd{
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--ink-2);
}

/* ─── DOWNLOADS / CONNECT PAGE ──────────────────────────────────────── */

.dl-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #14100a 0%, #0a0d12 60%);
  margin-top: 22px;
  padding: 30px 32px;
}
.dl-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(to right, rgba(255,122,26,.05) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(to bottom, rgba(255,122,26,.05) 1px, transparent 1px) 0 0/32px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  pointer-events:none;
}
.dl-hero .inner{ position:relative; z-index:1; max-width: 720px; }
.dl-hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--accent); letter-spacing:.1em; text-transform:uppercase;
  border:1px solid rgba(255,122,26,.3); background:rgba(255,122,26,.08);
  padding:4px 10px; border-radius:2px; margin-bottom:16px;
}
.dl-hero h1{
  font-family: var(--f-display); font-weight:800;
  font-size: 40px; line-height:1.02; letter-spacing:-.02em;
  margin:0 0 14px; text-wrap:balance;
}
.dl-hero h1 em{ font-style:normal; color: var(--accent); }
.dl-hero p{ font-size:15px; color: var(--ink-2); line-height:1.6; margin:0 0 20px; max-width: 60ch; }
.dl-hero .cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

.dl-hero .live-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--f-mono); font-size:12px; color: var(--green);
  border:1px solid var(--green-deep); background: rgba(57,255,122,.06);
  padding:7px 12px; border-radius:3px;
}

/* status strip */
.status-strip{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1px;
  background: var(--line); border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; margin-top: 16px;
}
.status-cell{
  background: var(--bg-1); padding:14px 16px;
}
.status-cell .lbl{
  font-family: var(--f-mono); font-size:10px; color: var(--ink-dim);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px;
}
.status-cell .val{
  font-family: var(--f-display); font-weight:800; font-size:24px;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height:1;
}
.status-cell .val.ok{ color: var(--green); }
.status-cell .sub{
  font-family: var(--f-mono); font-size:10px; color: var(--ink-dim); margin-top:4px;
}

/* steps */
.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
@media (max-width: 900px){ .steps{ grid-template-columns:1fr; } }
.step{
  position:relative;
  background: var(--bg-1); border:1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.step .num{
  font-family: var(--f-display); font-weight:800; font-size: 40px;
  line-height:1; color: var(--ink-faint); margin-bottom: 10px;
}
.step.active .num{ color: var(--accent); }
.step h3{
  font-family: var(--f-display); font-size:17px; font-weight:700;
  margin:0 0 8px; letter-spacing:-.01em;
}
.step p{ font-size:13px; color: var(--ink-2); line-height:1.55; margin:0 0 12px; }

/* code block */
.codeblock{
  background: #06080c; border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; margin: 0;
}
.codeblock .cb-bar{
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-bottom:1px solid var(--line);
  background: var(--bg-1);
  font-family: var(--f-mono); font-size:11px; color: var(--ink-dim);
}
.codeblock .cb-bar .fname{ color: var(--ink-2); }
.codeblock .cb-copy{
  margin-left:auto; cursor:pointer;
  font-family: var(--f-mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.06em; color: var(--accent);
  border:1px solid rgba(255,122,26,.3); background:rgba(255,122,26,.06);
  padding:2px 8px; border-radius:2px;
}
.codeblock .cb-copy:hover{ background: var(--accent); color:#0a0d12; }
.codeblock pre{
  margin:0; padding:14px 16px; overflow-x:auto;
  font-family: var(--f-mono); font-size:12px; line-height:1.65; color: var(--ink-2);
}
.codeblock pre .c{ color: var(--ink-faint); }
.codeblock pre .ip{ color: var(--green); }
.codeblock pre .host{ color: var(--accent-hi); }

/* big download row */
.dl-list{ display:flex; flex-direction:column; }
.dl-row-lg{
  display:grid; grid-template-columns: 52px 1fr auto auto; align-items:center;
  gap:16px; padding:16px var(--pad);
  border-bottom:1px solid var(--line);
}
.dl-row-lg:last-child{ border-bottom:0; }
.dl-row-lg:hover{ background: var(--bg-2); }
.dl-row-lg .ic{
  width:52px; height:52px; border-radius:3px;
  display:grid; place-items:center;
  font-family: var(--f-tiny-px); font-size:9px; color:#0a0d12; font-weight:700;
}
.dl-row-lg .meta h4{
  margin:0 0 4px; font-size:15px; font-weight:600; color:var(--ink);
  display:flex; align-items:center; gap:8px;
}
.dl-row-lg .meta .badge{
  font-family: var(--f-mono); font-size:9px; text-transform:uppercase; letter-spacing:.05em;
  padding:1px 5px; border-radius:2px;
}
.badge.src{ color: var(--cyan); border:1px solid #1c5a8a; background:rgba(77,208,255,.08); }
.badge.req{ color: var(--green); border:1px solid var(--green-deep); background:rgba(57,255,122,.08); }
.badge.beta{ color: var(--yellow); border:1px solid #5e521a; background:rgba(255,210,63,.08); }
.dl-row-lg .meta p{ margin:0; font-size:12px; color: var(--ink-dim); line-height:1.45; }
.dl-row-lg .meta .fileline{
  font-family: var(--f-mono); font-size:10px; color: var(--ink-faint);
  margin-top:5px; letter-spacing:.03em;
}
.dl-row-lg .platforms{ display:flex; gap:6px; }
.dl-row-lg .platforms span{
  font-family: var(--f-mono); font-size:10px; color: var(--ink-dim);
  border:1px solid var(--line-2); border-radius:2px; padding:2px 6px;
}
.dl-row-lg .get{
  display:inline-flex; flex-direction:column; align-items:flex-end; gap:4px;
}
.dl-row-lg .get .gbtn{
  display:inline-flex; align-items:center; gap:6px;
  background: var(--accent); color:#0a0d12; font-weight:700;
  font-family: var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em;
  padding:7px 14px; border-radius:3px; white-space:nowrap;
}
.dl-row-lg .get .gbtn:hover{ background: var(--accent-hi); text-decoration:none; color:#0a0d12; }
.dl-row-lg .get .gbtn.alt{
  background:transparent; color:var(--accent); border:1px solid var(--accent);
}
.dl-row-lg .get .gbtn.alt:hover{ background:var(--accent); color:#0a0d12; }
.dl-row-lg .get .dls{ font-family: var(--f-mono); font-size:10px; color: var(--ink-faint); }

/* compatibility table */
.compat{ width:100%; border-collapse:collapse; font-family: var(--f-mono); font-size:12px; }
.compat th, .compat td{ padding:9px 12px; text-align:left; border-bottom:1px solid var(--line); }
.compat thead th{
  font-size:10px; text-transform:uppercase; letter-spacing:.08em; color: var(--ink-dim);
  background: var(--bg-2); font-weight:500;
}
.compat td.gname{ color: var(--ink); font-family: var(--f-body); font-size:13px; font-weight:500; }
.compat .yes{ color: var(--green); }
.compat .no{ color: var(--red); }
.compat .partial{ color: var(--yellow); }
.compat tbody tr:hover{ background: var(--bg-2); }

/* notice banner */
.notice{
  display:flex; gap:14px; align-items:flex-start;
  border:1px solid var(--line-2); border-left:3px solid var(--accent);
  background: var(--bg-1); border-radius: var(--radius);
  padding:16px 18px; margin-top: 8px;
}
.notice .ni{
  flex:0 0 auto; font-family: var(--f-mono); font-size:18px; color: var(--accent);
}
.notice .nb{ font-size:13px; color: var(--ink-2); line-height:1.6; }
.notice .nb b{ color: var(--ink); }
.notice .nb code{
  font-family: var(--f-mono); font-size:12px; color: var(--accent-hi);
  background: var(--bg-3); padding:1px 5px; border-radius:2px;
}
