/* ==========================================================================
   Kira the Fox — site vitrine
   Direction artistique reprise du jeu : nuit indigo, or, cristal cyan/violet.
   ========================================================================== */

:root {
    /* Fonds */
    --night:      #07061a;
    --night-2:    #0a0a1a;
    --night-3:    #101030;
    --panel:      rgba(16, 14, 42, 0.72);
    --panel-line: rgba(160, 140, 255, 0.18);

    /* Accents */
    --gold:       #ffd070;
    --gold-soft:  #fff0c0;
    --cyan:       #55e6ff;
    --violet:     #9c78ff;
    --mint:       #6ff2ad;
    --rose:       #ff6e8f;
    --amber:      #ffb85b;

    /* Textes */
    --ink:        #f4f0ff;
    --ink-2:      #c3b9dd;
    --ink-3:      #8d84ab;

    --maxw: 1220px;
    --r: 18px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--night);
    color: var(--ink);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Halo cristallin global, fixe derriere tout le contenu */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 800px at 12% -5%,  rgba(85, 230, 255, .13), transparent 60%),
        radial-gradient(1000px 700px at 88% 15%,  rgba(156, 120, 255, .12), transparent 60%),
        radial-gradient(900px  700px at 50% 105%, rgba(255, 208, 112, .08), transparent 60%),
        var(--night);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: 21px; font-weight: 700; }
p  { margin: 0 0 1em; }

::selection { background: rgba(255, 208, 112, .32); color: #fff; }

/* Barre de defilement discrete */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #06051a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--violet), var(--cyan));
    border-radius: 9px;
    border: 3px solid #06051a;
}

/* ============================ LUCIOLES / CURSEUR ========================= */
#fireflies {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.cursor-glow {
    position: fixed;
    width: 420px; height: 420px;
    margin: -210px 0 0 -210px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity .5s;
    background: radial-gradient(circle, rgba(120, 190, 255, .10), transparent 65%);
    mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* ================================ BOUTONS =============================== */
.btn {
    --bg: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;          /* garde le reflet a l'interieur du bouton */
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 9px 17px; font-size: 14px; }

.btn-steam {
    background: linear-gradient(135deg, var(--gold) 0%, #ffb347 100%);
    color: #241500;
    box-shadow: 0 8px 30px -8px rgba(255, 190, 90, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffbe4d); color: #241500; }

.btn-ghost {
    background: rgba(255, 255, 255, .05);
    color: var(--ink);
    border: 1px solid rgba(180, 165, 255, .3);
    backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-3px); }
.btn-steam:hover, .btn-gold:hover { box-shadow: 0 16px 46px -10px rgba(255, 190, 90, .8); filter: brightness(1.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); border-color: rgba(200, 190, 255, .55); }
.btn:active { transform: translateY(-1px); }

/* Reflet qui balaie le bouton doré */
.btn-steam::after, .btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 46%, transparent 62%);
    transform: translateX(-120%);
    z-index: -1;
}
.btn-steam:hover::after, .btn-gold:hover::after {
    animation: sheen 1s var(--ease);
}
@keyframes sheen { to { transform: translateX(120%); } }

