/* =========================================================
   CYBERHORSE — Layout, composants & écrans
   ========================================================= */

/* ==================== Header ==================== */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; }
.profile .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 15px;
  color: var(--bg-0); background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: var(--glow-neon);
}
.profile .who { display: flex; flex-direction: column; line-height: 1.1; }
.profile .who b { font-size: 14px; font-weight: 600; }
.profile .who small { font-size: 11px; color: var(--tx-dim); letter-spacing: .3px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(0, 233, 208, 0.07); border: 1px solid var(--glass-brd); color: var(--tx-dim);
}
.chip svg { width: 15px; height: 15px; }
.lang-btn { font-family: var(--f-num); font-weight: 700; letter-spacing: 1px; color: var(--neon-soft); }

/* ==================== Stat cards (PPH etc.) ==================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { padding: 9px 8px; border-radius: var(--r-sm); text-align: center; background: var(--glass); border: 1px solid var(--glass-brd-2); }
.stat .lab { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--tx-mut); margin-bottom: 3px; }
.stat .val { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--neon-soft); display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat .val.gold { color: var(--gold); }
.stat .val svg { width: 14px; height: 14px; }

/* ==================== Solde ==================== */
.balance { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.balance .coin { width: 40px; height: 40px; filter: drop-shadow(var(--glow-gold)); animation: coinSpin 6s linear infinite; }
@keyframes coinSpin { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.balance .amt { font-family: var(--f-display); font-weight: 900; font-size: 40px; letter-spacing: 1px; color: var(--tx); text-shadow: 0 2px 20px rgba(255, 200, 74, 0.25); }

/* ==================== Barre de rang ==================== */
.rankbar { display: flex; align-items: center; gap: 10px; margin: 2px 4px 12px; }
.rankbar .info { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tx-dim); white-space: nowrap; }
.rankbar .info b { color: var(--neon-soft); font-family: var(--f-num); }
.rankbar .track { flex: 1; height: 8px; border-radius: 8px; background: rgba(120, 160, 220, 0.12); overflow: hidden; position: relative; }
.rankbar .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--neon-deep), var(--neon), var(--neon-2)); box-shadow: var(--glow-neon); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.rankbar .lvl { font-family: var(--f-num); font-size: 12px; color: var(--tx-mut); }

/* ==================== Zone de TAP (hero) ==================== */
.tapwrap { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; }
.horse-stage { position: relative; width: min(78vw, 320px); aspect-ratio: 1; display: grid; place-items: center; perspective: 1100px; }

.horse-halo {
  position: absolute; inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 233, 208, 0.22), rgba(36, 180, 255, 0.10) 45%, transparent 68%);
  animation: haloPulse 3.4s ease-in-out infinite;
}
@keyframes haloPulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }

.horse-ring {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1.5px solid rgba(0, 233, 208, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 233, 208, 0.12);
}
.horse-ring.r2 { inset: 9%; border-color: rgba(36, 180, 255, 0.18); border-style: dashed; animation: spin 24s linear infinite; }
.horse-ring.r3 { inset: -3%; border-color: rgba(0, 233, 208, 0.12); animation: spin 40s linear infinite reverse; }

.horse-btn {
  position: relative; width: 86%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 34%, rgba(20, 40, 66, 0.9), rgba(6, 12, 24, 0.95));
  box-shadow: inset 0 2px 30px rgba(0, 233, 208, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-neon-lg);
  transition: transform .08s cubic-bezier(.3,1.4,.5,1);
  will-change: transform;
  perspective: 900px;   /* profondeur 3D pour le spin 360° de .horse-fx */
  cursor: pointer;
}
.horse-btn .horse-svg { width: 82%; height: 82%; filter: drop-shadow(0 6px 18px rgba(0, 233, 208, 0.4)); }
.horse-btn.hit { transform: scale(.93); }
.horse-btn.hit .horse-svg { filter: drop-shadow(0 0 26px rgba(0, 233, 208, 0.85)); }

