/* ==========================================================================
   Wild Cards — site layout & components
   --------------------------------------------------------------------------
   This file is the same for every season. Seasonal colours and artwork are
   injected by build.py into season.css (loaded AFTER this file), which sets the
   custom properties used below (--bg-image, --overlay-image, etc).

   Contents
     1  Design tokens
     2  Base
     3  Page background (parallax + overlay)
     4  Navigation
     5  Hero
     6  Layout helpers (container, media rows, dividers, reveal)
     7  Section titles (slanted labels)
     8  Sections: champion / assemble / gameplay / team carousel / community
     9  Creators page
    10  Email-link pages (verify / reset)
    11  Footer
    12  Floating side characters
    13  Phones (max-width 700px) and tablets (max-width 900px)
   ========================================================================== */

/* 1 ─ Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #0b1210;
  --bg-soft: #101b17;
  --ink: #e8f6ef;
  --muted: #a9c4b8;
  --accent: #7be495;
  --accent-2: #58c4b7;
  --cta: #ffd166;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --bg-dim: .45;          /* how dark the page background is (0 = none, 1 = black) */
  --hero-focus: center;   /* which part of the hero stays visible when cropped */
}

/* 2 ─ Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 3 ─ Page background ────────────────────────────────────────────────────── */
/* The art box is taller than the screen so the parallax shift (js/site.js) never shows an edge. */
.bg-art {
  position: fixed;
  inset: -100px 0;
  z-index: -5;
  pointer-events: none;
  background: var(--bg-image, none) center / 100% auto no-repeat;
  transform: translate3d(0, var(--bg-shift, 0px), 0);
  will-change: transform;
}
.bg-art::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / var(--bg-dim)); }
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: var(--overlay-image, none) right center / cover no-repeat;
  opacity: .9;
  mix-blend-mode: screen;
}

/* 4 ─ Navigation ─────────────────────────────────────────────────────────── */
.container { width: min(1100px, 92vw); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-soft) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/* Candlelight: two very soft warm glows drifting behind the bar's contents. Pure ambience. */
.nav::before, .nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.nav::before {
  background:
    radial-gradient(ellipse 340px 120px at 14% 70%, rgb(255 150 60 / .34), transparent 70%),
    radial-gradient(ellipse 280px 110px at 78% 30%, rgb(255 130 40 / .22), transparent 70%);
  animation: candle-a 5.3s ease-in-out infinite;
}
.nav::after {
  background:
    radial-gradient(ellipse 380px 130px at 40% 20%, rgb(255 175 90 / .2), transparent 70%),
    radial-gradient(ellipse 300px 120px at 92% 80%, rgb(255 140 50 / .24), transparent 70%);
  animation: candle-b 7.1s ease-in-out infinite;
}
@keyframes candle-a {
  0%, 100% { opacity: .75; } 12% { opacity: 1; } 27% { opacity: .6; } 44% { opacity: .95; }
  58% { opacity: .7; } 73% { opacity: 1; } 88% { opacity: .65; }
}
@keyframes candle-b {
  0%, 100% { opacity: .9; } 18% { opacity: .55; } 33% { opacity: 1; } 49% { opacity: .7; }
  66% { opacity: .95; } 81% { opacity: .6; }
}

/* Cobwebs tucked into both ends of the bar, fading out towards the middle */
.nav-web {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--web-image, none) no-repeat left -200px top -230px / 700px auto,
    var(--web-image, none) no-repeat right -150px top -230px / 700px auto;
  opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, transparent 32%, transparent 68%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, transparent 32%, transparent 68%, #000 91%, transparent 100%);
}

/* Halftone texture (seasons/<season>/nav-texture.png), recoloured warm by the builder */
.nav-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--nav-texture, none) left top / 2880px auto repeat-x;   /* mirrored tile: seamless at any width */
  opacity: .4;
}

/* Bar layout: tabs on the left, logo dead centre (it hangs below the bar), Play Now + languages on the right. */
.nav { margin-bottom: var(--logo-overhang, 2.4rem); }
.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .8rem 0 0;
}
.logo { grid-column: 2; grid-row: 1; position: relative; z-index: 70; display: block; align-self: start; margin-bottom: calc(var(--logo-overhang, 2.4rem) * -1); min-width: 0; }
.logo img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .6)); }

/* Right-hand side of the bar: call-to-action button + language picker */
.nav-actions { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; display: flex; align-items: center; gap: 1rem; padding-bottom: .8rem; }

/* Call-to-action button (Play Now, YouTube...): slanted yellow label with a lift on hover */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #0b1210;
  background: linear-gradient(180deg, #ffe08a, var(--cta));
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);   /* slanted ends, matching the tabs */
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* YouTube variant: plain blocky button, hard offset shadow, no gloss */
.cta--youtube {
  clip-path: none;
  padding: .6rem 1.3rem;
  font-size: 1.05rem;
  color: #f2e8d8;
  background: var(--bg-soft);
  border: 3px solid #f2e8d8;
  box-shadow: 4px 4px 0 #000;
  transition: transform .1s ease, box-shadow .1s ease;
}
.cta--youtube:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; filter: none; }
.nav-cta { white-space: nowrap; }

.nav-tabs {
  grid-column: 1; grid-row: 1; justify-self: start; align-self: end;
  display: flex;
  gap: .45rem;
  margin-bottom: -1px;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: .65rem 1.15rem .55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 96%, transparent), color-mix(in srgb, var(--bg) 96%, transparent));
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  transition: transform .15s ease, filter .2s ease, border-color .2s ease;
}
.nav-tab:hover { transform: translateY(2px); filter: brightness(1.08); border-color: rgba(255, 255, 255, .28); }
.nav-tab.active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b1210; border-color: rgba(255, 255, 255, .18); }

/* Language picker: a small segmented control with the current language highlighted */
.lang-switch { display: flex; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .25); }
.lang-switch a {
  padding: .45rem .7rem;
  font: 700 .78rem/1 var(--font-body);
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  opacity: .75;
  transition: background .15s ease, opacity .15s ease;
}
.lang-switch a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
.lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.lang-switch a[aria-current="page"] { opacity: 1; color: #0b1210; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Logo badge: a raised plate that wraps the whole logo. It starts at the top of the bar, runs down past the bar's
   bottom edge and tapers underneath, so the logo looks lifted out of the bar on its own badge. It is made of the same
   things as the bar: the same translucent fill + blur, the same halftone texture and a candle glow. */
.logo-plate {
  --plate-w: calc(118px + 4.4rem);
  position: absolute; left: 50%; top: 0; bottom: calc(-1 * (var(--logo-overhang, 2.4rem) + .9rem)); z-index: 65;
  width: var(--plate-w);
  translate: -50% 0;
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / .55));       /* the lift */
  pointer-events: none;
}
.lp-edge {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(180deg, rgb(255 255 255 / .28), rgb(255 255 255 / .14));   /* the badge's rim */
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);   /* tapered tab: wide where it meets the bar, narrower at the bottom */
}
.lp-fill {
  position: absolute; inset: 1.5px; display: block; overflow: hidden;
  background: color-mix(in oklab, var(--bg-soft) 80%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}
.lp-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .09), transparent 55%); }
.lp-dots, .lp-glow { position: absolute; inset: 0; display: block; }
.lp-dots {
  background: var(--nav-texture, none) calc(-50vw + var(--plate-w) / 2) 0 / 2880px auto repeat-x;   /* continues the bar's pattern */
  opacity: .4;
}
.lp-glow {
  background: radial-gradient(ellipse 150px 90px at 50% 48%, rgb(255 160 70 / .34), transparent 72%);
  animation: candle-a 5.3s ease-in-out infinite;
}

/* Pages whose nav still has a (long) button, i.e. the email-link pages: stack it above the language picker until the screen is wide */
@media (max-width: 1300px) {
  .nav-inner:has(.nav-cta) { grid-template-areas: "tabs logo cta" ". . lang"; row-gap: .2rem; padding-bottom: .7rem; }
  .nav-inner:has(.nav-cta) .nav-actions { display: contents; }
  .nav-inner:has(.nav-cta) .nav-cta { grid-area: cta; justify-self: end; align-self: center; }
  .nav-inner:has(.nav-cta) .lang-switch { grid-area: lang; justify-self: end; }
  .nav-inner:has(.nav-cta) .logo-plate { display: none; }
}