/* ============================== NAVIGATION ============================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 16px clamp(18px, 4vw, 46px);
    transition: background .35s, backdrop-filter .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(7, 6, 22, .84);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(160, 140, 255, .16), 0 18px 40px -28px #000;
}

.nav-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav-icon { width: 36px; height: 36px; border-radius: 10px; filter: drop-shadow(0 3px 10px rgba(85, 230, 255, .4)); }
.nav-name { font-weight: 900; letter-spacing: .06em; font-size: 15px; }
.nav-name em { font-style: normal; color: var(--gold); font-weight: 400; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    position: relative;
    font-size: 15px;
    color: var(--ink-2);
    padding: 4px 0;
    transition: color .25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 2px; width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
    display: flex;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(180, 165, 255, .18);
}
.lang-switch button {
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: .25s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-on {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #08061c;
}

.nav-burger { display: none; }

/* ================================= HERO ================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 120px 22px 90px;
    text-align: center;
}
.hero-bg { position: absolute; inset: -8% 0 -8%; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(80% 60% at 50% 42%, rgba(7, 6, 26, .25), rgba(7, 6, 26, .8) 78%),
        linear-gradient(to bottom, rgba(7, 6, 26, .78) 0%, rgba(7, 6, 26, .25) 34%, rgba(7, 6, 26, .9) 88%, var(--night) 100%);
}

.hero-inner { position: relative; z-index: 3; max-width: 900px; }

.hero-logo {
    width: min(620px, 86vw);
    margin: 0 auto 26px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .8)) drop-shadow(0 0 60px rgba(255, 208, 112, .28));
    animation: logoIn 1.3s var(--ease) both, logoFloat 7s ease-in-out 1.3s infinite;
}
@keyframes logoIn {
    from { opacity: 0; transform: translateY(28px) scale(.94); filter: blur(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes logoFloat {
    50% { transform: translateY(-11px); }
}

.hero-tagline {
    font-size: clamp(19px, 2.6vw, 27px);
    font-weight: 600;
    color: var(--gold-soft);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
    margin-bottom: 14px;
    animation: fadeUp .9s var(--ease) .35s both;
}
.hero-sub {
    max-width: 660px;
    margin: 0 auto 34px;
    color: var(--ink-2);
    text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
    animation: fadeUp .9s var(--ease) .5s both;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .9s var(--ease) .65s both;
}
.hero-note {
    margin-top: 26px;
    font-size: 14px;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    animation: fadeUp .9s var(--ease) .8s both;
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(111, 242, 173, .7);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 12px rgba(111, 242, 173, 0); }
    100% { box-shadow: 0 0 0 0   rgba(111, 242, 173, 0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* Cristaux flottants du hero */
.hero-crystals { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hc {
    position: absolute;
    left: var(--x); top: var(--y);
    width: 16px; height: 26px;
    background: var(--c);
    clip-path: polygon(50% 0, 100% 34%, 78% 100%, 22% 100%, 0 34%);
    opacity: .55;
    filter: drop-shadow(0 0 14px var(--c)) drop-shadow(0 0 30px var(--c));
    animation: hcFloat 9s ease-in-out infinite;
    animation-delay: var(--d);
}
.hc:nth-child(2n) { width: 11px; height: 18px; opacity: .4; }
@keyframes hcFloat {
    0%, 100% { transform: translateY(0)     rotate(-6deg); opacity: .3; }
    50%      { transform: translateY(-32px) rotate(8deg);  opacity: .7; }
}

.hero-scroll {
    position: absolute;
    left: 50%; bottom: 72px;               /* au-dessus du bandeau de chiffres qui chevauche le hero */
    transform: translateX(-50%);
    z-index: 4;
    width: 26px; height: 42px;
    border: 2px solid rgba(200, 190, 255, .4);
    border-radius: 14px;
}
.hero-scroll span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--cyan);
    animation: scrollDot 1.9s infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}

/* ============================== CHIFFRES ================================ */
.stats {
    max-width: var(--maxw);
    margin: -46px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0 22px;
}
.stat {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-line);
    padding: 26px 14px;
    text-align: center;
}
.stat:first-child { border-radius: var(--r) 0 0 var(--r); }
.stat:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.stat b {
    display: block;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* =============================== SECTIONS =============================== */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(70px, 9vw, 118px) 22px;
    position: relative;
}
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 62px); text-align: center; }
.section-lead { color: var(--ink-2); font-size: 18px; margin-top: 16px; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(85, 230, 255, .09);
    border: 1px solid rgba(85, 230, 255, .24);
}

/* Apparitions au defilement */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-logo, .hero-tagline, .hero-sub, .hero-cta, .hero-note { animation: none; opacity: 1; }
}