/* --- Hero PNG premium (render 3D, remplace le SVG plat) --- */
.horse-btn .horse-img {
  width: 94%; height: 94%; object-fit: contain; object-position: 50% 42%;
  pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
  transform-origin: 50% 90%;   /* pivot bas (sabots ancrés) → balancement crédible */
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)) drop-shadow(0 0 16px rgba(0, 233, 208, .38));
  animation:
    heroBob 2.9s ease-in-out infinite,
    heroSway 4.7s ease-in-out infinite,
    heroGlow 3.2s ease-in-out infinite;
}
/* Lévitation ample + respiration (volume conservé) → le perso "vit" nettement */
@keyframes heroBob {
  0%,100% { transform: translateY(3px)  scaleX(1.006) scaleY(.988); }
  50%     { transform: translateY(-14px) scaleX(.992) scaleY(1.022); }
}
/* Balancement lent, période ≠ bob → mouvement organique, non robotique.
   Propriété `rotate` distincte de `transform` → se compose avec heroBob sans l'écraser. */
@keyframes heroSway {
  0%,100% { rotate: -2.3deg; }
  50%     { rotate:  2.3deg; }
}
@keyframes heroGlow {
  0%,100% { filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(0,233,208,.32)); }
  50%     { filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)) drop-shadow(0 0 26px rgba(0,233,208,.58)); }
}
/* Héros = WebP animé : le mouvement (respiration, piaffe, crinière) est déjà porté par l'image.
   On neutralise le balancement/respiration CSS (double emploi) et on ne garde qu'une lévitation
   TRÈS douce + la lueur d'ambiance. Le fallback PNG statique (src .png) garde bob/sway/glow. */
.horse-btn .horse-img[src$=".webp"] {
  animation: heroFloat 4.2s ease-in-out infinite, heroGlow 3.2s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(2px); }
  50%     { transform: translateY(-5px); }
}
/* Au tap : flash net qui casse volontairement l'anim idle (override via !important, technique standard) */
.horse-btn.hit .horse-img {
  animation: none !important;
  transform: scale(1.045) !important;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)) drop-shadow(0 0 34px rgba(0,233,208,.95)) brightness(1.12) !important;
}

/* ===== Couche d'INTERACTION VIVANTE (.horse-fx) =====
   S'intercale entre le bouton et l'image. Elle porte :
   1) une "vie" idle NON cyclique (horseLife) qui casse l'effet marche-en-boucle ;
   2) les gestes amples joués en JS via Web Animations (spin 360°, glissement G/D, cabré).
   Principe anti-conflit : chaque couche ne pilote qu'UN canal de transform →
   tilt du tap (.horse-btn) ∘ gestes (.horse-fx) ∘ lévitation (.horse-img) se composent. */
.horse-fx {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  pointer-events: none;               /* les taps/gestes sont captés par .horse-btn */
  transform-origin: 50% 64%;          /* pivot bas-centre → rotation/report crédibles */
  transform-style: preserve-3d;
  will-change: transform;
  animation: horseLife 15s ease-in-out infinite;
}
.horse-fx.dragging { animation: none; }             /* le doigt pilote → on fige la vie idle */
.horse-btn.shake .horse-fx { animation: none; }     /* pas d'énergie : la secousse prime */

/* ===== Mode viewer 3D (canvas WebGL) : le rendu three.js pilote toute l'animation.
   On fige la "vie" CSS du WebP et on masque l'image de repli. Le canvas est en
   pointer-events:auto (posé inline par horse3d.js) → il capte tap (farm) & drag (rotation). */
.horse-btn.has-3d .horse-fx { animation: none !important; transform: none !important; }
.horse-btn.has-3d .horse-img { display: none; }
.horse-btn.has-3d canvas { width: 100%; height: 100%; }

/* "Vie" idle : reports de poids + regards, avec des TEMPS D'ARRÊT irréguliers.
   Les holds (phases figées) sont la clé : ils cassent le rythme métronomique
   de la marche en boucle et donnent l'impression d'un animal qui hésite/observe. */
