/* HOPIUM — terminal de trading satirique.
   Tout est sous .skin-hopium ; keyframes préfixées hopium-. Px logiques : 1600×900 (paysage), 900×1600 (portrait).
   Parti pris : panneaux à filets d'un pixel, aucun arrondi, mono pour le terminal, grotesque étroite pour les chiffres.
   Vert = hausse (toujours doublé d'un triangle vers le haut ou d'un « + »), rouge = baisse. */
.skin-hopium {
  --k0: #07090C; --k1: #0E1319; --k2: #131A22; --ln: #1B232D; --ln2: #2B3644;
  --tx: #E6EDF3; --dim: #8796A6; --up: #00E676; --upl: #8CFFC9; --dn: #FF3B5C; --amb: #FFB020; --vio: #8B5CF6;
  /* une seule famille de courbes : --e pose un état (léger dépassement), --em enchaîne des images clés ; steps() = impression du terminal */
  --e: cubic-bezier(.3, 1.4, .5, 1); --em: cubic-bezier(.3, 0, .5, 1);
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --big: 'Barlow Condensed', 'DIN Condensed', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  background: var(--k0); color: var(--tx); font-family: var(--mono); font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums;

  .hp-defs { position: absolute; }

  /* ---------- fond ---------- */
  .hp-bgfx { position: absolute; inset: 0; background:
    linear-gradient(rgba(27, 35, 45, .55) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(27, 35, 45, .55) 1px, transparent 1px) 0 0 / 40px 100%, var(--k0); }
  .hp-bgfx::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
  &[data-mode="fsA"] .hp-bgfx::after { opacity: 1; background: linear-gradient(90deg, rgba(0, 230, 118, .12), transparent 38%, transparent 62%, rgba(255, 59, 92, .13)); }
  &[data-mode="fsB"] .hp-bgfx::after { opacity: 1; background: linear-gradient(to top, rgba(0, 230, 118, .2), transparent 72%); }
  .hp-scan { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }

  /* ---------- panneaux ---------- */
  .hp-p { position: absolute; background: var(--k1); border: 1px solid var(--ln); }
  .hp-ph { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--ln); font-size: 12px; letter-spacing: .14em; color: var(--dim); white-space: nowrap; }
  .hp-ph b { display: flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 700; }
  .hp-ph b::before { content: ""; width: 7px; height: 7px; background: var(--up); }
  .hp-ph i { font-style: normal; }
  .hp-chip { display: inline-block; padding: 4px 8px 4px; background: var(--up); color: #04130B; font-size: 13px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }

  /* ---------- bandeau du haut ---------- */
  .hp-top { position: absolute; left: 0; top: 0; right: 0; height: 44px; display: flex; background: #0A0E13; border-bottom: 1px solid var(--ln); }
  .hp-logo { width: 296px; flex: none; display: flex; align-items: center; gap: 8px; padding-left: 16px; }
  .hp-logo svg { width: 34px; height: 28px; fill: var(--up); stroke: var(--up); stroke-width: 2; flex: none; }
  .hp-logo b { font: 900 31px/1 var(--big); letter-spacing: .08em; }
  .hp-logo i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #04130B; background: var(--up); padding: 4px 4px 2px; }
  .hp-tape { position: relative; flex: 1; min-width: 0; overflow: hidden; border-left: 1px solid var(--ln); border-right: 1px solid var(--ln); }
  .hp-tape-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; animation: hopium-tape 80s linear infinite; will-change: transform; }
  .hp-ti, .hp-th { margin: 0 20px; font-size: 14px; }
  .hp-ti b { font-weight: 700; margin-right: 8px; }
  .hp-ti i { font-style: normal; font-weight: 500; }
  .hp-ti i::before { content: ""; display: inline-block; margin-right: 4px; border: 5px solid transparent; }
  .hp-ti i.up { color: var(--up); }
  .hp-ti i.up::before { border-bottom-color: currentColor; transform: translateY(-3px); }
  .hp-ti i.dn { color: #FF7A90; }
  .hp-ti i.dn::before { border-top-color: currentColor; transform: translateY(3px); }
  .hp-th { color: var(--dim); letter-spacing: .04em; }
  .hp-th::before { content: "// "; color: #4F5D6C; }
  .hp-alert { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 16px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; transform: translateY(-102%); transition: transform .22s steps(5); background: var(--amb); color: #1A0F00; }
  .hp-alert.is-on { transform: none; }
  .hp-alert span { padding: 4px 8px 2px; background: #07090C; color: var(--amb); font-size: 12px; letter-spacing: .14em; }
  .hp-alert.is-red { background: var(--dn); color: #2A0008; }
  .hp-alert.is-red span { color: #FF7A90; }
  .hp-alert.is-green { background: var(--up); color: #04130B; }
  .hp-alert.is-green span { color: var(--up); }
  .hp-alert.is-vio { background: #6D3FE0; color: #fff; }
  .hp-alert.is-vio span { color: #C4B5FD; }
  .hp-status { width: 336px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13px; color: var(--dim); white-space: nowrap; }
  .hp-open { display: flex; align-items: center; gap: 8px; color: var(--up); font-weight: 700; letter-spacing: .08em; }
  .hp-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }

  /* ---------- colonne gauche : portfolio, PnL, position ---------- */
  .hp-port { left: 16px; top: 56px; width: 280px; height: 96px; }
  .hp-val { padding: 12px 12px 0; }
  .hp-port strong, .hp-pnl strong, .hp-pos strong { display: block; font-family: var(--big); font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; }
  .hp-val strong { font-size: 42px; }

  .hp-pnl { left: 16px; top: 164px; width: 280px; height: 236px; }
  .hp-pnl.is-pumped { animation: hopium-panel .6s steps(6); }
  .hp-pnl.is-fill { animation: hopium-fillp .5s steps(5); }
  .hp-pnl-now { padding: 12px 12px 0; height: 84px; }
  .hp-pnl-now strong { font-size: 62px; color: #56667A; transform-origin: 0 60%; transition: color .2s; }
  .hp-pnl-now strong::before { content: "+"; }
  &[data-haswin="1"] .hp-pnl-now strong { color: var(--up); }
  .hp-pnl-now strong.is-book { animation: hopium-tick .28s steps(4); }
  .hp-pnl-now strong.is-multiplied { animation: hopium-mult .7s steps(8); }
  .hp-pump-chip { margin: 4px 12px 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px dashed var(--ln2); color: var(--dim); font-size: 12px; letter-spacing: .14em; transition: background .2s, color .2s; }
  .hp-pump-chip b { font: 800 28px/1 var(--big); letter-spacing: .02em; }
  .hp-pnl.has-pump .hp-pump-chip { border: 1px solid var(--up); color: var(--up); background: rgba(0, 230, 118, .09); }
  .hp-pnl-last { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border-top: 1px solid var(--ln); color: var(--dim); font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
  .hp-pnl-last span { flex: none; }
  .hp-pnl-last strong { flex: 1; min-width: 0; text-align: right; font-size: 32px; color: var(--tx); letter-spacing: 0; }
  .hp-pnl-last strong.is-hit { color: var(--up); animation: hopium-tick .28s steps(4); }

  .hp-pos { left: 16px; top: 412px; width: 280px; height: 150px; }
  .hp-pos-row { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; }
  .hp-pos-row strong { flex: 1; min-width: 0; text-align: center; font-size: 40px; }
  .hp-pos-row strong.is-hit { animation: hopium-tick .28s steps(4); }
  .hp-step { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 1px solid var(--ln2); background: var(--k2); }
  .hp-step svg { width: 22px; height: 22px; fill: none; stroke: var(--tx); stroke-width: 2.6; stroke-linecap: square; }
  .hp-step:hover { border-color: var(--up); }
  .hp-step:active { background: var(--up); }
  .hp-step:active svg { stroke: #04130B; }
  &[data-busy="1"] .hp-step { opacity: .4; }
  .hp-pos-cost { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--ln); font-size: 12px; letter-spacing: .08em; color: var(--dim); white-space: nowrap; }
  .hp-pos-cost b { font: 800 22px/1 var(--big); letter-spacing: .02em; color: var(--tx); }
  .hp-pos-cost em { margin-left: auto; padding: 4px 4px 2px; font-style: normal; font-size: 11px; font-weight: 800; color: #1A0F00; background: var(--amb); }
  .hp-pos-cost em:empty { display: none; }
  &:is([data-feature="f1"], [data-feature="f2"]) .hp-pos-cost b { color: var(--amb); }

  /* ---------- fil des ordres exécutés / position ouverte (free spins) ---------- */
  .hp-feed { left: 16px; top: 574px; width: 280px; height: 222px; overflow: hidden; }
  .hp-feed-t::after { content: "RECENT FILLS"; }
  .hp-feed-s::after { content: "LAST 5"; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-feed-t::after { content: "OPEN POSITION"; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-feed-s::after { content: "FREE SPINS"; }
  .hp-fills { list-style: none; margin: 0; padding: 2px 0 0; }
  .hp-fills li { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--dim); white-space: nowrap; }
  .hp-fills li i { font-style: normal; flex: none; width: 44px; }
  .hp-fills li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
  .hp-fills li span { flex: none; font-weight: 700; }
  .hp-fills li.up b { color: var(--tx); }
  .hp-fills li.up span { color: var(--up); }
  .hp-fills li:first-child { animation: hopium-row .3s steps(4); }
  .hp-fs { display: none; flex-direction: column; height: 192px; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-fills { display: none; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-fs { display: flex; }
  .hp-fs-mode { width: fit-content; margin: 8px 12px 0; font: 900 36px/1 var(--big); letter-spacing: .04em; white-space: nowrap; color: var(--up); }
  &[data-mode="fsA"] .hp-fs-mode { background: linear-gradient(90deg, var(--up) 0 46%, var(--dn) 46% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hp-fs-row { display: flex; align-items: flex-end; gap: 12px; padding: 4px 12px 0; }
  .hp-fs-left { flex: none; display: flex; flex-direction: column; gap: 2px; }
  .hp-fs-left b { font: 900 76px/.88 var(--big); transform-origin: 0 100%; }
  .hp-fs-left b.is-hit { animation: hopium-tick .28s steps(4); }
  .hp-fs-left span, .hp-fs-tot span { font-size: 11px; letter-spacing: .14em; color: var(--dim); white-space: nowrap; }
  .hp-fs-tot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: 12px; }
  .hp-fs-tot b { display: block; width: 100%; text-align: right; font: 800 34px/1 var(--big); color: var(--up); white-space: nowrap; overflow: hidden; }
  .hp-fs-rule { margin-top: auto; height: 38px; flex: none; display: none; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--ln); font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
  .hp-fs-rule i { width: 8px; height: 8px; flex: none; }
  .hp-fs-rule b { font: 800 24px/1 var(--big); }
  .hp-fs-rule-a { color: #FF7A90; }
  .hp-fs-rule-a i { background: var(--dn); }
  .hp-fs-rule-b { color: var(--up); }
  .hp-fs-rule-b i { background: var(--up); }
  &[data-mode="fsA"] .hp-fs-rule-a, &[data-mode="fsB"] .hp-fs-rule-b { display: flex; }

  /* ---------- touches utilitaires ---------- */
  .hp-keys { position: absolute; left: 16px; top: 808px; width: 280px; height: 76px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hp-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--k1); border: 1px solid var(--ln); color: var(--dim); font-size: 10.5px; letter-spacing: .08em; }
  .hp-key svg, .hp-wx svg, .hp-mkt svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
  .hp-key svg { width: 26px; height: 26px; color: var(--tx); }
  .hp-key:hover { border-color: var(--dim); color: var(--tx); }
  .hp-ic-w { display: none; }
  &[data-sound="1"] .hp-ic-w { display: inline; }
  &[data-sound="1"] .hp-ic-x { display: none; }
  &[data-sound="1"] .hp-key-snd, &[data-turbo="1"] .hp-key-tb, &[data-auto="1"] .hp-key-au { border-color: var(--up); color: var(--up); background: rgba(0, 230, 118, .08); }
  &[data-sound="1"] .hp-key-snd svg, &[data-turbo="1"] .hp-key-tb svg, &[data-auto="1"] .hp-key-au svg { color: var(--up); }

  /* ---------- tableau de marché ---------- */
  .hp-board { left: 310px; top: 56px; width: 940px; height: 772px; --lvl: .04; transition: border-color .3s; }
  &[data-antic="1"] .hp-board { border-color: var(--amb); }
  &[data-antic="2"] .hp-board { border-color: var(--vio); }
  &[data-mode="fsB"] .hp-board { border-color: #0F7B48; }
  .hp-bh { position: relative; height: 38px; border-bottom: 1px solid var(--ln); overflow: hidden; }
  .hp-bh-norm { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px; white-space: nowrap; }
  .hp-bh-norm b { font: 800 22px/1 var(--big); letter-spacing: .04em; }
  .hp-bh-norm > i { margin-left: auto; font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--dim); }
  .hp-mode, .hp-feat-chip { padding: 4px 8px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; }
  .hp-mode { border: 1px solid var(--ln2); color: var(--dim); }
  .hp-mode::after { content: "SPOT"; }
  &[data-mode="fsA"] .hp-mode { border-color: transparent; color: #07090C; background: linear-gradient(90deg, var(--up) 0 50%, var(--dn) 50% 100%); }
  &[data-mode="fsA"] .hp-mode::after { content: "PUMP & DUMP"; }
  &[data-mode="fsB"] .hp-mode { border-color: var(--up); color: #04130B; background: var(--up); }
  &[data-mode="fsB"] .hp-mode::after { content: "BULL RUN · UP ONLY"; }
  .hp-feat-chip { background: var(--amb); color: #1A0F00; }
  .hp-feat-chip::after { content: " ARMED"; }
  .hp-feat-chip:empty { display: none; }
  .hp-bh-alert { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px; white-space: nowrap; transform: translateY(102%); transition: transform .2s steps(4); background: var(--amb); color: #1A0F00; }
  .hp-bh-alert b { font: 900 25px/1 var(--big); letter-spacing: .08em; }
  .hp-bh-alert span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
  &[data-antic="1"] .hp-bh-alert, &[data-antic="2"] .hp-bh-alert { transform: none; }
  &[data-antic="2"] .hp-bh-alert { background: #6D3FE0; color: #fff; }

  .hp-chart, .hp-grid, .hp-dip, .hp-marks { position: absolute; left: 6px; top: 44px; width: 840px; height: 700px; }
  .hp-chart { overflow: hidden; background:
    linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 16.6667% 100%, #0A0D12; }
  .hp-wm { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 900 150px/1 var(--big); letter-spacing: .04em; color: rgba(230, 237, 243, .04); white-space: nowrap; }
  .hp-hist { position: absolute; left: 0; top: 18%; width: 100%; height: 64%; opacity: .24; }
  .hp-hist .u { fill: var(--up); stroke: var(--up); }
  .hp-hist .d { fill: var(--dn); stroke: var(--dn); }
  .hp-hist line { stroke-width: 1.5; }
  .hp-up { position: absolute; left: 0; right: 0; top: 0; height: 200%; opacity: 0; transition: opacity .5s; background: repeating-linear-gradient(to top, rgba(0, 230, 118, .13) 0 2px, transparent 2px 70px); }
  &[data-mode="fsB"] .hp-up { opacity: 1; animation: hopium-up 2.2s linear infinite; }
  .hp-pline { position: absolute; left: 0; right: 0; bottom: calc(var(--lvl) * 100%); height: 0; border-top: 2px dashed var(--up); opacity: 0; transition: bottom .4s steps(8), opacity .2s; }
  .hp-board.is-pumped .hp-pline, &[data-mode="fsB"] .hp-pline { opacity: .9; }
  .hp-pump { position: absolute; inset: 0; }
  .hp-pc { position: absolute; width: 12px; margin-left: -4px; background: var(--up); box-shadow: 0 0 0 1px #04130B; transform-origin: 50% 100%; }
  .hp-pc::before { content: ""; position: absolute; left: 50%; width: 2px; margin-left: 0; top: -10px; bottom: -8px; background: var(--up); z-index: -1; }
  .hp-pc.is-new { animation: hopium-print .34s steps(6) both; }
  .hp-pc.is-god { width: 16px; margin-left: -8px; background: var(--upl); }
  .hp-pump.is-dump .hp-pc { background: var(--dn); box-shadow: 0 0 0 1px #2A0008; animation: hopium-crash .4s steps(6) forwards; }
  .hp-pump.is-dump .hp-pc::before { background: var(--dn); }

  .hp-grid { --tg-clip-y: -8px; --tg-clip-x: -40px; }
  .hp-dip { z-index: 4; pointer-events: none; opacity: 0; }
  /* le graphique marque le coup : repère d'exécution au cours en direct, comme sur un terminal de trading */
  .hp-marks { z-index: 4; pointer-events: none; overflow: hidden; }
  .hp-mark { position: absolute; width: 0; height: 0; animation: hopium-mark calc(1.4s * var(--tg-speed, 1)) linear both; }
  .hp-mark::before { content: ""; position: absolute; right: 0; top: 0; width: 2000px; border-top: 1px dashed var(--up); opacity: .7; }
  .hp-mark i { position: absolute; left: -6px; top: 8px; border: 6px solid transparent; border-top: 0; border-bottom: 8px solid var(--up); }
  .hp-mark b { position: absolute; right: 12px; bottom: 4px; padding: 2px 8px; background: var(--k0); border: 1px solid var(--up); color: var(--up); font: 800 12px/1.3 var(--mono); letter-spacing: .04em; white-space: nowrap; animation: hopium-type .22s steps(12) both; }
  .hp-mark[data-lv="1"] b { font-size: 14px; }
  .hp-mark[data-lv="2"] b { font-size: 16px; background: var(--up); color: #04130B; }
  .hp-dip path { fill: none; stroke: var(--dn); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hp-board.is-dip .hp-dip { animation: hopium-dipfade 1.5s linear both; }
  .hp-board.is-dip .hp-dip path { animation: hopium-draw .5s steps(10) forwards; }
  .hp-stamp { position: absolute; left: 426px; top: 394px; z-index: 5; transform: translate(-50%, -50%) rotate(-9deg); padding: 4px 32px 0; border: 9px solid var(--dn); color: var(--dn); background: rgba(7, 9, 12, .86); font: 900 128px/1 var(--big); letter-spacing: .04em; white-space: nowrap; opacity: 0; pointer-events: none; }
  .hp-stamp.is-on { animation: hopium-stamp 1.6s linear both; }
  .hp-toast { position: absolute; left: 426px; top: 394px; z-index: 5; transform: translate(-50%, -50%) scaleY(0); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 40px 12px; background: #07090C; border: 1px solid var(--up); box-shadow: 0 0 0 1px #000, 0 0 0 8px rgba(7, 9, 12, .72); white-space: nowrap; pointer-events: none; transition: transform .2s steps(4); }
  .hp-toast span { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--up); }
  .hp-toast strong { font: 900 84px/1 var(--big); letter-spacing: .02em; }
  .hp-toast b { color: var(--up); }
  &[data-retrigger="1"] .hp-toast { transform: translate(-50%, -50%) scaleY(1); }

  /* échelle de prix : le multiplicateur du spin (ou le cours du bull run) */
  .hp-axis { position: absolute; left: 854px; top: 44px; width: 80px; height: 700px; border-left: 1px solid var(--ln); }
  .hp-ax-ticks i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ln2); font-style: normal; }
  .hp-ax-ticks b { position: absolute; right: 6px; top: -9px; padding-left: 4px; font-size: 12.5px; font-weight: 500; line-height: 16px; color: var(--dim); background: var(--k1); }
  .hp-ax-fill { position: absolute; left: 0; bottom: 0; width: 8px; height: 100%; background: var(--up); transform-origin: 50% 100%; transform: scaleY(var(--lvl)); transition: transform .4s steps(8); opacity: .35; }
  .hp-board.is-pumped .hp-ax-fill, &[data-mode="fsB"] .hp-ax-fill { opacity: 1; }
  .hp-tag { position: absolute; left: 0; right: 0; bottom: calc(var(--lvl) * 100%); z-index: 2; height: 36px; margin-bottom: -16px; display: grid; place-items: center; padding-left: 12px; background: var(--ln2); color: var(--dim); font: 800 24px/1 var(--big); white-space: nowrap; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); transition: bottom .4s steps(8), background .2s; }
  .hp-tag b { display: none; }
  .hp-tag::after { content: "×1"; }
  .hp-tag.is-live { background: var(--up); color: #04130B; }
  .hp-tag.is-live::after { content: none; }
  .hp-tag.is-live b:first-child { display: block; }
  &[data-mode="fsB"] .hp-tag.is-live b:first-child { display: none; }
  &[data-mode="fsB"] .hp-tag.is-live b:last-child { display: block; }
  .hp-tag.is-hit { animation: hopium-taghit .32s steps(5); }
  .hp-tag.is-dump { background: var(--dn); color: #2A0008; }
  .hp-tag.is-dump::after { content: "DUMP"; }
  .hp-ath { position: absolute; right: 4px; bottom: calc(var(--lvl) * 100% + 30px); z-index: 3; padding: 2px 8px 0; border: 3px solid var(--up); color: var(--up); background: #07090C; font: 900 26px/1.1 var(--big); letter-spacing: .08em; transform: rotate(-8deg) scale(0); opacity: 0; }
  .hp-ath.is-on { animation: hopium-ath 1.8s linear both; }
  .hp-xaxis { position: absolute; left: 6px; top: 744px; width: 840px; height: 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ln); }
  .hp-xaxis i { display: grid; place-items: center; border-left: 1px solid var(--ln); font-style: normal; font-size: 12px; color: var(--dim); }

  .hp-console { left: 310px; top: 838px; width: 940px; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14.5px; white-space: nowrap; overflow: hidden; }
  .hp-prompt { color: var(--up); font-weight: 800; }
  .hp-log { color: var(--tx); }
  .hp-log.is-print { animation: hopium-type .3s steps(16) both; }
  .hp-log[data-kind="up"] { color: var(--up); }
  .hp-log[data-kind="dn"] { color: #FF7A90; }
  .hp-log[data-kind="amb"] { color: var(--amb); }
  .hp-log[data-kind="vio"] { color: #C4B5FD; }
  .hp-caret { width: 9px; height: 18px; flex: none; background: var(--up); animation: hopium-blink 1.1s linear infinite; }
  .hp-log-prev { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #74818F; }

  /* ---------- symboles ---------- */
  .tg-sym-in { inset: 7%; transform-origin: 50% 50%; }
  .tg-sym[data-kind="scatter"] .tg-sym-in { inset: 1% 3%; transform-origin: 50% 90%; }
  .tg-sym[data-kind="multi"] .tg-sym-in { inset: 2% 6%; transform-origin: 50% 100%; }
  .hp-tk { font: 800 12.5px var(--mono); letter-spacing: .08em; }
  .tg-sym[data-sym="h1"] { --c: #22D3EE; }
  .tg-sym[data-sym="h2"] { --c: #FFC53D; }
  .tg-sym[data-sym="h3"] { --c: #C4B5FD; }
  .tg-sym[data-sym="h4"] { --c: #2FB574; }
  .tg-sym[data-sym="l5"] { --c: #FF7A1A; }
  .tg-sym[data-sym="l4"] { --c: #3B82F6; }
  .tg-sym[data-sym="l3"] { --c: #FF3B5C; }
  .tg-sym[data-sym="l2"] { --c: #C445F5; }
  .tg-sym[data-sym="l1"] { --c: #12A5A0; }
  .tg-sym[data-kind="scatter"] { --c: #FFB020; }
  .tg-sym[data-kind="multi"] { --c: #00E676; }
  /* chute : traînée de vitesse, impact sec avec micro-glitch */
  .tg-sym.is-falling .tg-sym-in::before { content: ""; position: absolute; z-index: -1; left: 24%; right: 24%; bottom: 60%; height: 120%; background: linear-gradient(to top, color-mix(in srgb, var(--c, #fff) 62%, transparent), transparent); pointer-events: none; }
  .tg-sym.is-landing .tg-sym-in { animation: hopium-land .2s steps(4) both; }
  .tg-sym.is-landing::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 3%; height: 3px; background: var(--c, #fff); animation: hopium-tickline .3s steps(5) forwards; }
  .hp-glint { opacity: 0; }
  /* gain : crochets de sélection verts + pulsation ; perte de focus pour les autres */
  /* ---------- gain : annonce en vague, les perdants s'éteignent, chaque jeton réagit selon ce qu'il représente ----------
     Le geste est ici (images clés hopium-w-*), la matière est en GPU (skin.js : react() et les attaches de gpuInit).
     --wdl = retard de la vague, data-lv = palier du gain : posés par le hook onWins. */
  .tg-sym.is-win { z-index: 2; }
  .tg-sym.is-dim { opacity: .3; filter: saturate(.2); transition: opacity .16s var(--em), filter .16s var(--em); }
  .tg-sym.is-dim[data-col="1"] { transition-delay: 20ms; }
  .tg-sym.is-dim[data-col="2"] { transition-delay: 40ms; }
  .tg-sym.is-dim[data-col="3"] { transition-delay: 60ms; }
  .tg-sym.is-dim[data-col="4"] { transition-delay: 80ms; }
  .tg-sym.is-dim[data-col="5"] { transition-delay: 100ms; }
  .tg-sym.is-win .tg-sym-in { scale: 1.04; transition: scale .2s var(--e); }
  .tg-sym.is-win[data-lv="1"] .tg-sym-in { scale: 1.09; }
  .tg-sym.is-win[data-lv="2"] .tg-sym-in { scale: 1.14; }
  .tg-sym.is-win .tg-sym-in > * { transform-origin: 50% 50%; animation: hopium-w-l4 calc(.56s * var(--tg-speed, 1)) var(--em) calc(var(--wdl, 0ms) * var(--tg-speed, 1)) both; }
  .tg-sym.is-win[data-sym="h1"] .tg-sym-in > * { animation-name: hopium-w-h1; }  /* DMND : pivote et accroche la lumière */
  .tg-sym.is-win[data-sym="h2"] .tg-sym-in > * { animation-name: hopium-w-h2; }  /* BULL : recule, charge */
  .tg-sym.is-win[data-sym="h3"] .tg-sym-in > * { animation-name: hopium-w-h3; }  /* MOON : un tour sur son axe incliné */
  .tg-sym.is-win[data-sym="h4"] .tg-sym-in > * { animation-name: hopium-w-h4; }  /* BAGS : gonfle */
  .tg-sym.is-win[data-sym="l5"] .tg-sym-in > * { animation-name: hopium-w-l5; }  /* FOMO : s'étire et s'emballe */
  .tg-sym.is-win[data-sym="l3"] .tg-sym-in > * { animation-name: hopium-w-l3; }  /* REKT : coup de tampon */
  .tg-sym.is-win[data-sym="l2"] .tg-sym-in > * { animation-name: hopium-w-l2; }  /* SHILL : trois coups de voix */
  .tg-sym.is-win[data-sym="l1"] .tg-sym-in > * { animation-name: hopium-w-l1; }  /* RUG : se dérobe, se rattrape */
  /* COPE : la gélule se sépare. Deux moitiés du même jeton (la seconde est clonée par splitPill), coupées le long de la jointure */
  .tg-sym.has-half .tg-sym-in > :first-child { clip-path: polygon(-30% -30%, 130% -30%, 130% 130%); animation-name: hopium-w-l4a; }
  .tg-sym.has-half .tg-sym-in > .hp-half { position: absolute; inset: 0; clip-path: polygon(-30% -30%, 130% 130%, -30% 130%); animation-name: hopium-w-l4b; }
  /* encaissement : la pièce est frappée, puis son double file vers le PnL en tournant sur elle-même (kit.flyTo) */
  .tg-sym.is-pop .tg-sym-in { animation: hopium-strike calc(.3s * var(--tg-speed, 1)) linear both; }
  .tg-ghost[data-kind="pay"] .tg-sym-in { animation: hopium-coin calc(.43s * var(--tg-speed, 1)) linear both; }
  .tg-ghost.tg-ghost.tg-ghost[data-kind="pay"] .tg-sym-in > * { animation: none; }
  .tg-ghost.tg-ghost.tg-ghost[data-kind="pay"] .tg-sym-in::after { content: none; }
  /* la bougie et la fusée posées réagissent à l'exécution : la bougie monte d'un cran, la fusée donne un coup de tuyère */
  .tg-sym[data-kind="multi"].is-landed.is-uptick :is(img.tg-art, .hp-candle) { transform-origin: 50% 100%; animation: hopium-uptick calc(.36s * var(--tg-speed, 1)) var(--em) both; }
  .tg-sym[data-kind="scatter"].is-hop :is(img.tg-art, .hp-ship) { animation: hopium-hop calc(.4s * var(--tg-speed, 1)) var(--em) both; }
  /* l'ordre exécuté : ticket posé au pied du groupe, le montant s'imprime puis compte */
  .tg-pay { z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 8px; background: var(--k0); border: 1px solid var(--up); color: var(--up); font: 800 30px/1 var(--big); letter-spacing: .02em; text-shadow: none; translate: 0 36%; animation: hopium-payin calc(.24s * var(--tg-speed, 1)) steps(5) calc(.26s * var(--tg-speed, 1)) both; }
  .tg-pay i { font: 700 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--tx); }
  .tg-pay b { font: inherit; }
  .tg-pay:not(:has(b)) { display: block; }
  .tg-pay b::before, .tg-pay:not(:has(b))::before { content: "+"; }
  .tg-pay[data-lv="1"] { font-size: 36px; }
  .tg-pay[data-lv="2"] { font-size: 44px; }
  .tg-pay.is-out { animation: hopium-payout calc(.3s * var(--tg-speed, 1)) steps(5) forwards; }

  /* scatter : fusée sur son pas de tir */
  .hp-flame, .hp-smoke { opacity: 0; transform-box: fill-box; }
  .hp-flame { transform-origin: 50% 0; }
  .hp-smoke { transform-origin: 50% 100%; }
  .hp-smoke circle { fill: #9FB4C7; opacity: .55; }
  .tg-sym[data-kind="scatter"].is-landed .tg-sym-in { animation: hopium-sc-land .36s steps(5) both; }
  .tg-sym.is-teasing .hp-ship { animation: hopium-rumble .18s steps(2) infinite; }
  .tg-sym.is-teasing .hp-flame { opacity: 1; animation: hopium-flame .16s steps(2) infinite alternate; }
  .tg-sym.is-teasing .hp-smoke { opacity: 1; animation: hopium-smoke .9s var(--e) infinite; }
  .tg-sym.is-trigger .hp-ship { animation: hopium-ignite .12s steps(2) infinite; }
  .tg-sym.is-trigger .hp-flame { opacity: 1; animation: hopium-flame-big .1s steps(2) infinite alternate; }
  .tg-sym.is-trigger .hp-smoke { opacity: 1; animation: hopium-smoke .5s var(--e) infinite; }
  .tg-sym.is-missed .hp-ship, .tg-sym.is-missed .hp-flame, .tg-sym.is-missed .hp-smoke { animation: none; opacity: 0; }
  .tg-sym.is-missed .hp-ship { opacity: 1; }
  .tg-sym.is-missed .tg-sym-in { animation: hopium-missed .5s steps(5) forwards; }
  .tg-sym.is-launched .hp-ship { opacity: 0; animation: none; }
  .tg-ghost .hp-pad, .tg-ghost .hp-smoke { display: none; }
  .tg-ghost .hp-flame { opacity: 1; animation: hopium-flame-big .1s steps(2) infinite alternate; }

  /* multiplicateur : bougie verte. 4 paliers = 4 hauteurs + 4 étiquettes */
  .hp-candle { --cu: #00E676; --cul: #8CFFC9; --cud: #00A152; overflow: visible; }
  .hp-cw { stroke: var(--cu); stroke-width: 3.2; stroke-linecap: round; }
  .hp-cb { fill: var(--cu); }
  .hp-cl { fill: var(--cul); }
  .hp-cd { fill: var(--cud); }
  .hp-cm { fill: none; stroke: var(--amb); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .hp-bg { fill: #07090C; stroke: var(--cu); stroke-width: 1.8; }
  .hp-bt { font-family: var(--big); font-weight: 800; fill: var(--cu); }
  .hp-t-rare .hp-bg { stroke: #fff; stroke-width: 2.4; }
  .hp-t-rare .hp-bt { fill: #fff; }
  .hp-t-epic .hp-bg { fill: var(--amb); stroke: #FFE7A8; }
  .hp-t-epic .hp-bt { fill: #1A0F00; }
  .hp-t-legend .hp-cl { fill: #fff; }
  .hp-t-legend .hp-cd { fill: #5CF2A8; }
  .hp-t-legend .hp-bg { fill: #FFF3C4; stroke: var(--amb); stroke-width: 2.8; }
  .hp-t-legend .hp-bt { fill: #1A0F00; }
  .hp-t-legend .hp-cm { stroke: #FFF3C4; }
  .hp-rays { transform-box: view-box; transform-origin: 50px 50px; animation: hopium-rot 10s linear infinite; }
  .hp-rays path { fill: rgba(140, 255, 201, .22); }
  .hp-cglow { animation: hopium-breathe 1.5s var(--em) infinite alternate; }
  .hp-t-common .hp-cglow { opacity: .5; animation: none; }
  .tg-sym[data-kind="multi"].is-landed .hp-candle { transform-box: fill-box; transform-origin: 50% 100%; animation: hopium-print .3s steps(6) both; }
  .tg-sym.is-fizzle .hp-candle { --cu: #FF3B5C; --cul: #FF9AAB; --cud: #A3122B; }
  .tg-sym.is-fizzle .hp-cb-god { fill: var(--cu); }
  .tg-sym.is-fizzle .hp-cglow, .tg-sym.is-fizzle .hp-rays, .tg-sym.is-fizzle .hp-cm { opacity: 0; animation: none; }
  .tg-sym.is-fizzle .hp-bg { fill: #07090C; stroke: var(--dn); }
  .tg-sym.is-fizzle .hp-bt { fill: #FF7A90; }
  .tg-sym.is-fizzle .tg-sym-in { animation: hopium-liq .62s steps(7) forwards; }
  .tg-sym.is-fizzle::after { content: "LIQUIDATED"; position: absolute; left: 50%; top: 5%; z-index: 3; transform: translateX(-50%); padding: 4px 4px 2px; background: var(--dn); color: #2A0008; font: 800 12px var(--mono); letter-spacing: .08em; white-space: nowrap; animation: hopium-stampin .3s steps(4) both; }

  /* colonnes en anticipation : compte à rebours de lancement */
  .tg-colhl { opacity: 0; overflow: hidden; background: none; border-left: 1px dashed transparent; border-right: 1px dashed transparent; transition: opacity .2s; }
  .tg-colhl[data-on="1"], .tg-colhl[data-on="2"] { opacity: 1; }
  .tg-colhl::after { content: ""; position: absolute; left: 0; right: 0; top: -60px; bottom: 0; }
  .tg-colhl::before { content: attr(data-t); position: absolute; z-index: 1; left: 0; right: 0; top: 14px; text-align: center; font: 900 32px/1 var(--big); letter-spacing: .04em; color: var(--amb); }
  .tg-colhl[data-on="1"] { border-color: rgba(255, 176, 32, .6); }
  .tg-colhl[data-on="1"]::after { background: repeating-linear-gradient(-45deg, rgba(255, 176, 32, .13) 0 14px, transparent 14px 28px); }
  .tg-colhl[data-on="2"] { border-color: rgba(139, 92, 246, .85); }
  .tg-colhl[data-on="2"]::after { background: repeating-linear-gradient(-45deg, rgba(139, 92, 246, .24) 0 14px, rgba(0, 230, 118, .09) 14px 28px); }
  .tg-colhl[data-on="2"]::before { color: #C4B5FD; font-size: 25px; }
  .tg-colhl[data-active="1"]::after { animation: hopium-stripes .7s linear infinite; }
  .tg-colhl[data-active="1"]::before { color: #fff; }

  /* ---------- facecam : le Bull ---------- */
  .hp-cam { position: absolute; left: 1264px; top: 56px; width: 320px; height: 216px; overflow: hidden; border: 1px solid var(--ln2); background: #0A0D12; }
  .hp-bull-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hp-live { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 4px; padding: 4px 8px 2px; background: var(--dn); color: #2A0008; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; }
  .hp-live i { width: 7px; height: 7px; border-radius: 50%; background: #2A0008; animation: hopium-breathe .9s var(--em) infinite alternate; }
  .hp-viewers { position: absolute; right: 8px; top: 8px; padding: 4px 8px 2px; background: rgba(7, 9, 12, .82); font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; }
  .hp-nick { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px 2px; background: rgba(7, 9, 12, .88); border-left: 3px solid var(--up); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
  .hp-mood { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px 2px; background: rgba(7, 9, 12, .88); font-size: 11px; letter-spacing: .08em; color: #A9B6C3; white-space: nowrap; }
  .hp-mood::after { content: "MOOD · HOPEFUL"; }
  &[data-host="antic"] .hp-mood::after { content: "MOOD · LOCKED IN"; color: var(--amb); }
  &[data-host="antic2"] .hp-mood::after { content: "MOOD · FERAL"; color: #C4B5FD; }
  &[data-host="cast"] .hp-mood::after { content: "MOOD · CALLING IT"; color: var(--up); }
  &[data-host="win"] .hp-mood::after { content: "MOOD · VALIDATED"; color: var(--up); }
  &[data-host="bigwin"] .hp-mood::after { content: "MOOD · UNBEARABLE"; color: var(--up); }
  &[data-host="bonus"] .hp-mood::after { content: "MOOD · SO BACK"; color: var(--up); }
  &[data-host="sad"] .hp-mood::after { content: "MOOD · COPING"; color: #FF7A90; }
  &[data-mode="fsB"] .hp-cam { border-color: var(--up); }
  &[data-antic="1"] .hp-cam { border-color: var(--amb); }

  .hp-neon text { font: 800 22px var(--mono); fill: var(--up); }
  .hp-neon { animation: hopium-neon 5s linear infinite; }
  .hp-zzz { opacity: 0; }
  .hp-zzz text { font: 800 19px var(--mono); fill: #C4B5FD; }
  .hp-steam { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
  .hp-steam circle { fill: #E6EDF3; opacity: .85; }
  .hp-led { animation: hopium-blink 1.6s linear infinite; }
  .hp-bull, .hp-head, .hp-body, .hp-arm-can, .hp-arm-fist, .hp-palm, .hp-shades { transform-box: view-box; transition: transform .26s var(--e), opacity .15s; }
  .hp-bull { transform-origin: 160px 216px; }
  .hp-head { transform-origin: 160px 166px; animation: hopium-nod 3.6s var(--em) infinite alternate; }
  .hp-body { transform-origin: 160px 216px; animation: hopium-chest 3.6s var(--em) infinite alternate; }
  .hp-arm-can { transform-origin: 262px 214px; }
  .hp-arm-fist { transform: translateY(132px); }
  .hp-palm { transform-origin: 200px 160px; transform: translate(80px, 150px) rotate(20deg); opacity: 0; }
  .hp-shades { transform: translateY(-150px); opacity: 0; }
  .hp-eye-w, .hp-pup, .hp-brow, .hp-lid, .hp-brim { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .16s; }
  .hp-lid { transform-origin: 50% 0; animation: hopium-eyeblink 4.6s linear infinite; }
  .hp-brim { transform-origin: 50% 0; transition: transform .4s; }
  .hp-m-open, .hp-m-grin, .hp-horn-glow, .hp-glow-a { opacity: 0; transition: opacity .15s; }
  .hp-glow-g, .hp-rim-g, .hp-rim-a, .hp-m-idle { transition: opacity .2s; }
  &[data-host="idle"] .hp-arm-can { animation: hopium-sip 9s var(--em) infinite; }

  &[data-host="antic"] .hp-bull { transform: scale(1.13) translate(-5px, 5px); }
  &[data-host="antic2"] .hp-bull { transform: scale(1.2) translateY(-8px); }
  &:is([data-host="antic"], [data-host="antic2"], [data-host="bonus"], [data-host="bigwin"]) {
    .hp-eye-w { transform: scale(1.24); }
    .hp-pup { transform: scale(.68); }
    .hp-brow { transform: translateY(-7px); }
    .hp-lid { animation: none; transform: translateY(-8px) scaleY(.5); }
    .hp-m-idle { opacity: 0; }
    .hp-m-open { opacity: 1; }
  }
  &[data-host="antic"] {
    .hp-glow-g, .hp-rim-g { opacity: 0; }
    .hp-glow-a { opacity: 1; }
    .hp-rim-a { opacity: .42; }
  }
  &[data-host="antic2"] {
    .hp-steam { opacity: 1; }
    .hp-steam-l { animation: hopium-steam-l .7s linear infinite; }
    .hp-steam-r { animation: hopium-steam-r .7s linear infinite; }
    .hp-glow-g { animation: hopium-breathe .5s var(--em) infinite alternate; }
    .hp-horn-glow { opacity: 1; stroke: #C4B5FD; }
  }
  &[data-host="cast"] {
    .hp-horn-glow { opacity: 1; }
    .hp-pup { transform: translateX(-3.5px); }
    .hp-brow { transform: translateY(-5px); }
    .hp-head { animation: none; transform: rotate(-4deg); }
  }
  &:is([data-host="win"], [data-host="bigwin"], [data-host="bonus"]) {
    .hp-arm-fist { transform: none; }
    .hp-bull { animation: hopium-hype .34s steps(3) infinite alternate; }
  }
  &[data-host="win"] {
    .hp-m-idle { opacity: 0; }
    .hp-m-grin { opacity: 1; }
    .hp-brow { transform: translateY(-5px); }
    .hp-lid { animation: none; transform: translateY(-5px) scaleY(.7); }
  }
  &:is([data-host="bigwin"], [data-host="bonus"]) .hp-arm-can { animation: none; transform: translate(6px, -56px) rotate(8deg); }
  &[data-host="bigwin"] .hp-shades { transform: none; opacity: 1; }
  &[data-host="sad"] {
    .hp-bull { transform: translateY(7px); }
    .hp-head { animation: none; transform: rotate(5deg) translateY(5px); }
    .hp-palm { transform: none; opacity: 1; }
    .hp-arm-can { animation: none; transform: translateY(50px); }
    .hp-lid { animation: none; transform: scaleY(2.2); }
    .hp-glow-g { opacity: .5; }
  }
  /* trois spins perdants d'affilée : il s'endort, capuche sur les yeux */
  &[data-host="idle"]:is([data-dead="3"], [data-dead="4"], [data-dead="5"], [data-dead="6"], [data-dead="7"], [data-dead="8"], [data-dead="9"]) {
    .hp-bull { transform: translateY(18px) rotate(-4deg); }
    .hp-head { animation: hopium-snore 2.8s var(--em) infinite alternate; }
    .hp-brim { transform: translateY(26px) scaleY(1.5); }
    .hp-lid { animation: none; transform: scaleY(2.2); }
    .hp-arm-can { animation: none; transform: translateY(30px) rotate(12deg); }
    .hp-zzz { opacity: 1; }
    .hp-zzz text { animation: hopium-zzz 2.4s var(--em) infinite; }
    .hp-zzz text:nth-child(2) { animation-delay: .5s; }
    .hp-zzz text:nth-child(3) { animation-delay: 1s; }
    .hp-mood::after { content: "MOOD · ASLEEP"; color: #C4B5FD; }
  }

  /* ---------- chat ---------- */
  .hp-chat { left: 1264px; top: 284px; width: 320px; height: 184px; overflow: hidden; }
  .hp-chat-log { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12px 8px; overflow: hidden; }
  .hp-msg { flex: none; margin: 0; font-size: 13.5px; line-height: 1.56; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: hopium-row .22s steps(3); }
  .hp-msg b { margin-right: 8px; font-weight: 700; }
  .hp-msg b::after { content: ":"; color: var(--dim); }

  /* ---------- saisie d'ordres : features + menu bonus ---------- */
  .hp-order { left: 1264px; top: 480px; width: 320px; height: 250px; display: flex; flex-direction: column; }
  .hp-sw { position: relative; height: 62px; flex: none; margin: 8px 8px 0; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; border: 1px solid var(--ln2); background: var(--k2); text-align: left; }
  .hp-sw:hover { border-color: var(--dim); }
  .hp-sw-art { width: 46px; height: 46px; flex: none; }
  .hp-sw-art svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .hp-sw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .hp-sw-txt b { font: 800 25px/1 var(--big); letter-spacing: .04em; white-space: nowrap; }
  .hp-sw-txt i { font-style: normal; font-size: 11.5px; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
  .hp-sw-txt em { font-style: normal; font-weight: 700; color: var(--tx); }
  .hp-sw-knob { position: relative; width: 56px; height: 28px; flex: none; border: 1px solid var(--ln2); background: #07090C; }
  .hp-sw-knob i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: var(--dim); transition: transform .15s steps(3), background .15s; }
  .hp-sw-knob::after { content: "OFF"; position: absolute; right: 5px; top: 7px; font-size: 10px; letter-spacing: .08em; color: var(--dim); }
  &[data-feature="f1"] .hp-sw-f1, &[data-feature="f2"] .hp-sw-f2 { border-color: var(--amb); background: rgba(255, 176, 32, .1); }
  &[data-feature="f1"] .hp-sw-f1 .hp-sw-knob i, &[data-feature="f2"] .hp-sw-f2 .hp-sw-knob i { transform: translateX(28px); background: var(--amb); }
  &[data-feature="f1"] .hp-sw-f1 .hp-sw-knob::after, &[data-feature="f2"] .hp-sw-f2 .hp-sw-knob::after { content: "ON"; right: auto; left: 7px; color: var(--amb); }
  .hp-mkt { height: 58px; flex: none; margin: 8px 8px 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--up); color: var(--up); background: rgba(0, 230, 118, .07); }
  .hp-mkt svg { width: 24px; height: 24px; stroke-width: 2.8; flex: none; }
  .hp-mkt b { font: 800 28px/1 var(--big); letter-spacing: .08em; }
  .hp-mkt i { margin-left: auto; font-style: normal; font-size: 11.5px; letter-spacing: .14em; color: var(--tx); white-space: nowrap; }
  .hp-mkt:hover { background: var(--up); color: #04130B; }
  .hp-mkt:hover i { color: #04130B; }
  .hp-lock { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: repeating-linear-gradient(-45deg, rgba(14, 19, 25, .97) 0 16px, rgba(19, 26, 34, .97) 16px 32px); }
  .hp-lock b { font: 800 30px/1 var(--big); letter-spacing: .08em; color: var(--up); }
  .hp-lock span { font-size: 12px; letter-spacing: .14em; color: var(--dim); }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-lock { display: flex; }

  /* ---------- APE IN : le bouton de spin ---------- */
  .hp-ape { position: absolute; left: 1264px; top: 742px; width: 320px; height: 142px; overflow: hidden; background: var(--up); color: #04130B; box-shadow: inset 0 -8px 0 #00A152, inset 0 0 0 1px #8CFFC9; transition: transform .08s; }
  .hp-ape:active { transform: translateY(3px); }
  .hp-ape > span { position: absolute; inset: 0 0 8px 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; }
  .hp-ape b { font: 900 78px/.9 var(--big); letter-spacing: .04em; }
  .hp-ape i { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .14em; }
  .hp-ape em { font-style: normal; }
  .hp-ape kbd { position: absolute; right: 8px; top: 8px; padding: 4px 4px 2px; border: 1px solid currentColor; font: 700 10.5px var(--mono); letter-spacing: .08em; opacity: .75; }
  .hp-ape .hp-ape-idle { display: flex; }
  &:is([data-feature="f1"], [data-feature="f2"]) .hp-ape-idle em { padding: 0 4px; background: #04130B; color: var(--amb); }
  &[data-busy="1"] .hp-ape { background: #0B7A45; color: #C9FFE4; box-shadow: inset 0 -8px 0 #075C33; }
  &[data-busy="1"] .hp-ape::before { content: ""; position: absolute; left: -60px; right: 0; top: 0; bottom: 8px; background: repeating-linear-gradient(-45deg, rgba(4, 19, 11, .22) 0 14px, transparent 14px 28px); animation: hopium-busy .6s linear infinite; }
  &[data-busy="1"] .hp-ape .hp-ape-idle { display: none; }
  &[data-busy="1"] .hp-ape .hp-ape-busy { display: flex; }
  &[data-auto="1"] .hp-ape .hp-ape-idle, &[data-auto="1"] .hp-ape .hp-ape-busy { display: none; }
  &[data-auto="1"] .hp-ape .hp-ape-auto { display: flex; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-ape { background: var(--k2); color: var(--up); box-shadow: inset 0 0 0 1px var(--up); }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-ape::before, &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-ape kbd { display: none; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-ape > span:not(.hp-ape-fs) { display: none; }
  &:is([data-mode="fsA"], [data-mode="fsB"]) .hp-ape > .hp-ape-fs { display: flex; inset: 0; }

  /* ---------- volet de transition : défilement vertical de lancement ---------- */
  .hp-wipe { position: absolute; inset: 0; z-index: 58; overflow: hidden; pointer-events: none; visibility: hidden; }
  .hp-wipe-in { position: absolute; left: 0; right: 0; top: 0; height: 100%; display: grid; place-items: center; transform: translateY(101%); background: repeating-linear-gradient(to top, rgba(0, 230, 118, .16) 0 3px, transparent 3px 46px), #07090C; border-top: 1px solid var(--up); border-bottom: 1px solid var(--up); }
  .hp-wipe-in span { display: none; font: 900 190px/1 var(--big); letter-spacing: .04em; color: var(--up); white-space: nowrap; }
  &[data-transition] .hp-wipe { visibility: visible; }
  &[data-transition] .hp-wipe-in { animation: hopium-wipe 1.3s linear both; }
  &[data-turbo="1"][data-transition] .hp-wipe-in { animation-duration: .715s; }
  &[data-transition="fsA"] .hp-wipe-a, &[data-transition="fsB"] .hp-wipe-b, &[data-transition="base"] .hp-wipe-0 { display: block; }
  &[data-transition="fsA"] .hp-wipe-a { background: linear-gradient(90deg, var(--up) 0 46%, var(--dn) 46% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  &[data-transition="base"] .hp-wipe-0 { color: var(--tx); }

  /* ---------- VFX GPU : ce que les shaders remplacent. Sans WebGL2 (data-vfx="0"), tout le CSS qui précède reste tel quel. ---------- */
  &[data-vfx="1"] {
    .hp-scan { display: none; }
    .hp-chart[data-vfx-scene="1"] .hp-hist, .hp-chart[data-vfx-scene="1"] .hp-up { display: none; }
    .hp-grid .tg-vfx-under { clip-path: inset(34px); }
    .hp-cam .tg-vfx-scene { z-index: 1; }
    .hp-live, .hp-viewers, .hp-nick, .hp-mood { z-index: 2; }
    .tg-sym.is-falling .tg-sym-in::before { content: none; }
    .tg-sym.is-landing .tg-sym-in { animation: none; }
    .tg-sym.is-landing::after { content: none; }
    .tg-sym[data-kind="scatter"].is-landed .tg-sym-in { animation: none; }
    .tg-sym[data-kind="multi"].is-landed .hp-candle { animation: none; }
    .hp-glint { animation: none; opacity: 0; }
    .hp-sat { animation: none; }
    .hp-flame, .hp-smoke { display: none; }
    .hp-rays, .hp-cglow { display: none; }
    .tg-colhl::after { content: none; }
    .hp-pc { box-shadow: 0 0 0 1px #04130B; }
    .hp-pc.is-new, .hp-pump.is-dump .hp-pc { animation: none; }
    .hp-dip { display: none; }
    .tg-sym.is-fizzle .tg-sym-in { animation: none; transform: translateY(8%) scaleY(.74); opacity: .5; }
    [data-popup="bigwin"] .hp-god { display: none; }
    .hp-wipe-in { transform: none; opacity: 0; }
    &[data-transition] .hp-wipe-in { animation: hopium-wipe-cut calc(1.3s * var(--tg-speed, 1)) steps(1) both; }
  }

  /* ---------- pop-ins : fenêtres de terminal ---------- */
  [data-popup] { background: rgba(4, 6, 9, .87); }
  .hp-win { position: relative; display: flex; flex-direction: column; max-width: 96%; background: var(--k1); border: 1px solid var(--ln2); box-shadow: 0 0 0 1px #000, 0 30px 90px #000; }
  [data-popup][data-open="true"] .hp-win { animation: hopium-boot .3s steps(6) both; }
  .hp-wbar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 4px 0 12px; background: #0A0E13; border-bottom: 1px solid var(--ln2); font-size: 14px; letter-spacing: .14em; white-space: nowrap; }
  .hp-wbar span { display: flex; align-items: center; gap: 8px; font-weight: 800; }
  .hp-wbar span::before { content: ""; width: 9px; height: 9px; background: var(--up); }
  .hp-wbar i { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; color: var(--dim); }
  .hp-wx { width: 58px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--ln2); color: var(--tx); }
  .hp-wx svg { width: 16px; height: 16px; stroke-width: 2.8; }
  .hp-wx:hover { background: var(--dn); border-color: var(--dn); color: #2A0008; }
  .hp-wfoot { flex: none; padding: 8px 16px 12px; border-top: 1px solid var(--ln); font-size: 12.5px; line-height: 1.45; color: var(--dim); }

  /* MARKET : le menu bonus, présenté comme une liste d'instruments */
  .hp-market { width: 1240px; }
  .hp-mk-body { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
  .hp-mk-sec { min-width: 0; display: flex; flex-direction: column; }
  .hp-mk-sec h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
  .hp-mk-list { flex: 1; display: grid; gap: 12px; grid-auto-rows: 1fr; }
  .hp-mk-bonus .hp-mk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-ins { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 0; border: 1px solid var(--ln2); background: #0A0E13; text-align: left; overflow: hidden; }
  .hp-ins:hover { border-color: var(--up); }
  .hp-art { display: block; width: 100%; height: 118px; flex: none; background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 100% 25%; }
  .hp-art path { fill: none; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .hp-art .g { stroke: var(--up); }
  .hp-art .r { stroke: var(--dn); stroke-dasharray: 2 8; }
  .hp-art .b { stroke: var(--ln2); stroke-width: 2; }
  .hp-art .f { stroke: none; fill: rgba(0, 230, 118, .13); }
  .hp-ins-name { width: fit-content; font: 900 52px/.95 var(--big); letter-spacing: .02em; white-space: nowrap; color: var(--up); }
  .hp-ins-a .hp-ins-name { background: linear-gradient(90deg, var(--up) 0 46%, var(--dn) 46% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hp-ins-desc { min-height: 63px; font-size: 14px; line-height: 1.5; color: #B9C5D0; }
  .hp-ins-meta { display: flex; flex-wrap: wrap; gap: 8px; }
  .hp-ins-meta i { padding: 4px 8px 4px; border: 1px solid var(--ln2); font-style: normal; font-size: 11.5px; letter-spacing: .08em; white-space: nowrap; }
  .hp-ins-meta b { font-weight: 800; }
  .hp-ins-px { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; white-space: nowrap; }
  .hp-ins-px b { font: 800 44px/1 var(--big); }
  .hp-ins-px i { font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--up); }
  .hp-ins-px em { font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--dim); }
  .hp-ins-cta { height: 50px; flex: none; margin: auto -12px 0; display: grid; place-items: center; background: var(--up); color: #04130B; font-size: 15px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
  .hp-ins-cta u { text-decoration: none; }
  .hp-ins-cta .on { display: none; }
  .hp-ins-f { padding-left: 98px; }
  .hp-ins-candle { position: absolute; left: 12px; top: 12px; width: 74px; height: 100px; }
  .hp-ins-candle svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .hp-ins-f .hp-ins-name { font-size: 38px; color: var(--tx); }
  .hp-ins-f .hp-ins-desc { min-height: 60px; font-size: 13px; }
  .hp-ins-f .hp-ins-px b { font-size: 34px; }
  .hp-ins-f .hp-ins-cta { height: 44px; margin-left: -98px; background: none; border-top: 1px solid var(--amb); color: var(--amb); }
  &[data-feature="f1"] .hp-ins-f1, &[data-feature="f2"] .hp-ins-f2 { border-color: var(--amb); }
  &[data-feature="f1"] .hp-ins-f1 .hp-ins-cta, &[data-feature="f2"] .hp-ins-f2 .hp-ins-cta { background: var(--amb); color: #1A0F00; }
  &[data-feature="f1"] .hp-ins-f1 .on, &[data-feature="f2"] .hp-ins-f2 .on { display: inline; }
  &[data-feature="f1"] .hp-ins-f1 .off, &[data-feature="f2"] .hp-ins-f2 .off { display: none; }

  /* confirmation : ticket d'ordre papier, bords dentelés */
  .hp-ticket-wrap { width: 560px; display: flex; flex-direction: column; filter: drop-shadow(0 30px 50px #000); }
  [data-popup="confirm"][data-open="true"] .hp-ticket-wrap { animation: hopium-printout .36s steps(8) both; }
  .hp-zig { display: block; width: 100%; height: 12px; flex: none; }
  .hp-ticket { padding: 20px 32px 24px; background: #EFEBDD; color: #17140C; }
  .hp-tk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed #17140C; white-space: nowrap; }
  .hp-tk-head b { font: 900 46px/1 var(--big); letter-spacing: .04em; }
  .hp-tk-head i { font-style: normal; font-size: 14px; color: #5C5646; }
  .hp-ticket dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
  .hp-ticket dl div { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
  .hp-ticket dt { flex: 1; display: flex; align-items: baseline; gap: 8px; color: #5C5646; letter-spacing: .08em; white-space: nowrap; }
  .hp-ticket dt::after { content: ""; flex: 1; border-bottom: 2px dotted #A39B86; transform: translateY(-4px); }
  .hp-ticket dd { margin: 0; font-weight: 800; text-align: right; white-space: nowrap; }
  .hp-ticket dl .hp-tk-total { margin-top: 4px; padding-top: 12px; border-top: 2px dashed #17140C; align-items: center; }
  .hp-tk-total dt::after { border-bottom-color: transparent; }
  .hp-tk-total dd { font: 900 56px/1 var(--big); }
  .hp-ticket p { min-height: 41px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: #3D382B; }
  .hp-tk-feat { display: none; }
  [data-popup="confirm"]:is([data-item="f1"], [data-item="f2"]) .hp-tk-feat { display: inline; }
  [data-popup="confirm"]:is([data-item="f1"], [data-item="f2"]) .hp-tk-bonus { display: none; }
  .hp-tk-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; margin-top: 16px; }
  .hp-tk-btns button { height: 62px; border: 2px solid #17140C; color: #17140C; font-size: 16px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
  .hp-tk-btns button:hover { background: #17140C; color: #EFEBDD; }
  .hp-tk-btns .hp-tk-ok { background: #07090C; border-color: #07090C; color: var(--up); }
  .hp-tk-btns .hp-tk-ok:hover { background: var(--up); color: #04130B; }
  .hp-tk-btns button:focus-visible { outline-color: #17140C; }

  /* intro de bonus : bandeau d'alerte pleine largeur « POSITION OPENED » */
  [data-popup="fsIntro"] { background: rgba(4, 6, 9, .9); }
  .hp-band { position: relative; width: 100%; height: 440px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 0 120px; overflow: hidden; background: var(--k1); border-top: 1px solid var(--up); border-bottom: 1px solid var(--up); }
  [data-popup="fsIntro"][data-open="true"] .hp-band { animation: hopium-band .34s steps(7) both; }
  [data-popup="fsIntro"][data-mode="fsA"] .hp-band { border-bottom-color: var(--dn); }
  .hp-band .hp-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; opacity: .17; background: none; }
  [data-popup="fsIntro"][data-mode="fsA"] .hp-art-a, [data-popup="fsIntro"][data-mode="fsB"] .hp-art-b { display: block; }
  .hp-band-l { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .hp-band-l h2 { width: fit-content; margin: 0; font: 900 150px/.86 var(--big); letter-spacing: .02em; white-space: nowrap; color: var(--up); }
  [data-popup="fsIntro"][data-mode="fsA"] h2 { background: linear-gradient(90deg, var(--up) 0 46%, var(--dn) 46% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hp-band-l p { max-width: 620px; margin: 0; font-size: 18px; line-height: 1.5; color: #C9D3DD; }
  .hp-band-r { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .hp-band-r b { font: 900 230px/.8 var(--big); }
  .hp-band-r span { font-size: 18px; font-weight: 800; letter-spacing: .14em; color: var(--up); white-space: nowrap; }
  .hp-band-r button, .hp-stmt-ok { background: var(--up); color: #04130B; font: 900 34px/1 var(--big); letter-spacing: .14em; box-shadow: inset 0 -6px 0 #00A152; white-space: nowrap; }
  .hp-band-r button { width: 300px; height: 76px; margin-top: 16px; }
  .hp-band-r button:hover, .hp-stmt-ok:hover { background: var(--upl); }

  /* fin de bonus : relevé « POSITION CLOSED » avec courbe de gains */
  .hp-stmt { width: 860px; }
  .hp-eq { position: relative; height: 190px; flex: none; border-bottom: 1px solid var(--ln); background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 100% 25%, #0A0D12; }
  .hp-eq svg { position: absolute; left: 14px; top: 10px; width: calc(100% - 28px); height: calc(100% - 20px); display: none; }
  .hp-eq path { fill: none; stroke: var(--up); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  [data-popup="fsOutro"][data-mode="fsA"] .hp-eq-a, [data-popup="fsOutro"][data-mode="fsB"] .hp-eq-b { display: block; }
  [data-popup="fsOutro"][data-open="true"] .hp-eq path { animation: hopium-draw 1.3s .25s linear forwards; }
  .hp-stmt-row { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 28px 8px; }
  .hp-stmt-row span { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
  .hp-stmt-row strong { display: block; width: 100%; text-align: center; font: 900 120px/1 var(--big); color: var(--up); white-space: nowrap; overflow: hidden; }
  .hp-stmt-row strong::before { content: "+"; }
  .hp-stmt-ok { height: 76px; flex: none; margin: 8px 28px 28px; }

  /* gros gain : une bougie verte géante traverse l'écran, le PnL défile sur son étiquette */
  [data-popup="bigwin"] { overflow: hidden; background: rgba(4, 6, 9, .9); }
  .hp-god { position: absolute; left: 50%; top: 0; bottom: 0; width: 420px; margin-left: -210px; }
  .hp-god-rays { position: absolute; left: 50%; top: 50%; width: 2200px; height: 2200px; margin: -1100px 0 0 -1100px; opacity: 0; background: repeating-conic-gradient(rgba(0, 230, 118, .1) 0 6deg, transparent 6deg 18deg); }
  .hp-god-wick { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -4px; background: var(--up); opacity: .7; }
  .hp-god-body { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; transform: translateY(101%); background: repeating-linear-gradient(to top, rgba(4, 19, 11, .14) 0 3px, transparent 3px 14px), linear-gradient(90deg, #8CFFC9 0 16%, #00E676 16% 80%, #00A152 80% 100%); }
  [data-popup="bigwin"][data-tier="mega"] .hp-god-body { height: 82%; }
  [data-popup="bigwin"][data-tier="epic"] .hp-god-body { height: 100%; }
  [data-popup="bigwin"][data-open="true"] .hp-god-body { animation: hopium-rise .7s steps(14) both; }
  [data-popup="bigwin"][data-open="true"]:is([data-tier="mega"], [data-tier="epic"]) .hp-god-rays { opacity: 1; animation: hopium-rot 40s linear infinite; }
  .hp-big { position: relative; width: 960px; max-width: 94%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 40px 20px; background: var(--k1); border: 1px solid var(--up); box-shadow: 0 0 0 1px #000, 0 0 0 8px rgba(7, 9, 12, .72); }
  [data-popup="bigwin"][data-open="true"] .hp-big { animation: hopium-band .3s .25s steps(6) both; }
  .hp-big h2 { margin: 4px 0 0; font: 900 110px/.9 var(--big); letter-spacing: .04em; color: var(--up); white-space: nowrap; }
  .hp-big strong { display: block; width: 100%; text-align: center; font: 900 150px/1 var(--big); white-space: nowrap; overflow: hidden; }
  .hp-big strong::before { content: "+"; color: var(--up); }
  [data-popup="bigwin"][data-tier="epic"] .hp-big { border-color: #FFF3C4; }
  [data-popup="bigwin"][data-tier="epic"] h2 { color: #FFF3C4; }

  /* DOCS : règles et table des gains */
  .hp-docs { width: 1300px; }
  .hp-docs-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; padding: 16px; }
  .hp-docs-left { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .hp-docs-pays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
  .hp-docs-vals { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hp-docs-vals div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 4px 8px; border: 1px solid var(--ln); background: #0A0E13; }
  .hp-docs-vals span { width: 70px; height: 84px; }
  .hp-docs-vals svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .hp-docs-vals b { font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center; color: var(--tx); }
  .hp-pay { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 8px; row-gap: 4px; align-items: center; padding: 8px; border: 1px solid var(--ln); background: #0A0E13; }
  .hp-pay-art { grid-row: 1 / span 4; width: 78px; height: 78px; }
  .hp-pay-art svg { width: 100%; height: 100%; display: block; }
  .hp-pay > b { font: 800 22px/1 var(--big); letter-spacing: .04em; }
  .hp-pay i { display: flex; justify-content: space-between; gap: 4px; font-style: normal; font-size: 13px; white-space: nowrap; }
  .hp-pay u { text-decoration: none; color: var(--dim); }
  .hp-pay span { font-weight: 700; }
  .hp-docs-txt h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--up); }
  .hp-docs-txt h3:first-child { margin-top: 0; }
  .hp-docs-ic { width: 26px; height: 26px; flex: none; }
  .hp-docs-ic svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .hp-docs-txt p { margin: 0; font-size: 14px; line-height: 1.55; color: #C9D3DD; }
  .hp-docs-txt p b { color: var(--tx); }
  .hp-docs-txt .hp-fine { margin-top: 12px; font-size: 12px; color: var(--dim); }

  /* AUTOPILOT : autoplay */
  .hp-autow { width: 660px; }
  .hp-autow p { margin: 16px 20px 0; font-size: 14.5px; line-height: 1.5; color: #C9D3DD; }
  .hp-auto-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 24px; }
  .hp-auto-opts button { height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--ln2); background: #0A0E13; }
  .hp-auto-opts b { font: 900 60px/.9 var(--big); }
  .hp-auto-opts span { font-size: 11.5px; letter-spacing: .14em; color: var(--dim); }
  .hp-auto-opts button:hover { border-color: var(--up); background: rgba(0, 230, 118, .08); color: var(--up); }

  /* =====================================================================
     Portrait 900×1600
     ===================================================================== */
  &[data-orient="portrait"] {
    .hp-top { height: 52px; }
    .hp-logo { width: 278px; }
    .hp-status { display: none; }
    .hp-tape { border-right: 0; }

    .hp-cam { left: 16px; top: 62px; width: 262px; height: 180px; }
    .hp-chat { left: 290px; top: 62px; width: 594px; height: 180px; }

    .hp-board { left: 16px; top: 252px; width: 868px; height: 712px; }
    .hp-chart, .hp-grid, .hp-dip, .hp-marks { width: 780px; height: 650px; }
    .hp-wm { font-size: 136px; }
    .hp-axis { left: 794px; width: 68px; height: 650px; }
    .hp-ax-ticks b { font-size: 11.5px; right: 4px; }
    .hp-tag { font-size: 22px; padding-left: 8px; }
    .hp-xaxis { top: 694px; width: 780px; height: 16px; }
    .hp-xaxis i { font-size: 10.5px; }
    .hp-stamp { left: 396px; top: 369px; font-size: 108px; }
    .hp-toast { left: 396px; top: 369px; }
    .hp-bh-norm > i { display: none; }

    .hp-pnl { left: 16px; top: 974px; width: 868px; height: 96px; display: flex; align-items: stretch; }
    .hp-pnl .hp-ph { display: none; }
    .hp-pnl-now { flex: 1.35; min-width: 0; height: auto; padding: 8px 12px 0; display: flex; flex-direction: column; gap: 0; border-right: 1px solid var(--ln); }
    .hp-pnl-now::before { content: "PnL · THIS SPIN"; font-size: 11.5px; letter-spacing: .14em; color: var(--dim); }
    .hp-pump-chip { flex: .62; height: auto; margin: 12px 12px; flex-direction: column; justify-content: center; gap: 2px; }
    .hp-pnl-last { position: static; flex: 1; min-width: 0; height: auto; padding: 0 12px; border-top: 0; border-left: 1px solid var(--ln); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
    .hp-pnl-last strong { width: 100%; flex: none; text-align: left; }

    .hp-order { left: 16px; top: 1080px; width: 868px; height: 100px; flex-direction: row; align-items: stretch; }
    .hp-order .hp-ph { display: none; }
    .hp-sw { flex: 1; height: auto; margin: 8px 0 8px 8px; }
    .hp-mkt { flex: .8; height: auto; margin: 8px; }
    .hp-lock { top: 0; }
    .hp-feed { display: none; left: 16px; top: 1080px; width: 868px; height: 100px; }
    .hp-feed .hp-ph { display: none; }
    .hp-fs { flex-direction: row; align-items: center; height: 98px; }
    .hp-fs-mode { flex: none; margin: 0 4px 0 16px; font-size: 44px; }
    .hp-fs-row { flex: 1; min-width: 0; align-items: center; gap: 16px; padding: 0 12px; }
    .hp-fs-left { flex-direction: row; align-items: baseline; gap: 8px; }
    .hp-fs-left b { font-size: 76px; line-height: .9; }
    .hp-fs-tot { padding-bottom: 0; }
    .hp-fs-rule { width: 200px; height: 98px; margin-top: 0; border-top: 0; border-left: 1px solid var(--ln); flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: 12px; }
    .hp-fs-rule i { display: none; }
    .hp-fs-rule b { font-size: 38px; }

    .hp-port { left: 16px; top: 1190px; width: 424px; height: 100px; }
    .hp-val { padding-top: 12px; }
    .hp-pos { left: 16px; top: 1300px; width: 424px; height: 110px; }
    .hp-pos-row { padding: 8px 8px 0; }
    .hp-step { width: 66px; height: 64px; }
    .hp-step svg { width: 26px; height: 26px; }
    .hp-pos-cost { display: none; }
    .hp-ape { left: 452px; top: 1190px; width: 432px; height: 220px; }
    .hp-ape b { font-size: 116px; }
    .hp-ape i { font-size: 17px; }
    .hp-console { left: 16px; top: 1420px; width: 868px; height: 50px; }
    .hp-keys { left: 16px; top: 1480px; width: 868px; height: 104px; gap: 8px; }
    .hp-key { font-size: 13px; gap: 8px; }
    .hp-key svg { width: 34px; height: 34px; }

    .hp-wipe-in span { font-size: 132px; }

    .hp-market { width: 856px; }
    .hp-mk-body { grid-template-columns: minmax(0, 1fr); }
    .hp-mk-feat .hp-mk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-ins-f .hp-ins-desc { min-height: 78px; }
    .hp-ticket-wrap { width: 640px; }
    .hp-ticket { padding: 24px 36px 28px; }
    .hp-ticket dl div { font-size: 18px; }
    .hp-tk-btns button { height: 72px; font-size: 17px; }
    .hp-band { height: 860px; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 32px; padding: 0 56px; }
    .hp-band-l h2 { font-size: 136px; }
    .hp-band-l p { font-size: 21px; }
    .hp-band-r { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 4px 20px; }
    .hp-band-r b { font-size: 250px; }
    .hp-band-r span { padding-bottom: 12px; font-size: 22px; }
    .hp-band-r button { width: 100%; height: 96px; margin-top: 20px; font-size: 42px; }
    .hp-stmt { width: 820px; }
    .hp-stmt-ok { height: 92px; }
    .hp-god { width: 340px; margin-left: -170px; }
    .hp-big { width: 820px; padding: 24px 28px 20px; }
    .hp-big h2 { font-size: 96px; }
    .hp-docs { width: 856px; }
    .hp-docs-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .hp-docs-txt p { font-size: 15px; }
    .hp-autow { width: 780px; }
    .hp-auto-opts button { height: 130px; }
  }
  &[data-orient="portrait"]:is([data-mode="fsA"], [data-mode="fsB"]) .hp-order { display: none; }
  &[data-orient="portrait"]:is([data-mode="fsA"], [data-mode="fsB"]) .hp-feed { display: block; }
}

@keyframes hopium-tape { to { transform: translateX(-50%); } }
@keyframes hopium-breathe { from { opacity: .5; } to { opacity: 1; } }
@keyframes hopium-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes hopium-tick { 0% { transform: translateY(-8px); color: #fff; } 100% { transform: none; } }
@keyframes hopium-mult { 0% { transform: scale(1.22); color: #fff; } 40% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes hopium-panel { 0% { background: rgba(0, 230, 118, .32); border-color: #00E676; } 100% { background: #0E1319; } }
@keyframes hopium-row { from { transform: translateX(-12px); opacity: 0; } }
@keyframes hopium-land { 0% { transform: translate(-5px, 2px) skewX(-7deg); } 34% { transform: translate(4px, 0) skewX(5deg); } 67% { transform: translate(-2px, 0); } 100% { transform: none; } }
@keyframes hopium-tickline { from { opacity: 1; transform: scaleX(1.3); } to { opacity: 0; transform: scaleX(.2); } }
@keyframes hopium-glint { 0%, 70%, 100% { transform: scale(.5); opacity: .4; } 82% { transform: scale(1.15); opacity: 1; } }
@keyframes hopium-sc-land { 0% { transform: translateY(-6%) scaleY(1.1); } 50% { transform: scaleY(.9); } 100% { transform: none; } }
@keyframes hopium-rumble { from { transform: translate(-1.2px, .6px); } to { transform: translate(1.2px, -.6px); } }
@keyframes hopium-ignite { from { transform: translate(-2.2px, 1px); } to { transform: translate(2.2px, -1.6px); } }
@keyframes hopium-flame { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }
@keyframes hopium-flame-big { from { transform: scale(1.2, 1.6); } to { transform: scale(1.5, 2.3); } }
@keyframes hopium-smoke { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5) translateY(-6px); opacity: 0; } }
@keyframes hopium-missed { to { transform: rotate(4deg) translateY(3%); filter: saturate(.15) brightness(.6); } }
@keyframes hopium-print { 0% { transform: scaleY(0); } 70% { transform: scaleY(1.12); } 100% { transform: scaleY(1); } }
@keyframes hopium-crash { to { transform: scaleY(0); opacity: .3; } }
@keyframes hopium-liq { 0% { transform: none; } 30% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 100% { transform: translateY(8%) scaleY(.74); opacity: .5; } }
@keyframes hopium-stampin { from { transform: translateX(-50%) scale(1.8); opacity: 0; } }
@keyframes hopium-stripes { to { transform: translateY(39.6px); } }
@keyframes hopium-busy { to { transform: translateX(39.6px); } }
@keyframes hopium-dipfade { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hopium-draw { to { stroke-dashoffset: 0; } }
@keyframes hopium-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(2.4); }
  7% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(.94); }
  12% { transform: translate(-50%, -50%) rotate(-9deg) scale(1.03); }
  16%, 80% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}
@keyframes hopium-taghit { 0% { transform: scale(1.35); background: #fff; } 100% { transform: none; } }
@keyframes hopium-ath {
  0% { opacity: 0; transform: rotate(-8deg) scale(2.2); }
  8%, 80% { opacity: 1; transform: rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: rotate(-8deg) translateY(-10px) scale(1); }
}
@keyframes hopium-up { to { transform: translateY(-70px); } }
@keyframes hopium-wipe { 0% { transform: translateY(101%); } 38%, 62% { transform: translateY(0); } 100% { transform: translateY(-101%); } }
@keyframes hopium-boot { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes hopium-printout { from { transform: translateY(-70px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes hopium-band { from { transform: scaleY(0); } to { transform: none; } }
@keyframes hopium-rise { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes hopium-rot { to { transform: rotate(360deg); } }
@keyframes hopium-nod { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(-2.5px) rotate(.6deg); } }
@keyframes hopium-chest { to { transform: scaleY(1.015); } }
@keyframes hopium-eyeblink { 0%, 91% { transform: scaleY(1); } 94%, 96% { transform: scaleY(2.2); } 100% { transform: scaleY(1); } }
@keyframes hopium-sip { 0%, 68% { transform: none; } 76%, 88% { transform: translate(-14px, -18px) rotate(-38deg); } 96%, 100% { transform: none; } }
@keyframes hopium-hype { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes hopium-steam-l { 0% { transform: translate(0, 0) scale(.6); opacity: .9; } 100% { transform: translate(-26px, 8px) scale(1.5); opacity: 0; } }
@keyframes hopium-steam-r { 0% { transform: translate(0, 0) scale(.6); opacity: .9; } 100% { transform: translate(26px, 8px) scale(1.5); opacity: 0; } }
@keyframes hopium-snore { from { transform: translateY(0) rotate(4deg); } to { transform: translateY(3px) rotate(6deg); } }
@keyframes hopium-zzz { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes hopium-neon { 0%, 47%, 50%, 81%, 84%, 100% { opacity: 1; } 48% { opacity: .45; } 82% { opacity: .7; } }
@keyframes hopium-wipe-cut { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 0; } 100% { opacity: 0; } }

/* =====================================================================
   Art généré (racine data-painted="1") : terminal peint en décor, Bull peint dans la facecam, jetons en relief.
   Rien de ce bloc ne s'applique à la version vectorielle (?art=0, ou images absentes).
   ===================================================================== */
.skin-hopium[data-painted="1"] {
  /* ---------- décor : le terminal peint. Son graphique du bas est estompé (un seul graphique à l'écran : celui du
     shader), on garde le quadrillage ; les lueurs verte et violette des coins sont calmées par un voile neutre. ---------- */
  .hp-bgfx { background:
    linear-gradient(rgba(7, 9, 12, .42), rgba(7, 9, 12, .42)),
    radial-gradient(ellipse 66% 60% at 50% 58%, rgba(7, 9, 12, .92) 0 50%, rgba(7, 9, 12, 0) 100%),
    linear-gradient(to top, rgba(7, 9, 12, .6), rgba(7, 9, 12, 0) 30%),
    var(--art-fond) center / cover no-repeat, var(--k0); }
  /* portrait : le décor vertical généré, à l'échelle 1. Son graphique peint occupe la moitié basse, derrière les
     panneaux : on l'efface sous un voile sombre (un seul graphique à l'écran : celui du shader, dans le tableau) et on
     garde le quadrillage du haut ; les lueurs des bords sont calmées par le même voile neutre. */
  &[data-orient="portrait"] .hp-bgfx { background:
    linear-gradient(rgba(7, 9, 12, .42), rgba(7, 9, 12, .42)),
    linear-gradient(rgba(7, 9, 12, 0) 48%, rgba(7, 9, 12, .92) 56%, rgba(7, 9, 12, .92) 94%, rgba(7, 9, 12, 0) 99%),
    radial-gradient(ellipse 70% 30% at 50% 36%, rgba(7, 9, 12, .55) 0 50%, rgba(7, 9, 12, 0) 100%),
    var(--art-fond-portrait) 0 0 / 100% 100% no-repeat, var(--k0); }
  .hp-board { box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }
  .hp-chart { background:
    linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 16.6667% 100%, #080B0F; }

  /* ---------- jetons peints : ticker posé par le jeu (les images n'ont pas de texte) ---------- */
  .tg-sym[data-sym="h1"] { --tk: "DMND"; }
  .tg-sym[data-sym="h2"] { --tk: "BULL"; }
  .tg-sym[data-sym="h3"] { --tk: "MOON"; --c: #D9D6F2; }
  .tg-sym[data-sym="h4"] { --tk: "BAGS"; }
  .tg-sym[data-sym="l5"] { --tk: "FOMO"; }
  .tg-sym[data-sym="l4"] { --tk: "COPE"; --c: #6F93FF; }
  .tg-sym[data-sym="l3"] { --tk: "REKT"; }
  .tg-sym[data-sym="l2"] { --tk: "SHILL"; --c: #FF4FAE; }
  .tg-sym[data-sym="l1"] { --tk: "RUG"; }
  .tg-sym[data-kind="pay"] .tg-sym-in { inset: 3% 8.5% 14%; }
  .tg-sym[data-kind="pay"] .tg-sym-in::after { content: var(--tk, ""); position: absolute; left: 50%; bottom: -11%; transform: translateX(-50%); padding: 4px 4px 0; background: #07090C; border: 1px solid color-mix(in srgb, var(--c, #fff) 72%, #07090C); color: var(--c, #fff); font: 800 11.5px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; }

  /* ---------- scatter peint : la fusée dans son jeton violet. Plus grand que les jetons payants, sans ticker, et
     toujours éclairé par son pas de tir : on le repère d'un coup d'œil. ---------- */
  .tg-sym[data-kind="scatter"] { --c: #C4B5FD; }
  .tg-sym[data-kind="scatter"] .tg-sym-in { inset: -7% -4% -3%; transform-origin: 50% 88%; }
  .tg-sym[data-kind="scatter"] img.tg-art { filter: drop-shadow(0 0 7px rgba(255, 176, 32, .7)); }
  .tg-sym.is-teasing img.tg-art { animation: hopium-rumble .18s steps(2) infinite; filter: drop-shadow(0 0 9px rgba(255, 207, 112, .95)) brightness(1.08); }
  .tg-sym.is-trigger img.tg-art { animation: hopium-ignite .12s steps(2) infinite; filter: drop-shadow(0 0 12px #FFF3C4) brightness(1.2); }
  .tg-sym.is-missed img.tg-art { animation: none; filter: none; }
  /* décollage : le clone en vol ne garde que la fusée (découpée dans son jeton), le jeton éteint reste sur la grille */
  .tg-ghost[data-kind="scatter"] img.tg-art, .tg-ghost [data-kind="scatter"] img.tg-art { animation: none; clip-path: polygon(50% 6%, 60% 20%, 65% 40%, 74% 58%, 72% 70%, 28% 70%, 26% 58%, 35% 40%, 40% 20%); filter: drop-shadow(0 0 8px rgba(255, 231, 168, .9)) brightness(1.15); }
  /* la fusée est partie (clone en vol) : il reste le jeton éteint */
  .tg-sym.is-launched img.tg-art { animation: none; opacity: .3; filter: grayscale(1) brightness(.7); }

  /* ---------- bougie peinte : le jeu pose la valeur sur le corps ; taille, teinte et lumière montent avec le palier ---------- */
  .tg-sym[data-kind="multi"] .tg-sym-in { inset: 1% 5%; }
  .tg-sym[data-kind="multi"] img.tg-art, .hp-sw-art img.tg-art, .hp-ins-candle img.tg-art { transform-origin: 50% 100%; }
  .tg-sym[data-kind="multi"] img.tg-art { scale: .8; filter: drop-shadow(0 0 5px rgba(0, 230, 118, .55)); }
  .tg-sym[data-kind="multi"][data-tier="rare"] img.tg-art { scale: .9; filter: brightness(1.14) drop-shadow(0 0 8px rgba(140, 255, 201, .8)); }
  .tg-sym[data-kind="multi"][data-tier="epic"] img.tg-art { scale: 1; filter: brightness(1.24) saturate(1.2) drop-shadow(0 0 10px rgba(255, 176, 32, .85)); }
  .tg-sym[data-kind="multi"][data-tier="legend"] img.tg-art, .hp-sw-f2 img.tg-art, .hp-ins-f2 img.tg-art { filter: brightness(1.6) saturate(.5) drop-shadow(0 0 12px rgba(255, 255, 255, .95)); }
  .tg-sym[data-kind="multi"][data-tier="legend"] img.tg-art { scale: 1.12; }
  .tg-sym[data-kind="multi"].is-landed img.tg-art { animation: hopium-print .3s steps(6) both; }
  .tg-art-val { top: 53%; padding: 4px 4px 0; background: #07090C; border: 1.8px solid var(--up); color: var(--up); font: 800 19px/1 var(--big); letter-spacing: .02em; }
  .tg-sym[data-tier="rare"] .tg-art-val { border-color: #fff; border-width: 2.4px; color: #fff; font-size: 20px; }
  .tg-sym[data-tier="epic"] .tg-art-val { background: var(--amb); border-color: #FFE7A8; color: #1A0F00; font-size: 21px; }
  .tg-sym[data-tier="legend"] .tg-art-val, .hp-sw-f2 .tg-art-val, .hp-ins-f2 .tg-art-val { background: #FFF3C4; border-color: var(--amb); border-width: 2.6px; color: #1A0F00; }
  .tg-sym[data-tier="legend"] .tg-art-val { font-size: 24px; box-shadow: 0 0 14px rgba(255, 243, 196, .8); }
  /* liquidée : la bougie vire au rouge */
  .tg-sym.is-fizzle img.tg-art { filter: hue-rotate(-140deg) saturate(1.35) brightness(.92); }
  .tg-sym.is-fizzle .tg-art-val { background: #07090C; border-color: var(--dn); color: #FF7A90; box-shadow: none; }
  .hp-sw-art { position: relative; }
  .hp-sw-art .tg-art-val { padding: 0 4px 0; border-width: 1px; font-size: 11px; }
  .hp-ins-candle .tg-art-val { font-size: 17px; }
  /* règles : une bougie par palier (taille, teinte et étiquette comme sur la grille), pictos des titres sans étiquette */
  .hp-docs-vals [data-art="multi"], .hp-docs-ic { position: relative; }
  .hp-docs-vals [data-art="multi"] { width: 84px; height: 96px; }
  .hp-docs-vals img.tg-art { transform-origin: 50% 100%; }
  .hp-docs-vals [data-value="5"] img.tg-art { scale: .64; }
  .hp-docs-vals [data-value="15"] img.tg-art { scale: .78; filter: brightness(1.14) drop-shadow(0 0 6px rgba(140, 255, 201, .8)); }
  .hp-docs-vals [data-value="100"] img.tg-art { scale: .9; filter: brightness(1.24) saturate(1.2) drop-shadow(0 0 8px rgba(255, 176, 32, .85)); }
  .hp-docs-vals [data-value="500"] img.tg-art { filter: brightness(1.6) saturate(.5) drop-shadow(0 0 10px rgba(255, 255, 255, .95)); }
  .hp-docs-vals .tg-art-val { top: 62%; padding: 2px 4px 0; border-width: 1.4px; font-size: 13px; }
  .hp-docs-vals [data-value="15"] .tg-art-val { border-color: #fff; color: #fff; }
  .hp-docs-vals [data-value="100"] .tg-art-val { background: var(--amb); border-color: #FFE7A8; color: #1A0F00; }
  .hp-docs-vals [data-value="500"] .tg-art-val { background: #FFF3C4; border-color: var(--amb); color: #1A0F00; }
  .hp-docs-ic .tg-art-val { display: none; }

  /* ---------- facecam : le Bull peint, en pièces animées, devant la chambre (un peu floue, comme une webcam à faible
     profondeur de champ). Chaque pièce garde `transform` pour son animation continue ; les poses d'état passent par
     translate / rotate / scale, qui se composent avec elle. ---------- */
  .hp-bull { display: none; }
  .hp-bull-svg { filter: blur(1.1px) brightness(.82); }
  .hp-bull-art { position: absolute; left: 10%; top: 10%; width: 80%; aspect-ratio: 888 / 1100; }
  .hp-bull-art img { display: block; user-select: none; -webkit-user-drag: none; }
  .hp-ba-rig, .hp-ba-head, .hp-ba-arms { position: absolute; inset: 0; display: block; }
  .hp-ba-rig { transform-origin: 50% 62%; transition: scale .26s var(--e), translate .26s var(--e), rotate .3s, filter .3s; }
  .hp-ba-torso { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 100%; animation: hopium-art-idle 3.6s var(--em) infinite alternate; }
  .hp-ba-head { transform-origin: 49.3% 53.7%; transition: rotate .26s var(--e), translate .26s var(--e), scale .26s; animation: hopium-art-nod 3.6s var(--em) infinite alternate; }
  .hp-ba-skull { position: absolute; left: 17.21%; top: .6%; width: 68.28%; height: 53.9%; }
  .hp-ba-jaw { position: absolute; left: 39.26%; top: 42.19%; width: 19.35%; height: 10.59%; transition: translate .14s; }
  .hp-ba-gaze { position: absolute; left: 32.37%; top: 18.69%; width: 33.77%; height: 15.09%; transform-origin: 50% 96%; transition: scale .16s var(--e), translate .2s; }
  /* paupières du clignement : calées sur l'ouverture peinte de chaque œil, modelées comme la peau voisine (reflet en
     haut, ombre en bas, ligne de cils sombre, pointe de lumière verte ou violette du côté de l'écran) */
  .hp-ba-lid { position: absolute; display: block; border-radius: 16% 16% 50% 50% / 26% 26% 74% 74%; box-shadow: 0 .8px 0 0 #3A1A12, 0 2px 2px rgba(50, 14, 10, .4), inset 0 1.2px 1.4px rgba(214, 124, 72, .45), inset 0 -2px 2.4px rgba(84, 28, 20, .65); transform-origin: 50% 0; transform: scaleY(0); animation: hopium-art-blink 4.6s linear infinite; }
  .hp-ba-lid-l { left: 36.28%; top: 28.55%; width: 7.63%; height: 2.6%; rotate: -5deg; background: linear-gradient(100deg, rgba(0, 230, 118, .3), rgba(0, 230, 118, 0) 42%), linear-gradient(#B25830 0%, #9E482A 50%, #823424 100%); }
  .hp-ba-lid-r { left: 52.19%; top: 26.1%; width: 9.86%; height: 3.5%; rotate: -13deg; background: linear-gradient(260deg, rgba(178, 107, 255, .34), rgba(178, 107, 255, 0) 40%), linear-gradient(#B85C34 0%, #A44A2C 50%, #863626 100%); }
  /* yeux écarquillés : posés dans les orbites peintes quand il s'emballe, et rendus comme le reste du portrait.
     Globe blanc cassé assombri vers le bord et sous l'arcade, ligne de cils et repli de paupière en haut, bord
     inférieur rouge comme sur la peinture, iris brun à anneau sombre, deux reflets, liseré de la lumière d'ambiance.
     Ils s'ouvrent depuis la fente mi-close de la peinture (échelle verticale .34) avec un léger rebond. */
  .hp-ba-pop { --rim: #00E676; --lx: 14%; position: absolute; display: block; overflow: hidden; border-radius: 47% 53% 50% 50% / 60% 60% 40% 40%;
    background:
      linear-gradient(rgba(56, 20, 18, .66) 0%, rgba(56, 20, 18, .2) 24%, rgba(56, 20, 18, 0) 42%),
      radial-gradient(ellipse 60% 110% at var(--lx) 62%, color-mix(in srgb, var(--rim) 34%, transparent) 0, transparent 70%),
      radial-gradient(ellipse 92% 98% at 50% 66%, #F5F1F8 0 30%, #E4DDEA 56%, #B7A8BE 84%, #8A7992 100%);
    box-shadow: 0 -1px 0 .2px #2A1410, 0 -2.5px 0 0 #A9502B, 0 -3.6px 2px 0 rgba(60, 20, 14, .42), 0 1.1px 0 .1px #B8443A, 0 2.6px 2.5px rgba(60, 16, 12, .45), inset 0 -1.6px 2px rgba(182, 64, 54, .55), inset 0 0 2.5px rgba(40, 12, 10, .6);
    transform-origin: 50% 97%; scale: 1 .34; opacity: 0; transition: scale .16s var(--e), opacity .06s; }
  .hp-ba-pop b { position: absolute; left: 50%; top: 57%; width: 43%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
    background:
      radial-gradient(circle at 33% 29%, #fff 0 8%, rgba(255, 255, 255, 0) 12%),
      radial-gradient(circle at 69% 73%, rgba(255, 238, 216, .55) 0 6%, rgba(255, 238, 216, 0) 15%),
      radial-gradient(circle, #0E0706 0 26%, #4A2212 31%, #9A5226 50%, #B96C32 62%, #6A3418 80%, #2C150C 95%);
    box-shadow: 0 0 1.4px .4px rgba(30, 12, 8, .7), inset 0 1.6px 1.6px rgba(20, 8, 6, .5); transition: scale .16s, translate .18s var(--e); }
  .hp-ba-pop-l { left: 36.3%; top: 27.5%; width: 7.5%; height: 3.8%; rotate: -5deg; }
  .hp-ba-pop-r { --rim: #B26BFF; --lx: 88%; left: 52.15%; top: 24.9%; width: 9.7%; height: 4.7%; rotate: -13deg; }
  /* lumière de l'écran sur le visage, et bord de capuche qui tombe sur les yeux : deux calques découpés sur la tête */
  .hp-ba-tint, .hp-ba-brim { position: absolute; left: 17.21%; top: .6%; width: 68.28%; height: 53.9%; display: block; opacity: 0; pointer-events: none; -webkit-mask: var(--art-perso-tete) center / 100% 100% no-repeat; mask: var(--art-perso-tete) center / 100% 100% no-repeat; }
  .hp-ba-tint { --tint: var(--amb); mix-blend-mode: soft-light; background: radial-gradient(ellipse 95% 85% at 18% 88%, var(--tint), transparent 78%), linear-gradient(to top, var(--tint), transparent 60%); transition: opacity .25s; }
  .hp-ba-brim { background: linear-gradient(#06070A 0 47%, rgba(6, 7, 10, 0) 62%); translate: 0 -30%; transition: translate .45s, opacity .3s; }
  /* lunettes du gros gain : verres bombés (dégradé, reflet d'écran flou puis net, éclat spéculaire), monture biseautée,
     ombre portée sur le visage, liseré vert et violet comme le reste du buste */
  .hp-shades-art { position: absolute; left: 48.6%; top: 28.3%; width: 36.5%; overflow: visible; opacity: 0; filter: drop-shadow(0 2.6px 2px rgba(34, 8, 6, .7)); transform: translate(-50%, -50%) translateY(-170px) rotate(-8.5deg); transition: transform .5s var(--e), opacity .15s; }
  .hp-ba-arms { transform-origin: 50% 100%; transition: translate .32s var(--e); animation: hopium-art-fidget 9s var(--em) infinite; }
  .hp-ba-arms img { position: absolute; left: .74%; top: 48.27%; width: 98.51%; height: 50.53%; }
  .hp-ba-a { position: absolute; display: block; width: 2px; height: 2px; }
  .hp-ba-a-nl { left: 39.1%; top: 36.8%; }
  .hp-ba-a-nr { left: 53%; top: 34.5%; }
  .hp-ba-a-hl { left: 21.9%; top: 12.8%; }
  .hp-ba-a-hr { left: 77.7%; top: 10.5%; }
  .hp-ba-a-el { left: 40.5%; top: 29.7%; }
  .hp-ba-a-er { left: 57.4%; top: 27.9%; }
  .hp-ba-a-led { left: 77.3%; top: 29.4%; }
  .hp-ba-a-hands { left: 49.5%; top: 56%; }

  /* attente (2 fusées) : il s'approche de la caméra, yeux écarquillés, bouche ouverte, mains en prière, visage éclairé en ambre */
  &[data-host="antic"] {
    .hp-ba-rig { scale: 1.1; translate: -4px 5px; }
    .hp-ba-head { rotate: -2deg; scale: 1.03; }
    .hp-ba-arms { translate: 0 -6%; animation: hopium-art-tremble .11s steps(2) infinite; }
    .hp-ba-tint { opacity: .9; }
    .hp-ba-pop { --rim: #FFB020; }
  }
  /* 3 fusées, on guette la 4e : il colle à l'écran, la tête vibre, les naseaux fument (GPU), les cornes s'allument */
  &[data-host="antic2"] {
    .hp-ba-rig { scale: 1.19; translate: 0 3px; filter: drop-shadow(0 0 9px rgba(139, 92, 246, .9)); }
    .hp-ba-head { scale: 1.05; animation: hopium-art-shake .09s steps(2) infinite; }
    .hp-ba-arms { translate: 0 -8%; animation: hopium-art-tremble .07s steps(2) infinite; }
    .hp-ba-tint { --tint: #8B5CF6; opacity: .95; }
    .hp-ba-pop { --rim: #B26BFF; }
  }
  &:is([data-host="antic"], [data-host="antic2"], [data-host="bonus"], [data-host="bigwin"]) {
    .hp-ba-gaze { scale: 1.12; }
    .hp-ba-lid { animation: none; }
    .hp-ba-pop { scale: 1 1; opacity: 1; }
    .hp-ba-pop b { scale: .82; }
    .hp-ba-jaw { translate: 0 22%; }
  }
  &[data-host="antic2"] .hp-ba-jaw { translate: 0 28%; }
  /* il annonce le coup : tête et regard tournés vers la grille, cornes vertes */
  &[data-host="cast"] {
    .hp-ba-rig { scale: 1.05; }
    .hp-ba-head { animation: none; rotate: -6deg; translate: -2% 0; }
    .hp-ba-lid { animation: none; }
    .hp-ba-pop { scale: 1 .8; opacity: 1; }
    .hp-ba-pop b { translate: -88% -50%; }
    .hp-ba-arms { translate: 0 3%; animation: none; }
    .hp-ba-tint { --tint: #00E676; opacity: .6; }
  }
  /* gain : il sautille et secoue ses mains jointes devant lui */
  &:is([data-host="win"], [data-host="bigwin"], [data-host="bonus"]) {
    .hp-ba-rig { animation: hopium-art-hype .34s steps(3) infinite alternate; filter: brightness(1.1); }
    .hp-ba-arms { translate: 0 -9%; animation: hopium-art-pump .17s var(--em) infinite alternate; }
    .hp-ba-tint { --tint: #00E676; opacity: .55; }
  }
  &[data-host="win"] {
    .hp-ba-head { rotate: 3deg; translate: 0 -1%; }
    .hp-ba-gaze { scale: 1.07; }
    .hp-ba-jaw { translate: 0 10%; }
    .hp-ba-lid { animation: none; }
  }
  &:is([data-host="bigwin"], [data-host="bonus"]) {
    .hp-ba-head { rotate: -3deg; translate: 0 -1.6%; }
    .hp-ba-arms { translate: 0 -11%; }
    .hp-ba-jaw { animation: hopium-art-yell .16s steps(2) infinite alternate; }
  }
  &[data-host="bigwin"] .hp-shades-art { opacity: 1; transform: translate(-50%, -50%) rotate(-8.5deg); }
  /* raté : la tête tombe dans les mains */
  &[data-host="sad"] {
    .hp-ba-rig { translate: 0 9px; filter: saturate(.6) brightness(.82); }
    .hp-ba-head { animation: none; rotate: 6deg; translate: 0 4.5%; }
    .hp-ba-lid { animation: none; transform: scaleY(1); }
    .hp-ba-arms { translate: 0 -24%; animation: none; }
    .hp-ba-tint { --tint: #FF3B5C; opacity: .45; }
  }
  /* trois spins perdants d'affilée : il s'endort sur ses mains, capuche sur les yeux */
  &[data-host="idle"]:is([data-dead="3"], [data-dead="4"], [data-dead="5"], [data-dead="6"], [data-dead="7"], [data-dead="8"], [data-dead="9"]) {
    .hp-ba-rig { translate: 0 14px; rotate: -3deg; filter: brightness(.64) saturate(.7); }
    .hp-ba-torso { animation-duration: 5.6s; }
    .hp-ba-head { animation: hopium-art-snore 2.8s var(--em) infinite alternate; }
    .hp-ba-lid { animation: none; transform: scaleY(1); }
    .hp-ba-brim { opacity: .96; translate: 0 0; }
    .hp-ba-jaw { animation: hopium-art-snore-jaw 2.8s var(--em) infinite alternate; }
    .hp-ba-arms { translate: 0 -4%; animation: none; }
  }
}
@keyframes hopium-art-idle { from { transform: scale(1); } to { transform: scale(1.01, 1.018); } }
@keyframes hopium-art-nod { from { transform: translateY(0) rotate(-.8deg); } to { transform: translateY(-1%) rotate(.8deg); } }
@keyframes hopium-art-blink { 0%, 91% { transform: scaleY(0); } 94%, 96% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
/* toutes les 9 s, à la place de la gorgée de canette : les mains montent dans le cadre et tapotent du bout des doigts */
@keyframes hopium-art-fidget { 0%, 64% { transform: none; } 70% { transform: translateY(-7%); } 74% { transform: translateY(-7%) rotate(1.8deg); } 78% { transform: translateY(-7%) rotate(-1.8deg); } 82% { transform: translateY(-7%) rotate(1.8deg); } 86% { transform: translateY(-7%); } 94%, 100% { transform: none; } }
@keyframes hopium-art-tremble { from { transform: translateX(-.5%); } to { transform: translateX(.5%); } }
@keyframes hopium-art-shake { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@keyframes hopium-art-pump { from { transform: translateY(1%) rotate(-2.5deg); } to { transform: translateY(-6%) rotate(2.5deg); } }
@keyframes hopium-art-yell { from { transform: none; } to { transform: translateY(12%); } }
@keyframes hopium-art-snore { from { transform: translateY(4%) rotate(7deg); } to { transform: translateY(5.2%) rotate(9deg); } }
@keyframes hopium-art-snore-jaw { from { transform: translateY(6%); } to { transform: translateY(20%); } }
@keyframes hopium-art-hype { from { transform: translateY(1px) scale(1.04); } to { transform: translateY(-6px) scale(1.09) rotate(1.2deg); } }


/* ---------- gains : le geste de chaque jeton (la matière GPU est dans skin.js) ---------- */
@keyframes hopium-w-h1 { 0% { transform: perspective(520px) rotateY(0); filter: brightness(1); } 30% { transform: perspective(520px) rotateY(-36deg) rotateX(8deg); filter: brightness(.86); } 62% { transform: perspective(520px) rotateY(30deg) rotateX(-6deg); filter: brightness(1.75) saturate(.8); } 100% { transform: perspective(520px) rotateY(0); filter: brightness(1.12); } }
@keyframes hopium-w-h2 { 0% { transform: none; } 28% { transform: translateX(-10%) rotate(-7deg) scale(.95); } 52% { transform: translateX(16%) rotate(5deg) scale(1.16); } 72% { transform: translateX(-3%) rotate(-2deg) scale(1.03); } 100% { transform: none; } }
@keyframes hopium-w-h3 { 0% { transform: perspective(520px) rotate(0) rotateY(0); } 20% { transform: perspective(520px) rotate(-14deg) rotateY(0); } 80% { transform: perspective(520px) rotate(-14deg) rotateY(360deg); } 100% { transform: perspective(520px) rotate(0) rotateY(360deg); } }
@keyframes hopium-w-h4 { 0% { transform: none; } 35% { transform: scale(1.07, .91) translateY(4%); } 60% { transform: scale(1.3, 1.24) translateY(-3%); } 78% { transform: scale(1.13, 1.2); } 100% { transform: scale(1.17); } }
@keyframes hopium-w-l5 { 0% { transform: none; filter: brightness(1); } 22% { transform: scale(1.07, .93) translateY(3%); } 40% { transform: scale(.93, 1.22) translateY(-9%) rotate(-3deg); filter: brightness(1.5); } 56% { transform: scale(1.04, 1.1) translateY(-5%) rotate(3deg); } 72% { transform: scale(.97, 1.17) translateY(-8%) rotate(-2deg); filter: brightness(1.35); } 100% { transform: scale(1.04, 1.08) translateY(-3%); filter: brightness(1.15); } }
@keyframes hopium-w-l4 { 0% { transform: none; } 35% { transform: rotate(-9deg) scale(1.06); } 70% { transform: rotate(7deg) scale(1.06); } 100% { transform: none; } }
@keyframes hopium-w-l4a { 0% { transform: none; } 30% { transform: translate(-1%, 1%); } 52% { transform: translate(10%, -10%) rotate(7deg); } 76% { transform: translate(7%, -7%) rotate(4deg); } 100% { transform: translate(5%, -5%) rotate(3deg); } }
@keyframes hopium-w-l4b { 0% { transform: none; } 30% { transform: translate(1%, -1%); } 52% { transform: translate(-10%, 10%) rotate(7deg); } 76% { transform: translate(-7%, 7%) rotate(4deg); } 100% { transform: translate(-5%, 5%) rotate(3deg); } }
@keyframes hopium-w-l3 { 0% { transform: none; } 36% { transform: scale(1.42) rotate(-11deg); } 50% { transform: scale(.9) rotate(-7deg); } 64% { transform: scale(1.06) rotate(-8deg); } 100% { transform: rotate(-7deg); } }
@keyframes hopium-w-l2 { 0%, 30%, 60%, 100% { transform: none; } 12% { transform: scale(1.15) rotate(-5deg) translateX(-4%); } 42% { transform: scale(1.12) rotate(-4deg) translateX(-3%); } 72% { transform: scale(1.1) rotate(-3deg) translateX(-2%); } }
@keyframes hopium-w-l1 { 0% { transform: none; } 18% { transform: translateX(5%) rotate(2deg); } 46% { transform: translate(-30%, 3%) rotate(-16deg) skewX(10deg); } 66% { transform: translate(-8%, 7%) rotate(12deg); } 84% { transform: translate(2%, 0) rotate(-4deg); } 100% { transform: none; } }
@keyframes hopium-strike { 0% { filter: brightness(2.4) saturate(.6); } 100% { filter: brightness(1.2); } }
@keyframes hopium-coin { from { transform: perspective(300px) rotateX(0); } to { transform: perspective(300px) rotateX(720deg); } }
@keyframes hopium-uptick { 0%, 100% { transform: none; } 40% { transform: scaleY(1.2); } }
@keyframes hopium-hop { 0%, 100% { transform: none; } 35% { transform: translateY(-9%) rotate(-3deg); } 70% { transform: translateY(1%); } }
@keyframes hopium-payin { from { transform: translate(-50%, -50%) scaleY(0); opacity: 0; } to { transform: translate(-50%, -50%); } }
@keyframes hopium-payout { to { transform: translate(-50%, -50%) scaleY(0); opacity: 0; } }
@keyframes hopium-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hopium-mark { 0% { opacity: 0; } 6%, 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hopium-fillp { 0% { border-color: #00E676; background: #131A22; } 100% { background: #0E1319; } }