/*
 * Nashoba × HoloPocket — couche HTML pour OBS (thème nuit).
 *
 * Direction artistique : celle de holopocket.fr en thème sombre. Panneaux #18181b à bordure claire de 2 px,
 * ombres dures décalées (4px 4px 0 #000, comme sur le site), jaune de marque #ffd60a, un seul mot en holo
 * par titre, titres en Bricolage Grotesque 800 très serrés, texte courant en Geist.
 *
 * Polices : Bricolage Grotesque et Geist (SIL Open Font License 1.1), fichiers locaux dans ./fonts
 * (licences : fonts/OFL-*.txt). Aucun appel réseau : les pages marchent en fichier local dans OBS
 * comme servies par le serveur (/holo/...).
 *
 * Pages de PRODUCTION (sources OBS en fichier local, sans paramètre ; mise en page : obs-holo/layout.json) :
 *   starting.html · pause.html · ending.html (cartes titre) · frame-chatting.html · frame-gaming.html (pastilles ;
 *   depuis le 2026-11-02, plus de pochette géante et frame-gaming-back.html reste vide) · frame-screen.html
 *   (cadre de l'écran partagé) · guides*.html (repères de calage).
 * Autres : scene.html?kind=… (variante paramétrable) · live.html (maquette avec contenu d'exemple) · card*.html.
 * Paramètres communs : still (fige les animations, pour les rendus) · guides=1 (repères de mise en page).
 * Rendu PNG de toutes les pages : bash html-overlays/scripts/render-holo.sh
 *
 * Note OBS : une source navigateur est rendue sur fond transparent, donc backdrop-filter ne floute pas la
 * scène OBS en dessous. Les panneaux sont donc pleins (opaques), pas « givrés » : à 95 % la chambre
 * transparaissait comme une salissure.
 *
 * Hiérarchie (live) : bordure claire + grande ombre dure réservées à l'alerte et au jaune de la pastille de
 * scène ; les panneaux secondaires (musique, barres « Dernier », chat, statut, étiquette de nom) prennent le
 * liseré discret --line et la petite ombre --hard-sm, comme les panneaux secondaires du site.
 */

/* ── Polices ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: block;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
    url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: block;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations"),
    url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations"),
    url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"),
    url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"),
    url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

/* ── Jetons ──────────────────────────────────────────────────────────────── */

