/* MINUIT — « Plus ou Moins » : la nuit néon, une carte géante sur un piédestal, une série qui s'enflamme.
   --heat (0 → 1) et --flame-rgb (cyan → or → orange → braise) sont posés par games/hilo.js selon le multiplicateur. */
.g-hilo { --heat: 0; --flame-rgb: 59,232,255; --beat: 1.03s; position: relative; overflow: hidden; }
.g-hilo .hl-wrap { display: grid; grid-template-columns: minmax(270px, 300px) minmax(0, 1fr); gap: 16px; height: 100%; padding: 14px 16px 16px; box-sizing: border-box; }
.g-hilo .hl-wrap.is-offline .hl-stage { filter: saturate(.4) brightness(.8); }

/* ---------- colonne de gauche ---------- */
.g-hilo .hl-side { display: flex; flex-direction: column; gap: 11px; min-height: 0; overflow: auto; }
.g-hilo .hl-title { margin-bottom: 2px; }
.g-hilo .hl-lbl { font: 600 11px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.g-hilo .hl-tag { min-height: 34px; }
.g-hilo .bet-input.is-locked { opacity: .55; }
.g-hilo .hl-stats { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.g-hilo .hl-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5,6,11,.45); }
.g-hilo .hl-stat-v { font-size: 21px; font-weight: 700; color: var(--text); }
.g-hilo.is-on .hl-stats > div:last-child .hl-stat-v { color: rgb(var(--flame-rgb)); text-shadow: 0 0 14px rgba(var(--flame-rgb), .45); }
.g-hilo .hl-cash { width: 100%; height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.05; }
.g-hilo .hl-cash .hl-cash-a { font: 700 19px/1 var(--font-num); letter-spacing: .02em; text-transform: none; }
.g-hilo .hl-cash .hl-cash-a:empty { display: none; }
.g-hilo .hl-cash.is-ready { animation: hl-cashpulse var(--beat) ease-in-out infinite; }
.g-hilo .hl-cash[disabled] { filter: grayscale(.7) brightness(.7); }
@keyframes hl-cashpulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,236,170,.6) inset, 0 6px 20px rgba(222,184,92,.3); } 50% { box-shadow: 0 0 0 1px rgba(255,236,170,.9) inset, 0 0 34px rgba(247,221,143,.65); } }
.g-hilo .hl-skip { width: 100%; justify-content: center; gap: 10px; }
.g-hilo .hl-skip-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: rgba(59,232,255,.14); color: var(--neon-cyan); font-size: 13px; font-weight: 700; }
.g-hilo .hl-skip[disabled] .hl-skip-n { background: rgba(255,255,255,.06); color: var(--text-faint); }
.g-hilo .hl-msg { min-height: 40px; font-size: 14px; line-height: 1.35; color: var(--text-dim); }
.g-hilo .hl-msg.win { color: var(--win); }
.g-hilo .hl-msg.lose { color: var(--lose); }
.g-hilo .hl-hist-t { margin-top: 2px; }
.g-hilo .hl-hist { display: flex; flex-direction: column; gap: 4px; }
.g-hilo .hl-hist-r { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.03); border-left: 3px solid var(--win); font-size: 13.5px; }
.g-hilo .hl-hist-r.is-bust { border-left-color: var(--lose); color: var(--text-dim); }
.g-hilo .hl-hist-r .hl-hist-p { color: var(--win); font-weight: 700; }
.g-hilo .hl-hist-r.is-bust .hl-hist-p { color: var(--lose); }
.g-hilo .hl-hist-e { font-size: 13px; }
.g-hilo .hl-keys { margin: auto 0 0; font-size: 12px; line-height: 1.9; }