/* Narrower screens: tabs | logo | language picker on one row (pages with a nav button put it above the language picker) */
@media (max-width: 1000px) {
  .nav-inner { grid-template-areas: "tabs logo lang"; row-gap: .2rem; padding-bottom: .7rem; }
  .nav-inner:has(.nav-cta) { grid-template-areas: "tabs logo cta" ". . lang"; }
  .logo { grid-area: logo; }
  .nav-tabs { grid-area: tabs; align-self: center; margin-bottom: 0; }
  .nav-actions { display: contents; }
  .nav-cta { grid-area: cta; justify-self: end; align-self: center; }
  .lang-switch { grid-area: lang; justify-self: end; align-self: center; }
  .nav-tab { clip-path: none; }
  .logo-plate { display: none; }
  .hero--art .hero-scene { --h: clamp(240px, calc(100svh - 22.6rem), 620px); }   /* the nav is two rows tall here */
}

/* 5 ─ Hero (artwork: seasons/<season>/hero.*) ────────────────────────────── */
.hero {
  --hero-tilt: 27px;     /* how steep the angled bottom edge is */
  --hero-gap: 9.5rem;   /* space kept below the artwork: the call-to-action sits here */
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, calc(100vh - 7rem), 860px);      /* artwork + call-to-action fill the first screen */
}
@supports (height: 1svh) { .hero { min-height: clamp(560px, calc(100svh - 7rem), 860px); } }
.hero-clip {
  position: absolute;
  inset: 0 0 var(--hero-gap) 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hero-tilt)), 0 100%);
}
.hero-clip picture { width: 100%; height: 100%; }
.hero-clip img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus); display: block; }

/* Hero with cut-out key art (seasons/<season>/hero-art.*): the art sits straight on the page, no background picture */
.hero--art { min-height: 0; overflow: visible; display: grid; justify-items: center; gap: 1.2rem; padding: 1.2rem 1rem 2rem; }
.hero--art .hero-art { display: flex; justify-content: center; }
.hero--art .hero-art picture { width: auto; }
.hero--art .hero-art img { width: auto; height: clamp(220px, calc(100svh - 21rem), 520px); max-width: 80vw; object-fit: contain; display: block; }
.hero--art .hero-cta { position: static; padding: 0; }

/* Gameplay trailer behind the hero art: a still poster first, the muted loop fades in when it is ready.
   Darkened, vignetted and faded top and bottom so the art and the buttons stay the focus. */
.hero--art { position: relative; isolation: isolate; }
.hero-video {
  position: absolute; z-index: 0; overflow: hidden; pointer-events: none;
  inset: 5%;
  background: center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
}
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; filter: saturate(.8) brightness(.85); }
.hero-video video.is-playing { opacity: 1; }
.hero--art .hero-stage, .hero--art .hero-cta { position: relative; z-index: 1; }

/* Hero scene: the key art split into layers that float. Mirror, woman, logo and glow-overlay share ONE animation
   ("core") so they always move together; each card hovers on its own rhythm. Positions are % of the scene. */
.hero--art .hero-scene {
  --h: clamp(270px, calc(100svh - 18.6rem), 700px);
  position: relative;
  container-type: inline-size;
  width: min(92vw, calc(var(--h) * var(--ratio)));
  animation: scene-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-stage { position: relative; display: grid; place-items: center; width: 100%; }

/* Backlight: a soft warm glow behind the scene so it feels lit rather than pasted on */
.hero-light { position: absolute; inset: -22% -12% -16%; pointer-events: none; z-index: 0; }
.hero-glow-bed { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 47%, rgb(80 130 230 / .12), rgb(90 90 210 / .07) 48%, transparent 72%); animation: bed-pulse 6s ease-in-out infinite; }
.hero-scene { z-index: 1; }

/* Sparks drifting up through the scene */
.hero-motes { position: absolute; inset: -4% 0 0; z-index: 40; pointer-events: none; overflow: visible; }
.mote { position: absolute; bottom: 4%; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 8px 2px var(--c); opacity: 0; animation: mote-rise var(--d) linear var(--w) infinite; }
@keyframes mote-rise { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 12% { opacity: .9; } 70% { opacity: .55; } 100% { transform: translate3d(var(--x), -92cqw, 0) scale(1.1); opacity: 0; } }
@keyframes scene-in { from { opacity: 0; transform: translateY(5%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bed-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero-scene picture { display: contents; }
.hs { position: absolute; display: block; height: auto; max-width: none; opacity: var(--o, 1); will-change: transform; }
.hs-core { animation: hs-core 7s ease-in-out infinite; }
.hs-card-a { animation: hs-a 5.6s ease-in-out infinite, hs-pop .8s cubic-bezier(.3, 1.7, .5, 1) .45s both }
.hs-card-b { animation: hs-b 6.8s ease-in-out -1.5s infinite, hs-pop .8s cubic-bezier(.3, 1.7, .5, 1) .6s both }
.hs-card-c { animation: hs-c 6.2s ease-in-out -3s infinite, hs-pop .8s cubic-bezier(.3, 1.7, .5, 1) .75s both }
.hs-card-d { animation: hs-d 5.2s ease-in-out -2s infinite, hs-pop .8s cubic-bezier(.3, 1.7, .5, 1) .9s both }
@keyframes hs-pop { from { scale: .35; opacity: 0; } to { scale: 1; opacity: var(--o, 1); } }
.hs-glow { filter: hue-rotate(185deg) saturate(1.15); animation: hs-glow 5s ease-in-out infinite; }
@keyframes hs-core { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -1.3cqw, 0); } }
@keyframes hs-a { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(.8cqw, -2.6cqw, 0) rotate(2.5deg); } }
@keyframes hs-b { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-1cqw, -2cqw, 0) rotate(-3deg); } }
@keyframes hs-c { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-.6cqw, -3cqw, 0) rotate(-2deg); } }
@keyframes hs-d { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(1cqw, -2.2cqw, 0) rotate(3deg); } }
@keyframes hs-glow { 0%, 100% { opacity: calc(var(--o) * .7); } 50% { opacity: var(--o); } }
@media (prefers-reduced-motion: reduce) { .lp-glow { animation: none !important; } .hs, .hero-scene, .hero-glow-bed, .mote { animation: none !important; transition: none !important; } .mote { display: none; } }

/* 6 ─ Layout helpers ─────────────────────────────────────────────────────── */
main { position: relative; z-index: 5; }
section { padding: 1.6rem 0; position: relative; z-index: 5; }
.stack { display: grid; gap: var(--gap, .8rem); align-content: center; }
.copy { margin: 0; color: #fff; }
.lead { margin: 0; max-width: 68ch; color: var(--muted); font-size: 1.05rem; }

/* Two-column row: text | picture. Variants swap or resize the columns. */
.media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: center; min-width: 0; }
.media > * { min-width: 0; }
.media--image-left { grid-template-columns: 1.05fr .95fr; gap: 1.25rem; }
.media--gameplay { gap: 1.4rem; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
  overflow: clip;
}
.ratio { aspect-ratio: 16 / 9; width: 100%; }
.ratio > video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.ratio > iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Artwork without a frame */
.art img { width: 100%; display: block; }
.art--champion { margin-top: -3rem; margin-bottom: -.75rem; }
.art--assemble { max-width: 500px; }

/* Two single cards laid out as a pair (seasons/<season>/champion-card-1/2.png, team-card-1/2.png) */
.card-pair { position: relative; width: 100%; aspect-ratio: 10 / 7.4; }
.card-pair picture { position: absolute; top: 50%; width: 49%; }
.card-pair .pair-card { width: 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.card-pair picture:has(.pair-card--left)  { left: 0;  transform: translateY(-50%) rotate(-4deg); }
.card-pair picture:has(.pair-card--right) { right: 0; transform: translateY(-50%) rotate(4deg); }
.pair-vs {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) rotate(-6deg);
  font: 400 clamp(2rem, 6vw, 3.4rem) var(--font-display); letter-spacing: 1px; color: #fff;
  text-shadow: 0 3px 0 #000, 0 0 14px rgba(0, 0, 0, .8);
}

/* Cobwebs (seasons/<season>/web.png): drawn in the corners of sections, behind the content */
#champion::after, #assemble::after, #gameplay::after, #meet::after, #community::after,
#creator-program::before, #creators::before, .footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 70vw);
  aspect-ratio: 2000 / 1513;
  background: var(--web-image, none) center / contain no-repeat;
  opacity: .55;
  pointer-events: none;
  /* soft fade so the web melts into the page instead of ending at a hard edge */
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse closest-side, #000 45%, transparent 100%);
}
#champion::after { top: -70px; right: -60px; transform: rotate(8deg); }
#assemble::after { bottom: -110px; left: -90px; transform: scaleX(-1) rotate(-6deg); }
#gameplay::after { top: -90px; right: -80px; transform: rotate(-12deg); }
#meet::after { bottom: -130px; left: -60px; transform: rotate(4deg); width: min(620px, 70vw); }
#community::after { top: -60px; right: -40px; transform: scaleX(-1) rotate(10deg); width: min(560px, 70vw); }
#creator-program::before { top: -80px; left: -90px; transform: scaleX(-1) rotate(8deg); }
#creators::before { top: -40px; right: -90px; transform: rotate(-8deg); }
.footer::before { bottom: 0; left: 50%; margin-left: -380px; opacity: .35; }
.footer { overflow: hidden; }