:root {
  /* Interface HoloPocket, thème sombre */
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #242428;
  --line: #313136;
  --ink: #f4f4f1;
  --muted: #9d9da3;
  --shade: #000;
  --brand: #ffd60a;
  --on-brand: #111;
  --accent: #8398ff;
  --live: #ff4f6d;

  /* Panneaux sur la scène 3D : pleins (voir la note OBS en tête) */
  --panel-a: rgb(24 24 27 / 1);
  --panel-2-a: rgb(36 36 40 / 1);

  /* Holo, dans l'ordre du site */
  --holo-1: #ff4fa3;
  --holo-2: #8b6bff;
  --holo-3: #1fc8ff;
  --holo-4: #2fe39a;
  --holo-5: #ffc400;
  --holo-logo-2: #7c5cff;
  --holo: linear-gradient(90deg, var(--holo-1), var(--holo-2), var(--holo-3), var(--holo-4), var(--holo-5), var(--holo-1));
  --holo-card: linear-gradient(145deg, #ff4fa3 0%, #7c5cff 30%, #1fc8ff 55%, #2fe39a 80%, #ffc400 100%);
  --holo-pastel: linear-gradient(115deg, #ff9ad5, #b69cff, #8fd8ff, #9ef5c8, #fff29a, #ff9ad5);
  --holo-foil: repeating-linear-gradient(110deg, #ff7bc2 0%, #ffd36b 7%, #7dffb0 14%, #6bd6ff 21%, #b18cff 28%, #ff7bc2 35%);
  /* Halo froid (rose, violet, cyan) : sur fond sombre, le vert et l'or d'un halo flou virent à l'olive */
  --holo-halo: conic-gradient(#ff4fa3, #7c5cff, #1fc8ff, #7c5cff, #ff4fa3);

  /* Lueurs des raretés (SR violet, UR ambre) et particules de la chambre */
  --glow-purple: rgb(168 85 247 / 0.75);
  --glow-amber: rgb(245 158 11 / 0.8);
  --dust: #ffe7c2;
  --firefly: #fff27a;
  --crystal: #9fe8ff;
  --crystal-gold: #ffe08a;

  /* Typo */
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque Variable", "Geist Variable", ui-sans-serif, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, monospace;
  --track-display: -0.03em;

  /* Formes */
  --r-hero: 28px;
  --r-card: 20px;
  --r-tile: 14px;
  --border: 2px solid var(--ink);
  --border-line: 2px solid var(--line);
  --hard-sm: 3px 3px 0 var(--shade);
  --hard: 4px 4px 0 var(--shade);
  --hard-lg: 6px 6px 0 var(--shade);
  --hard-xl: 8px 8px 0 var(--shade);
  --lift: 0 28px 70px -18px rgb(0 0 0 / 0.75);

  --sparkle-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.5 8.5L24 12l-8.5 3.5L12 24l-3.5-8.5L0 12l8.5-3.5z'/%3E%3C/svg%3E");
}

/* ── Base ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
}
body {
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
}
img {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* Une page OBS = une scène de taille fixe */
.stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}

/* ── Texte holo (.ink-holo du site) ──────────────────────────────────────── */

.ink-holo {
  background: var(--holo) 0% 50% / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: holo 9s linear infinite;
  /* le dégradé déborde sous les jambages : on garde de l'air */
  padding: 0 0.04em 0.08em 0;
  margin: 0 -0.04em -0.08em 0;
}

/* ── Titres ──────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.92;
}
.label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Étincelle (le motif blanc à 4 branches du logo) ─────────────────────── */

.sparkle {
  --s: 24px;
  --c: #fff;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  flex: none;
  background: var(--c);
  -webkit-mask: var(--sparkle-mask) center / contain no-repeat;
  mask: var(--sparkle-mask) center / contain no-repeat;
}
.sparkle--float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  filter: drop-shadow(0 0 calc(var(--s) * 0.35) var(--c));
  animation: twinkle var(--t, 3.2s) ease-in-out var(--d, 0s) infinite;
}

/* ── Pastille (kicker) : le bouton jaune du site, en pilule ──────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px 0 18px;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--hard);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip .sparkle {
  --s: 20px;
  --c: #111;
}
.chip--sm {
  height: 34px;
  gap: 7px;
  padding: 0 14px 0 11px;
  font-size: 14px;
  box-shadow: var(--hard-sm);
}
.chip--sm .sparkle {
  --s: 13px;
}
/* Badge du site : fond panneau, liseré discret, point qui pulse (secondaire : petite ombre) */
.chip--panel {
  border-color: var(--line);
  background: var(--panel-a);
  box-shadow: var(--hard-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dot {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--live));
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ── Panneaux ────────────────────────────────────────────────────────────── */

.panel {
  position: relative;
  background: var(--panel-a);
  border: var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--hard-lg);
}
.panel--lift {
  box-shadow: var(--hard-lg), var(--lift);
}
/* Panneau secondaire (musique, barres « Dernier », chat) : liseré --line et petite ombre dure, comme le site */
.panel--line {
  border: var(--border-line);
  box-shadow: var(--hard-sm);
}
.tile {
  display: grid;
  place-items: center;
  border: 2px solid #111;
  border-radius: var(--r-tile);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.22), inset 0 2px 0 rgb(255 255 255 / 0.35);
}

/* Bordure holo : un fond plein, le dégradé holo dans la bordure */
.holo-border {
  --bw: 3px;
  --fill: var(--panel);
  border: var(--bw) solid transparent;
  background:
    linear-gradient(var(--fill), var(--fill)) padding-box,
    conic-gradient(from var(--angle, 210deg), #ff4fa3, #8b6bff, #1fc8ff, #2fe39a, #ffc400, #ff4fa3) border-box;
  animation: angle 6s linear infinite;
}
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 210deg;
}

/* ── Logo : pochette jaune + carte holo (avec Limule dessus) + étincelle ── */

.mark {
  width: var(--m, 64px);
  height: var(--m, 64px);
  flex: none;
}
/* Symbole + nom, comme le logo du site (symbole 48 px, nom 32 px). --m = taille du symbole. */
.lockup {
  --m: 64px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--m) * 0.08);
}
.lockup .mark {
  width: var(--m);
  height: var(--m);
}
.lockup .wordmark {
  font-family: var(--font-display);
  font-size: calc(var(--m) * 0.62);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
/* Version empilée (dos de carte, grands formats) */
.lockup--stack {
  flex-direction: column;
  gap: 0;
}
.lockup--stack .wordmark {
  font-size: calc(var(--m) * 0.26);
  letter-spacing: -0.04em;
  text-shadow: calc(var(--m) * 0.012) calc(var(--m) * 0.015) 0 #000;
}

/* ── Carte titre (scènes Starting / Pause / Ending) ──────────────────────── */
/* Compacte : environ 840 × 480, centrée (x 540-1380, y 300-800) pour laisser voir la chambre autour */

.title-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: center;
  gap: 0;
  width: 840px;
  padding: 38px 34px 40px 50px;
  background: var(--panel-a);
  border: var(--border);
  border-radius: var(--r-hero);
  box-shadow: var(--hard-xl), var(--lift);
  isolation: isolate;
}
.title-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.title-card .chip {
  margin-bottom: 22px;
}
.headline {
  font-family: var(--font-display);
  font-size: 128px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.9;
}
.headline .ink-holo {
  display: inline-block;
}
.subtitle {
  margin-top: 20px;
  max-width: 560px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: balance;
}
.title-card__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 260px;
}
.title-card__art .mark {
  --m: 210px;
  position: relative;
  filter: drop-shadow(7px 8px 0 rgb(0 0 0 / 0.55));
  animation: bob 3.2s ease-in-out infinite;
}
/* Le halo conique de la vitrine en éventail du site */
.holo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--g, 420px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(#ff4fa3, #7c5cff, #1fc8ff, #2fe39a, #ffc400, #ff4fa3);
  filter: blur(calc(var(--g, 420px) * 0.16));
  opacity: var(--o, 0.42);
  pointer-events: none;
  animation: glow-spin 16s linear infinite;
}
/* Fine piste holo sous le sous-titre : chargement (starting), respiration (pause) */
.track {
  position: relative;
  width: 340px;
  height: 14px;
  margin-top: 26px;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: var(--hard-sm), inset 0 0 0 1px rgb(255 255 255 / 0.06);
  overflow: hidden;
}
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  border-radius: 999px;
  background: var(--holo) 0 0 / 300% 100%;
  animation: track 2.6s cubic-bezier(0.6, 0, 0.4, 1) infinite, holo 6s linear infinite;
}

