/* ═══════════════════════════════════════════════════════════
   NATURAL FAWAID — La Chasse au Miel V2
   game.css — Système de design complet
   Kito Digital pour Natural Fawaid
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'EFCO Brookshire';
  src: url('https://naturalfawaid.com/wp-content/uploads/2025/11/EFCOBrookshire-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  --bx:   #8D0000;
  --bx2:  #B50000;
  --bx3:  #6A0000;
  --gd:   #CB9937;
  --gd2:  #D9B46B;
  --gd3:  #E8C87A;
  --gd4:  #F0D898;
  --dk:   #0A0707;
  --dk2:  #130C0C;
  --dk3:  #1C1010;
  --cr:   #FFF8F0;
  --cr2:  rgba(255,248,240,.70);
  --cr3:  rgba(255,248,240,.40);
  --cr4:  rgba(255,248,240,.08);
  --cr5:  rgba(255,248,240,.04);
  --cr6:  rgba(255,248,240,.02);
  --glow-bx: rgba(141,0,0,.28);
  --glow-gd: rgba(203,153,55,.22);
  --r:    16px;
  --rsm:  10px;
  --rlg:  24px;
  --rxl:  32px;
  --fs:   'Nunito Sans', 'Segoe UI', sans-serif;
  --ff:   'EFCO Brookshire', 'Playfair Display', Georgia, serif;
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(.22,.68,0,1.2);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fs);
  background: var(--dk);
  color: var(--cr);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Fond ambiant */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 10% 20%, rgba(141,0,0,.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(203,153,55,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 5%,  rgba(141,0,0,.06)  0%, transparent 50%);
}

/* Motif hexagonal */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='70'%3E%3Cpolygon points='40,3 77,22 77,48 40,67 3,48 3,22' fill='none' stroke='rgba(203,153,55,.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 70px;
}

/* Liseré haut */
.page-stripe {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, transparent, var(--bx), var(--gd), var(--bx2), transparent);
  animation: stripe-pulse 3.5s ease-in-out infinite;
}
@keyframes stripe-pulse { 0%,100%{opacity:.55} 50%{opacity:1} }

/* ── Layout principal ── */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  /* Limite de largeur absolue pour 4K/ultra-wide — le fond couvre tout mais le contenu est centré */
  width: 100%;
}

/* ─────────────────────────────────────────────
   TOPBAR — Mobile-first, hamburger menu
   ───────────────────────────────────────────── */
.topbar {
  width: 100%; max-width: 1280px;
  padding: 12px 20px 12px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative; z-index: 50;
  /* Séparateur bas subtil pour délimiter le header du contenu */
  border-bottom: 1px solid rgba(255,248,240,.05);
  margin-bottom: 4px;
}

/* Zone gauche : marque + pseudo */
.topbar-brand {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1px;
  min-width: 0; flex-shrink: 1;
  overflow: hidden;
}

.topbar-logo {
  font-family: var(--ff);
  font-size: 1.1rem; color: var(--gd2);
  letter-spacing: .04em; text-decoration: none;
  transition: color .2s; white-space: nowrap;
  line-height: 1.1;
}
.topbar-logo:hover { color: var(--gd3); }

/* Pseudo joueur — affiché sous le logo */
.topbar-pseudo {
  font-size: .65rem; color: rgba(255,248,240,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px; line-height: 1;
  letter-spacing: .02em;
}

/* Zone droite : nectar pill + bouton menu */
.topbar-end {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

/* Bouton navigation desktop — icône + label texte */
.topbar-nav-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px 11px; border-radius: 8px;
  font-family: var(--fs); font-size: .73rem; font-weight: 700;
  /* Contraste amélioré : cr2 (70%) au lieu de cr3 (40%) */
  color: rgba(255,248,240,.72);
  transition: background .15s, color .15s;
  -webkit-appearance: none; white-space: nowrap; height: 34px;
}
.topbar-nav-btn:hover {
  background: rgba(255,248,240,.09);
  color: var(--cr);
}
.topbar-nav-btn svg { flex-shrink: 0; opacity: .85; }

/* Bouton icône seul (son) */
.topbar-icon-btn {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,248,240,.65); transition: background .15s, color .15s;
  -webkit-appearance: none; flex-shrink: 0;
}
.topbar-icon-btn:hover { background: rgba(255,248,240,.09); color: var(--cr); }

/* Séparateur vertical */
.topbar-sep {
  width: 1px; height: 20px; flex-shrink: 0;
  background: rgba(255,248,240,.1);
}

/* Panneaux desktop — visibles sur grand écran, cachés sur mobile */
.topbar-panels-desktop {
  display: flex; align-items: center; gap: 0;
}

/* Hamburger — caché par défaut (desktop), visible sur mobile */
.topbar-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--cr2); transition: background .15s;
  -webkit-appearance: none; flex-shrink: 0;
}
.topbar-menu-btn:hover { background: var(--cr4); }

.topbar-nectar {
  display: flex; align-items: center; gap: 5px;
  background: rgba(203,153,55,.14);
  border: 1px solid rgba(203,153,55,.32);
  border-radius: 50px; padding: 5px 12px;
  font-size: .76rem; font-weight: 800; color: var(--gd2);
  white-space: nowrap; min-height: 32px;
  letter-spacing: .01em;
}
.topbar-nectar svg { color: var(--gd2); }

/* Bouton hamburger */
.topbar-menu-btn {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cr2); transition: background .15s;
  -webkit-appearance: none; flex-shrink: 0;
}
.topbar-menu-btn:hover { background: var(--cr4); }

/* Drawer menu dépliable */
.topbar-drawer {
  position: absolute; top: calc(100% + 8px); right: 16px;
  background: var(--dk2);
  border: 1px solid rgba(203,153,55,.18);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  z-index: 200;
  overflow: hidden;
  /* Fermé par défaut */
  max-height: 0; opacity: 0; pointer-events: none;
  transition: max-height .28s cubic-bezier(.4,0,.2,1), opacity .22s;
}
.topbar-drawer.open {
  max-height: 300px; opacity: 1; pointer-events: auto;
}

.drawer-inner { padding: 12px 14px 14px; min-width: 220px; }

.drawer-nav-label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,248,240,.45); padding: 0 4px; margin-bottom: 8px;
  font-weight: 700;
}

