/* ============================================================
   Games-site components
   Loaded after style.css (the shared Origin system).

   These are the components singleorigingames.com has that the studio site
   does not: game hero blocks, platform buttons, feature grids, release
   rows. The class names are the ones already in the markup - restyling
   them here rather than renaming keeps every page's HTML, and therefore
   every published URL, untouched.
   ============================================================ */

/* ---- Legacy layout containers ---------------------------------- */
/* The pages use .container / .container-narrow where the shared system
   uses .wrap. Map them rather than editing eight files. */
.container {
  width: 100%; max-width: var(--w-page);
  margin-inline: auto; padding-inline: 32px;
}
.container-narrow { max-width: 820px; }
@media (max-width: 820px) { .container { padding-inline: 20px; } }

/* ---- Prose page headers ---------------------------------------- */
.page-header { padding-block: 76px 0; }
.page-header h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.038em;
  line-height: 1.08; margin-bottom: 16px;
}
.page-header__subtitle { color: var(--ink-soft); font-size: 17px; max-width: 60ch; }
.last-updated {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}

/* ---- Legacy section headings ----------------------------------- */
.section__eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -0.028em;
  line-height: 1.08; margin-bottom: 12px;
}
.section__subtitle { color: var(--ink-soft); font-size: 17px; max-width: 62ch; }

/* ---- Game detail hero ------------------------------------------ */
.game-hero {
  display: grid; grid-template-columns: 152px minmax(0, 1fr);
  gap: 34px; align-items: center; padding-block: 72px 44px;
}
@media (max-width: 720px) {
  .game-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 48px 32px; }
}
.game-hero__art img {
  width: 152px; height: 152px; border-radius: 30px;
  box-shadow: 0 0 0 1px var(--border), 0 18px 46px var(--orbit-glow);
}
@media (max-width: 720px) { .game-hero__art img { width: 108px; height: 108px; border-radius: 22px; } }
.game-hero__byline {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.game-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -0.038em;
  line-height: 1.06; margin-bottom: 16px;
}
.game-hero__lead { color: var(--ink-soft); font-size: 17.5px; max-width: 60ch; }

/* ---- Platform buttons ------------------------------------------ */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.platform-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--border-firm); background: var(--surface);
  color: var(--ink);
  transition: border-color .16s ease, color .16s ease;
}
.platform-btn svg { width: 22px; height: 22px; flex: none; }
.platform-btn__label {
  display: flex; flex-direction: column; line-height: 1.2;
  font-size: 15px; font-weight: 600;
}
.platform-btn__label small {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.platform-btn--live:hover { border-color: var(--accent); color: var(--accent); }
.platform-btn--soon { opacity: .55; cursor: default; }

/* ---- Feature grid ---------------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
/* Hairline separators, drawn with a shadow so they land between cells
   without needing nth-child arithmetic per breakpoint. */
.feature {
  padding: 26px 24px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule);
}
.feature__icon { color: var(--accent); margin-bottom: 4px; }
.feature__icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.022em; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---- Release rows (home) --------------------------------------- */
.release {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 40px; padding-block: 40px; border-top: 1px solid var(--rule);
}
.release:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .release { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

.release__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.release__head img { width: 54px; height: 54px; border-radius: var(--radius); flex: none; }
.release__head h3 { font-size: 23px; line-height: 1.15; }
.release__head span {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.release p { color: var(--ink-soft); font-size: 15px; }

/* Ruled rows on the page ground - NOT a white panel. `.spec` carries
   `background: var(--surface)`, which would put a hard edge exactly where
   the label text starts and read as though the text were cut off. */
.release__meta {
  margin-top: 18px;
  background: transparent;
  border: 0; border-top: 1px solid var(--rule); border-radius: 0;
}
.release__meta .spec__row { padding-inline: 0; }

.store-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---- In-development grid --------------------------------------- */
.soon-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.soon-grid > * + * { border-left: 1px solid var(--rule); }
@media (max-width: 780px) {
  .soon-grid { grid-template-columns: minmax(0, 1fr); }
  .soon-grid > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}
.soon { background: var(--surface); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.soon h3 { font-size: 18px; }
.soon p { font-size: 14px; color: var(--ink-soft); }
.soon__plat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 8px;
}

/* ---- Values (legacy home markup) ------------------------------- */
.values {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.values > * + * { border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .values > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}
.value { background: var(--surface); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.value__icon { color: var(--accent); margin-bottom: 6px; }
.value__icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.value h3 { font-size: 17.5px; }
.value p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- Notify (compact variant on game pages) -------------------- */
.notify--compact {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 30px 28px;
}
.notify--compact h2 { font-size: 24px; margin-bottom: 10px; }
.notify--compact p { margin-bottom: 18px; }
.notify__alt { font-size: 14px; color: var(--muted); margin-top: 14px; }
.notify__alt a { color: var(--accent); }

/* ---- Legacy buttons -------------------------------------------- */
/* .btn/.btn--primary already come from the shared system. The games site
   also uses .btn--secondary. */
.btn--secondary {
  background: var(--surface); color: var(--ink); border-color: var(--border-firm);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Cross-brand strip ----------------------------------------- */
.crossbrand {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 14.5px; color: var(--ink-soft);
}
.crossbrand img { width: 30px; height: 30px; border-radius: var(--radius); flex: none; }
.crossbrand strong { color: var(--ink); font-weight: 600; }
.crossbrand .btn { margin-left: auto; }

/* ---- Legacy header / footer class names ------------------------ */
/* The pages use .site-header__brand / .site-footer__cols where the shared
   system uses .brand / .footer-cols. Mapping them here means the eight
   existing headers and footers keep their markup - and their links. */

.site-header__brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.site-header__brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header__brand > span { display: flex; flex-direction: column; line-height: 1.2; }
.site-header__brand small {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.site-header__nav { display: flex; gap: 24px; font-size: 14px; }
.site-header__nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding-block: 5px; position: relative; transition: color .16s ease;
}
.site-header__nav a:hover { color: var(--ink); }
.site-header__nav a.active { color: var(--accent); }
.site-header__nav a.active::after {
  content: ""; position: absolute; inset: auto 0 -1px 0;
  height: 2px; background: var(--accent-fill);
}
@media (max-width: 860px) { .site-header__nav { display: none; } }

.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: minmax(0, 1fr); } }

.site-footer__brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.site-footer__brand-mark {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.02em; color: var(--ink);
}
.site-footer__brand-mark img { width: 30px; height: 30px; border-radius: 7px; }

.site-footer__col h4 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer__col a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color .16s ease; }
.site-footer__col a:hover { color: var(--accent); }

.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-links a {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: color .16s ease, border-color .16s ease;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

.site-footer__legal {
  margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.site-footer__legal a { color: var(--muted); }
.site-footer__attribution { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.site-footer__attribution a { color: var(--accent); text-decoration: none; }