/* ---------- la scène ---------- */
.g-hilo .hl-stage {
  position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; isolation: isolate;
  background:
    radial-gradient(60% 50% at 50% 58%, rgba(var(--flame-rgb), calc(.06 + .16 * var(--heat))), transparent 70%),
    radial-gradient(120% 90% at 50% 62%, #141c40 0%, #0a0d18 58%, #05060b 100%);
  box-shadow: inset 0 0 0 1px rgba(247,221,143,.05), inset 0 0 calc(40px + 120px * var(--heat)) rgba(var(--flame-rgb), calc(.05 + .22 * var(--heat)));
  transition: box-shadow .8s ease;
}
/* éventail art déco derrière le piédestal : il tourne doucement et prend la couleur de la flamme */
.g-hilo .hl-stage::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: 190vmax; height: 190vmax; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(var(--flame-rgb), calc(.045 + .07 * var(--heat))) 0 3deg, transparent 3deg 11.25deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 12%, transparent 34%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 12%, transparent 34%);
  animation: hl-spin 140s linear infinite;
}
.g-hilo.is-hot .hl-stage::before { animation-duration: 60s; }
.g-hilo.is-blazing .hl-stage::before { animation-duration: 24s; }
/* filets dorés du cadre */
.g-hilo .hl-stage::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(222,184,92,.12); border-radius: calc(var(--radius) - 6px); pointer-events: none; z-index: 3; }
.g-hilo.is-blazing .hl-stage::after { border-color: rgba(var(--flame-rgb), .35); animation: hl-throb var(--beat) ease-in-out infinite; }
@keyframes hl-spin { to { rotate: 360deg; } }
@keyframes hl-throb { 0%, 100% { opacity: .55; } 12% { opacity: 1; } 30% { opacity: .7; } 42% { opacity: .95; } }
.g-hilo .hl-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.g-hilo .hl-stage.hl-shake { animation: hl-shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes hl-shake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 0; } 30%, 50%, 70% { translate: -7px 0; } 40%, 60% { translate: 7px 0; } }

/* bandeau des potes (en ligne) */
.g-hilo .hl-potes { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px 0; }
.g-hilo .hl-potes.is-empty { min-height: 14px; }
.g-hilo .hl-potes-l { font: 600 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-right: 2px; }
.g-hilo .hl-pote { display: inline-flex; align-items: center; gap: 7px; height: clamp(34px, 4.2vh, 42px); padding: 0 14px 0 9px; border-radius: 21px; font-size: clamp(14px, 1.05vw, 17px); color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 22%, transparent), rgba(10,13,24,.75)); border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); }
.g-hilo .hl-pote b { font-size: 1.3em; font-weight: 400; }
.g-hilo .hl-pote-n { font-weight: 600; }
.g-hilo .hl-pote-s { color: var(--text-dim); font-size: .95em; }
.g-hilo .hl-pote.is-idle { opacity: .75; height: 28px; }
.g-hilo .hl-pote.is-hot { border-color: #ff8a3d; background: linear-gradient(90deg, rgba(255,120,40,.35), rgba(60,14,10,.85)); box-shadow: 0 0 18px rgba(255,138,61,.55); animation: hl-potehot 1.1s ease-in-out infinite; }
@keyframes hl-potehot { 0%, 100% { box-shadow: 0 0 12px rgba(255,138,61,.4); } 50% { box-shadow: 0 0 26px rgba(255,98,61,.8); } }
.g-hilo .hl-pote.is-hot .hl-pote-s { color: #ffc27a; }
.g-hilo .hl-pote.is-cash, .g-hilo .hl-pote.is-plafond { border-color: var(--win); box-shadow: 0 0 18px rgba(62,224,143,.4); }
.g-hilo .hl-pote.is-cash .hl-pote-s, .g-hilo .hl-pote.is-plafond .hl-pote-s { color: var(--win); }
.g-hilo .hl-pote.is-perdu { border-color: var(--lose); }
.g-hilo .hl-pote.is-perdu .hl-pote-s { color: var(--lose); }
.g-hilo .hl-pote.is-pop { animation: hl-pop .45s cubic-bezier(.2,.9,.3,1.4); }
.g-hilo .hl-pote.is-perdu.is-pop { animation: hl-pop .45s cubic-bezier(.2,.9,.3,1.4), hl-shake .5s .1s; }
@keyframes hl-pop { from { transform: scale(.82); filter: brightness(1.8); } to { transform: none; filter: none; } }
.g-hilo .hl-mini { display: inline-flex; align-items: baseline; gap: 1px; padding: 1px 6px; border-radius: 4px; background: #f4ecd8; color: #15161c; font: 700 .85em/1.3 Georgia, serif; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.g-hilo .hl-mini.is-red { color: #b8202c; }

/* multiplicateur géant */
.g-hilo .hl-hud { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 0; pointer-events: none; }
.g-hilo .hl-mult { font: 700 clamp(42px, min(5.6vw, 9vh), 88px)/1 var(--font-num); letter-spacing: .01em; color: rgb(var(--flame-rgb));
  text-shadow: 0 0 calc(10px + 26px * var(--heat)) rgba(var(--flame-rgb), calc(.35 + .5 * var(--heat))), 0 2px 0 rgba(0,0,0,.5); transition: color .6s ease; }
.g-hilo:not(.is-on) .hl-mult { color: rgba(244,236,216,.28); text-shadow: none; }
.g-hilo .hl-mult.is-bump { animation: hl-bump .5s cubic-bezier(.2,.9,.3,1.5); }
@keyframes hl-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); filter: brightness(1.6); } 100% { transform: scale(1); } }
.g-hilo .hl-streak { font: 400 clamp(15px, 1.35vw, 21px)/1.2 var(--font-display); letter-spacing: .12em; color: var(--gold-hi); text-transform: uppercase; }
.g-hilo:not(.is-on) .hl-streak { color: var(--text-faint); }