@keyframes horseLife {
  0%   { transform: translateX(0)    rotate(0deg); }
  9%   { transform: translateX(-3px) rotate(-1.1deg); }
  22%  { transform: translateX(-3px) rotate(-1.1deg); }   /* hold : appui à gauche */
  33%  { transform: translateX(0)    rotate(.2deg); }
  40%  { transform: translateX(2px)  rotate(.5deg); }
  52%  { transform: translateX(4px)  rotate(1.5deg); }
  60%  { transform: translateX(4px)  rotate(1.5deg); }    /* hold : regard à droite */
  74%  { transform: translateX(1px)  rotate(.4deg); }
  86%  { transform: translateX(-1px) rotate(-.5deg); }
  100% { transform: translateX(0)    rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .horse-fx { animation: none; } }

/* ==================== MASCOTTES cheval-cyber (idle premium) ====================
   Une déclinaison par activité, même ligne artistique cristal holographique.
   Halo teinté par thème + lévitation + ombre au sol + shimmer holographique. */
.mascot {
  --m-glow: var(--neon);            /* accent, surchargé par thème ci-dessous */
  --m-size: 120px;
  position: relative; margin: 4px auto 12px;
  width: var(--m-size); height: var(--m-size);
  display: grid; place-items: center; pointer-events: none;
}
.mascot--empty { display: none; }   /* image pas encore générée → masquage propre */

.mascot-glow {
  position: absolute; inset: -16%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--m-glow) 34%, transparent), transparent 66%);
  filter: blur(3px); z-index: 0;
  animation: mascotGlow 3.6s ease-in-out infinite;
}
@keyframes mascotGlow { 0%,100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.1); opacity: 1; } }

.mascot-img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 45%;
  -webkit-user-drag: none; user-select: none;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 14px color-mix(in srgb, var(--m-glow) 55%, transparent));
  animation: mascotFloat 4.6s ease-in-out infinite, mascotSheen 7s ease-in-out infinite;
}
/* lévitation + très léger balancement (vie sans mouvement de membres) */
@keyframes mascotFloat { 0%,100% { transform: translateY(0) scale(1) rotate(-.5deg); } 50% { transform: translateY(-7px) scale(1.02) rotate(.5deg); } }
/* shimmer : fait vibrer les reflets irisés + pulse le halo net (effet holographique vivant) */
@keyframes mascotSheen {
  0%,100% { filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 14px color-mix(in srgb, var(--m-glow) 55%, transparent)) hue-rotate(0deg) saturate(1); }
  50%     { filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 24px color-mix(in srgb, var(--m-glow) 78%, transparent)) hue-rotate(14deg) saturate(1.14); }
}

.mascot-shadow {
  position: absolute; bottom: 1%; left: 50%; z-index: 1;
  width: 52%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%);
  filter: blur(3px);
  animation: mascotShadow 4.6s ease-in-out infinite;
}
@keyframes mascotShadow { 0%,100% { transform: translateX(-50%) scale(1); opacity: .5; } 50% { transform: translateX(-50%) scale(.8); opacity: .3; } }

/* Teintes + tailles par activité */
.mascot--mine    { --m-glow: var(--gold); }
.mascot--friends { --m-glow: var(--neon); }
.mascot--earn    { --m-glow: var(--ok); }
.mascot--airdrop { --m-glow: var(--violet); --m-size: 170px; }

@media (prefers-reduced-motion: reduce) {
  .mascot-img, .mascot-glow, .mascot-shadow { animation-duration: 9s; }
}

/* --- Personnage vivant (legacy) : respiration, gemme, regard, crinière —
   ces règles ciblent le fallback .horse-svg (conservé mais désactivé dans tap.js) --- */
.horse-svg .ch-breath { transform-box: fill-box; transform-origin: 50% 46%; animation: chBreath 4.2s ease-in-out infinite; }
@keyframes chBreath { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.018) translateY(-1.2px); } }

.horse-svg .ch-gem { transform-box: fill-box; transform-origin: center; animation: chGem 2.1s ease-in-out infinite; }
@keyframes chGem { 0%,100% { opacity: .82; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.12); } }

