/* ============================================================================================
   THE FRONT PAGE (landing only) -- [spec-landing-v2], docs/design/spec-landing-v2.md

   Loaded by the landing alone, in its own file so every other page stays as light as it was.

   THREE RULES THIS FILE IS BUILT ON:
   1. THE FIRST SCREEN SHOWS THE GAME. The old hero was text over a faint emblem; the first in-game
      picture sat ~1300px down. Now a real capture fills the right of the hero on desktop and the top
      of it on a phone, and the words sit on solid dark where they can always be read.
   2. NOTHING RESTS INVISIBLE. Every block renders at full opacity with no script at all -- a link
      unfurler, a crawler or a full-page capture sees the whole page. Motion is added ON TOP (the
      video, the parade, a small lift as a section enters), never a precondition for being seen.
   3. MOTION HAS ONE JOB PER SCREEN. The hero clip is the only thing moving above the fold; the parade
      is the only thing moving in its band; feature clips play only while on screen. Everything
      honours prefers-reduced-motion (poster frames, a still, hand-scrollable parade).
   ============================================================================================ */

/* ---------------- hero ---------------- */
.lx-hero { position:relative; overflow:hidden; border-bottom:1px solid var(--line);
  background:radial-gradient(700px 420px at 12% 0%, var(--accent-bg), transparent 70%), var(--bg-0); }
.lx-hero .wrap { position:relative; z-index:2; display:flex; align-items:center; min-height:min(580px, calc(100vh - 60px - 64px)); }
.lx-copy { max-width:500px; padding:40px 0; }
.lx-copy h1 { font-size:clamp(40px,5.4vw,70px); font-weight:800; line-height:1.02; letter-spacing:-.02em; margin:14px 0 16px; }
.lx-copy h1 b { color:var(--accent); font-weight:800; animation:throneGlow 3.6s ease-in-out infinite; }
.lx-copy .sub { font-size:clamp(16px,1.6vw,18.5px); line-height:1.6; color:var(--tx-mid); margin:0 0 26px; max-width:48ch; }
.lx-copy .sub b { color:var(--tx-hi); font-weight:600; }
.lx-copy .cta { justify-content:flex-start; }
.lx-copy .hero-gate { margin:16px 0 0; text-align:left; max-width:52ch; }
.lx-copy .status-chip { margin-top:24px; animation:none; }

/* The clip bleeds off the right edge and dissolves into the dark behind the words, so the page reads
   as one picture rather than a text column beside a video box. */
.lx-media { position:absolute; top:0; right:0; bottom:0; width:60%; z-index:1; background:#120e09;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 18%, #000 38%);
          mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 18%, #000 38%); }
.lx-media video, .lx-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 40%; display:block;
  filter:saturate(.55) brightness(.62) contrast(1.05); }
/* NO FLASHBANG (owner: "feels like we flashbang people as they come to the website"): fire and violet
   fields at full strength are the loudest thing a visitor meets, before a word is read. The hero is dimmed
   and muted to sit BEHIND the words, and the video fades up over the poster instead of cutting in. */
.lx-media video { transition:opacity 1.6s ease; }
.lx-media video.pre { opacity:0; }   /* set by landing.js only: with no script the poster simply shows */
.lx-media::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,12,16,.45), transparent 22%, transparent 70%, rgba(10,12,16,.7)),
             radial-gradient(120% 90% at 70% 50%, transparent 40%, rgba(10,12,16,.55)); }
/* What you are looking at, said plainly. The honesty the old page put in a sub-heading ("real captures,
   not mock-ups") now rides the picture itself, and changes with each cut. */
.lx-cap { position:absolute; right:18px; bottom:18px; z-index:3; max-width:min(540px, 80%);
  display:flex; gap:10px; align-items:center; padding:8px 12px; border-radius:8px;
  background:rgba(8,10,14,.74); border:1px solid var(--accent-line); backdrop-filter:blur(6px);
  font:500 12.5px/1.35 var(--sans); color:var(--tx-hi); text-decoration:none; transition:border-color .15s; }
.lx-cap:hover { border-color:var(--accent); }
.lx-cap .tag { flex:none; font:600 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--accent);
  padding:4px 6px; border:1px solid var(--accent-line); border-radius:4px; }
