/* V442 — LE PANNEAU PREND SON BIOME (src/ui/panneau-biome.js).
   L'écran du choix de la jaquette (vidéoclub .scj-ecran.sbj-jaq, versus .sbj-ecran) porte
   data-biome-v442 : sa palette (couleurs enregistrées par @property, donc animées d'un biome à l'autre),
   et trois calques : .pb-fond (derrière le contenu : lueurs, toile des particules), .pb-cadre (SVG devant
   le contenu, sans pointeur : le décor du cadre), .pb-voile (éclairs de lumière). Liée après
   selection-biomes.css, avant paysage-mobile.css (toujours la dernière). */

@property --pb-ciel { syntax: "<color>"; inherits: true; initial-value: #3a1b5c; }
@property --pb-fond-a { syntax: "<color>"; inherits: true; initial-value: #120b1f; }
@property --pb-fond-b { syntax: "<color>"; inherits: true; initial-value: #07050d; }
@property --pb-cadre { syntax: "<color>"; inherits: true; initial-value: #3a2c55; }
@property --pb-neon { syntax: "<color>"; inherits: true; initial-value: #ff4fa3; }
@property --pb-sous { syntax: "<color>"; inherits: true; initial-value: #b9a8e6; }
@property --pb-bois { syntax: "<color>"; inherits: true; initial-value: #4a2c17; }
@property --pb-bois-clair { syntax: "<color>"; inherits: true; initial-value: #7a4a26; }
@property --pb-papier { syntax: "<color>"; inherits: true; initial-value: #f3ecda; }
@property --pb-papier-b { syntax: "<color>"; inherits: true; initial-value: #e6dcc4; }
@property --pb-encre { syntax: "<color>"; inherits: true; initial-value: #2c1446; }
@property --pb-comptoir { syntax: "<color>"; inherits: true; initial-value: rgba(74, 44, 23, 0.55); }
@property --pb-lueur { syntax: "<color>"; inherits: true; initial-value: #8a5cff; }

/* ------------------------------------------------------------------ les palettes */
.pb-hote {
  transition-property: --pb-ciel, --pb-fond-a, --pb-fond-b, --pb-cadre, --pb-neon, --pb-sous, --pb-bois, --pb-bois-clair, --pb-papier, --pb-papier-b, --pb-encre, --pb-comptoir, --pb-lueur;
  transition-duration: 1.4s;
  transition-timing-function: ease;
}
.pb-hote[data-biome-v442="classic"] { --pb-ciel: #3a1b5c; --pb-fond-a: #120b1f; --pb-fond-b: #07050d; --pb-cadre: #5a3c8a; --pb-neon: #ff4fa3; --pb-sous: #b9a8e6; --pb-bois: #4a2c17; --pb-bois-clair: #7a4a26; --pb-papier: #f3ecda; --pb-papier-b: #e6dcc4; --pb-encre: #2c1446; --pb-comptoir: rgba(74, 44, 23, 0.55); --pb-lueur: #8a5cff; }
.pb-hote[data-biome-v442="forest"] { --pb-ciel: #1f5a24; --pb-fond-a: #0b1a0e; --pb-fond-b: #040a05; --pb-cadre: #4fa846; --pb-neon: #b6ff5c; --pb-sous: #a9d88f; --pb-bois: #3b2a14; --pb-bois-clair: #6b4d22; --pb-papier: #e9f1d8; --pb-papier-b: #d3e2bb; --pb-encre: #1e3a14; --pb-comptoir: rgba(40, 72, 30, 0.6); --pb-lueur: #5fd35a; }
.pb-hote[data-biome-v442="volcano"] { --pb-ciel: #6a1606; --pb-fond-a: #1c0805; --pb-fond-b: #070202; --pb-cadre: #ff5a1a; --pb-neon: #ffb347; --pb-sous: #ffb08a; --pb-bois: #241612; --pb-bois-clair: #4a2a20; --pb-papier: #f2dcc6; --pb-papier-b: #dcb898; --pb-encre: #4a1206; --pb-comptoir: rgba(74, 22, 8, 0.65); --pb-lueur: #ff4a12; }
.pb-hote[data-biome-v442="storm"] { --pb-ciel: #2c2a6a; --pb-fond-a: #0d0c22; --pb-fond-b: #04040c; --pb-cadre: #7a6cff; --pb-neon: #cfc8ff; --pb-sous: #b3b0e8; --pb-bois: #262636; --pb-bois-clair: #4a4a66; --pb-papier: #e6e6f4; --pb-papier-b: #cfcfe4; --pb-encre: #1d1a4a; --pb-comptoir: rgba(40, 38, 84, 0.6); --pb-lueur: #8f84ff; }
.pb-hote[data-biome-v442="water"] { --pb-ciel: #0e4f74; --pb-fond-a: #051a2a; --pb-fond-b: #020a12; --pb-cadre: #1a9ad8; --pb-neon: #6fe9ff; --pb-sous: #9ad7ef; --pb-bois: #1f3a44; --pb-bois-clair: #3a6670; --pb-papier: #dff1f5; --pb-papier-b: #c4e0e8; --pb-encre: #0b3550; --pb-comptoir: rgba(14, 62, 92, 0.6); --pb-lueur: #2fc6ff; }
.pb-hote[data-biome-v442="dead_tape"] { --pb-ciel: #4a3220; --pb-fond-a: #1a140e; --pb-fond-b: #080604; --pb-cadre: #9a7a55; --pb-neon: #ff5a4a; --pb-sous: #d8c3a2; --pb-bois: #3a2a1a; --pb-bois-clair: #6a4c2c; --pb-papier: #efe3cc; --pb-papier-b: #dccaa8; --pb-encre: #3a2414; --pb-comptoir: rgba(72, 52, 30, 0.62); --pb-lueur: #c89a5a; }
.pb-hote[data-biome-v442="freeze_frame"] { --pb-ciel: #3a5f80; --pb-fond-a: #0e1822; --pb-fond-b: #05090e; --pb-cadre: #8fd8ff; --pb-neon: #dff6ff; --pb-sous: #bfe3f5; --pb-bois: #4a5a66; --pb-bois-clair: #7a8d99; --pb-papier: #eef6fb; --pb-papier-b: #d6e8f2; --pb-encre: #12324a; --pb-comptoir: rgba(60, 92, 122, 0.55); --pb-lueur: #9fe4ff; }
.pb-hote[data-biome-v442="lost_signal"] { --pb-ciel: #383838; --pb-fond-a: #111111; --pb-fond-b: #050505; --pb-cadre: #c8c8c8; --pb-neon: #ffffff; --pb-sous: #c4c4c4; --pb-bois: #2a2a2a; --pb-bois-clair: #555555; --pb-papier: #eeeeee; --pb-papier-b: #d8d8d8; --pb-encre: #222222; --pb-comptoir: rgba(52, 52, 52, 0.62); --pb-lueur: #e0e0e0; }

/* ------------------------------------------------------------------ la police de chaque biome
   (src/ui/panneau-biome.js : POLICES, une seule feuille Google Fonts ; hors ligne : Barlow). --pb-echelle
   corrige les polices étroites (VT323) ou très larges (Monoton, Faster One). */
.pb-hote[data-biome-v442="classic"], .scj-tranche[data-biome-v434="classic"], .sbj-vignette[data-biome-v434="classic"] { --pb-police: "Monoton"; --pb-echelle: 0.92; }
.pb-hote[data-biome-v442="forest"], .scj-tranche[data-biome-v434="forest"], .sbj-vignette[data-biome-v434="forest"] { --pb-police: "Uncial Antiqua"; --pb-echelle: 1; }
.pb-hote[data-biome-v442="volcano"], .scj-tranche[data-biome-v434="volcano"], .sbj-vignette[data-biome-v434="volcano"] { --pb-police: "Metal Mania"; --pb-echelle: 1.08; }
.pb-hote[data-biome-v442="storm"], .scj-tranche[data-biome-v434="storm"], .sbj-vignette[data-biome-v434="storm"] { --pb-police: "Faster One"; --pb-echelle: 0.95; }
.pb-hote[data-biome-v442="water"], .scj-tranche[data-biome-v434="water"], .sbj-vignette[data-biome-v434="water"] { --pb-police: "Rubik Bubbles"; --pb-echelle: 1; }
.pb-hote[data-biome-v442="dead_tape"], .scj-tranche[data-biome-v434="dead_tape"], .sbj-vignette[data-biome-v434="dead_tape"] { --pb-police: "VT323"; --pb-echelle: 1.3; }
.pb-hote[data-biome-v442="freeze_frame"], .scj-tranche[data-biome-v434="freeze_frame"], .sbj-vignette[data-biome-v434="freeze_frame"] { --pb-police: "Iceberg"; --pb-echelle: 1.05; }
.pb-hote[data-biome-v442="lost_signal"], .scj-tranche[data-biome-v434="lost_signal"], .sbj-vignette[data-biome-v434="lost_signal"] { --pb-police: "Rubik Glitch"; --pb-echelle: 1; }
#jaquettesV434 .pb-hote .scj-enseigne h2 { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; font-size: calc(26px * var(--pb-echelle, 1)); letter-spacing: 0.02em; line-height: 1.05; }
#jaquettesV434 .pb-hote .scj-face-nom { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; font-size: calc(clamp(24px, 3vw, 44px) * var(--pb-echelle, 1)); }
#jaquettesV434 .pb-hote .scj-dos h3 { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; font-size: calc(clamp(16px, 1.6vw, 22px) * var(--pb-echelle, 1)); letter-spacing: 0.02em; }
#jaquettesV434 .scj-tranche[data-biome-v434] .scj-tranche-nom { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; font-size: calc(clamp(12px, 1.2vw, 16px) * var(--pb-echelle, 1)); letter-spacing: 0.06em; }
#jaquettesV434 .pb-hote .sbj-haut h2 { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; font-size: calc(24px * var(--pb-echelle, 1)); }
#jaquettesV434 .pb-hote .sbj-biome { font-family: var(--pb-police), Barlow, sans-serif; }
#jaquettesV434 .sbj-vignette[data-biome-v434] .sbj-vignette-nom { font-family: var(--pb-police), Barlow, sans-serif; font-weight: 400; }

/* ------------------------------------------------------------------ le vidéoclub à la couleur du biome */
#jaquettesV434 .scj-ecran.pb-hote {
  --scj-neon: var(--pb-neon);
  --scj-bois: var(--pb-bois);
  --scj-bois-clair: var(--pb-bois-clair);
  border-color: var(--pb-cadre);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    radial-gradient(70% 60% at 50% 32%, color-mix(in srgb, var(--scj-actif, #59ecff) 14%, transparent), transparent 70%),
    radial-gradient(120% 90% at 50% -20%, var(--pb-ciel), transparent 62%),
    radial-gradient(90% 45% at 50% 118%, color-mix(in srgb, var(--pb-lueur) 36%, transparent), transparent 70%),
    radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--pb-ciel) 38%, transparent), transparent 80%),
    linear-gradient(180deg, var(--pb-fond-a), var(--pb-fond-b) 70%, var(--pb-fond-a));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 0 0 2px color-mix(in srgb, var(--pb-cadre) 55%, transparent), inset 0 0 70px color-mix(in srgb, var(--pb-lueur) 30%, transparent);
}
#jaquettesV434 .scj-ecran.pb-hote > :is(.scj-entete, .scj-corps) { position: relative; z-index: 1; }
#jaquettesV434 .scj-ecran.pb-hote .scj-sous-titre { color: var(--pb-sous); }
#jaquettesV434 .scj-ecran.pb-hote .scj-comptoir { background: linear-gradient(180deg, var(--pb-comptoir), rgba(8, 6, 6, 0.78)); border-color: color-mix(in srgb, var(--pb-cadre) 55%, #000); }
#jaquettesV434 .scj-ecran.pb-hote .scj-dos { background: linear-gradient(180deg, var(--pb-papier), var(--pb-papier-b)); }
#jaquettesV434 .scj-ecran.pb-hote .scj-dos h3 { color: var(--pb-encre); }
#jaquettesV434 .scj-ecran.pb-hote .scj-location { background: var(--pb-papier); }
#jaquettesV434 .scj-ecran.pb-hote .scj-message { color: color-mix(in srgb, var(--pb-papier) 88%, var(--pb-neon)); }
#jaquettesV434 .scj-ecran.pb-hote .scj-boitier { border-color: color-mix(in srgb, var(--pb-cadre) 50%, #1f1c2c); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 34px color-mix(in srgb, var(--pb-lueur) 32%, transparent); }
#jaquettesV434 .scj-ecran.pb-hote :is(.scj-retour, .scj-style) { border-color: color-mix(in srgb, var(--pb-cadre) 55%, transparent); }

/* ------------------------------------------------------------------ le versus à la couleur du biome */
#jaquettesV434 .sbj-ecran.pb-hote {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(55% 80% at 14% 55%, color-mix(in srgb, var(--sbj-g, #59ecff) 26%, transparent), transparent 64%),
    radial-gradient(55% 80% at 86% 55%, color-mix(in srgb, var(--sbj-d, #ff4fa3) 26%, transparent), transparent 64%),
    radial-gradient(110% 70% at 50% 0%, var(--pb-ciel), transparent 62%),
    linear-gradient(100deg, var(--pb-fond-a) 0 49.6%, var(--pb-fond-b) 49.6% 50.4%, var(--pb-fond-a) 50.4%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px color-mix(in srgb, var(--pb-cadre) 45%, transparent), inset 0 0 46px color-mix(in srgb, var(--pb-lueur) 22%, transparent);
}
#jaquettesV434 .sbj-ecran.pb-hote > .sbj-arene { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ les calques */
.pb-fond, .pb-cadre, .pb-voile { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.pb-fond { z-index: 0; overflow: hidden; contain: strict; }
/* La règle générale « canvas { background: #000 } » (styles.css) noircirait tout le fond. */
.pb-hote .pb-toile { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; background: transparent; cursor: inherit; touch-action: auto; }
.pb-arriere { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-cadre { z-index: 4; overflow: visible; transition: opacity 0.25s ease; }
.pb-cadre.pb-sort { opacity: 0; }
.pb-voile { z-index: 6; opacity: 0; }
.pb-osd {
  position: absolute; top: 2px; right: 26px; z-index: 5; pointer-events: none;
  padding: 2px 6px; border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--pb-cadre) 70%, transparent);
  background: color-mix(in srgb, var(--pb-fond-b) 82%, transparent);
  font: 7px/1.2 "Press Start 2P", monospace; letter-spacing: 0.08em; white-space: nowrap;
  color: var(--pb-neon); text-shadow: 0 0 6px var(--pb-neon);
}
.sbj-ecran > .pb-osd { top: auto; bottom: 60px; right: 18px; }

/* Les tracés qui poussent (pathLength = 1) : du point de départ à la pointe, sans hâte. */
.pb-cadre .pb-pousse { fill: none; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; }
.pb-cadre.pb-pousse-go .pb-pousse { animation: pb-pousse var(--pb-t, 1.8s) cubic-bezier(0.33, 0.6, 0.45, 1) var(--pb-d, 0s) both; }
.pb-cadre.pb-fige .pb-pousse { animation: none; stroke-dashoffset: 0; }
@keyframes pb-pousse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pb-eclore { 0% { scale: 0; } 70% { scale: 1.15; } 100% { scale: 1; } }
@keyframes pb-respire { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }
@keyframes pb-flash { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pb-tourne { to { rotate: calc(360deg * var(--pb-sens, 1)); } }
@keyframes pb-defile { from { translate: 0 -20px; } to { translate: 0 var(--pb-h, 900px); } }

/* ------------------------------------------------------------------ CLASSIQUE : le fronton de cinéma */
.pb-classique { filter: drop-shadow(0 0 3px #ff9ad5); }
.pb-classique circle { fill: #ffe7b8; animation: pb-chenillard 1.2s steps(1) infinite; animation-delay: calc(var(--pb-i) * -0.4s); }
@keyframes pb-chenillard { 0% { opacity: 1; } 33.3% { opacity: 0.22; } }
.pb-hote[data-biome-v442="classic"] .pb-fond::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: -10%; bottom: 0;
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.10), transparent 75%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
.pb-eclat .pb-classique circle { animation: pb-chenillard 0.24s steps(1) 5; }
.pb-voile-classic { background: radial-gradient(80% 60% at 50% 50%, rgba(255, 120, 210, 0.28), transparent 70%); animation: pb-flash 0.9s ease-out; }

/* ------------------------------------------------------------------ FORÊT : les lianes */
.pb-foret .pb-tige { stroke: #3fae3c; stroke-width: 3; filter: drop-shadow(0 0 2px rgba(120, 255, 100, 0.45)); }
.pb-foret .pb-piste { stroke: #7dff6a; stroke-width: 2; }
.pb-foret .pb-pastille { fill: #0d2a10; stroke: #9bff7c; stroke-width: 1.5; }
.pb-foret .pb-vrille { stroke: #6fd85a; stroke-width: 1.4; }
.pb-foret .pb-feuille { transform-box: fill-box; transform-origin: 0% 50%; scale: 0; }
.pb-cadre.pb-pousse-go .pb-foret .pb-feuille { animation: pb-eclore 0.45s ease-out var(--pb-d, 0s) both; }
.pb-cadre.pb-fige .pb-foret .pb-feuille { animation: none; scale: 1; }
.pb-foret .pb-feuille path:first-child { fill: #4ccf46; stroke: #1d6a1c; stroke-width: 0.8; }
.pb-foret .pb-nervure { fill: none; stroke: #b7ff8c; stroke-width: 0.6; }
.pb-foret .pb-fleur { transform-box: fill-box; transform-origin: 50% 50%; scale: 0; fill: var(--pb-fleur); }
.pb-foret .pb-fleur circle { fill: #ffd84a; }
.pb-eclat .pb-foret .pb-fleur { animation: pb-eclore 0.6s ease-out var(--pb-d, 0s) both; }
.pb-hote.pb-eclat[data-biome-v442="forest"] .pb-foret .pb-tige { stroke-width: 4; transition: stroke-width 0.4s; }
.pb-hote[data-biome-v442="forest"] .pb-fond::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(112deg, transparent 18%, rgba(210, 255, 160, 0.07) 22%, transparent 27%),
    linear-gradient(112deg, transparent 52%, rgba(210, 255, 160, 0.06) 56%, transparent 62%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(4, 30, 8, 0.55));
}

/* ------------------------------------------------------------------ VOLCAN : fissures de lave, éruption */
.pb-volcan { animation: pb-respire 2.4s ease-in-out infinite; }
.pb-volcan .pb-f-lueur { stroke: #ff3d0d; stroke-width: calc(7px * var(--pb-e, 1)); opacity: 0.75; }
.pb-volcan .pb-f-coeur { stroke: #ffd25a; stroke-width: calc(2px * var(--pb-e, 1) + 0.6px); transition: stroke-width 0.5s ease; }
.pb-arriere .pb-volcan .pb-f-lueur { stroke-width: calc(12px * var(--pb-e, 1)); opacity: 0.85; }
.pb-arriere .pb-volcan .pb-f-coeur { stroke-width: calc(3.2px * var(--pb-e, 1) + 0.6px); }
.pb-hote[data-biome-v442="volcano"] .pb-fond::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%;
  background: radial-gradient(60% 55% at 50% 100%, rgba(255, 96, 20, 0.42), rgba(255, 60, 10, 0.12) 55%, transparent 75%);
  animation: pb-respire 3.2s ease-in-out infinite;
}
.pb-hote.pb-eclat[data-biome-v442="volcano"] { animation: pb-secousse 0.75s cubic-bezier(0.3, 0.7, 0.4, 1); }
.pb-hote.pb-eclat[data-biome-v442="volcano"] .pb-f-coeur { stroke-width: calc(4px * var(--pb-e, 1) + 1px); stroke: #fff0a8; }
.pb-voile-volcano { background: radial-gradient(130% 75% at 50% 112%, rgba(255, 130, 30, 0.6), rgba(255, 60, 10, 0.18) 55%, transparent 75%); animation: pb-flash 1.3s ease-out; }
@keyframes pb-secousse {
  0%, 100% { translate: 0 0; }
  10% { translate: -5px 3px; } 20% { translate: 6px -4px; } 30% { translate: -6px -2px; } 40% { translate: 4px 4px; }
  55% { translate: -3px 2px; } 70% { translate: 2px -1px; } 85% { translate: -1px 1px; }
}

/* ------------------------------------------------------------------ TEMPÊTE : éclairs, pluie */
.pb-tempete .pb-ruisselle { stroke: rgba(190, 210, 255, 0.35); stroke-width: 1; animation: pb-respire 1.8s ease-in-out var(--pb-d, 0s) infinite; }
.pb-tempete .pb-arcs { filter: drop-shadow(0 0 3px #8f84ff); }
.pb-tempete .pb-arc { fill: none; stroke: #e2deff; stroke-width: 1.3; stroke-linejoin: bevel; opacity: 0; animation: pb-gresille var(--pb-t, 2.4s) steps(1) var(--pb-d, 0s) infinite; }
@keyframes pb-gresille { 0% { opacity: 0; } 6% { opacity: 1; } 10% { opacity: 0.2; } 15% { opacity: 1; } 22% { opacity: 0; } }
.pb-hote.pb-eclat[data-biome-v442="storm"] .pb-tempete .pb-arc { animation-duration: 0.3s; }
.pb-eclair { animation: pb-foudre 0.85s ease-out forwards; }
.pb-eclair path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pb-eclair .pb-e-lueur { stroke: #8f84ff; stroke-width: 7; opacity: 0.6; filter: url(#pbFlou); }
.pb-eclair .pb-e-coeur { stroke: #ffffff; stroke-width: 1.8; }
.pb-eclair.fort .pb-e-coeur { stroke-width: 3; }
@keyframes pb-foudre { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: 0.25; } 24% { opacity: 1; } 100% { opacity: 0; } }
.pb-voile-eclair { background: rgba(220, 225, 255, 0.2); animation: pb-flash 0.5s ease-out; }
.pb-voile-fort { background: rgba(236, 236, 255, 0.42); animation: pb-flash 0.75s ease-out; }
.pb-hote[data-biome-v442="storm"] .pb-fond::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -12%; height: 34%;
  background:
    radial-gradient(18% 60% at 12% 40%, rgba(70, 64, 140, 0.75), transparent 70%),
    radial-gradient(22% 70% at 34% 30%, rgba(86, 78, 160, 0.7), transparent 70%),
    radial-gradient(20% 60% at 58% 45%, rgba(62, 56, 130, 0.75), transparent 70%),
    radial-gradient(24% 70% at 82% 35%, rgba(80, 72, 150, 0.7), transparent 70%);
  animation: pb-nuages 28s linear infinite alternate;
}
@keyframes pb-nuages { from { translate: -6% 0; } to { translate: 6% 0; } }

/* ------------------------------------------------------------------ OCÉAN : le niveau monte */
.pb-ocean .pb-v-monte { translate: 0 60px; animation: pb-monte 2s cubic-bezier(0.3, 0.6, 0.4, 1) 0.1s both; }
.pb-cadre.pb-fige .pb-ocean .pb-v-monte { animation: none; translate: 0 calc(-1 * var(--pb-niveau)); }
@keyframes pb-monte { from { translate: 0 60px; } to { translate: 0 calc(-1 * var(--pb-niveau)); } }
.pb-ocean .pb-v1 { animation: pb-glisse-1 9s linear infinite; }
.pb-ocean .pb-v2 { animation: pb-glisse-2 6.5s linear infinite; }
@keyframes pb-glisse-1 { to { translate: -120px 0; } }
@keyframes pb-glisse-2 { to { translate: -86px 0; } }
.pb-ocean .pb-v1 .pb-v-eau { fill: rgba(30, 150, 220, 0.22); }
.pb-ocean .pb-v2 .pb-v-eau { fill: rgba(16, 104, 184, 0.3); }
.pb-ocean .pb-v-ecume { fill: none; stroke: rgba(200, 245, 255, 0.75); stroke-width: 1.5; }
.pb-arriere .pb-ocean .pb-v1 .pb-v-eau { fill: rgba(30, 150, 220, 0.3); }
.pb-arriere .pb-ocean .pb-v2 .pb-v-eau { fill: rgba(16, 104, 184, 0.38); }
.pb-ocean-bord .pb-v-eau { fill: rgba(60, 180, 240, 0.25) !important; }
.pb-hote.pb-eclat[data-biome-v442="water"] .pb-ocean .pb-v-monte { animation: pb-deferle 1.5s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes pb-deferle { 0% { translate: 0 calc(-1 * var(--pb-niveau)); } 35% { translate: 0 calc(-3.2 * var(--pb-niveau)); } 100% { translate: 0 calc(-1 * var(--pb-niveau)); } }
.pb-hote[data-biome-v442="water"] .pb-fond::before {
  content: ""; position: absolute; inset: -20%;
  background:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 18px, rgba(120, 220, 255, 0.05) 20px 22px, transparent 24px 40px),
    repeating-radial-gradient(circle at 70% 60%, transparent 0 26px, rgba(120, 220, 255, 0.04) 28px 30px, transparent 32px 52px);
  animation: pb-caustiques 14s ease-in-out infinite alternate;
}
@keyframes pb-caustiques { from { translate: -3% -2%; } to { translate: 3% 2%; } }

/* ------------------------------------------------------------------ BANDE MORTE : la bande se déroule */
.pb-bande .pb-ruban { stroke: #6a4320; stroke-width: 6; filter: drop-shadow(0 1px 0 rgba(255, 214, 160, 0.3)); }
.pb-bande .pb-ruban:nth-of-type(odd) { stroke: #7c4e24; }
.pb-bande .pb-bobine circle { fill: #15100c; stroke: #8a6a48; stroke-width: 2; }
.pb-bande .pb-bobine .pb-bobine-moyeu { fill: #c8b090; stroke: none; }
.pb-bande .pb-bobine rect { fill: #8a6a48; }
.pb-bande .pb-bobine-tourne { transform-box: fill-box; transform-origin: 50% 50%; animation: pb-tourne 4.5s linear infinite; }
.pb-bande .pb-tracking { fill: rgba(255, 255, 255, 0.06); animation: pb-defile 6.5s linear infinite; }
.pb-hote.pb-eclat[data-biome-v442="dead_tape"] .pb-bande .pb-bobine-tourne { animation-duration: 0.5s; animation-direction: reverse; }
.pb-hote.pb-eclat[data-biome-v442="dead_tape"] .pb-bande .pb-ruban { animation: pb-emmele 0.5s ease-in-out 3; }
@keyframes pb-emmele { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
.pb-hote.pb-eclat[data-biome-v442="dead_tape"] { animation: pb-tracking-saut 0.6s steps(3); }
@keyframes pb-tracking-saut { 0%, 100% { translate: 0 0; } 33% { translate: 2px 0; } 66% { translate: -2px 0; } }
.pb-hote[data-biome-v442="dead_tape"] .pb-fond::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(30, 18, 6, 0.6)); }

/* ------------------------------------------------------------------ ARRÊT SUR IMAGE : le givre */
.pb-givre { filter: drop-shadow(0 0 2px rgba(160, 228, 255, 0.8)); }
.pb-givre .pb-g-tronc { stroke: #eefaff; stroke-width: 1.5; }
.pb-givre .pb-g-aiguille { stroke: #cdefff; stroke-width: 0.8; }
.pb-givre .pb-g-barre rect { fill: rgba(255, 255, 255, 0.5); }
.pb-hote.pb-eclat[data-biome-v442="freeze_frame"] .pb-givre .pb-g-tronc { stroke-width: 2.4; }
.pb-voile-freeze_frame { background: rgba(230, 248, 255, 0.34); animation: pb-flash 0.65s ease-out; }
.pb-hote[data-biome-v442="freeze_frame"] .pb-osd { animation: pb-clignote 1.6s steps(1) infinite; }
@keyframes pb-clignote { 50% { opacity: 0.25; } }
.pb-hote[data-biome-v442="freeze_frame"] .pb-fond::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(30% 34% at 0% 0%, rgba(220, 244, 255, 0.22), transparent 70%),
    radial-gradient(30% 34% at 100% 0%, rgba(220, 244, 255, 0.22), transparent 70%),
    radial-gradient(30% 34% at 100% 100%, rgba(220, 244, 255, 0.2), transparent 70%),
    radial-gradient(30% 34% at 0% 100%, rgba(220, 244, 255, 0.2), transparent 70%);
}

/* ------------------------------------------------------------------ SIGNAL PERDU : neige, barres vides */
.pb-signal .pb-s-barres rect { fill: rgba(255, 255, 255, 0.28); }
.pb-signal .pb-s-croix { fill: none; stroke: #ff4a4a; stroke-width: 2; }
.pb-signal .pb-roule { fill: rgba(255, 255, 255, 0.05); animation: pb-defile 4.5s linear infinite; }
.pb-voile-mire {
  background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.42%, #c00000 0 85.71%, #0000c0 0);
  animation: pb-mire 0.8s steps(1);
}
@keyframes pb-mire { 0% { opacity: 0; } 8% { opacity: 0.85; } 60% { opacity: 0.85; } 61% { opacity: 0; } }
.pb-hote[data-biome-v442="lost_signal"] .pb-osd { color: #fff; background: #1030c8; border-color: #fff; text-shadow: none; }

/* ------------------------------------------------------------------ téléphone en paysage : un cadre plus fin */
@media (max-height: 500px) {
  .pb-foret .pb-tige { stroke-width: 2; }
  .pb-tempete .pb-arc { stroke-width: 1; }
  .pb-hote .pb-osd { font-size: 6px; padding: 1px 4px; }
}

/* ------------------------------------------------------------------ mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  .pb-hote { transition-duration: 0s; }
  .pb-cadre .pb-pousse, .pb-foret .pb-feuille, .pb-ocean .pb-v-monte { animation: none !important; stroke-dashoffset: 0; scale: 1; }
  .pb-classique circle, .pb-volcan, .pb-bande .pb-bobine-tourne, .pb-bande .pb-tracking, .pb-signal .pb-roule, .pb-ocean .pb-v1, .pb-ocean .pb-v2, .pb-hote .pb-fond::before, .pb-hote .pb-fond::after, .pb-hote .pb-osd { animation: none !important; }
  .pb-hote.pb-eclat { animation: none !important; }
}