.horse-svg .ch-eyes { transform-box: fill-box; transform-origin: center; animation: chBlink 5.6s ease-in-out infinite; }
@keyframes chBlink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

.horse-svg .ch-mane { transform-box: fill-box; transform-origin: 50% 20%; animation: chMane 6.5s ease-in-out infinite; }
@keyframes chMane { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(1.4deg) translateX(1px); } }

/* Au tap (fallback SVG) : le héros réagit (flash + sursaut de la gemme) */
.horse-btn.hit .ch-gem { opacity: 1; transform: scale(1.3); }

/* ---- PNJ écurie : chevaux-compagnons qui déambulent (NPC vivants) ---- */
.npc-yard { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.tapwrap > .horse-stage { z-index: 20; }   /* le héros reste au premier plan */

.npc {
  position: absolute;
  height: calc(72px * var(--s, .8));
  transform: translateX(-50%) scaleX(var(--dir, 1));
  will-change: left;
}
.npc-img {
  height: 100%; width: auto; display: block;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)) drop-shadow(0 0 8px rgba(0,233,208,.30));
}
.npc-shadow {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 72%; height: 7px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,233,208,.10) 55%, transparent 72%);
  filter: blur(1px);
}
.npc.walking .npc-img    { animation: npcTrot   .42s ease-in-out infinite; }
.npc.walking .npc-shadow { animation: npcShadow .42s ease-in-out infinite; }
.npc.idle    .npc-img    { animation: npcIdle  2.6s ease-in-out infinite; }

@keyframes npcTrot {
  0%   { transform: translateY(0)      scaleY(1)    rotate(-2deg); }
  25%  { transform: translateY(-4.5px) scaleY(1.05) rotate(0deg); }
  50%  { transform: translateY(0)      scaleY(.97)  rotate(2deg); }
  75%  { transform: translateY(-4.5px) scaleY(1.05) rotate(0deg); }
  100% { transform: translateY(0)      scaleY(1)    rotate(-2deg); }
}
@keyframes npcShadow {
  0%,50%,100% { transform: translateX(-50%) scaleX(1);   opacity: .5; }
  25%,75%     { transform: translateX(-50%) scaleX(.78); opacity: .32; }
}
@keyframes npcIdle {
  0%,100% { transform: translateY(0)      scaleY(1); }
  50%     { transform: translateY(-1.4px) scaleY(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .npc.walking .npc-img, .npc.walking .npc-shadow, .npc.idle .npc-img { animation: none; }
}

/* Chiffres +X flottants */
.pop {
  position: absolute; z-index: 45; pointer-events: none;
  font-family: var(--f-display); font-weight: 900; font-size: 30px;
  color: #fff; text-shadow: 0 0 16px rgba(0, 233, 208, 0.9), 0 2px 8px rgba(0,0,0,.6);
  animation: popUp .85s cubic-bezier(.2,.7,.3,1) forwards;
  display: flex; align-items: center; gap: 4px;
}
.pop svg { width: 24px; height: 24px; }
@keyframes popUp {
  0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; }
  20% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
  100% { transform: translate(-50%, -220%) scale(.9); opacity: 0; }
}

/* ==================== Barre d'énergie + boost ==================== */
.energybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 4px; }
.energy { display: flex; align-items: center; gap: 8px; }
.energy .bolt { width: 26px; height: 26px; filter: drop-shadow(var(--glow-neon)); }
.energy .txt { font-family: var(--f-num); font-weight: 700; font-size: 17px; }
.energy .txt b { color: var(--tx); }
.energy .txt span { color: var(--tx-mut); font-size: 14px; }
.boost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(160, 107, 255, 0.12); border: 1px solid rgba(160, 107, 255, 0.35); color: #d9c6ff; font-weight: 700; font-size: 13px; box-shadow: 0 0 16px rgba(160, 107, 255, 0.2); }
.boost-btn svg { width: 18px; height: 18px; }
.energy-track { height: 6px; border-radius: 6px; margin: 0 2px 2px; background: rgba(120, 160, 220, 0.12); overflow: hidden; }
.energy-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--neon), var(--neon-2)); box-shadow: var(--glow-neon); transition: width .25s ease; }

