/* Ligue Compétences · direction 1.4.3. Les composants métier restent dans app.css. */
:root {
  --lc-night: #101e3c;
  --lc-ocean: #20588f;
  --lc-sky: #54a5db;
  --lc-sun: #ffd448;
  --lc-lime: #8dd29c;
  --lc-stroke: 2px solid var(--lc-night);
  --lc-card-shadow: 0 8px 0 rgba(16, 30, 60, .13), 0 18px 38px rgba(16, 30, 60, .12);
}
:root[data-theme="dark"] {
  --lc-card-shadow: 0 8px 0 rgba(0, 0, 0, .27), 0 18px 38px rgba(0, 0, 0, .24);
}
.lc-icon { display: inline-block; vertical-align: middle; flex: none; }
.capsule { width: 44px; height: 44px; filter: drop-shadow(0 2px 0 rgba(16, 30, 60, .23)); }
.topbar { min-height: 68px; }
.topbar .navlink, .topbar .theme-toggle, .motion-toggle, .avatar { min-height: 44px; }
.topbar .navlink .ico, .bottombar .ico { display: grid; place-items: center; }
.theme-toggle { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.motion-toggle {
  width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink);
  cursor: pointer; transition: transform .18s var(--ease), background .18s;
}
.motion-toggle:hover { background: var(--surface-3); transform: translateY(-2px); }
.motion-toggle[aria-pressed="false"] { color: var(--muted); }
.motion-toggle:disabled { cursor: default; opacity: .75; }
.motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-mini .word { font-family: var(--font-body); font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 1000; letter-spacing: -.045em; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.brand-mini .tag { font-family: var(--font-body); font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.brand-title { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.brand-sub { font-family: var(--font-body); font-weight: 1000; }
.navlink[aria-current="page"] { background: var(--lc-night); box-shadow: inset 0 -3px 0 var(--lc-sky); }
:root[data-theme="dark"] .navlink[aria-current="page"] { background: #335f9c; }
.avatar { width: 44px; height: 44px; text-decoration: none; }
.btn { min-height: 44px; }
.btn.small { min-height: 40px; }
.btn.icon { min-width: 44px; min-height: 44px; }
.seg button, .tri button { min-height: 44px; }
.seg, .tabs { max-width: 100%; overflow-x: auto; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { border-color: var(--line-2); }
.card-link:hover, .card-link:focus-visible, .dex-card:hover, .dex-card:focus-within { box-shadow: var(--lc-card-shadow); }
.dex-card { border: 2px solid var(--line-2); }
.dex-card::before, .feature-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(118deg, transparent 25%, rgba(255,255,255,.27) 47%, transparent 69%);
  transform: translateX(-55%); transition: opacity .25s, transform .65s var(--ease);
}
.dex-card:hover::before, .dex-card:focus-within::before, .feature-card:hover::before, .feature-card:focus-within::before { opacity: 1; transform: translateX(55%); }
.dex-card .creature { width: 88px; height: 88px; border: 3px solid var(--lc-night); bottom: -37px; }
.dex-card .creature img { background: var(--surface-3); }
.dex-card .body { padding-top: 26px; }
.dex-card .chip .lc-orb { width: 18px; height: 18px; }
.exp .bar { overflow: hidden; }
.exp .bar i { transition: width .7s var(--ease); }
.badge { border: 2px solid var(--line-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.badge:hover, .badge:focus-within { transform: translateY(-3px); box-shadow: var(--lc-card-shadow); }
.badge .arena-badge-image { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; flex: none; border: 2px solid var(--lc-night); }
.prof-card .face img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ligue-hero { padding-right: clamp(24px, 24vw, 290px); }
.ligue-hero-art { position: absolute; right: clamp(24px, 5vw, 70px); top: 50%; width: clamp(180px, 18vw, 245px); aspect-ratio: 16 / 9; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.78); border-radius: 22px; background: rgba(255,255,255,.16); color: #fff; transform: translateY(-50%) rotate(3deg); box-shadow: 0 15px 35px rgba(0,0,0,.22); }
.ligue-hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; }
.overview-v1 .hero { padding-right: clamp(280px, 30vw, 390px); }
.overview-v1 .hero > :not(.shapes):not(.overview-hero-creature) { position: relative; z-index: 1; }
.overview-hero-creature { position: absolute; z-index: 0; right: clamp(6px, 3vw, 44px); bottom: -14px; width: clamp(230px, 25vw, 340px); height: auto; filter: drop-shadow(0 14px 12px rgba(10, 28, 58, .35)); pointer-events: none; }
.lc-empty-art { width: 96px; height: 96px; display: inline-grid; place-items: center; position: relative; margin: 0 auto 14px; color: var(--lc-ocean); }
.lc-empty-art__back { position: absolute; inset: 8px; border: 3px dashed var(--line-2); border-radius: 26px; transform: rotate(-9deg); background: var(--surface-3); }
.lc-empty-art .lc-icon { position: relative; transform: rotate(7deg); }
.lc-empty-art--notes { color: #b262a1; }
.lc-empty-art--quests { color: #458760; }
.lc-empty-art--chat { color: #a07121; }
.lc-empty-art--proof { color: #5276c9; }

/* Accueil : affiche illustrée et chapitres ; tous les textes restent éditables. */
.landing-v1 { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: clamp(24px, 4vw, 44px); min-width: 0; }
.landing-v1 > * { min-width: 0; max-width: 100%; }
.landing-hero {
  min-height: min(680px, calc(100svh - 150px)); display: flex; align-items: center; padding: clamp(28px, 5vw, 64px);
  border: 3px solid var(--lc-night); border-radius: 34px; background: linear-gradient(130deg, #103054, #166faa);
  box-shadow: var(--lc-card-shadow);
}
.landing-hero::before { display: none; }
.landing-hero::after { z-index: 1; inset: 0; width: auto; height: auto; border-radius: inherit; background: linear-gradient(90deg, rgba(6,21,45,.94) 0%, rgba(6,21,45,.77) 45%, rgba(6,21,45,.12) 100%); }
.landing-hero-copy { position: relative; z-index: 3; width: min(620px, 57%); }
.landing-brand-lockup { display: block; width: min(100%, 350px); padding: 5px 12px; border: 2px solid rgba(255,212,72,.9); border-radius: 14px; background: #fff9ec; box-shadow: 4px 5px 0 rgba(16,30,60,.5); }
.landing-brand-lockup img { display: block; width: 100%; height: auto; }
.landing-brand-lockup + .lc-eyebrow { margin-top: 22px; }
.landing-hero-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: 0; }
.landing-landscape { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.lc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 1000; font-size: .73rem; letter-spacing: .17em; text-transform: uppercase; color: var(--lc-ocean); }
.landing-hero .lc-eyebrow { color: var(--lc-sun); }
.landing-title { color: #fff; font-size: clamp(2.8rem, 5.9vw, 6rem); line-height: .98; letter-spacing: -.06em; margin: 24px 0; text-wrap: balance; overflow-wrap: anywhere; }
.landing-title em { color: var(--lc-sun); font-style: normal; }
.landing-lead { color: #f4f9ff; font-size: clamp(1.04rem, 1.5vw, 1.35rem); font-weight: 750; line-height: 1.5; max-width: 56ch; }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.landing-outline { --b: rgba(9,29,55,.48); --b2: rgba(255,255,255,.5); --c: #fff; border: 2px solid rgba(255,255,255,.8); box-shadow: none; }
.landing-caption { color: #e3effe; font-size: .8rem; display: block; max-width: 54ch; margin-top: 24px; font-weight: 700; }
.orbit { position: absolute; display: block; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; animation: lc-orbit 18s ease-in-out infinite; }
.orbit-a { width: 400px; height: 400px; right: 8%; top: 15%; }
.orbit-b { width: 270px; height: 270px; right: 13%; top: 29%; animation-delay: -7s; }
@keyframes lc-orbit { 50% { transform: rotate(14deg) scale(1.06); } }
.art-card { position: absolute; width: 165px; min-height: 210px; padding: 14px; display: grid; align-content: space-between; color: #fff; border: 3px solid var(--lc-night); border-radius: 20px; box-shadow: 7px 8px 0 rgba(16,30,60,.45); }
.art-card .lc-icon { justify-self: center; filter: drop-shadow(0 4px 0 rgba(16,30,60,.4)); }
.art-card .art-card-top { font: 700 .58rem var(--font-pixel); }
.art-card b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; }
.art-card-a { right: 17%; top: 13%; background: linear-gradient(160deg, #288fe0, #164372); transform: rotate(10deg); }
.art-card-b { right: 5%; bottom: 11%; background: linear-gradient(160deg, #4aaf89, #175764); transform: rotate(-8deg); }
.art-orb { position: absolute; right: 23%; bottom: 4%; filter: drop-shadow(0 10px 8px rgba(0,0,0,.4)); animation: lc-hover 5s ease-in-out infinite; }
@keyframes lc-hover { 50% { transform: translateY(-13px); } }
.landing-creature { position: absolute; z-index: 2; height: auto; pointer-events: none; filter: drop-shadow(0 22px 16px rgba(7, 23, 47, .5)); }
.landing-creature--main { width: clamp(280px, 36vw, 470px); right: 2%; bottom: -6%; }
.landing-creature--accent { width: clamp(150px, 17vw, 225px); right: 27%; top: 9%; transform: rotate(-9deg); }
.landing-section { min-height: min(640px, calc(100svh - 140px)); display: grid; align-content: center; gap: 32px; padding: clamp(24px, 5vw, 58px); border: 2px solid var(--line-2); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-2); }
.section-intro { max-width: 750px; }
.section-intro h2, .landing-section--finish h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; margin: 12px 0 10px; }
.section-intro p, .landing-section--finish p { font-size: 1.08rem; color: var(--ink-2); max-width: 65ch; }
.feature-grid, .track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; min-width: 0; padding: 22px; border: 2px solid var(--lc-night); border-radius: 22px; background: var(--surface-2); box-shadow: 5px 6px 0 rgba(16,30,60,.15); transition: transform .2s var(--ease), box-shadow .2s; overflow: hidden; }
.feature-card:hover, .feature-card:focus-within { transform: translateY(-5px); box-shadow: var(--lc-card-shadow); }
.feature-card-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; border: 2px solid var(--lc-night); background: var(--lc-sun); color: var(--lc-night); margin-bottom: 22px; }
.feature-card-num { font-family: var(--font-mono); font-weight: 900; color: var(--lc-ocean); font-size: .8rem; }
.feature-card h3 { font-size: 1.4rem; margin: 6px 0 9px; }
.feature-card p { color: var(--ink-2); margin: 0; }
.landing-section--split { background: linear-gradient(120deg, var(--surface), var(--surface-3)); }
.track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.track-card { min-width: 0; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 3px solid var(--lc-night); border-radius: 24px; color: #fff; box-shadow: 7px 8px 0 rgba(16,30,60,.2); position: relative; overflow: hidden; }
.track-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,23,47,.84), rgba(7,23,47,.3)); }
.track-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -50px; border-radius: 50%; border: 20px solid rgba(255,255,255,.13); }
.track-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.track-card > :not(.track-card-image) { z-index: 2; }
.track-card--cda { background: linear-gradient(145deg, #2986d2, #173d7a); }
.track-card--ais { background: linear-gradient(145deg, #38a978, #174f71); }
.track-card-code { font: 700 .8rem var(--font-pixel); letter-spacing: .14em; }
.track-card-icon { position: absolute; right: 24px; top: 45px; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 30px; background: rgba(255,255,255,.17); transform: rotate(9deg); }
.track-card h3 { max-width: 19ch; font-size: clamp(1.25rem, 2.2vw, 2rem); margin-bottom: 6px; }
.track-card p { margin: 0; font-weight: 750; }
.track-deck-controls { display: none; align-items: center; justify-content: flex-end; gap: 12px; }
.track-deck-controls button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--lc-night); color: var(--ink); background: var(--surface); cursor: pointer; }
.track-deck-controls button:first-child .lc-icon { transform: rotate(180deg); }
.track-deck-controls button:disabled { opacity: .4; cursor: default; }
.track-deck-count { font-weight: 900; font-family: var(--font-mono); }
.landing-section--finish { min-height: 400px; grid-template-columns: 190px 1fr; align-items: center; background: linear-gradient(120deg, var(--surface), var(--yellow-soft)); }
.finish-art { width: 168px; height: 168px; display: grid; place-items: center; background: #fff; border: 3px solid var(--lc-night); border-radius: 40px; transform: rotate(-8deg); box-shadow: 8px 9px 0 rgba(16,30,60,.17); }

/* Navigation progressive : uniquement les chapitres marqués dans les deux accueils. */
.explore-nav { position: sticky; top: 68px; z-index: 12; display: flex; align-items: center; gap: 8px; padding: 8px; margin: 0 0 12px; border: 1px solid var(--line-2); border-radius: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); }
.explore-direct { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.explore-direct a, .explore-step, .explore-mode { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; padding: 8px 12px; text-decoration: none; font-weight: 900; font-size: .8rem; white-space: nowrap; color: var(--ink-2); border: 0; background: transparent; }
.explore-direct a:hover, .explore-step:hover, .explore-mode:hover { background: var(--surface-3); }
.explore-direct a[aria-current="location"] { background: var(--lc-night); color: #fff; }
.explore-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lc-sun); flex: none; }
.explore-step { width: 44px; padding: 0; flex: none; }
.explore-step:first-child .lc-icon { transform: rotate(180deg); }
.explore-step[aria-disabled="true"] { opacity: .35; }
.explore-mode { flex: none; cursor: pointer; font: 900 .8rem var(--font-body); background: var(--lc-night); color: #fff; border: 2px solid var(--lc-night); }
.explore-mode[aria-pressed="true"]:hover { background: var(--lc-ocean); color: #fff; }
.explore-mode[aria-pressed="false"] { background: var(--lc-sun); color: var(--lc-night); }
.explore-mode[aria-pressed="false"]:hover { background: #ffe37a; color: var(--lc-night); }
.explore-nav--continuous { justify-content: flex-end; }
html[data-exploring="true"][data-motion="on"] { scroll-snap-type: y proximity; scroll-behavior: smooth; }
.landing-v1 [data-chapter], .overview-v1 [data-chapter] { scroll-snap-align: start; scroll-margin-top: 140px; }
.overview-v1 .hero::before { animation-duration: 100s; }

/* Révélation et pause de l'ambiance, sans cacher les contenus en mode réduit. */
html[data-motion="on"] .reveal-pending { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
html[data-motion="on"] .reveal-pending.reveal-in { opacity: 1; transform: none; }
html[data-motion="off"] .reveal-pending { opacity: 1; transform: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion="off"], html[data-motion="off"] body { scroll-behavior: auto !important; scroll-snap-type: none !important; }
html[data-motion="off"] .track-deck { scroll-snap-type: none !important; }
html[data-ambient="paused"] .orbit, html[data-ambient="paused"] .art-orb, .hero[data-ambient="paused"]::before, .hero[data-ambient="paused"] .orbit, .hero[data-ambient="paused"] .art-orb { animation-play-state: paused; }

/* Fixture locale sans données de production. */
.visual-demo { display: grid; gap: 22px; }
.demo-back { min-height: 44px; display: inline-flex; align-items: center; }
.demo-states, .demo-badges, .demo-trials, .demo-empty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.demo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.demo-cards .dex-card .creature { background: var(--surface); }
.demo-cards .dex-card .body { min-height: 145px; }
.demo-state, .demo-trial, .demo-empty { min-height: 120px; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 16px; text-align: center; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--surface-2); }
.demo-state b, .demo-trial b, .demo-empty b { font-size: .86rem; }
.demo-badges .badge { min-width: 0; }
.demo-trial .lc-icon { color: var(--lc-ocean); }
.demo-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.demo-scene { margin: 0; min-width: 0; overflow: hidden; border: 2px solid var(--line-2); border-radius: 17px; background: var(--surface-2); }
.demo-scene img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.demo-scene--prof img { aspect-ratio: 1; max-height: 260px; object-fit: contain; }
.demo-scene figcaption { padding: 10px 12px; font-weight: 900; color: var(--ink); }
.demo-scene-missing { display: grid; min-height: 100px; place-items: center; padding: 12px; color: var(--muted); }

/* Cartes d’aventure réutilisables : illustrations originales, texte HTML. */
.lc-adventure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.lc-adventure-link { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.lc-adventure-link:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(8, 23, 57, .16); }
.lc-adventure-link:focus-visible { outline: 3px solid var(--lc-night); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lc-sun); }
.lc-adventure-art { display: block; position: relative; aspect-ratio: 640 / 427; overflow: hidden; border-radius: 17px 17px 0 0; background: var(--lc-ocean); }
.lc-adventure-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-adventure-number { position: absolute; left: 12px; bottom: 12px; min-width: 36px; padding: 5px 9px; border-radius: 10px; background: var(--lc-night); color: #fff; font-weight: 900; font-size: .85rem; }
.lc-adventure-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.lc-adventure-copy h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.lc-adventure-copy p { margin: 0 0 6px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.lc-adventure-action { margin-top: auto; padding-top: 6px; font-size: .83rem; font-weight: 900; }
html[data-motion="on"] .lc-adventure-link:is(:hover, :focus-visible) img { animation: lc-adventure-peek .65s ease-out both; }
html[data-motion="on"] .lc-adventure-link:is(:hover, :focus-visible) .lc-adventure-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.23) 50%, transparent 70%); animation: lc-adventure-glint .7s ease-out both; pointer-events: none; }
@keyframes lc-adventure-peek { 0% { transform: scale(1); } 65% { transform: scale(1.045); } 100% { transform: scale(1.025); } }
@keyframes lc-adventure-glint { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
html[data-ambient="paused"] .lc-adventure-art img, html[data-ambient="paused"] .lc-adventure-art::after { animation-play-state: paused !important; }
html[data-motion="off"] .lc-adventure-link { transition: none; transform: none; }
html[data-motion="off"] .lc-adventure-art img, html[data-motion="off"] .lc-adventure-art::after { animation: none !important; transform: none; }
@media (max-width: 1000px) { .lc-adventure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lc-adventure-grid { grid-template-columns: minmax(0, 1fr); } .lc-adventure-art { max-height: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .lc-adventure-link { transition: none; transform: none !important; }
  .lc-adventure-art img, .lc-adventure-art::after { animation: none !important; transform: none !important; }
}

@media (max-width: 920px) {
  .bottombar > a, .more-btn { min-height: 56px; }
  .topbar { gap: 8px; }
  .landing-hero-copy { width: min(660px, 75%); }
  .art-card { transform: scale(.8); }
  .art-card-a { right: 5%; }
  .art-card-b { right: -4%; }
}
@media (max-width: 760px) {
  html[data-exploring="true"] { scroll-snap-type: none !important; scroll-behavior: auto !important; }
  .landing-hero { min-height: 0; align-items: flex-start; padding: 26px 26px 270px; }
  .landing-hero::after { background: linear-gradient(180deg, rgba(6,21,45,.93) 0%, rgba(6,21,45,.82) 55%, rgba(6,21,45,.23) 100%); }
  .landing-hero-copy { width: 100%; }
  .landing-title { margin: 18px 0; font-size: clamp(2.65rem, 9vw, 4.5rem); }
  .landing-creature--main { width: min(67vw, 300px); right: 2%; bottom: -3%; }
  .landing-creature--accent { display: none; }
  .art-orb { right: 7%; bottom: 4%; }
  .landing-section { min-height: 0; padding: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .track-deck { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82%, 1fr); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: 8px; padding: 0 8px 12px; scrollbar-width: thin; }
  .track-deck .track-card { scroll-snap-align: center; }
  .track-deck-controls { display: flex; }
  .landing-section--finish { grid-template-columns: 1fr; }
  .finish-art { width: 115px; height: 115px; }
  .finish-art svg { width: 88px; height: 88px; }
  .explore-nav { top: 68px; flex-wrap: wrap; min-width: 0; }
  .explore-direct { min-width: 0; }
  .explore-link-label { display: none; }
  .explore-direct a { min-width: 44px; }
  .explore-mode { order: -1; width: 100%; min-height: 44px; }
  .ligue-hero { padding-right: 24px; }
  .ligue-hero-art { display: none; }
  .overview-v1 .hero { padding-right: 24px; }
  .overview-hero-creature { position: relative; display: block; width: min(68%, 240px); right: auto; bottom: auto; margin: 12px 0 -30px auto; }
}
@media (max-width: 560px) {
  /* A centered camera keeps the creature large while the logical 640px field stays playable. */
  .capture-stage { display: flex; justify-content: center; }
  .capture-canvas { width: 520px; max-width: none; flex: 0 0 520px; }
}
@media (max-width: 400px) {
  .overview-v1 .badge { display: grid; grid-template-columns: 54px 44px minmax(0, 1fr); gap: 8px; }
  .overview-v1 .badge > div { grid-column: 1 / -1; min-width: 0; }
  .brand-mini .word, .brand-mini br { display: none; }
  .topbar { padding-inline: 8px; }
  .topbar .btn.small { padding-inline: 10px; }
  .landing-hero { min-height: 0; padding: 22px 22px 270px; }
  .landing-title { font-size: clamp(2.1rem, 10.4vw, 2.55rem); }
  .landing-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .landing-caption { font-size: .75rem; }
  .track-card { min-height: 220px; }
  .track-card-icon { width: 80px; height: 80px; top: 40px; right: 12px; }
  .track-card-icon .lc-icon { width: 48px; height: 48px; }
  .brand-title { font-size: 2.1rem; overflow-wrap: anywhere; }
  .explore-nav { gap: 2px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-exploring="true"] { scroll-snap-type: none !important; scroll-behavior: auto !important; }
  .track-deck { scroll-snap-type: none !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
}
