/* ForgeVault network layer — extends forgevault.css.
   Image-led, in the spirit of the original design: shader renders carry each
   world, tinted with its molten accent (--g, set inline from games.py). The
   signature is the world card — a render under an accent wash with the name
   stamped over it and a forge-heat bar reading how far along it is.
   .hero / .gallery / .convo / .hire / .lightbox come from forgevault.css. */

/* ---- compact header (servers page) ---- */
.nhead { position: relative; overflow: hidden; padding: clamp(2.6rem, 6vw, 3.8rem) 0 1.4rem; text-align: center; }
.nhead::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 340px at 50% -10%, rgba(255,106,43,.14), transparent 70%); }
.nhead__in { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }
.nhead__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-head);
  font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-hi);
  background: rgba(233,168,58,.1); border: 1px solid rgba(233,168,58,.32); padding: .4rem .8rem; border-radius: 99px; }
.nhead__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.03; margin: 1rem 0 0; }
.nhead__sub { color: var(--dim); font-size: clamp(.98rem, 2.2vw, 1.12rem); line-height: 1.55; margin: .9rem auto 0; max-width: 32rem; }

/* ---- world cards (image-led) ---- */
.worlds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 720px) { .worlds-grid { grid-template-columns: 1fr; } }

.wcard { --g: var(--brand); position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wcard:hover { transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--g) 55%, var(--line-2));
  box-shadow: 0 26px 52px -28px color-mix(in srgb, var(--g) 65%, #000); }

.wcard__media { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.wcard__media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--g), transparent); }
.wcard__media::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,14,18,.28) 0%, rgba(12,14,18,0) 32%,
      color-mix(in srgb, var(--g) 24%, rgba(12,14,18,.7)) 80%,
      color-mix(in srgb, var(--g) 46%, #0a0c0f) 100%); }

.wcard__top { position: absolute; inset: .95rem .95rem auto .95rem; z-index: 2; display: flex; }
.wcard__name { position: absolute; left: 1.15rem; bottom: .8rem; z-index: 2; margin: 0;
  font-family: var(--f-head); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2rem); line-height: 1;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); }

.wcard__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.wcard__tagline { color: var(--dim); font-size: .9rem; line-height: 1.45; margin: 0; }
.wcard__foot { display: flex; align-items: center; gap: .6rem; }
.wcard__more { margin-left: auto; font-family: var(--f-head); font-weight: 600; font-size: .8rem; color: var(--dim); }
.wcard:hover .wcard__more { color: var(--g); }

/* status stamp (over media or on a page) */
.stamp { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-head); font-weight: 700; font-size: .64rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .34rem .6rem; border-radius: 7px; white-space: nowrap; backdrop-filter: blur(4px);
  color: #fff; background: color-mix(in srgb, var(--g) 42%, rgba(10,12,16,.55));
  border: 1px solid color-mix(in srgb, var(--g) 60%, transparent); }
.stamp--flat { color: var(--g); background: color-mix(in srgb, var(--g) 13%, transparent);
  border-color: color-mix(in srgb, var(--g) 42%, transparent); backdrop-filter: none; }
.stamp__dot { width: 6px; height: 6px; border-radius: 99px; background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 40%, transparent); }

/* forge-heat bar */
.heat { display: flex; flex-direction: column; gap: .4rem; }
.heat__meta { display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-body); font-size: .7rem; letter-spacing: .02em; color: var(--dim); text-transform: uppercase; }
.heat__meta b { color: var(--g); font-weight: 700; }
.heat__track { height: 7px; border-radius: 99px; background: var(--row); overflow: hidden; }
.heat__fill { height: 100%; width: var(--heat, 30%); border-radius: 99px;
  background: linear-gradient(90deg, var(--ember), var(--g));
  box-shadow: 0 0 12px color-mix(in srgb, var(--g) 65%, transparent); }

.btn--game { background: var(--g); color: #0c0f14; box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--g) 80%, transparent); }
.btn--game:hover { filter: brightness(1.08); }
.btn--gline { background: transparent; color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 45%, transparent); }
.btn--gline:hover { background: color-mix(in srgb, var(--g) 12%, transparent); }

/* ---- per-game page: full-bleed render hero ---- */
.ghero { --g: var(--brand); position: relative; overflow: hidden; }
.ghero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.ghero__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,.5) 0%, color-mix(in srgb, var(--g) 22%, rgba(10,12,16,.8)) 100%),
    radial-gradient(760px 320px at 18% 0%, color-mix(in srgb, var(--g) 30%, transparent), transparent 70%); }
.ghero__in { position: relative; z-index: 1; padding: clamp(3.6rem, 9vw, 6rem) 0 clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.ghero__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4rem); margin: .7rem 0 0; line-height: 1;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.ghero__tagline { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2.4vw, 1.28rem); margin: .6rem 0 0; }
.ghero__cta { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* feature grid + blurb + other-worlds (per game accent via --g) */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .feat { grid-template-columns: 1fr; } }
.feat__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.feat__item h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; margin: 0 0 .3rem; color: var(--g); }
.feat__item p { color: var(--dim); font-size: .87rem; line-height: 1.5; margin: 0; }
.blurb { color: var(--dim); font-size: 1.02rem; line-height: 1.65; max-width: 42rem; }

.worlds { display: flex; gap: .7rem; flex-wrap: wrap; }
.world-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: .85rem;
  color: var(--text); transition: border-color .16s, transform .16s; }
.world-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--wc) 50%, transparent); }
.world-chip .wc-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--wc); }

/* network explainer strip */
.forge-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 720px) { .forge-how { grid-template-columns: 1fr; } }
.how { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.how h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; margin: .2rem 0 .4rem; }
.how p { color: var(--dim); font-size: .88rem; line-height: 1.55; margin: 0; }
.how__k { font-family: var(--f-head); font-weight: 800; color: var(--brand); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

.section-note { color: var(--dim); font-size: .82rem; }
