/* ==========================================================================
   Indie Game Radar — design system
   Dark surfaces, accent in the edges. One spacing scale, one type scale.
   ========================================================================== */

:root {
  /* Surfaces: warm-neutral near-black, four steps of elevation */
  --bg:          #08080a;
  --bg-soft:     #0d0d11;
  --surface:     #131318;
  --surface-2:   #1a1a21;
  --surface-3:   #23232c;

  /* Hairlines — alpha, so they read correctly on every surface */
  --line:        rgba(255, 255, 255, .07);
  --line-2:      rgba(255, 255, 255, .12);
  --line-3:      rgba(255, 255, 255, .20);

  /* Ink */
  --text:        #f4f4f7;
  --text-2:      #a2a2b0;
  --text-3:      #6d6d7b;

  /* Accent — the logo red. Used on edges, small fills and one CTA per view. */
  --accent:      #ff2e2e;
  --accent-hot:  #ff5147;
  --accent-dim:  #b81d1d;
  --accent-wash: rgba(255, 46, 46, .10);
  --accent-line: rgba(255, 46, 46, .38);

  --good:        #46dd8a;
  --good-wash:   rgba(70, 221, 138, .12);
  --warn:        #ffc46b;
  --warn-wash:   rgba(255, 196, 107, .12);

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 10px 34px rgba(0, 0, 0, .45);
  --sh-3: 0 28px 70px rgba(0, 0, 0, .6);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 34px);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One soft accent bloom behind the top of the page — depth without a colour wash */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 560px;
  background: radial-gradient(1100px 380px at 50% -170px, rgba(255, 46, 46, .16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(36px, 6vw, 68px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 40px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;   /* a long descriptor must drop to its own line, not widen the page */
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.section-head .more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.section-head .more:hover { color: var(--accent); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.eyebrow--muted { color: var(--text-3); }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px rgba(255, 46, 46, .22);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-xs);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.site-nav a.is-active { color: var(--text); }
.nav-yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 8px 14px !important;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text) !important;
}
.nav-yt:hover { border-color: var(--accent); background: var(--accent-wash) !important; color: var(--accent) !important; }
.nav-yt svg { flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-xs);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

.footer-yt { margin-top: 16px; }

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { background: var(--accent-hot); box-shadow: 0 6px 22px rgba(255, 46, 46, .3); }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-3); box-shadow: none; }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; }

.btn-danger { background: transparent; border-color: rgba(255, 92, 92, .4); color: #ff8b8b; }
.btn-danger:hover { background: rgba(255, 60, 60, .12); box-shadow: none; }

.btn-sm { padding: 7px 13px; font-size: .8rem; }
.btn[disabled] { opacity: .55; cursor: default; }

/* Small factual labels */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-2);
  background: rgba(255, 255, 255, .03);
}
.chip--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }

.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-3);
}
.meta-line .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ------------------------------------------------------------ genre radar -- */

.radar-hero { padding-block: clamp(26px, 4vw, 54px) clamp(18px, 2.5vw, 30px); }
.radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.radar-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.radar {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 46, 46, .06), transparent 62%),
    radial-gradient(circle at 50% 50%, var(--surface) 0%, var(--bg) 78%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .7), 0 20px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.radar-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-rings .ring { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: .6; }
.radar-rings .ring-outer { stroke: rgba(255, 46, 46, .35); stroke-width: 1; }
.radar-rings .cross { stroke: rgba(255, 255, 255, .07); stroke-width: .6; }
.radar-rings .tick { stroke: rgba(255, 255, 255, .18); stroke-width: .8; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 46, 46, .34) 0deg,
    rgba(255, 46, 46, .10) 18deg,
    rgba(255, 46, 46, 0) 46deg,
    rgba(255, 46, 46, 0) 360deg);
  opacity: 0;
}
.radar.is-sweeping .radar-sweep { opacity: 1; animation: radar-spin 5s linear infinite; }
@keyframes radar-spin { to { transform: rotate(360deg); } }

.radar-blips { position: absolute; inset: 0; }
.blip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.blip-dot {
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 46, 46, .5);
  opacity: .42;   /* visible at rest so the dial reads as populated between sweeps */
  transition: opacity .3s var(--ease);
}
.blip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: rgba(8, 8, 10, .86);
  border: 1px solid var(--accent-line);
  font-size: .74rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.blip-label b { font-weight: 600; color: var(--text); }
.blip-label i { font-style: normal; color: var(--accent); font-weight: 700; }
.blip.flip { flex-direction: row-reverse; }
.blip.flip .blip-label { transform: translateX(4px); }