.drawer-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 6px;
}
.drawer-row--util {
  grid-template-columns: 1fr 1fr;
  padding-top: 8px;
  border-top: 1px solid rgba(255,248,240,.07);
  margin-top: 4px;
}

.drawer-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,248,240,.06); border: 1px solid rgba(255,248,240,.12);
  border-radius: 10px; padding: 9px 12px;
  font-family: var(--fs); font-size: .78rem; font-weight: 700;
  /* Contraste amélioré : texte à 80% au lieu de 70% */
  color: rgba(255,248,240,.82); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  -webkit-appearance: none; white-space: nowrap;
  min-height: 40px;
}
.drawer-btn:hover { background: rgba(203,153,55,.14); color: var(--gd2); border-color: rgba(203,153,55,.3); }
.drawer-btn svg { color: rgba(255,248,240,.55); flex-shrink: 0; }
.drawer-btn:hover svg { color: var(--gd2); }

.drawer-btn--sm { padding: 8px 10px; font-size: .74rem; }

/* icon-btn — conservé pour rétrocompat éventuelle */
.icon-btn {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cr3); transition: background .15s, color .15s;
  -webkit-appearance: none; flex-shrink: 0;
}
.icon-btn:hover { background: var(--cr4); color: var(--cr2); }

.topbar-nav {
  display: flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600;
  color: rgba(255,248,240,.65); text-decoration: none;
  padding: 5px 11px; border-radius: 50px;
  border: 1px solid rgba(255,248,240,.18);
  transition: all .2s; white-space: nowrap;
}
.topbar-nav:hover { color: var(--cr); background: rgba(255,248,240,.09); border-color: rgba(255,248,240,.28); }

/* ─────────────────────────────────────────────
   ÉCRANS (sections)
   ───────────────────────────────────────────── */
.screen {
  display: none; flex-direction: column; align-items: center;
  width: 100%; max-width: 900px;
  padding: 48px 16px 24px;
  flex: 1;
  box-sizing: border-box;
  /* overflow-x retiré — il coupait le halo du pot sur l'écran intro
     Le scroll horizontal est bloqué au niveau html/body dans la section Reset */
}
.screen.active { display: flex; }
#screen-game {
  padding: 48px 16px 16px;
  /* Pas de min-height contraignant — l'arène définit sa propre hauteur */
  justify-content: flex-start;
  max-width: 900px; /* FIX : était 100%, causait l'arène pleine largeur */
  gap: 6px;
}

/* ─────────────────────────────────────────────
   ÉCRAN INTRO
   ───────────────────────────────────────────── */
#screen-intro { min-height: calc(100vh - 64px); justify-content: center; padding: 32px 16px; }

.intro-layout {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}

@media (min-width: 680px) {
  .intro-layout { flex-direction: row; align-items: center; gap: 52px; }
  .intro-content { align-items: flex-start; text-align: left; }
  .intro-meta { justify-content: flex-start; }
}

/* Visuel pot intro */
.intro-visual {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  /* Taille explicite : 240px contient le pot (130px) + débordement aura
     overflow: visible autorisé — l'aura ne sera plus coupée par le parent */
  width: 240px; height: 240px;
  overflow: visible;
}
.intro-pot-aura {
  position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  /* Centrage explicite — évite tout décalage gauche/droite */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(141,0,0,.22) 0%, rgba(203,153,55,.1) 40%, transparent 70%);
  animation: pot-aura 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes pot-aura {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: .65; }
  50%     { transform: translate(-50%,-50%) scale(1.25);  opacity: 1; }
}

.intro-pot-img {
  width: 130px; height: auto;
  object-fit: contain;
  animation: pot-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(141,0,0,.55)) drop-shadow(0 0 60px rgba(203,153,55,.28));
  -webkit-user-drag: none; user-select: none;
  position: relative; z-index: 1;
  transition: filter .4s;
}
.intro-pot-img:hover {
  filter: drop-shadow(0 0 48px rgba(141,0,0,.8)) drop-shadow(0 0 80px rgba(203,153,55,.45));
}
@keyframes pot-float {
  0%,100%{transform:translateY(0)    rotate(-1.5deg)}
  33%    {transform:translateY(-14px) rotate(2deg)}
  66%    {transform:translateY(-7px)  rotate(-1deg)}
}

@media (min-width: 680px) { .intro-pot-img { width: 180px; } }

/* Contenu intro */
.intro-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 100%;
}

.eyebrow {
  display: block;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gd); font-weight: 600; margin-bottom: 10px;
}

.intro-title {
  font-family: var(--ff);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1.05; margin-bottom: 14px;
  color: var(--cr);
}
.intro-title em { color: var(--gd2); font-style: italic; }

.intro-sub {
  font-size: .95rem; color: var(--cr2); line-height: 1.7;
  max-width: 400px; margin-bottom: 20px;
}

.intro-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  font-size: .82rem; color: var(--cr2); margin-bottom: 24px;
}
.intro-meta strong { color: var(--cr); font-weight: 800; }
.intro-meta-sep { color: rgba(255,248,240,.2); }

/* ── Card objectif ── */
.goal-card {
  width: 100%; border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 18px;
  background: rgba(203,153,55,.07);
  border: 1px solid rgba(203,153,55,.22);
  transition: background .3s, border-color .3s;
}
.goal-card.unlocked {
  background: rgba(141,0,0,.12);
  border-color: rgba(141,0,0,.35);
}
.goal-card.won {
  background: linear-gradient(135deg, rgba(141,0,0,.15), rgba(203,153,55,.1));
  border-color: rgba(203,153,55,.4);
}

