/* =====================================================================
   pages.css — home "featured game" + "inside the game" tiles, nav extras
   ===================================================================== */

/* ---------- nav extras */
.nav__new { display: inline-block; margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(255,138,42,.5); color: var(--ignite); font-size: .5rem; letter-spacing: .18em; vertical-align: middle; }
.nav__game { color: var(--text) !important; }
.nav__back { color: var(--text-faint) !important; }
.nav__back:hover { color: var(--text) !important; }

/* ---------- featured game (home) */
.feat__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--void); }
.feat__frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; background: #0b1119; }
.feat .launch__storm, .feat .launch__rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat__copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(60px, 11vh, 120px); }
.feat__title { margin: 16px 0 0; max-width: 11ch; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.feat__title .split-line { padding-bottom: .04em; }
.feat__lede { margin-top: 14px; color: var(--text-dim); max-width: 44ch; }
.feat__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-height: 760px) { .feat__chips { display: none; } }
@media (max-height: 640px), (max-width: 700px) { .feat__lede { display: none; } }

/* ---------- inside the game: bento tiles */
.hl { background: var(--void); }
.hl__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: clamp(36px, 6vh, 60px); }
.hl__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); }
@media (min-width: 700px) { .hl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hl-tile--big { grid-column: span 2; } }
@media (min-width: 1000px) {
  .hl__grid { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, minmax(300px, 36vh)); }
  .hl-tile--big { grid-column: auto; grid-row: span 2; }
}
.hl-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 300px; border: 1px solid var(--line-strong); background: var(--ink-900);
  transition: border-color .4s;
}
.hl-tile:hover, .hl-tile:focus-visible { border-color: var(--silver); }
.hl-tile__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hl-tile__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out), filter .6s; filter: saturate(.85) brightness(.85); }
.hl-tile:hover .hl-tile__media img { transform: scale(1.0); filter: saturate(1) brightness(1); }
.hl-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,6,8,.94) 0%, rgba(4,6,8,.55) 42%, rgba(4,6,8,.05) 75%); }
.hl-tile__body { display: grid; gap: 10px; justify-items: start; padding: clamp(20px, 2.4vw, 32px); }
.hl-tile__n { color: var(--ignite); font-size: .78rem; letter-spacing: .3em; }
.hl-tile__body p { color: var(--text-dim); font-size: .95rem; max-width: 40ch; }
.hl-tile__go { font-family: var(--f-display); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ignite); transition: transform .4s var(--ease-out); }
.hl-tile:hover .hl-tile__go { transform: translateX(6px); }
.hl-tile--big h3 { max-width: 14ch; }
.hl__cta { margin-top: clamp(32px, 5vh, 56px); display: flex; justify-content: center; }

/* ---------- finale links (asa page) */
.finale__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* rail: labels only on hover so they never sit over module content at the right edge */
.rail a.is-active .lbl { opacity: 0; transform: translateX(8px); }
.rail:hover a .lbl, .rail a:focus-visible .lbl { opacity: 1; transform: none; }

/* soft shade under the fixed telemetry HUD (ASA page) so it never fights with content */
html.chapter-asa body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 96px; z-index: 69; pointer-events: none;
  background: linear-gradient(0deg, rgba(4,6,8,.9) 0%, rgba(4,6,8,.55) 45%, transparent 100%);
}