/* Wavy dividers between sections. Tweak spacing per divider with --before / --after in the HTML. */
.divider {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-top: var(--before, 1rem);
  margin-bottom: var(--after, 1rem);
}
.divider img { width: 140vw; max-width: none; height: auto; display: block; }

/* Fade-in (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .7rem .95rem;
  color: var(--ink); text-decoration: none; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .25); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b1210; border: none; font-weight: 800; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.callout {
  display: grid; gap: .4rem; padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow);
}

/* 7 ─ Section titles ────────────────────────────────────────────────────── */
/* A solid slanted label (same shape and colour as the Play Now button). The text always sits
   inside the shape and wraps onto a second line if it has to - nothing bleeds out. */
.section-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  margin: 0;
  padding: .3em 1.5em .35em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 1px;
  color: #0b1210;
  background: linear-gradient(180deg, #ffe08a, var(--cta));
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  overflow-wrap: break-word;
  hyphens: auto;          /* long words break at proper syllables, never mid-letter */
}
.title-splash--long { margin-inline: auto; justify-self: center; text-align: center; }

/* 8 ─ Sections ───────────────────────────────────────────────────────────── */
/* Home page sections are angled panels: a dark band, tilted a little (alternating direction), with a real drop shadow. */
.page-home section {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  z-index: auto;      /* no stacking context of its own, so every band sits in one shared layer below every cobweb and every piece of content */
}
.page-home section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;          /* layer order, back to front: page background -> section bands (-2) -> cobwebs (-1) -> content */
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transform: skewY(calc(var(--panel-tilt, 2.6deg) * -1));
  pointer-events: none;
}
.page-home section:nth-of-type(even)::before { background: color-mix(in srgb, var(--bg-soft) 62%, transparent); transform: skewY(var(--panel-tilt, 2.6deg)); }
#champion .stack { margin-top: 0; }