.blip.lit .blip-dot { opacity: 1; animation: blip-ping 2.6s var(--ease) forwards; }
.blip.lit .blip-label { animation: blip-label 2.6s var(--ease) forwards; }
.blip.static .blip-dot { opacity: 1; animation: none; }
.blip.static .blip-label { opacity: 1; transform: none; animation: none; }
.blip:hover .blip-label, .blip:focus-visible .blip-label { opacity: 1; transform: none; animation: none; }
.blip:hover .blip-dot, .blip:focus-visible .blip-dot { opacity: 1; animation: none; box-shadow: 0 0 0 5px rgba(255, 46, 46, .18); }

@keyframes blip-ping {
  0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 46, 46, .55); }
  35%  { box-shadow: 0 0 0 12px rgba(255, 46, 46, 0); }
  75%  { opacity: 1; }
  100% { opacity: .42; box-shadow: 0 0 0 0 rgba(255, 46, 46, 0); }
}
@keyframes blip-label {
  0%   { opacity: 0; transform: translateX(-4px); }
  12%  { opacity: 1; transform: translateX(0); }
  74%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

.radar-caption { margin: 0; color: var(--text-3); font-size: .76rem; letter-spacing: .04em; }

.radar-side h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 14px; text-wrap: balance; }
.radar-lede { color: var(--text-2); font-size: 1.02rem; margin: 0 0 22px; max-width: 54ch; }

.genre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.genre-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.genre-list a:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-2px); }
.genre-count { color: var(--accent); font-weight: 700; font-size: .82rem; }

.genre-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-lg { padding: 9px 15px; font-size: .85rem; }
.chip-lg b { color: var(--accent); margin-left: 4px; }
.chip-lg:hover { border-color: var(--accent-line); color: var(--text); }

.genre-row-head h3 a { transition: color .2s var(--ease); }
.genre-row-head h3 a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .radar-grid { grid-template-columns: 1fr; }
  .radar-stage { order: 2; }
  .radar { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar.is-sweeping .radar-sweep { animation: none; opacity: .18; }
}

/* --------------------------------------------------------- home / feature -- */

.hero { padding-block: clamp(28px, 4.5vw, 52px) clamp(20px, 3vw, 32px); }

/* Page head with readouts in the space beside the title */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); text-wrap: balance; }
.page-stats { display: flex; gap: 0; flex-wrap: wrap; }
.page-stat { padding: 2px 22px; border-left: 1px solid var(--line-2); }
.page-stat:first-child { padding-left: 0; border-left: 0; }
.page-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.page-stat span {
  display: block;
  margin-top: 2px;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}

.feature {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-2);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, .92) 0%, rgba(8, 8, 10, .35) 45%, transparent 75%);
}
.feature-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.6vw, 32px);
  z-index: 1;
}
.feature-body h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
  margin-bottom: 10px;
  text-wrap: balance;
}
.feature-body p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: clamp(.92rem, 1.1vw, 1.02rem);
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* No image: keep the panel solid instead of a hollow frame */
.feature--flat .feature-media { aspect-ratio: 16 / 7; background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
.feature--flat .feature-media::after { background: linear-gradient(to top, rgba(8, 8, 10, .8), transparent 70%); }

.hero-list { display: flex; flex-direction: column; gap: 2px; }
.hero-list-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.hero-list-item:hover { background: var(--surface); border-color: var(--line); }
.hero-list-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: var(--surface-2);
  width: 100%;
  height: 100%;
}
.hero-list-item h3 {
  font-size: .98rem;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------- post cards -- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
}
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-media--empty { background: linear-gradient(140deg, var(--surface-2), var(--surface-3)); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.post-card-body h3 {
  font-size: 1.08rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-body p {
  margin: 0;
  color: var(--text-2);
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-body .meta-line { margin-top: auto; padding-top: 4px; }

/* ------------------------------------------------------------ own game -- */

.game-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(900px 300px at 12% 0%, rgba(255, 46, 46, .14), transparent 70%),
    var(--surface);
  box-shadow: var(--sh-2);
}
.game-banner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 46, 46, 0) 70%);
}
.game-banner-inner {
  padding: clamp(26px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.game-banner-copy { display: flex; flex-direction: column; gap: 12px; }
.game-banner-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-wrap: balance; }
.game-banner-inner p { margin: 0; color: var(--text-2); font-size: 1rem; max-width: 46ch; }
.game-banner-inner .btn { align-self: flex-start; margin-top: 6px; }

/* Without art the panel would be half empty — lay it out as a wide bar instead */
.game-banner--noart .game-banner-inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: clamp(24px, 2.8vw, 34px);
}
.game-banner--noart .game-banner-inner .btn { margin-top: 0; align-self: center; }
.game-banner-art { position: relative; min-height: 240px; background: var(--surface-2); }
.game-banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-banner-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(19, 19, 24, .55) 22%, transparent 60%);
}
.game-banner--noart { grid-template-columns: 1fr; }

/* ---------------------------------------------------------- steam cards -- */

