/* =====================================================================
   Écrans de jeu : plateau télé (animateur), cartes, révélations, course,
   classement final, et téléphone des joueurs (cartes + mise de confiance).
   Toutes les classes commencent par « g- » pour ne rien casser ailleurs.
   ===================================================================== */
:root { --plum: #1c0b33; --plum2: #2d1352; --gold: #ffd36b; }

/* ---------- Plateau ---------- */
.g-tv { position: fixed; inset: 0; z-index: 5; overflow: hidden; color: #fff; font-family: "Poppins", sans-serif;
  background: radial-gradient(120% 70% at 50% 112%, #5b1f7a 0%, rgba(91, 31, 122, 0) 60%), radial-gradient(90% 60% at 50% -10%, #3b1766, var(--plum) 70%); }
.g-floor { position: absolute; left: -10%; right: -10%; bottom: -32vh; height: 60vh; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 178, 30, .26), rgba(255, 46, 126, .12) 60%, transparent); }
.g-spot { position: absolute; top: -12vh; width: 34vw; height: 120vh; transform-origin: 50% 0; mix-blend-mode: screen; pointer-events: none; filter: blur(10px);
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(255, 236, 190, .3) 12deg, rgba(255, 236, 190, .3) 24deg, transparent 36deg);
  transition: transform 1.4s var(--smooth); }
.g-spot.l { left: 4vw; animation: g-sweepL 7s ease-in-out infinite alternate; }
.g-spot.r { right: 4vw; animation: g-sweepR 8s ease-in-out infinite alternate; }
@keyframes g-sweepL { from { transform: rotate(-24deg); } to { transform: rotate(10deg); } }
@keyframes g-sweepR { from { transform: rotate(24deg); } to { transform: rotate(-10deg); } }
.g-tv.focus .g-spot.l { animation: none; transform: rotate(-12deg); }
.g-tv.focus .g-spot.r { animation: none; transform: rotate(12deg); }
.g-bulbs { position: absolute; left: 0; right: 0; top: 0; height: 14px; display: flex; justify-content: space-around; pointer-events: none; }
.g-bulbs i { width: 9px; height: 9px; border-radius: 50%; background: var(--mango); box-shadow: 0 0 12px 3px rgba(255, 178, 30, .7); animation: g-blink 1.2s steps(2) infinite; }
.g-bulbs i:nth-child(2n) { animation-delay: .6s; background: var(--rasp); box-shadow: 0 0 12px 3px rgba(255, 46, 126, .7); }
@keyframes g-blink { 50% { opacity: .25; } }