.gc-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,248,240,.52); margin-bottom: 10px; display: block;
}
.gc-bar-wrap {
  height: 9px; background: rgba(255,248,240,.06);
  border-radius: 50px; overflow: hidden; margin-bottom: 8px;
}
.gc-bar-fill {
  height: 100%; width: 0%; border-radius: 50px;
  background: linear-gradient(90deg, var(--bx), var(--gd));
  transition: width .7s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 0 8px rgba(203,153,55,.4);
}
.gc-stats {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.gc-score { font-size: 1.25rem; font-weight: 900; color: var(--gd); }
.gc-remain { font-size: .72rem; color: rgba(255,248,240,.58); }
.gc-note {
  font-size: .72rem; color: rgba(255,248,240,.52); line-height: 1.55;
  border-top: 1px solid rgba(255,248,240,.07); padding-top: 8px; margin-top: 8px;
}
.gc-note strong { color: var(--gd2); }

/* État coffre gagné */
.gc-won-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(203,153,55,.15); border: 1px solid rgba(203,153,55,.4);
  border-radius: 50px; padding: 3px 14px;
  font-size: .65rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gd); margin-bottom: 12px;
}
.gc-coupon {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem; font-weight: 900; letter-spacing: .2em;
  color: var(--gd); text-shadow: 0 0 20px rgba(203,153,55,.4);
  margin-bottom: 6px; display: block;
}
.gc-coupon-det {
  font-size: .72rem; color: var(--cr3); line-height: 1.55; margin-bottom: 12px;
}
.gc-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.gc-expire {
  font-size: .68rem; color: rgba(203,153,55,.5); font-style: italic;
}

/* ── CTA intro ── */
.intro-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.intro-hint { font-size: .73rem; color: var(--cr3); min-height: 18px; }

/* ─────────────────────────────────────────────
   BOUTONS — Système complet
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border: none; border-radius: 50px;
  font-family: var(--fs); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  position: relative; overflow: hidden;
  -webkit-appearance: none; appearance: none;
}
.btn:focus-visible { outline: 2px solid var(--gd); outline-offset: 4px; border-radius: 50px; }
.btn:active { transform: scale(.96) !important; transition-duration: .08s; }
.btn.w-full { width: 100%; }

.btn-prestige {
  background: linear-gradient(160deg, #8D0000, #A80000 60%, #8D0000);
  color: var(--cr); height: 58px; padding: 0 44px; font-size: 1.05rem;
  box-shadow: 0 6px 30px rgba(141,0,0,.48), inset 0 1px 0 rgba(255,255,255,.12);
  border: 1px solid rgba(203,153,55,.22);
}
.btn-prestige:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(141,0,0,.65); }

.btn-primary {
  background: linear-gradient(135deg, #8D0000, #C00000);
  color: var(--cr);
  box-shadow: 0 4px 22px rgba(141,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 9px 36px rgba(141,0,0,.55); }

.btn-gold {
  background: linear-gradient(135deg, #B8851F, #E8C87A, #B8851F);
  color: #1A0800;
  box-shadow: 0 4px 22px rgba(203,153,55,.34), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 9px 36px rgba(203,153,55,.52); }

.btn-ghost {
  background: var(--cr4);
  border: 1px solid rgba(255,248,240,.15);
  color: var(--cr3); font-size: .88rem; height: 46px;
}
.btn-ghost:hover { background: rgba(255,248,240,.1); color: var(--cr); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,248,240,.18);
  color: var(--cr3); font-size: .88rem; height: 46px;
}
.btn-outline:hover { background: var(--cr4); color: var(--cr2); border-color: rgba(255,248,240,.28); }

.btn-chest {
  background: linear-gradient(135deg, #7A5200, #CB9937, #E8C87A, #CB9937, #7A5200);
  background-size: 200% 100%;
  color: #0A0400; height: 58px; padding: 0 44px; font-size: 1.05rem;
  box-shadow: 0 6px 30px rgba(203,153,55,.55), inset 0 1px 0 rgba(255,255,255,.25);
  animation: chest-shimmer 2.5s ease infinite;
}
.btn-chest:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 48px rgba(203,153,55,.7); }
@keyframes chest-shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Groupes CTA */
.cta-stack  { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cta-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cta-center { display: flex; justify-content: center; width: 100%; }

@media (max-width: 400px) { .cta-grid-2 { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────
   PANNEAUX LATÉRAUX (Collection, Classement, Missions)
   ───────────────────────────────────────────── */
.panel {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(360px, 92vw);
  background: var(--dk2);
  border-left: 1px solid rgba(203,153,55,.15);
  z-index: 500;
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.25,.46,.45,.94);
  overflow-y: auto;
}
.panel.open { right: 0; }

.panel-overlay {
  position: fixed; inset: 0; z-index: 499;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: none; cursor: pointer;
}
.panel-overlay.show { display: block; }

.panel-header {
  padding: 20px 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,248,240,.07);
  position: sticky; top: 0;
  background: var(--dk2); z-index: 1;
}
.panel-title {
  font-family: var(--ff); font-size: 1.2rem; color: var(--gd2);
}
.panel-close {
  background: none; border: none; cursor: pointer;
  color: var(--cr3); font-size: 1.2rem; padding: 4px 8px;
  border-radius: 8px; transition: background .15s;
}
.panel-close:hover { background: var(--cr4); color: var(--cr); }

.panel-body { padding: 16px 20px 32px; flex: 1; }

/* ── Collection ── */
.coll-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.coll-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,248,240,.08);
  background: var(--cr6);
  transition: transform .2s, border-color .2s;
  cursor: pointer; text-decoration: none;
}
.coll-card:hover { transform: translateY(-3px); border-color: rgba(203,153,55,.3); }
.coll-card.locked { filter: grayscale(80%); opacity: .45; cursor: default; pointer-events: none; }

.coll-img-wrap {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; position: relative;
}
.coll-img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, var(--card-color, rgba(141,0,0,.2)), transparent 70%);
}
.coll-img { width: 85%; height: 85%; object-fit: contain; position: relative; z-index: 1; }
.coll-lock-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; opacity: .4;
}

.coll-info { padding: 10px 12px; background: rgba(255,248,240,.03); }
.coll-name { font-size: .8rem; font-weight: 700; color: var(--cr2); margin-bottom: 2px; }
.coll-label { font-size: .68rem; color: var(--cr3); line-height: 1.4; }
.coll-rarity {
  display: inline-block; margin-top: 4px;
  padding: 2px 7px; border-radius: 50px;
  font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.rarity-commun   { background: rgba(255,248,240,.08); color: var(--cr3); }
.rarity-rare     { background: rgba(107,63,160,.2);   color: #C080FF; border: 1px solid rgba(160,100,200,.25); }
.rarity-legendaire { background: rgba(203,153,55,.18); color: var(--gd); border: 1px solid rgba(203,153,55,.3); }

.coll-progress-bar {
  width: 100%; height: 6px; background: rgba(255,248,240,.06);
  border-radius: 50px; overflow: hidden; margin: 12px 0 6px;
}
.coll-progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--bx), var(--gd));
  transition: width .6s var(--ease-out);
}
.coll-summary { font-size: .78rem; color: var(--cr3); text-align: center; }
.coll-summary strong { color: var(--gd2); }