/* ==================== Bottom nav ==================== */
.nav {
  position: relative; z-index: 20; flex: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 8px 8px calc(var(--sab) + 8px);
  margin: 6px 10px 10px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(11, 18, 34, 0.86), rgba(7, 12, 23, 0.92));
  border: 1px solid var(--glass-brd); backdrop-filter: blur(18px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-hi);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: var(--r-sm); color: var(--tx-mut); transition: color .2s, background .2s; position: relative; }
.nav-item svg { width: 24px; height: 24px; transition: transform .2s; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.nav-item.active { color: var(--neon); background: rgba(0, 233, 208, 0.08); }
.nav-item.active svg { transform: translateY(-1px); filter: drop-shadow(var(--glow-neon)); }
.nav-item.active::after { content: ""; position: absolute; top: 3px; width: 20px; height: 3px; border-radius: 3px; background: var(--neon); box-shadow: var(--glow-neon); }

/* ==================== En-tête de section ==================== */
.sec-head { text-align: center; margin: 6px 0 14px; }
.sec-head h1 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: 1px; }
.sec-head h1 span { color: var(--neon); }
.sec-head p { color: var(--tx-dim); font-size: 13px; margin-top: 4px; }
.sec-balance { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.sec-balance img { width: 26px; height: 26px; filter: drop-shadow(var(--glow-gold)); }
.sec-balance b { font-family: var(--f-display); font-weight: 900; font-size: 26px; }

/* ==================== Onglets (catégories mine) ==================== */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tx-dim); background: var(--glass); border: 1px solid var(--glass-brd-2); white-space: nowrap; }
.tab.active { color: var(--bg-0); background: linear-gradient(135deg, var(--neon), var(--neon-2)); box-shadow: var(--glow-neon); }

/* ==================== Grille de cartes (upgrades) ==================== */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 12px; }
.card { padding: 12px; border-radius: var(--r-md); background: linear-gradient(165deg, var(--glass), var(--glass-2)); border: 1px solid var(--glass-brd-2); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; transition: transform .12s ease, border-color .2s; }
.card:active { transform: scale(.97); }
.card.max { border-color: rgba(255, 200, 74, 0.4); }
.card-top { display: flex; align-items: center; gap: 10px; }
.card-ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, rgba(0, 233, 208, 0.2), rgba(6,12,24,.6)); border: 1px solid var(--glass-brd); }
.card-ico svg { width: 28px; height: 28px; }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.card-lvl { font-size: 11px; color: var(--tx-mut); font-family: var(--f-num); }
.card-profit { font-size: 11px; color: var(--tx-dim); }
.card-profit b { color: var(--gold); font-family: var(--f-num); font-size: 14px; }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(120, 160, 220, 0.1); }
.card-cost { display: flex; align-items: center; gap: 4px; font-family: var(--f-num); font-weight: 700; font-size: 15px; }
.card-cost img { width: 16px; height: 16px; }
.card-cost.cant { color: var(--danger); }
.card-lvlbadge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 233, 208, 0.12); color: var(--neon-soft); font-family: var(--f-num); }
.card.max .card-lvlbadge { background: rgba(255, 200, 74, 0.15); color: var(--gold); }