.g-top { position: absolute; top: 20px; left: 28px; right: 28px; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.g-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; }
.g-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); white-space: nowrap; }
.g-chip.hot { background: var(--mango); color: #3a1d00; border: 0; }
.g-chip b { font-family: var(--font-title); font-size: 1.1rem; }
.g-chip b.bump { animation: bump .4s var(--spring); }

/* Rideau entre les questions */
.g-curtain { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 30; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1);
  background: repeating-linear-gradient(90deg, #b5103f 0 3vw, #e0245e 3vw 4.5vw, #8c0a33 4.5vw 6vw); box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .35); }
.g-curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(var(--mango), #d98a00); }
.g-curtain.l { left: 0; } .g-curtain.r { right: 0; }
.g-tv.open .g-curtain.l { transform: translateX(-100%); } .g-tv.open .g-curtain.r { transform: translateX(100%); }
.g-ctitle { position: absolute; inset: 0; z-index: 31; display: grid; place-items: center; text-align: center; pointer-events: none; transition: opacity .4s; padding: 0 6vw; }
.g-tv.open .g-ctitle { opacity: 0; }
.g-ctitle small { display: block; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--mango); font-size: 1rem; }
.g-ctitle b { display: block; font-family: var(--font-title); font-size: clamp(3rem, 10vw, 7.5rem); text-transform: uppercase; line-height: 1; text-shadow: 0 6px 0 rgba(0, 0, 0, .25);
  animation: g-zoom .9s var(--spring) both; }
.g-ctitle .g-chip { margin-top: 18px; }
@keyframes g-zoom { from { transform: scale(.4); opacity: 0; } }

/* Scène de question */
.g-scene { position: absolute; inset: 66px 0 0; display: flex; flex-direction: column; align-items: center; padding: 1vh 3vw 64px; gap: 2vh; }
/* Tant que le rideau est fermé, les animations de la scène attendent. */
.g-tv:not(.open) #g-scene * { animation-play-state: paused !important; }
.g-q { position: relative; width: min(820px, 72vw); perspective: 1400px; z-index: 6; flex: none; }
.g-deck { position: absolute; inset: 0; }
.g-deck i { position: absolute; inset: 0; border-radius: 26px; background: var(--g-back); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.g-deck i:nth-child(1) { transform: translate(10px, 10px) rotate(2deg); } .g-deck i:nth-child(2) { transform: translate(5px, 5px) rotate(1deg); }
:root { --g-back: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 20px), linear-gradient(135deg, var(--coral), var(--rasp) 55%, var(--violet)); }
.g-qcard { position: relative; transform-style: preserve-3d; transition: transform 1s var(--spring); transform: rotateY(180deg); }
.g-q.flip .g-qcard { transform: none; }
.g-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; }
.g-qcard .g-front { position: relative; background: #fff; color: var(--text); padding: 22px 34px 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.g-qcard .g-front::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, var(--coral), var(--mango), var(--teal), var(--violet)); }
.g-qcard .g-back { transform: rotateY(180deg); background: var(--g-back); display: grid; place-items: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.g-qmeta { display: flex; justify-content: center; gap: 8px; color: #8a6b97; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.g-qtext { font-weight: 800; font-size: clamp(1.3rem, 2.5vw, 2.3rem); line-height: 1.2; margin: 8px 0 0; text-align: center; }
.g-qimg { height: min(22vh, 220px); margin-top: 14px; border-radius: 16px; }
.g-token { position: absolute; right: -26px; top: -26px; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: conic-gradient(var(--mango) calc(var(--p) * 1%), rgba(255, 255, 255, .25) 0); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.g-token b { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--plum2); color: #fff; font-family: var(--font-title); font-size: 2rem; }
.g-token.urgent { animation: g-pulse .5s ease-in-out infinite alternate; }
@keyframes g-pulse { to { transform: scale(1.1); } }

/* Cartes réponses en éventail */
.g-mid { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; position: relative; }
.g-hand { position: relative; flex: none; width: 100%; height: min(48vh, 430px); perspective: 1400px; z-index: 6; }
.g-card { --rot: 0deg; --x: 0px; --lift: 0px; --w: 220px; position: absolute; left: 50%; bottom: 0; width: var(--w); height: calc(var(--w) * 1.38); max-height: 100%; margin-left: calc(var(--w) / -2);
  transform-origin: 50% 120%; transform: translateX(var(--x)) translateY(var(--lift)) rotate(var(--rot)); transform-style: preserve-3d; transition: transform .9s var(--spring); }
.g-card .g-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.g-card.down .g-in { transform: rotateY(180deg); }
.g-card .g-front { background: #fff; color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px 18px; text-align: center; overflow: hidden; }
.g-card .g-front::before { content: ""; position: absolute; inset: 8px; border-radius: 20px; border: 3px solid var(--c); opacity: .35; }
.g-card .g-back { transform: rotateY(180deg); background: var(--g-back); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); display: grid; place-items: center; }
.g-card .g-back svg { opacity: .55; }
.g-suit { position: absolute; font-size: 1.5rem; color: var(--c); line-height: 1; display: flex; flex-direction: column; align-items: center; font-family: var(--font-title); font-weight: 700; }
.g-suit.tl { left: 16px; top: 14px; } .g-suit.br { right: 16px; bottom: 14px; transform: rotate(180deg); }
.g-suit small { font-size: .95rem; }
.g-bigsuit { font-size: 3rem; color: var(--c); margin-bottom: 10px; line-height: 1; }
.g-atext { font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.4rem); line-height: 1.2; overflow-wrap: anywhere; }
.g-c0 { --c: var(--coral); } .g-c1 { --c: #f39a00; } .g-c2 { --c: var(--teal); } .g-c3 { --c: var(--violet); }
.g-hand.deal .g-card { animation: g-deal .7s var(--spring) both; animation-delay: calc(var(--i) * 110ms + 250ms); }
@keyframes g-deal { from { transform: translate(0, 60vh) rotate(0); opacity: 0; } }
.g-card.win { --lift: -46px; z-index: 3; }
.g-card.win .g-front { box-shadow: 0 0 0 5px var(--mango), 0 0 60px 10px rgba(255, 220, 120, .5), 0 30px 60px rgba(0, 0, 0, .5); }
.g-card.lose .g-face { filter: brightness(.6) saturate(.6); transition: filter .6s; }
.g-card.top .g-front { box-shadow: 0 0 0 5px #fff, 0 30px 60px rgba(0, 0, 0, .5); }
.g-votes { position: absolute; left: 50%; top: -16px; translate: -50% 0; z-index: 4; background: var(--plum2); border: 2px solid rgba(255, 255, 255, .25); padding: 3px 12px; border-radius: 999px;
  font-weight: 800; font-size: .92rem; white-space: nowrap; opacity: 0; transform: scale(.4); transition: opacity .4s .4s, transform .5s var(--spring) .4s; }
.g-hand.revealed .g-votes { opacity: 1; transform: none; }
.g-card.win .g-votes { background: var(--ok); }

.g-drum { position: absolute; left: 50%; top: 46%; translate: -50% -50%; z-index: 20; font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase;
  color: var(--mango); text-shadow: 0 4px 0 rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; white-space: nowrap; }
.g-drum.go { animation: g-drum 1.4s ease-in-out both; }
@keyframes g-drum { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1); } 20%, 40%, 60% { transform: translateX(-4px) rotate(-1deg); } 30%, 50%, 70% { transform: translateX(4px) rotate(1deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.g-ticker { position: absolute; left: 24px; bottom: 70px; z-index: 8; display: flex; flex-direction: column; gap: 8px; max-width: 30vw; }
.g-tick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: .88rem;
  backdrop-filter: blur(6px); animation: g-slide .5s var(--spring) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-tick .avatar { --s: 28px; box-shadow: none; }
.g-tick b { color: var(--mango); }
@keyframes g-slide { from { opacity: 0; transform: translateX(-30px); } }
.g-foot { position: absolute; left: 24px; right: 24px; bottom: 16px; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.g-foot .g-status { color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .9rem; }
.g-btn { font: inherit; font-weight: 700; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; color: #fff; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); transition: transform .25s var(--spring), background .2s; }
.g-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .22); }
.g-btn.main { background: linear-gradient(135deg, var(--coral), var(--rasp)); border: 0; font-size: 1.15rem; padding: 14px 26px; box-shadow: 0 10px 24px rgba(255, 46, 126, .35); }

/* Réponse à taper : rébus, cases-lettres, indices, joueurs qui ont trouvé */
.g-rebus { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.g-rcard { min-width: 104px; height: 130px; padding: 0 14px; border-radius: 18px; background: #fff; color: var(--text); display: grid; place-items: center; font-size: 3.6rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4); animation: g-deal2 .6s var(--spring) both; animation-delay: calc(var(--i) * 140ms + 300ms); }
.g-rcard.word { font-family: var(--font-title); font-size: 2.6rem; }
.g-rcard img { max-height: 100px; max-width: 160px; border-radius: 10px; }
.g-rop { font-family: var(--font-title); font-size: 3rem; color: var(--mango); animation: g-deal2 .6s var(--spring) both; animation-delay: calc(var(--i) * 140ms + 300ms); }
@keyframes g-deal2 { from { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(.6); } }
.g-tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 92vw; }
.g-tile { width: clamp(38px, 4.6vw, 68px); height: clamp(48px, 5.8vw, 84px); position: relative; perspective: 600px; animation: g-tile .5s var(--spring) backwards; animation-delay: calc(var(--i) * 60ms + 600ms); }
.g-tile.gap { width: clamp(14px, 2vw, 28px); }
.g-tile.sym .g-front { color: rgba(255, 255, 255, .8); }
@keyframes g-tile { from { opacity: 0; transform: translateY(30px) scale(.5); } }
.g-tin { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--spring); }
.g-tile .g-face { display: grid; place-items: center; border-radius: 12px; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.6rem); }
.g-tile .g-front { background: var(--plum2); border: 2px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .35); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25); }
.g-tile .g-back { transform: rotateY(180deg); background: linear-gradient(180deg, #fff, #ffeedd); color: var(--text); box-shadow: 0 0 0 3px var(--mango), 0 10px 24px rgba(0, 0, 0, .35); }
.g-tile.show .g-tin { transform: rotateY(180deg); }
.g-hintcol { position: absolute; left: 2.5vw; top: 30vh; width: min(300px, 22vw); display: flex; flex-direction: column; gap: 12px; z-index: 7; }
.g-hintcol h4, .g-found h4 { margin: 0; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mango); }
.g-hcard { display: flex; gap: 10px; align-items: flex-start; background: #fff; color: var(--text); border-radius: 16px; padding: 12px 14px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35); transform: rotate(-2deg); animation: g-deal2 .6s var(--spring) both; }
.g-hcard:nth-child(odd) { transform: rotate(1.5deg); }
.g-hcard b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: #3a1d00; font-size: .85rem; }
.g-hwait { font-size: .85rem; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 6px; }
.g-found { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-shelf { display: flex; align-items: center; min-height: 50px; padding: 6px 16px 6px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.g-shelf .avatar { --s: 42px; margin-left: -10px; animation: g-drop .5s var(--spring) both; }
.g-shelf .g-count { margin-left: 12px; font-family: var(--font-title); font-size: 1.4rem; color: var(--mango); white-space: nowrap; }
@keyframes g-drop { from { opacity: 0; transform: translateY(-40px) scale(.4); } }
.g-answer { background: #fff; color: var(--text); border-radius: 22px; padding: 14px 26px; text-align: center; box-shadow: 0 0 0 4px var(--ok), 0 20px 40px rgba(0, 0, 0, .45);
  animation: g-deal2 .6s var(--spring) both; max-width: min(820px, 80vw); }
.g-answer small { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--ok); font-size: .75rem; }
.g-answer b { display: block; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.2; }
.g-answer p { margin: 6px 0 0; font-weight: 600; color: var(--text); }
.g-kws { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 8px; font-size: .8rem; font-weight: 700; color: #8a6b97; }
.g-kws b { display: inline; font-size: .8rem; background: #fff1d6; color: #a86200; padding: 3px 10px; border-radius: 999px; }
.g-explain { background: var(--ok); padding: 9px 22px; border-radius: 999px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 4px #fff, 0 16px 34px rgba(0, 0, 0, .4); animation: g-deal2 .6s var(--spring) .3s both; max-width: 86vw; text-align: center; }
.g-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: min(900px, 86vw); }
.g-cloud button { font: inherit; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-weight: 700; border: 0; background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .75);
  text-decoration: line-through; animation: g-deal2 .5s var(--spring) both; animation-delay: calc(var(--i) * 70ms); transition: transform .2s var(--spring); }
.g-cloud button:hover { transform: scale(1.06); }
.g-cloud button.ok { background: var(--ok); color: #fff; text-decoration: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.g-cloud small { opacity: .75; margin-left: 4px; }
.g-tip { color: rgba(255, 255, 255, .65); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Réponse en phrases : ardoise puis mur de réponses */
.g-slate { width: min(640px, 60vw); border-radius: 24px; padding: 20px 24px; background: #1f3b34; border: 10px solid #b07a43;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), 0 24px 50px rgba(0, 0, 0, .45); animation: g-deal2 .7s var(--spring) .3s both; }
.g-slate h3 { margin: 0 0 10px; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; color: #e8f3ea; display: flex; align-items: center; gap: 8px; }
.g-slate h3 span { margin-left: auto; color: var(--mango); }
.g-chalk { font-family: "Segoe Print", "Comic Sans MS", cursive; color: #e8f3ea; font-size: 1.1rem; line-height: 40px; min-height: 80px;
  background: repeating-linear-gradient(transparent 0 38px, rgba(255, 255, 255, .15) 38px 40px); padding: 0 8px; }
.g-writers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-height: 120px; overflow: hidden; }
.g-writer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--ok); font-size: .85rem; font-weight: 600; animation: g-deal2 .5s var(--spring) both; }
.g-writer .avatar { --s: 28px; box-shadow: none; }
.g-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 280px)); justify-content: center; gap: 14px; width: min(1100px, 92vw); max-height: 44vh; overflow-y: auto; padding: 14px 10px; }
.g-note { position: relative; background: #fffbe6; color: var(--text); border-radius: 6px 6px 18px 6px; padding: 12px 14px; font-size: .88rem; line-height: 1.35; cursor: pointer; text-align: left;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35); transform: rotate(var(--r)); animation: g-deal2 .5s var(--spring) both; animation-delay: calc(var(--i) * 70ms); transition: transform .3s var(--spring), box-shadow .3s; font: inherit; border: 0; }
.g-note:hover { transform: rotate(0) scale(1.03); }
.g-note header { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.g-note header .avatar { --s: 28px; box-shadow: none; }
.g-note mark { background: #ffe08a; border-radius: 4px; padding: 0 2px; }
.g-note .g-why { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; color: #8a6b97; }
.g-verdict { position: absolute; right: -10px; top: -10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 0 0 3px #fff; }
.g-note.ok { box-shadow: 0 0 0 3px var(--ok), 0 12px 24px rgba(0, 0, 0, .35); } .g-note.ok .g-verdict { background: var(--ok); }
.g-note.ko .g-verdict { background: var(--ko); } .g-note.ko { opacity: .8; }

/* ---------- La course (classement entre les questions) ---------- */
.g-race { position: absolute; inset: 70px 4vw 80px; display: flex; flex-direction: column; gap: 1.4vh; }
.g-race h2 { margin: 0 0 .5vh; font-family: var(--font-title); font-size: clamp(1.8rem, 3.4vw, 3rem); text-transform: uppercase; text-align: center; }
.g-race h2 small { display: block; font-family: "Poppins", sans-serif; font-size: .85rem; color: var(--mango); letter-spacing: 2px; }
.g-lane { position: relative; flex: 1; max-height: 86px; min-height: 52px; border-radius: 999px; margin-left: 46px; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .18);
  animation: g-slide .5s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
.g-lane::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 30px; border-radius: 0 999px 999px 0; opacity: .85;
  background: repeating-conic-gradient(#fff 0 25%, #12061f 0 50%) 0 0 / 14px 14px; }
.g-rank { position: absolute; left: -48px; top: 50%; translate: 0 -50%; width: 40px; text-align: center; font-family: var(--font-title); font-size: 1.5rem; color: rgba(255, 255, 255, .6); }
.g-runner { --x: 0%; position: absolute; top: 50%; left: calc(var(--x) * .8 + 1%); translate: 0 -50%; display: flex; align-items: center; gap: 10px; transition: left 1.6s var(--spring); z-index: 2; }
.g-runner .avatar { --s: clamp(42px, 6.4vh, 62px); }
.g-runner.move .avatar { animation: g-hop .4s ease-in-out 4; }
@keyframes g-hop { 50% { transform: translateY(-10px) rotate(-6deg); } }
.g-who { line-height: 1.1; white-space: nowrap; }
.g-who b { display: block; font-size: 1rem; }
.g-who span { font-family: var(--font-title); font-size: 1.15rem; color: var(--mango); }
.g-ava { position: relative; }
.g-betres { position: absolute; left: calc(100% + 4px); top: -16px; padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: .76rem; white-space: nowrap; opacity: 0; transform: scale(.4);
  transition: opacity .3s 1.3s, transform .5s var(--spring) 1.3s; background: var(--ok); }
.g-betres.bad { background: var(--ko); } .g-betres.out { background: #555; }
.g-race.go .g-betres { opacity: 1; transform: none; }
.g-trail { position: absolute; right: 100%; top: 50%; translate: 0 -50%; height: 12px; width: 0; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--mango), var(--coral)); transition: width 1.6s var(--spring); }
.g-race.go .g-runner.fire .g-trail { width: 90px; }
.g-crown { position: absolute; top: -22px; left: 50%; translate: -50% 0; color: var(--mango); font-size: 1.5rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); z-index: 3; }
.g-lane.out .avatar { filter: grayscale(1) brightness(.6); }
.g-team { width: clamp(42px, 6.4vh, 62px); height: clamp(42px, 6.4vh, 62px); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-size: 1.5rem;
  background: var(--tc); box-shadow: 0 0 0 3px #fff; }

/* ---------- Classement final : colonnes de verre (clair, comme le site) ---------- */
.g-fin { --u: min(1vw, 1.6vh); position: fixed; inset: 0; z-index: 5; overflow-x: hidden; overflow-y: auto; background: #fff4e8; color: var(--text); }
.g-fin::before { content: ""; position: fixed; inset: 0; background: linear-gradient(135deg, var(--coral), var(--rasp) 55%, var(--violet)); clip-path: polygon(76% 0, 100% 0, 100% 100%, 62% 100%); }
.g-fin::after { content: ""; position: fixed; inset: -20%; pointer-events: none;
  background: radial-gradient(26% 30% at 20% 24%, rgba(255, 178, 30, .28), transparent 70%), radial-gradient(22% 26% at 40% 70%, rgba(255, 90, 60, .14), transparent 70%); }
.g-fin-in { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.g-fin-head { padding-top: 5vh; text-align: center; animation: g-up .8s var(--smooth) both; }
.g-fin-head small { display: inline-block; font-weight: 700; color: var(--rasp); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(120, 40, 60, .1); }
.g-fin-head h2 { margin: 12px 0 0; font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; line-height: 1; }
.g-fin-head p { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
@keyframes g-up { from { opacity: 0; transform: translateY(20px); } }
.g-others { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; animation: g-up .8s var(--smooth) 4.6s both; }
.g-others span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .88); font-size: .85rem; font-weight: 600; box-shadow: 0 6px 16px rgba(120, 40, 60, .1); }
.g-others .avatar { --s: 28px; box-shadow: none; }
.g-others em { font-style: normal; font-family: var(--font-title); color: var(--muted); }
.g-others b { font-family: var(--font-title); font-weight: 500; color: var(--rasp); }
.g-pillars { margin-top: auto; padding-top: calc(var(--u) * 16); display: flex; align-items: flex-end; gap: calc(var(--u) * 2.4); position: relative; }
.g-pillar { position: relative; width: calc(var(--u) * 21); height: var(--h); border-radius: calc(var(--u) * 3) calc(var(--u) * 3) 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 30px 70px rgba(120, 40, 60, .18);
  display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--u) * 8.5); text-align: center;
  transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s cubic-bezier(.22, 1.2, .36, 1); }
.g-pillar.up { transform: none; }
.g-pillar.p1 { --h: calc(var(--u) * 31); width: calc(var(--u) * 24); color: #fff; background: linear-gradient(165deg, #ff7a52, var(--rasp) 55%, var(--violet));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 40px 90px rgba(255, 46, 126, .35); }
.g-pillar.p2 { --h: calc(var(--u) * 24); } .g-pillar.p3 { --h: calc(var(--u) * 19); }
.g-pillar .g-num { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * -1.2); font-family: var(--font-title); font-weight: 700; font-size: calc(var(--u) * 10); line-height: 1; color: rgba(42, 21, 64, .06); }
.g-pillar.p1 .g-num { color: rgba(255, 255, 255, .16); }
.g-face2 { position: absolute; top: 0; left: 50%; translate: -50% -50%; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .7s var(--spring); }
.g-face2 .avatar, .g-face2 .g-team { --s: calc(var(--u) * 13); width: calc(var(--u) * 13); height: calc(var(--u) * 13); box-shadow: 0 0 0 calc(var(--u) * .5) #fff, 0 16px 34px rgba(120, 40, 60, .25); font-size: calc(var(--u) * 5); color: #fff; }
.g-pillar.p1 .g-face2 .avatar, .g-pillar.p1 .g-face2 .g-team { --s: calc(var(--u) * 16); width: calc(var(--u) * 16); height: calc(var(--u) * 16); }
.g-pillar.show .g-face2 { opacity: 1; transform: none; }
.g-pcrown { position: absolute; top: calc(var(--u) * -13.6); left: 50%; translate: -50% 0; font-size: calc(var(--u) * 4); color: var(--mango); filter: drop-shadow(0 4px 6px rgba(160, 90, 0, .35));
  opacity: 0; transform: translateY(10px) rotate(-12deg); transition: opacity .4s .4s, transform .7s var(--spring) .4s; z-index: 2; }
.g-pillar.show .g-pcrown { opacity: 1; transform: none; }
.g-pinfo { opacity: 0; transform: translateY(10px); transition: opacity .5s .2s, transform .6s var(--spring) .2s; position: relative; z-index: 1; padding: 0 8px; }
.g-pillar.show .g-pinfo { opacity: 1; transform: none; }
.g-pname { font-weight: 800; font-size: calc(var(--u) * 2.3); line-height: 1.1; overflow-wrap: anywhere; }
.g-pillar.p1 .g-pname { font-size: calc(var(--u) * 2.8); }
.g-ppts { font-family: var(--font-title); font-size: calc(var(--u) * 2.4); color: var(--rasp); margin-top: 2px; }
.g-pillar.p1 .g-ppts { color: #fff; }
.g-pstats { margin-top: calc(var(--u) * 1.2); display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.g-pstats span { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(42, 21, 64, .06); white-space: nowrap; }
.g-pillar.p1 .g-pstats span { background: rgba(255, 255, 255, .2); }
.g-halo { position: absolute; left: 50%; bottom: calc(var(--u) * 8); width: calc(var(--u) * 60); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 210, 120, .75), rgba(255, 120, 150, .25) 45%, transparent 70%); opacity: 0; transform: scale(.6); transition: opacity 1.2s, transform 1.6s var(--smooth); }
.g-fin.champ .g-halo { opacity: 1; transform: none; }
.g-fin-actions { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px; width: 100%;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: 0 -10px 30px rgba(120, 40, 60, .12); animation: g-up .8s var(--smooth) 4.8s both; }

/* ---------- Téléphone du joueur ---------- */
.g-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.g-bet { font: inherit; cursor: pointer; border-radius: 16px; padding: 8px 4px; text-align: center; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 1.15rem; line-height: 1.1;
  color: var(--text); transition: transform .3s var(--spring), background .2s; }
.g-bet small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); }
.g-bet.on { border-color: transparent; background: linear-gradient(135deg, var(--coral), var(--rasp)); color: #fff; transform: scale(1.05); }
.g-bet.on small { color: #ffe2ea; }
.g-bet.all.on { background: linear-gradient(135deg, var(--mango), var(--coral)); }
.g-bets-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 6px; }
.g-pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.g-pcard { --c: var(--coral); font: inherit; cursor: pointer; position: relative; min-height: 116px; border-radius: 20px; background: #fff; border: 3px solid var(--c); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; text-align: center; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 8px 18px rgba(90, 40, 50, .12); animation: rise-in .45s var(--spring) both; animation-delay: calc(var(--i) * 60ms); transition: transform .25s var(--spring), opacity .3s; }
.g-pcard .g-ps { font-size: 1.9rem; color: var(--c); line-height: 1; }
.g-pcard .g-pl { position: absolute; left: 10px; top: 8px; font-family: var(--font-title); color: var(--c); font-size: .95rem; }
.g-pcard:active { transform: scale(.95); }
.g-pcard.sel { background: var(--c); color: #fff; transform: scale(1.04); }
.g-pcard.sel .g-ps, .g-pcard.sel .g-pl { color: #fff; }
.g-pcards.locked .g-pcard:not(.sel) { opacity: .3; }
.g-pcard.hidden-5050 { visibility: hidden; }
.g-pcard.g-c1 { --c: #f39a00; } .g-pcard.g-c2 { --c: var(--teal); } .g-pcard.g-c3 { --c: var(--violet); }
.g-ptext textarea { min-height: 120px; font-size: 1.05rem; resize: vertical; }
.g-pcount { text-align: right; font-size: .75rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.g-betline { font-weight: 700; margin: 4px 0 0; }
.g-lock { font-size: 3rem; }

@media (max-width: 900px) {
  .g-hintcol { position: static; width: min(520px, 90vw); }
  .g-ticker { display: none; }
  .g-q { width: 88vw; }
  .g-token { right: -10px; top: -30px; width: 64px; height: 64px; } .g-token b { width: 50px; height: 50px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .g-curtain, .g-card, .g-qcard, .g-tin, .g-runner, .g-pillar { transition: none !important; }
}