/* ── Classement ── */
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--cr6); border: 1px solid rgba(255,248,240,.05);
  transition: background .2s;
}
.lb-item:hover { background: var(--cr4); }
.lb-item.is-me { background: rgba(141,0,0,.1); border-color: rgba(141,0,0,.25); }
.lb-rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900; flex-shrink: 0;
  background: rgba(255,248,240,.06); color: var(--cr3);
}
.lb-rank.gold   { background: rgba(203,153,55,.22); color: var(--gd); }
.lb-rank.silver { background: rgba(192,192,192,.15); color: #C8C8C8; }
.lb-rank.bronze { background: rgba(176,112,58,.15);  color: #D4915A; }
.lb-pseudo { flex: 1; font-size: .85rem; font-weight: 700; color: var(--cr2); }
.lb-score  { font-size: .9rem; font-weight: 900; color: var(--gd2); }
.lb-time   { font-size: .68rem; color: var(--cr3); }
.lb-empty  { text-align: center; padding: 32px 16px; color: var(--cr3); font-size: .85rem; }

/* ── Missions ── */
.mission-list { display: flex; flex-direction: column; gap: 8px; }
.mission-item {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,248,240,.07);
  background: var(--cr6);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .2s;
}
.mission-item.done {
  background: rgba(203,153,55,.07);
  border-color: rgba(203,153,55,.2);
}
.mission-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: rgba(255,248,240,.06);
}
.mission-item.done .mission-icon { background: rgba(203,153,55,.15); }
.mission-body { flex: 1; }
.mission-label { font-size: .82rem; font-weight: 600; color: var(--cr2); margin-bottom: 2px; }
.mission-nectar { font-size: .72rem; color: var(--gd); font-weight: 700; }
.mission-check { font-size: 1.1rem; flex-shrink: 0; }
.missions-reset {
  font-size: .72rem; color: var(--cr3); text-align: center;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,248,240,.07);
}

/* ─────────────────────────────────────────────
   BADGES (panneau ou inline)
   ───────────────────────────────────────────── */
.badge-list { display: flex; flex-direction: column; gap: 6px; }
.badge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--cr6); border: 1px solid rgba(255,248,240,.05);
}
.badge-item.earned {
  background: rgba(203,153,55,.08); border-color: rgba(203,153,55,.2);
}
.badge-item.current {
  background: rgba(141,0,0,.12); border-color: rgba(141,0,0,.3);
}
.badge-icon { font-size: 1.4rem; flex-shrink: 0; }
.badge-label { flex: 1; font-size: .82rem; font-weight: 600; color: var(--cr2); }
.badge-score { font-size: .7rem; color: var(--cr3); }

/* ─────────────────────────────────────────────
   HUD (pendant le jeu)
   ───────────────────────────────────────────── */
.hud {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cr5); border: 1px solid rgba(255,248,240,.08);
  border-radius: var(--r); padding: 10px 20px; margin-bottom: 8px;
}

.hcell { text-align: center; min-width: 64px; }
.hcell-lbl {
  display: block; font-size: .6rem; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,248,240,.55); margin-bottom: 3px;
}
.hcell-val {
  display: block; font-size: 1.5rem; font-weight: 900; color: var(--gd2);
  font-variant-numeric: tabular-nums;
}
.hcell-val.urgent { color: #FF4444; animation: urgent-pulse .5s ease infinite alternate; }
@keyframes urgent-pulse { from{opacity:1} to{opacity:.6} }

/* Timer circulaire */
.timer-ring { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.timer-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.t-bg  { fill: none; stroke: rgba(255,248,240,.07); stroke-width: 4; }
.t-arc { fill: none; stroke: var(--gd); stroke-width: 4; stroke-linecap: round;
         stroke-dasharray: 175.93; stroke-dashoffset: 0;
         transition: stroke-dashoffset 1s linear, stroke .5s; }
.timer-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums;
}

/* Barres */
.progress-wrap {
  width: 100%; height: 8px;
  background: rgba(203,153,55,.08);
  border: 1px solid rgba(203,153,55,.15);
  border-radius: 50px; overflow: hidden; margin-bottom: 3px;
}
.progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--bx), var(--gd));
  transition: width .5s var(--ease-out);
  box-shadow: 0 0 8px rgba(203,153,55,.35);
}
.progress-lbl {
  font-size: .62rem; color: rgba(203,153,55,.7); text-align: right; margin-bottom: 4px;
  letter-spacing: .05em;
}
.progress-lbl.unlocked { color: var(--gd2); font-weight: 700; }

.speed-bar-wrap {
  width: 100%; height: 5px; background: var(--cr4);
  border-radius: 50px; overflow: hidden; margin-bottom: 4px;
}
.speed-bar-fill {
  height: 100%; width: 16%; border-radius: 50px;
  background: linear-gradient(90deg, var(--bx), var(--gd));
  transition: width .6s var(--ease-spring), background .5s;
}
.speed-lbl {
  font-size: .62rem; color: rgba(255,248,240,.52); text-align: right; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* Dots captures */
.cap-dots {
  display: flex; gap: 5px; justify-content: center; width: 100%; margin-bottom: 6px;
}
.cap-dot {
  flex: 1; max-width: 36px; height: 6px; border-radius: 50px;
  background: rgba(255,248,240,.09); border: 1px solid rgba(255,248,240,.07);
  transition: all .25s var(--ease-spring);
}
.cap-dot.active {
  background: linear-gradient(90deg, var(--bx), var(--gd));
  border-color: var(--gd2);
  box-shadow: 0 0 6px rgba(203,153,55,.5);
  transform: scaleY(1.6);
}

/* Achievements */
.ach-zone {
  min-height: 20px; display: flex; gap: 8px;
  flex-wrap: wrap; justify-content: center; margin-bottom: 4px;
}
.ach-badge {
  background: rgba(203,153,55,.14); border: 1px solid rgba(203,153,55,.3);
  border-radius: 50px; padding: 3px 12px;
  font-size: .72rem; color: var(--gd);
  animation: badge-pop .4s var(--ease-spring);
}
@keyframes badge-pop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }


