/* ============================================================
   VIP - bannière du tableau des quêtes (parchemin doré, écusson lauré,
   barre de flammes en pointe, encart avantages, fanion).
   Fichier dédié : formes détaillées (clip-path / SVG) - l'opti passe après le rendu.
   ============================================================ */
.qb-vip{
  --gold1:#f6dc8a; --gold2:#d9b34a; --gold3:#a8781d; --gold4:#6e4a0d;
  --vc:#c8202a;
  position:relative; z-index:2; display:flex; gap:22px; flex-wrap:wrap; align-items:stretch;
  margin:6px 6px 22px; padding:22px 30px 24px; border-radius:6px; color:var(--qb-ink);
  font-family:'EB Garamond',Georgia,serif;
  background:var(--qb-tex), var(--qb-age),
    radial-gradient(120% 90% at 50% -10%, rgba(180,130,60,.28), transparent 60%),
    linear-gradient(160deg,#f7e9c9,#e9d09c 90%);
  /* double cadre doré : filet fin + liseré épais + ombre portée */
  border:3px solid var(--gold2);
  box-shadow:
    inset 0 0 0 4px rgba(255,248,225,.55), inset 0 0 0 5px var(--gold3), inset 0 0 40px rgba(150,110,50,.28),
    0 0 0 1px var(--gold4), 0 14px 26px rgba(0,0,0,.55), 0 0 22px rgba(217,179,74,.25);
}
/* Filigranes d'angle (mêmes SVG que les cartes S/A) */
.qb-vip > .qb-orn{ width:64px; height:64px; opacity:.95; z-index:1; }
.qb-vip > .qb-orn-tl{ top:5px; left:5px; } .qb-vip > .qb-orn-tr{ top:5px; right:5px; }
.qb-vip > .qb-orn-bl{ bottom:5px; left:5px; } .qb-vip > .qb-orn-br{ bottom:5px; right:5px; }
/* Équerres métalliques d'angle (mêmes que les quêtes S) sur le cadre de la bannière */
.qb-vip > .qb-cnr{ width:70px; height:70px; z-index:5; }
.qb-vip > .qb-cnr-tl{ top:-16px; left:-16px; } .qb-vip > .qb-cnr-tr{ top:-16px; right:-16px; }
.qb-vip > .qb-cnr-bl{ bottom:-16px; left:-16px; } .qb-vip > .qb-cnr-br{ bottom:-16px; right:-16px; }
.qb-vip > .qb-orn{ width:52px; height:52px; }
.qb-vip > .qb-orn-tl{ top:14px; left:14px; } .qb-vip > .qb-orn-tr{ top:14px; right:14px; }
.qb-vip > .qb-orn-bl{ bottom:14px; left:14px; } .qb-vip > .qb-orn-br{ bottom:14px; right:14px; }
/* Filet doré intérieur */
.qb-vip::before{ content:''; position:absolute; inset:11px; border:1.5px solid rgba(217,179,74,.75); border-radius:3px; pointer-events:none; z-index:1; }
.qb-vip-left,.qb-vip-right{ position:relative; z-index:2; }
.qb-vip-left{ flex:1.7; min-width:380px; display:flex; gap:18px; align-items:center; }
.qb-vip-info{ flex:1; min-width:0; }

/* ── Bannière suspendue (tringle, cordons, broderie, franges) ── */
.qb-vip-pennant{
  position:absolute; top:-18px; right:-26px; width:92px; height:174px; z-index:6; pointer-events:none;
  /* SVG inline (couleurs du VIP) */
  filter:drop-shadow(0 8px 6px rgba(0,0,0,.5)); transform-origin:50% 8px; animation:vipSway 5s ease-in-out infinite; will-change:transform;
}

.qb-vip-pennant svg{ width:100%; height:100%; display:block; }
@keyframes vipSway{ 0%,100%{ transform:rotate(-1.5deg); } 50%{ transform:rotate(1.5deg); } }

/* ── Écusson (SVG généré côté JS : lauriers, couronne, ruban) ── */
.qb-vip-shield{ position:relative; width:206px; height:234px; margin-left:8px; flex-shrink:0; filter:drop-shadow(0 8px 8px rgba(0,0,0,.45)); }
.qb-vip-shield svg{ width:100%; height:100%; display:block; overflow:visible; }
.qb-vip-shield .sh-name, .vlu-shield .sh-name{ font-family:'Cinzel',Georgia,serif; font-weight:800; fill:url(#vipGoldTxt); stroke:#4a2a05; stroke-width:1.2; paint-order:stroke fill; letter-spacing:1px; }
.qb-vip-shield .sh-num, .vlu-shield .sh-num{ font-family:'Cinzel',Georgia,serif; font-weight:800; fill:url(#vipGoldTxt); stroke:#4a2a05; stroke-width:1.6; paint-order:stroke fill; }
.qb-vip-shield.none svg{ filter:saturate(.2) brightness(.9); }

/* ── Textes ── */
.qb-vip-lbl{ font-family:'Cinzel',Georgia,serif; font-size:13px; letter-spacing:2.5px; text-transform:uppercase; color:#8a5a1e; font-weight:700; }
.qb-vip-name{ font-family:'Cinzel',Georgia,serif; font-size:44px; font-weight:800; line-height:1; margin-top:2px; color:var(--vc);
  text-shadow:0 1px 0 rgba(255,245,220,.9), 0 3px 0 rgba(120,20,20,.18), 0 0 14px rgba(200,32,42,.15); }
/* Mélange de 2 couleurs (VIP avec color2) : nom en dégradé */
.qb-vip.blend .qb-vip-name{ display:inline-block; background-image:linear-gradient(90deg,var(--vc),var(--vc2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; text-shadow:none;
  filter:drop-shadow(0 1px 0 rgba(255,245,220,.9)) drop-shadow(0 3px 0 rgba(60,20,20,.18)); }
.qb-vip-name.none{ color:#6b4e2e; font-size:28px; }
/* Aucun VIP : armoirie, bannière et nom grisés (désactivés) - s'applique aussi en mode images (filtre sur le conteneur) */
.qb-vip.none .qb-vip-shield, .qb-vip.none .qb-vip-pennant{ filter:grayscale(1) brightness(.9) contrast(.9) opacity(.75) drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.qb-vip.none .qb-vip-shield{ animation:none; }
.qb-vip.none .qb-vip-name.none{ color:#8a8177; text-shadow:0 1px 0 rgba(255,255,255,.5); }
.qb-vip-others{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.qb-vip-others span{ font-family:'Cinzel',Georgia,serif; font-size:11px; font-weight:700; padding:1px 9px; border-radius:6px; border:1px solid currentColor; background:rgba(255,255,255,.4); }
.qb-vip-flames{ margin-top:10px; font-size:15.5px; font-weight:700; color:var(--qb-ink); letter-spacing:.2px; white-space:nowrap; }
.qb-vip-flames b{ font-family:'Cinzel',Georgia,serif; font-size:16px; }
.qb-vip-tag{ margin-top:10px; font-size:13.5px; font-style:italic; color:var(--qb-ink2); }

/* ── Barre de flammes v2 : brasero d'or, cadre gravé à rivets, piste de braises, feu vivant, pointe sertie, repères, pourcentage ── */
.qb-vip-bar{ position:relative; margin:18px 0 0 44px; height:34px; }
/* brasero à gauche */
.qb-vip-brazier{ position:absolute; left:-52px; top:50%; width:58px; height:58px; transform:translateY(-52%); z-index:3; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 60 60%27%3E%3Cdefs%3E%3ClinearGradient id=%27g%27 x1=%270%27 y1=%270%27 x2=%270%27 y2=%271%27%3E%3Cstop offset=%270%27 stop-color=%27%23fff6cc%27/%3E%3Cstop offset=%27.5%27 stop-color=%27%23e2bd55%27/%3E%3Cstop offset=%271%27 stop-color=%27%237d5410%27/%3E%3C/linearGradient%3E%3CradialGradient id=%27f%27 cx=%27.5%27 cy=%27.8%27 r=%27.7%27%3E%3Cstop offset=%270%27 stop-color=%27%23fffbe0%27/%3E%3Cstop offset=%27.25%27 stop-color=%27%23ffe066%27/%3E%3Cstop offset=%27.55%27 stop-color=%27%23f97316%27/%3E%3Cstop offset=%271%27 stop-color=%27%23b91c1c%27/%3E%3C/radialGradient%3E%3CradialGradient id=%27glow%27 cx=%27.5%27 cy=%27.55%27 r=%27.5%27%3E%3Cstop offset=%270%27 stop-color=%27%23ffb347%27 stop-opacity=%27.7%27/%3E%3Cstop offset=%271%27 stop-color=%27%23ffb347%27 stop-opacity=%270%27/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx=%2730%27 cy=%2726%27 r=%2728%27 fill=%27url(%23glow)%27/%3E%3Cpath d=%27M30 4 C 40 14, 46 24, 43 34 C 41 40, 36 44, 30 46 C 24 44, 19 40, 17 34 C 14 24, 20 14, 30 4 Z%27 fill=%27url(%23f)%27 stroke=%27%237a2a00%27 stroke-width=%27.8%27/%3E%3Cpath d=%27M22 18 C 18 26, 20 34, 25 40 M38 18 C 42 26, 40 34, 35 40%27 stroke=%27%23fff3b0%27 stroke-width=%271%27 fill=%27none%27 opacity=%27.6%27/%3E%3Cpath d=%27M30 22 C 35 28, 35 36, 30 40 C 25 36, 25 28, 30 22 Z%27 fill=%27%23fff8d0%27 opacity=%27.95%27/%3E%3Cpath d=%27M12 40 L48 40 L44 52 L16 52 Z%27 fill=%27url(%23g)%27 stroke=%27%234a2e04%27 stroke-width=%271.2%27/%3E%3Crect x=%2710%27 y=%2738%27 width=%2740%27 height=%275%27 rx=%272%27 fill=%27url(%23g)%27 stroke=%27%234a2e04%27 stroke-width=%271%27/%3E%3Cpath d=%27M14 45 L46 45%27 stroke=%27%23fff8dc%27 stroke-width=%27.8%27 opacity=%27.7%27/%3E%3Ccircle cx=%2720%27 cy=%2748%27 r=%271.4%27 fill=%27%23e0202c%27 stroke=%27%234a0206%27 stroke-width=%27.4%27/%3E%3Ccircle cx=%2730%27 cy=%2748.5%27 r=%271.6%27 fill=%27%232f6fdc%27 stroke=%27%230a1f55%27 stroke-width=%27.4%27/%3E%3Ccircle cx=%2740%27 cy=%2748%27 r=%271.4%27 fill=%27%23e0202c%27 stroke=%27%234a0206%27 stroke-width=%27.4%27/%3E%3Cpath d=%27M22 52 L38 52 L36 57 L24 57 Z%27 fill=%27url(%23g)%27 stroke=%27%234a2e04%27 stroke-width=%271%27/%3E%3Crect x=%2718%27 y=%2756%27 width=%2724%27 height=%273.5%27 rx=%271.5%27 fill=%27url(%23g)%27 stroke=%27%234a2e04%27 stroke-width=%27.9%27/%3E%3C/svg%3E") center/contain no-repeat; filter:drop-shadow(0 0 8px rgba(255,160,40,.85)) drop-shadow(0 2px 2px rgba(0,0,0,.45));
  animation:vipFlick 1.1s ease-in-out infinite alternate; }
@keyframes vipFlick{ from{ transform:translateY(-52%) scale(1); } to{ transform:translateY(-54%) scale(1.05); } }
/* cadre d'or gravé, en pointe de flèche */
.qb-vip-bar-frame{
  position:absolute; inset:0; clip-path:polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 34%27%3E%3Cpath d=%27M6 3 L12 8 L18 3 M6 31 L12 26 L18 31%27 stroke=%27%237a4f14%27 stroke-width=%27.9%27 fill=%27none%27 opacity=%27.55%27/%3E%3Cpath d=%27M6 2 L12 7 L18 2 M6 30 L12 25 L18 30%27 stroke=%27%23fff6cc%27 stroke-width=%27.7%27 fill=%27none%27 opacity=%27.7%27/%3E%3Ccircle cx=%270%27 cy=%275%27 r=%271.3%27 fill=%27%23fff6cc%27 stroke=%27%237a4f14%27 stroke-width=%27.4%27/%3E%3Ccircle cx=%270%27 cy=%2729%27 r=%271.3%27 fill=%27%23fff6cc%27 stroke=%27%237a4f14%27 stroke-width=%27.4%27/%3E%3Ccircle cx=%2724%27 cy=%275%27 r=%271.3%27 fill=%27%23fff6cc%27 stroke=%27%237a4f14%27 stroke-width=%27.4%27/%3E%3Ccircle cx=%2724%27 cy=%2729%27 r=%271.3%27 fill=%27%23fff6cc%27 stroke=%27%237a4f14%27 stroke-width=%27.4%27/%3E%3C/svg%3E") 0 0/24px 34px repeat-x, linear-gradient(180deg,#fff2b8 0,#e2bd55 30%,#c9962a 60%,#7d5410 100%);
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.qb-vip-bar-frame::after{ /* filet clair intérieur */
  content:''; position:absolute; inset:3px 8px 3px 3px; clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  border:1px solid rgba(255,248,220,.55); pointer-events:none; }
/* piste : fer noir + lit de braises qui respirent */
.qb-vip-bar-track{
  position:absolute; inset:6px 10px 6px 6px; clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  background:linear-gradient(180deg,#0f0803,#241408 50%,#0f0803); box-shadow:inset 0 0 10px rgba(0,0,0,.95); }
.qb-vip-bar-track::before{ content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 12% 60%, rgba(255,120,30,.65) 0 1.3px, transparent 2.6px) 0 0/23px 10px,
    radial-gradient(circle at 60% 30%, rgba(255,60,20,.6) 0 1.1px, transparent 2.2px) 5px 2px/17px 8px,
    radial-gradient(circle at 35% 75%, rgba(255,190,60,.4) 0 .9px, transparent 1.9px) 3px 1px/13px 7px,
    radial-gradient(circle at 80% 50%, rgba(255,80,20,.35) 0 2px, transparent 4px) 9px 3px/31px 12px;
  animation:vipEmberGlow 1.7s ease-in-out infinite alternate; }
@keyframes vipEmberGlow{ from{ opacity:.4; filter:brightness(.8); } to{ opacity:1; filter:brightness(1.4); } }
/* repères 25 / 50 / 75 % */
.qb-vip-ticks{ position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(#d9b34a,#d9b34a) 25% 0/1px 5px no-repeat, linear-gradient(#d9b34a,#d9b34a) 50% 0/1px 7px no-repeat, linear-gradient(#d9b34a,#d9b34a) 75% 0/1px 5px no-repeat,
             linear-gradient(#d9b34a,#d9b34a) 25% 100%/1px 5px no-repeat, linear-gradient(#d9b34a,#d9b34a) 50% 100%/1px 7px no-repeat, linear-gradient(#d9b34a,#d9b34a) 75% 100%/1px 5px no-repeat; opacity:.8; }
/* remplissage : feu vivant */
.qb-vip-fill{
  position:absolute; top:0; bottom:0; left:0; transition:width .9s cubic-bezier(.2,.8,.2,1); overflow:visible;
  /* feu procédural : 2 nappes de bruit fractal animées (SMIL) qui défilent à des vitesses différentes, sur un dégradé de chaleur */
  background:
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 400 40%27 preserveAspectRatio=%27none%27%3E%3Cfilter id=%27f%27 x=%270%27 y=%270%27 width=%27100%%27 height=%27100%%27 color-interpolation-filters=%27sRGB%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.03 0.12%27 numOctaves=%273%27 seed=%279%27 stitchTiles=%27stitch%27 result=%27n%27%3E%3Canimate attributeName=%27baseFrequency%27 values=%270.03 0.12;0.03 0.162;0.03 0.12%27 dur=%272.1s%27 repeatCount=%27indefinite%27/%3E%3C/feTurbulence%3E%3CfeColorMatrix in=%27n%27 type=%27matrix%27 values=%270 0 0 0 1  0 0 0 0 0.35  0 0 0 0 0.05  2.2 0 0 0 -0.95%27/%3E%3C/filter%3E%3Crect width=%27400%27 height=%2740%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") 0 0/50% 100% repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 400 40%27 preserveAspectRatio=%27none%27%3E%3Cfilter id=%27f%27 x=%270%27 y=%270%27 width=%27100%%27 height=%27100%%27 color-interpolation-filters=%27sRGB%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.012 0.07%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27 result=%27n%27%3E%3Canimate attributeName=%27baseFrequency%27 values=%270.012 0.07;0.012 0.095;0.012 0.07%27 dur=%273.4s%27 repeatCount=%27indefinite%27/%3E%3C/feTurbulence%3E%3CfeColorMatrix in=%27n%27 type=%27matrix%27 values=%270 0 0 0 1  0 0 0 0 0.78  0 0 0 0 0.25  2.2 0 0 0 -0.9%27/%3E%3C/filter%3E%3Crect width=%27400%27 height=%2740%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") 0 0/80% 100% repeat-x,
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 35%, rgba(70,5,0,.45) 100%),
    linear-gradient(90deg,#6b1010 0,#b91c1c 18%,#e2580c 45%,#f59e0b 75%,#fbbf24 100%);
  animation:vipFire 5s linear infinite, vipHeat 1.3s ease-in-out infinite alternate;
  box-shadow:0 0 14px rgba(245,158,11,.95), 0 0 30px rgba(255,90,20,.55), inset 0 -3px 0 rgba(120,30,0,.35), inset 0 2px 0 rgba(255,255,220,.4); }
@keyframes vipFire{ from{ background-position:0 0, 0 0, 0 0, 0 0; } to{ background-position:300px 0, 180px 0, 0 0, 0 0; } }
@keyframes vipHeat{ from{ filter:brightness(.94) saturate(1.05); } to{ filter:brightness(1.12) saturate(1.2); } }
.qb-vip-fill .qb-vip-tongues{ display:none; }
.qb-vip-fill::before{ /* étincelles qui s'élèvent */
  content:''; position:absolute; left:0; right:0; top:-22px; height:22px; pointer-events:none;
  background:
    radial-gradient(circle, #ffe680 0 1.1px, transparent 1.7px) 0 0/19px 22px,
    radial-gradient(circle, #ff9a3c 0 1.3px, transparent 2px) 7px 6px/29px 22px,
    radial-gradient(circle, #ff5a1f 0 .9px, transparent 1.5px) 13px 10px/23px 22px;
  animation:vipSparks 1.4s linear infinite; opacity:.9; }
@keyframes vipSparks{ from{ background-position:0 22px, 7px 28px, 13px 32px; opacity:.2; } 40%{ opacity:1; } to{ background-position:-6px -4px, 3px -2px, 9px 0; opacity:0; } }
.qb-vip-fill::after{ /* lueur douce au front du feu */
  content:''; position:absolute; right:-6px; top:-6px; bottom:-6px; width:22px; border-radius:50%; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(255,240,180,.85), rgba(255,170,60,.45) 50%, rgba(255,120,30,0) 75%);
  filter:blur(3px); animation:vipTip 1.6s ease-in-out infinite alternate; }
@keyframes vipTip{ from{ opacity:.55; } to{ opacity:.95; } }
/* pourcentage gravé dans le cadre, à droite */
/* flammes actuelles / requises, centrées DANS la barre - lisibles sur la partie feu comme sur la partie sombre (contour + halo) */
.qb-vip-val{ position:absolute; left:6px; right:60px; top:50%; transform:translateY(-50%); z-index:4; text-align:center; font-family:'Cinzel',Georgia,serif; font-size:13px; font-weight:900; letter-spacing:.8px; color:#fff8e0; pointer-events:none; white-space:nowrap;
  -webkit-text-stroke:.6px rgba(40,15,2,.85); paint-order:stroke fill; text-shadow:0 1px 0 #2a1204, 0 -1px 0 #2a1204, 1px 0 0 #2a1204, -1px 0 0 #2a1204, 0 0 6px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.7); }
.qb-vip-pct{ position:absolute; right:26px; top:50%; transform:translateY(-50%); z-index:4; font-family:'Cinzel',Georgia,serif; font-size:12px; font-weight:800; color:#fff3c0;
  text-shadow:0 1px 0 #3a1a04, 0 0 6px rgba(0,0,0,.9); letter-spacing:.5px; pointer-events:none; }
/* gemme sertie dans la pointe */
.qb-vip-bar-gem{ position:absolute; right:2px; top:50%; width:12px; height:12px; transform:translateY(-50%) rotate(45deg); z-index:4;
  background:radial-gradient(circle at 35% 30%, #ffb3b3, #e0202c 45%, #4a0206); border:1.5px solid #fff2b8; box-shadow:0 0 6px rgba(255,80,80,.8), 0 1px 2px rgba(0,0,0,.6); }
/* rivets sur le cadre (haut/bas) */
.qb-vip-bar::before,.qb-vip-bar::after{ content:''; position:absolute; left:6px; right:26px; height:4px; z-index:3; pointer-events:none;
  background:radial-gradient(circle, #fff6cc 1.1px, #7a4f14 1.5px, transparent 2px) 0 0/24px 4px repeat-x; }
.qb-vip-bar::before{ top:1px; } .qb-vip-bar::after{ bottom:1px; }

/* ── Encart avantages ── */
.qb-vip-right{
  flex:1; min-width:280px; padding:12px 16px 14px; border-radius:6px;
  background:linear-gradient(180deg,rgba(255,250,235,.6),rgba(240,220,170,.38));
  border:2px solid var(--gold2);
  box-shadow:inset 0 0 0 2px rgba(255,248,225,.6), inset 0 0 0 3px var(--gold3), inset 0 0 18px rgba(150,110,50,.2), 0 4px 10px rgba(0,0,0,.25);
}
.qb-vip-rhead{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:8px; margin-bottom:10px; position:relative; }
.qb-vip-rhead::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg,transparent,var(--gold2) 15%,var(--gold3) 50%,var(--gold2) 85%,transparent); }
.qb-vip-rhead b{ font-family:'Cinzel',Georgia,serif; font-size:12.5px; letter-spacing:1.4px; text-transform:uppercase; color:#6b3a10; }
/* Ruban « VIP x » : bandeau avant + queues repliées derrière (::before), broderie or (::after), texte en relief */
.qb-vip-ribbon{
  position:relative; z-index:0; font-family:'Cinzel',Georgia,serif; font-size:13px; font-weight:800; color:#fff3d6; white-space:nowrap; letter-spacing:.8px;
  padding:4px 14px; margin:0 10px 0 4px; max-width:150px; overflow:visible; text-overflow:ellipsis;
  background:linear-gradient(180deg,rgba(255,255,255,.32) 0,rgba(255,255,255,0) 40%,rgba(0,0,0,.3) 100%), linear-gradient(90deg,var(--vc),var(--vc2,var(--vc)));
  clip-path:polygon(0 0,100% 0,calc(100% - 7px) 50%,100% 100%,0 100%,7px 50%);
  text-shadow:0 1px 0 rgba(0,0,0,.55), 0 0 6px rgba(255,220,120,.35); filter:drop-shadow(0 2px 2px rgba(0,0,0,.45));
}
.qb-vip-ribbon::before{ /* queues repliées, plus sombres, derrière */
  content:''; position:absolute; z-index:-1; top:4px; bottom:-5px; left:-10px; right:-10px;
  background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.6)), linear-gradient(90deg,var(--vc),var(--vc2,var(--vc)));
  clip-path:polygon(0 0,18px 0,18px 100%,0 100%,6px 50%,0 0,calc(100% - 18px) 0,100% 0,calc(100% - 6px) 50%,100% 100%,calc(100% - 18px) 100%);
}
.qb-vip-ribbon::after{ /* broderie or : filet + pointillé, et clous aux extrémités */
  content:''; position:absolute; inset:3px 10px; pointer-events:none;
  border-top:1px solid rgba(246,220,138,.85); border-bottom:1px solid rgba(246,220,138,.85);
  background:
    radial-gradient(circle, #f6dc8a 1.3px, transparent 1.8px) left center/6px 6px no-repeat,
    radial-gradient(circle, #f6dc8a 1.3px, transparent 1.8px) right center/6px 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(246,220,138,.55) 0 2px, transparent 2px 4px) top/100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(246,220,138,.55) 0 2px, transparent 2px 4px) bottom/100% 1px no-repeat;
}
.qb-vip-perks{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.qb-vip-perks li{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--qb-ink); }
.qb-vip-perks li .pi{
  width:26px; height:26px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:5px; font-size:13px;
  background:linear-gradient(160deg,var(--gold1),var(--gold2) 50%,var(--gold3)); border:1px solid var(--gold4);
  box-shadow:inset 0 1px 0 rgba(255,255,240,.7), inset 0 -2px 0 rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.35);
}
.qb-vip-perks li.next{ color:var(--qb-ink2); font-style:italic; }

@media (max-width:700px){
  .qb-vip{ padding:18px 16px 20px; }
  .qb-vip-shield{ width:128px; height:142px; }
  .qb-vip-name{ font-size:32px; }
  .qb-vip-pennant{ display:none; }
}
/* Panneau des avantages : flèches de navigation entre VIP + état */
.qb-vip-arrow{ width:auto; height:auto; padding:2px 6px; border-radius:0; border:none; background:none; color:#7a4f14; font-size:15px; font-weight:900; cursor:pointer; flex-shrink:0;
  box-shadow:none; text-shadow:0 1px 0 rgba(255,246,222,.7); transition:transform .12s, filter .12s; } /* simple flèche, sans le rond jaune */
.qb-vip-arrow:hover:not(:disabled){ transform:scale(1.12); filter:brightness(1.1); }
.qb-vip-arrow:disabled{ opacity:.3; cursor:default; }
.qb-vip-rhead b{ flex:1; text-align:center; }
.qb-vip-substate{ display:flex; justify-content:space-between; align-items:center; margin:-4px 0 8px; font-size:11.5px; }
.qb-vip-state{ font-family:'Cinzel',Georgia,serif; font-weight:700; color:#8a5a1e; }
.qb-vip-state.ok{ color:#3f6b1e; }
.qb-vip-idx{ color:var(--qb-ink2); font-variant-numeric:tabular-nums; }
/* Badges de comparaison avec le VIP précédent */
.qb-vip-new{ margin-left:auto; font-family:'Cinzel',Georgia,serif; font-size:9.5px; font-weight:900; letter-spacing:1px; color:#fff3d6; padding:1px 7px; border-radius:6px;
  background:linear-gradient(180deg,#e0343f,#a11a20); border:1px solid #4a0a0d; box-shadow:0 0 8px rgba(224,52,63,.7); animation:vipNew 1.2s ease-in-out infinite alternate; }
@keyframes vipNew{ from{ transform:scale(1); } to{ transform:scale(1.1); } }
.qb-vip-up{ margin-left:auto; font-weight:900; font-size:13px; color:#3f6b1e; text-shadow:0 0 6px rgba(120,200,80,.6); }
/* Bloc « Obtenir le VIP » */
.qb-vip-act{ margin-top:12px; display:flex; flex-direction:column; gap:6px; }
.qb-vip-act-btn{ display:inline-flex; align-items:center; justify-content:center; gap:14px; align-self:flex-start; font-family:'Cinzel',Georgia,serif; font-weight:900; letter-spacing:1.2px; font-size:14px; color:#fff3d6; cursor:pointer;
  padding:9px 26px; border:none; clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
  background:linear-gradient(180deg,#c8202a,#8f1218 60%,#5b0a12); box-shadow:inset 0 0 0 2px var(--gold2), inset 0 0 0 3px var(--gold4); text-shadow:0 1px 0 rgba(0,0,0,.6);
  animation:vipActGlow 1.4s ease-in-out infinite alternate; transition:transform .12s; }
.qb-vip-act-btn:hover:not(:disabled){ transform:translateY(-1px) scale(1.03); filter:brightness(1.12); }
@keyframes vipActGlow{ from{ filter:drop-shadow(0 0 4px rgba(255,200,80,.3)); } to{ filter:drop-shadow(0 0 12px rgba(255,200,80,.9)); } }
.qb-vip-act-btn.off{ background:linear-gradient(180deg,#5a3f22,#3d2612 65%,#2c1a0c); cursor:pointer; /* cliquable : affiche ce qu'il manque */ animation:none; opacity:.75; }
.qb-vip-act-btn.active{ background:linear-gradient(180deg,#4a6a2a,#2f4519 60%,#1f3010); cursor:default; animation:none; }
.qb-vip-act-cd{ font-family:ui-monospace,Consolas,monospace; font-size:13px; letter-spacing:0; background:rgba(0,0,0,.35); padding:2px 10px; border-radius:6px; border:1px solid rgba(246,220,138,.5); }
.qb-vip-act-info{ font-size:12.5px; color:var(--qb-ink2); }
.qb-vip-state.warn{ color:#a11a20; }
/* Point rouge de notification quand le bouton est cliquable */
.qb-vip-act-wrap{ position:relative; display:inline-block; align-self:flex-start; }
.qb-vip-act-wrap.ready::after{ content:''; position:absolute; top:-5px; right:-5px; width:14px; height:14px; border-radius:50%; background:#ff2d2d; border:2px solid #fff3d6;
  box-shadow:0 0 0 2px rgba(255,45,45,.35), 0 0 10px rgba(255,45,45,.9); animation:vipDot 1s ease-in-out infinite alternate; pointer-events:none; z-index:2; }
@keyframes vipDot{ from{ transform:scale(1); } to{ transform:scale(1.25); } }
/* ── Écran « Niveau supérieur » ── */
.vip-levelup{ position:fixed; inset:0; z-index:12000; display:flex; align-items:center; justify-content:center; background:rgba(12,7,3,.55); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); opacity:0; transition:opacity .4s; overflow:hidden; }
.vip-levelup.show{ opacity:1; }
.vlu-rays{ position:absolute; left:50%; top:50%; width:160vmax; height:160vmax; transform:translate(-50%,-50%); pointer-events:none;
  background:repeating-conic-gradient(from 0deg, rgba(255,214,102,.28) 0deg 6deg, rgba(255,214,102,0) 6deg 18deg); -webkit-mask:radial-gradient(circle, #000 0, rgba(0,0,0,.6) 30%, transparent 62%); mask:radial-gradient(circle, #000 0, rgba(0,0,0,.6) 30%, transparent 62%);
  animation:vluSpin 30s linear infinite; }
@keyframes vluSpin{ to{ transform:translate(-50%,-50%) rotate(360deg); } }
.vlu-sparks{ position:absolute; inset:0; pointer-events:none; }
.vlu-sparks i{ position:absolute; left:50%; top:50%; width:8px; height:8px; border-radius:50%; background:#ffe680; box-shadow:0 0 10px #ffd040;
  animation:vluSpark 2.2s ease-out infinite; animation-delay:calc(var(--i) * -.12s); transform:rotate(calc(var(--i) * 20deg)) translateY(0); opacity:0; }
@keyframes vluSpark{ 0%{ transform:rotate(calc(var(--i) * 20deg)) translateY(-40px) scale(.4); opacity:0; } 15%{ opacity:1; } 100%{ transform:rotate(calc(var(--i) * 20deg)) translateY(-46vmin) scale(1.2); opacity:0; } }
.vlu-card{ position:relative; text-align:center; padding:28px 34px 26px; max-width:520px; width:calc(100% - 40px); color:#3a2712;
  background:var(--qb-tex, none), linear-gradient(160deg,#f7e9c9,#e9d09c 90%); border:3px solid #d9b34a; border-radius:12px;
  box-shadow:inset 0 0 0 4px rgba(255,248,225,.55), inset 0 0 0 5px #a8781d, 0 0 0 1px #5a3a06, 0 30px 60px rgba(0,0,0,.7), 0 0 60px rgba(255,200,80,.5);
  transform:scale(.85) translateY(20px); transition:transform .5s cubic-bezier(.2,1.4,.4,1); }
.vip-levelup.show .vlu-card{ transform:none; }
.vlu-shield{ width:190px; height:216px; margin:-90px auto 4px; filter:drop-shadow(0 10px 10px rgba(0,0,0,.5)); animation:vluBounce 1.8s ease-in-out infinite; }
.vlu-shield svg{ width:100%; height:100%; overflow:visible; }
@keyframes vluBounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
.vlu-title{ font-family:'Cinzel',Georgia,serif; font-size:34px; font-weight:900; letter-spacing:1px; color:#fff3c0; -webkit-text-stroke:1.2px #7a4f14;
  text-shadow:0 2px 0 #a8781d, 0 4px 0 #6e4a0d, 0 8px 18px rgba(0,0,0,.45), 0 0 24px rgba(255,214,102,.8); }
.vlu-name{ font-family:'Cinzel',Georgia,serif; font-size:24px; font-weight:800; color:var(--vc); margin-top:2px; text-shadow:0 1px 0 rgba(255,245,220,.9); }
.vip-levelup.blend .vlu-name{ display:inline-block; background-image:linear-gradient(90deg,var(--vc),var(--vc2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; text-shadow:none; filter:drop-shadow(0 1px 0 rgba(255,245,220,.9)); }
/* config VIP : pastille + aperçu du mélange */
.qv-swatch{ width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,.35); box-shadow:0 1px 3px rgba(0,0,0,.5); flex:none; }
.qv-blend-prev{ height:38px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:13px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.7); border:1px solid var(--border); overflow:hidden; white-space:nowrap; padding:0 6px; }
.vlu-text{ font-family:'EB Garamond',Georgia,serif; font-size:16px; line-height:1.5; margin-top:10px; color:#4a3418; }
.vlu-perks{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:12px; }
.vlu-perks span{ font-size:12.5px; font-weight:700; color:#4a2a05; background:rgba(255,255,255,.45); border:1px solid #c9a24a; border-radius:8px; padding:3px 10px; }
.vlu-btn{ margin-top:18px; font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:15px; letter-spacing:1px; color:#fff3d6; cursor:pointer; border:none; padding:12px 34px;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
  background:linear-gradient(180deg,#c8202a,#8f1218 60%,#5b0a12); box-shadow:inset 0 0 0 2px #d9b34a, inset 0 0 0 3px #6e4a0d; text-shadow:0 1px 0 rgba(0,0,0,.6); transition:transform .12s; }
.vlu-btn:hover{ transform:scale(1.05); filter:brightness(1.12); }
.vlu-later{ margin-top:10px; font-size:12px; color:#8a5a1e; cursor:pointer; text-decoration:underline; }
/* ── Cadeau VIP quotidien : coffre au trésor sur parchemin (DA du tableau) ── */
.qb-gift{ --gold1:#f6dc8a; --gold2:#d9b34a; --gold3:#a8781d; --gold4:#6e4a0d; --wax:#a11a20;
  position:relative; display:flex; align-items:center; gap:16px; padding:10px 20px 10px 14px; margin:4px 10px; border-radius:5px; color:var(--qb-ink,#3a2712); font-family:'EB Garamond',Georgia,serif;
  background:var(--qb-tex,none), var(--qb-age,none), radial-gradient(120% 90% at 50% -10%, rgba(180,130,60,.28), transparent 60%), linear-gradient(160deg,#f7e9c9,#e9d09c 90%);
  border:2px solid var(--gold2);
  box-shadow:inset 0 0 0 3px rgba(255,248,225,.55), inset 0 0 0 4px var(--gold3), inset 0 0 28px rgba(150,110,50,.28), 0 0 0 1px var(--gold4), 0 8px 18px rgba(0,0,0,.5); }
/* équerres métalliques d'angle (mêmes que les quêtes S / bannière VIP) */
.qb-gift > .qb-cnr{ width:38px; height:38px; z-index:5; }
.qb-gift > .qb-cnr-tl{ top:-9px; left:-9px; } .qb-gift > .qb-cnr-tr{ top:-9px; right:-9px; }
.qb-gift > .qb-cnr-bl{ bottom:-9px; left:-9px; } .qb-gift > .qb-cnr-br{ bottom:-9px; right:-9px; }
.qb-gift.ready{ animation:giftGlow 1.5s ease-in-out infinite alternate; }
@keyframes giftGlow{
  from{ box-shadow:inset 0 0 0 3px rgba(255,248,225,.55), inset 0 0 0 4px var(--gold3), inset 0 0 28px rgba(150,110,50,.28), 0 0 0 1px var(--gold4), 0 8px 18px rgba(0,0,0,.5), 0 0 8px rgba(255,200,80,.25); }
  to{   box-shadow:inset 0 0 0 3px rgba(255,248,225,.55), inset 0 0 0 4px var(--gold3), inset 0 0 28px rgba(150,110,50,.28), 0 0 0 1px var(--gold4), 0 8px 18px rgba(0,0,0,.5), 0 0 28px rgba(255,200,80,.85); } }
/* coffre (SVG inline) */
.qb-gift-chest{ position:relative; flex:none; width:66px; height:60px; filter:drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.qb-gift-chest svg{ display:block; width:100%; height:100%; overflow:visible; }
.qb-gift.ready .qb-gift-chest{ animation:giftShake 2.6s ease-in-out infinite; transform-origin:50% 90%; will-change:transform; }
@keyframes giftShake{ 0%,78%,100%{ transform:rotate(0); } 82%{ transform:rotate(-7deg) scale(1.06); } 86%{ transform:rotate(6deg) scale(1.06); } 90%{ transform:rotate(-4deg); } 94%{ transform:rotate(3deg); } }
.qb-gift.ready .qb-gift-chest::before{ content:''; position:absolute; inset:-14px; border-radius:50%; z-index:-1; pointer-events:none;
  background:radial-gradient(circle, rgba(255,214,110,.85), rgba(255,190,60,.35) 45%, transparent 70%); animation:giftAura 1.5s ease-in-out infinite alternate; will-change:opacity,transform; }
@keyframes giftAura{ from{ opacity:.45; transform:scale(.9); } to{ opacity:1; transform:scale(1.1); } }
/* titre gravé + fleurons */
.qb-gift-body{ display:flex; flex-direction:column; gap:5px; }
.qb-gift-title{ display:flex; align-items:center; gap:8px; font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:13.5px; letter-spacing:1.2px; text-transform:uppercase; color:#5a2f0c; text-shadow:0 1px 0 rgba(255,246,222,.75); white-space:nowrap; }
.qb-gift-title::before,.qb-gift-title::after{ content:'❧'; font-family:Georgia,serif; font-size:15px; color:var(--gold3); text-shadow:0 1px 0 rgba(255,246,222,.75); }
.qb-gift-title::before{ transform:scaleX(-1); }
.qb-gift-items{ display:flex; align-items:center; gap:9px; padding-top:6px; border-top:1px solid rgba(110,74,13,.45); box-shadow:0 -1px 0 rgba(255,246,222,.6) inset; }
/* médaillons de récompense (bezel doré + pastille de cire pour la quantité) */
.qb-gift-item{ position:relative; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:19px; line-height:1; user-select:none; -webkit-user-select:none; -webkit-user-drag:none;
  background:radial-gradient(circle at 35% 30%,#fff6cc,#e2bd55 55%,var(--gold3) 100%); box-shadow:inset 0 0 0 2px var(--gold4), inset 0 0 0 3.5px var(--gold1), 0 2px 3px rgba(0,0,0,.45); }
.qb-gift-item img{ width:26px; height:26px; object-fit:contain; border-radius:50%; }
.qb-gift-item b{ font-weight:400; }
.qb-gift-item i{ position:absolute; right:-6px; bottom:-4px; min-width:17px; height:17px; padding:0 4px; display:flex; align-items:center; justify-content:center; font-style:normal; font-family:'Cinzel',Georgia,serif; font-size:9px; font-weight:900; color:#fff3d6; border-radius:9px;
  background:radial-gradient(circle at 35% 30%,#e04a52,var(--wax) 60%,#5b0a12); box-shadow:inset 0 0 0 1px rgba(255,220,200,.35), 0 1px 2px rgba(0,0,0,.55); }
/* bouton « Récupérer » (même octogone rouge/or que le VIP) */
.qb-gift-btn{ margin-left:auto; font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:13px; letter-spacing:1.2px; text-transform:uppercase; color:#fff3d6; cursor:pointer; border:none; padding:10px 22px;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
  background:linear-gradient(180deg,#c8202a,#8f1218 60%,#5b0a12); box-shadow:inset 0 0 0 2px var(--gold2), inset 0 0 0 3px var(--gold4); text-shadow:0 1px 0 rgba(0,0,0,.6);
  animation:vipActGlow 1.4s ease-in-out infinite alternate; transition:transform .12s; }
.qb-gift-btn:hover{ transform:translateY(-1px) scale(1.04); filter:brightness(1.12); }
/* état : tampon de cire « Récolté » + compte à rebours */
.qb-gift-state{ margin-left:auto; display:flex; flex-direction:column; align-items:center; gap:3px; }
.qb-gift-stamp{ font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--wax); padding:3px 10px; border:2px double var(--wax); border-radius:4px; transform:rotate(-5deg); opacity:.9;
  text-shadow:0 1px 0 rgba(255,246,222,.7); box-shadow:0 0 0 1px rgba(161,26,32,.15) inset; mix-blend-mode:multiply; }
.qb-gift-state small{ font-family:'EB Garamond',Georgia,serif; font-size:12px; color:#6b3a10; }
.qb-gift-state small .qb-cd{ font-weight:700; color:#5a2f0c; }
.qb-gift-state.off .qb-gift-stamp{ color:#6b4a2a; border-color:#6b4a2a; transform:none; }
.qb-gift.locked,.qb-gift.inactive{ filter:saturate(.75); }
.qb-gift.locked .qb-gift-items,.qb-gift.inactive .qb-gift-items{ opacity:.65; }
.qb-gift.done .qb-gift-items{ opacity:.75; }
@media(max-width:700px){ .qb-gift{ width:100%; flex-wrap:wrap; } .qb-gift-btn,.qb-gift-state{ margin-left:0; } }
/* ── Série de connexion (killstreak) : coffre qui gigote + clignote au centre de la bannière VIP ── */
.qb-vip-mid{ position:relative; z-index:3; flex:0 1 250px; min-width:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:6px 10px; text-align:center; align-self:center; }
.qb-streak-chest{ position:relative; width:160px; height:145px; margin-top:10px; filter:drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
.qb-streak-chest svg{ display:block; width:100%; height:100%; overflow:visible; }
.qb-streak.ready .qb-streak-chest{ cursor:pointer; transform-origin:50% 88%; animation:streakJump 2.2s ease-in-out infinite, streakBlink .55s ease-in-out infinite alternate; will-change:transform; }
.qb-streak.ready .qb-streak-chest:hover{ animation-play-state:paused; transform:scale(1.12); filter:drop-shadow(0 6px 6px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(255,210,90,1)); }
@keyframes streakJump{
  0%,100%{ transform:translate(0,0) rotate(0); }
  8%{ transform:translate(-10px,-6px) rotate(-9deg); } 16%{ transform:translate(10px,-14px) rotate(8deg); } 24%{ transform:translate(-8px,2px) rotate(-6deg); }
  32%{ transform:translate(9px,-8px) rotate(7deg); } 40%{ transform:translate(0,-18px) rotate(0) scale(1.08); } 48%{ transform:translate(0,2px) rotate(0) scale(.96,1.04); }
  56%{ transform:translate(-12px,-4px) rotate(-10deg); } 64%{ transform:translate(12px,-10px) rotate(10deg); } 72%{ transform:translate(-6px,-16px) rotate(-5deg); }
  80%{ transform:translate(6px,0) rotate(5deg); } 88%{ transform:translate(-3px,-6px) rotate(-3deg); } 94%{ transform:translate(3px,-2px) rotate(2deg); } }
@keyframes streakBlink{ from{ filter:drop-shadow(0 6px 6px rgba(0,0,0,.5)) drop-shadow(0 0 2px rgba(255,210,90,.2)) brightness(1); } to{ filter:drop-shadow(0 6px 6px rgba(0,0,0,.5)) drop-shadow(0 0 16px rgba(255,210,90,1)) brightness(1.35); } }
.qb-streak.ready .qb-streak-chest::before{ content:''; position:absolute; inset:-18px; border-radius:50%; z-index:-1; pointer-events:none;
  background:radial-gradient(circle, rgba(255,214,110,.9), rgba(255,190,60,.35) 45%, transparent 70%); animation:giftAura .9s ease-in-out infinite alternate; will-change:opacity,transform; }
.qb-streak-tap{ position:absolute; right:-14px; top:-6px; font-family:'Cinzel',Georgia,serif; font-size:10px; font-weight:900; letter-spacing:.6px; color:#fff3d6; padding:3px 8px; border-radius:10px; transform:rotate(12deg);
  background:linear-gradient(180deg,#c8202a,#8f1218 60%,#5b0a12); box-shadow:inset 0 0 0 1.5px var(--gold2), 0 2px 4px rgba(0,0,0,.5); animation:streakTap .7s ease-in-out infinite alternate; }
/* point rouge de notification quand le coffre peut être ouvert (série + cadeau quotidien) */
.qb-streak.ready .qb-streak-chest::after,.qb-gift.ready .qb-gift-chest::after{ content:''; position:absolute; top:-2px; left:-2px; width:16px; height:16px; border-radius:50%; background:#ff2d2d; border:2px solid #fff3d6;
  box-shadow:0 0 0 2px rgba(255,45,45,.35), 0 0 10px rgba(255,45,45,.9); animation:vipDot 1s ease-in-out infinite alternate; pointer-events:none; z-index:3; }
.qb-gift.ready .qb-gift-chest::after{ width:13px; height:13px; top:-1px; right:-4px; left:auto; }
@keyframes streakTap{ from{ transform:rotate(10deg) scale(1); } to{ transform:rotate(16deg) scale(1.15); } }
.qb-streak.locked .qb-streak-chest,.qb-streak.inactive .qb-streak-chest{ filter:saturate(.5) brightness(.85) drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
/* pastilles des jours */
.qb-streak-pips{ display:flex; gap:4px; flex-wrap:wrap; justify-content:center; max-width:230px; }
.qb-streak-pips i{ width:12px; height:12px; border-radius:50%; background:rgba(110,74,13,.18); box-shadow:inset 0 0 0 1.5px var(--gold3); }
.qb-streak-pips i.on{ background:radial-gradient(circle at 35% 30%,#fff6cc,#e2bd55 55%,var(--gold3)); box-shadow:inset 0 0 0 1px var(--gold4), 0 1px 2px rgba(0,0,0,.4); }
.qb-streak-pips i.now{ background:radial-gradient(circle at 35% 30%,#ffb3b3,#c8202a 60%,#5b0a12); box-shadow:0 0 0 2px rgba(200,32,42,.25), 0 0 8px rgba(255,120,80,.9); animation:vipDotPulse 1s ease-in-out infinite alternate; }
@keyframes vipDotPulse{ from{ transform:scale(1); } to{ transform:scale(1.25); } }
.qb-streak-l1{ font-family:'Cinzel',Georgia,serif; font-weight:800; font-size:12.5px; letter-spacing:.3px; color:#5a2f0c; text-shadow:0 1px 0 rgba(255,246,222,.7); }
.qb-streak-l2{ font-family:'EB Garamond',Georgia,serif; font-size:13px; color:#6b3a10; line-height:1.3; }
.qb-streak-l3{ font-family:'EB Garamond',Georgia,serif; font-size:13px; color:#6b3a10; line-height:1.3; max-width:260px; }
.qb-streak-l3 b, .qb-streak-l2 b{ font-family:'Cinzel',Georgia,serif; font-size:12.5px; color:#3a2008; }
.qb-streak-gain{ color:var(--wax,#a11a20); font-family:'Cinzel',Georgia,serif; font-size:13.5px; }
.qb-streak-day{ font-size:11.5px; color:#8a5a1e; font-style:italic; }
.qb-streak.done .qb-streak-l1{ color:#3f6b1e; }
.vip-rw-sub{ font-family:'EB Garamond',Georgia,serif; font-size:clamp(16px, 1.9vw, 21px); max-width:min(92vw, 720px); text-align:center; color:#f3e2b8; text-shadow:0 1px 3px rgba(0,0,0,.7); }
.vip-rw-sub b{ color:#ffd35c; }
@media(max-width:900px){ .qb-vip-mid{ flex-basis:100%; } }
/* ── Récompense de quête à récupérer (bandeau sur la carte) ── */
.qb-claim{ position:relative; z-index:3; margin:-4px -4px 10px; padding:10px 14px; border-radius:6px; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  background:var(--qb-tex,none), linear-gradient(160deg,#f7e9c9,#e9d09c 90%); border:2px solid #d9b34a; box-shadow:inset 0 0 0 2px rgba(255,248,225,.55), inset 0 0 0 3px #a8781d, 0 4px 12px rgba(0,0,0,.35); animation:giftGlow 1.5s ease-in-out infinite alternate; }
.qb-claim-msg{ font-family:'EB Garamond',Georgia,serif; font-size:14px; color:#3a2712; line-height:1.35; }
.qb-claim-msg b{ color:#a11a20; }
.qb-claim-btn{ font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:13px; letter-spacing:1px; text-transform:uppercase; color:#fff3d6; cursor:pointer; border:none; padding:10px 22px; display:inline-flex; align-items:center; gap:10px;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
  background:linear-gradient(180deg,#4a6a2a,#2f4519 60%,#1f3010); box-shadow:inset 0 0 0 2px #d9b34a, inset 0 0 0 3px #6e4a0d; text-shadow:0 1px 0 rgba(0,0,0,.6); animation:vipActGlow 1.4s ease-in-out infinite alternate; transition:transform .12s; }
.qb-claim-btn span{ font-size:12px; background:rgba(0,0,0,.25); padding:2px 8px; border-radius:10px; }
.qb-claim-btn:hover{ transform:translateY(-1px) scale(1.04); filter:brightness(1.12); }
/* écran « Récompenses » */
.vip-rewards{ position:fixed; inset:0; z-index:12000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(22px, 3.5vh, 36px); background:rgba(12,7,3,.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); opacity:0; transition:opacity .3s; cursor:pointer; }
.vip-rewards.show{ opacity:1; }
.vip-rw-banner{ position:relative; padding:14px 64px; font-family:'Cinzel',Georgia,serif; font-size:clamp(30px, 4.6vw, 48px); font-weight:900; color:#fff3c0; letter-spacing:2px; text-shadow:0 2px 0 #a8781d, 0 4px 10px rgba(0,0,0,.6);
  background:linear-gradient(180deg,#c8202a,#8f1218 60%,#5b0a12); clip-path:polygon(24px 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,24px 100%,0 50%); box-shadow:0 8px 20px rgba(0,0,0,.6); animation:rwPop .5s cubic-bezier(.2,1.4,.4,1); }
.vip-rw-tiles{ display:flex; gap:24px; flex-wrap:wrap; justify-content:center; max-width:min(92vw, 900px); }
.vip-rw-tile{ width:clamp(120px, 15vw, 180px); height:clamp(130px, 16vw, 194px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border-radius:16px;
  background:var(--qb-tex, none), linear-gradient(160deg,#f6e7c4,#e8cf9a); border:3px solid #d9b34a; box-shadow:inset 0 0 0 2px rgba(255,248,225,.5), inset 0 0 0 3px #a8781d, 0 10px 24px rgba(0,0,0,.55), 0 0 24px rgba(255,200,80,.6); animation:rwPop .6s cubic-bezier(.2,1.4,.4,1) backwards; }
.vip-rw-tile:nth-child(2){ animation-delay:.12s; } .vip-rw-tile:nth-child(3){ animation-delay:.24s; }
@keyframes rwPop{ from{ transform:scale(.4) translateY(30px); opacity:0; } to{ transform:none; opacity:1; } }
.vip-rw-ico{ font-size:clamp(44px, 6vw, 72px); line-height:1; filter:drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.vip-rw-ico img{ width:clamp(56px, 7vw, 88px); height:clamp(56px, 7vw, 88px); object-fit:contain; }
.vip-rw-n{ font-family:'Cinzel',Georgia,serif; font-weight:900; font-size:clamp(20px, 2.6vw, 30px); color:#a11a20; }
.vip-rw-lbl{ font-size:clamp(12px, 1.4vw, 15px); color:#6b3a10; font-weight:700; max-width:92%; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vip-rw-exit{ font-size:15px; color:#f3e2b8; opacity:.8; }

/* ── « VIP verrouillé » : plaque de fer noir suspendue à des chaînes, sceau rouge - rien à voir avec l'écran de récompense ── */
.vip-locked{ position:fixed; inset:0; z-index:12000; display:flex; align-items:center; justify-content:center; padding:20px;
  background:radial-gradient(ellipse at center, rgba(60,0,0,.55), rgba(0,0,0,.88) 70%); backdrop-filter:blur(3px) grayscale(.6); opacity:0; transition:opacity .25s; }
.vip-locked.show{ opacity:1; }
.vlk-plate{ position:relative; width:min(420px, 92vw); padding:44px 28px 26px; text-align:center; border-radius:10px;
  background:linear-gradient(180deg,#2b2b2e,#151517 60%,#0c0c0e); border:3px solid #55555b; outline:1px solid #111;
  box-shadow:0 0 0 6px #1d1d20, 0 30px 60px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 40px rgba(0,0,0,.6);
  transform:translateY(-40px) rotate(-1.5deg); animation:vlkDrop .55s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes vlkDrop{ 0%{ transform:translateY(-140px) rotate(-3deg); opacity:0; } 60%{ transform:translateY(8px) rotate(.6deg); opacity:1; } 100%{ transform:translateY(0) rotate(0); opacity:1; } }
.vlk-plate::before, .vlk-plate::after{ content:''; position:absolute; width:14px; height:14px; border-radius:50%; top:10px; background:radial-gradient(circle at 35% 30%,#9a9aa2,#3a3a40 70%); box-shadow:inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15); }
.vlk-plate::before{ left:12px; } .vlk-plate::after{ right:12px; }
.vlk-chain{ position:absolute; top:-120px; width:10px; height:120px; background:repeating-linear-gradient(180deg,#6b6b72 0 10px,#2a2a2e 10px 16px); border-radius:4px; box-shadow:0 0 4px rgba(0,0,0,.8); }
.vlk-chain-l{ left:16px; } .vlk-chain-r{ right:16px; }
.vlk-lock{ position:absolute; left:50%; top:-38px; transform:translateX(-50%); width:76px; height:76px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:38px;
  background:radial-gradient(circle at 35% 30%,#ff6b6b,#b3121b 55%,#5a0810); border:3px solid #ffd7d7; box-shadow:0 8px 20px rgba(0,0,0,.7), 0 0 0 4px #2b0c0f; animation:vlkShake 2.2s ease-in-out infinite; }
@keyframes vlkShake{ 0%,70%,100%{ transform:translateX(-50%) rotate(0); } 75%{ transform:translateX(-50%) rotate(-8deg); } 80%{ transform:translateX(-50%) rotate(8deg); } 85%{ transform:translateX(-50%) rotate(-5deg); } 90%{ transform:translateX(-50%) rotate(5deg); } }
.vlk-title{ font-family:'Cinzel',Georgia,serif; font-size:22px; font-weight:900; letter-spacing:3px; text-transform:uppercase; color:#ff4d55; text-shadow:0 0 12px rgba(255,60,60,.6), 0 2px 0 #300; margin-top:8px; }
.vlk-big{ margin:14px 0 0; font-family:'Cinzel',Georgia,serif; font-weight:900; line-height:1; color:#e9e9ee; text-shadow:0 3px 0 #000, 0 0 18px rgba(255,255,255,.15); }
.vlk-miss{ font-size:84px; color:#ff5a5a; text-shadow:0 4px 0 #4a0000, 0 0 24px rgba(255,80,80,.55); }
.vlk-sep{ font-size:40px; margin:0 8px; color:#6b6b72; } .vlk-tot{ font-size:44px; color:#cfcfd6; }
.vlk-what{ font-family:'Cinzel',Georgia,serif; font-size:13px; letter-spacing:2px; text-transform:uppercase; color:#a5a5ad; margin-top:4px; }
.vlk-bar{ position:relative; height:18px; margin:18px 10px 14px; border-radius:9px; background:#0a0a0c; border:1px solid #3a3a40; box-shadow:inset 0 2px 6px rgba(0,0,0,.9); overflow:hidden; }
.vlk-bar i{ position:absolute; left:0; top:0; bottom:0; background:linear-gradient(90deg,#7a1016,#e0303a); box-shadow:0 0 10px rgba(255,60,60,.6); transition:width .6s ease .3s; }
.vlk-bar span{ position:relative; font-size:11px; font-weight:800; letter-spacing:1px; color:#fff; line-height:18px; text-shadow:0 1px 2px #000; }
.vlk-txt{ font-family:'EB Garamond',Georgia,serif; font-size:16px; color:#d9d9de; line-height:1.35; }
.vlk-txt b{ color:#ffb3b3; }
.vlk-btn{ margin-top:18px; padding:9px 30px; border-radius:6px; font-family:'Cinzel',Georgia,serif; font-weight:800; letter-spacing:1.5px; font-size:13px; color:#fff; cursor:pointer;
  background:linear-gradient(180deg,#c8202a,#7d0f16); border:1px solid #ff8a8a; box-shadow:0 4px 10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.vlk-btn:hover{ filter:brightness(1.15); }

/* ── Ouverture d'un coffre : explosion de lumière (rayons + flash) ── */
.qb-gift-chest, .qb-streak-chest{ isolation:isolate; }
.qb-open-burst{ animation:chestKick .6s cubic-bezier(.2,1.6,.4,1) !important; }
@keyframes chestKick{ 0%{ transform:scale(1); } 35%{ transform:scale(1.28) rotate(-3deg); } 100%{ transform:scale(1); } }
.qb-open-burst::before{ content:''; position:absolute; left:50%; top:45%; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; pointer-events:none; z-index:5;
  background:radial-gradient(circle, #fff 0 18%, rgba(255,240,170,.95) 30%, rgba(255,190,60,.55) 55%, rgba(255,140,30,0) 72%);
  animation:chestFlash 1.1s ease-out forwards; }
.qb-open-burst::after{ content:''; position:absolute; left:50%; top:45%; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; pointer-events:none; z-index:4;
  background:repeating-conic-gradient(from 0deg, rgba(255,235,150,.85) 0 7deg, rgba(255,235,150,0) 7deg 24deg);
  -webkit-mask:radial-gradient(circle, #000 20%, rgba(0,0,0,.6) 55%, transparent 72%); mask:radial-gradient(circle, #000 20%, rgba(0,0,0,.6) 55%, transparent 72%);
  animation:chestRays 1.2s ease-out forwards; }
@keyframes chestFlash{ 0%{ transform:scale(.2); opacity:0; } 15%{ transform:scale(2.4); opacity:1; } 100%{ transform:scale(7); opacity:0; } }
@keyframes chestRays{ 0%{ transform:scale(.3) rotate(0); opacity:0; } 20%{ opacity:1; } 100%{ transform:scale(9) rotate(60deg); opacity:0; } }

/* ── Bulles du cadeau qui volent au centre de l'écran puis explosent ── */
.qb-gift-fly{ position:fixed !important; z-index:12500; margin:0; pointer-events:none; transition:transform .82s cubic-bezier(.5,-.2,.6,1); will-change:transform; }
.qb-burst{ position:fixed; left:50%; top:50%; width:0; height:0; z-index:12600; pointer-events:none; }
.qb-burst-flash{ position:absolute; left:-60px; top:-60px; width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, #fff 0 22%, rgba(255,240,170,.95) 38%, rgba(255,180,60,.5) 62%, rgba(255,140,30,0) 75%); animation:burstFlash .9s ease-out forwards; }
.qb-burst-ring{ position:absolute; left:-60px; top:-60px; width:120px; height:120px; border-radius:50%; border:6px solid rgba(255,220,120,.9); box-shadow:0 0 30px rgba(255,190,60,.8), inset 0 0 20px rgba(255,220,120,.6); animation:burstRing 1s ease-out forwards; }
.qb-burst b{ position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff6cc, #ffb020 60%, #c8202a); box-shadow:0 0 10px rgba(255,200,80,.9);
  transform:rotate(var(--a)) translateX(0) scale(var(--s)); animation:burstDot 1s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes burstFlash{ 0%{ transform:scale(.1); opacity:0; } 12%{ transform:scale(2.2); opacity:1; } 100%{ transform:scale(6); opacity:0; } }
@keyframes burstRing{ 0%{ transform:scale(.1); opacity:1; } 100%{ transform:scale(7); opacity:0; } }
@keyframes burstDot{ 0%{ transform:rotate(var(--a)) translateX(0) scale(var(--s)); opacity:1; } 100%{ transform:rotate(var(--a)) translateX(var(--d)) scale(.2); opacity:0; } }

/* ── Ouverture ÉPIQUE du coffre quotidien ─────────────────────────────────────────────── */
.qb-epic{ position:fixed; inset:0; z-index:12400; pointer-events:none; overflow:hidden; }
.qb-epic-dim{ position:absolute; inset:0; background:radial-gradient(ellipse at center, rgba(20,10,0,.35), rgba(0,0,0,.85) 75%); opacity:0; transition:opacity .5s; }
.qb-epic.on .qb-epic-dim{ opacity:1; }
.qb-epic.out .qb-epic-dim, .qb-epic.out .qb-epic-rays, .qb-epic.out .qb-epic-glow, .qb-epic.out .qb-epic-chest, .qb-epic.out .qb-epic-items{ opacity:0 !important; transition:opacity .5s !important; }
/* rayons tournants (dieu-lumière) */
.qb-epic-rays{ position:absolute; left:50%; top:50%; width:220vmax; height:220vmax; margin:-110vmax 0 0 -110vmax; opacity:0;
  background:repeating-conic-gradient(from 0deg, rgba(255,225,140,.55) 0 4deg, rgba(255,225,140,0) 4deg 15deg);
  -webkit-mask:radial-gradient(circle, #000 0, rgba(0,0,0,.5) 25%, transparent 55%); mask:radial-gradient(circle, #000 0, rgba(0,0,0,.5) 25%, transparent 55%);
  animation:epicSpin 14s linear infinite; transition:opacity .6s; }
.qb-epic.rumble .qb-epic-rays{ opacity:.35; }
.qb-epic.blast .qb-epic-rays{ opacity:1; animation:epicSpin 6s linear infinite; }
@keyframes epicSpin{ to{ transform:rotate(360deg); } }
/* lueur dorée qui gonfle pendant le grondement */
.qb-epic-glow{ position:absolute; left:50%; top:50%; width:160px; height:160px; margin:-80px 0 0 -80px; border-radius:50%; opacity:0;
  background:radial-gradient(circle, rgba(255,240,180,.95), rgba(255,180,60,.6) 45%, rgba(255,120,30,0) 72%); filter:blur(6px); }
.qb-epic.rumble .qb-epic-glow{ animation:epicGlow .85s ease-in forwards; }
.qb-epic.blast .qb-epic-glow{ opacity:0; }
@keyframes epicGlow{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(3.2); opacity:1; } }
/* le coffre lui-même */
.qb-epic-chest{ position:absolute; transform-origin:50% 50%; transition:transform .65s cubic-bezier(.3,1.4,.4,1); filter:drop-shadow(0 20px 30px rgba(0,0,0,.8)); will-change:transform; }
.qb-epic-chest .qb-chest-img, .qb-epic-chest svg{ width:100%; height:100%; display:block; object-fit:contain; }
.qb-epic.rumble .qb-epic-chest{ animation:epicRumble .09s linear infinite; }
@keyframes epicRumble{ 0%{ margin:0 0 0 0; } 25%{ margin:-3px 0 0 3px; } 50%{ margin:2px 0 0 -3px; } 75%{ margin:-2px 0 0 -2px; } 100%{ margin:3px 0 0 2px; } }
.qb-epic.blast .qb-epic-chest{ animation:epicPop .7s cubic-bezier(.2,1.6,.4,1); filter:drop-shadow(0 0 40px rgba(255,210,90,.9)) drop-shadow(0 20px 30px rgba(0,0,0,.8)); }
@keyframes epicPop{ 0%{ scale:1; } 30%{ scale:1.25; } 100%{ scale:1; } }
/* explosion : flash, ondes de choc, braises */
.qb-epic-fx{ position:absolute; left:50%; top:50%; width:0; height:0; }
.qb-epic-flash, .qb-epic-ring{ position:absolute; left:-80px; top:-80px; width:160px; height:160px; border-radius:50%; opacity:0; }
.qb-epic-flash{ background:radial-gradient(circle, #fff 0 26%, rgba(255,245,200,.95) 40%, rgba(255,190,60,.55) 62%, rgba(255,140,30,0) 75%); }
.qb-epic-ring{ border:8px solid rgba(255,225,130,.95); box-shadow:0 0 40px rgba(255,190,60,.9), inset 0 0 30px rgba(255,225,130,.7); }
.qb-epic.blast .qb-epic-flash{ animation:epicFlash 1.1s ease-out forwards; }
.qb-epic.blast .qb-epic-ring{ animation:epicRing 1.2s ease-out forwards; }
.qb-epic.blast .qb-epic-ring.r2{ animation-delay:.18s; border-width:4px; }
@keyframes epicFlash{ 0%{ transform:scale(.2); opacity:0; } 10%{ transform:scale(3); opacity:1; } 100%{ transform:scale(14); opacity:0; } }
@keyframes epicRing{ 0%{ transform:scale(.1); opacity:1; } 100%{ transform:scale(16); opacity:0; } }
.qb-epic-fx b{ position:absolute; left:-7px; top:-7px; width:14px; height:14px; border-radius:50%; opacity:0;
  background:radial-gradient(circle at 35% 30%, #fff8d0, hsl(calc(30 + var(--h)) 100% 55%) 55%, #b3121b); box-shadow:0 0 12px rgba(255,190,60,.95); }
.qb-epic.blast .qb-epic-fx b{ animation:epicSpark var(--t) cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes epicSpark{ 0%{ transform:rotate(var(--a)) translateX(0) scale(var(--s)); opacity:1; } 70%{ opacity:1; } 100%{ transform:rotate(var(--a)) translateX(var(--d)) translateY(90px) scale(.15); opacity:0; } }
/* récompenses qui jaillissent du coffre en éventail */
.qb-epic-items{ position:absolute; left:50%; top:50%; width:0; height:0; }
.qb-epic-item{ position:absolute; left:-30px; top:-30px; width:60px; height:60px; font-size:30px; opacity:0; transform:translate(0, 40px) scale(.3); }
.qb-epic-item img{ width:42px; height:42px; }
.qb-epic.spill .qb-epic-item{ animation:epicSpill .9s cubic-bezier(.2,1.3,.4,1) forwards; animation-delay:calc(var(--i) * .12s);
  --x:calc((var(--i) - (var(--n) - 1) / 2) * 120px); }
@keyframes epicSpill{ 0%{ transform:translate(0, 40px) scale(.3) rotate(-90deg); opacity:0; } 45%{ transform:translate(calc(var(--x) * .6), -220px) scale(1.7) rotate(20deg); opacity:1; } 100%{ transform:translate(var(--x), -150px) scale(1.9) rotate(0); opacity:1; } }
/* secousse de l'écran à l'explosion */
.questboard.qb-quake{ animation:qbQuake .6s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes qbQuake{ 10%,90%{ transform:translate(-2px, 1px); } 20%,80%{ transform:translate(4px, -2px); } 30%,50%,70%{ transform:translate(-7px, 3px); } 40%,60%{ transform:translate(7px, -3px); } }

/* ── Coffre en attente : petits flashs de lumière « sacrée » (halo à rayons + éclats), à des moments différents ── */
.qb-holy, .qb-glint{ position:absolute; pointer-events:none; opacity:0; }
.qb-holy{ left:-25%; top:-25%; width:150%; height:150%; z-index:3;
  background:radial-gradient(circle at 50% 42%, rgba(255,252,230,.95) 0 5%, rgba(255,225,130,.55) 16%, rgba(255,200,80,0) 40%),
             repeating-conic-gradient(from 0deg at 50% 42%, rgba(255,240,180,.75) 0 4deg, rgba(255,240,180,0) 4deg 28deg);
  -webkit-mask:radial-gradient(circle at 50% 42%, #000 18%, rgba(0,0,0,.5) 40%, transparent 62%); mask:radial-gradient(circle at 50% 42%, #000 18%, rgba(0,0,0,.5) 40%, transparent 62%);
  animation:holyFlash 5.2s ease-in-out infinite; }
@keyframes holyFlash{ 0%,74%,100%{ opacity:0; transform:scale(.55) rotate(0deg); } 80%{ opacity:1; transform:scale(1.05) rotate(12deg); } 90%{ opacity:0; transform:scale(1.35) rotate(28deg); } }
.qb-glint{ width:14px; height:14px; z-index:4;
  background:radial-gradient(circle, #fff 0 22%, rgba(255,245,200,0) 60%), linear-gradient(#fff8d8,#fff8d8) 50% 0/2px 100% no-repeat, linear-gradient(#fff8d8,#fff8d8) 0 50%/100% 2px no-repeat;
  filter:drop-shadow(0 0 4px rgba(255,230,140,.95)); animation:glint 5.2s ease-in-out infinite; }
.qb-glint.g1{ left:18%; top:22%; animation-delay:1.1s; }
.qb-glint.g2{ right:14%; top:38%; animation-delay:2.6s; transform:scale(.8); }
.qb-glint.g3{ left:40%; bottom:14%; animation-delay:3.7s; transform:scale(.7); }
@keyframes glint{ 0%,88%,100%{ opacity:0; transform:scale(.2) rotate(0deg); } 92%{ opacity:1; transform:scale(1.1) rotate(45deg); } 96%{ opacity:0; transform:scale(.3) rotate(90deg); } }
.qb-gift-chest .qb-holy{ animation-duration:6.5s; } .qb-gift-chest .qb-glint{ width:9px; height:9px; animation-duration:6.5s; }
.questboard.qb-lite .qb-holy, .questboard.qb-lite .qb-glint{ display:none; }

/* ── Quête « quantité déclarée » : saisie de la quantité + calcul ── */
.qb-unit{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0 2px; padding:8px 10px; background:rgba(110,74,13,.08); border:1px dashed rgba(110,74,13,.45); border-radius:8px; font-size:12.5px; color:#5a2f0c; }
.qb-unit label{ font-family:'EB Garamond',Georgia,serif; }
.qb-unit .qb-unit-in{ width:96px; padding:4px 8px; font-size:13px; background:rgba(255,248,225,.7); border:1px solid rgba(110,74,13,.45); color:#3a2008; }
.qb-unit-calc{ font-family:'EB Garamond',Georgia,serif; font-size:13px; color:#6b3a10; }
.qb-unit-calc b{ font-family:'Cinzel',Georgia,serif; color:#a11a20; }
.qb-unit.done{ border-style:solid; background:rgba(63,107,30,.10); border-color:rgba(63,107,30,.45); color:#3f6b1e; }
.qb-unit-tag{ font-size:11px; color:#6b3a10; background:rgba(110,74,13,.10); border:1px solid rgba(110,74,13,.35); border-radius:8px; padding:1px 6px; margin-left:4px; }
.qb-unit-tag b{ color:#a11a20; } .qb-unit-tag.off{ color:#a3341f; font-style:italic; }