/* ============================== TRAILER ================================= */
.trailer-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--panel-line);
    box-shadow: 0 40px 90px -40px #000, 0 0 90px -30px rgba(120, 100, 255, .5);
    cursor: pointer;
}
.trailer-poster, .trailer-video, .trailer-embed { display: block; width: 100%; height: 100%; object-fit: cover; background: #07061a; border: 0; }
.trailer-embed { position: absolute; inset: 0; }
.trailer-poster { filter: brightness(.72); transition: .6s var(--ease); cursor: pointer; }
.trailer-frame.playing .trailer-play, .trailer-frame.playing .trailer-poster { opacity: 0; pointer-events: none; }
.trailer-frame.playing { cursor: default; }
.trailer-frame:hover .trailer-poster { filter: brightness(.85); transform: scale(1.03); }

.trailer-play {
    transition: opacity .3s, transform .3s var(--ease);
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: #1a1000;
    background: linear-gradient(135deg, var(--gold), #ffb347);
    box-shadow: 0 0 0 0 rgba(255, 208, 112, .5), 0 14px 40px -10px rgba(255, 190, 90, .7);
    cursor: pointer;
    animation: playPulse 2.6s infinite;
    transition: transform .3s var(--ease);
}
.trailer-frame:hover .trailer-play { transform: translate(-50%, -50%) scale(1.1); }
@keyframes playPulse {
    70%  { box-shadow: 0 0 0 26px rgba(255, 208, 112, 0), 0 14px 40px -10px rgba(255, 190, 90, .7); }
    100% { box-shadow: 0 0 0 0    rgba(255, 208, 112, 0), 0 14px 40px -10px rgba(255, 190, 90, .7); }
}

/* Pastille « element provisoire » */
.ph-badge {
    position: absolute;
    right: 14px; bottom: 14px;
    z-index: 4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffd8e2;
    background: rgba(255, 110, 143, .16);
    border: 1px dashed rgba(255, 110, 143, .55);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.ph-badge.inline { position: static; display: inline-block; font-style: normal; }

/* ============================== PILIERS ================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature {
    --accent: var(--cyan);
    position: relative;
    padding: 32px 28px 30px;
    border-radius: var(--r);
    background: linear-gradient(160deg, rgba(22, 20, 52, .8), rgba(12, 10, 32, .75));
    border: 1px solid var(--panel-line);
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.feature::before {
    content: '';
    position: absolute;
    inset: -1px -1px auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .5;
    transition: opacity .4s;
}
.feature::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    right: -80px; top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
    opacity: 0;
    transition: opacity .5s;
}
.feature:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 30px 60px -34px #000, 0 0 50px -22px color-mix(in srgb, var(--accent) 60%, transparent);
}
.feature:hover::before { opacity: 1; }
.feature:hover::after  { opacity: 1; }

.feature-icon {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature:hover .feature-icon {
    transform: rotate(-7deg) scale(1.08);
    box-shadow: 0 0 26px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.feature h3 { margin-bottom: 9px; }
.feature p  { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* =============================== MONDES ================================= */
.worlds-section { max-width: 1340px; }

.worlds-map {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid var(--panel-line);
    box-shadow: 0 40px 90px -46px #000;
}
.worlds-map img, .worlds-video { display: block; width: 100%; max-height: 480px; object-fit: cover; object-position: center 42%; background: #07061a; }
.worlds-map-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 6, 26, .55), transparent 40%, rgba(7, 6, 26, .92));
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}
.world {
    position: relative;
    padding: 20px 20px 22px;
    border-radius: 15px;
    background: rgba(15, 13, 40, .66);
    border: 1px solid var(--panel-line);
    overflow: hidden;
    transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.world::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--wc, var(--cyan));
    box-shadow: 0 0 18px var(--wc, var(--cyan));
}
.world:hover {
    transform: translateY(-5px);
    background: rgba(24, 20, 60, .8);
    border-color: color-mix(in srgb, var(--wc) 40%, transparent);
}
.world-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--wc);
    opacity: .85;
}
.world h3 { font-size: 18px; margin: 5px 0 7px; }
.world p  { margin: 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.world-tag {
    display: inline-block;
    margin-top: 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--ink-3);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}