/* ─────────────────────────────────────────────
   ARÈNE
   ───────────────────────────────────────────── */
.arena {
  position: relative; width: 100%;
  /* Responsive height : clamp entre 240px et 68vh, ratio 8/5 par défaut */
  min-height: 240px;
  height: clamp(240px, 50vw, 62vh);
  max-height: 600px;
  background: rgba(10,6,6,.97);
  border: 1px solid rgba(203,153,55,.12); border-radius: 14px; overflow: hidden;
  touch-action: manipulation; cursor: crosshair;
  box-shadow: inset 0 0 70px rgba(0,0,0,.55), 0 0 0 1px rgba(203,153,55,.07);
  /* Assure que flex: 1 ne fait pas exploser la hauteur sur desktop */
  flex-shrink: 0;
}

/* Pot capturables */
.pill-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  /* z-index élevé : au-dessus de toutes les couches décoratives (max z-index décor = 4) */
  z-index: 10; display: flex; align-items: center; justify-content: center;
}
.pot-glow {
  position: absolute; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,0,0,.45) 0%, rgba(203,153,55,.15) 45%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
  animation: pot-glow-pulse 3.2s ease-in-out infinite;
}
@keyframes pot-glow-pulse { 0%,100%{opacity:.65;transform:translate(-50%,-50%) scale(1)} 50%{opacity:1;transform:translate(-50%,-50%) scale(1.35)} }

.pot-btn {
  background: none; border: none; cursor: pointer;
  /* Hitbox élargie — améliore la réactivité clic PC et touch mobile */
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  -webkit-appearance: none; position: relative; z-index: 1;
  /* Évite les délais touch sur iOS/Android */
  touch-action: manipulation;
  /* Pas de sélection de texte parasite */
  user-select: none; -webkit-user-select: none;
  /* will-change pour préparer le GPU à l'animation de capture */
  will-change: transform;
}
.pot-btn:focus-visible { outline: 2px solid var(--gd); border-radius: 4px; }

.pot-img {
  width: 56px; height: auto;
  object-fit: contain; -webkit-user-drag: none; user-select: none;
  animation: pot-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(141,0,0,.6)) drop-shadow(0 0 32px rgba(203,153,55,.25));
  transition: filter .15s, opacity .3s;
  transform-origin: center;
}
.pot-btn:hover .pot-img {
  filter: drop-shadow(0 0 28px rgba(141,0,0,.95)) drop-shadow(0 0 56px rgba(203,153,55,.45));
}
.pot-btn.caught .pot-img { animation: catch-anim .38s var(--ease-spring) forwards !important; }
.pot-btn.miss   .pot-img { animation: miss-anim   .28s ease forwards !important; }
.pot-btn.ghost  .pot-img { opacity: .18; }

@keyframes catch-anim {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.55) rotate(14deg); }
  65%  { transform: scale(.75) rotate(-7deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes miss-anim {
  0%   { transform: scale(.9); }
  50%  { transform: scale(1.18) rotate(9deg); }
  100% { transform: scale(1); }
}

/* Taunt */
.arena-taunt {
  position: absolute; top: 10px; left: 0; right: 0; text-align: center;
  font-size: .78rem; font-style: italic; color: rgba(255,248,240,.32);
  pointer-events: none; z-index: 6; padding: 0 20px;
  letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* Particules burst */
.parts-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.burst-part {
  position: absolute; border-radius: 50%;
  opacity: 0; animation: burst-out .6s ease-out forwards;
}
@keyframes burst-out {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx),var(--ty)) scale(.15); }
}

/* Abeille décorative */
.bee-wrap {
  position: absolute; z-index: 2; pointer-events: none;
  top: 30%; left: 20%;
  transition: top 3s cubic-bezier(.45,.05,.55,.95), left 3s cubic-bezier(.45,.05,.55,.95);
}
.bee-wrap.hidden { display: none; }
.bee-svg { width: 48px; height: 36px; opacity: .5; filter: drop-shadow(0 0 5px rgba(217,130,35,.35)); }
.bee-wing-l { transform-origin: 20px 11px; animation: wing-beat .13s ease-in-out infinite alternate; }
.bee-wing-r { transform-origin: 30px 11px; animation: wing-beat .13s ease-in-out infinite alternate-reverse; }
@keyframes wing-beat { from{transform:rotate(-14deg) scaleY(1)} to{transform:rotate(-14deg) scaleY(.3)} }

/* ── Décor arène ── */
.arena-deco-bg,
.arena-rays, .arena-clouds, .arena-pollen, .arena-flowers {
  position: absolute; inset: 0; pointer-events: none;
}
.arena-deco-bg { z-index: 0; overflow: hidden; }
.arena-rays   { z-index: 1; }
.arena-clouds { z-index: 2; overflow: hidden; }
.arena-pollen { z-index: 3; overflow: hidden; }
.arena-flowers{ z-index: 4; }

/* Ruche en fond */
/* arena-hive et arena-plant définis dans la section Corrections V2 ci-dessous */

/* ── SVG décor arène — CRITIQUE : sans ce bloc, le SVG reste inline et casse le layout ── */
.arena-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.cloud { position: absolute; }
.c1 { width: 120px; top:  8%; animation: cloud-drift 36s linear infinite;         left: 105%; }
.c2 { width:  90px; top: 20%; animation: cloud-drift 28s linear infinite -12s;    left: 110%; }
.c3 { width:  70px; top: 12%; animation: cloud-drift 22s linear infinite  -7s;    left: 108%; }
/* Utilise -200% pour rester relatif à l'arène, évite le débordement sur petits écrans */
@keyframes cloud-drift { from{transform:translateX(0)} to{transform:translateX(calc(-200% - 120px))} }