/* Team carousel (people: config/site.json -> "team") */
.carousel { position: relative; margin-top: .6rem; overflow: hidden; }
.track {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  -webkit-overflow-scrolling: touch;
  padding: .9rem 1rem .7rem;
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.track > picture { flex: 0 0 auto; scroll-snap-align: start; }
/* Team card built from data: frame outline + photo + text (config/site.json "team", content/*.json "team") */
.team-card {
  position: relative;
  flex: 0 0 auto;
  height: 350px;
  aspect-ratio: 5 / 7;
  container-type: inline-size;
  scroll-snap-align: start;
  text-align: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
}
/* Card background: dark page-matching gradient keyed to the card's border colour, with halftone dots and a faint web */
.tc-bg {
  position: absolute; left: 0; right: 0; top: 17%; bottom: 0;   /* starts part-way down so the photo overlaps its top edge */
  background: linear-gradient(165deg, color-mix(in srgb, var(--frame) 26%, #364166), color-mix(in srgb, var(--frame) 8%, #1d2540) 80%);
}
.tc-bg::before, .tc-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.tc-bg::before {
  background: radial-gradient(circle, rgb(255 255 255 / .22) 1px, transparent 1.7px) 0 0 / 7px 7px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 100% 100%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 100% 100%, #000, transparent 75%);
}
.tc-bg::after {
  background: var(--web-image, none) right 110% / 135% auto no-repeat;
  opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 70% 80%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse closest-side at 70% 80%, #000 35%, transparent 100%);
}
.tc-photo {
  position: absolute; left: 25%; top: 4%; width: 50%; height: 33%;
  clip-path: polygon(0 3%, 100% 0, 98% 100%, 1% 97%);
  transform: rotate(-1.5deg);
  background: #f2e8d8;          /* thin light border around the photo */
  padding: 1.6cqw;
  box-sizing: border-box;
}
.team-card:nth-child(even) .tc-photo { transform: rotate(1.2deg); }
.tc-photo picture, .tc-photo img { width: 100%; height: 100%; display: block; }
.tc-photo img { object-fit: cover; }
/* Text block: name, job title and bio flow top-to-bottom with even gaps; the bio centres in whatever room is left */
.tc-text { position: absolute; left: 11%; right: 10%; top: 38.5%; bottom: 10%;   /* kept inside the notched backdrop on every frame shape */
  display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; }
.tc-name, .tc-role, .tc-bio { margin: 0; width: 100%; font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.tc-name { font-size: 14.5cqw; letter-spacing: .01em; color: #fdf86a; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.tc-role { font-size: 9cqw; color: #fdf86a; }
.tc-bio { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 9.4cqw; line-height: 1.08; text-transform: none; color: #fff; white-space: pre-line; text-wrap: balance; }
.track .profile-card { height: 350px; width: auto; aspect-ratio: 5 / 7; display: block; max-width: none; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: #fff;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.carousel-btn:hover { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b1210; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: .4rem 0 0; }
.carousel-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .35); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.carousel-dots button[aria-current="true"] { background: rgba(255, 255, 255, .9); transform: scale(1.15); }

/* Social buttons (links: config/site.json -> "socials"): plain cream tiles with a hard shadow, like the other buttons */
.social-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 1.2rem; }
.social {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  background: #f2e8d8;
  border: 3px solid #0b1210;
  box-shadow: 4px 4px 0 #000;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.social:hover, .social:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; background: var(--cta); }
.social img { width: 38px; height: 38px; object-fit: contain; }

/* 9 ─ Creators page ──────────────────────────────────────────────────────── */
.page-creators section { padding: 1.5rem 0; }
.page-creators .divider { margin-block: 1rem; }
.page-creators main { padding-top: clamp(1rem, 3vw, 2rem); }
.program-wrap { display: grid; grid-template-columns: 1fr .95fr; gap: 1.5rem; align-items: center; }
.program-wrap > * { min-width: 0; }
.creator-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; margin-top: 1rem; }
.creator-card {
  grid-column: span 4;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}
.creator-media { width: 240px; max-width: 100%; aspect-ratio: 1; padding: .5rem; margin-bottom: 1.2rem; }
.creator-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.creator-body { display: flex; flex-direction: column; gap: .55rem; width: 100%; max-width: 280px; flex: 1; }
.creator-tag { width: fit-content; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.creator-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: 1px; text-shadow: 0 2px 0 rgba(0, 0, 0, .9), 0 3px 1px rgba(0, 0, 0, .7); }
.creator-role { margin: 0; color: #fff; font-weight: 700; }
.creator-bio { margin: 0; color: #dce9e2; font-size: .98rem; }
.creator-links { margin-top: auto; padding-top: .4rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.creator-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: .7rem .95rem;
  color: var(--ink); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease;
}
.creator-links a:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .25); }

/* 10 ─ Email-link pages (auth / verify / reset) ──────────────────────────── */
.auth-main { display: grid; place-items: center; min-height: calc(100vh - 180px); padding: clamp(3rem, 7vw, 6rem) 0; }
#auth-wrap {
  position: relative;
  width: min(900px, 92vw);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  border: 2px solid rgba(255, 255, 255, .28);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
#auth-wrap::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
#auth-loading { display: flex; align-items: center; justify-content: center; }
#auth-loading-spinner { width: 48px; height: 48px; background: var(--spinner-image, none) center / contain no-repeat; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#auth-loading-text { margin: 0 .5em; font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem); letter-spacing: 1px; text-transform: uppercase; }
#auth-title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 2.4rem); letter-spacing: 1px; text-transform: uppercase; }
#auth-message { margin: 1.2rem 0; text-align: center; color: var(--muted); }
.auth-input { margin: 1rem 0; text-align: center; }
.auth-input input {
  width: 100%; max-width: 30ch; padding: .5em;
  color: var(--ink); font: 400 clamp(1.2rem, 2.5vw, 1.8rem) var(--font-body); text-align: center;
  border: 2px solid rgba(255, 255, 255, .28); background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.auth-input input:focus { border-color: #fff; outline: none; }
.error-message { min-height: 1.4em; margin-top: .3rem; color: #ffb4a8; font-size: .95rem; }
.auth-button { text-align: center; }
.auth-button button {
  padding: .8em 2em;
  color: var(--ink); font: 400 2rem var(--font-display); text-transform: uppercase;
  border: none; background: var(--form-button-image, none) center / contain no-repeat; cursor: pointer;
}
.auth-button button:hover { filter: brightness(1.2); transition: filter .2s ease; }

/* 11 ─ Footer ────────────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 5;
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-legal { max-width: 70ch; margin: 0 auto; padding-inline: 1rem; line-height: 1.4; }
.footer-trademark { display: block; margin-top: .35rem; opacity: .85; font-size: .9em; }

/* 12 ─ Floating side characters (only shown on very wide screens; js/site.js animates them) ─ */
.side-heroes { display: none; }
@media (min-width: 1700px) {
  .side-heroes { display: block; position: fixed; inset: 0; z-index: 30; pointer-events: none; }
  .side-hero {
    position: fixed; top: 100vh; width: 34vw; max-width: 420px;
    opacity: 0; will-change: transform, opacity, top;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .35));
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
  .side-hero.left  { left: -2%;  transform: translateX(-16vw) scale(1.04) rotate(-1deg); }
  .side-hero.right { right: -2%; transform: translateX(16vw)  scale(1.04) rotate(1deg); }
}

@media (max-width: 700px) {
  #champion::after, #assemble::after, #gameplay::after, #meet::after, #community::after,
  #creator-program::before, #creators::before { width: 110vw; opacity: .4; right: -45vw; left: auto; }
}

/* 12a ─ Conversion elements: hero call-to-action ─── */
.hero-cta { position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 3; display: grid; justify-items: center; gap: .6rem; padding-inline: 1rem; text-align: center; }
/* Store badges (hero, after the video, bottom of the gallery) and the compact sticky bar */
.hero-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.6rem; }   /* equal side columns keep Play Now dead centre */
.hero-actions .store-badge--apple { justify-self: end; }
.hero-actions .store-badge--google { justify-self: start; }
.store-row { display: flex; justify-content: center; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.store-badge { display: block; line-height: 0; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; display: block; }
.store-badge--apple img { height: 60px; }
.store-badge--google img { height: 90px; margin-block: -15px; }   /* Google's file has built-in clear space; this matches its visible height to Apple's */
.store-block { display: grid; justify-items: center; gap: .9rem; padding-block: 2rem 1.4rem; text-align: center; }

/* Compact sticky download bar: slides up once the page's own store buttons have scrolled out of view */
.dl-bar { position: fixed; z-index: 55; left: 50%; bottom: .9rem; display: flex; align-items: center; gap: .9rem; padding: .45rem 1rem; background: color-mix(in oklab, var(--bg-soft) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .2); box-shadow: 0 8px 22px rgb(0 0 0 / .55); transform: translate(-50%, 160%); transition: transform .35s ease; }
.dl-bar.is-on { transform: translate(-50%, 0); }
.dl-bar .store-badge--apple img { height: 38px; }
.dl-bar .store-badge--google img { height: 57px; margin-block: -9.5px; }
.dl-play { padding: .55rem 1.8rem; font-size: 1.35rem; }
.dl-bar.no-badges .store-badge { display: none; }      /* a store row is already on screen: just keep Play Now */
@media (prefers-reduced-motion: reduce) { .dl-bar { transition: none; } }

.cta--big { position: relative; overflow: hidden; }
.cta--big::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: skewX(-18deg); animation: cta-shine 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes cta-shine { 0%, 55% { left: -40%; } 85%, 100% { left: 140%; } }
.cta--big { padding: .9rem 3.2rem; font-size: clamp(1.6rem, 4vw, 2.2rem); animation: cta-pulse 2.6s ease-in-out infinite; }
@keyframes cta-pulse { 0%, 100% { filter: drop-shadow(0 0 0 rgb(255 209 102 / 0)); } 50% { filter: drop-shadow(0 0 16px rgb(255 209 102 / .75)); } }
button.cta { border: 0; cursor: pointer; }
button.cta.cta--youtube { border: 3px solid #f2e8d8; }



/* 12b ─ Card gallery ─────────────────────────────────────────────────────── */
.page-cards main { padding-bottom: 2rem; }
.cards-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; display: grid; gap: .8rem; justify-items: start; }
.cards-hero .lead { color: #fff; max-width: 70ch; }
.breadcrumb { padding: 1.2rem 0 0; font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--ink); }

.next-release-box { display: inline-flex; align-items: baseline; gap: .7rem; margin: 1.2rem 0 0; padding: .5rem 1rem; border: 2px solid var(--cta); background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: 4px 4px 0 #000; }
.next-title { font: 400 .85rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cta); }
.next-when { font: 400 1.4rem var(--font-display); letter-spacing: 1px; }

#latest, #all-cards, #collections { padding-block: 1.6rem; }
.latest-grid { display: grid; gap: 2rem; margin-top: 1.2rem; }
.latest-card { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 1.8rem; align-items: center; }
.latest-art { display: block; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); transition: transform .2s ease; }
.latest-art:hover { transform: translateY(-4px) rotate(-.6deg); }
.latest-art img { width: 100%; display: block; }
.latest-info { display: grid; gap: .7rem; justify-items: start; }
.latest-info h3 { margin: 0; font: 400 clamp(2rem, 4vw, 3rem) var(--font-display); letter-spacing: 1px; line-height: 1.05; }
.latest-info h3 a { text-decoration: none; }
.tile-meta { color: var(--muted); font-size: .9rem; }
.tile-meta a { color: inherit; }

.season-logo { margin: 0; width: min(320px, 70vw); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
.season-logo img { width: 100%; display: block; }
.card-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
.card-filters[hidden] { display: none; }
.js .card-filters { display: flex !important; }
.filter-label { margin-left: .8rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter-label:first-child { margin-left: 0; }
.chip { padding: .4rem .8rem; font: 700 .85rem var(--font-body); color: var(--ink); background: transparent; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip.is-on { background: var(--cta); color: #0b1210; border-color: var(--cta); }

.tile-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem 1rem; }
.card-tile[hidden] { display: none; }
.card-tile a { display: grid; gap: .25rem; text-decoration: none; justify-items: center; text-align: center; }
.tile-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); transition: transform .2s ease; }
.card-tile a:hover .tile-img { transform: translateY(-5px) rotate(-.8deg); }
.tile-name { font: 400 1.15rem var(--font-display); letter-spacing: .5px; line-height: 1.1; }

.collection-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.collection-link { display: grid; gap: .2rem; padding: 1rem 1.2rem; text-decoration: none; border: 1px solid rgba(255, 255, 255, .2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.collection-link strong { font: 400 1.3rem var(--font-display); letter-spacing: 1px; }
.collection-link span { color: var(--muted); font-size: .9rem; }
.collection-link:hover { border-color: var(--cta); }

.card-detail { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 2.2rem; align-items: center; padding: 1.5rem 0; }
.card-detail-art { margin: 0; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)); }
.card-detail-art img { width: 100%; display: block; }
.card-detail-info { display: grid; gap: .9rem; justify-items: start; }
.card-subtitle { margin: 0; color: var(--cta); font-weight: 700; letter-spacing: .04em; }
.card-facts { margin: .4rem 0; width: 100%; max-width: 520px; display: grid; gap: .1rem; }
.card-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.card-facts dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.card-facts dd { margin: 0; font-weight: 700; }
.card-facts a { color: var(--cta); }
.card-pager { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.card-pager a { display: grid; gap: .1rem; text-decoration: none; padding: .7rem 1rem; border: 1px solid rgba(255, 255, 255, .2); }
.card-pager a:last-child { text-align: right; margin-left: auto; }
.card-pager span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.card-pager strong { font: 400 1.2rem var(--font-display); letter-spacing: .5px; }
.card-pager a:hover { border-color: var(--cta); }
.related { padding: 1.5rem 0; }
.back-link { padding: 1.5rem 0 0; }
.back-link a { color: var(--cta); }

/* 13 ─ Tablets and phones ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .media, .media--image-left, .program-wrap { grid-template-columns: 1fr; }
  .latest-card, .card-detail { grid-template-columns: 1fr; justify-items: center; }
  .latest-art, .card-detail-art { max-width: 380px; }
  .latest-info, .card-detail-info { justify-items: start; width: 100%; }
  .track .profile-card, .team-card { height: 380px; }
  .carousel-btn { display: none; }
  .creator-card { grid-column: span 6; }
}

@media (max-width: 700px) {
  section { padding: 1.75rem 0; }
  .container { overflow: visible; }

  /* nav on phones: logo centred on top, tabs + language picker on row 2 (stacked on very small screens) */
  .nav-web { background-size: 460px auto, 460px auto; background-position: left -140px top -150px, right -90px top -150px; }
  .nav { position: relative; margin-bottom: 0; }   /* scrolls away on phones so it doesn't eat a fifth of the screen */
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo logo" "tabs lang"; gap: .45rem .5rem; padding: .5rem 0 .5rem; }
  .nav-inner:has(.nav-cta) { grid-template-areas: "logo logo" "tabs cta" "lang lang"; }
  .logo { grid-area: logo; justify-self: center; margin-bottom: 0; align-self: center; }
  .logo img { width: 76px; height: 76px; }
  .nav-cta { grid-area: cta; justify-self: end; padding: .5rem 1rem; font-size: 1rem; }
  .nav-tabs { grid-area: tabs; justify-self: start; margin: 0; width: auto; gap: .25rem; }
  .nav-tab { flex: none; min-width: 0; padding: .55rem .7rem .5rem; font-size: .85rem; letter-spacing: .03em; clip-path: none; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .lang-switch { grid-area: lang; justify-self: end; }
  .lang-switch a { padding: .5rem .55rem; }
  @media (max-width: 380px) { .nav-inner, .nav-inner:has(.nav-cta) { grid-template-columns: 1fr; grid-template-areas: "logo" "tabs" "cta" "lang"; justify-items: center; } .nav-tabs, .lang-switch { justify-self: center; } .nav-tab { padding-inline: .6rem; } }
  .dl-bar { gap: .5rem; }
  @media (max-width: 440px) { .dl-bar .store-badge { display: none; } }   /* keep just Play Now on small phones */

  /* titles: centred labels */
  .section-title { justify-self: center; margin: 0 auto 1rem; padding: .3em 1em .35em; font-size: clamp(1.25rem, 6.2vw, 1.7rem); text-align: center; }

  /* spacing: dividers never overlap neighbouring sections on phones */
  .divider { margin-block: 1.25rem; }
  .art--champion, #champion .stack { margin-top: 0; margin-bottom: 0; }
  .media { gap: 1rem; }
  .art--assemble { max-width: none; }

  /* Developer Diaries on phones: title, then video, then text (YouTube button hidden) */
  .media--gameplay { display: flex; flex-direction: column; }
  .media--gameplay .stack { display: contents; }
  .media--gameplay .section-title { order: 1; margin-bottom: 0; }
  .media--gameplay .card { order: 2; margin-bottom: .25rem; }
  .media--gameplay .copy { order: 3; text-align: center; }
  .media--gameplay .btn-row { display: none; }

  .track .profile-card, .team-card { height: 260px; }
  .social-buttons { gap: .8rem; }

  .creator-card { grid-column: span 12; }
  .lead { text-align: center; margin-inline: auto; }
}

@media (max-width: 700px) {
  .hero-actions { grid-template-columns: 1fr 1fr; gap: .5rem .4rem; }
  .hero-actions .cta--big { grid-column: 1 / -1; order: -1; justify-self: center; }
  .hero-actions .store-badge--apple, .hero-actions .store-badge--google { justify-self: center; }
  .store-badge--apple, .store-badge--google { justify-self: center; }
  .dl-bar { left: 0; right: 0; bottom: 0; transform: translateY(110%); justify-content: center; gap: .6rem; padding: .5rem .8rem calc(.5rem + env(safe-area-inset-bottom, 0px)); border-inline: 0; border-bottom: 0; }
  .dl-bar.is-on { transform: none; }
  .store-badge--apple img { height: 48px; }
  .store-badge--google img { height: 72px; margin-block: -12px; }
  .hero { --hero-gap: 10rem; min-height: clamp(560px, calc(100svh - 12rem), 760px); }
  .hero--art { min-height: 0; padding-top: .6rem; }
  .hero--art .hero-art img { height: clamp(220px, calc(100svh - 28rem), 420px); }
  .hero--art .hero-scene { --h: clamp(230px, calc(100svh - 26.6rem), 480px); }
  .cta--big { padding: .75rem 2.6rem; }
}

@media (max-width: 520px) {
  .social { width: 58px; height: 58px; }
  .social img { width: 32px; height: 32px; }
}


/* 12 ─ In-game look ─────────────────────────────────────────────────────────
   Buttons and labels follow the game's UI: dark navy panels with cut corners and a thin pale edge, white condensed
   type, and mint green for the main action (the Play button is dark green with a halftone dot fill). The edge is the
   element's own background; ::before paints the fill 2px inside it, both with the same cut corners. */
:root {
  --cta: #7cc4ff;
  --ch: 10px;
  --ui-edge: linear-gradient(180deg, #cdeef7, #5f9fb4 55%, #9ddcec);
  --ui-fill: linear-gradient(180deg, #19425c, #0b1c30);
  --ui-cut: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  --ui-cut-in: polygon(calc(var(--ch) - 1.5px) 0, 100% 0, 100% calc(100% - var(--ch) + 1.5px), calc(100% - var(--ch) + 1.5px) 100%, 0 100%, 0 calc(var(--ch) - 1.5px));
}
.cta--youtube, .section-title, .social { position: relative; isolation: isolate; background: var(--ui-edge); clip-path: var(--ui-cut); border: 0; box-shadow: none; }
.cta--youtube::before, .section-title::before, .social::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--ui-fill); clip-path: var(--ui-cut-in); }

/* Play Now: the original slanted, glossy button with a shine and a pulse, now in blue */
.cta:not(.cta--youtube) {
  color: #04200f; text-shadow: none;
  background: linear-gradient(180deg, hsl(140 100% 83%), hsl(140 86% 58%));
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.cta:not(.cta--youtube):hover { transform: translateY(-2px); filter: brightness(1.06); }
.cta--big { animation: cta-pulse 2.6s ease-in-out infinite; }
@keyframes cta-pulse { 0%, 100% { filter: drop-shadow(0 0 0 rgb(70 235 120 / 0)); } 50% { filter: drop-shadow(0 0 16px rgb(70 235 120 / .75)); } }
.cta--big::after { background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); }
@media (prefers-reduced-motion: reduce) { .cta--big { animation: none; } }

/* YouTube and other secondary buttons: navy panel */
.cta--youtube { --ui-edge: linear-gradient(180deg, #cdeef7, #5f9fb4 55%, #9ddcec); --ui-fill: linear-gradient(180deg, #19425c, #0b1c30); color: #fff; clip-path: var(--ui-cut); }
.cta--youtube:hover { transform: translateY(-2px); box-shadow: none; filter: brightness(1.15); }
.cta--youtube { background: var(--ui-edge); border: 0; }
button.cta.cta--youtube { border: 0; }

/* Section titles: navy panel, white lettering */
.section-title { color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .5); }

/* Social buttons: the same navy panel, mint edge when hovered */
.social { transition: transform .15s ease, filter .15s ease; }
.social:hover, .social:focus-visible { transform: translateY(-2px); box-shadow: none; background: linear-gradient(180deg, #a9e4ff, #3a9bf0); filter: brightness(1.1); }

/* Nav tabs and language picker: the selected one lights up teal with a mint underline, like the game's tab bar */
.nav-tab.active { background: linear-gradient(180deg, #1f6178, #0e2e47); color: #fff; box-shadow: inset 0 -3px 0 var(--accent), 0 8px 20px rgba(0, 0, 0, .28); }
.lang-switch a[aria-current="page"] { background: linear-gradient(180deg, #1f6178, #0e2e47); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.btn.primary, .chip.is-on { color: #06142b; }

/* Standard buttons (card pages etc.): same panels; the primary one is the green Play style */
.btn { position: relative; isolation: isolate; background: var(--ui-edge); clip-path: var(--ui-cut); border: 0; box-shadow: none; color: #fff; font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; padding: .7rem 1.3rem; }
.btn::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--ui-fill); clip-path: var(--ui-cut-in); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn.primary { --ui-edge: linear-gradient(180deg, #d4efff, #4fa6f0 55%, #a9d8ff); --ui-fill: radial-gradient(circle, rgb(130 190 255 / .45) 1.3px, transparent 1.9px) 0 0 / 7px 7px, linear-gradient(180deg, #164e86, #0b2a4d); color: #d6ecff; text-shadow: 0 2px 0 rgb(0 0 0 / .55); }

/* Sticky Play Now: no panel behind it, a bigger button */
.dl-bar { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; padding: .3rem 1rem; gap: 1.2rem; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .65)); }
.dl-bar .cta { padding: .95rem 3.4rem; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.dl-bar .store-badge--apple img { height: 48px; }
.dl-bar .store-badge--google img { height: 72px; margin-block: -12px; }
@media (max-width: 760px) {
  .dl-bar { padding: .4rem .8rem calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  .dl-bar .cta { padding: .8rem 2.6rem; font-size: 1.6rem; }
  .dl-bar .store-badge--apple img { height: 40px; }
  .dl-bar .store-badge--google img { height: 60px; margin-block: -10px; }
}
.dl-bar .cta { white-space: nowrap; flex: none; }
@media (min-width: 761px) { .dl-bar { width: max-content; max-width: 100vw; } }

.card-prompt { margin: 1.2rem 0 -.2rem; font: 400 clamp(1.3rem, 3vw, 1.7rem)/1.15 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }

/* Team cards, glow-up: a thin edge and soft glow in each person's colour (the same shape-following drop-shadow trick
   outlines both the notched panel and the photo), a diagonal sheen across the panel, white names and tinted job titles. */
.team-card {
  --edge: color-mix(in srgb, var(--frame) 80%, #fff);
  filter: drop-shadow(1.2px 1.2px 0 var(--edge)) drop-shadow(-1.2px -1.2px 0 var(--edge)) drop-shadow(0 6px 14px color-mix(in srgb, var(--frame) 38%, transparent)) drop-shadow(0 8px 10px rgb(0 0 0 / .5));
  transition: transform .2s ease;
}
.team-card:hover { transform: translateY(-4px); }
.tc-bg {
  background:
    linear-gradient(118deg, transparent 38%, rgb(255 255 255 / .09) 48%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--frame) 30%, transparent), transparent 75%),
    linear-gradient(165deg, color-mix(in srgb, var(--frame) 28%, #35406a), color-mix(in srgb, var(--frame) 8%, #151c34) 85%);
}
.tc-bg::before { opacity: 1.4; background-image: radial-gradient(circle, rgb(255 255 255 / .3) 1px, transparent 1.7px); }
.tc-name { color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .55); }
.tc-role { position: relative; color: color-mix(in srgb, var(--frame) 55%, #fff); }
.tc-role::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1.4cqw; height: .6cqw; background: var(--edge); box-shadow: 0 0 6px var(--frame); }
.tc-bio { color: #f1f4ff; }
.tc-photo { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
@media (prefers-reduced-motion: reduce) { .team-card { transition: none; } .team-card:hover { transform: none; } }

/* Store rating under the hero buttons and one real App Store review in the gameplay section */
.stars { display: inline-block; letter-spacing: 0; background: linear-gradient(90deg, transparent calc(var(--r, 5) / 5 * 100%), rgb(8 18 42 / .62) 0), linear-gradient(180deg, #cdf1ff, #6cbcff 45%, #2f8fe6); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-rating { margin: 0; font-size: 1.15rem; color: #dfe6f7; text-shadow: 0 1px 4px rgb(0 0 0 / .7); }
.hero-rating strong { color: #fff; }
.review { margin: .4rem 0 0; padding-left: .9rem; border-left: 3px solid var(--accent); }
.review blockquote { margin: 0; font-style: italic; color: #f1f4ff; line-height: 1.45; }
.review figcaption { margin-top: .35rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.review--center { justify-self: center; text-align: center; max-width: 36rem; padding: 0; border: 0; }
.review--center figcaption { margin-top: .3rem; }
@media (max-width: 900px) { .media--gameplay .review { order: 4; } }
@media (max-width: 480px) { .hero-rating { font-size: .95rem; } }
@media (max-width: 900px) { .review { border-left: 0; padding-left: 0; text-align: center; } }

/* "See it in action" heading doubles as the link to the YouTube channel: logo + title, whole panel clickable */
.section-title--link a { display: inline-flex; align-items: center; gap: .55em; color: inherit; text-decoration: none; }
.section-title--link a::after { content: ""; position: absolute; inset: 0; }
.section-title--link img { height: 1.05em; width: auto; flex: none; display: block; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.section-title--link { transition: transform .15s ease, filter .15s ease; }
.section-title--link:hover, .section-title--link:focus-within { transform: translateY(-2px); filter: brightness(1.15); }
.stars { text-shadow: none; }   /* a text-shadow shows through the clipped, see-through lettering and darkens the stars */

/* 13 ─ News ──────────────────────────────────────────────────────────────── */
.page-news main { padding-block: 1.2rem 2rem; }
.news-featured, .news-more { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.news-date { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.news-card { display: grid; gap: 0; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015)); border: 1px solid rgb(255 255 255 / .1); box-shadow: var(--shadow); overflow: hidden; }
.news-card--featured { grid-template-columns: 1.35fr 1fr; }
.news-cover { display: block; background: #000; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-cover img { transform: scale(1.03); }
.news-info { display: grid; align-content: center; gap: .6rem; padding: 1.4rem 1.5rem; }
.news-info h3 { margin: 0; font: 400 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.news-info h3 a { color: #fff; text-decoration: none; }
.news-info h3 a:hover { color: var(--accent); }
.news-info .copy { margin: 0; }
.news-info p:last-child { margin-top: .4rem; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }

.post { max-width: 820px; margin: 0 auto; }
.post-head { display: grid; gap: .5rem; justify-items: start; margin-top: 1rem; }
.post-head .section-title { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.post-cover { margin: 1.2rem 0 0; border: 1px solid rgb(255 255 255 / .12); box-shadow: var(--shadow); line-height: 0; }
.post-cover img { width: 100%; height: auto; display: block; }
.post-body { margin-top: 1.4rem; font-size: 1.06rem; line-height: 1.7; color: #e9edf9; }
.post-body > * { margin: 0 0 1.05rem; }
.post-body h2 { margin: 2rem 0 .6rem; font: 400 clamp(1.5rem, 3.4vw, 2rem)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: #fff; padding-left: .7rem; border-left: 4px solid var(--accent); }
.post-body ul { padding-left: 1.3rem; display: grid; gap: .5rem; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: #fff; }
.post-body a { color: var(--accent); }
.post-cta { margin: 2.2rem 0 1rem; padding: 1.4rem; text-align: center; border: 1px solid rgb(255 255 255 / .12); background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015)); }
.post-cta p { margin: 0; }
.post-cta-title { font: 400 1.7rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: .8rem !important; }
@media (max-width: 800px) { .news-card--featured { grid-template-columns: 1fr; } .news-info { padding: 1.1rem 1.1rem 1.3rem; } }
.news-cover picture { display: block; height: 100%; }
.news-grid .news-cover { aspect-ratio: 2 / 1; }
.news-grid .news-cover picture { height: 100%; }

/* Season tabs on the card gallery: the season logos are the tabs */
.season-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.6rem; margin: 0 0 1rem; }
.season-tabs[hidden] { display: none; }
.season-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: .3rem .6rem .5rem; cursor: pointer; color: #fff; font: 400 1.5rem var(--font-display); opacity: .72; filter: saturate(.75); transition: opacity .2s ease, filter .2s ease, border-color .2s ease, transform .2s ease; }
.season-tab img { height: clamp(78px, 14vw, 118px); width: auto; display: block; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .45)); }
.season-tab:hover, .season-tab:focus-visible { opacity: .85; transform: translateY(-2px); }
.season-tab.is-on { opacity: 1; filter: none; border-bottom-color: var(--accent); box-shadow: 0 10px 14px -12px var(--accent); }
.has-season-tabs .season-panel > .season-logo, .has-season-tabs .season-panel > .section-title { display: none; }
.season-panel[hidden] { display: none; }
.hero-rating { margin-top: .55rem; }

/* "Current season" badge over the first season tab: mint plate with cut corners, like the game's small labels */
.season-tab { position: relative; }
.season-badge { position: absolute; z-index: 2; top: -.15rem; left: 50%; translate: -50% 0; padding: .22rem .7rem .2rem; font: 400 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #04200f;
  background: linear-gradient(180deg, hsl(140 100% 83%), hsl(140 86% 58%)); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); filter: none; pointer-events: none; }
.season-tab:not(.is-on) .season-badge { opacity: .85; }
.season-badge { left: -.2rem; top: .05rem; translate: none; rotate: -7deg; transform-origin: left bottom; }
.hero-rating .stars { margin-right: .45em; }

/* Latest release as a showcase: the card centred and tilted over a soft glow, details underneath */
.latest-grid { justify-items: center; gap: 3.5rem; }
.latest-card { grid-template-columns: 1fr; justify-items: center; gap: 1.8rem; text-align: center; width: 100%; }
.latest-art { position: relative; isolation: isolate; width: min(400px, 76vw); max-width: none; transform: rotate(-4deg); transform-origin: 50% 60%; margin-block: .6rem; transition: transform .3s ease, filter .3s ease; }
.latest-art::before { content: ""; position: absolute; z-index: -1; inset: -14% -30%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(130 120 255 / .32), rgb(70 200 190 / .12) 55%, transparent 72%); pointer-events: none; }
.latest-art:hover { transform: rotate(-1deg) translateY(-8px) scale(1.02); }
.latest-info { justify-items: center; width: 100%; max-width: 40rem; }
.latest-info .copy { text-align: center; }
@media (prefers-reduced-motion: reduce) { .latest-art, .latest-art:hover { transition: none; } }

/* Showcase motion: the card leans back a little and slowly sways from 5 to -5 degrees, round and round */
.latest-art { transform: perspective(1100px) rotateX(10deg) rotateY(-5deg); transform-origin: 50% 55%; animation: card-sway 7s ease-in-out infinite alternate; will-change: transform; }
.latest-art:hover { animation-play-state: paused; transform: perspective(1100px) rotateX(4deg) rotateY(0deg) translateY(-6px) scale(1.02); }
@keyframes card-sway { from { transform: perspective(1100px) rotateX(10deg) rotateY(-5deg); } to { transform: perspective(1100px) rotateX(10deg) rotateY(5deg); } }
@media (prefers-reduced-motion: reduce) { .latest-art, .latest-art:hover { animation: none; transform: perspective(1100px) rotateX(10deg); } }

/* Latest release stage: spotlight rays, a ghost of the card's name, drifting sparkles, the previous two cards leaning in
   on either side, and a glowing floor under the card. The glow colour follows the card's rarity. */
.latest-card { --glow: 130 120 255; }
.rarity-legendary { --glow: 255 190 70; }
.rarity-epic { --glow: 170 110 255; }
.rarity-rare { --glow: 80 160 255; }
.rarity-common { --glow: 150 170 200; }
.rarity-fusion { --glow: 255 110 160; }
.latest-stage { position: relative; isolation: isolate; width: 100%; display: grid; justify-items: center; padding: 1.4rem 0 2.6rem; overflow: clip; }
.latest-stage .latest-art { grid-area: 1 / 1; }
.latest-art::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--glow) / .38), rgb(var(--glow) / .12) 55%, transparent 72%); }
.ls-rays { position: absolute; z-index: -3; left: 50%; top: 46%; width: min(1100px, 150vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgb(var(--glow) / .16) 0 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0, transparent 68%); mask-image: radial-gradient(circle closest-side, #000 0, transparent 68%);
  animation: ls-spin 90s linear infinite; }
@keyframes ls-spin { to { rotate: 360deg; } }
.ls-name { position: absolute; z-index: -2; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; pointer-events: none; user-select: none;
  font: 400 clamp(4.5rem, 15vw, 12.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 2px rgb(var(--glow) / .22); }
.ls-motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ls-motes i { position: absolute; left: var(--x); bottom: 6%; width: var(--s); height: var(--s); border-radius: 50%; background: rgb(255 255 255 / .9); box-shadow: 0 0 10px 3px rgb(var(--glow) / .8); opacity: 0; animation: ls-rise var(--d) linear var(--w) infinite; }
@keyframes ls-rise { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 15% { opacity: .95; } 75% { opacity: .5; } 100% { transform: translate3d(var(--dx), -430px, 0) scale(1.1); opacity: 0; } }
.ls-flank { position: absolute; z-index: -1; top: 50%; width: clamp(150px, 20vw, 240px); pointer-events: none; filter: brightness(.55) saturate(.8) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.ls-flank img { width: 100%; display: block; }
.ls-flank--left { left: 50%; translate: calc(-50% - min(36vw, 400px)) -50%; transform: perspective(900px) rotateY(24deg) rotateZ(-6deg); }
.ls-flank--right { left: 50%; translate: calc(-50% + min(36vw, 400px)) -50%; transform: perspective(900px) rotateY(-24deg) rotateZ(6deg); }
.ls-floor { position: absolute; z-index: -1; left: 50%; bottom: .6rem; translate: -50% 0; width: min(420px, 80vw); height: 46px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--glow) / .55), rgb(var(--glow) / .15) 55%, transparent 72%); filter: blur(4px); }
.latest-new { margin: 0; font: 400 1rem var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: #04200f; padding: .25rem .8rem .2rem;
  background: linear-gradient(180deg, hsl(140 100% 83%), hsl(140 86% 58%)); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
@media (max-width: 760px) { .ls-flank { display: none; } .ls-name { font-size: clamp(3.4rem, 17vw, 6rem); } }
@media (prefers-reduced-motion: reduce) { .ls-rays, .ls-motes i { animation: none; } .ls-motes { display: none; } }

/* Carousel version of the latest-release stage: the centre card leans back and sways, the cards either side are turned in and
   dimmed. Arrows, swiping, arrow keys and clicking a side card all move it; the info underneath follows the centre card. */
.cf { position: relative; margin-top: .6rem; }
.cf-stage { position: relative; isolation: isolate; height: calc(min(400px, 70vw) * 1.4 + 3.4rem); overflow: clip; touch-action: pan-y; outline: none; cursor: grab; }
.cf-slide { position: absolute; z-index: 1; left: 50%; top: calc(50% - .9rem); width: min(400px, 70vw); transform-origin: 50% 55%; display: block; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .55));
  transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .45s ease, filter .45s ease; user-select: none; -webkit-user-drag: none; }
.cf-slide img { width: 100%; display: block; pointer-events: none; }
.cf-tilt { display: block; }
.cf-slide::before { content: ""; position: absolute; z-index: -1; inset: -14% -30%; opacity: 0; transition: opacity .45s ease; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--glow) / .38), rgb(var(--glow) / .12) 55%, transparent 72%); }
.cf-slide[data-pos="0"] { z-index: 3; transform: translate(-50%, -50%); }
.cf-slide[data-pos="0"]::before { opacity: 1; }
.cf-slide[data-pos="0"] .cf-tilt { transform: perspective(1100px) rotateX(10deg) rotateY(-5deg); animation: card-sway 7s ease-in-out infinite alternate; will-change: transform; }
.cf-slide[data-pos="1"] { z-index: 2; transform: translate(calc(-50% + 66%), -50%) perspective(1000px) rotateY(-30deg) scale(.7); filter: brightness(.85) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.cf-slide[data-pos="-1"] { z-index: 2; transform: translate(calc(-50% - 66%), -50%) perspective(1000px) rotateY(30deg) scale(.7); filter: brightness(.85) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.cf-slide[data-pos="2"] { z-index: 1; transform: translate(calc(-50% + 112%), -50%) perspective(1000px) rotateY(-36deg) scale(.5); filter: brightness(.65) saturate(.9); }
.cf-slide[data-pos="-2"] { z-index: 1; transform: translate(calc(-50% - 112%), -50%) perspective(1000px) rotateY(36deg) scale(.5); filter: brightness(.65) saturate(.9); }
.cf-slide[data-pos="far"] { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.4); }
.cf-stage .carousel-btn { z-index: 6; }
.cf-stage .carousel-btn.prev { left: 6px; }
.cf-stage .carousel-btn.next { right: 6px; }
.cf-infos { display: grid; justify-items: center; }
.cf-info[hidden] { display: none; }
.cf-dots { margin-top: .8rem; }
.cf-dots button { width: 9px; height: 9px; }
.cf-dots button[aria-current="true"] { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cf-slide { transition: none; } .cf-slide[data-pos="0"] .cf-tilt { animation: none; transform: perspective(1100px) rotateX(10deg); } }
.cf-label { width: fit-content; margin: .8rem auto .4rem; }
#latest { padding-top: 3.6rem; }

/* No button: the centre card itself is the thing to press. It lifts and grows on hover (the sway carries on inside) and dips when pressed. */
.cf-slide { cursor: pointer; }
.cf-slide[data-pos="0"]:hover { transform: translate(-50%, calc(-50% - 12px)) scale(1.05); filter: brightness(1.08) drop-shadow(0 22px 30px rgb(0 0 0 / .6)); }
.cf-slide[data-pos="0"]:hover::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(var(--glow) / .6), rgb(var(--glow) / .2) 55%, transparent 72%); }
.cf-slide[data-pos="0"]:active { transform: translate(-50%, calc(-50% - 4px)) scale(1.01); transition-duration: .1s; }
.cf-slide[data-pos="1"]:hover, .cf-slide[data-pos="-1"]:hover { filter: brightness(1) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.cf-slide:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .cf-slide[data-pos="0"]:hover, .cf-slide[data-pos="0"]:active { transform: translate(-50%, -50%); } }
.cf-label { font-size: clamp(1.35rem, 3vw, 1.8rem); padding: .4rem 1.5rem .35rem; letter-spacing: .16em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); margin: .6rem auto .3rem; }
#latest { padding-top: 2.3rem; }
.cf-label { margin: .3rem auto 0; }
.cf-stage { height: calc(min(400px, 70vw) * 1.4 + 2.2rem); }
.cf-slide { top: calc(50% - .4rem); }

/* "Just released" and "Current season" tags: shiny blue */
.latest-new, .season-badge { color: #06142b; background: linear-gradient(180deg, #a9e4ff, #3a9bf0); }

/* Green is for Play Now buttons only; every other button is blue */
.cta.cta--blue { color: #06142b; background: linear-gradient(180deg, #a9e4ff, #3a9bf0); }

/* News post: plain title (no panel behind it) and a bigger Play Now at the bottom with no box around it */
.post-head .section-title { background: none; clip-path: none; padding: 0; color: #fff; text-shadow: 0 3px 0 rgb(0 0 0 / .5), 0 0 24px rgb(0 0 0 / .6); font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; }
.post-head .section-title::before { display: none; }
.post-cta { background: none; border: 0; padding: 1.6rem 0 .6rem; margin-top: 2.6rem; }
.post-cta-title { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.post-cta .cta--big { padding: 1.1rem 4.2rem; font-size: clamp(2rem, 5vw, 2.8rem); }

/* News list headings: the same tag as "Just released" on the cards page */
.news-heading { width: fit-content; justify-self: start; padding: .4rem 1.5rem .35rem; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: .16em; line-height: 1.2; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.news-heading { justify-self: center; }
.page-news:not(.page-post) main { padding-top: 2.6rem; }
.page-news:not(.page-post) .news-featured { margin-top: 0; }
.news-heading { font-size: clamp(1.6rem, 3.5vw, 2.15rem); padding: .45rem 1.8rem .4rem; }
.page-news:not(.page-post) main { padding-top: 1.35rem; }
/* the news heading is the cards page "Just released" tag, same size and shape */
.news-heading { font-size: clamp(1.35rem, 3vw, 1.8rem); padding: .4rem 1.5rem .35rem; letter-spacing: .16em; line-height: 1.2; margin: 0 auto; }
.news-heading { line-height: normal; }
.page-news:not(.page-post) main { padding-top: 1rem; }
.news-featured, .news-more { gap: 2.2rem; }

/* ---- Performance and device care ----------------------------------------------------------------------------------- */
/* No layout jumps while the page script switches things on: tabs/filters keep their space, only the active season shows */
.js .season-tabs[hidden], .js .card-filters[hidden] { display: flex; visibility: hidden; }
.js .season-panel { display: none; }
.js .season-panel.is-active { display: block; }
.season-tabs { min-height: calc(clamp(78px, 14vw, 118px) + .8rem); }

/* Off-screen sections stop animating (the page script adds .is-offscreen) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* Smaller phones: fewer sparkles */
@media (max-width: 700px) { .ls-motes i:nth-child(n+9), .hero-motes .mote:nth-child(n+9) { display: none; } }

/* Low-power or data-saving devices (the script adds .lite): keep the look, drop the continuous effects */
.lite .ls-rays, .lite .cf-slide[data-pos="0"] .cf-tilt, .lite .cta--big, .lite .cta--big::after, .lite .hero-glow-bed, .lite .hs-glow, .lite .lp-glow, .lite .nav-candle, .lite [class*="candle"] { animation: none !important; }
.lite .ls-motes, .lite .hero-motes, .lite .mote { display: none; }
.lite .nav, .lite .lp-fill, .lite .dl-bar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lite .cf-slide[data-pos="0"] .cf-tilt { transform: perspective(1100px) rotateX(10deg); }
.lite .hero-video video { display: none; }

/* Touch screens: bigger hit areas for small links and buttons */
@media (pointer: coarse) {
  .lang-switch a { padding: .8rem .75rem; }
  .breadcrumb a { display: inline-block; padding: .65rem .2rem; }
  .carousel-dots button { width: 11px; height: 11px; box-shadow: 0 0 0 10px transparent; }
  .chip { padding: .65rem 1rem; }
  .season-tab { padding-block: .6rem .7rem; }
  .card-pager a { padding-block: 1rem; }
}

/* No layout jump when the web font arrives: tags have a fixed line height (not "normal", which depends on the font) */
.latest-new, .cf-label, .news-heading { line-height: 1.25 !important; }
.js .has-tabs .season-panel > .season-logo, .js .has-tabs .season-panel > .section-title { display: none; }

/* Phones: the trailer keeps its wide shape (a band behind the art) instead of being cropped up to fill the tall hero */
@media (max-width: 700px) { .hero-video { inset: auto 0 auto 0; top: 40%; height: auto; aspect-ratio: 16 / 9; translate: 0 -50%; } }

/* ---- Conversion layout pieces (config/site.json -> home_layout) ---------------------------------------------------- */
.hero-quote { margin: .15rem 0 0; max-width: 34rem; font-size: .95rem; font-style: italic; line-height: 1.35; color: #e6ecfb; text-shadow: 0 1px 4px rgb(0 0 0 / .7); text-wrap: balance; }
.hero-quote-by { display: block; font-style: normal; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero--quote.hero--art .hero-scene { --h: clamp(270px, calc(100svh - 21.8rem), 700px); }
@media (max-width: 1000px) { .hero--quote.hero--art .hero-scene { --h: clamp(240px, calc(100svh - 25.8rem), 620px); } }
@media (max-width: 700px) { .hero--quote.hero--art .hero-scene { --h: clamp(230px, calc(100svh - 29.8rem), 480px); } .hero-quote { font-size: .85rem; } }
.cta-after { display: flex; justify-content: center; padding: 1.6rem 0 .4rem; }
#how, #download { padding-block: 2rem; }
.how-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.how-step { position: relative; display: grid; justify-items: center; align-content: start; gap: .5rem; padding: 1.6rem 1.2rem 1.4rem; text-align: center; background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)); border: 1px solid rgb(255 255 255 / .12); box-shadow: var(--shadow); }
.how-step h3 { margin: .2rem 0 0; font: 400 clamp(1.35rem, 2.6vw, 1.8rem)/1.1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.how-step p { margin: 0; line-height: 1.5; color: #dfe6f7; }
.how-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgb(108 184 255 / .3), rgb(108 184 255 / .06) 70%); border: 1px solid rgb(108 184 255 / .4); }
.how-icon svg { width: 46px; height: 46px; fill: #bfe3ff; stroke: #0b1d38; stroke-width: 1.2; stroke-linejoin: round; }
.how-num { position: absolute; top: .6rem; left: .8rem; font: 400 1.6rem/1 var(--font-display); color: var(--accent); }
#download .hero-actions { margin-top: .4rem; }
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } .how-step { grid-template-columns: 84px 1fr; text-align: left; justify-items: start; column-gap: 1rem; padding: 1rem 1.1rem; } .how-icon { grid-row: 1 / span 2; } .how-step h3 { align-self: end; } .how-step p { align-self: start; } .how-num { display: none; } }

/* Hero review, bigger and tidier: large blue quote marks, white text, a ruled attribution line */
.hero-quote { margin: .5rem 0 0; max-width: 40rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-style: normal; line-height: 1.3; color: #fff; text-shadow: 0 2px 8px rgb(0 0 0 / .8); }
.hq-text { display: block; font-style: italic; font-weight: 700; quotes: "\201C" "\201D"; }
.hq-text::before, .hq-text::after { font: 400 1.9em/0 var(--font-display); font-style: normal; color: #6cb8ff; vertical-align: -.32em; }
.hq-text::before { margin-right: .12em; } .hq-text::after { margin-left: .08em; }
.hero-quote-by { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .35rem; font-size: .78rem; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #cfd8ee; }
.hero-quote-by::before, .hero-quote-by::after { content: ""; width: 2rem; height: 1px; background: rgb(108 184 255 / .6); }
.hero--quote.hero--art .hero-scene { --h: clamp(270px, calc(100svh - 22.6rem), 700px); }
@media (max-width: 1000px) { .hero--quote.hero--art .hero-scene { --h: clamp(240px, calc(100svh - 26.6rem), 620px); } }
@media (max-width: 700px) { .hero--quote.hero--art .hero-scene { --h: clamp(230px, calc(100svh - 31rem), 480px); } .hero-quote { font-size: 1rem; } .hero-quote-by::before, .hero-quote-by::after { width: 1.2rem; } }

/* in-game promo image on a card page */
.card-promo { margin: 2.5rem auto 0; text-align: center; }
.card-promo .section-title { margin-bottom: 1rem; }
.promo-fig { margin: 0 auto; max-width: 480px; }
.promo-fig img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .45); }