.world.is-demo .world-tag {
    color: #05210f;
    background: linear-gradient(135deg, var(--mint), #4fd8b0);
    border-color: transparent;
}
.world.is-locked { opacity: .68; }
.world.is-locked:hover { opacity: 1; }

/* ============================== RACINES ================================= */
.roots-section {
    position: relative;
    max-width: none;
    padding-left: 0; padding-right: 0;
    overflow: hidden;
}
.roots-bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.roots-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.48) saturate(1.15); }
.roots-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--night) 0%, transparent 18%, transparent 82%, var(--night) 100%),
        linear-gradient(to right, rgba(7, 6, 26, .96) 0%, rgba(7, 6, 26, .7) 45%, rgba(7, 6, 26, .35) 100%);
}
.roots-inner {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}
.roots-text p { color: var(--ink-2); }
.roots-text h2 { margin-bottom: 18px; }

.roots-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.roots-list li { display: flex; flex-direction: column; }
.roots-list b {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.roots-list span { font-size: 13px; color: var(--ink-3); max-width: 150px; margin-top: 4px; }

.roots-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(180, 160, 255, .28);
    box-shadow: 0 40px 90px -40px #000, 0 0 80px -30px rgba(120, 100, 255, .55);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform .8s var(--ease);
}
.roots-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(0) scale(1.02); }
.roots-frame img { width: 100%; }

/* =============================== GALERIE ================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.shot {
    position: relative;
    margin: 0;
    grid-column: span 2;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--panel-line);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.shot.wide { grid-column: span 4; aspect-ratio: 21 / 8; }
.shot img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.9) brightness(.86);
    transition: transform .8s var(--ease), filter .5s;
}
.shot:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 230, 255, .5);
    box-shadow: 0 34px 70px -36px #000, 0 0 60px -26px rgba(85, 230, 255, .6);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1.08) brightness(1); }
.shot figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 42px 18px 16px;
    font-size: 14.5px;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(6, 5, 22, .93));
    z-index: 3;
}

/* ================================ STEAM ================================= */
.steam-section { max-width: 1120px; }
.steam-card {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
    padding: clamp(30px, 4vw, 52px);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(28, 22, 66, .9), rgba(11, 9, 30, .92));
    border: 1px solid rgba(180, 160, 255, .26);
    box-shadow: 0 50px 110px -50px #000;
}
.steam-glow {
    position: absolute;
    width: 520px; height: 520px;
    left: -140px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 208, 112, .22), transparent 65%);
    animation: glowDrift 12s ease-in-out infinite;
}
@keyframes glowDrift {
    50% { transform: translate(60px, 50px) scale(1.15); }
}
.steam-kira {
    position: relative;
    z-index: 2;
    width: 100%;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 50px rgba(255, 208, 112, .3));
    animation: kiraFloat 6s ease-in-out infinite;
}
@keyframes kiraFloat { 50% { transform: translateY(-14px); } }
.steam-body { position: relative; z-index: 2; }
.steam-body h2 { margin-bottom: 14px; }
.steam-body p  { color: var(--ink-2); max-width: 520px; }
.steam-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.steam-specs {
    list-style: none;
    margin: 30px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(180, 160, 255, .18);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px;
}
.steam-specs li { display: flex; flex-direction: column; gap: 3px; }
.steam-specs span {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.steam-specs b { font-size: 15px; color: var(--gold-soft); font-weight: 600; }

/* ============================= COMMUNAUTE =============================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.social {
    --brand: var(--cyan);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 28px 24px;
    border-radius: var(--r);
    background: rgba(15, 13, 40, .68);
    border: 1px solid var(--panel-line);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.social svg { color: var(--brand); margin-bottom: 12px; transition: transform .4s var(--ease); }
.social b { font-size: 18px; }
.social span { font-size: 14px; color: var(--ink-3); }
.social .ph-badge { margin-top: 12px; }
.social::after {
    content: '';
    position: absolute;
    inset: auto -40% -70% -40%;
    height: 180px;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity .45s;
}
.social:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    box-shadow: 0 30px 60px -34px #000, 0 0 46px -20px var(--brand);
}
.social:hover::after { opacity: 1; }
.social:hover svg { transform: scale(1.14) rotate(-6deg); }

.newsletter {
    margin-top: 22px;
    padding: 30px clamp(22px, 4vw, 40px);
    border-radius: var(--r);
    background: linear-gradient(135deg, rgba(85, 230, 255, .09), rgba(156, 120, 255, .09));
    border: 1px solid rgba(150, 190, 255, .22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.newsletter h3 { margin-bottom: 5px; }
.newsletter p  { margin: 0; color: var(--ink-2); font-size: 15px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input {
    min-width: 240px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(180, 165, 255, .3);
    background: rgba(6, 5, 22, .6);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
}
.news-form input::placeholder { color: var(--ink-3); }
.news-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(85, 230, 255, .14);
}

/* =============================== FOOTER ================================= */
.footer {
    border-top: 1px solid rgba(160, 140, 255, .16);
    background: linear-gradient(to bottom, transparent, rgba(4, 3, 16, .9));
    padding: 52px 22px 40px;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 11px; }
.footer-brand b { display: block; font-weight: 900; letter-spacing: .06em; font-size: 15px; }
.footer-brand b em { font-style: normal; color: var(--gold); font-weight: 400; }
.footer-brand span { font-size: 13px; color: var(--ink-3); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-3); transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
    width: 100%;
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 13px;
    color: var(--ink-3);
    text-align: center;
}
.footer-legal .sep { margin: 0 8px; opacity: .5; }