.steam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.steam-strip { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.steam-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.steam-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--sh-2);
}
.steam-card-media { position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: var(--surface-2); }
.steam-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.steam-card:hover .steam-card-media img { transform: scale(1.05); }
.steam-price {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--r-xs);
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.steam-price .off {
  color: var(--good);
  background: var(--good-wash);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .72rem;
}
.steam-price .soon {
  color: var(--warn);
  background: var(--warn-wash);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .72rem;
}
.steam-price s { color: var(--text-3); font-weight: 500; }
.epic-card:hover { border-color: var(--line-3); }
/* Epic artwork is 16:9, not Steam's 460x215 — use its own ratio so nothing is cropped.
   Epic key art carries its logo low and centred, so the badge goes top-right instead. */
.epic-card .steam-card-media { aspect-ratio: 16 / 9; }
.epic-card .steam-price { top: 10px; bottom: auto; }

/* Usually only one to three giveaways run at once, so cap the track width:
   a lone card sits at a sensible size instead of stranded in a quarter column. */
.epic-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 360px)); justify-content: start; }
.steam-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.steam-card-body h3 {
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.steam-card-dev { margin: -3px 0 0; color: var(--text-3); font-size: .78rem; }

.review-badge {
  position: absolute;
  left: 10px; top: 10px;
  padding: 5px 9px;
  border-radius: var(--r-xs);
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.review-good { color: var(--good); }
.review-mixed { color: var(--warn); }
.review-poor { color: #ff8b8b; }

/* Genre rows: one horizontal shelf per genre */
.genre-row { margin-bottom: clamp(26px, 3vw, 38px); }
.genre-row:last-child { margin-bottom: 0; }
.genre-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.genre-row-head h3 { font-size: 1.15rem; }
.genre-row-head span { color: var(--text-3); font-size: .82rem; }

.row-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  /* bleed to the gutter so cards run to the screen edge instead of stopping short */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.row-scroller > .steam-card { flex: 0 0 265px; width: 265px; scroll-snap-align: start; }
.row-scroller::-webkit-scrollbar { height: 8px; }
.row-scroller::-webkit-scrollbar-track { background: transparent; }
.row-scroller::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.row-scroller:hover::-webkit-scrollbar-thumb { background: var(--line-3); }
.steam-card-desc {
  margin: 0;
  color: var(--text-2);
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.steam-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.steam-card-foot { margin-top: auto; padding-top: 4px; }

/* ------------------------------------------------------------- article -- */

.article { padding-block: clamp(26px, 4vw, 46px) clamp(40px, 6vw, 72px); }
.article-head { max-width: 760px; margin-inline: auto; text-align: center; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 16px; text-wrap: balance; }
.article-head .meta-line { justify-content: center; }
.article-cover {
  max-width: 1020px;
  margin: clamp(26px, 4vw, 40px) auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.prose {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.78;
  color: #dcdce4;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 22px;
  transition: color .2s var(--ease);
}
.back-link:hover { color: var(--text); }

/* -------------------------------------------------------------- states -- */

.empty-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 76px) 28px;
  text-align: center;
  color: var(--text-3);
  background: rgba(255, 255, 255, .015);
}
.empty-state h2 { font-size: 1.25rem; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: .92rem; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: clamp(28px, 4vw, 44px);
}
.pager .page-info { color: var(--text-3); font-size: .85rem; padding-inline: 10px; }

/* ------------------------------------------------------------ ad slots -- */

.ad-slot { margin-block: clamp(24px, 3.4vw, 44px); text-align: center; }
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: .65;
  margin-bottom: 10px;
}
.ad-slot > * { margin-inline: auto; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  flex-shrink: 0;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 40px 30px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { max-width: 360px; }
.footer-brand p { margin: 12px 0 0; color: var(--text-3); font-size: .86rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { font-size: .88rem; color: var(--text-2); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-base {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: .78rem;
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-body { background: var(--bg); }
.admin-body::before { display: none; }

.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sidebar-brand img { width: 32px; height: 32px; border-radius: 8px; }
.sidebar-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.15;
}
.sidebar-brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.sidebar-nav a.is-active { background: var(--accent-wash); color: var(--accent); }
.sidebar-nav a.is-active svg { opacity: 1; }
.sidebar-nav .nav-sep {
  margin: 10px 12px 6px;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.sidebar-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding-inline: 4px; }
.sidebar-avatar {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-weight: 700;
  font-size: .82rem;
}
.sidebar-user b { display: block; font-size: .85rem; font-weight: 600; line-height: 1.2; }
.sidebar-user span { font-size: .72rem; color: var(--text-3); }

.admin-main { min-width: 0; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px) 80px; }
.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.admin-page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.admin-page-head .sub { margin: 8px 0 0; color: var(--text-3); font-size: .9rem; max-width: 70ch; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
  margin-bottom: 22px;
}
.admin-card > h2 { font-size: 1.1rem; margin-bottom: 18px; }
.admin-card > h2:first-child { margin-top: 0; }
.card-note { color: var(--text-3); font-size: .86rem; margin: 0; }

/* Forms */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.form-row input[type=text],
.form-row input[type=url],
.form-row input[type=password],
.form-row input[type=file],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--text);
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row textarea { min-height: 240px; resize: vertical; line-height: 1.65; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.form-row .hint { color: var(--text-3); font-size: .78rem; margin-top: 6px; }
.form-row input[type=file] { padding: 9px 12px; color: var(--text-2); font-size: .85rem; }
.form-row input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.form-row input[type=file]::file-selector-button:hover { background: var(--surface-3); border-color: var(--line-3); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

.current-image {
  max-width: 260px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  margin-bottom: 12px;
}

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0 14px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background .15s var(--ease); }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.admin-table .t-title { font-weight: 600; }
.admin-table .t-sub { color: var(--text-3); font-size: .78rem; margin-top: 3px; }
.table-scroll { overflow-x: auto; margin-inline: -6px; padding-inline: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-published { color: var(--good); background: var(--good-wash); border-color: rgba(70, 221, 138, .25); }
.badge-draft { color: var(--warn); background: var(--warn-wash); border-color: rgba(255, 196, 107, .25); }

.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.row-actions a, .row-actions button {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.row-actions a:hover, .row-actions button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.row-actions .danger:hover { color: #ff8b8b; background: rgba(255, 60, 60, .1); }

/* Flash */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-xs);
  margin-bottom: 20px;
  font-size: .89rem;
  border: 1px solid transparent;
}
.flash-success { background: var(--good-wash); color: #9df0c2; border-color: rgba(70, 221, 138, .25); }
.flash-error { background: rgba(255, 60, 60, .1); color: #ffa9a9; border-color: rgba(255, 60, 60, .28); }

/* Login */
.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--sh-3);
}
.login-card .brand-logo { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 16px; }
.login-card h1 { font-size: 1.3rem; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text-3); font-size: .85rem; margin: 0 0 24px; }
.login-card .btn { width: 100%; margin-top: 4px; }

/* Stats + charts */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  margin: 0;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: .78rem;
  letter-spacing: .04em;
}

.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.h2-note { font-family: var(--font-body); font-size: .74rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 8px; }

.legend { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-3); }
.legend .key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .key-views { background: var(--accent); }
.legend .key-uniq { background: rgba(255, 255, 255, .22); margin-left: 8px; }

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 7px 0 4px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(70, 221, 138, .18);
}

.bar-pair { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; }
.bar-pair .bar { flex: 1; }
/* .bar is declared further down, so this needs the extra class to win on specificity */
.bar.bar-uniq { background: rgba(255, 255, 255, .24); }

/* Hour-by-weekday heatmap */
.heatmap { display: flex; flex-direction: column; gap: 4px; }
.heat-hours, .heat-row { display: grid; grid-template-columns: 38px repeat(24, 1fr); gap: 3px; align-items: center; }
.heat-hours span { font-size: .62rem; color: var(--text-3); text-align: center; }
.heat-day { font-size: .72rem; color: var(--text-3); }
.heat-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .045);
}
.heat-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--accent);
  opacity: var(--i, 0);
}