/* ── Chat (source navigateur 340 × 720 ; 337 × 717 + petite ombre de 3 px) ── */

.chat {
  display: flex;
  flex-direction: column;
  width: 337px;
  height: 717px;
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 0 16px 0 14px;
  border-bottom: 2px solid var(--line);
  flex: none;
}
.chat__head .mark {
  --m: 40px;
}
.chat__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: var(--track-display);
}
.chat__head .chip {
  margin-left: auto;
}
.chat__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 12px 14px;
  overflow: hidden;
  -webkit-mask: linear-gradient(transparent 0, #000 64px);
  mask: linear-gradient(transparent 0, #000 64px);
}
.msg {
  padding: 9px 13px 10px;
  border-radius: var(--r-tile);
  background: var(--panel-2-a);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.msg__who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c, var(--accent));
}
.msg__badge {
  display: inline-grid;
  place-items: center;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border: 1.5px solid #111;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #111;
  background: var(--b, var(--ink));
}
.msg__badge .sparkle {
  --s: 11px;
  --c: #111;
}
/* Message de Nashoba : teinte violette (le jaune est réservé à l'alerte et à la pastille de scène) */
.msg--host {
  background: rgb(139 107 255 / 0.16);
  box-shadow: inset 0 0 0 2px rgb(139 107 255 / 0.6);
}
.msg--mod .msg__who {
  --b: var(--holo-4);
}
.emote {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}