.pollen-p {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,178,70,.9), rgba(203,153,55,.3));
  animation: pollen-rise linear infinite;
}
@keyframes pollen-rise {
  0%   { transform: translateY(0) rotate(0);    opacity: 0; }
  10%  { opacity: .85; }
  85%  { opacity: .6; }
  100% { transform: translateY(-200%) rotate(360deg); opacity: 0; }
}

/* Motiv game */
.game-motiv {
  min-height: 24px; text-align: center;
  font-size: .8rem; font-weight: 700; color: var(--gd); margin-top: 8px;
}

/* ─────────────────────────────────────────────
   ÉCRAN VICTOIRE
   ───────────────────────────────────────────── */
#screen-win {
  min-height: calc(100vh - 64px); justify-content: center;
  /*background:
    radial-gradient(ellipse at 50% 0%, rgba(203,153,55,.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--dk), var(--dk2));*/
}

.win-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.conf-p {
  position: absolute; animation: conf-fall linear forwards; opacity: 0;
  border-radius: 3px;
}
@keyframes conf-fall {
  0%   { opacity: 1;  transform: translateY(-20px) rotate(0); }
  100% { opacity: 0;  transform: translateY(720px) rotate(720deg); }
}

.result-card {
  width: 100%; background: var(--cr5);
  border: 1px solid rgba(255,248,240,.07);
  border-radius: var(--rlg); padding: 32px 24px;
  position: relative; overflow: hidden; text-align: center; z-index: 1;
}
.result-card::before {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,153,55,.55), transparent);
}

.win-trophy { font-size: 3.8rem; display: block; margin-bottom: 12px; animation: pot-float 2.5s ease-in-out infinite; }
.win-title { font-family: var(--ff); font-size: clamp(2rem,5vw,2.8rem); margin-bottom: 8px; }
.win-sub   { color: var(--cr2); font-size: .95rem; margin-bottom: 22px; }

.win-stats {
  display: flex; width: 100%;
  border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(255,248,240,.07); margin-bottom: 20px;
}
.win-stat {
  flex: 1; padding: 14px 8px; text-align: center;
  background: var(--cr5); border-right: 1px solid rgba(255,248,240,.06);
}
.win-stat:last-child { border-right: none; }
.ws-val { display: block; font-size: 1.3rem; font-weight: 900; color: var(--gd2); margin-bottom: 2px; }
.ws-lbl { font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cr3); }

/* ── Coffre de récompense ── */
.chest-zone {
  width: 100%; margin-bottom: 20px;
  padding: 22px 20px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(141,0,0,.14), rgba(203,153,55,.08));
  border: 1.5px solid rgba(203,153,55,.32);
  position: relative; overflow: hidden;
}
.chest-zone::before {
  content: '';
  position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,153,55,.7), transparent);
}
.chest-title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gd); margin-bottom: 14px;
}
.chest-icon-wrap {
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.chest-icon {
  font-size: 3.5rem;
  animation: chest-wobble 1.5s ease-in-out infinite;
  cursor: pointer; transition: transform .2s;
}
@keyframes chest-wobble {
  0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)}
}
.chest-sub { font-size: .82rem; color: var(--cr2); margin-bottom: 14px; line-height: 1.6; }

/* Récompense révélée */
.reward-reveal {
  padding: 16px; border-radius: 12px;
  background: rgba(203,153,55,.1); border: 1px solid rgba(203,153,55,.25);
  margin-bottom: 14px; display: none;
  animation: reward-in .5s var(--ease-spring);
}
.reward-reveal.show { display: block; }
@keyframes reward-in { from{transform:scale(.8);opacity:0} to{transform:scale(1);opacity:1} }

.reward-code {
  font-family: 'Courier New', monospace;
  font-size: 2rem; font-weight: 900; letter-spacing: .2em;
  color: var(--gd); text-shadow: 0 0 20px rgba(203,153,55,.5);
  display: block; margin-bottom: 6px;
}
.reward-detail {
  font-size: .75rem; color: var(--cr3); line-height: 1.6; margin-bottom: 12px;
}
.reward-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(203,153,55,.14); border: 1px solid rgba(203,153,55,.32);
  border-radius: 50px; padding: 8px 20px;
  color: var(--gd); font-size: .8rem; font-family: var(--fs);
  cursor: pointer; transition: background .2s; -webkit-appearance: none;
}
.reward-copy-btn:hover { background: rgba(203,153,55,.26); }

/* Coffre déjà ouvert — coupon réclamé affiché */
.chest-zone--claimed {
  background: linear-gradient(135deg, rgba(30,120,30,.1), rgba(203,153,55,.08));
  border-color: rgba(80,180,80,.3);
  text-align: center;
}
.chest-zone--claimed .chest-title { color: #6fcf6f; }
.chest-zone--claimed .reward-code {
  font-family: 'Courier New', monospace;
  font-size: 1.7rem; font-weight: 900; letter-spacing: .18em;
  color: var(--gd); text-shadow: 0 0 16px rgba(203,153,55,.45);
  display: block; margin: 8px 0;
}

/* Progression coffre (pas encore gagné) */
.win-progress-card {
  width: 100%; padding: 16px 18px; margin-bottom: 18px;
  border-radius: var(--r); background: var(--cr5);
  border: 1px solid rgba(255,248,240,.07); text-align: left;
}
.wpc-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cr3); margin-bottom: 8px; }
.wpc-bars  { display: flex; flex-direction: column; gap: 8px; }
.wpc-bar-row { display: flex; align-items: center; gap: 10px; }
.wpc-bar-label { font-size: .7rem; color: var(--cr3); min-width: 46px; flex-shrink: 0; }
.wpc-bar-track { flex: 1; height: 7px; background: rgba(255,248,240,.06); border-radius: 50px; overflow: hidden; min-width: 40px; }
.wpc-bar-fill  { height: 100%; border-radius: 50px; background: linear-gradient(90deg,var(--bx),var(--gd)); transition: width .7s var(--ease-out); }
.wpc-bar-val   {
  font-size: .7rem; font-weight: 800; color: var(--gd2);
  flex-shrink: 0; text-align: right;
  white-space: nowrap; min-width: 88px;
  line-height: 1.3;
}

/* Win CTA */
.win-cta {
  width: 100%; display: grid; grid-template-columns: 1fr;
  gap: 10px; margin-bottom: 12px;
}
@media (min-width: 480px) { .win-cta { grid-template-columns: 1fr 1fr; } }