/* la table : sabot · carte · paris */
.g-hilo .hl-table { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 48px); padding: 0 clamp(14px, 2.4vw, 40px); min-height: 0; }
.g-hilo .hl-deck { justify-self: end; position: relative; --card-w: clamp(92px, min(8.6vw, 20vh), 172px); width: var(--card-w); aspect-ratio: 5/7; }
.g-hilo .hl-deck .pcard { position: absolute; inset: 0; width: 100%; }
.g-hilo .hl-deck .pcard:nth-child(1) { transform: translate(-8px, 8px) rotate(-6deg); opacity: .55; }
.g-hilo .hl-deck .pcard:nth-child(2) { transform: translate(-6px, 6px) rotate(-4deg); opacity: .7; }
.g-hilo .hl-deck .pcard:nth-child(3) { transform: translate(-4px, 4px) rotate(-2.5deg); opacity: .85; }
.g-hilo .hl-deck .pcard:nth-child(4) { transform: translate(-2px, 2px) rotate(-1deg); }
.g-hilo .hl-deck .pcard:nth-child(5) { box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.g-hilo .hl-deck-l { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; white-space: nowrap; font: 600 10.5px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }

.g-hilo .hl-pedestal { position: relative; display: grid; place-items: center; padding: 18px 26px 30px; }
.g-hilo .hl-pedestal::after { /* socle : ellipse de laiton sous la carte */
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 120%; height: 34px; translate: -50% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--flame-rgb), calc(.18 + .4 * var(--heat))), rgba(222,184,92,.10) 60%, transparent);
  box-shadow: 0 0 0 1px rgba(222,184,92,.18); }
.g-hilo .hl-halo { position: absolute; inset: -18% -38%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--flame-rgb), calc(.16 + .5 * var(--heat))), rgba(var(--flame-rgb), calc(.04 + .12 * var(--heat))) 55%, transparent 72%);
  filter: blur(6px); transition: background .6s ease; }
.g-hilo.is-on .hl-halo { animation: hl-halo var(--beat) ease-in-out infinite; }
@keyframes hl-halo { 0%, 100% { transform: scale(1); opacity: .85; } 12% { transform: scale(1.06); opacity: 1; } 30% { transform: scale(1.01); opacity: .9; } 42% { transform: scale(1.045); opacity: 1; } }
/* flammes qui lèchent la carte quand ça brûle */
.g-hilo .hl-flames { position: absolute; left: 50%; bottom: 18px; width: 150%; height: 115%; translate: -50% 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background:
    radial-gradient(22% 55% at 20% 100%, rgba(255,120,40,.85), transparent 70%),
    radial-gradient(18% 70% at 42% 100%, rgba(255,190,90,.8), transparent 70%),
    radial-gradient(20% 62% at 64% 100%, rgba(255,90,60,.8), transparent 70%),
    radial-gradient(18% 50% at 84% 100%, rgba(255,160,70,.8), transparent 70%);
  filter: blur(10px); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%); mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  animation: hl-lick 1.1s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.g-hilo.is-hot .hl-flames { opacity: calc((var(--heat) - .3) * 1.4); }