/* =============================== LIGHTBOX =============================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 30px;
    background: rgba(4, 3, 16, .93);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 86vh;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 50px 120px -40px #000;
    transform: scale(.94);
    transition: transform .4s var(--ease);
}
.lightbox.on img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 22px; right: 26px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.lightbox-cap {
    position: absolute;
    left: 0; right: 0; bottom: 26px;
    text-align: center;
    color: var(--ink-2);
    font-size: 14px;
}

/* ================================ TOAST ================================= */
.toast {
    position: fixed;
    left: 50%; bottom: 30px;
    z-index: 300;
    transform: translate(-50%, 26px);
    padding: 13px 24px;
    border-radius: 999px;
    background: rgba(20, 16, 50, .96);
    border: 1px solid rgba(180, 160, 255, .35);
    box-shadow: 0 20px 50px -20px #000;
    font-size: 14.5px;
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =============================== HISTOIRE =============================== */
.story-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
}
/* Fil lumineux qui relie les trois chapitres */
.story-track::before {
    content: '';
    position: absolute;
    left: 8%; right: 8%; top: 96px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), var(--gold), transparent);
    opacity: .45;
}
.story-card {
    position: relative;
    padding: 0 8px;
}
.story-img {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--panel-line);
    box-shadow: 0 30px 60px -36px #000;
    margin-bottom: 22px;
}
.story-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.9) brightness(.88);
    transition: transform 1s var(--ease), filter .5s;
}
.story-card:hover .story-img img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.story-num {
    position: absolute;
    left: 14px; top: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(7, 6, 26, .7);
    border: 1px solid rgba(255, 208, 112, .35);
    backdrop-filter: blur(6px);
}
.story-card h3 { margin-bottom: 8px; }
.story-card p  { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ============================= PERSONNAGES ============================== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.char {
    --cc: var(--cyan);
    position: relative;
    padding: 0 22px 26px;
    border-radius: var(--r);
    background: linear-gradient(180deg, rgba(20, 17, 50, .85), rgba(11, 9, 30, .8));
    border: 1px solid var(--panel-line);
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.char:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--cc) 50%, transparent);
    box-shadow: 0 34px 70px -36px #000, 0 0 60px -24px var(--cc);
}
.char-portrait {
    position: relative;
    aspect-ratio: 1;
    margin: 0 -22px 18px;
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--cc) 26%, transparent), transparent 70%),
        #07061a;
}
.char-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(14, 11, 38, .95));
}
.char-portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}
.char:hover .char-portrait img { transform: scale(1.07); }
.char-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cc);
    margin-bottom: 6px;
}
.char h3 { font-size: 20px; margin-bottom: 8px; }
.char p  { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

/* ================================ UNIVERS =============================== */
.lore-hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 140px 22px 70px;
    text-align: center;
}
.lore-hero-bg { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.lore-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.05); }
.lore-hero-veil {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(7,6,26,.85) 0%, rgba(7,6,26,.35) 45%, var(--night) 100%);
}
.lore-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.lore-hero h1 { font-size: clamp(38px, 6vw, 72px); margin: 8px 0 18px; text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.lore-lead { font-size: 19px; color: var(--ink-2); text-shadow: 0 2px 14px rgba(0,0,0,.9); max-width: 680px; margin: 0 auto 30px; }
.lore-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lore-toc a {
    font-size: 13px; font-weight: 600; letter-spacing: .04em;
    padding: 8px 15px; border-radius: 999px;
    color: var(--ink);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(180,165,255,.25);
    backdrop-filter: blur(8px);
    transition: .25s;
}
.lore-toc a:hover { background: rgba(85,230,255,.14); border-color: rgba(85,230,255,.5); transform: translateY(-2px); }

.lore-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.lore-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.lore-text h2 { margin-bottom: 18px; }
.lore-text p { color: var(--ink-2); }
.lore-quote {
    margin: 26px 0 0; padding: 18px 22px;
    border-left: 3px solid var(--gold);
    background: rgba(255,208,112,.06);
    border-radius: 0 14px 14px 0;
    font-size: 17px; color: var(--gold-soft); font-style: italic;
}
.lore-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--ink-3); }
.lore-frame {
    border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(180,160,255,.28);
    box-shadow: 0 40px 90px -40px #000, 0 0 80px -30px rgba(120,100,255,.5);
}
.lore-frame img { width: 100%; }
.lore-cap { margin: 12px 4px 0; font-size: 13.5px; color: var(--ink-3); }