/* Améliorer le contraste des labels stats */
.ws-lbl { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,248,240,.55); }

/* ─────────────────────────────────────────────
   ÉCRAN DÉFAITE
   ───────────────────────────────────────────── */
#screen-lose {
  min-height: calc(100vh - 64px); justify-content: center;
  background: linear-gradient(160deg, var(--dk), var(--dk2));
}
.lose-emoji { font-size: 3rem; display: block; margin-bottom: 10px; }
.lose-title { font-family: var(--ff); font-size: clamp(1.8rem,5vw,2.4rem); margin-bottom: 12px; }
.lose-stats {
  background: var(--cr5); border: 1px solid rgba(255,248,240,.07);
  border-radius: var(--rsm); padding: 12px 16px; margin-bottom: 12px;
  font-size: .87rem; color: var(--cr2); width: 100%;
}
.lose-stats span { color: var(--gd2); font-weight: 900; }
.lose-reminder {
  width: 100%; background: rgba(203,153,55,.07);
  border: 1px solid rgba(203,153,55,.18); border-radius: var(--rsm);
  padding: 10px 14px; margin-bottom: 20px;
  font-size: .8rem; color: var(--cr3); text-align: center;
}
.lose-reminder strong { color: var(--gd2); }
.lose-sub { font-size: .87rem; color: var(--cr2); margin-bottom: 20px; }

/* ─────────────────────────────────────────────
   SECTION SEO
   ───────────────────────────────────────────── */
