/* The Features page, 24 Oct 2026 redesign (her ask: "it needs to be more apealing"): a painted hero, one coloured band per
   group, each feature as a picture or moving clip beside its text. Same language as css/story.css. Loaded after css/fun.css. */
.fx-page { --group: #111827; --group-soft: #f3f4f6; max-width: 1120px; margin: 96px auto 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 80px; }
.fx-page img, .fx-page video { display: block; max-width: 100%; }
.fx-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }

/* Hero */
.fx-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #1f2937; min-height: 440px; display: grid; align-items: end; }
.fx-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; }
.fx-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,22,0.05) 20%, rgba(10,14,22,0.55) 55%, rgba(10,14,22,0.9) 100%); }
.fx-hero-text { position: relative; z-index: 1; color: #fff; padding: clamp(24px, 5vw, 48px); display: grid; gap: 14px; max-width: 760px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.fx-hero-text .fx-eyebrow { color: #bfdbfe; }
.fx-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.fx-hero p.fx-lede { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e5e7eb; }
.fx-page .features-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.fx-page .features-jump a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); text-shadow: none; }
.fx-page .features-jump a:hover { background: rgba(255,255,255,0.26); }

/* A group */
.fx-group { display: grid; gap: 40px; scroll-margin-top: 90px; }
.fx-group-head { display: grid; gap: 6px; border-bottom: 3px solid var(--group); padding-bottom: 12px; }
.fx-group-head .fx-eyebrow { color: var(--group); }
.fx-group-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.05; scroll-margin-top: 90px; }

/* A feature: media beside text, alternating */
.fx-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; scroll-margin-top: 90px; }
.fx-feature.flip > .fx-media { order: 2; }
.fx-feature.stack { grid-template-columns: minmax(0, 1fr); }
.fx-text { min-width: 0; display: grid; gap: 10px; }
.fx-text h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.fx-text p { margin: 0; font-size: 1.06rem; line-height: 1.7; color: #374151; max-width: 60ch; }
.fx-text a { color: var(--text-main); text-underline-offset: 3px; }
.fx-media { min-width: 0; margin: 0; }
.fx-shot { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); width: 100%; background: #111827; }
.fx-media figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* Moving clips */
.fx-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-clip { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; background: #1c2230; aspect-ratio: 480 / 422; }
.fx-clip video { width: 100%; height: 100%; object-fit: cover; }
.fx-clip figcaption { position: absolute; left: 10px; bottom: 8px; color: #fff; font-weight: 700; font-size: 0.9rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* Job line-up */
.fx-jobs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.fx-job { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.fx-job .fig { position: relative; isolation: isolate; width: 100%; aspect-ratio: 3 / 4; display: grid; align-items: end; justify-items: center; }
.fx-job .fig::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 4%; width: 92%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--c, var(--fun-cream)); }
.fx-job img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.fx-job figcaption { font-weight: 700; font-size: 0.95rem; }
.fx-job .ghost { width: 70%; aspect-ratio: 3 / 5; border-radius: 40% 40% 12px 12px; border: 2px dashed #a78bfa; display: grid; place-items: center; color: #7c3aed; font-size: 2rem; font-weight: 300; margin-bottom: 8%; background: rgba(255,255,255,0.6); }

/* Rarity */
.fx-rarity { display: grid; gap: 12px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip { font-weight: 700; font-size: 0.9rem; padding: 6px 12px; border-radius: 8px; background: #111827; }
.fx-chip.normal { color: #d1d5db; } .fx-chip.rare { color: #4ade80; } .fx-chip.extra { color: #60a5fa; } .fx-chip.epic { color: #c084fc; } .fx-chip.legendary { color: #fbbf24; }
.fx-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-pillars figure { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; background: #1c2230; aspect-ratio: 420 / 600; }
.fx-pillars video { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.fx-pillars figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-weight: 700; font-size: 0.8rem; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }

/* Small figure beside a feature */
.fx-fig { position: relative; isolation: isolate; width: min(240px, 60%); margin: 0 auto; }
.fx-fig::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 3%; width: 115%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--c, var(--fun-cream)); }

/* Closing */
.fx-cta { position: relative; border-radius: var(--radius-lg); background: #111827; color: #fff; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; overflow: hidden; }
.fx-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.fx-cta p { margin: 0 0 18px; color: #d1d5db; font-size: 1.05rem; }
.fx-cta .btn-primary { background: #fff; color: #111827; }
.fx-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.fx-cta img { width: clamp(160px, 22vw, 260px); }

@media (max-width: 860px) {
  .fx-page { gap: 64px; margin-top: 84px; }
  .fx-feature, .fx-feature.flip { grid-template-columns: minmax(0, 1fr); }
  .fx-feature.flip > .fx-media { order: 0; }
  .fx-jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .fx-cta { grid-template-columns: minmax(0, 1fr); }
  .fx-cta img { justify-self: center; }
}
@media (max-width: 520px) {
  .fx-hero { min-height: 400px; }
  .fx-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* figures: a fixed stage height so large kit pictures never set the row's width */
.fx-job .fig { aspect-ratio: auto; height: clamp(130px, 19vw, 220px); }
.fx-job .fig img { height: 92%; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; }
.fx-fig img { width: 100%; height: auto; }
.fx-job { min-width: 0; }
.fx-job .fig::before { width: auto; height: 74%; max-width: 100%; }
.fx-job .ghost { height: 78%; width: auto; }
.fx-job .fig { display: block; }
.fx-job .fig img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: 94%; width: auto; max-width: 112%; }
.fx-job .ghost { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; margin: 0; aspect-ratio: 3 / 5; }
.fx-clip { aspect-ratio: 5 / 4; }
.fx-clip video { object-position: center 88%; }
#transmog .fx-fig, #weapons .fx-fig { width: min(200px, 55%); }
/* skills: two in-game stills (her 24 Oct pick: no skill animations; the drop clips stay) */
.fx-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-stills figure { margin: 0; display: grid; gap: 6px; }
.fx-stills img { aspect-ratio: 4 / 3; object-fit: cover; }
.fx-stills figcaption { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
/* Original art stays visibly labelled where a new gameplay screenshot is not available. */
.fx-illustration .fx-shot { max-height: 320px; object-fit: contain; background: #fff; box-shadow: none; }
.fx-media > figcaption { line-height: 1.5; }
/* home1102: a device picture with a transparent background sits on the page, not on a dark card */
.fx-shot.fx-device { background: transparent; box-shadow: none; }
