/* SteamCut — dark shell + green accent (SteamRIP-style posts) */
:root {
  --bg: #0a0f1d;
  --bg-2: #0e1526;
  --surface: #131c31;
  --surface-2: #1a2440;
  --line: #22304f;
  --line-soft: #172239;
  --text: #f2f5fa;
  --muted: #93a1bd;
  --accent: #16a34a;
  --accent-hot: #22c55e;
  --accent-ink: #052e16;
  --teal: #0d9488;
  --teal-ink: #042f2e;
  --green: #4ade80;
  --red: #e11d48;
  --cream: #f2f5fa;
  --max: 1280px;
  --radius: 6px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
/* no fancy background washes */
img { max-width: 100%; display: block; }
a { color: var(--accent-hot); text-decoration: none; }
a:hover { color: #86efac; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--accent); color: #fff; padding: .5rem .8rem; }

/* Micro-interaction: soft border lift only — never hide content */
.reveal { transition: border-color .2s ease; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 29, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem; min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.03em; color: var(--cream); flex-shrink: 0;
}
.brand-logo {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  border-radius: 50%;
}
.brand-text span { color: var(--accent); }
.brand:hover { color: var(--cream); }
.brand:hover .brand-text span { color: var(--accent-hot); }
.site-nav { display: flex; align-items: center; gap: .15rem; flex: 1; }
.site-nav > a,
.nav-drop > summary {
  color: var(--muted); font-size: .9rem; font-weight: 600;
  padding: .5rem .65rem; border-radius: 4px; list-style: none; cursor: pointer;
}
.site-nav > a:hover,
.site-nav > a.is-active,
.nav-drop > summary:hover {
  color: var(--cream); background: var(--surface);
}
.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: " ▾"; font-size: .7em; opacity: .7; }
.nav-drop[open] > summary { color: var(--cream); background: var(--surface); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .35rem; z-index: 20; box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.nav-menu a {
  display: block; padding: .55rem .7rem; color: var(--text); border-radius: 4px; font-weight: 600; font-size: .88rem;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--accent-hot); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.dice-btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); background: var(--bg-2);
  transition: color .15s ease, border-color .15s ease, transform .25s ease;
}
.dice-btn svg { width: 19px; height: 19px; }
.dice-btn:hover {
  color: var(--accent-hot); border-color: var(--accent); transform: rotate(18deg);
}
.header-search {
  display: flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
  padding: .2rem .2rem .2rem .9rem;
  transition: border-color .15s ease;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  border: 0; background: transparent; outline: none; width: 168px; padding: .4rem 0;
  font-size: .88rem;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  display: grid; place-items: center; flex-shrink: 0;
  border: 0; background: var(--accent); color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.header-search button svg { width: 17px; height: 17px; }
.header-search button:hover { background: var(--accent-hot); transform: scale(1.06); }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 4px; cursor: pointer; flex-direction: column;
  justify-content: center; gap: 5px; padding: 0 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); }