.crystal-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.crystal { flex: 0 1 calc((100% - 4 * 14px) / 5); }
.crystal {
    --c: var(--cyan);
    position: relative;
    padding: 26px 18px 20px;
    border-radius: 16px;
    background: rgba(15,13,40,.66);
    border: 1px solid var(--panel-line);
    text-align: center;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.crystal:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 50px -18px var(--c); }
.crystal i {
    display: block; width: 22px; height: 34px; margin: 0 auto 14px;
    background: var(--c);
    clip-path: polygon(50% 0, 100% 34%, 78% 100%, 22% 100%, 0 34%);
    filter: drop-shadow(0 0 12px var(--c)) drop-shadow(0 0 24px var(--c));
    animation: crystalBreath 4s ease-in-out infinite;
}
.crystal:nth-child(2n) i { animation-delay: -1.3s; }
.crystal:nth-child(3n) i { animation-delay: -2.6s; }
@keyframes crystalBreath { 50% { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 0 18px var(--c)) drop-shadow(0 0 36px var(--c)); } }
.crystal b { display: block; font-size: 15px; margin-bottom: 4px; }
.crystal span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.crystal.heart { flex-basis: 100%; padding: 30px; background: linear-gradient(135deg, rgba(255,240,197,.08), rgba(156,120,255,.08)); border-color: rgba(255,208,112,.35); }
.crystal.heart i { width: 30px; height: 46px; }
.crystal.heart b { font-size: 19px; }

.lore-note {
    margin-top: 40px; padding: 28px clamp(22px, 4vw, 40px);
    border-radius: var(--r);
    background: linear-gradient(135deg, rgba(255,208,112,.07), rgba(85,230,255,.06));
    border: 1px solid rgba(255,208,112,.22);
}
.lore-note h3 { margin-bottom: 8px; color: var(--gold-soft); }
.lore-note p { margin: 0; color: var(--ink-2); }

