/* TheJOJOLands : la mise en page et toutes les animations */
:root {
    --navy: #000080;
    --dark-blue: #000033;
    --purple: #800080;
    --green: #00FA00;
    --black: #050505;
    --paper: #f1e8d4;
    --ink: #141414;
    --gogo: var(--ink);
    --kana-font: 'Dela Gothic One', 'Archivo Black', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bloque la sélection sur tout le site */
html, body {
    -webkit-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    height: 100vh;
    height: 100svh;
    overflow-y: scroll;
}

body.gated, body.locked {
    overflow: hidden;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

button { font: inherit; color: inherit; cursor: pointer; }

.btn {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 26px;
    background: #fff;
    border: 3px solid var(--ink);
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}

.btn-main {
    background: #f5c518;
}

.btn:not(.btn-main):hover {
    background: var(--ink);
    color: #fff;
}

/* ---------- En-tête, navigation, pied de page ---------- */
.topbar {
    position: fixed;
    top: 16px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.topbar img {
    width: 50px;
    height: 50px;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    object-fit: cover;
    background: #fff;
}

.brand, .official {
    background: var(--ink);
    color: #fff;
    padding: 4px 10px;
}

.brand {
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand em { font-style: normal; color: #f5c518; }

.official { font-size: 0.8rem; }

.official a { color: #f5c518; }

.tools {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.tool {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 12px;
    white-space: nowrap;
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.tool:hover { background: var(--ink); color: #fff; }
.tool b { color: #d62828; }

.cast {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cast a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cast i {
    font-style: normal;
    order: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--ink);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cast span {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s, transform 0.2s;
    background: #fff;
    padding: 2px 6px;
    white-space: nowrap;
}

.cast a:hover span, .cast a.current span {
    opacity: 1;
    transform: none;
}

.cast a.current i {
    background: var(--accent-now, var(--ink));
    color: #fff;
    transform: rotate(45deg);
}

footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    z-index: 100;
}

footer a { color: #f5c518; text-decoration: underline; }
footer .sep { opacity: 0.5; margin: 0 8px; }

/* ---------- Sections des personnages ---------- */
section {
    height: 100vh;
    height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    background-color: var(--bg);
}

/* papier crème et un aplat franc par personnage, comme une page couleur de manga */
section { --bg: var(--paper); }
#jodio    { --accent: #2551c9; }
#dragona  { --accent: #e0457b; }
#paco     { --accent: #7fae2e; }
#usagi    { --accent: #1fa5a0; }
#charming { --accent: #d9902a; }

/* lignes de vitesse qui tournent lentement derrière le personnage */
.lines {
    position: absolute;
    inset: -60%;
    background: repeating-conic-gradient(from 0deg, rgba(20, 20, 20, 0.07) 0 0.6deg, transparent 0.6deg 5deg);
    animation: spin 120s linear infinite;
    opacity: 0;
    transition: opacity 1s;
    z-index: 0;
}

section.active .lines { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

/* trame de points façon manga */
.char::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(20, 20, 20, 0.22) 1.3px, transparent 1.7px);
    background-size: 9px 9px;
    -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}

.char.reversed::after {
    -webkit-mask-image: linear-gradient(-100deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(-100deg, transparent 35%, #000 100%);
}

/* grand nom en katakana, vertical, en fond */
.kana {
    position: absolute;
    top: 0;
    left: 3%;
    z-index: 1;
    writing-mode: vertical-rl;
    font-family: var(--kana-font);
    font-size: 13vh;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(20, 20, 20, 0.14);
    transform: translateY(-30%);
    opacity: 0;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s;
}

.reversed .kana { left: auto; right: 6%; }

section.active .kana { transform: translateY(4%); opacity: 1; }

/* Effet de Bande "Smash Bros" */
.smash-stripe {
    position: absolute;
    width: 150%;
    height: 300px;
    transform: rotate(-10deg) translateX(-150%);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--accent);
    background-image: radial-gradient(rgba(20, 20, 20, 0.2) 1.5px, transparent 2px);
    background-size: 10px 10px;
    border-top: 6px solid var(--ink);
    border-bottom: 6px solid var(--ink);
}

.stripe-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
}

.stripe-track span {
    font-family: 'Archivo Black', sans-serif;
    font-size: 8rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
}

.reversed .stripe-track { animation-direction: reverse; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Grand Stand (Arrière-plan, ex: November Rain) */
.stand-img {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 95%;
    z-index: 2;
    transform: translateX(150%);
    transition: transform 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(6px 6px 0 rgba(20, 20, 20, 0.25));
    opacity: 0.85;
}

/* Personnage (Premier plan) */
.character-img {
    position: absolute;
    bottom: -20px;
    right: 20%;
    height: 70%;
    z-index: 3;
    transform: translateX(150%);
    transition: transform 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(8px 6px 0 var(--ink));
}

/* Petits Stands */
.small-stand-img {
    position: absolute;
    bottom: 15%;
    right: 8%;
    height: 35%;
    z-index: 4;
    transform: translateX(150%);
    transition: transform 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(5px 5px 0 var(--ink));
}

section.active .small-stand-img { animation: hover-stand 3s ease-in-out 1.2s infinite; }

@keyframes hover-stand {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

/* Infos Personnage */
.info-box {
    position: absolute;
    left: 10%;
    z-index: 20;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s 0.5s ease, transform 0.6s 0.5s ease;
    max-width: 430px;
}

.info-box .file {
    display: inline-block;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    padding: 4px 10px;
    background: var(--ink);
    color: #fff;
    margin-bottom: 14px;
}

.info-box .file span { color: rgba(255, 255, 255, 0.5); }

.info-box h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 18px;
    color: var(--ink);
    text-shadow: 6px 6px 0 var(--accent);
    position: relative;
}

.info-box .stand {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.info-box .stand b {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    padding: 3px 8px;
    margin-right: 6px;
    background: var(--accent);
    color: #fff;
    vertical-align: 3px;
}

.info-box .stand span {
    display: block;
    font-family: var(--kana-font);
    font-size: 0.8rem;
    font-weight: normal;
    color: rgba(20, 20, 20, 0.55);
    margin-top: 4px;
}

/* bulle de texte façon case de manga */
.info-box .desc {
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 14px 18px;
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(-1.2deg);
}

.reversed .info-box .desc { transform: rotate(1.2deg); box-shadow: -7px 7px 0 var(--ink); }

/* « ゴゴゴ » menaçants */
.menacing {
    position: absolute;
    z-index: 5;
    display: flex;
    gap: 0.1em;
    font-family: var(--kana-font);
    font-size: clamp(34px, 5.5vw, 84px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s 1.1s;
}

.menacing.m-a { right: 36%; top: 16%; }
.menacing.m-b { left: 38%; top: 14%; }

section.active .menacing { opacity: 1; }

.menacing i {
    font-style: normal;
    color: var(--ink);
    -webkit-text-stroke: 6px #fff;
    paint-order: stroke fill;
    animation: gogo 1.1s ease-in-out infinite alternate;
}

.menacing i:nth-child(2) { animation-delay: -0.35s; margin-top: 0.5em; }
.menacing i:nth-child(3) { animation-delay: -0.7s; margin-top: 1em; }

@keyframes gogo {
    0%   { transform: translate(0, 0) scale(1) skewX(-6deg); }
    50%  { transform: translate(3px, -6px) scale(1.08) skewX(4deg); }
    100% { transform: translate(-3px, 2px) scale(0.96) skewX(-2deg); }
}

/* --- Style pour l'inversion (Reverse) --- */
section.reversed .smash-stripe {
    transform: rotate(10deg) translateX(150%);
}

section.active.reversed .smash-stripe {
    transform: rotate(10deg) translateX(10%);
}

section.reversed .character-img,
section.reversed .stand-img,
section.reversed .small-stand-img {
    right: auto;
    left: 5%;
    transform: translateX(-150%);
}

section.reversed .character-img { left: 15%; }

section.reversed .info-box {
    left: auto;
    right: 10%;
    text-align: right;
}

/* Animation Trigger */
section.active .smash-stripe { transform: rotate(-10deg) translateX(-10%); }
section.active .stand-img,
section.active .small-stand-img,
section.active .character-img { transform: translateX(0); }
section.active .info-box { opacity: 1; transform: translateY(0); }

/* ---------- Effets propres à chaque Stand ---------- */

/* Jodio : la pluie de November Rain */
.rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* Dragona : Smooth Operators déplace les lettres de son nom */
.letters { white-space: nowrap; }

.letters span {
    display: inline-block;
    transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0));
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    transition-delay: calc(var(--i) * 70ms);
}

.letters.assembled span {
    transform: none;
    opacity: 1;
}

/* Paco : il tombe du ciel et tout tremble */
#paco .character-img {
    transform: translateY(-140%);
    transition: transform 0.5s 0.25s cubic-bezier(0.55, 0, 1, 0.45);
}

#paco.active .character-img { transform: none; }

section.impact { animation: shake 0.5s steps(10); }

@keyframes shake {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-14px, 9px); }
    20%  { transform: translate(12px, -10px); }
    30%  { transform: translate(-10px, 6px); }
    40%  { transform: translate(9px, -5px); }
    50%  { transform: translate(-6px, 4px); }
    60%  { transform: translate(5px, -3px); }
    70%  { transform: translate(-3px, 2px); }
    100% { transform: translate(0, 0); }
}

.sfx {
    position: absolute;
    z-index: 6;
    font-family: var(--kana-font);
    font-size: clamp(60px, 11vw, 170px);
    line-height: 1;
    color: var(--accent);
    -webkit-text-stroke: 10px var(--ink);
    paint-order: stroke fill;
    text-shadow: 8px 8px 0 var(--ink);
    pointer-events: none;
    animation: slam 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes slam {
    0%   { transform: rotate(var(--rot, -12deg)) scale(3); opacity: 0; }
    100% { transform: rotate(var(--rot, -12deg)) scale(1); opacity: 1; }
}

.flash {
    position: absolute;
    inset: 0;
    z-index: 7;
    background: #fff;
    pointer-events: none;
    animation: flash 0.35s ease-out forwards;
}

@keyframes flash {
    from { opacity: 0.85; }
    to   { opacity: 0; }
}

.dust {
    position: absolute;
    z-index: 4;
    width: var(--s);
    height: var(--s);
    background: var(--ink);
    pointer-events: none;
}

/* Usagi : la Matte Kudasai se transforme, Usagi sort du nuage */
#usagi .character-img {
    transform: scale(0.2);
    transform-origin: 50% 100%;
    opacity: 0;
    transition: transform 0.6s 0.65s cubic-bezier(0.34, 1.7, 0.64, 1), opacity 0.1s 0.65s;
}

#usagi.active .character-img { transform: none; opacity: 1; }

.puff {
    position: absolute;
    z-index: 6;
    width: var(--s);
    height: var(--s);
    background: #fff;
    border: 3px solid #000;
    pointer-events: none;
}

/* Charming Man : Big Mouth Strikes Again, il se fond dans le décor */
#charming .character-img {
    transform: none;
    opacity: 0;
    transition: none;
}

#charming.active .character-img { opacity: 1; }

.camo {
    position: absolute;
    z-index: 4;
    display: grid;
    pointer-events: none;
}

.camo i {
    background: var(--c);
    animation: camo 0.5s steps(3) var(--d) forwards;
}

@keyframes camo {
    0%   { opacity: 1; }
    33%  { opacity: 1; background: #ff2020; }
    66%  { opacity: 1; background: #000; }
    100% { opacity: 0; }
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-shadow: none;
}

.glitch::before { color: #00ffff; mix-blend-mode: screen; animation: split 0.3s steps(2) infinite; }
.glitch::after  { color: #ff00ff; mix-blend-mode: screen; animation: split 0.25s steps(2) infinite reverse; }

@keyframes split {
    0%   { transform: translate(-5px, 0);    clip-path: inset(0 0 60% 0); }
    50%  { transform: translate(5px, 2px);   clip-path: inset(45% 0 10% 0); }
    100% { transform: translate(-3px, -2px); clip-path: inset(20% 0 40% 0); }
}

/* ---------- Section Finale "To Be Continued" ---------- */
#tbc-section {
    --bg: #a9c7c4;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.group-shot-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.group-member {
    position: absolute;
    bottom: -20px;
    height: 90%;
    filter: drop-shadow(6px 4px 0 var(--ink));
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
    opacity: 0;
    transform: translateY(100px);
}

.m-jodio    { z-index: 5; left: 10%; }
.m-dragona  { z-index: 4; left: 25%; }
.m-paco     { z-index: 3; left: 40%; }
.m-usagi    { z-index: 2; left: 55%; }
.m-charming { z-index: 1; left: 70%; }

#tbc-section.active .group-member { opacity: 1; transform: translateY(0); }
#tbc-section.active .m-jodio    { transition-delay: 0.1s; }
#tbc-section.active .m-dragona  { transition-delay: 0.2s; }
#tbc-section.active .m-paco     { transition-delay: 0.3s; }
#tbc-section.active .m-usagi    { transition-delay: 0.4s; }
#tbc-section.active .m-charming { transition-delay: 0.5s; }

/* l'image se fige en sépia, comme à la fin d'un épisode */
.sepia {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: #9b6a2f;
    mix-blend-mode: color;
    opacity: 0;
}

#tbc-section.frozen .sepia { opacity: 0.92; }

#tbc-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 51;
    pointer-events: none;
    box-shadow: inset 0 0 0 14px var(--ink);
    opacity: 0;
    transition: opacity 0.3s;
}

#tbc-section.frozen::after { opacity: 1; }

.tbc-arrow-final {
    position: absolute;
    bottom: 120px;
    left: 50px;
    z-index: 100;
    width: 600px;
    max-width: 80%;
    opacity: 0;
    transform: translateX(120vw);
}

#tbc-section.frozen .tbc-arrow-final {
    opacity: 1;
    transform: translateX(0);
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s, opacity 0.2s 0.35s;
}

.tbc-actions {
    position: absolute;
    top: 18%;
    left: 50%;
    z-index: 60;
    display: flex;
    gap: 14px;
    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s 1.6s, transform 0.4s 1.6s;
}

#tbc-section.frozen .tbc-actions {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* ---------- Écran titre ---------- */
.gate {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6vh;
    background: var(--paper);
    border: 14px solid var(--ink);
    overflow: hidden;
    transition: opacity 0.5s;
}

.gate.gone { opacity: 0; pointer-events: none; }

.gate-lines {
    position: absolute;
    inset: -60%;
    background: repeating-conic-gradient(from 0deg, rgba(20, 20, 20, 0.09) 0 0.6deg, transparent 0.6deg 4deg);
    animation: spin 60s linear infinite;
}

.gate-logo {
    position: relative;
    text-align: center;
    animation: gate-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-kana {
    display: block;
    font-family: var(--kana-font);
    font-size: clamp(22px, 4vw, 44px);
    color: var(--ink);
    letter-spacing: 0.3em;
    -webkit-text-stroke: 6px var(--paper);
    paint-order: stroke fill;
}

.gate h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(44px, 10vw, 150px);
    line-height: 0.95;
    color: #f5c518;
    -webkit-text-stroke: 4px var(--ink);
    paint-order: stroke fill;
    text-shadow: 8px 8px 0 var(--ink);
}

.gate-logo p {
    margin-top: 18px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: clamp(10px, 1.4vw, 14px);
    display: inline-block;
    padding: 4px 12px;
    background: var(--ink);
    color: #fff;
}

.gate-actions {
    position: relative;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: gate-in 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-hint {
    position: relative;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(20, 20, 20, 0.55);
}

@keyframes gate-in {
    from { opacity: 0; transform: translateY(30px) scale(1.06); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Passage d'un personnage à l'autre : couleurs inversées + bandeau ---------- */
.cut-burst {
    position: fixed;
    z-index: 9000;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    transform: rotate(45deg) scale(0);
    animation: burst 0.45s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes burst { to { transform: rotate(45deg) scale(260); } }

.cut-burst.out { animation: burst-out 0.35s ease-in forwards; }

@keyframes burst-out {
    from { transform: rotate(45deg) scale(260); }
    to   { transform: rotate(45deg) scale(0); }
}

.cut-band {
    position: fixed;
    left: -20%;
    right: -20%;
    top: 50%;
    z-index: 9001;
    height: 26vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    background: var(--accent, var(--ink));
    border-top: 10px solid var(--ink);
    border-bottom: 10px solid var(--ink);
    pointer-events: none;
    transform: translateY(-50%) rotate(-8deg) translateX(-120%);
    animation: band-in 0.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cut-band b {
    font-family: var(--kana-font);
    font-weight: normal;
    font-size: clamp(40px, 9vw, 130px);
    color: #fff;
    -webkit-text-stroke: 8px var(--ink);
    paint-order: stroke fill;
    white-space: nowrap;
}

.cut-band span {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(16px, 2.6vw, 34px);
    letter-spacing: 0.15em;
    color: #fff;
    background: var(--ink);
    padding: 4px 12px;
    white-space: nowrap;
}

@keyframes band-in { to { transform: translateY(-50%) rotate(-8deg) translateX(0); } }

.cut-band.out { animation: band-out 0.35s ease-in forwards; }

@keyframes band-out {
    from { transform: translateY(-50%) rotate(-8deg) translateX(0); }
    to   { transform: translateY(-50%) rotate(-8deg) translateX(120%); }
}

/* ---------- Rembobinage (VHS) ---------- */
.vhs {
    position: fixed;
    inset: 0;
    z-index: 9200;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
}

.vhs-label {
    position: absolute;
    top: 90px;
    left: 40px;
    font-family: 'Archivo Black', monospace;
    font-size: clamp(22px, 4vw, 48px);
    color: #fff;
    text-shadow: 3px 0 0 #ff00ff, -3px 0 0 #00ffff;
    animation: blink 0.5s steps(1) infinite;
}

.vhs-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 14vh;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25) 40%, rgba(255, 255, 255, 0.05) 60%, transparent);
    animation: track 0.7s linear infinite;
}

@keyframes track {
    from { top: 110%; }
    to   { top: -20%; }
}

@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Téléphone ---------- */
@media (max-width: 768px) {
    .official, .brand em, .cast span { display: none; }
    .topbar { left: 12px; right: 12px; top: 10px; }
    .topbar img { width: 40px; height: 40px; }
    .brand { font-size: 0.8rem; }
    .tool { padding: 6px 8px; font-size: 0.62rem; }

    .cast { right: 8px; gap: 4px; }
    .cast i { width: 24px; height: 24px; font-size: 0.6rem; }

    .info-box,
    section.reversed .info-box {
        left: 16px !important;
        right: 40px !important;
        top: auto;
        bottom: 60px;
        max-width: none;
        text-align: left;
    }

    .info-box h2 { font-size: 13vw; margin-bottom: 8px; }
    .info-box .file { margin-bottom: 8px; }
    .info-box .stand { font-size: 0.9rem; margin-bottom: 10px; }
    .info-box .desc { font-size: 0.82rem; padding: 10px 12px; }

    .character-img { height: 58%; right: 10%; bottom: 30%; }
    section.reversed .character-img { left: 10%; }
    .stand-img { height: 75%; bottom: 25%; }
    .small-stand-img,
    section.reversed .small-stand-img { height: 20%; bottom: auto; top: 14%; left: 4%; right: auto; }

    .kana { font-size: 9vh; }
    .menacing.m-a { right: 8%; top: 13%; }
    .menacing.m-b { left: auto; right: 8%; top: 13%; }
    .stripe-track span { font-size: 4.5rem; }
    .smash-stripe { height: 180px; }

    .group-shot-container { height: 60vh; }
    .group-member { height: 70%; }
    .m-jodio    { left: 0%; }
    .m-dragona  { left: 15%; }
    .m-paco     { left: 30%; }
    .m-usagi    { left: 45%; }
    .m-charming { left: 60%; }
    .tbc-arrow-final { width: 80%; bottom: 50px; left: 10%; }
    .tbc-actions { flex-direction: column; top: 16%; }

    footer { font-size: 0.68rem; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .lines, .gate-lines, .stripe-track, .menacing i { animation: none; }
}