/* Hero — AnkerGames style */
.hero {
  position: relative; height: clamp(380px, 52vh, 500px);
  overflow: hidden; background: var(--bg);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease;
  background: right center/cover no-repeat var(--bg-2);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,15,29,.96) 26%, rgba(10,15,29,.7) 46%, rgba(10,15,29,.1) 72%, rgba(10,15,29,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-content { max-width: 500px; padding: 2rem 0; }
.hero-kicker {
  margin: 0 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1, .hero h2 {
  margin: 0 0 .65rem; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 700;
}
.hero-desc {
  margin: 0 0 1.3rem; color: var(--muted); max-width: 34rem; font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; padding: .28rem .6rem; border-radius: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent;
}
.pill-plain { background: transparent; color: var(--muted); padding-inline: .15rem; }
.pill-accent { background: var(--accent); color: #fff; }
.pill-teal { background: rgba(42,157,143,.18); color: var(--teal); border-color: rgba(42,157,143,.35); }
.pill-soft { background: var(--surface); color: var(--cream); border-color: var(--line); }
.pill-level-low { background: rgba(116,198,157,.15); color: var(--green); border-color: rgba(116,198,157,.35); }
.pill-level-medium { background: rgba(234,179,8,.15); color: #fbbf24; border-color: rgba(234,179,8,.35); }
.pill-level-high { background: rgba(239,68,68,.2); color: #fca5a5; border-color: rgba(239,68,68,.45); }

.hero-actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 0 1.4rem; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(22,163,74,.3);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(34,197,94,.38); }
.btn-quiet {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: var(--cream); border-radius: 10px;
}
.btn-quiet:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #34b3a3; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hot); }
.btn-link { background: none; border: 0; color: var(--cream); min-height: auto; padding: 0; font-weight: 600; }
.btn-link:hover { color: var(--accent-hot); }

.hero-nav {
  position: absolute; right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 1.1rem; z-index: 3; display: flex; gap: .4rem; align-items: center;
}
.hero-nav button {
  width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(11,11,15,.7);
  color: var(--cream); border-radius: 4px; cursor: pointer;
}
.hero-dots { display: flex; gap: .3rem; }
.hero-dots button {
  width: 7px; height: 7px; border-radius: 1px; border: 0; padding: 0;
  background: rgba(243,236,228,.35); cursor: pointer;
}
.hero-dots button.is-active { background: var(--accent); width: 16px; }

/* Social join cards (AnkerGames style) */
.social-strip { padding: 1.4rem 0 .5rem; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.social-card {
  display: inline-flex; align-items: center; gap: .6rem;
  min-width: 205px; padding: .55rem .85rem; border-radius: 10px;
  color: #fff !important; border: 1px solid rgba(255,255,255,.16);
  transition: transform .15s ease, box-shadow .2s ease, filter .15s ease;
}
.social-card:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff !important; }
.social-icon {
  display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px; background: rgba(255,255,255,.18);
}
.social-icon svg { width: 19px; height: 19px; }
.social-text { display: grid; line-height: 1.2; margin-right: auto; }
.social-text span { font-size: .68rem; font-weight: 600; opacity: .85; }
.social-text strong { font-size: .95rem; font-weight: 800; }
.social-chevron { font-size: 1.15rem; opacity: .8; }
.social-telegram {
  background: linear-gradient(135deg, #1c7ed6, #29a9eb);
  box-shadow: 0 6px 20px rgba(41,169,235,.26);
}
.social-discord {
  background: linear-gradient(135deg, #4b55d8, #6f79f2);
  box-shadow: 0 6px 20px rgba(111,121,242,.26);
}
.social-reddit {
  background: linear-gradient(135deg, #e04a13, #ff6a26);
  box-shadow: 0 6px 20px rgba(255,106,38,.24);
}
.social-youtube {
  background: linear-gradient(135deg, #c81d25, #ef2b32);
  box-shadow: 0 6px 20px rgba(239,43,50,.24);
}

/* Requirement level cards */
.level-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.level-card {
  display: grid; gap: .2rem; padding: 1rem 1.15rem; border-radius: 12px;
  color: #fff !important; border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, filter .15s ease;
}
.level-card strong { font-size: 1rem; font-weight: 800; }
.level-card span { font-size: .8rem; opacity: .9; }
.level-card:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff !important; }
.level-low { background: linear-gradient(135deg, #15803d, #1eb158); }
.level-med { background: linear-gradient(135deg, #b45309, #e08c14); }
.level-high { background: linear-gradient(135deg, #b91c1c, #e03535); }

/* Game of the day */
.spotlight {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
}
.spotlight-art { background: var(--bg-2); }
.spotlight-art img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.spotlight-body { padding: 1.35rem 1.5rem 1.5rem; display: grid; align-content: start; gap: .7rem; }
.spotlight-body h3 {
  margin: 0; font-family: var(--display); font-size: 1.55rem; letter-spacing: -.02em;
}
.spotlight-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.spotlight-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem .9rem;
}
.spotlight-facts li { display: grid; gap: .05rem; }
.spotlight-facts span { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spotlight-facts strong { font-size: .88rem; font-weight: 700; }

/* Sections */
.section { padding: 1.9rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.home-strip { padding: 1rem 0 .25rem; }
.section-label {
  display: inline-block; margin: 0 0 1rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--cream); border-left: 3px solid var(--accent); padding-left: .65rem;
}
.section-kicker {
  margin: 0 0 .2rem; color: var(--accent-hot); font-size: .75rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.section-head h2,
.section-head .home-h1 {
  margin: 0; font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
}
.view-all {
  color: var(--muted); font-weight: 600; font-size: .82rem;
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px;
}
.view-all:hover { color: var(--accent-hot); border-color: var(--accent); }

.rail {
  display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft);
}
.rail a {
  padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.rail a:hover, .rail a.is-active {
  border-color: var(--accent); color: var(--cream); background: rgba(22,163,74,.12);
}

/* Cards — AnkerGames style */
.games-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem .9rem;
}
.games-grid-5 { grid-template-columns: repeat(5, 1fr); }
.trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem .9rem; }
.game-card {
  background: transparent; border: 0; border-radius: 0;
  overflow: visible; transition: transform .18s ease;
}
.game-card:hover { transform: translateY(-4px); }
.game-card-link { display: block; color: inherit; }
.game-card-link:hover { color: inherit; }
.game-card-link { color: inherit; display: block; }
.game-card-link:hover { color: inherit; }
.game-card-media {
  position: relative; aspect-ratio: 2/3; background: var(--bg-2); overflow: hidden; display: block;
  border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.trend-card .game-card-media { aspect-ratio: 2/3; }
.game-card-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.game-card:hover .game-card-media img { transform: scale(1.05); }
.card-build {
  position: absolute; top: .45rem; right: .45rem; z-index: 2;
  background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800;
  padding: .2rem .4rem; border-radius: 5px;
}
.card-level {
  position: absolute; left: .45rem; top: .45rem; z-index: 2;
  font-size: .6rem; font-weight: 800; padding: .2rem .4rem; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}
/* Title only on hover — AnkerGames behaviour */
.card-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: .18rem; padding: .7rem .65rem .75rem;
  background: linear-gradient(0deg, rgba(5,8,16,.95) 0%, rgba(5,8,16,.75) 42%, rgba(5,8,16,.1) 78%, transparent 100%);
  opacity: 0; transition: opacity .2s ease;
}
.game-card:hover .card-overlay,
.game-card-link:focus-visible .card-overlay { opacity: 1; }
.card-overlay-genre {
  color: var(--accent-hot); font-size: .66rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.card-overlay-title {
  margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.25; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-overlay-meta {
  display: flex; gap: .6rem; color: #c3ccdd; font-size: .74rem; font-weight: 600;
}
.card-overlay-cta {
  margin-top: .3rem; color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .02em;
}

.genre-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.genre-tile {
  display: grid; gap: .15rem; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--cream);
  transition: border-color .15s ease, transform .15s ease;
}
.genre-tile strong { font-size: .95rem; font-weight: 700; }
.genre-tile span { color: var(--muted); font-size: .78rem; }
.genre-tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--cream); }

.genre-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.genre-chip {
  display: inline-flex; gap: .4rem; align-items: center;
  padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  color: var(--cream); font-weight: 600; font-size: .85rem; background: var(--surface);
}
.genre-chip span { color: var(--accent-hot); font-size: .75rem; }
.genre-chip:hover { border-color: var(--accent); color: var(--cream); }

/* Page bar */
.page-bar {
  padding: 1.75rem 0 1.1rem; border-bottom: 1px solid var(--line-soft);
}
.page-bar h1 {
  margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
}
.page-bar p { margin: .35rem 0 0; color: var(--muted); }

.layout-split {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; padding: 1.5rem 0 2.5rem;
}
.side-panel {
  border: 1px solid var(--line-soft); background: var(--surface); border-radius: var(--radius);
  padding: .85rem; height: fit-content; position: sticky; top: 76px;
}
.side-panel h2 {
  margin: 0 0 .55rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a {
  display: flex; justify-content: space-between; padding: .4rem .45rem; border-radius: 3px;
  color: var(--muted); font-size: .86rem; font-weight: 600;
}
.filter-list a:hover, .filter-list a.is-active {
  background: var(--surface-2); color: var(--cream);
}

/* ========== GAME POST — dark side art + white content cards below banner ========== */
.rip {
  position: relative;
  padding: 1.75rem 0 2.6rem;
  background-color: #070b14;
  background-image:
    var(--rip-bg-left, none),
    var(--rip-bg-right, none);
  background-repeat: no-repeat, no-repeat;
  background-position: left top, right top;
  background-size: 38vw auto, 38vw auto;
  background-attachment: fixed, fixed;
  color: #222;
}
.rip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7,11,20,.25) 0%,
      rgba(7,11,20,.1) 14%,
      rgba(7,11,20,.55) 26%,
      rgba(7,11,20,.72) 50%,
      rgba(7,11,20,.55) 74%,
      rgba(7,11,20,.1) 86%,
      rgba(7,11,20,.25) 100%),
    linear-gradient(180deg, rgba(7,11,20,.45), transparent 22%, transparent 82%, rgba(7,11,20,.6));
}
.rip-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1220px);
  margin-inline: auto;
}
/* SteamRIP: one white column (title + image + content). Dark side art stays outside. */
.rip-page {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem 1.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 18px 48px rgba(0,0,0,.35);
}
.rip-intro {
  margin: 0 0 1.25rem;
  padding: .15rem 0 0;
  background: #fff;
  border: 0;
  box-shadow: none;
}
.rip-card {
  background: #fff;
  border: 1px solid #e8e9ef;
  border-radius: 8px;
  padding: 1.35rem 1.45rem 1.5rem;
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.rip-crumbs {
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center;
  margin: 0 0 .95rem; font-size: .8rem; color: #888; text-align: center;
}
.rip-crumbs a { color: #555; }
.rip-crumbs a:hover { color: #16a34a; }
.rip-crumbs span:last-child { color: #333; }

.rip-tags {
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 0 0 .95rem;
}
.rip-tags a {
  display: inline-block; padding: .38rem .95rem; border-radius: 999px;
  background: #16a34a; color: #fff !important; font-size: .8rem; font-weight: 700;
}
.rip-tags a:hover { background: #15803d; color: #fff !important; }

.rip-title {
  margin: 0 0 .7rem; text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -.02em; line-height: 1.25; color: #111;
  text-shadow: none;
}
.rip-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .7rem; justify-content: center; align-items: center;
  margin: 0 0 1.1rem; color: #666; font-size: .88rem;
}
.rip-meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.rip-meta-item svg { width: 15px; height: 15px; opacity: .85; }
.rip-meta-item strong { color: #111; font-weight: 700; }
.rip-meta-muted { color: #888; }
.rip-meta-views { color: #16a34a; font-weight: 700; }
.rip-meta-views svg { color: #16a34a; opacity: 1; }
.rip-dot {
  width: 4px; height: 4px; border-radius: 50%; background: #c5c7ce; display: inline-block;
}
.rip-version {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: .22rem .7rem; font-size: .78rem; font-weight: 700;
}
.rip-version::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
}

/* Banner sits on the same white column — full width, no extra box */
.rip-banner {
  margin: .15rem auto 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rip-banner img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
}

.rip-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: .85rem; align-items: start;
}
.rip-main { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.rip-h2 {
  margin: 0 0 .85rem; font-family: var(--display); font-size: 1.4rem; color: #111; font-weight: 700;
}
.rip-h4 {
  margin: 0 0 .8rem; font-size: .92rem; color: #222; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.rip-h4-center { text-align: center; }
.rip-rule {
  border: 0;
  height: 3px;
  border-radius: 3px;
  background: #ededf2;
  margin: 1.7rem 0 1.35rem;
}
.rip-lead { margin: 0 0 .85rem; color: #333; font-size: 1.02rem; line-height: 1.65; font-weight: 600; }
.rip-prose { color: #333; font-size: .97rem; line-height: 1.75; }
.rip-prose p { margin: 0 0 .85rem; }
.rip-prose h2, .rip-prose h3, .rip-prose h4 {
  margin: 1.2rem 0 .55rem; color: #111; font-family: var(--display); font-weight: 700; line-height: 1.3;
}
.rip-prose h2 { font-size: 1.25rem; }
.rip-prose h3 { font-size: 1.1rem; }
.rip-prose h4 { font-size: 1rem; }
.rip-prose a { color: #16a34a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rip-prose a:hover { color: #15803d; }
.rip-prose ul, .rip-prose ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
.rip-prose li { margin: 0 0 .35rem; }
.rip-prose blockquote {
  margin: 0 0 1rem; padding: .7rem 1rem; border-left: 3px solid #16a34a;
  background: #f6f7f9; color: #444; border-radius: 0 6px 6px 0;
}
.rip-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: .5rem 0 1rem; }
.rip-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .92rem; }
.rip-prose th, .rip-prose td { border: 1px solid #e4e5ea; padding: .45rem .6rem; text-align: left; }
.rip-prose th { background: #f6f7f9; }
.rip-prose code { background: #f1f2f5; padding: .1rem .35rem; border-radius: 3px; font-size: .9em; }
.rip-muted { color: #777; }
.doc-html h2 {
  margin: 1.5rem 0 .6rem; font-family: var(--display); font-size: 1.12rem; letter-spacing: -.01em; color: var(--cream);
}
.doc-html h2:first-child { margin-top: 0; }
.doc-html h3 { margin: 1.2rem 0 .5rem; font-size: 1rem; color: var(--cream); }
.doc-html p { margin: 0 0 .85rem; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.doc-html a { color: var(--accent-hot); font-weight: 600; }
.doc-html ul, .doc-html ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: .94rem; }
.doc-html li { margin-bottom: .45rem; line-height: 1.65; }
.doc-html strong { color: var(--cream); }

/* SteamRIP-style green checkmarks — reqs + game info */
.rip-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: .95rem;
}
.rip-checks li {
  position: relative;
  margin: 0 0 .55rem;
  padding-left: 1.55rem;
  line-height: 1.55;
}
.rip-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .05rem;
  color: #16a34a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.rip-checks strong { color: #111; font-weight: 700; }
.rip-info strong { margin-right: .25rem; }

/* Medium centered screenshot thumbs (SteamRIP ~300px) */
.rip-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin: .35rem 0 0;
}
.rip-shot {
  border: 0;
  padding: 0;
  width: calc(50% - .4rem);
  max-width: 360px;
  border-radius: 3px;
  overflow: hidden;
  background: #e4e5ea;
  cursor: pointer;
}
.rip-shot:hover { opacity: .9; }
.rip-shot img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* SteamRIP-style download: host name + green glow button */
.rip-download {
  margin: .15rem 0 0;
  text-align: center;
}
.rip-dl {
  margin: 0 0 .85rem;
  padding: 0;
  text-align: center;
  color: #111;
  font-size: 1rem;
  line-height: 1.5;
}
.rip-dl strong {
  display: inline;
  font-weight: 700;
  font-size: .95rem;
  color: #111;
}
.rip-dl-btn {
  cursor: pointer;
  display: inline-block;
  margin: 10px 5px 0 0;
  padding: 13px 25px;
  min-width: 90px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  font-family: inherit;
  text-align: center;
  text-decoration: none !important;
  border-radius: 4px;
  opacity: .85;
  color: #000 !important;
  background: transparent !important;
  border: 2px solid rgba(34, 197, 94, .65);
  box-shadow:
    0 0 16px rgba(34, 197, 94, .5),
    0 0 32px rgba(22, 163, 74, .3),
    0 0 48px rgba(22, 163, 74, .15);
  transition: .3s;
}
.rip-dl-btn:hover {
  opacity: 1;
  color: #fff !important;
  border-color: rgba(74, 222, 128, .85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  background: linear-gradient(135deg, rgb(22, 163, 74) 0%, rgb(21, 128, 61) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, .5),
    0 0 24px rgba(74, 222, 128, .55),
    0 0 48px rgba(22, 163, 74, .45),
    0 0 72px rgba(22, 163, 74, .22),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.rip-dl-btn:active {
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, .3),
    0 0 16px rgba(22, 163, 74, .4);
}

.rip-related { margin: 0; }
.rip-related-title {
  margin: 0 0 1rem; font-size: .92rem; font-weight: 800; color: #222;
  letter-spacing: .05em; text-transform: uppercase;
  padding-bottom: .7rem; border-bottom: 3px solid #ededf2;
}
.rip-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .8rem; }
.rip-related-card { display: block; color: #222; }
.rip-related-thumb {
  display: block; border-radius: 6px; overflow: hidden; background: #e9eaef;
  aspect-ratio: 2/3; box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.rip-related-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease;
}
.rip-related-card:hover .rip-related-thumb img { transform: scale(1.05); }
.rip-related-card strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: .5rem; font-size: .82rem; font-weight: 700; line-height: 1.35; color: #1a1a1a;
}
.rip-related-card:hover strong { color: #16a34a; }
.rip-related-card em {
  display: block; margin-top: .15rem; font-style: normal; color: #8a8a93; font-size: .72rem;
}

/* Comments */
.rip-comments { margin: 0; }
.rip-note {
  margin: 0 0 1rem; padding: .6rem .85rem; border-radius: 6px; font-size: .88rem; font-weight: 600;
}
.rip-note-ok { background: #ecfdf3; color: #037847; border: 1px solid #a7f0ba; }
.rip-note-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.comment-form { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.comment-form label { display: grid; gap: .3rem; }
.comment-form span {
  font-size: .78rem; font-weight: 700; color: #475467;
  letter-spacing: .03em; text-transform: uppercase;
}
.comment-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form input,
.comment-form textarea {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 8px;
  padding: .6rem .75rem; background: #fff; color: #1a1a1a; outline: none;
  font-size: .92rem;
}
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.comment-submit {
  justify-self: start; border: 0; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: 8px;
  background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff;
  font-size: .88rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(22,163,74,.26);
  transition: transform .14s ease, box-shadow .18s ease;
}
.comment-submit:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(34,197,94,.34); }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.comment-item {
  display: grid; grid-template-columns: 38px 1fr; gap: .7rem;
  padding-top: .9rem; border-top: 1px solid #ededf2;
}
.comment-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #ecfdf5; color: #15803d; font-weight: 800; font-size: .95rem;
}
.comment-meta { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .15rem; }
.comment-meta strong { font-size: .9rem; color: #1a1a1a; }
.comment-meta em { font-style: normal; color: #8a8a93; font-size: .76rem; }
.comment-body p { margin: 0; color: #333; font-size: .93rem; line-height: 1.6; }
.comment-empty { padding-top: .8rem; border-top: 1px solid #ededf2; }

/* Static document pages */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.25rem; align-items: start; }
.doc-panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 1.5rem 1.6rem 1.7rem; color: var(--text);
}
.doc-panel h2 {
  margin: 1.5rem 0 .6rem; font-family: var(--display); font-size: 1.12rem; letter-spacing: -.01em;
}
.doc-panel h2:first-child { margin-top: 0; }
.doc-panel p { margin: 0 0 .85rem; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.doc-panel p a, .doc-list a { color: var(--accent-hot); font-weight: 600; }
.doc-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: .94rem; }
.doc-list li { margin-bottom: .45rem; line-height: 1.65; }
.doc-list strong { color: var(--cream); }
.doc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.doc-side {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 1.1rem 1.2rem 1.25rem; position: sticky; top: 76px;
}
.doc-side h3 {
  margin: 0 0 .7rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.doc-links a { color: var(--cream); font-size: .9rem; font-weight: 600; }
.doc-links a:hover { color: var(--accent-hot); }

.faq-item {
  border-bottom: 1px solid var(--line-soft); padding: .9rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: .98rem; color: var(--cream);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-hot); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: .6rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }

/* Request page */
.request-hero {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 1.6rem 1.7rem 1.8rem; text-align: center;
}
.request-hero h2 { margin: 0 0 .6rem; font-family: var(--display); font-size: 1.5rem; }
.request-hero p { margin: 0 auto 1.3rem; color: var(--muted); max-width: 62ch; font-size: .96rem; }
.request-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.request-card {
  display: inline-flex; align-items: center; gap: .7rem; min-width: 255px;
  padding: .8rem 1rem; border-radius: 12px; color: #fff !important;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .15s ease, filter .15s ease;
}
.request-card:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff !important; }
.request-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; background: rgba(255,255,255,.18);
}
.request-icon svg { width: 21px; height: 21px; }
.request-text { display: grid; text-align: left; margin-right: auto; line-height: 1.25; }
.request-text strong { font-size: 1rem; font-weight: 800; }
.request-text span { font-size: .76rem; opacity: .88; }
.request-chevron { font-size: 1.3rem; opacity: .85; }
.request-telegram { background: linear-gradient(135deg, #1c7ed6, #29a9eb); box-shadow: 0 8px 22px rgba(41,169,235,.26); }
.request-discord { background: linear-gradient(135deg, #4b55d8, #6f79f2); box-shadow: 0 8px 22px rgba(111,121,242,.26); }

.rip-side { position: sticky; top: 74px; display: grid; gap: .85rem; }
.rip-side-card { padding-top: 1.15rem; }
.rip-popular-label {
  display: inline-block; margin: 0 0 1rem; padding: .42rem .9rem;
  background: #16a34a; color: #fff; font-size: .78rem; font-weight: 800;
  border-radius: 4px;
}
.rip-popular { list-style: none; margin: 0; padding: 0; }
.rip-popular li {
  margin: 0 0 .85rem; padding-bottom: .85rem;
  border-bottom: 1px solid #e0e2e8;
}
.rip-popular li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rip-popular a {
  display: grid; grid-template-columns: 64px 1fr; gap: .7rem; align-items: start; color: #222;
}
.rip-popular a:hover { color: #16a34a; }
.rip-popular img {
  width: 64px; height: 80px; object-fit: cover; border-radius: 5px; background: #e4e5ea;
}
.rip-popular strong {
  display: block; font-size: .84rem; line-height: 1.35; font-weight: 700;
}
.rip-popular em {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .25rem; font-style: normal; color: #999; font-size: .74rem;
}
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1.25rem; }
.pagination a {
  min-width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; color: var(--cream); font-weight: 700; font-size: .85rem;
}
.pagination a.is-active, .pagination a:hover {
  border-color: var(--accent); background: rgba(22,163,74,.12); color: var(--cream);
}

.search-bar { display: flex; gap: .5rem; margin-top: 1rem; max-width: 520px; }
.search-bar input {
  flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); padding: 0 .9rem; outline: none;
}
.search-bar input:focus { border-color: var(--accent); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1000px, 100%); max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px;
  border: 1px solid var(--line); background: var(--surface); color: var(--cream);
  border-radius: 4px; font-size: 1.3rem; cursor: pointer;
}

.site-footer {
  margin-top: 1.5rem; border-top: 1px solid var(--line-soft);
  background: #07070a; padding: 2.25rem 0 1.2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.5rem; }
.footer-tag { color: var(--muted); max-width: 32ch; }
.site-footer h3 {
  margin: 0 0 .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--accent-hot); }
.footer-bottom {
  margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .84rem;
}
.muted { color: var(--muted); }

@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .games-grid-5, .trend-grid { grid-template-columns: repeat(3, 1fr); }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-art img { min-height: 200px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav, .header-tools {
    display: none; position: absolute; left: 1rem; right: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .55rem;
  }
  .site-nav.is-open { display: flex; flex-direction: column; top: 62px; align-items: stretch; }
  .header-tools.is-open { display: flex; top: 260px; }
  .header-search, .header-search input { width: 100%; }
  .nav-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .5rem; }
  .layout-split, .footer-grid, .rip-cols { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .level-row { grid-template-columns: 1fr; }
  .social-card { min-width: 0; flex: 1 1 210px; }
  .rip { background-image: none; }
  .rip { padding-block: .9rem 1.4rem; }
  .rip-shell { width: min(100% - 1rem, 1220px); }
  .rip-page { padding: 1rem .85rem 1.2rem; }
  .rip-side { position: static; }
  .rip-related-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid, .games-grid-5, .trend-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rip-shot { width: calc(50% - .3rem); max-width: none; }
  .rip-shot img { height: 140px; }
  .rip-banner img { max-height: 200px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .rip-head, .rip-card, .rip-intro { padding: 1rem .15rem; }
  .rip-related-grid { grid-template-columns: repeat(2, 1fr); }
}