.seo-section {
  width: 100%; max-width: 900px; padding: 32px 20px 0;
  border-top: 1px solid rgba(255,248,240,.06); margin-top: 24px;
}
.seo-card {
  background: rgba(255,248,240,.025); border: 1px solid rgba(255,248,240,.06);
  border-radius: 18px; padding: 24px;
}
.seo-h2 {
  font-family: var(--ff); font-size: 1.3rem;
  color: var(--gd2); margin-bottom: 12px;
}
.seo-h3 { font-size: .85rem; font-weight: 700; color: var(--cr2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.seo-section p { font-size: .82rem; color: var(--cr3); line-height: 1.7; margin-bottom: 12px; }
.seo-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
@media (min-width: 560px) { .seo-cols { grid-template-columns: 1fr 1fr; } }
.seo-link { color: var(--gd); text-decoration: none; border-bottom: 1px solid rgba(203,153,55,.25); }
.seo-link:hover { color: var(--gd2); }
.seo-note { font-size: .74rem !important; color: rgba(255,248,240,.22) !important; margin-bottom: 0 !important; font-style: italic; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.site-footer {
  width: 100%; max-width: 900px; padding: 20px 20px 36px;
  display: flex; align-items: center; justify-content: center;
}
.footer-copy {
  font-size: .72rem; color: var(--cr3);
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; justify-content: center; line-height: 1.6;
}
.footer-brand { font-family: var(--ff); color: var(--gd2); font-size: .78rem; letter-spacing: .04em; }
.footer-link {
  color: var(--gd); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid rgba(203,153,55,.2); transition: all .2s;
}
.footer-link:hover { color: var(--gd2); border-color: rgba(203,153,55,.5); }

/* ─────────────────────────────────────────────
   NOTIFICATIONS TOAST
   ───────────────────────────────────────────── */
.toast-stack {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px;
  z-index: 900; pointer-events: none; width: min(360px, 90vw);
}
.toast {
  background: rgba(18,10,10,.92);
  border: 1px solid rgba(203,153,55,.25);
  backdrop-filter: blur(12px);
  border-radius: 12px; padding: 10px 16px;
  font-size: .82rem; color: var(--cr2);
  display: flex; align-items: center; gap: 8px;
  animation: toast-in .35s var(--ease-spring) forwards;
  pointer-events: auto;
}
.toast.toast-gold  { border-color: rgba(203,153,55,.45); }
.toast.toast-error { border-color: rgba(200,60,60,.45); color: #FFB0A0; }
@keyframes toast-in { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.toast-out { animation: toast-out .25s ease forwards; }
@keyframes toast-out { to{transform:translateY(10px);opacity:0} }

/* ─────────────────────────────────────────────
   MODAL générique
   ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--dk2); border: 1px solid rgba(203,153,55,.2);
  border-radius: var(--rlg); padding: 28px 24px;
  max-width: 420px; width: 100%;
  position: relative; overflow: hidden;
  animation: modal-in .35s var(--ease-spring);
}
@keyframes modal-in { from{transform:scale(.85);opacity:0} to{transform:scale(1);opacity:1} }
.modal::before {
  content: '';
  position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,153,55,.6), transparent);
}
.modal-title {
  font-family: var(--ff); font-size: 1.4rem; color: var(--gd2);
  margin-bottom: 8px; text-align: center;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--cr3); font-size: 1.1rem; border-radius: 8px; padding: 4px 8px;
  transition: background .15s;
}
.modal-close:hover { background: var(--cr4); color: var(--cr); }

/* ─────────────────────────────────────────────
   PSEUDO INPUT
   ───────────────────────────────────────────── */
.pseudo-input {
  width: 100%; background: var(--cr5);
  border: 1px solid rgba(255,248,240,.15); border-radius: var(--r);
  padding: 12px 16px; font-family: var(--fs); font-size: .95rem;
  color: var(--cr); outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.pseudo-input::placeholder { color: var(--cr3); }
.pseudo-input:focus { border-color: rgba(203,153,55,.45); }
/* État erreur — pseudo manquant */
.pseudo-input.error { border-color: rgba(220,50,50,.7) !important; }

@keyframes pseudo-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
/* Arène responsive — hauteurs adaptatives par breakpoint */
/* Mobile portrait : ratio naturel contrôlé par clamp dans .arena */
@media (min-width: 480px)  { .arena { height: clamp(280px, 52vw, 420px); } .pot-img { width: 64px; } }
@media (min-width: 700px)  { .arena { height: clamp(340px, 50vw, 500px); } .pot-img { width: 72px; } }
@media (min-width: 900px)  { .arena { height: clamp(400px, 48vw, 560px); } }
@media (min-width: 1100px) { .arena { height: clamp(440px, 45vw, 600px); } }
@media (min-width: 1440px) { .arena { height: 600px; max-height: 600px; } }
@media (min-width: 1920px) { .arena { height: 600px; max-height: 600px; } }

/* ─────────────────────────────────────────────
   ACCESSIBILITÉ
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .intro-pot-img, .pot-img, .win-trophy, .pot-glow,
  .chest-icon, .conf-p { animation: none !important; }
}



/* ═══════════════════════════════════════════════════════════════
   CORRECTIONS & RESPONSIVE — version consolidée
   ═══════════════════════════════════════════════════════════════ */

/* Anti scroll horizontal global */
html, body, .page { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }

/* scene-* remplacé par arena-bg-svg */

/* ── Topbar responsive ── */

/* MOBILE (<700px) : hamburger visible, panneaux desktop cachés */
@media (max-width: 699px) {
  .topbar-panels-desktop { display: none; }
  .topbar-menu-btn { display: flex; }
}

/* DESKTOP (≥700px) : hamburger caché, panneaux directs visibles */
@media (min-width: 700px) {
  .topbar-panels-desktop { display: flex; }
  .topbar-menu-btn { display: none; }
  .topbar-drawer { display: none !important; } /* drawer inutile sur desktop */
}

@media (max-width: 360px) {
  .topbar { padding: 10px 12px 0; }
  .topbar-logo { font-size: .9rem; }
  .topbar-nectar { padding: 4px 8px; font-size: .7rem; }
  .topbar-nav { padding: 4px 7px; font-size: .65rem; }
}

/* 320px — écrans très étroits */
@media (max-width: 320px) {
  .topbar { padding: 8px 10px 0; }
  .topbar-logo { font-size: .82rem; }
  .topbar-nectar { padding: 3px 7px; font-size: .66rem; }
  .topbar-sep { display: none; }
  .hud { padding: 8px 10px; gap: 4px; }
  .hcell-val { font-size: 1.1rem; }
  .hcell { min-width: 48px; }
  .timer-ring { width: 46px; height: 46px; }
  .timer-ring svg { width: 46px; height: 46px; }
  .timer-num { font-size: .9rem; }
  .btn-prestige { height: 46px; font-size: .86rem; padding: 0 18px; }
  .arena { min-height: 200px; height: clamp(200px, 60vw, 300px); }
}

/* ── Topbar pseudo ── */
.topbar-pseudo { font-size: .65rem; color: var(--cr3); }
@media (max-width: 360px) { .topbar-pseudo { max-width: 100px; } }

/* ── Drawer position sur desktop ── */
@media (min-width: 860px) {
  .topbar-drawer { right: 0; }
}

/* ── Win trophy SVG ── */
.win-trophy-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.win-trophy-svg  { color: var(--gd2); animation: pot-float 2.5s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(203,153,55,.45)); }

/* ── Icône défaite ── */
.lose-icon-wrap  { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.lose-icon-svg   { color: var(--cr2); opacity: .55; }

/* ── Chest icon bouton ── */
.chest-icon {
  background: none; border: none; cursor: pointer; color: var(--gd2);
  animation: chest-wobble 1.5s ease-in-out infinite;
  transition: transform .2s, color .2s; padding: 8px; -webkit-appearance: none;
}
.chest-icon:hover { transform: scale(1.15) rotate(-5deg); color: var(--gd3); }
.chest-icon svg { display: block; }

/* ── Coffre déjà ouvert ── */
.chest-zone--claimed {
  background: linear-gradient(135deg, rgba(30,120,30,.1), rgba(203,153,55,.08));
  border-color: rgba(80,180,80,.3); text-align: center;
}
.chest-zone--claimed .chest-title { color: #6fcf6f; }

/* ── Mission icons — emojis par type, taille correcte ── */
/* La règle principale .mission-icon est définie plus haut (36×36px, font-size 1.2rem)
   On ajoute ici uniquement les variantes de couleur de fond par type */
.mission-icon--capture { background: rgba(141,0,0,.15); }
.mission-icon--score   { background: rgba(203,153,55,.12); }
.mission-icon--speed   { background: rgba(220,100,0,.15); }
.mission-icon--collect { background: rgba(30,100,30,.15); }
.mission-icon--perfect { background: rgba(100,60,180,.15); }
.mission-icon--session { background: rgba(255,248,240,.06); }

.mission-check {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,248,240,.06); border: 1px solid rgba(255,248,240,.1);
  font-size: .78rem; font-weight: 900; color: var(--gd2);
}
.mission-check.done { background: rgba(203,153,55,.2); border-color: rgba(203,153,55,.4); color: var(--gd); }

/* ── Leaderboard date ── */
.lb-date { font-size: .62rem; color: var(--cr3); margin-left: auto; }

/* ── Panel title avec SVG ── */
.panel-title { display: flex; align-items: center; gap: 8px; }
.panel-title svg { color: var(--gd2); }

/* ── topbar-logo override (pour topbar-brand) ── */
.topbar-logo { display: block; }

/* ── Sound SVG ── */
#sndIco { display: block; width: 15px; height: 15px; }

/* ── Nectar SVG ── */
.topbar-nectar svg { color: var(--gd2); flex-shrink: 0; }

/* ── Mobile screens ── */
@media (max-width: 500px) {
  .screen { padding: 20px 12px 50px; }
  .result-card { padding: 22px 14px; }
  .win-stats { flex-wrap: wrap; }
  .win-stat { min-width: 33%; }
  .btn-prestige { height: 50px; font-size: .92rem; padding: 0 24px; }
  .hud { padding: 10px 14px; }
  .hcell-val { font-size: 1.3rem; }
  .timer-ring { width: 54px; height: 54px; }
  .timer-ring svg { width: 54px; height: 54px; }
}

/* ── Ticker scroll fix ── */

/* ── seo section ── */
.seo-section, .site-footer { box-sizing: border-box; max-width: 1280px; overflow-x: hidden; }

/* ── Intro responsive ── */
@media (max-width: 500px) {
  .intro-sub { font-size: .88rem; }
  .goal-card { padding: 14px 16px; }
}

/* ─── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
  .intro-pot-img, .pot-img, .win-trophy-svg, .pot-glow,
  .chest-icon, .conf-p, .scene-hive animate { animation: none !important; }
}