@keyframes hl-lick { 0% { transform: scaleY(.9) skewX(-3deg); } 50% { transform: scaleY(1.06) skewX(2deg); } 100% { transform: scaleY(.96) skewX(4deg); } }

.g-hilo .hl-cardbox { --card-w: clamp(150px, min(15.5vw, 37vh), 340px); position: relative; width: var(--card-w); aspect-ratio: 5/7; }
/* placements de la carte du pari et de la suivante (games/hilo.js, `translate` / `scale`) : glissés courts, interruptibles */
.g-hilo .hl-cardbox .pcard { position: absolute; inset: 0; width: 100%; --flip-ms: 520ms;
  transition: translate var(--hl-glisse, 300ms) cubic-bezier(.23,1,.32,1), scale var(--hl-glisse, 300ms) cubic-bezier(.23,1,.32,1); }
.g-hilo .hl-cardbox .pcard .pcard-front { box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.55), 0 0 calc(10px + 44px * var(--heat)) rgba(var(--flame-rgb), calc(.25 + .5 * var(--heat))); }
.g-hilo .hl-cardbox .pcard.hl-next { z-index: 2; }
.g-hilo .hl-cardbox .pcard.hl-next.is-tense { animation: hl-tense .16s linear infinite; }
@keyframes hl-tense { 0% { transform: translate(0, -4px) rotate(-.6deg); } 50% { transform: translate(1px, -6px) rotate(.6deg); } 100% { transform: translate(0, -4px) rotate(-.6deg); } }
.g-hilo .hl-cardbox::after { content: ""; position: absolute; inset: -6%; border-radius: 12%; pointer-events: none; opacity: 0; z-index: 3; }
.g-hilo .hl-cardbox.is-win::after { border: 3px solid rgba(var(--flame-rgb), .95); box-shadow: 0 0 40px rgba(var(--flame-rgb), .8), inset 0 0 30px rgba(var(--flame-rgb), .5); animation: hl-ring .7s ease-out forwards; }
.g-hilo .hl-cardbox.is-lose::after { background: radial-gradient(closest-side, rgba(255,70,90,.55), transparent); border: 2px solid rgba(255,90,103,.9); animation: hl-ring .8s ease-out forwards; }
.g-hilo .hl-cardbox.is-lose .pcard:not(.hl-next) { filter: saturate(.3) brightness(.75);
  transition: filter .6s ease .25s, translate var(--hl-glisse, 300ms) cubic-bezier(.23,1,.32,1), scale var(--hl-glisse, 300ms) cubic-bezier(.23,1,.32,1); }
@keyframes hl-ring { 0% { opacity: 1; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.22); } }

/* les deux paris */
.g-hilo .hl-bets { justify-self: start; display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 18px); width: clamp(210px, 17vw, 300px); }
.g-hilo .hl-bet { --c: var(--neon-cyan); --c-rgb: 59,232,255; position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: clamp(84px, 12vh, 118px); padding: 12px 14px 12px 12px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--text);
  border: 1.5px solid rgba(var(--c-rgb), .55); background: linear-gradient(135deg, rgba(var(--c-rgb), .16), rgba(10,13,24,.85) 60%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35), inset 0 0 22px rgba(var(--c-rgb), .08);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease, filter .2s ease; font: inherit; }