.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 30px; max-width: 760px; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(to bottom, var(--mint), var(--cyan) 40%, var(--violet) 65%, var(--rose) 82%, var(--gold));
    opacity: .6;
}
.timeline li { position: relative; padding: 0 0 30px 22px; }
.timeline li::before {
    content: ''; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 16px var(--cyan); border: 3px solid var(--night);
}
.timeline li.dark::before { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.timeline li.now::before { background: var(--gold); box-shadow: 0 0 22px var(--gold); animation: pulseDot 2.2s infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 10px rgba(255,208,112,0), 0 0 22px var(--gold); } }
.timeline b { display: block; font-size: 19px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.cast-list { display: flex; flex-direction: column; gap: 22px; }
.cast {
    --cc: var(--cyan);
    display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center;
    padding: 26px; border-radius: 22px;
    background: linear-gradient(160deg, rgba(20,17,50,.85), rgba(11,9,30,.8));
    border: 1px solid var(--panel-line);
    transition: border-color .4s, box-shadow .4s;
}
.cast:hover { border-color: color-mix(in srgb, var(--cc) 45%, transparent); box-shadow: 0 30px 70px -40px #000, 0 0 60px -28px var(--cc); }
.cast.rev { grid-template-columns: 1fr 300px; }
.cast.rev .cast-portrait { order: 2; }
.cast-portrait {
    position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
    background: radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--cc) 28%, transparent), transparent 70%), #07061a;
    display: grid; place-items: center;
}
.cast-portrait img { width: 100%; height: 100%; object-fit: cover; }
.cast-portrait svg { display: none; width: 46%; color: var(--cc); filter: drop-shadow(0 0 18px var(--cc)); }
.cast-portrait.cast-mecha img { display: none; }
.cast-portrait.cast-mecha svg, .cast-portrait.empty svg { display: block; }
.cast-portrait.empty::after { content: '?'; font-size: 90px; font-weight: 900; color: var(--cc); opacity: .5; }
.cast-body h3 { font-size: 28px; margin: 4px 0 12px; }
.cast-body p { color: var(--ink-2); font-size: 15.5px; }
.cast-facts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(180,160,255,.16); display: flex; gap: 28px; flex-wrap: wrap; }
.cast-facts li { display: flex; flex-direction: column; gap: 2px; }
.cast-facts span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cast-facts b { font-size: 14px; color: var(--gold-soft); font-weight: 600; }

.guardian-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.guardian {
    --gc: var(--cyan);
    position: relative; padding: 18px 16px 16px; border-radius: 14px;
    background: rgba(15,13,40,.66); border: 1px solid var(--panel-line); overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s;
}
.guardian::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gc); box-shadow: 0 0 16px var(--gc); }
.guardian:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gc) 45%, transparent); }
.guardian span { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gc); }
.guardian b { display: block; font-size: 15px; margin: 4px 0 6px; }
.guardian em { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.guardian.soon { opacity: .55; }
.guardian.soon b { color: var(--ink-3); }
.guardian.soon em { font-size: 22px; font-weight: 900; color: var(--gc); opacity: .6; }
.lore-side { margin: 22px auto 0; max-width: 640px; text-align: center; color: var(--ink-3); font-size: 15px; }

.region-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; counter-reset: r; }
.region-list li {
    counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: baseline;
    padding: 14px 16px; border-radius: 12px; background: rgba(15,13,40,.5); border: 1px solid rgba(160,140,255,.12);
}
.region-list li::before { content: counter(r, decimal-leading-zero); grid-row: span 2; font-size: 22px; font-weight: 900; color: var(--gold); opacity: .8; }
.region-list b { font-size: 16px; }
.region-list span { font-size: 14px; color: var(--ink-3); }