.lx-cap .txt { transition:opacity .35s; }
.lx-cap .txt.swap { opacity:0; }

@media (max-width:900px) {
  .lx-hero .wrap { display:block; min-height:0; }
  .lx-media { position:relative; width:auto; height:auto; aspect-ratio:16/9; margin:0 -16px;
    -webkit-mask-image:linear-gradient(180deg, #000 70%, transparent); mask-image:linear-gradient(180deg, #000 70%, transparent); }
  .lx-media::after { display:none; }
  .lx-hero { display:flex; flex-direction:column; }
  .lx-hero > .lx-media { order:-1; margin:0; }
  .lx-cap { right:auto; left:12px; bottom:auto; top:12px; padding:5px 7px; }
  .lx-cap .txt { display:none; }   /* a phone gets the badge; the words would cover the picture */
  .lx-copy { padding:8px 0 34px; max-width:none; }
  .lx-copy h1 { margin-top:10px; }
}
/* A phone gets ONE column of equal, thumb-wide buttons: the join path should read as a list of doors,
   not two ragged pills whose widths depend on their labels. */
@media (max-width:560px) {
  .lx-copy .cta .btn { flex:1 1 100%; justify-content:center; }
  .lx-copy .eyebrow { font-size:10.5px; letter-spacing:.09em; }
}

/* ---------------- section chrome ---------------- */
.lx-sec { padding:clamp(56px,7vw,88px) 0; border-top:1px solid var(--line); }
.lx-h { font-size:clamp(26px,3.4vw,38px); font-weight:800; letter-spacing:-.015em; text-align:center; line-height:1.12; }
.lx-h b { color:var(--accent); }
.lx-sub { color:var(--tx-mid); text-align:center; margin:10px auto 0; max-width:60ch; }
.lx-kicker { font:600 11.5px/1 var(--mono); letter-spacing:.2em; text-transform:uppercase; color:var(--accent); text-align:center; margin-bottom:12px; }

/* ---------------- the parade (the 18 Marked) ---------------- */
.lx-parade-sec { padding-top:clamp(40px,4.5vw,56px); padding-bottom:clamp(40px,5vw,64px); background:
  radial-gradient(900px 300px at 50% 100%, rgba(230,177,62,.07), transparent 70%), var(--bg-0); }
/* A NATIVE scroller, not a CSS transform marquee: without script it is simply a row you can swipe,
   drag or arrow through, and the auto-drift (landing.js) moves scrollLeft, so the same box answers a
   finger, a wheel and the keyboard with no second code path. */
.lx-parade { margin-top:34px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.lx-parade::-webkit-scrollbar { display:none; }
.lx-parade:focus-visible { outline:2px solid var(--accent-line); outline-offset:4px; }
.lx-track { display:flex; gap:clamp(10px,1.6vw,22px); width:max-content; padding:6px clamp(16px,5vw,64px) 10px; margin:0; list-style:none; }
.lx-beast { flex:none; width:clamp(150px,15vw,196px); }
.lx-beast a { display:block; text-align:center; text-decoration:none; border-radius:12px; padding:0 4px 12px;
  transition:transform .2s ease, background-color .2s ease; }
.lx-beast a:hover, .lx-beast a:focus-visible { transform:translateY(-4px); background:rgba(255,255,255,.025); }
.lx-beast a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.lx-art { height:clamp(140px,14vw,178px); display:flex; align-items:flex-end; justify-content:center; position:relative; }
/* The ground glow IS the grade -- gold / blue / ember -- the same reading the beacon gives in game. */
.lx-art::before { content:""; position:absolute; left:8%; right:8%; bottom:-4px; height:34%; border-radius:50%;
  background:radial-gradient(closest-side, var(--gg, rgba(230,177,62,.34)), transparent); }
.lx-art img { position:relative; max-width:100%; max-height:100%; width:auto; height:auto; filter:drop-shadow(0 10px 12px rgba(0,0,0,.55)); }
.lx-beast .nm, .lx-beast .gr, .lx-beast .rg { display:block; }
.lx-beast .nm { margin-top:10px; font-weight:700; font-size:14.5px; color:var(--tx-hi); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-beast .gr { font:600 10.5px/1.4 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--gc, var(--accent)); }
.lx-beast .rg { font-size:12px; color:var(--tx-lo); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-beast.g-fabled { --gg:rgba(110,160,255,.36); --gc:#8fb3ff; }
.lx-beast.g-mythic { --gg:rgba(255,106,54,.44); --gc:#ff8f62; }
.lx-parade-foot { text-align:center; margin-top:22px; font-size:13.5px; color:var(--tx-lo); }
.lx-parade-foot a { color:var(--accent); }

/* ---------------- feature rows ---------------- */
.lx-rows { display:grid; gap:clamp(40px,6vw,76px); margin-top:clamp(36px,5vw,56px); }
.lx-row { display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(24px,4vw,56px); align-items:center; }
.lx-row:nth-child(even) .lx-clip { order:2; }
.lx-clip { position:relative; display:block; border-radius:14px; overflow:hidden; border:1px solid var(--line-2);
  background:#0e1115; aspect-ratio:16/9; box-shadow:0 24px 60px -30px rgba(0,0,0,.8); transition:border-color .2s; }
.lx-clip:hover { border-color:var(--accent-line); }
.lx-clip video, .lx-clip img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.lx-clip .rc { position:absolute; left:12px; top:12px; font:600 9.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); background:rgba(8,10,14,.72); border:1px solid var(--accent-line); padding:5px 7px; border-radius:4px; }
.lx-txt .k { font:600 11px/1 var(--mono); letter-spacing:.18em; text-transform:uppercase; color:var(--accent); }
.lx-txt h3 { font-size:clamp(22px,2.4vw,28px); font-weight:800; letter-spacing:-.01em; line-height:1.15; margin:10px 0 12px; }
.lx-txt p { color:var(--tx-mid); font-size:15.5px; line-height:1.7; margin:0 0 14px; max-width:52ch; }
.lx-txt p b { color:var(--tx-hi); font-weight:600; }
.lx-more { color:var(--accent); font-weight:600; font-size:14px; text-decoration:none; }
.lx-more:hover { text-decoration:underline; }
.lx-live { display:inline-flex; gap:10px; align-items:baseline; margin:4px 0 16px; padding:8px 12px; border-radius:8px;
  border:1px solid var(--accent-line); background:var(--accent-bg); font-size:14px; color:var(--tx-hi); text-decoration:none; }
.lx-live .l { font:600 10px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--accent); }
.lx-live .ev-t { font-family:var(--mono); color:var(--accent); font-weight:600; font-variant-numeric:tabular-nums; }
@media (max-width:820px) {
  .lx-row { grid-template-columns:1fr; }
  .lx-row:nth-child(even) .lx-clip { order:0; }
}

/* ---------------- "and also" ---------------- */
.lx-also { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); margin-top:clamp(44px,6vw,72px); }
.lx-also a { display:block; text-decoration:none; background:var(--bg-1); border:1px solid var(--line); border-radius:12px;
  padding:18px 18px 16px; transition:border-color .15s, transform .15s; }
.lx-also a:hover { border-color:var(--accent-line); transform:translateY(-2px); }
.lx-also h4 { font-size:15px; font-weight:700; color:var(--tx-hi); margin:0 0 6px; }
.lx-also p { font-size:13.5px; color:var(--tx-mid); line-height:1.6; margin:0; }
.lx-also .pic { display:block; width:100%; height:auto; border-radius:8px; margin:0 0 12px; border:1px solid var(--line); }

/* ---------------- latest update ---------------- */
.lx-news { max-width:760px; margin:28px auto 0; background:var(--bg-1); border:1px solid var(--line); border-radius:14px; padding:22px 24px; }
.lx-news .top { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; justify-content:space-between; }
.lx-news h3 { font-size:18px; margin:0; }
.lx-news time { font:12px var(--mono); color:var(--tx-lo); }
.lx-news ul { margin:14px 0 6px; padding-left:20px; color:var(--tx-mid); line-height:1.65; }
.lx-news li::marker { color:var(--accent); }

/* ---------------- the realm (young, and saying so) ---------------- */
.lx-realm { display:flex; gap:clamp(18px,5vw,56px); justify-content:center; flex-wrap:wrap; margin-top:26px; }
.lx-realm a { text-align:center; text-decoration:none; min-width:120px; }
.lx-fact { text-align:center; margin:22px auto 0; font-size:14px; color:var(--tx-mid); }
.lx-fact a { color:inherit; text-decoration:none; border-bottom:1px dotted var(--line-strong); }
.lx-fact a:hover { color:var(--accent); }
.lx-realm .v { font:700 clamp(26px,3.4vw,36px)/1 var(--mono); color:var(--accent); font-variant-numeric:tabular-nums; }
.lx-realm .l { font:600 10.5px/1.4 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--tx-lo); margin-top:8px; }
.lx-realm .s { font-size:12px; color:var(--tx-faint); margin-top:2px; }

/* ---------------- enhancement-only entrance ----------------
   `.lx-pre` is added by landing.js ONLY to blocks that start below the fold, and it moves them 14px --
   it never hides them. So a capture that never scrolls sees every word, merely a hair lower. */
.lx-rise { transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.lx-rise.lx-pre { transform:translateY(14px); }

@media (prefers-reduced-motion:reduce) {
  .lx-copy h1 b { animation:none; }
  .lx-rise, .lx-rise.lx-pre { transform:none; transition:none; }
  .lx-beast a, .lx-also a { transition:none; }
  .lx-beast a:hover, .lx-also a:hover { transform:none; }
}

/* The pulse strip's divider belongs between the countdown and the mini-stats, which the landing no
   longer renders -- so with nothing on its right it would float as a stray rule. */
.pulse-next:last-child { border-right:0; padding-right:0; }

/* ---------------- the "much more" gallery (rendered from media/gallery/manifest.json) ----------------
   A uniform 16:9 frame (the foundry films 960x526, 1.83:1 -- cover trims ~3% off its sides, nothing that
   matters) for every tile so clips and UI stills of any shape sit in one tidy grid: clips
   COVER it (they are footage), stills are CONTAINED on the panel ground (they are UI -- cropping a window
   would cut off the thing it shows). */
.gx-sec { background:radial-gradient(900px 320px at 50% 0%, rgba(230,177,62,.05), transparent 70%), var(--bg-0); }
.gx-grid { list-style:none; margin:clamp(30px,4vw,44px) 0 0; padding:0; display:grid; gap:clamp(12px,1.6vw,18px);
  grid-template-columns:repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.gx-item a { display:block; height:100%; text-decoration:none; background:var(--bg-1); border:1px solid var(--line);
  border-radius:12px; overflow:hidden; transition:border-color .15s, transform .15s; }
.gx-item a:hover, .gx-item a:focus-visible { border-color:var(--accent-line); transform:translateY(-2px); }
.gx-item a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.gx-media { position:relative; display:block; aspect-ratio:16/9; background:#0c0f13; overflow:hidden; }
.gx-media img, .gx-media video { position:absolute; inset:0; width:100%; height:100%; display:block; }
.gx-clip .gx-media img, .gx-clip .gx-media video { object-fit:cover; }
.gx-still .gx-media img { object-fit:contain; padding:8px; }
.gx-media video { opacity:0; transition:opacity .25s; }
.gx-media video.on { opacity:1; }
.gx-badge { position:absolute; right:8px; bottom:8px; font:600 10.5px/1 var(--mono); letter-spacing:.06em; color:var(--accent-2);
  background:rgba(8,10,14,.74); border:1px solid var(--accent-line); padding:4px 6px; border-radius:4px; transition:opacity .2s; }
.gx-item a:hover .gx-badge { opacity:0; }
.gx-t { display:block; padding:12px 14px 2px; font-weight:700; font-size:15px; color:var(--tx-hi); }
.gx-c { display:block; padding:0 14px 14px; font-size:13px; line-height:1.55; color:var(--tx-mid); }
@media (prefers-reduced-motion:reduce) { .gx-item a { transition:none; } .gx-item a:hover { transform:none; } }

/* The promises under the buttons: plain statements, not badges -- the honesty is the point. */
.lx-promise { list-style:none; margin:20px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 18px; font-size:14px; color:var(--tx-mid); max-width:56ch; }
.lx-promise li { position:relative; padding-left:16px; }
.lx-promise li::before { content:""; position:absolute; left:0; top:.55em; width:7px; height:7px; border-radius:50%; background:var(--accent); opacity:.8; }
.lx-promise b { color:var(--tx-hi); font-weight:600; }
.lx-promise .lx-promise-link { padding-left:0; }
.lx-promise .lx-promise-link::before { display:none; }
.lx-promise a { color:var(--accent); text-decoration:none; }
.lx-promise a:hover, .lx-promise a:focus-visible { text-decoration:underline; }

/* ---------------- the rite theatre (LandingRites.cs) ----------------
   One big stage and the playlist beside it. A rite only reads MOVING and LARGE -- the telegraph, then
   the answer -- so the stage is the widest thing on the page (it breaks out of the 1080 column) and
   only one clip ever plays. The caption names the boss; the rite's own line is in the picture, on the game's boss bar. */
.rt-sec { background:var(--bg-0); }
.rt { --rtw:min(1280px, calc(100vw - 32px)); width:var(--rtw); margin:clamp(30px,4vw,44px) 0 0 calc((100% - var(--rtw)) / 2);
  display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; align-items:start; }
.rt-stage { position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#07080a;
  border:1px solid var(--line-2); box-shadow:0 30px 80px -34px rgba(0,0,0,.9); }
/* the footage is loud on its own (violet fields, fire): a touch of desaturation keeps the page from shouting */
.rt-stage video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:opacity .25s;
  filter:saturate(.62) brightness(.72); transition:opacity .25s, filter .5s; }
.rt-stage:hover video { filter:saturate(.85) brightness(.92); }   /* full colour only once someone is looking */
.rt-stage.swap video { opacity:0; }
.rt-stage .rc { position:absolute; right:12px; top:12px; font:600 9.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); background:rgba(8,10,14,.72); border:1px solid var(--accent-line); padding:5px 7px; border-radius:4px; }
.rt-cap { position:absolute; left:0; right:0; bottom:0; padding:56px 22px 18px; pointer-events:none;
  background:linear-gradient(180deg, transparent, rgba(6,7,9,.72) 45%, rgba(6,7,9,.9)); transition:opacity .25s; }
.rt-stage.swap .rt-cap { opacity:0; }
.rt-who { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
.rt-boss { font-size:clamp(22px,2.6vw,32px); font-weight:800; letter-spacing:-.01em; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.8); }
.rt-meta { font:600 11px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--gc, var(--accent)); }
.rt-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; max-height:calc((var(--rtw) - 316px) * 9 / 16);   /* exactly the stage's height: 16:9 of (width - list - gap) */ overflow:auto; scrollbar-width:thin; }
.rt-item a { position:relative; display:grid; grid-template-columns:72px 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center;
  padding:7px 10px 9px 7px; border-radius:9px; border:1px solid var(--line); background:var(--bg-1); text-decoration:none; overflow:hidden;
  transition:border-color .2s, background-color .2s, transform .2s; }
.rt-item a:hover { border-color:var(--line-strong); transform:translateX(-2px); }
.rt-item a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.rt-item img { grid-row:1 / 3; width:72px; height:41px; object-fit:cover; border-radius:5px; filter:saturate(.45) brightness(.7); transition:filter .2s; }
.rt-b { font-weight:700; font-size:14px; color:var(--tx-hi); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rt-r { font:600 10.5px/1.3 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--tx-lo); }
.rt-bar { position:absolute; left:0; right:0; bottom:0; height:2px; background:transparent; }
.rt-bar i { display:block; height:100%; width:0; background:var(--tx-mid); }
.rt-item.on a { border-color:var(--line-strong); background:var(--bg-2); }
.rt-item.on .rt-r { color:var(--tx-mid); }
.rt-item.on img { filter:saturate(.8); }
.rt .g-marked { --gc:#d9a84a; }
.rt .g-fabled { --gc:#9db4e0; }
.rt .g-mythic { --gc:#e0906e; }   /* the grade lives in ONE small label; muted from the parade's hues */
@media (max-width:980px) {
  .rt { grid-template-columns:1fr; }
  .rt-list { max-height:none; grid-auto-flow:column; grid-auto-columns:minmax(220px, 62%); overflow-x:auto; padding-bottom:6px;
    scroll-snap-type:x mandatory; }
  .rt-item { scroll-snap-align:start; }
  .rt-cap { padding:40px 14px 12px; }
  .rt-stage .rc { display:none; }   /* it lands on the game's own boss bar here; the foot line says it */
}
@media (prefers-reduced-motion:reduce) { .rt-stage video, .rt-cap, .rt-item a { transition:none; } }