/* ==================== Liste (tâches / amis) ==================== */
.list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(165deg, var(--glass), var(--glass-2)); border: 1px solid var(--glass-brd-2); box-shadow: var(--shadow-card); }
.row .r-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(0, 233, 208, 0.08); border: 1px solid var(--glass-brd); }
.row .r-ico svg { width: 26px; height: 26px; }
.row .r-body { flex: 1; min-width: 0; }
.row .r-body b { display: block; font-size: 14px; font-weight: 600; }
.row .r-body small { color: var(--tx-dim); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.row .r-body small img { width: 13px; height: 13px; }
.row .r-act { flex: none; }
.pill { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.go { background: linear-gradient(135deg, var(--neon), var(--neon-2)); color: var(--bg-0); box-shadow: var(--glow-neon); }
.pill.done { background: rgba(53, 227, 154, 0.12); color: var(--ok); border: 1px solid rgba(53, 227, 154, 0.3); }
.pill.claim { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--bg-0); box-shadow: var(--glow-gold); }

/* ==================== Airdrop ==================== */
.airdrop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 20px; }
.airdrop .token { width: 130px; height: 130px; filter: drop-shadow(var(--glow-neon-lg)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.airdrop h1 { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: 2px; }
.airdrop h1 span { color: var(--neon); }
.airdrop p { color: var(--tx-dim); font-size: 14px; max-width: 300px; }
.wallet-box { width: 100%; max-width: 340px; }
.countdown { display: flex; gap: 8px; justify-content: center; margin: 6px 0; }
.cd { min-width: 60px; padding: 10px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--glass-brd); }
.cd b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 24px; color: var(--neon-soft); }
.cd small { font-size: 10px; color: var(--tx-mut); text-transform: uppercase; letter-spacing: 1px; }

/* ==================== Toast ==================== */
.toast { pointer-events: none; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(11, 18, 34, 0.92); border: 1px solid var(--glass-brd); color: var(--tx); backdrop-filter: blur(10px); box-shadow: var(--glow-neon), 0 8px 24px rgba(0,0,0,.4); animation: toastIn .3s ease, toastOut .3s ease 1.9s forwards; display: flex; align-items: center; gap: 8px; }
.toast.gold { border-color: rgba(255, 200, 74, 0.4); box-shadow: var(--glow-gold); }
.toast img { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }

/* ==================== Bottom sheet (modale boost/level up) ==================== */
.sheet-back { position: absolute; inset: 0; background: rgba(2, 5, 12, 0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; pointer-events: auto; }
.sheet-back.show { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.2,1); padding: 22px 18px calc(var(--sab) + 22px); border-radius: var(--r-xl) var(--r-xl) 0 0; background: linear-gradient(180deg, var(--bg-3), var(--bg-1)); border-top: 1px solid var(--glass-brd); box-shadow: 0 -20px 60px rgba(0,0,0,.6); pointer-events: auto; }
.sheet.show { transform: translateY(0); }
.sheet-grab { width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 16px; }
.sheet-ico { width: 92px; height: 92px; margin: 0 auto 14px; filter: drop-shadow(var(--glow-neon-lg)); }
.sheet h2 { text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.sheet .sub { text-align: center; color: var(--tx-dim); font-size: 13px; margin-bottom: 18px; }
.sheet .cost-line { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-num); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.sheet .cost-line img { width: 22px; height: 22px; }

.section-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tx-mut); margin: 4px 4px 10px; }

/* ==================== Petite pièce inline ==================== */
.coin-sm { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.sec-balance .coin-sm { width: 26px; height: 26px; filter: drop-shadow(var(--glow-gold)); }
.stat .val .coin-sm { width: 14px; height: 14px; }
.toast .coin-sm { width: 16px; height: 16px; }
.sheet .cost-line .coin-sm { width: 22px; height: 22px; }
.row .r-body small .coin-sm { width: 13px; height: 13px; margin-right: 2px; }
.card-cost .coin-sm { width: 16px; height: 16px; }

/* ==================== États divers ==================== */
.boost-btn.turbo-on { background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: var(--gold); color: var(--bg-0); box-shadow: var(--glow-gold); animation: turboPulse .8s ease-in-out infinite; }
@keyframes turboPulse { 50% { filter: brightness(1.2); } }

.horse-btn.shake { animation: hShake .3s ease; }
@keyframes hShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.card.locked { opacity: .55; filter: grayscale(.5); }
.card.locked .card-ico { opacity: .6; }

/* Le solde principal met le SVG pièce (class coin) à sa taille */
.balance .amt { line-height: 1; }