/* ── Barres « Dernier … » (sources 600 × 76 ; 596 × 72 + petite ombre) ──── */

.latest {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 596px;
  height: 72px;
  padding: 0 14px 0 8px;
  border-radius: 16px;
}
.latest .tile {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.latest__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.latest__label {
  font-size: 13px;
  line-height: 1;
}
.latest__name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: var(--hard-sm);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.pill--brand {
  background: var(--brand);
  color: #111;
}
.pill--mono {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pill--line {
  border-color: var(--line);
  box-shadow: none;
  color: var(--muted);
}

/* ── Alerte (toast, dans la bande des alertes) ───────────────────────────── */

.toast {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 26px;
  width: max-content;
  min-width: 560px;
  max-width: 900px;
  padding: 14px 36px 16px 24px;
  border-radius: 24px;
  box-shadow: var(--hard-lg), 0 0 36px -8px var(--glow-purple);
}
.toast__card {
  position: relative;
  align-self: start;
  width: 76px;
  height: 104px;
  margin: -22px 0 0 4px;
  rotate: -10deg;
  border: 3px solid #111;
  border-radius: 11px;
  background: var(--holo-card);
  box-shadow: 4px 5px 0 #000;
  animation: hit 2.4s ease-in-out infinite;
}
.toast__card .sparkle {
  position: absolute;
  right: 10px;
  top: 10px;
  --s: 24px;
}
.toast__card .sparkle + .sparkle {
  right: auto;
  top: auto;
  left: 12px;
  bottom: 14px;
  --s: 13px;
}
.toast__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.toast__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.95;
}
.toast__line {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
}

/* ── Musique : lecteur compact (source 500 × 120 ; 497 × 117 + petite ombre) ── */

.music {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  column-gap: 18px;
  width: 497px;
  height: 117px;
  padding: 0 22px 0 14px;
  border-radius: 18px;
}
.music__cover {
  position: relative;
  width: 86px;
  height: 86px;
  rotate: -5deg;
  border: 2.5px solid #111;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 50%, #111 0 12%, transparent 12.5%),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgb(17 17 17 / 0.85) 34.5% 36.5%, transparent 37%),
    radial-gradient(circle at 50% 50%, transparent 0 50%, rgb(17 17 17 / 0.7) 50.5% 52.5%, transparent 53%),
    var(--holo-card);
  box-shadow: 3px 4px 0 #000;
}
.music__cover .sparkle {
  position: absolute;
  right: 7px;
  top: 6px;
  --s: 16px;
}
.music__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
/* Petit sur-titre « En écoute » (étiquette grise, égaliseur holo) au lieu d'une pastille jaune */
.music__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1;
}
.music__kicker .eq {
  height: 12px;
}
.music__kicker .eq i {
  width: 3px;
  background: var(--holo-1);
}
.music__kicker .eq i:nth-child(2) {
  background: var(--holo-2);
}
.music__kicker .eq i:nth-child(3) {
  background: var(--holo-3);
}
.music__kicker .eq i:nth-child(4) {
  background: var(--holo-4);
}
.music__title {
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music__artist {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
/* Progression sur une ligne : temps écoulé · barre · durée */
.music__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 9px;
}
.bar {
  position: relative;
  height: 10px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}
.bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 40%);
  border-radius: 999px;
  background: var(--holo) 0 0 / 300% 100%;
  animation: holo 9s linear infinite;
}
.music__time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: #111;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.eq i:nth-child(2) {
  animation-delay: -0.3s;
  scale: 1 0.55;
}
.eq i:nth-child(3) {
  animation-delay: -0.6s;
  scale: 1 0.8;
}
.eq i:nth-child(4) {
  animation-delay: -0.15s;
  scale: 1 0.4;
}

/* ── Cadre caméra / zone avatar : coins fins + étiquette de nom ──────────── */