.g-hilo .hl-bet-lo { --c: var(--neon-pink); --c-rgb: 255,79,216; }
.g-hilo .hl-bet:hover:not([disabled]) { transform: translateY(-2px); border-color: rgba(var(--c-rgb), .95); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.4), 0 0 26px rgba(var(--c-rgb), .45), inset 0 0 26px rgba(var(--c-rgb), .16); }
.g-hilo .hl-bet:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.g-hilo .hl-bet:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.g-hilo .hl-bet[disabled] { cursor: default; opacity: .5; filter: saturate(.4); }
.g-hilo .hl-bet.is-off { opacity: .3; filter: grayscale(1); }
.g-hilo .hl-b-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--c-rgb), .14); box-shadow: 0 0 0 1px rgba(var(--c-rgb), .5), 0 0 18px rgba(var(--c-rgb), .35); }
.g-hilo .hl-b-arrow::before { content: ""; width: 16px; height: 12px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 4px rgba(var(--c-rgb), .9)); }
.g-hilo .hl-bet-lo .hl-b-arrow::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.g-hilo .hl-b-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-hilo .hl-b-lab { font: 600 clamp(15px, 1.2vw, 19px)/1.1 var(--font-ui); color: var(--text); }
.g-hilo .hl-b-sub { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: clamp(14px, 1.2vw, 20px); font-weight: 700; }
.g-hilo .hl-b-sub i { font-style: normal; color: var(--text-faint); font-weight: 400; }
.g-hilo .hl-b-p { color: var(--text-dim); }
.g-hilo .hl-b-m { color: var(--c); text-shadow: 0 0 10px rgba(var(--c-rgb), .5); }
.g-hilo .hl-b-to { font-size: 12.5px; color: var(--text-faint); }
.g-hilo .hl-b-to:empty { display: none; }
.g-hilo .hl-b-key { align-self: start; }
.g-hilo .hl-bet.is-sure .hl-b-p { color: var(--text); }
.g-hilo .hl-bet.is-long .hl-b-m { font-size: 1.12em; }

