/* Cineco — thèmes de conversation. Tout bouge très lentement, par transformations douces (fluide sur téléphone). */
.thread { position: relative; }
.th-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: opacity .9s ease; }
.th-bg.out { opacity: 0; }
.th-bg.enter { animation: th-enter 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes th-enter { from { opacity: 0; transform: scale(1.06); filter: brightness(2.2) saturate(.4); } 40% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
.th-bg i, .th-bg b, .th-bg svg { position: absolute; display: block; }

/* ═════════ GODZILLA ═════════
   De nuit : la créature se dresse de profil derrière la ville, rétroéclairée par sa propre énergie.
   Cycle de 20 s : l'énergie remonte les plaques de la queue à la nuque, la gueule s'illumine,
   puis le souffle atomique part droit devant elle et traverse l'écran. Le reste du temps, tout dérive très lentement. */
.th-bg-godzilla { background: #020407; --gz: 20s; }
.gz-sky { inset: 0; background: radial-gradient(70% 42% at 52% 44%, #2a8fd4 0%, #12507e 22%, #072640 45%, #030b14 72%, #010205 100%); }
/* Nuages d'orage, éclairés par en dessous */
.gz-clouds { left: -40%; width: 180%; height: 46vh; top: -6vh; opacity: .9;
  background: radial-gradient(30% 42% at 18% 62%, rgba(4, 12, 20, .85), transparent 70%), radial-gradient(32% 46% at 50% 36%, rgba(6, 16, 28, .7), transparent 70%), radial-gradient(28% 40% at 82% 60%, rgba(4, 12, 22, .85), transparent 70%); filter: blur(8px); }
.gz-clouds.c1 { animation: gz-clouds 140s linear infinite alternate; }
.gz-clouds.c2 { top: 8vh; height: 36vh; opacity: .6; animation: gz-clouds 190s linear infinite alternate-reverse; }
@keyframes gz-clouds { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
/* Lumière du souffle sur les nuages */
.gz-light { inset: 0; opacity: 0; background: radial-gradient(75% 30% at 0% 50%, rgba(150, 225, 255, .5), rgba(60, 150, 255, .16) 50%, transparent 78%); mix-blend-mode: screen; animation: gz-light var(--gz) ease-out infinite; }
@keyframes gz-light { 0%, 62% { opacity: 0; } 66% { opacity: 1; } 80% { opacity: .55; } 92%, 100% { opacity: 0; } }
/* Projecteurs de la ville qui balaient le ciel */
.gz-search { bottom: 18vh; width: 9vh; height: 95vh; transform-origin: 50% 100%; opacity: .16; mix-blend-mode: screen;
  background: linear-gradient(to top, rgba(200, 230, 255, .9), rgba(200, 230, 255, .25) 55%, transparent); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(2px); }
.gz-search.s1 { left: 14%; animation: gz-sweep 38s ease-in-out infinite alternate; }
.gz-search.s2 { left: 46%; opacity: .11; animation: gz-sweep 52s ease-in-out -14s infinite alternate-reverse; }
.gz-search.s3 { left: 80%; opacity: .13; animation: gz-sweep 44s ease-in-out -30s infinite alternate; }
@keyframes gz-sweep { from { transform: rotate(-32deg); } to { transform: rotate(26deg); } }
/* Aura d'énergie derrière la créature */
.gz-aura { width: 120vmin; aspect-ratio: 1; left: 64%; top: 22vh; margin-left: -60vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 210, 255, .5), rgba(40, 140, 255, .2) 45%, transparent 72%); mix-blend-mode: screen; animation: gz-aura var(--gz) ease-in-out infinite; }
@keyframes gz-aura { 0%, 100% { opacity: .5; transform: scale(.94); } 55% { opacity: 1; transform: scale(1.05); } 70% { opacity: .9; } }
/* La créature : immense, elle respire (le torse monte et descend à peine) */
.gz-kaiju { right: max(0px, 50vw - 30vh); bottom: 0; height: 70vh; width: auto; aspect-ratio: 600 / 800; overflow: visible; transform-origin: 70% 100%; translate: 11% 0; animation: gz-breath 9s ease-in-out infinite; }
@keyframes gz-breath { 0%, 100% { scale: 1; } 50% { scale: 1.012 1.018; } }
.gz-rim { opacity: .55; animation: gz-rim var(--gz) ease-in-out infinite; }
@keyframes gz-rim { 0%, 100% { opacity: .35; } 55%, 70% { opacity: 1; } }
.gz-plates .pl.b { opacity: .85; }
.gz-plates .pl { stroke: #6fd0ff; stroke-opacity: .55; }
.gz-charge path { opacity: 0; mix-blend-mode: screen; animation: gz-charge var(--gz) ease-in-out infinite; }
@keyframes gz-charge { 0%, 38% { opacity: 0; } 48% { opacity: .95; } 66% { opacity: 1; } 78% { opacity: .4; } 90%, 100% { opacity: 0; } }
.gz-mouth { opacity: 0; animation: gz-mouth var(--gz) ease-in-out infinite; }
@keyframes gz-mouth { 0%, 52% { opacity: 0; } 60% { opacity: 1; } 78% { opacity: .9; } 88%, 100% { opacity: 0; } }
.gz-eye { animation: gz-eye var(--gz) ease-in-out infinite; }
@keyframes gz-eye { 0%, 40% { opacity: .35; } 55%, 75% { opacity: 1; } 100% { opacity: .35; } }
/* Le souffle : il jaillit, tient une seconde, s'éteint */
.gz-beam { opacity: 0; transform-origin: 176px 268px; animation: gz-beam var(--gz) cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes gz-beam { 0%, 61% { opacity: 0; transform: scale(0, .3); } 64% { opacity: 1; transform: scale(1, 1); } 76% { opacity: 1; transform: scale(1, 1.06); } 84%, 100% { opacity: 0; transform: scale(1, .2); } }
.gz-gill { opacity: .12; animation: gz-mouth var(--gz) ease-in-out infinite; }
/* Brume au pied de la créature */
.gz-fog { left: -50%; width: 200%; height: 40vh; bottom: 10vh; background: radial-gradient(50% 50% at 25% 60%, rgba(110, 160, 200, .20), transparent 70%), radial-gradient(40% 50% at 70% 50%, rgba(90, 150, 200, .18), transparent 70%); }
.gz-fog.f1 { animation: gz-fog 90s linear infinite alternate; }
.gz-fog.f2 { bottom: 0; height: 30vh; opacity: .85; animation: gz-fog 120s linear infinite alternate-reverse; }
@keyframes gz-fog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
/* La ville */
.gz-city { left: 0; right: 0; bottom: 0; width: 100%; height: 44vh; }
.gz-far { opacity: .9; }
.gz-win rect { fill: #ffd9a0; opacity: .15; animation: gz-win 12s ease-in-out infinite; }
@keyframes gz-win { 0%, 100% { opacity: .12; } 50% { opacity: .8; } }
.gz-beacon { fill: #ff4d5e; animation: gz-beacon 2.4s ease-in-out infinite; }
@keyframes gz-beacon { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.gz-haze { left: 0; right: 0; bottom: 0; height: 26vh; background: linear-gradient(to top, rgba(2, 4, 7, .95), rgba(2, 4, 7, .35) 60%, transparent); }
/* Neige de cendres (gardée) */
.gz-ash { position: absolute; inset: 0; }
.gz-ash b { top: -4%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(200, 220, 235, var(--o)); animation: gz-ash var(--t) linear var(--d) infinite; }
.gz-ash b.hot { background: #9fe6ff; box-shadow: 0 0 6px 1px rgba(95, 212, 255, .8); }
@keyframes gz-ash { from { transform: translate(0, 0); } to { transform: translate(-16vw, 110vh); } }
/* Flash bleuté quand le souffle part */
.gz-flash { inset: 0; background: rgba(150, 220, 255, .14); opacity: 0; animation: gz-flash var(--gz) ease-out infinite; }
@keyframes gz-flash { 0%, 63% { opacity: 0; } 64.5% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* Les décors Dune et Bleach se mesurent sur leur propre cadre (unités cq*) :
   ils gardent les mêmes proportions en plein écran et dans la petite carte d'aperçu. */
.th-bg-dune, .th-bg-bleach { container-type: size; }
.th-bg > span { position: absolute; display: block; }

/* ═════════ DUNE ═════════
   Crépuscule sur le désert : soleil bas, deux lunes, quatre plans de dunes, le vent sur les crêtes.
   Cycle de 28 s : un sillon descend de la dune du fond vers l'écran, le sable se soulève en nuage,
   et la gueule du ver affleure un instant avant de replonger. Un ornithoptère passe au loin. */
.th-bg-dune { background: #0b0503; --dn: 28s; }
.dn-sky { inset: 0; background: linear-gradient(to bottom, #090504 0%, #1c0d08 20%, #45200f 38%, #8a4720 50%, #c57838 59%, #c57838 100%); }
.dn-stars { left: 0; top: 0; width: 100%; height: 42cqh; }
.dn-stars circle { fill: #ffe6c4; animation: th-twinkle 14s ease-in-out infinite; }
@keyframes th-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
.dn-moon { border-radius: 50%; aspect-ratio: 1; animation: dn-moon 160s ease-in-out infinite alternate; }
.dn-moon.m1 { right: 15cqw; top: 14cqh; width: 7.4cqmin; background: radial-gradient(circle at 36% 34%, #fff3e0, #e6c098 52%, #9a6a44 100%); box-shadow: 0 0 6cqmin rgba(255, 205, 150, .38); }
.dn-moon.m2 { right: 7cqw; top: 20.5cqh; width: 3.8cqmin; background: radial-gradient(circle at 36% 34%, #ffe9cf, #d6a678 55%, #8a5a36 100%); box-shadow: 0 0 4cqmin rgba(255, 195, 135, .32); animation-duration: 210s; }
@keyframes dn-moon { from { transform: translate(0, 0); } to { transform: translate(-3cqw, -1.2cqh); } }
.dn-sun { left: 28cqw; top: 57cqh; width: 46cqmin; aspect-ratio: 1; margin: -23cqmin 0 0 -23cqmin; border-radius: 50%;
  background: radial-gradient(closest-side, #fff1d2 0%, #ffd392 20%, rgba(242, 156, 74, .6) 42%, rgba(206, 104, 42, .2) 68%, transparent 100%); animation: dn-sun 16s ease-in-out infinite; }
@keyframes dn-sun { 0%, 100% { opacity: .82; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
.dn-glow { left: 0; right: 0; top: 30cqh; height: 40cqh; background: radial-gradient(70% 50% at 30% 66%, rgba(255, 172, 92, .36), transparent 72%); mix-blend-mode: screen; }
.dn-dunes { left: 0; bottom: 0; width: 100%; height: 68cqh; }
.dn-rock { fill: #8d5129; opacity: .72; }
/* Le sable soufflé depuis les crêtes */
.dn-plume { opacity: 0; animation: dn-plume 9s ease-in-out infinite; }
.dn-plume.p2 { animation-duration: 13s; animation-delay: -5s; }
@keyframes dn-plume { 0% { opacity: 0; transform: translateX(-4px); } 45% { opacity: .55; } 100% { opacity: 0; transform: translateX(24px); } }
/* Le sillon : part de la crête du fond, grossit en venant vers l'écran */
.dn-run { left: 0; top: 0; width: 44cqmin; aspect-ratio: 1; margin: -22cqmin 0 0 -22cqmin; opacity: 0; animation: dn-run var(--dn) cubic-bezier(.5, 0, .85, .6) infinite; }
.dn-run svg, .dn-maw, .dn-thopter svg { inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes dn-run { 0%, 26% { opacity: 0; translate: 63cqw 60cqh; scale: .1; } 30% { opacity: .9; } 56% { opacity: 1; } 60% { opacity: 1; translate: 46cqw 72cqh; scale: 1.1; } 65%, 100% { opacity: 0; translate: 46cqw 73cqh; scale: 1.25; } }
/* Là où ça sort : la gueule monte à peine, noyée dans la poussière */
.dn-rise { left: 46cqw; top: 72cqh; width: 64cqmin; aspect-ratio: 1; margin: -38cqmin 0 0 -32cqmin; }
.dn-rise > * { position: absolute; display: block; }
.dn-mawbox { left: 0; right: 0; top: 0; height: 62%; overflow: hidden; }
.dn-maw { height: 161.3%; opacity: 0; animation: dn-maw var(--dn) cubic-bezier(.3, .6, .3, 1) infinite; }
@keyframes dn-maw { 0%, 58% { opacity: 0; transform: translateY(46%); } 63% { opacity: .9; } 70% { opacity: .92; transform: translateY(14%); } 79% { opacity: .9; transform: translateY(16%); } 90%, 100% { opacity: 0; transform: translateY(50%); } }
.dn-lip { left: -14%; right: -14%; top: 50%; height: 30%; border-radius: 50%; opacity: 0; filter: blur(6px); background: radial-gradient(closest-side, #7a4520, rgba(74, 36, 14, .9) 55%, transparent 100%); animation: dn-lip var(--dn) ease-in-out infinite; }
@keyframes dn-lip { 0%, 56% { opacity: 0; } 62%, 84% { opacity: 1; } 93%, 100% { opacity: 0; } }
.dn-burst { left: 50%; top: 56%; width: 120cqmin; aspect-ratio: 1.3; margin: -46cqmin 0 0 -60cqmin; border-radius: 50%; opacity: 0; filter: blur(10px); background: radial-gradient(closest-side, rgba(242, 190, 130, .78), rgba(226, 160, 96, .34) 50%, transparent 100%); animation: dn-burst var(--dn) cubic-bezier(.2, .7, .3, 1) infinite; }
.dn-burst.b2 { top: 34%; width: 84cqmin; margin: -32cqmin 0 0 -42cqmin; animation-name: dn-burst2; }
.dn-burst.b3 { top: 60%; width: 170cqmin; aspect-ratio: 2.4; margin: -35cqmin 0 0 -85cqmin; animation-name: dn-burst3; }
@keyframes dn-burst { 0%, 56% { opacity: 0; transform: scale(.15); } 64% { opacity: .95; transform: scale(.75); } 78% { opacity: .6; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(1.15); } }
@keyframes dn-burst2 { 0%, 58% { opacity: 0; transform: translateY(20%) scale(.2); } 68% { opacity: .7; transform: translateY(-10%) scale(.8); } 96%, 100% { opacity: 0; transform: translateY(-46%) scale(1.2); } }
@keyframes dn-burst3 { 0%, 58% { opacity: 0; transform: scaleX(.2); } 70% { opacity: .55; transform: scaleX(.8); } 97%, 100% { opacity: 0; transform: scaleX(1.2); } }
.dn-grains { left: 50%; top: 52%; width: 0; height: 0; }
.dn-grains b { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 50%; background: #ffd9a6; opacity: 0; animation: dn-grain var(--dn) cubic-bezier(.15, .7, .3, 1) var(--gd) infinite; }
@keyframes dn-grain { 0%, 59% { opacity: 0; transform: translate(0, 0); } 62% { opacity: .9; } 74% { opacity: .5; transform: translate(var(--gx), var(--gy)); } 82%, 100% { opacity: 0; transform: translate(var(--gx), calc(var(--gy) + 14cqmin)); } }
/* Le sable soulevé voile tout l'écran un instant */
.dn-gust { inset: 0; opacity: 0; background: linear-gradient(100deg, transparent, rgba(236, 176, 112, .2) 35%, rgba(236, 176, 112, .1) 65%, transparent); animation: dn-gust var(--dn) ease-in-out infinite; }
@keyframes dn-gust { 0%, 58% { opacity: 0; transform: translateX(-12%); } 72% { opacity: 1; } 98%, 100% { opacity: 0; transform: translateX(12%); } }
/* L'ornithoptère : minuscule, très loin, il traverse le ciel */
.dn-thopter { left: 0; top: 0; width: clamp(14px, 9cqmin, 60px); aspect-ratio: 12 / 5; opacity: .82; animation: dn-thopter 64s linear -20s infinite; }
.dn-thopter path { fill: #170b05; }
.dn-wings { transform-box: fill-box; transform-origin: 50% 100%; animation: dn-flutter .5s ease-in-out infinite alternate; }
@keyframes dn-flutter { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes dn-thopter { 0% { transform: translate(112cqw, 40cqh); } 58% { transform: translate(-16cqw, 31cqh); } 100% { transform: translate(-16cqw, 31cqh); } }
/* Voiles de sable portés par le vent */
.dn-veil { left: -60%; width: 220%; height: 14cqh; filter: blur(10px); background: linear-gradient(90deg, transparent, rgba(240, 176, 113, .17) 28%, transparent 52%, rgba(240, 176, 113, .12) 76%, transparent); }
.dn-veil.v1 { top: 53cqh; animation: dn-veil 48s linear infinite alternate; }
.dn-veil.v2 { top: 67cqh; opacity: .8; animation: dn-veil 66s linear -20s infinite alternate-reverse; }
.dn-veil.v3 { top: 82cqh; opacity: .6; animation: dn-veil 54s linear -34s infinite alternate; }
@keyframes dn-veil { from { transform: translateX(-18%); } to { transform: translateX(18%); } }
/* Grains d'épice dans la lumière */
.dn-spice, .bl-rei { inset: 0; }
.dn-spice b { left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #ffc47c; box-shadow: 0 0 6px 1px rgba(255, 160, 70, .7); opacity: 0; animation: dn-spice var(--t) linear var(--d) infinite; }
@keyframes dn-spice { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: var(--o); } 50% { opacity: calc(var(--o) * .35); } 85% { opacity: var(--o); } 100% { opacity: 0; transform: translate(26cqw, -9cqh); } }
.dn-shade { inset: 0; background: linear-gradient(to bottom, rgba(8, 4, 2, .6), rgba(8, 4, 2, .14) 30%, rgba(8, 4, 2, .2) 70%, rgba(8, 4, 2, .66)); }

/* ═════════ BLEACH ═════════
   Nuit de pleine lune sur les toits. Des papillons noirs traversent, des particules d'énergie montent.
   Cycle de 26 s : une silhouette paraît sur un toit, une lueur se charge autour d'elle, deux lames de lumière
   croisées partent vers la lune ; la lune garde la marque un moment et quelques éclats s'en détachent lentement. */
.th-bg-bleach { background: #030408; --bl: 26s; }
.bl-sky { inset: 0; background: radial-gradient(95% 62% at 70% 24%, #1b2552 0%, #0d1330 34%, #060915 64%, #030408 100%); }
.bl-stars { left: 0; top: 0; width: 100%; height: 72cqh; }
.bl-stars circle { fill: #dfe6ff; animation: th-twinkle 14s ease-in-out infinite; }
.bl-halo { left: 70cqw; top: 24cqh; width: 120cqmin; aspect-ratio: 1; margin: -60cqmin 0 0 -60cqmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 176, 255, .34), rgba(110, 140, 240, .12) 55%, transparent 100%); animation: bl-halo 13s ease-in-out infinite; }
@keyframes bl-halo { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
.bl-moon { left: 70cqw; top: 24cqh; width: 58cqmin; aspect-ratio: 1; margin: -29cqmin 0 0 -29cqmin; border-radius: 50%; opacity: .94;
  background: radial-gradient(circle at 30% 62%, rgba(96, 108, 150, .26) 0, rgba(96, 108, 150, .22) 6%, transparent 10%), radial-gradient(circle at 58% 30%, rgba(96, 108, 150, .22) 0, rgba(96, 108, 150, .18) 9%, transparent 14%),
    radial-gradient(circle at 66% 68%, rgba(96, 108, 150, .2) 0, rgba(96, 108, 150, .16) 5%, transparent 8%), radial-gradient(circle at 40% 36%, rgba(96, 108, 150, .16) 0, rgba(96, 108, 150, .12) 4%, transparent 7%),
    radial-gradient(circle at 36% 34%, #f7f9ff 0%, #d7def4 40%, #9ca8cf 76%, #6c77a1 100%);
  box-shadow: inset -3cqmin -3cqmin 8cqmin rgba(20, 26, 60, .55), 0 0 7cqmin rgba(160, 185, 255, .42); }
/* Nuages fins qui passent devant la lune */
.bl-cloud { left: -130cqw; width: 130cqw; height: 13cqh; filter: blur(9px); background: radial-gradient(50% 50% at 30% 50%, rgba(5, 7, 16, .86), transparent 70%), radial-gradient(42% 50% at 72% 46%, rgba(5, 7, 16, .7), transparent 70%); }
.bl-cloud.c1 { top: 19cqh; animation: bl-cloud 110s linear infinite; }
.bl-cloud.c2 { top: 31cqh; height: 10cqh; opacity: .75; animation: bl-cloud 150s linear -70s infinite; }
@keyframes bl-cloud { from { transform: translateX(0); } to { transform: translateX(240cqw); } }
/* Le point de départ de l'attaque suit la silhouette, posée sur le grand toit (voir roofs() : x 478, y 154) */
.bl-pillar, .bl-slash { --bl-x0: calc(50cqw - 13.8cqh); --bl-y0: 69cqh; --bl-rot: 27deg; }
@container (min-aspect-ratio: 34 / 25) { .bl-pillar, .bl-slash { --bl-x0: 39.8cqw; --bl-y0: calc(88cqh - 14cqw); --bl-rot: 50deg; } }
/* La charge : une lueur monte autour de la silhouette */
.bl-pillar { left: var(--bl-x0); top: var(--bl-y0); width: 64cqmin; aspect-ratio: 1; margin: -32cqmin 0 0 -32cqmin; border-radius: 50%; opacity: 0; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(170, 205, 255, .6), rgba(90, 140, 255, .22) 45%, transparent 100%); animation: bl-pillar var(--bl) ease-in-out infinite; }
@keyframes bl-pillar { 0%, 42% { opacity: 0; transform: scale(.7); } 58% { opacity: .85; transform: scale(1); } 61% { opacity: 1; } 74%, 100% { opacity: 0; transform: scale(1.1); } }
.bl-lit { inset: 0; opacity: 0; background: linear-gradient(35deg, rgba(120, 160, 255, .16), transparent 62%); animation: bl-lit var(--bl) ease-out infinite; }
@keyframes bl-lit { 0%, 59% { opacity: 0; } 63% { opacity: 1; } 80%, 100% { opacity: 0; } }
/* Les deux lames croisées : elles partent de la silhouette et filent vers la lune */
.bl-slash { left: 0; top: 0; width: 66cqmin; aspect-ratio: 1; margin: -33cqmin 0 0 -33cqmin; rotate: var(--bl-rot); opacity: 0; animation: bl-slash var(--bl) cubic-bezier(.3, .5, .4, 1) infinite; }
.bl-slash svg, .bl-fly svg { inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes bl-slash { 0%, 60% { opacity: 0; translate: var(--bl-x0) var(--bl-y0); scale: .1; } 62.5% { opacity: 1; } 69% { opacity: 1; } 71% { opacity: .5; translate: 70cqw 24cqh; scale: .82; } 73%, 100% { opacity: 0; translate: 70cqw 24cqh; scale: .95; } }
/* La lune touchée : un éclat de lumière, la marque en croix, les fissures, puis des morceaux qui tombent lentement */
.bl-scar, .bl-shards, .bl-hit { left: 70cqw; top: 24cqh; width: 58cqmin; aspect-ratio: 1; margin: -29cqmin 0 0 -29cqmin; }
.bl-scar { height: auto; opacity: 0; animation: bl-scar var(--bl) ease-out infinite; }
@keyframes bl-scar { 0%, 70.5% { opacity: 0; } 72% { opacity: 1; } 84% { opacity: .75; } 97%, 100% { opacity: 0; } }
.bl-hit { border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(170, 200, 255, .4) 60%, transparent 100%); animation: bl-hit var(--bl) ease-out infinite; }
@keyframes bl-hit { 0%, 70% { opacity: 0; transform: scale(.7); } 71.5% { opacity: .8; transform: scale(1.1); } 78%, 100% { opacity: 0; transform: scale(1.35); } }
.bl-shards b { position: absolute; width: var(--w); aspect-ratio: 1; margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); opacity: 0; background: linear-gradient(140deg, #f1f4ff, #8f9bc6); animation: bl-shard var(--bl) cubic-bezier(.3, .2, .6, 1) var(--sd) infinite; }
@keyframes bl-shard { 0%, 71% { opacity: 0; transform: translate(0, 0) rotate(0deg); } 74% { opacity: .95; } 90% { opacity: .6; } 97%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.bl-roofs { left: 0; bottom: 12cqh; width: 100%; height: 34cqh; }
.bl-ichi { opacity: 0; fill: #010102; stroke: rgba(196, 208, 255, .4); stroke-width: .5; stroke-linejoin: round; animation: bl-ichi var(--bl) ease-in-out infinite; }
@keyframes bl-ichi { 0%, 26% { opacity: 0; } 33%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.bl-cape { transform-box: fill-box; transform-origin: 100% 0; animation: bl-cape 3.2s ease-in-out infinite alternate; }
@keyframes bl-cape { from { transform: skewY(-5deg) scaleX(.94); } to { transform: skewY(6deg) scaleX(1.06); } }
.bl-ground { left: 0; right: 0; bottom: 0; height: calc(12cqh + 1px); background: #020203; }
.bl-fog { left: -50%; width: 200%; height: 22cqh; bottom: 13cqh; background: radial-gradient(50% 50% at 25% 60%, rgba(140, 160, 232, .15), transparent 70%), radial-gradient(40% 50% at 70% 50%, rgba(120, 146, 226, .13), transparent 70%); animation: gz-fog 96s linear infinite alternate; }
.bl-fog.f2 { bottom: 6cqh; height: 18cqh; opacity: .8; animation-duration: 128s; animation-direction: alternate-reverse; }
/* Particules d'énergie qui montent */
.bl-rei b { left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #d6e4ff; box-shadow: 0 0 6px 1px rgba(140, 180, 255, .7); opacity: 0; animation: bl-rei var(--t) linear var(--d) infinite; }
@keyframes bl-rei { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: var(--o); } 80% { opacity: calc(var(--o) * .6); } 100% { opacity: 0; transform: translate(3cqw, -26cqh); } }
/* Papillons noirs : un long trajet lent, des ailes qui battent doucement */
.bl-fly { left: 0; top: 0; width: clamp(9px, 6.4cqmin, 34px); aspect-ratio: 10 / 9; }
.bl-fly svg { animation: bl-bob 3.6s ease-in-out infinite alternate; }
@keyframes bl-bob { from { transform: translateY(-14%); } to { transform: translateY(14%); } }
.bl-wing path { fill: #05060b; stroke: rgba(255, 104, 128, .6); stroke-width: .7; }
.bl-body { fill: #000; stroke: rgba(255, 104, 128, .5); stroke-width: .5; }
.bl-wing { transform-box: fill-box; animation: bl-flap .68s ease-in-out infinite alternate; }
.bl-wing.r { transform-origin: 0 50%; } .bl-wing.l { transform-origin: 100% 50%; }
@keyframes bl-flap { from { transform: scaleX(1); } to { transform: scaleX(.2); } }
.bl-fly.f1 { animation: bl-fly1 62s ease-in-out infinite; }
.bl-fly.f2 { animation: bl-fly2 78s ease-in-out -30s infinite; }
.bl-fly.f3 { animation: bl-fly3 70s ease-in-out -14s infinite; }
@keyframes bl-fly1 { 0% { transform: translate(-10cqw, 70cqh) rotate(60deg); } 25% { transform: translate(28cqw, 54cqh) rotate(40deg); } 50% { transform: translate(54cqw, 60cqh) rotate(78deg); } 75% { transform: translate(80cqw, 40cqh) rotate(36deg); } 100% { transform: translate(112cqw, 28cqh) rotate(60deg); } }
@keyframes bl-fly2 { 0% { transform: translate(110cqw, 50cqh) rotate(-70deg) scale(.8); } 30% { transform: translate(70cqw, 38cqh) rotate(-42deg) scale(.8); } 60% { transform: translate(38cqw, 46cqh) rotate(-80deg) scale(.8); } 100% { transform: translate(-12cqw, 30cqh) rotate(-52deg) scale(.8); } }
@keyframes bl-fly3 { 0% { transform: translate(-10cqw, 84cqh) rotate(72deg) scale(.66); } 40% { transform: translate(36cqw, 74cqh) rotate(52deg) scale(.66); } 70% { transform: translate(64cqw, 80cqh) rotate(88deg) scale(.66); } 100% { transform: translate(112cqw, 66cqh) rotate(60deg) scale(.66); } }
.bl-shade { inset: 0; background: linear-gradient(to bottom, rgba(3, 4, 8, .6), rgba(3, 4, 8, .1) 30%, rgba(3, 4, 8, .16) 70%, rgba(3, 4, 8, .6)); }

/* ═════════ L'interface du chat suit le thème ═════════
   Chaque thème donne ses couleurs (variables --ct-*) ; les règles en dessous habillent l'en-tête,
   les bulles, la barre d'écriture, le bouton d'envoi, le menu « + » et les cartes partagées. */
.chat-th-godzilla, .chat-prev-godzilla { --ct-top: rgba(5, 10, 16, .62); --ct-line: rgba(95, 180, 255, .22); --ct-ink: #f2fbff; --ct-soft: rgba(190, 220, 240, .74);
  --ct-mine: linear-gradient(135deg, rgba(48, 140, 255, .62), rgba(24, 74, 170, .55)); --ct-mine-edge: rgba(150, 215, 255, .35); --ct-glow: rgba(80, 180, 255, .6);
  --ct-theirs: rgba(8, 14, 22, .66); --ct-bar: rgba(6, 12, 20, .78); --ct-send: linear-gradient(135deg, #8fe0ff, #2f86ff); --ct-send-ink: #04121f;
  --ct-tint: rgba(95, 180, 255, .14); --ct-note: #bfe9ff; --ct-note-bg: rgba(40, 120, 255, .16); --ct-card: rgba(4, 10, 18, .55); --ct-menu: rgba(7, 13, 21, .96); }
.chat-th-dune, .chat-prev-dune { --ct-top: rgba(20, 11, 6, .62); --ct-line: rgba(240, 170, 96, .22); --ct-ink: #fff7ec; --ct-soft: rgba(246, 222, 192, .76);
  --ct-mine: linear-gradient(135deg, rgba(224, 142, 62, .74), rgba(150, 72, 24, .66)); --ct-mine-edge: rgba(255, 210, 152, .36); --ct-glow: rgba(240, 160, 80, .55);
  --ct-theirs: rgba(24, 13, 7, .66); --ct-bar: rgba(22, 12, 6, .8); --ct-send: linear-gradient(135deg, #ffdba6, #d9772b); --ct-send-ink: #241004;
  --ct-tint: rgba(240, 170, 96, .16); --ct-note: #ffd9ad; --ct-note-bg: rgba(214, 120, 40, .18); --ct-card: rgba(18, 9, 4, .55); --ct-menu: rgba(24, 13, 7, .96); }
.chat-th-bleach, .chat-prev-bleach { --ct-top: rgba(5, 6, 10, .66); --ct-line: rgba(214, 224, 255, .2); --ct-ink: #ffffff; --ct-soft: rgba(216, 224, 244, .74);
  --ct-mine: linear-gradient(135deg, rgba(16, 17, 23, .9), rgba(2, 2, 5, .86)); --ct-mine-edge: rgba(255, 255, 255, .55); --ct-glow: rgba(160, 190, 255, .5);
  --ct-theirs: rgba(40, 45, 62, .62); --ct-bar: rgba(6, 7, 11, .82); --ct-send: linear-gradient(135deg, #ffc98a, #f0701a); --ct-send-ink: #1a0a02;
  --ct-tint: rgba(214, 224, 255, .12); --ct-note: #ffc89a; --ct-note-bg: rgba(240, 112, 26, .14); --ct-card: rgba(6, 7, 12, .55); --ct-menu: rgba(9, 10, 16, .96); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .th-top { background: var(--ct-top); box-shadow: 0 1px 0 var(--ct-line); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .th-top .top-btn { background: var(--ct-tint); box-shadow: inset 0 0 0 1px var(--ct-line); color: var(--ct-ink); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .msg.mine { color: var(--ct-ink); background: var(--ct-mine); box-shadow: 0 0 22px -7px var(--ct-glow), inset 0 0 0 1px var(--ct-mine-edge), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .msg.theirs { background: var(--ct-theirs); box-shadow: inset 0 0 0 1px var(--ct-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .msg time { color: var(--ct-soft); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .msg-day { color: var(--ct-soft); text-shadow: 0 1px 6px #000; }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-bar2 { background: var(--ct-bar); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--ct-line); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-bar2 input { caret-color: var(--ct-note); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-bar2 input::placeholder { color: var(--ct-soft); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-bar2 .bar-send { background: var(--ct-send); color: var(--ct-send-ink); box-shadow: 0 0 16px var(--ct-glow); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-plus2 { background: var(--ct-tint); box-shadow: inset 0 0 0 1px var(--ct-line); color: var(--ct-ink); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-menu { background: var(--ct-menu); box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--ct-line); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .dm-menu svg { color: var(--ct-note); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .wcard { background: var(--ct-card); }
:is(.chat-th-godzilla, .chat-th-dune, .chat-th-bleach) .th-note { color: var(--ct-note); background: var(--ct-note-bg); box-shadow: inset 0 0 0 1px var(--ct-line); }
:is(.chat-prev-godzilla, .chat-prev-dune, .chat-prev-bleach) .thp-b.b { background: var(--ct-mine); box-shadow: 0 0 10px var(--ct-glow), inset 0 0 0 1px var(--ct-mine-edge); }
:is(.chat-prev-godzilla, .chat-prev-dune, .chat-prev-bleach) :is(.thp-b.a, .thp-b.c) { background: var(--ct-theirs); box-shadow: inset 0 0 0 1px var(--ct-line); }

/* Bandeau « thème changé » dans la conversation */
.th-note { align-self: center; margin: 8px 0; padding: 6px 12px; border-radius: 99px; font-size: 11.5px; color: var(--ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); animation: msg-in .4s var(--ease) backwards; }

/* Choix du thème : cartes avec aperçu vivant */
.thp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thp-card { position: relative; display: grid; gap: 10px; padding: 8px 8px 12px; border: 0; border-radius: 24px; text-align: left; color: inherit; font: inherit; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring), box-shadow .25s; }
.thp-card:active { transform: scale(.97); }
.thp-card[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px rgba(220, 230, 240, .7); }
.thp-prev { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 18px; overflow: hidden; background: #111318; isolation: isolate; }
.thp-prev .th-bg { position: absolute; z-index: 0; }
.thp-prev .gz-city { height: 38%; } .thp-prev .gz-haze { height: 26%; } .thp-prev .gz-fog { height: 40%; bottom: 10%; } .thp-prev .gz-fog.f2 { height: 30%; bottom: 0; } .thp-prev .gz-clouds { height: 46%; top: -6%; } .thp-prev .gz-clouds.c2 { top: 8%; height: 36%; }
.thp-prev .gz-kaiju { height: 70%; right: 0; } .thp-prev .gz-search { bottom: 18%; width: 9%; height: 95%; } .thp-prev .gz-aura { width: 150%; top: 16%; margin-left: -75%; }
@keyframes gz-ash-mini { from { transform: translate(0, 0); } to { transform: translate(-14%, 900%); } }
.thp-prev .gz-ash b { animation-name: gz-ash-mini; }
.thp-b { position: absolute; z-index: 2; height: 12px; border-radius: 8px; }
.thp-b.a { left: 10%; top: 22%; width: 46%; background: rgba(255, 255, 255, .14); }
.thp-b.b { right: 10%; top: 34%; width: 52%; background: linear-gradient(135deg, rgba(203, 213, 223, .4), rgba(163, 179, 194, .25)); }
.thp-b.c { left: 10%; top: 46%; width: 34%; background: rgba(255, 255, 255, .14); }
.thp-txt { display: grid; gap: 3px; padding: 0 4px; }
.thp-txt b { font-size: 14px; }
.thp-txt small { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.thp-on { position: absolute; top: 16px; right: 16px; z-index: 3; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; color: #0e1013; background: rgba(240, 244, 248, .92); }

@media (prefers-reduced-motion: reduce) { .th-bg *, .th-bg { animation: none !important; } }

/* Grand écran : la ville reste plus basse pour ne pas cacher le bas de la créature */
@media (min-aspect-ratio: 1/1) { .gz-city { height: 28vh; } .gz-fog { height: 30vh; } }