.admin-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.admin-grid-3 > .admin-card { margin-bottom: 0; }

.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px; transition: background .15s var(--ease); }
.bar-col:hover { background: rgba(255, 255, 255, .04); }
.bar {
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, var(--accent-dim), var(--accent));
}
.bar-chart-labels { display: flex; justify-content: space-between; color: var(--text-3); font-size: .76rem; margin-top: 10px; }

.ranked-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; font-size: .86rem; }
.ranked-row:last-child { margin-bottom: 0; }
.ranked-label { width: 36%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.ranked-bar { flex: 1; height: 7px; background: rgba(255, 255, 255, .06); border-radius: var(--r-pill); overflow: hidden; }
.ranked-bar span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.ranked-count { width: 52px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.range-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs); }
.range-tabs a {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.range-tabs a:hover { color: var(--text); }
.range-tabs a.is-active { background: var(--accent); color: #fff; }

/* Analytics: People / Unconfirmed / Bots */
.who-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.who-tab {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text-2);
  text-decoration: none;
}
.who-tab b { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.who-tab span { font-size: .82rem; font-variant-numeric: tabular-nums; }
.who-tab:hover { border-color: var(--line-2); }
.who-tab.is-active { border-color: var(--accent); border-top-color: var(--accent); color: var(--text); }
.who-note { margin: 0 0 20px; max-width: 90ch; }
@media (max-width: 640px) { .who-tabs { grid-template-columns: minmax(0, 1fr); } }

.admin-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; }
.admin-grid-2 > .admin-card { margin-bottom: 0; }

.thumb-cell { width: 116px; }
.thumb-cell img { width: 108px; border-radius: 7px; border: 1px solid var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-list { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .hero-list-item { grid-template-columns: 1fr; min-width: 210px; align-content: start; }
  .hero-list-thumb { aspect-ratio: 16 / 9; }
  .game-banner { grid-template-columns: 1fr; }
  .game-banner-art { min-height: 200px; order: -1; }
  .game-banner-art::after { background: linear-gradient(to bottom, transparent 30%, var(--surface) 100%); }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .sidebar-brand { padding: 0 14px 0 0; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .sidebar-brand small { display: none; }
  .sidebar-nav { flex-direction: row; flex: 0 0 auto; }
  .sidebar-nav .nav-sep { display: none; }
  .sidebar-nav a { white-space: nowrap; }
  .sidebar-foot { border-top: 0; padding-top: 0; margin-left: auto; flex-direction: row; align-items: center; }
  .sidebar-user span { display: none; }
}

@media (max-width: 620px) {
  .section-head .more { white-space: normal; }

  /* Wrapped stats leave an orphan divider — lay them out as a grid instead */
  .page-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; width: 100%; }
  .page-stat { padding: 0; border-left: 0; }
}

@media (max-width: 760px) {
  /* Four nav items plus the logo overflow a phone; the channel link stays in the footer */
  .nav-yt { display: none; }
}

@media (max-width: 640px) {
  .site-nav a { padding: 8px 10px; font-size: .85rem; }
  .brand-text { display: none; }
  .header-inner { gap: 12px; }
  .feature-body { position: static; padding: 20px; }
  .feature-media::after { display: none; }
  .footer-inner { flex-direction: column; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .post-card:hover, .feature:hover, .steam-card:hover { transform: none; }
}


/* ==========================================================================
   Go-to experience additions (2026-10): light theme, game pages, hubs, polls
   ========================================================================== */

/* ---------------------------------------------------------- light theme -- */
/* Dark stays the default. The light set keeps every alpha hairline readable by
   flipping it to black-on-white; the accent and the status colours are shared. */
:root[data-theme="light"] {
  --bg:          #f6f6f8;
  --bg-soft:     #efeff3;
  --surface:     #ffffff;
  --surface-2:   #f1f1f5;
  --surface-3:   #e6e6ec;
  --line:        rgba(10, 10, 20, .08);
  --line-2:      rgba(10, 10, 20, .14);
  --line-3:      rgba(10, 10, 20, .24);
  --text:        #15151b;
  --text-2:      #4b4b58;
  --text-3:      #7a7a88;
  --accent-wash: rgba(255, 46, 46, .08);
  --good:        #1f9d5a;
  --good-wash:   rgba(31, 157, 90, .12);
  --warn:        #b7781a;
  --warn-wash:   rgba(183, 120, 26, .12);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .08);
  --sh-2: 0 10px 34px rgba(20, 20, 40, .12);
  --sh-3: 0 28px 70px rgba(20, 20, 40, .16);
}
:root[data-theme="light"] body::before { background: radial-gradient(1100px 380px at 50% -170px, rgba(255, 46, 46, .10), transparent 72%); }
:root[data-theme="light"] .site-header { background: rgba(246, 246, 248, .78); }
:root[data-theme="light"] .site-nav a:hover,
:root[data-theme="light"] .btn-secondary:hover,
:root[data-theme="light"] .btn-ghost:hover,
:root[data-theme="light"] .row-actions a:hover,
:root[data-theme="light"] .row-actions button:hover { background: rgba(10, 10, 20, .05); }
:root[data-theme="light"] .steam-price,
:root[data-theme="light"] .review-badge,
:root[data-theme="light"] .pick-badge { background: rgba(255, 255, 255, .9); color: var(--text); }
:root[data-theme="light"] .review-good { color: var(--good); }
:root[data-theme="light"] .review-mixed { color: var(--warn); }
:root[data-theme="light"] .review-poor { color: #c43c3c; }
:root[data-theme="light"] .chip { background: rgba(10, 10, 20, .03); }
:root[data-theme="light"] .empty-state { background: rgba(10, 10, 20, .015); }
:root[data-theme="light"] .ico-moon { display: none; }
:root:not([data-theme="light"]) .ico-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ico-moon { display: none; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) .ico-sun { display: inline; }
}

/* --------------------------------------------------------- header tools -- */
.header-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid transparent; border-radius: var(--r-xs);
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(127, 127, 140, .12); }
.site-nav { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------- card extras -- */
.pick-badge {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 9px; border-radius: var(--r-xs);
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.pick-badge--demo { background: rgba(8, 8, 10, .82); border: 1px solid var(--line-2); color: var(--good); }
.pick-badge--soon { background: rgba(8, 8, 10, .82); border: 1px solid var(--line-2); color: var(--warn); }
.steam-card.is-pick { border-color: var(--accent-line); }
.dev-label { margin: -4px 0 0; font-size: .74rem; font-weight: 600; color: var(--accent); }
.want-count { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------- discover bar -- */
.discover-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 0; }
.discover-bar .chip-lg { font-size: .8rem; }

/* ------------------------------------------------------- personal radar -- */
.radar-prefs {
  margin-top: 18px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.radar-prefs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.radar-prefs-head h3 { font-size: .95rem; }
.radar-prefs-head span { color: var(--text-3); font-size: .78rem; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chip {
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: transparent; color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .18s var(--ease);
}
.pref-chip:hover { border-color: var(--line-3); color: var(--text); }
.pref-chip.is-on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
.pref-actions { display: flex; gap: 8px; margin-top: 12px; }
.your-radar .section-head h2 b { color: var(--accent); }

/* ------------------------------------------------------------ game page -- */
.game-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.game-art { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--sh-2); }
.game-art img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.game-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.game-head .steam-tags { margin-top: 12px; }
.game-desc { margin: 16px 0 0; color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.game-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 20px; }
.fact { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.fact b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.fact span { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.fact.good b { color: var(--good); }
.fact.mixed b { color: var(--warn); }
.fact.poor b { color: #ff8b8b; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.game-actions .btn.is-on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); box-shadow: none; }
.react-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: transparent; color: var(--text-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: all .18s var(--ease);
}
.react-btn b { font-weight: 700; color: var(--text); }
.react-btn:hover { border-color: var(--line-3); color: var(--text); }
.react-btn.is-on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
.react-btn.is-on b { color: var(--accent); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dev-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dev-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dev-card .dev-label { margin: 0 0 12px; font-size: .82rem; }
.dev-titles { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-titles a { font-size: .8rem; }
.dev-titles a b { color: var(--good); margin-left: 4px; }
.price-strip { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 10px; }
.price-strip span { flex: 1; background: var(--line-3); border-radius: 3px 3px 0 0; min-width: 4px; }
.price-strip span.is-low { background: var(--good); }
.price-strip span.is-now { background: var(--accent); }
.price-meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-3); margin-top: 6px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-card-preview { margin-top: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); overflow: hidden; max-width: 420px; }

/* ------------------------------------------------------------ countdown -- */
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--good); }
.countdown.is-urgent { color: var(--warn); }
.free-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.claim-btn { padding: 7px 12px; font-size: .78rem; }

/* ----------------------------------------------------------- promo cards -- */
.store-badge {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 9px; border-radius: var(--r-xs);
  background: rgba(8, 8, 10, .82); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.promo-card .steam-card-media { aspect-ratio: 16 / 9; }
.promo-card .steam-price { top: 10px; bottom: auto; }
.store-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

/* ------------------------------------------------------------- calendar -- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cal-nav h2 { font-size: 1.4rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); text-align: center; padding-bottom: 6px; }
.cal-day { min-height: 118px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); }
.cal-day.is-empty { background: transparent; border-color: transparent; }
.cal-day.is-today { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cal-day.is-past { opacity: .72; }
.cal-num { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.cal-day.is-today .cal-num { color: var(--accent); }
.cal-game { display: block; font-size: .74rem; line-height: 1.3; padding: 3px 0; border-top: 1px solid var(--line); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-game.is-soon { color: var(--warn); }
.cal-game.is-hot { color: var(--good); }
.cal-more { font-size: .7rem; color: var(--text-3); padding-top: 3px; display: block; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-3); margin-top: 14px; }
.cal-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 760px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-dow { display: none; }
  .cal-day.is-empty { display: none; }
  .cal-day { min-height: 0; }
  .cal-game { white-space: normal; }
}

/* --------------------------------------------------------------- search -- */
.filter-bar { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; }
.filter-bar label { display: flex; flex-direction: column; gap: 5px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.filter-bar input[type=search], .filter-bar select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-xs);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9rem;
}
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result-count { color: var(--text-3); font-size: .85rem; margin: 14px 0 20px; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: repeat(3, 1fr); } .filter-bar label:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filter-bar { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------------------------------------------- polls -- */
.poll-list { display: grid; gap: 12px; }
.poll-option { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.poll-option img { width: 110px; border-radius: 6px; aspect-ratio: 460 / 215; object-fit: cover; }
.poll-option h3 { font-size: .98rem; }
.poll-option .meta-line { margin-top: 4px; }
.poll-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.poll-option.is-winner { border-color: var(--accent-line); }
.poll-option.is-mine { box-shadow: inset 0 0 0 1px var(--accent-line); }
.poll-pct { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-width: 54px; text-align: right; }
.vote-btn { padding: 8px 14px; font-size: .8rem; }
@media (max-width: 560px) { .poll-option { grid-template-columns: 1fr; } .poll-option img { width: 100%; } .poll-pct { text-align: left; } }

/* -------------------------------------------------------------- wishlist -- */
.wish-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wish-row img { width: 140px; border-radius: 8px; aspect-ratio: 460 / 215; object-fit: cover; }
.wish-row h3 { font-size: 1rem; }
.wish-price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.wish-price s { color: var(--text-3); font-size: .85rem; font-weight: 500; margin-left: 6px; }
.wish-drop { color: var(--good); font-size: .8rem; font-weight: 600; }
.wish-target { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.wish-target input { width: 90px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: .82rem; }
.wish-target [data-note] { font-size: .76rem; color: var(--text-3); }
@media (max-width: 620px) { .wish-row { grid-template-columns: 1fr; } .wish-row img { width: 100%; } }

/* ------------------------------------------------------------- subscribe -- */
.subscribe-box {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(22px, 3vw, 34px); margin-bottom: 36px;
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-wash), transparent 60%), var(--surface);
}
.subscribe-box h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.subscribe-box p { margin: 10px 0 0; color: var(--text-2); font-size: .92rem; }
.subscribe-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.subscribe-form input[type=email] { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--bg); color: var(--text); font: inherit; min-width: 0; }
.subscribe-note { grid-column: 1 / -1; font-size: .76rem; color: var(--text-3); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-actions .footer-yt { margin-top: 0; }
.footer-nav { gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col b { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
@media (max-width: 760px) { .subscribe-box { grid-template-columns: 1fr; } .subscribe-form { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- notice + misc -- */
.notice { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--surface); font-size: .9rem; margin-bottom: 20px; }
.notice-good { border-color: rgba(70, 221, 138, .3); background: var(--good-wash); }
.notice-bad { border-color: rgba(255, 60, 60, .3); background: rgba(255, 60, 60, .08); }
.video-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.video-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.video-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card h3 { font-size: .92rem; padding: 12px 14px 4px; }
.video-card .meta-line { padding: 0 14px 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .game-hero, .two-col { grid-template-columns: minmax(0, 1fr); } }
.rank-num { font-family: var(--font-display); font-weight: 700; color: var(--accent); margin-right: 8px; }
.hero--compact { padding-block: clamp(22px, 3vw, 36px) 0; }

/* ---------------------------------------------------------------- admin -- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feature-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.feature-tile input { margin-top: 4px; }
.feature-tile b { display: block; margin-bottom: 2px; }
.feature-tile span { font-size: .8rem; color: var(--text-3); }
.feature-tile.is-off { opacity: .6; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; font-size: .88rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }

/* ------------------------------------------------ 2026-10-12 UX pass -- */
/* Games list filters: five selects in one row */
.filter-bar--games { grid-template-columns: repeat(5, minmax(130px, 1fr)); margin-bottom: 4px; }
@media (max-width: 900px) { .filter-bar--games { grid-template-columns: repeat(3, 1fr); } .filter-bar--games label:first-child { grid-column: auto; } }
@media (max-width: 560px) { .filter-bar--games { grid-template-columns: repeat(2, 1fr); } }
.load-more-row { display: flex; justify-content: center; margin: 26px 0 6px; }
.load-more-row .btn { min-width: 220px; }

/* Header search with suggestions */
.header-search { position: relative; }
.header-search input {
  width: 210px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-xs);
  background: var(--surface); color: var(--text); font: inherit; font-size: .86rem;
}
.header-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; width: 260px; }
.icon-btn--search { display: none; }
.suggest-box {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 360px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); padding: 6px; overflow: hidden;
}
.suggest-box a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r-xs); color: var(--text); }
.suggest-box a:hover, .suggest-box a.is-active { background: var(--surface-3); }
.suggest-box img, .sg-noimg { width: 72px; height: 34px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--surface-2); }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-text b { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { font-size: .74rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-box .sg-all { justify-content: center; font-size: .8rem; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
@media (max-width: 1100px) { .header-search { display: none; } .icon-btn--search { display: inline-flex; } }

/* "New since your last visit" */
.new-badge {
  position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: var(--r-xs);
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}

/* Game page: verdict line, screenshots + trailer, lightbox, price alert */
.verdict-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 1.02rem; font-weight: 600; }
.verdict-line .is-good { color: var(--good); }
.verdict-line .is-mixed { color: var(--warn); }
.verdict-line .is-poor { color: var(--accent); }
.media-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.media-tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); scroll-snap-align: start; padding: 0; cursor: pointer; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile:hover { border-color: var(--accent-line); }
.media-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .28); }
.media-play svg { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: var(--accent); }
.media-label { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--r-xs); background: rgba(8, 8, 10, .82); color: #fff; font-size: .72rem; font-weight: 700; }
.media-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: #000; grid-column: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 88vh; border-radius: var(--r-xs); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.alert-form { display: grid; gap: 8px; }
.alert-form input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--surface-2); color: var(--text); font: inherit; font-size: .9rem; }
.alert-form .btn { justify-self: start; }
.alert-note { margin: 0; font-size: .78rem; color: var(--text-3); }