/* l'historique de la partie */
.g-hilo .hl-trail-w { position: relative; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 8px 18px 14px; min-width: 0; }
.g-hilo .hl-trail-w > .hl-lbl { flex: none; writing-mode: vertical-rl; rotate: 180deg; }
.g-hilo .hl-trail { --card-w-sm: clamp(38px, min(3.2vw, 7vh), 84px); display: flex; align-items: flex-end; gap: 8px; min-height: calc(var(--card-w-sm) * 1.4 + 22px); min-width: 0; overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px); mask-image: linear-gradient(90deg, transparent 0, #000 48px); justify-content: flex-end; }
.g-hilo .hl-tc { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; animation: hl-in .35s ease-out; }
.g-hilo .hl-tc-s { font: 700 13px/1 var(--font-num); color: var(--text-faint); height: 14px; }
.g-hilo .hl-tc.is-win .hl-tc-s { color: var(--win); }
.g-hilo .hl-tc.is-lose .hl-tc-s { color: var(--lose); }
.g-hilo .hl-tc.is-skip .hl-tc-s { color: var(--neon-violet); }
.g-hilo .hl-tc.is-win .pcard { box-shadow: 0 0 0 2px rgba(62,224,143,.65); }
.g-hilo .hl-tc.is-lose .pcard { box-shadow: 0 0 0 2px rgba(255,90,103,.8); }
.g-hilo .hl-tc.is-skip .pcard { opacity: .55; }
.g-hilo .hl-tc.is-last .pcard { box-shadow: 0 0 0 2px rgba(var(--flame-rgb), .9), 0 0 14px rgba(var(--flame-rgb), .5); }
.g-hilo .hl-trail.is-ended .hl-tc { opacity: .75; }
@keyframes hl-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* annonces qui claquent */
.g-hilo .hl-slam { position: absolute; left: 50%; top: 44%; z-index: 6; translate: -50% -50%; pointer-events: none; white-space: nowrap; opacity: 0;
  font: 400 clamp(34px, 4.6vw, 76px)/1 var(--font-display); letter-spacing: .06em; color: var(--gold-hi); text-shadow: 0 0 28px rgba(247,221,143,.7), 0 4px 0 rgba(0,0,0,.55); }
.g-hilo .hl-slam.is-on { animation: hl-slam 1.5s cubic-bezier(.2,.9,.25,1) forwards; }
.g-hilo .hl-slam.is-fire { color: #ffd08a; text-shadow: 0 0 22px rgba(255,138,61,.95), 0 0 60px rgba(255,61,90,.7), 0 4px 0 rgba(0,0,0,.55); }
.g-hilo .hl-slam.is-cold { color: #ff9aa5; text-shadow: 0 0 26px rgba(255,90,103,.8), 0 4px 0 rgba(0,0,0,.55); }
.g-hilo .hl-slam.is-gold { color: var(--gold-hi); }
@keyframes hl-slam { 0% { opacity: 0; transform: scale(2.2); filter: blur(6px); } 14% { opacity: 1; transform: scale(.94); filter: none; } 22% { transform: scale(1.03); } 30% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06) translateY(-14px); } }

/* gros coups des potes */
.g-hilo .hl-feed { position: absolute; right: 18px; top: 58px; z-index: 6; max-width: 34%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.g-hilo .hl-feed-i.is-fire { border-color: #ff8a3d; background: linear-gradient(90deg, rgba(255,110,40,.38), rgba(10,13,24,.92)); box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 26px rgba(255,120,40,.6); }
.g-hilo .hl-feed-i { padding: 8px 14px; border-radius: 12px; font-size: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 28%, rgba(10,13,24,.92)), rgba(10,13,24,.92)); border: 1px solid color-mix(in srgb, var(--pc) 70%, transparent); box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 20px color-mix(in srgb, var(--pc) 35%, transparent); animation: hl-feed .5s cubic-bezier(.2,.9,.3,1.3); transition: opacity .6s ease, transform .6s ease; }
.g-hilo .hl-feed-i.is-out { opacity: 0; transform: translateX(30px); }
.g-hilo .hl-feed-pay { color: var(--win); font-weight: 700; }
@keyframes hl-feed { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }

/* animations réduites (réglage) */
.reduce-motion .g-hilo .hl-stage::before, .reduce-motion .g-hilo .hl-halo, .reduce-motion .g-hilo .hl-flames, .reduce-motion .g-hilo .hl-cash.is-ready { animation: none; }
/* les cartes se placent d'un coup : même ramenée à 0,01 ms, une transition peut laisser la carte du pari quelques images sous la suivante */
.reduce-motion .g-hilo .hl-cardbox .pcard { transition: none; }
.reduce-motion .g-hilo .hl-cardbox .pcard.hl-next.is-tense { animation: none; }
.reduce-motion .g-hilo .hl-cardbox.is-lose .pcard:not(.hl-next) { transition: filter .6s ease .25s; }

/* écrans plus petits */
@media (max-width: 1180px) {
  .g-hilo .hl-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .g-hilo .hl-deck { display: none; }
  .g-hilo .hl-table { grid-template-columns: auto auto; justify-content: center; }
}
@media (max-height: 700px) {
  .g-hilo .hl-hist-t, .g-hilo .hl-hist { display: none; }
}
.g-hilo .hl-tc.is-last.is-lose .pcard { box-shadow: 0 0 0 2px rgba(255,90,103,.95), 0 0 16px rgba(255,90,103,.55); }

/* ---------- TÉLÉPHONE (N1b, 13/10 ; revue au téléphone, défaut n° 13) ----------
   La colonne de gauche (250 px) laissait ~80 px à la scène : à 360 et 390 px, les paris « Plus haut / Plus bas », le multiplicateur et
   la série sortaient de l'écran à droite ; couché, le panneau écrasait « Encaisser » (19 px de haut), rognait « Passer la carte », et
   « Plus bas » passait sous les cartes de la partie. Dans le panneau, au téléphone, « Encaisser » et « Passer la carte » suivent la
   mise (puis la série et le gain, le message, l'historique) : jouer et encaisser se font d'un même pouce. Les touches du clavier ne
   s'affichent pas au doigt. En PORTRAIT : une colonne qui défile — le jeu d'abord (multiplicateur, série, la carte et les deux paris
   côte à côte, les cartes de la partie), puis le panneau. En PAYSAGE : les deux colonnes restent, resserrées ; le panneau défile au
   lieu d'écraser ses boutons. Règles bornées au téléphone (portrait ≤ 480 px de large, paysage ≤ 560 px de haut) : le PC ne change
   pas (s5-tel-jeux.mjs, D). */
@media (orientation: portrait) and (max-width: 480px), (orientation: landscape) and (max-height: 560px) {
  .g-hilo .hl-side > * { flex-shrink: 0; }
  .g-hilo .hl-side > .hl-stats, .g-hilo .hl-side > .hl-msg { order: 1; }
  .g-hilo .hl-side > .hl-hist-t, .g-hilo .hl-side > .hl-hist { order: 2; }
  .g-hilo .hl-keys, .g-hilo .hl-b-key { display: none; }
}
@media (orientation: portrait) and (max-width: 480px) {
  /* rangées à la taille de leur contenu (scène et panneau gardent min-height: 0, règles du PC) ; la réglette flottante garde sa voie
     au-dessus du défileur */
  .g-hilo .hl-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content max-content; align-content: start; gap: 12px;
    padding: 8px 10px 18px; overflow-y: auto; overscroll-behavior: contain; }
  body:has(.so-dock.is-float) .g-hilo .hl-wrap { margin-top: var(--so-float-h, 58px); height: calc(100% - var(--so-float-h, 58px)); }
  .g-hilo .hl-stage { order: -1; }
  .g-hilo .hl-side { overflow: visible; }
  .g-hilo .hl-table { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 0 12px; }
  .g-hilo .hl-cardbox { --card-w: clamp(104px, 30vw, 140px); }
  .g-hilo .hl-pedestal { padding: 10px 6px 20px; }
  .g-hilo .hl-bets { justify-self: stretch; width: auto; gap: 10px; }
  .g-hilo .hl-bet { grid-template-columns: auto minmax(0, 1fr); gap: 8px; min-height: 84px; padding: 10px 10px 10px 8px; }
  .g-hilo .hl-b-sub { flex-wrap: wrap; row-gap: 0; }
  .g-hilo .hl-trail { --card-w-sm: 34px; }
  .g-hilo .hl-trail-w { padding: 6px 14px 12px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .g-hilo .hl-wrap { gap: 10px; padding: 8px 10px 10px; }
  .g-hilo .hl-side { gap: 8px; }
  .g-hilo .hl-cash { height: 52px; }
  .g-hilo .hl-mult { font-size: 34px; }
  /* la réglette flottante (≈ 240 px, en haut à droite) mordait le multiplicateur : il se centre sur ce qui reste à sa gauche */
  body:has(.so-dock.is-float) .g-hilo .hl-hud { padding-right: 240px; }
  .g-hilo .hl-table { gap: 14px; }
  .g-hilo .hl-cardbox { --card-w: 92px; }
  .g-hilo .hl-pedestal { padding: 6px 10px 14px; }
  .g-hilo .hl-bets { gap: 8px; }
  .g-hilo .hl-bet { min-height: 64px; padding: 8px 12px 8px 10px; }
  .g-hilo .hl-trail { --card-w-sm: 30px; }
  .g-hilo .hl-trail-w { padding: 4px 14px 8px; }
}
/* TÉLÉPHONE — N11 (annexe A de la revue au téléphone, REMESURÉE sur 1bedc6a) : les libellés « Mise », « Série », « Cette partie », « Tes dernières parties » (11 px) : 12 px. Mêmes polices, même interlettrage,
   même couleur ; on agrandit le texte, on ne redessine pas. Bornée au téléphone : le PC ne change pas (dev/tests-client/s5-tel-textes.mjs, D et D2). */
@media (orientation: portrait) and (max-width: 480px), (orientation: landscape) and (max-height: 560px) {
  .g-hilo .hl-lbl { font-size: 12px; }
  /* « CETTE PARTIE », écrit à la verticale, fixe la hauteur de la rangée des cartes jouées (posée par-dessus les paris) : à 12 px il la haussait de 8 px,
     et la rangée passait sur le texte des paris à 844 × 390 ; l'interlettrage baisse d'autant, la hauteur ne bouge pas */
  .g-hilo .hl-trail-w > .hl-lbl { letter-spacing: .07em; }
}
/* TÉLÉPHONE COUCHÉ — N23 (revue finale R2, n° 20) : la rangée des cartes jouées (« Cette partie », haute de son libellé vertical) est posée
   par-dessus le bas des paris (N11) ; sa boîte transparente prenait le bas du pari « Plus bas » (« si juste : … ») et le toucher qui y
   tombait (32 px de ses 79). Rien n'y est touchable (ni écouteur ni titre) : elle laisse passer le doigt ; rien ne bouge, rien ne se
   redessine. Bornée au téléphone couché. */
@media (orientation: landscape) and (max-height: 560px) {
  .g-hilo .hl-trail-w { pointer-events: none; }
}