.cam-frame {
  position: absolute;
  --arm: 44px;
  --w: 3px;
  --c: rgb(244 244 241 / 0.4);
  pointer-events: none;
}
.cam-frame > i {
  position: absolute;
  width: var(--arm);
  height: var(--arm);
  border: 0 solid var(--c);
}
.cam-frame > i:nth-child(1) {
  left: 0;
  top: 0;
  border-left-width: var(--w);
  border-top-width: var(--w);
  border-top-left-radius: 22px;
}
.cam-frame > i:nth-child(2) {
  right: 0;
  top: 0;
  border-right-width: var(--w);
  border-top-width: var(--w);
  border-top-right-radius: 22px;
}
.cam-frame > i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-left-width: var(--w);
  border-bottom-width: var(--w);
  border-bottom-left-radius: 22px;
}
.cam-frame > i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right-width: var(--w);
  border-bottom-width: var(--w);
  border-bottom-right-radius: 22px;
}
.nametag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px 0 8px;
  border: var(--border-line);
  border-radius: 999px;
  background: var(--panel-a);
  box-shadow: var(--hard-sm);
}
.nametag .lockup {
  --m: 46px;
}
.nametag .mark {
  margin-top: -6px;
}
.nametag__role {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Carte à collectionner Nashoba (750 × 1050) ─────────────────────────── */

.tcg {
  position: relative;
  width: 750px;
  height: 1050px;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}
/* Cadre holo : dégradé du logo, reflet arc-en-ciel « foil » du site, stries fines */
.tcg__frame {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgb(255 255 255 / 0.16) 0 2px, transparent 2px 10px),
    var(--holo-card);
}
.tcg__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--holo-foil);
  background-size: 300% 300%;
  background-position: 35% 40%;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: foil 9s ease-in-out infinite alternate;
}
.tcg::after {
  /* liseré extérieur */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px #111;
  pointer-events: none;
}
.tcg__body {
  position: absolute;
  inset: 24px;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 20px;
  border: 3px solid #111;
  border-radius: 24px;
  background: radial-gradient(120% 60% at 50% 0%, #26262c 0%, #18181b 62%) #18181b;
}
.tcg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 92px;
  padding: 0 4px 0 8px;
}
.tcg__name {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tcg__type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px 0 12px;
  border: 2.5px solid #111;
  border-radius: 999px;
  background: var(--holo-2);
  color: #111;
  box-shadow: var(--hard-sm);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.tcg__type svg {
  width: 30px;
  height: 30px;
}
.tcg__art {
  position: relative;
  height: 522px;
  margin-top: 10px;
  border: 3px solid #111;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 45% at 50% 62%, rgb(139 107 255 / 0.55), transparent 70%),
    linear-gradient(180deg, #120f2e 0%, #22194f 42%, #3a2466 72%, #4b2a63 100%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.08);
}
.tcg__stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 8% 14%, #fff 60%, transparent 70%),
    radial-gradient(1.6px 1.6px at 22% 32%, #fff 60%, transparent 70%),
    radial-gradient(2.4px 2.4px at 36% 9%, #fff 60%, transparent 70%),
    radial-gradient(1.4px 1.4px at 47% 24%, #fff 60%, transparent 70%),
    radial-gradient(2px 2px at 63% 13%, #fff 60%, transparent 70%),
    radial-gradient(1.6px 1.6px at 74% 36%, #fff 60%, transparent 70%),
    radial-gradient(2.2px 2.2px at 88% 20%, #fff 60%, transparent 70%),
    radial-gradient(1.4px 1.4px at 93% 44%, #fff 60%, transparent 70%),
    radial-gradient(1.8px 1.8px at 13% 48%, #fff 60%, transparent 70%),
    radial-gradient(1.4px 1.4px at 31% 55%, #fff 60%, transparent 70%),
    radial-gradient(1.6px 1.6px at 81% 58%, #fff 60%, transparent 70%),
    radial-gradient(1.2px 1.2px at 56% 41%, #fff 60%, transparent 70%);
  opacity: 0.9;
}
.tcg__moon {
  position: absolute;
  left: 62px;
  top: 52px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  box-shadow: 18px -10px 0 0 #ffe9a8;
  filter: drop-shadow(0 0 16px rgb(255 224 138 / 0.7));
  rotate: -20deg;
}
.tcg__art .holo-glow {
  --g: 420px;
  --o: 0.5;
  top: 58%;
}
/* Sol en planches pixel, façon chambre HoloPocket (pixels nets), vu en perspective */
.tcg__floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -6px;
  height: 230px;
  transform: perspective(520px) rotateX(58deg);
  transform-origin: 50% 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8' shape-rendering='crispEdges'%3E%3Crect width='32' height='8' fill='%23b8783c'/%3E%3Crect width='32' height='4' fill='%23c98a49'/%3E%3Crect y='3' width='32' height='1' fill='%238f5b2c'/%3E%3Crect y='7' width='32' height='1' fill='%23845228'/%3E%3Crect x='13' width='1' height='3' fill='%238f5b2c'/%3E%3Crect x='5' y='4' width='1' height='3' fill='%23845228'/%3E%3Crect x='24' y='4' width='1' height='3' fill='%23845228'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23d99c5a'/%3E%3Crect x='17' y='1' width='3' height='1' fill='%23d99c5a'/%3E%3Crect x='27' y='2' width='2' height='1' fill='%23b07136'/%3E%3Crect x='9' y='5' width='4' height='1' fill='%23c4844a'/%3E%3Crect x='28' y='5' width='2' height='1' fill='%23a56b35'/%3E%3Crect x='19' y='6' width='2' height='1' fill='%23a56b35'/%3E%3C/svg%3E")
    0 0 / 160px 40px;
  image-rendering: pixelated;
}
.tcg__floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(18 12 40 / 0.85) 0%, rgb(18 12 40 / 0.2) 45%, rgb(255 214 140 / 0.08) 100%);
}
.tcg__floor-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgb(10 8 20 / 0.55));
}
/* Limule (../img/limule.png, 1040 × 632, render_limule_art.py) affiché à 50 % : 520 × 316, 1 px de l'image = 1 px
   de la texture 2x. Au-dessus du foil : la gelée et le masque gardent les couleurs de l'avatar (sous le foil en
   soft-light, la gelée virait au lavande et les arabesques grises au vert) ; dans Blender, le foil de la carte
   (build_card.py) passe encore sur toute l'illustration. */
.tcg__hero {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 40px;
  height: 316px;
  translate: -50% 0;
  filter: drop-shadow(0 10px 0 rgb(0 0 0 / 0.35)) drop-shadow(0 0 30px rgb(255 214 140 / 0.35));
}
.tcg__foil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0.32) 48%, rgb(255 255 255 / 0.06) 54%, transparent 62%),
    var(--holo-foil);
  background-size:
    250% 100%,
    300% 300%;
  background-position:
    60% 0,
    40% 30%;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  animation: sweep 5s ease-in-out infinite;
}
.tcg__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  margin: 16px 20px 0;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: var(--hard-sm);
  font-size: 18px;
  font-weight: 600;
  color: #c9c9ce;
  white-space: nowrap;
}
.tcg__info b {
  color: var(--ink);
  font-weight: 800;
}
.tcg__info i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.tcg__talent {
  margin: 20px 8px 0;
}
.tcg__talent-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tcg__talent-name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
}
.tcg__talent p {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  color: #c9c9ce;
}
.tcg__flavour {
  position: relative;
  margin-top: 18px;
  padding: 18px 28px 20px 62px;
  border-radius: 18px;
  background: var(--panel-2);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.38;
  color: #dcdce0;
  text-wrap: pretty;
}
.tcg__flavour::before {
  content: "«";
  position: absolute;
  left: 18px;
  top: 4px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  background: var(--holo) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tcg__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 6px 0 8px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}
.tcg__rarity {
  display: inline-flex;
  gap: 6px;
}
.tcg__rarity .sparkle {
  --s: 20px;
  filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.6));
}
.tcg__foot .mark {
  --m: 44px;
}

