/* ============================================================
   Shared money page (games/game.php) — the few pieces page-rich.css doesn't cover.
   Loaded through $extra_css after the shared money CSS.
   ============================================================ */

/* Answer-first card: the direct answer under the hero (the passage AI Overviews quote) */
.answer-card { background: var(--surface-3); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 4px; padding: 28px 30px; max-width: 960px; }
.answer-card .q { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.answer-card p { color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.answer-card p strong { color: var(--text); }
.answer-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.answer-card .meta span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); background: var(--surface-1); border: 1px solid var(--border); border-radius: 3px; padding: 5px 10px; }

.h3 { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.spec-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.spec-card p + p { margin-top: 10px; }
.spec-card h3 + p { margin-top: 8px; }
main code { font-size: .92em; overflow-wrap: anywhere; }
/* grid items default to min-width:auto, so a long chip or button row widens the hero column past the phone */
.hero-copy, .hero-stage { min-width: 0; }
/* .hero-in's "padding: 64px 0 88px" shorthand zeroes the .wrap gutter; invisible on desktop
   (centred max-width), but on phones the hero text touches the screen edge */
.wrap.hero-in { padding-inline: 22px; }

/* Reference tables have 2–3 short columns; the 600px minimum in page-rich.css is for the
   wide competitor table and pushes these off-screen on phones. */
.cmp { max-width: 100%; }
@media (max-width: 640px) {
  table.cmp-t { min-width: 0; }
  .cmp-t th, .cmp-t td { padding: 12px 12px; font-size: 13.5px; }
  .answer-card { padding: 22px 20px; }
  .spec-row { flex-wrap: wrap; gap: 4px 12px; }
}

/* Modpack grid (Minecraft page): four featured cards, then every one-click pack as an accordion.
   Keeps the #gtmp-grid anchor the other pages and the blog link to. */
.mp-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.mp-card { position: relative; display: block; height: 220px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.mp-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.mp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%); }
.mp-card-t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); }
.mp-card-t b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--text); margin-bottom: 4px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-items: start; }
.mp-pack { background: var(--surface-1); border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; }
.mp-pack summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); }
.mp-pack[open] { border-color: var(--primary); }
.mp-pack p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.mp-pack a { color: var(--primary); font-weight: 600; }
