/* Video Games Are Rad: the database pages (games, lists, tonight, home).
   Tokens match articles.css. Built by build/build.mjs. */
:root {
  --bg: #07090f;
  --panel: #0d1420;
  --panel-2: #111d2b;
  --cyan: #22d3ee;
  --cyan-soft: #a5f3fc;
  --lime: #a3e635;
  --pink: #f472b6;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(34, 211, 238, .2);
  --soft: rgba(148, 163, 184, .16);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 12% -10%, rgba(34,211,238,.1), transparent 34rem), radial-gradient(circle at 100% 20%, rgba(163,230,53,.05), transparent 30rem), var(--bg); font: 400 1rem/1.65 Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: var(--cyan-soft); text-underline-offset: .18em; }
a:hover, a:focus-visible { color: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .display { font-family: Orbitron, Inter, sans-serif; letter-spacing: .01em; line-height: 1.15; color: #fff; }
h1 { font-size: clamp(2rem, 5.5vw, 4rem); margin: .4rem 0 1rem; text-shadow: 0 0 28px rgba(34,211,238,.22); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0; }
h3 { font-size: 1rem; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.kicker { color: var(--lime); font: 700 .75rem/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.dek { color: #cbd5e1; font-size: 1.15rem; max-width: 44rem; margin: 0 0 1.5rem; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(7,9,15,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--soft); }
.top .wrap { display: flex; align-items: center; gap: 1.25rem; height: 4rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 800 1rem/1 Orbitron, Inter, sans-serif; letter-spacing: .02em; white-space: nowrap; }
.logo i { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: linear-gradient(135deg, var(--cyan), var(--lime)); color: #07090f; }
.logo i svg { width: 1.2rem; height: 1.2rem; }
.logo b { color: var(--cyan); font-weight: 800; }
.nav { display: flex; gap: 1.1rem; margin-left: auto; }
.nav a { color: #cbd5e1; text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--cyan); }
.search-mini { display: flex; }
.search-mini input { width: 11rem; background: rgba(255,255,255,.05); border: 1px solid var(--soft); color: var(--ink); border-radius: .5rem; padding: .45rem .7rem; font: inherit; font-size: .88rem; }
.search-mini input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: .4rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav, .search-mini { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: flex; position: absolute; top: 4rem; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7,9,15,.97); border-bottom: 1px solid var(--soft); padding: .5rem 1rem 1rem; }
  .top.open .nav a { padding: .7rem 0; border-bottom: 1px solid var(--soft); }
  #vg-login { margin-left: 0; }
}

/* sections */
.section { padding: 3.5rem 0 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.section-head a { font-size: .88rem; white-space: nowrap; text-decoration: none; }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs a { color: var(--muted); }

/* the cartridge art */
.cart { aspect-ratio: 3 / 4; width: 100%; border-radius: .5rem; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.card { display: grid; gap: .55rem; color: var(--ink); text-decoration: none; }
.card .cart { transition: transform .2s, filter .2s; }
.card:hover .cart, .card:focus-visible .cart { transform: translateY(-4px); filter: drop-shadow(0 14px 28px rgba(34,211,238,.25)); }
.card h3 { font: 600 .92rem/1.3 Inter, sans-serif; color: #fff; }
.card small { color: var(--muted); font-size: .78rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.5rem 1.1rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: 1.1rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } .rail { grid-auto-columns: 42%; } }

/* chips and filters */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1px solid var(--soft); background: rgba(255,255,255,.03); color: #cbd5e1; border-radius: 999px; padding: .35rem .8rem; font: 500 .82rem/1.2 Inter, sans-serif; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--cyan); color: #fff; }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #07090f; font-weight: 700; }
.tag { display: inline-block; border: 1px solid var(--line); color: var(--cyan-soft); border-radius: .35rem; padding: .1rem .45rem; font: 700 .7rem/1.4 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.tag.lime { border-color: rgba(163,230,53,.35); color: var(--lime); }
.filters { display: grid; gap: .8rem; margin: 1.5rem 0 2rem; padding: 1.1rem; border: 1px solid var(--soft); border-radius: .9rem; background: rgba(13,20,32,.7); }
.filters label { font: 700 .7rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .45rem; }
.big-search { width: 100%; background: rgba(7,9,15,.8); border: 1px solid var(--line); color: #fff; border-radius: .7rem; padding: .9rem 1rem; font: 500 1.05rem Inter, sans-serif; }
.big-search:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: .6rem; padding: .75rem 1.2rem; font: 700 .95rem/1 Inter, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--lime)); color: #07090f; box-shadow: 0 0 24px rgba(34,211,238,.25); }
.btn-primary:hover { color: #07090f; transform: translateY(-1px); }
.btn-ghost { border-color: var(--soft); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--cyan); }

/* hero */
.hero { padding: 4.5rem 0 2.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; transform: rotate(-4deg); }
.hero .shelf .card:nth-child(2) { transform: translateY(-1.5rem); }
.hero-search { display: flex; gap: .5rem; max-width: 34rem; margin-top: 1.5rem; }
.hero-search input { flex: 1; }
.stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stats b { display: block; font: 800 1.6rem/1 Orbitron, sans-serif; color: #fff; }
.stats span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .shelf { max-width: 26rem; } .hero { padding-top: 2.5rem; } }

/* tiles: lists, doors */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.tile { position: relative; display: grid; gap: .5rem; align-content: end; min-height: 11rem; padding: 1.2rem; border: 1px solid var(--soft); border-radius: .9rem; background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(13,20,32,.9) 55%); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s; }
.tile:hover, .tile:focus-visible { border-color: var(--cyan); transform: translateY(-2px); color: var(--ink); }
.tile h3 { font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.tile .minis { position: absolute; top: .9rem; right: .9rem; display: flex; gap: .3rem; opacity: .9; }
.tile .minis svg { width: 2.4rem; }
.tile.lime { background: linear-gradient(160deg, rgba(163,230,53,.09), rgba(13,20,32,.9) 55%); }
.tile.pink { background: linear-gradient(160deg, rgba(244,114,182,.09), rgba(13,20,32,.9) 55%); }

/* game page */
.game { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; padding: 1.5rem 0 1rem; }
.game .cart { max-width: 17rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 1.25rem 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: #fff; }
.release { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .5rem 0 1.5rem; }
.release th, .release td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--soft); }
.release th { color: var(--muted); font-weight: 600; }
.panel { padding: 1.1rem 1.2rem; border: 1px solid var(--soft); border-radius: .8rem; background: rgba(13,20,32,.75); }
.panel.play { border-color: rgba(163,230,53,.3); background: rgba(163,230,53,.05); }
.panel.play strong { color: var(--lime); }
@media (max-width: 760px) { .game { grid-template-columns: 1fr; } .game .cart { max-width: 12rem; } }

/* ranked list */
.ranked { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: rank; }
.ranked li { display: grid; grid-template-columns: 3rem 5.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1rem; border: 1px solid var(--soft); border-radius: .9rem; background: rgba(13,20,32,.7); }
.ranked li::before { counter-increment: rank; content: counter(rank); font: 800 1.8rem/1 Orbitron, sans-serif; color: var(--cyan); text-align: center; }
.ranked h3 a { color: #fff; text-decoration: none; }
.ranked p { margin: .35rem 0 0; color: #cbd5e1; font-size: .95rem; }
@media (max-width: 560px) { .ranked li { grid-template-columns: 2rem 4rem minmax(0, 1fr); gap: .7rem; } .ranked li::before { font-size: 1.2rem; } }

/* tonight */
.tonight-card { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(163,230,53,.04)); min-height: 18rem; }
@media (max-width: 640px) { .tonight-card { grid-template-columns: 1fr; } .tonight-card .cart { max-width: 10rem; } }

/* footer */
.foot { margin-top: 4rem; border-top: 1px solid var(--soft); padding: 2.5rem 0 3rem; color: var(--muted); font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot h4 { margin: 0 0 .6rem; color: #fff; font: 700 .75rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--cyan); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* the login slot sits beside the menu button on phones */
@media (max-width: 767px) { .top #vg-login { display: flex; margin-left: auto; } .top #vg-login + .menu-btn { margin-left: .25rem; } }
@media (max-width: 560px) {
  .top .wrap { gap: .5rem; }
  .logo { font-size: .8rem; gap: .45rem; }
  .logo i { width: 1.8rem; height: 1.8rem; }
  .top .vg-login { white-space: nowrap; padding: .4rem .75rem; }
}
.hero { overflow-x: clip; }
main.wrap { padding-top: 2rem; } main.wrap > .hero:first-child { margin-top: -2rem; }
.cart[data-cart] { background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(13,20,32,.6)); }
/* write-ups */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; padding: 1.5rem 0 1rem; border-top: 1px solid var(--soft); margin-top: 1.5rem; }
.review-body { max-width: 46rem; font-size: 1.05rem; line-height: 1.75; }
.review-body h2 { font-size: 1.2rem; color: var(--cyan-soft); margin: 2rem 0 .5rem; }
.review-body h2:first-child { margin-top: .5rem; }
.review-body p { margin: .9rem 0; color: #d7dee8; }
.compare, .where { margin: .5rem 0; padding-left: 1.1rem; display: grid; gap: .55rem; }
.where { font-size: .92rem; color: #cbd5e1; }
.verdict { margin-top: 2rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--lime); background: rgba(163,230,53,.06); border-radius: 0 .6rem .6rem 0; }
.verdict p:last-child { margin: .4rem 0 0; color: #fff; font-weight: 500; }
.review-side { position: sticky; top: 5rem; }
@media (max-width: 860px) { .review { grid-template-columns: 1fr; } .review-side { position: static; } }
.refs { margin: .75rem 0 0; padding-left: 1.2rem; font-size: .82rem; color: var(--muted); display: grid; gap: .3rem; }
.essay { max-width: 46rem; font-size: 1.07rem; line-height: 1.8; }
.essay h2 { font-size: 1.3rem; color: var(--cyan-soft); margin: 2.2rem 0 .5rem; }
.essay p { color: #d7dee8; }
/* box art: shown whole, on a dark card, same footprint as the cartridge */
.cover { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: contain; background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.1), rgba(13,20,32,.95)); border-radius: .5rem; border: 1px solid var(--soft); box-shadow: 0 10px 24px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.card:hover .cover, .card:focus-visible .cover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(34,211,238,.25); }
.game .cover { max-width: 17rem; }
.tile .minis .cover { width: 2.4rem; }
@media (max-width: 760px) { .game .cover { max-width: 12rem; } }
.aside { color: var(--muted); font-style: italic; border-left: 2px solid var(--line); padding-left: .9rem; }