/* Dos : rayures sombres et liseré jaune du dos maison du site, logo au centre, balayage holo */
.tcg--back {
  background:
    radial-gradient(circle at 50% 46%, rgb(255 214 10 / 0.22), transparent 58%),
    repeating-linear-gradient(-45deg, #161616 0 16px, #1d1d1d 16px 32px);
}
.tcg__back-border {
  position: absolute;
  inset: 52px;
  border: 4px solid rgb(255 214 10 / 0.9);
  border-radius: 26px;
  box-shadow: 0 0 0 3px #111, inset 0 0 0 3px #111;
}
.tcg__back-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tcg__back-center .holo-glow {
  --g: 500px;
  --o: 0.38;
  top: 44%;
}
.tcg__back-center .lockup {
  --m: 400px;
  position: relative;
  margin-top: -30px;
}
.tcg__back-center .mark {
  filter: drop-shadow(12px 14px 0 rgb(0 0 0 / 0.6));
}
.tcg__back-tag {
  position: relative;
  margin-top: 22px;
}
.tcg__sweep {
  position: absolute;
  inset: -10%;
  z-index: 4;
  background: var(--holo-pastel);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(118deg, transparent 22%, #000 40%, #000 52%, transparent 70%) 0 0 / 100% 100%;
  mask: linear-gradient(118deg, transparent 22%, #000 40%, #000 52%, transparent 70%) 0 0 / 100% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
  animation: holo 12s linear infinite;
}
.tcg__sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 40%, rgb(255 255 255 / 0.22) 46%, transparent 52%);
  mix-blend-mode: overlay;
}
.tcg__corner {
  position: absolute;
  --s: 30px;
}

/* ── Pastilles de statut (« En direct » + scène) ─────────────────────────── */
/* Toujours hors de la bande des alertes. Live : x96 y54. Jeu : version --sm au milieu du bord gauche. */

.status {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status .chip {
  height: 42px;
  font-size: 16px;
}
.status .chip--panel {
  gap: 10px;
  padding: 0 18px 0 16px;
}
.status .chip .sparkle {
  --s: 15px;
}
.status .dot {
  width: 11px;
  height: 11px;
}
.status--sm {
  gap: 10px;
}
.status--sm .chip {
  height: 34px;
  gap: 7px;
  padding: 0 14px 0 11px;
  font-size: 14px;
  box-shadow: var(--hard-sm);
}
.status--sm .chip--panel {
  gap: 8px;
  padding: 0 14px 0 12px;
}
.status--sm .chip .sparkle {
  --s: 13px;
}
.status--sm .dot {
  width: 9px;
  height: 9px;
}

/* ── Scènes d'attente : carte titre centrée sur la chambre (starting, pause, ending) ── */

.scene {
  display: grid;
  place-items: center;
}
/* Halo holo très doux derrière la carte : il la détache de la chambre sans la teinter (rose, violet, cyan) */
.scene__glow {
  --o: 0.16;
  width: 900px;
  aspect-ratio: auto;
  height: 520px;
  top: 551px;
  background: var(--holo-halo);
  filter: blur(70px);
  /* grand halo flouté : fixe, pour ménager le GPU d'OBS */
  animation: none;
}
.scene .title-card {
  margin-top: 20px;
}
/* Halo du logo : rose, violet, cyan seulement (avec le vert et l'or il virait à l'olive) */
.title-card__art .holo-glow {
  --g: 230px;
  --o: 0.32;
  background: var(--holo-halo);
}
.title-card__art .sparkle--float {
  z-index: 2;
}
/* Pause : la piste respire au lieu de charger */
[data-kind="pause"] .track::after {
  width: 100%;
  animation: breathe 3.2s ease-in-out infinite, holo 9s linear infinite;
}
[data-kind="ending"] .track {
  display: none;
}

/* ── Écran partagé : cadre holo autour de l'incrustation (frame-screen.html) ── */
/* Le cadre est AU-DESSUS de la capture : son biseau noir arrondi recouvre les coins carrés de la capture.
   Capture visible x105 y83, 1374 × 773 (2560 × 1440 × 0,53672). Cadre extérieur x96 y74, 1392 × 791. */

.screen-frame {
  position: absolute;
  left: 96px;
  top: 74px;
  width: 1392px;
  height: 791px;
  border-radius: 20px;
  pointer-events: none;
  /* ombre dure + voile sombre sur la chambre hors de l'incrustation (le trou suit l'arrondi) */
  box-shadow:
    8px 8px 0 var(--shade),
    0 0 0 2400px rgb(14 14 16 / 0.5);
}
/* biseau noir de 6 px (rayon intérieur 11 px) : masque les coins de la capture */
.screen-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 6px solid #111;
  border-radius: 17px;
}
/* liseré holo de 3 px, intérieur transparent */
.screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 20px;
  background: conic-gradient(from var(--angle, 210deg), #ff4fa3, #8b6bff, #1fc8ff, #2fe39a, #ffc400, #ff4fa3);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: angle 6s linear infinite;
}
/* Colonne de droite (musique, chat fantôme, avatar) : un peu plus sombre pour la lisibilité du chat fantôme */
.screen-side {
  position: absolute;
  left: 1496px;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgb(8 8 10 / 0.38) 48px);
  pointer-events: none;
}
/* Vignette : coins de la chambre encore plus sombres. L'ellipse transparente (1000 × 570 autour du centre de
   l'incrustation, 792 × 470) contient tout le cadre : la capture n'est jamais assombrie. */