/* Free games: push call to action */
.push-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; color: var(--text-2); font-size: .88rem; }
.push-cta .btn[hidden] { display: none; }
.push-cta .btn[hidden] + span { display: none; }

@media (max-width: 640px) {
  .media-strip { grid-auto-columns: 82%; }
  .media-video { grid-column: span 1; }
  .verdict-line { font-size: .95rem; }
}
:root[data-theme="light"] .header-search input,
:root[data-theme="light"] .suggest-box { background: #fff; }
:root[data-theme="light"] .suggest-box { box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.share-card-preview { display: block; width: 100%; max-width: 100%; height: auto; margin-top: 10px; border-radius: var(--r-xs); }
.brand-logo { flex-shrink: 0; }
@media (max-width: 640px) { .header-tools .icon-btn[href$="/random.php"] { display: none; } }

/* Logo switched off for now (2026-10-12): it did not scale on phones. Delete this block to bring it back. */
.brand-logo { display: none !important; }
@media (max-width: 640px) { .brand-text { display: inline; font-size: .95rem; white-space: nowrap; } }

/* ------------------------------------------------------------ tags -- */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tag-tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); color: var(--text); }
.tag-tile:hover { border-color: var(--accent-line); }
.tag-tile img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; display: block; opacity: .85; }
.tag-tile-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tag-tile-body b { font-family: var(--font-display); font-size: 1.05rem; }
.tag-tile-body small { color: var(--text-2); font-size: .82rem; line-height: 1.4; }
.tag-tile-body em { font-style: normal; color: var(--accent); font-size: .78rem; font-weight: 700; margin-top: 2px; }
.tag-tile--plain .tag-tile-body { padding-top: 16px; }
.filter-bar--tag { grid-template-columns: repeat(2, minmax(150px, 220px)); }
.game-tags { margin-top: 10px; }
.chip-tag { border-color: var(--accent-line); color: var(--text); }
.chip-tag:hover { background: var(--accent-wash); }
.filter-bar--games { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
@media (max-width: 1000px) { .filter-bar--games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .filter-bar--games { grid-template-columns: repeat(2, 1fr); } .filter-bar--tag { grid-template-columns: repeat(2, 1fr); } }
.lede { color: var(--text-2); font-size: 1rem; line-height: 1.6; margin: 10px 0 0; }
.brand-text { white-space: nowrap; }

/* ------------------------------------------- about / contact / privacy -- */
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.legal-grid--toc { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.legal-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.legal-aside .admin-card > h2 { font-size: 1rem; margin-bottom: 12px; }
.legal-toc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 18px; }
.legal-toc b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 5px 6px; border-radius: var(--r-xs); font-size: .86rem; color: var(--text-2); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .76rem; padding-top: 2px; }
.legal-toc a:hover { background: var(--accent-wash); color: var(--text); }
.legal-doc { max-width: 940px; color: var(--text-2); font-size: 1rem; line-height: 1.72; }
.legal-doc h2 { color: var(--text); font-size: 1.25rem; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc b { color: var(--text); }
.legal-doc a, .legal-list a, .lede a, .contact-form .card-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc code { font-size: .86em; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 4px 0 14px; }
.legal-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.legal-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table td:first-child { white-space: nowrap; }
.legal-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .9rem; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
.legal-features { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: feat; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.legal-features li { counter-increment: feat; position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 14px 12px 46px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); }
.legal-features li::before { content: counter(feat, decimal-leading-zero); position: absolute; left: 14px; top: 13px; color: var(--accent); font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.legal-features a { font-weight: 700; text-decoration: none; color: var(--text); }
.legal-features a:hover { color: var(--accent); }
.legal-features span { font-size: .86rem; line-height: 1.5; }
.contact-form { max-width: none; }
.contact-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.contact-form input[type=email] {
  width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--text); font-family: inherit; font-size: .93rem;
}
.contact-form input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .legal-grid, .legal-grid--toc { grid-template-columns: minmax(0, 1fr); }
  .legal-aside { position: static; }
  .legal-features, .contact-pair { grid-template-columns: minmax(0, 1fr); }
}
/* admin inbox */
.msg-card { margin-bottom: 14px; }
.msg-card.is-new { border-color: var(--accent-line); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.msg-head b { margin-right: 10px; }
.msg-head a { color: var(--accent); font-size: .88rem; }
.msg-meta { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: .8rem; }
.msg-body { color: var(--text-2); line-height: 1.65; white-space: normal; overflow-wrap: anywhere; margin-bottom: 12px; }