.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sys {
    --accent: var(--cyan);
    padding: 26px 24px; border-radius: var(--r);
    background: linear-gradient(160deg, rgba(22,20,52,.8), rgba(12,10,32,.75));
    border: 1px solid var(--panel-line); border-top: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.sys:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px #000, 0 0 50px -24px var(--accent); }
.sys h3 { color: var(--accent); font-size: 18px; margin-bottom: 8px; }
.sys p { margin: 0; color: var(--ink-2); font-size: 15px; }
.lore-cta { margin-top: 50px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lore-cta p { font-size: 22px; font-weight: 600; color: var(--gold-soft); margin: 0 0 8px; }
.lore-cta .btn + .btn { margin-top: -4px; }

/* Bloc contact de l'accueil */
.contact-line { margin: 18px auto 0; text-align: center; color: var(--ink-3); font-size: 15px; }
.contact-line a { color: var(--gold); border-bottom: 1px solid rgba(255,208,112,.35); transition: .25s; }
.contact-line a:hover { color: #fff; border-color: #fff; }
.story-more { text-align: center; margin-top: 36px; }

@media (max-width: 980px) {
    .lore-two { grid-template-columns: 1fr; }
    .crystal { flex-basis: calc((100% - 2 * 14px) / 3); }
    .guardian-grid { grid-template-columns: repeat(3, 1fr); }
    .sys-grid { grid-template-columns: repeat(2, 1fr); }
    .cast, .cast.rev { grid-template-columns: 1fr; }
    .cast-portrait { max-width: 320px; margin: 0 auto; width: 100%; }
    .cast.rev .cast-portrait { order: 0; }
}
@media (max-width: 640px) {
    .crystal { flex-basis: calc((100% - 14px) / 2); }
    .guardian-grid { grid-template-columns: 1fr 1fr; }
    .sys-grid { grid-template-columns: 1fr; }
    .region-list { grid-template-columns: 1fr; }
    .lore-hero { min-height: 0; padding-top: 120px; }
}

/* =============================== RESPONSIVE ============================= */
@media (max-width: 980px) {
    .roots-inner { grid-template-columns: 1fr; }
    .roots-frame { transform: none; }
    .steam-card { grid-template-columns: 1fr; text-align: center; }
    .steam-kira { width: 230px; margin: 0 auto; }
    .steam-body p { margin-inline: auto; }
    .steam-cta { justify-content: center; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .shot, .shot.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
    .char-grid { grid-template-columns: repeat(2, 1fr); }
    .story-track { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .story-track::before { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px; height: 40px;
        padding: 0 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-burger span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--ink);
        transition: .3s var(--ease);
    }
    .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
    .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav { flex-wrap: wrap; gap: 10px; }
    .nav-right { gap: 8px; }
    .lang-switch button { padding: 5px 8px; }
    .nav-links {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s var(--ease), padding .45s;
    }
    .nav.open { background: rgba(7, 6, 22, .97); backdrop-filter: blur(16px); }
    .nav.open .nav-links { max-height: 320px; padding: 14px 0 8px; }
    .nav-links a { padding: 11px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .nav-right .btn-steam { display: none; }

    .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
    .stat { border-radius: 0 !important; }
    .stat:nth-child(1) { border-radius: var(--r) 0 0 0 !important; }
    .stat:nth-child(2) { border-radius: 0 var(--r) 0 0 !important; }
    .stat:nth-child(3) { border-radius: 0 0 0 var(--r) !important; }
    .stat:nth-child(4) { border-radius: 0 0 var(--r) 0 !important; }

    .gallery { grid-template-columns: 1fr; }
    .shot, .shot.wide { grid-column: span 1; }
    .char-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .newsletter { flex-direction: column; align-items: stretch; text-align: center; }
    .news-form { justify-content: center; }
    .news-form input { min-width: 0; flex: 1 1 200px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .roots-list { gap: 22px; justify-content: space-between; }
    .trailer-play { width: 68px; height: 68px; }
    .trailer-play svg { width: 26px; height: 26px; }
}