.screen-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 570px at 792px 470px, transparent 100%, rgb(8 8 10 / 0.5) 165%);
  pointer-events: none;
}

/* ── Repères de mise en page (?guides=1) ─────────────────────────────────── */

.guide {
  display: none;
  position: absolute;
  z-index: 50;
  border: 2px dashed rgb(31 200 255 / 0.9);
  color: rgb(31 200 255);
  font: 600 14px/1 var(--font-mono);
  pointer-events: none;
}
.guide > span {
  position: absolute;
  left: 6px;
  top: 6px;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.75);
}
.guide--band {
  border-color: rgb(255 79 163 / 0.9);
  background: repeating-linear-gradient(-45deg, rgb(255 79 163 / 0.12) 0 12px, transparent 12px 24px);
  color: #ff4fa3;
}
.guides .guide {
  display: block;
}
/* Lignes (bord du bureau, axes de calage de l'avatar) */
.guide--line {
  border-width: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}
.guide--line > span {
  top: -28px;
}
.guide--target {
  border-color: rgb(255 79 163 / 0.95);
  border-style: solid;
  color: #ff4fa3;
}
.guide--target > span {
  left: 8px;
  top: 8px;
}
/* Silhouette fantôme de la doublure (guides*.html) */
.guide-ghost {
  position: absolute;
  z-index: 49;
  opacity: 0.38;
  filter: grayscale(1) brightness(1.4) drop-shadow(0 0 0 #1fc8ff);
  pointer-events: none;
}

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes holo {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}
@keyframes angle {
  to {
    --angle: 570deg;
  }
}
@keyframes glow-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.5deg);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.6;
    rotate: 0deg;
  }
  50% {
    opacity: 1;
    scale: 1;
    rotate: 45deg;
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes track {
  0% {
    translate: -110% 0;
  }
  100% {
    translate: 240% 0;
  }
}
@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes hit {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
}
@keyframes foil {
  from {
    background-position: 20% 30%;
  }
  to {
    background-position: 80% 70%;
  }
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sweep {
  0%,
  100% {
    background-position: 140% 0;
  }
  50% {
    background-position: -40% 0;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.deal {
  animation: deal 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
/* Dans OBS seulement (classe in-obs posée par holo.js) : les cartes d'attente (starting, pause, ending) se
   rechargent à l'activation de la scène, pendant que le stinger Holo couvre encore l'image (≈ 1 s). Leur entrée
   attend donc 1 s (« both » garde la carte invisible pendant l'attente). Navigateur, rendus et ?still : inchangés. */
.in-obs .title-card.deal {
  animation-delay: 1s;
}

/* Rendus fixes (headless) : ?still → aucune animation, état de base */
.still *,
.still *::before,
.still *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
