/* ─── DESIGN TOKENS ─── */
:root {
  --bg-deep:    #0e0e10;
  --bg-panel:   #17171a;
  --bg-card:    #1f1f24;
  --border:     rgba(180,150,60,0.22);
  --border-hi:  rgba(210,175,75,0.55);
  --text:       #ede8d8;
  --muted:      rgba(237,232,216,0.90);
  --gold-light: #f5d76e;
  --gold:       #d4a829;
  --gold-deep:  #9a6f10;
  --gold-glow:  rgba(212,168,41,0.35);
  --gold-grad:  linear-gradient(135deg, #f5d76e 0%, #d4a829 45%, #9a6f10 100%);
  --gold-sheen: linear-gradient(135deg, #fdeea2 0%, #d4a829 50%, #7a5308 100%);
  --panel-texture: repeating-linear-gradient(
    -45deg, transparent, transparent 3px,
    rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px
  );
  --red:   #e05252;
  --green: #4dc987;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ─── LIGHT THEME OVERRIDES ─── */
html.light {
  --bg-deep:   #e8eaf0;
  --bg-panel:  #f0f2f7;
  --bg-card:   #ffffff;
  --border:    rgba(100,80,20,0.18);
  --border-hi: rgba(160,120,30,0.45);
  --text:      #1a1a2e;
  --muted:     rgba(30,30,50,0.75);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(212,168,41,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(200,200,220,0.5) 0%, transparent 80%);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ─── NO-SCROLL LAYOUT ─── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;           /* NEVER scroll on any screen */
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(140,100,20,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(10,10,14,0.9) 0%, transparent 80%);
}

.app-wrapper {
  width: 100%;
  height: 100%;              /* fill viewport exactly */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 12px 40px;    /* bottom pad = bottom bar height */
  overflow: hidden;
  /* Allow scroll when results/welcome cards overflow */
  overflow-y: auto;
}
@media (min-width: 600px)  { .app-wrapper { padding: 5px 12px 40px; } }
@media (min-width: 900px)  { .app-wrapper { padding: 5px 12px 40px; } }

.app {
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 0;             /* allow flex child to shrink */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Allow results/welcome screens to scroll */
.app:has(.results-wrap) {
  overflow: visible;
  flex: unset;
  min-height: unset;
}
@media (min-width: 900px)  { .app { max-width: 88%; } }
@media (min-width: 1200px) { .app { max-width: 80%; } }

/* ─── HEADER ─── */
.game-header { display: none; }
@media (min-width: 900px) {
  .game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 18px;
    margin-bottom: 5px;
    background: var(--bg-panel);
    background-image: var(--panel-texture);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    gap: 16px;
    flex-shrink: 0;           /* never squish header */
  }
  .header-brand { display: flex; align-items: center; gap: 10px; }
  .header-brand img { width: 38px; height: 38px; object-fit: contain; }
  .header-brand-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
  }
  .header-meta { display: flex; align-items: center; gap: 10px; }
  .header-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    min-height: 34px;
  }
  .header-box .hearts-box { display: flex; gap: 0px; align-items: center; }
  .header-box.score-box {
    background: rgba(212,168,41,0.10);
    border-color: var(--gold);
    min-width: 76px;
  }
  .header-box.best-box {
    background: rgba(212,168,41,0.05);
    border-color: var(--gold-deep);
    font-size: 12px;
    opacity: 0.8;
  }
}
@media (max-width: 899px) { .game-header { display: none !important; } }

/* ─── LAYOUT ─── */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
@media (min-width: 900px) {
  .layout { grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
}
.panel.empty-mobile { display: none; }
@media (min-width: 900px) { .panel.empty-mobile { display: flex; } }

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  background-image: var(--panel-texture);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
/* On tablet (single column), allow left panel to scroll if content overflows */
@media (max-width: 899px) {
  .panel:first-child { overflow-y: auto; }
}
@media (min-width: 900px) { .panel { padding: 12px; } }

/* ─── SCENE IMAGE ─── */
.scene-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0a0a0d;
  flex-shrink: 0;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
/* Tablet: cap image so situation text is always visible */
@media (max-width: 899px) and (min-height: 500px) {
  .scene-box { aspect-ratio: unset; height: clamp(130px, 28vw, 240px); }
}
/* On short/mobile screens, cap the image height so content fits */
@media (max-height: 700px) {
  .scene-box { aspect-ratio: unset; height: clamp(100px, 22vh, 180px); }
}
@media (max-height: 500px) {
  .scene-box { height: clamp(80px, 18vh, 140px); }
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.img-title-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.78);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border-hi);
  white-space: nowrap;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.img-stats-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.78);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border-hi);
  white-space: nowrap;
  min-height: 32px;
}

/* ─── TIMER BAR ─── */
.timer-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.timer-bar {
  height: 100%;
  background: var(--gold-grad);
  width: 100%;
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold-glow);
}
.timer-bar.urgent {
  background: linear-gradient(135deg, #ff6b6b, #e05252);
  box-shadow: 0 0 12px rgba(224,82,82,0.6);
  animation: timerPulse 0.5s infinite alternate;
}
@keyframes timerPulse {
  from { opacity: 1; }
  to   { opacity: 0.6; }
}
.timer-bar.focus-smooth { transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

/* ─── HEARTS ─── */
.hearts-box { display: flex; gap: 5px; align-items: center; }
.life-heart {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--gold-grad);
  clip-path: path("M10 18.35l-1.2-1.1C3.67 12.8 1 10.23 1 7.08 1 4.51 3.01 2.5 5.58 2.5c1.45 0 2.84.67 3.74 1.73C10.22 3.17 11.61 2.5 13.08 2.5 15.65 2.5 17.66 4.51 17.66 7.08c0 3.15-2.67 5.72-7.46 10.17L10 18.35z");
  filter: drop-shadow(0 0 4px var(--gold-glow));
}
/* Background rouge forcé via inline style dans renderHearts() */
.heart-explode { animation: heartExplode 0.75s forwards cubic-bezier(0.175, 0.885, 0.32, 1.4); }
@keyframes heartExplode {
  0%   { transform: scale(1); }
  15%  { transform: scale(2);   filter: drop-shadow(0 0 12px rgba(224,82,82,1)) brightness(1.6); }
  45%  { transform: scale(3.8); filter: drop-shadow(0 0 24px rgba(224,82,82,1)) brightness(2.2); }
  100% { transform: scale(0) rotate(60deg); opacity: 0; }
}

/* ─── BONNE RÉPONSE — vignette verte ─── */
.gameover-overlay.correct-flash {
  animation: correctFlash 0.6s ease-out forwards;
}
@keyframes correctFlash {
  0%   { background: rgba(77,201,135,0.35); box-shadow: inset 0 0 110px rgba(77,201,135,0.65); }
  100% { background: rgba(0,0,0,0);         box-shadow: inset 0 0 0   rgba(77,201,135,0); }
}

/* ─── SÉRIE (streak ≥ 3) — vignette or ─── */
.gameover-overlay.correct-streak {
  animation: streakFlash 0.7s ease-out forwards;
}
@keyframes streakFlash {
  0%   { background: rgba(212,168,41,0.4); box-shadow: inset 0 0 140px rgba(212,168,41,0.75); }
  100% { background: rgba(0,0,0,0);        box-shadow: inset 0 0 0   rgba(212,168,41,0); }
}

/* ─── VIE PERDUE — vignette rouge + screen shake ─── */
.gameover-overlay.life-lost {
  animation: lifeLostFlash 0.7s ease-out forwards;
}
@keyframes lifeLostFlash {
  0%   { background: rgba(224,82,82,0.42); box-shadow: inset 0 0 150px rgba(224,82,82,0.85); }
  100% { background: rgba(0,0,0,0);        box-shadow: inset 0 0 0   rgba(224,82,82,0); }
}

@keyframes screenShake {
  0%   { transform: translateX(0) rotate(0); }
  10%  { transform: translateX(-14px) rotate(-1deg); }
  22%  { transform: translateX(14px)  rotate(1deg); }
  34%  { transform: translateX(-10px) rotate(-0.7deg); }
  46%  { transform: translateX(10px)  rotate(0.7deg); }
  58%  { transform: translateX(-6px)  rotate(-0.3deg); }
  70%  { transform: translateX(6px); }
  85%  { transform: translateX(-3px); }
  100% { transform: translateX(0) rotate(0); }
}
.app-wrapper.life-lost {
  animation: screenShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ─── GAME OVER — plus intense ─── */
.gameover-overlay.active {
  animation: gameoverFlash 0.7s ease-out forwards;
}
@keyframes gameoverFlash {
  0%   { background: rgba(200,0,0,0.6); box-shadow: inset 0 0 220px rgba(200,0,0,0.95); }
  100% { background: rgba(0,0,0,0);     box-shadow: none; }
}

/* ─── BRIGHTNESS PULSE wrapper ─── */
/* ⚠️ NE PAS mettre filter sur .app-wrapper : ça casse le positionnement
   de #fade-overlay (fixed) et bloque l'écran en noir.
   On anime #app à la place — les overlays fixed ne sont pas ses descendants. */
#app.correct-pulse {
  animation: correctPulse 0.4s ease forwards;
}
@keyframes correctPulse {
  0%   { filter: brightness(1); }
  35%  { filter: brightness(1.1) saturate(1.15); }
  100% { filter: brightness(1); }
}
#app.streak-pulse {
  animation: streakPulseWrapper 0.5s ease forwards;
}
@keyframes streakPulseWrapper {
  0%   { filter: brightness(1)    saturate(1); }
  30%  { filter: brightness(1.16) saturate(1.35); }
  100% { filter: brightness(1)    saturate(1); }
}

/* ─── TEXT ─── */
.text-block {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.2px;
  overflow: hidden;
}
.text-block p { margin: 4px 0 0; }
@media (min-height: 700px) { .text-block { font-size: 16px; } }
@media (min-width: 600px)  { .text-block { font-size: 17px; } }
@media (min-width: 900px)  { .text-block { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.6; } }
@media (min-width: 1200px) { .text-block { font-size: clamp(24px, 2vw, 30px); line-height: 1.65; } }
@media (min-width: 1600px) { .text-block { font-size: clamp(28px, 2.1vw, 34px); line-height: 1.7; } }

/* ─── FOCUS BUTTON ─── */
.btn-focus {
  background: rgba(212,168,41,0.07);
  border: 2px solid var(--gold);
  color: var(--gold-deep);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  animation: focusAttention 2.2s infinite ease-in-out;
  transition: all 0.3s;
  text-transform: uppercase;
}
.btn-focus:disabled {
  opacity: 0.22;
  animation: none;
  border-color: rgba(255,255,255,0.15);
  color: var(--muted);
}
@keyframes focusAttention {
  0%   { transform: scale(1); box-shadow: 0 0 0px var(--gold-glow); }
  50%  { transform: scale(1.02); box-shadow: 0 0 22px var(--gold-glow); background: rgba(212,168,41,0.17); }
  100% { transform: scale(1); box-shadow: 0 0 0px var(--gold-glow); }
}
@media (min-width: 900px)  { .btn-focus { font-size: clamp(17px, 1.5vw, 20px); padding: 13px 20px; } }
@media (min-width: 1200px) { .btn-focus { font-size: clamp(18px, 1.6vw, 22px); padding: 14px 22px; } }
@media (min-width: 1600px) { .btn-focus { font-size: clamp(20px, 1.8vw, 25px); padding: 15px 24px; } }

/* ─── ANSWERS ─── */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.answer-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
  flex-shrink: 0;
}
.answer-btn:hover:not(:disabled) {
  border-color: var(--gold-deep);
  background: rgba(212,168,41,0.1);
}
.answer-btn.correct {
  background: rgba(77,201,135,0.18) !important;
  border-color: var(--green) !important;
  color: var(--green);
  font-weight: 700;
}
.answer-btn.wrong {
  background: rgba(224,82,82,0.18) !important;
  border-color: var(--red) !important;
  color: var(--red);
  font-weight: 700;
}
@media (min-width: 600px)  { .answer-btn { font-size: 15px; } }
@media (min-width: 900px)  { .answer-btn { font-size: clamp(20px, 1.7vw, 24px); padding: 15px 20px; } }
@media (min-width: 1200px) { .answer-btn { font-size: clamp(22px, 1.9vw, 27px); padding: 17px 24px; } }
@media (min-width: 1600px) { .answer-btn { font-size: clamp(25px, 2vw, 30px); padding: 18px 26px; } }

/* ─── MAIN / SECONDARY BUTTONS ─── */
.btn-main {
  background: var(--gold-grad);
  color: #0e0e10;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--gold-glow); }
@media (min-width: 900px)  { .btn-main { font-size: clamp(20px, 1.7vw, 24px); padding: 10px 17px; } }
@media (min-width: 1200px) { .btn-main { font-size: clamp(22px, 1.9vw, 27px); padding: 10px 24px; } }
@media (min-width: 1600px) { .btn-main { font-size: clamp(24px, 2vw, 30px); padding: 10px 26px; } }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.18s;
  flex-shrink: 0;
}
.btn-secondary:hover { background: rgba(212,168,41,0.1); }
@media (min-width: 900px)  { .btn-secondary { font-size: clamp(17px, 1.5vw, 20px); padding: 14px 16px; } }
@media (min-width: 1200px) { .btn-secondary { font-size: clamp(18px, 1.6vw, 22px); } }
@media (min-width: 1600px) { .btn-secondary { font-size: clamp(20px, 1.8vw, 25px); } }

/* ─── FEEDBACK ─── */
.feedback-header {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
@media (min-width: 900px)  { .feedback-header { font-size: clamp(32px, 2.8vw, 42px); } }
@media (min-width: 1200px) { .feedback-header { font-size: clamp(38px, 3.2vw, 50px); } }
@media (min-width: 1600px) { .feedback-header { font-size: clamp(44px, 3.6vw, 58px); } }

.gold-divider {
  height: 1px;
  background: var(--gold-grad);
  opacity: 0.35;
  border-radius: 2px;
  margin: 2px 0 6px;
  flex-shrink: 0;
}

/* ─── DIFFICULTY BADGE ─── */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 3px;
  flex-shrink: 0;
}
.diff-easy   { background: rgba(77,201,135,0.15); color: var(--green); border: 1px solid rgba(77,201,135,0.3); }
.diff-medium { background: rgba(212,168,41,0.15); color: var(--gold-light); border: 1px solid rgba(212,168,41,0.3); }
.diff-hard   { background: rgba(224,82,82,0.15); color: var(--red); border: 1px solid rgba(224,82,82,0.3); }

/* ─── COUNTDOWN ─── */
.countdown-ring-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.countdown-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  min-width: 22px;
  text-align: center;
  transition: color 0.3s;
}
.countdown-number.urgent { color: var(--red); }

/* ─── RESULTS SCREEN ─── */
.results-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 16px;
}
.results-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-panel);
  background-image: var(--panel-texture);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 0 60px rgba(212,168,41,0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex-shrink: 0;
  overflow: visible;
  /* Toujours visible. Le win-splash s'affiche par-dessus puis disparaît. */
  opacity: 1;
  transform: none;
  transition: none;
}
@media (min-width: 600px) { .results-card { padding: 5px 20px; } }

/* ══════════════════════════════════════
   WIN SPLASH — overlay victoire
   ══════════════════════════════════════ */
.win-splash {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,12,0.96);
  animation: winSplashIn 0.4s ease both;
  overflow: hidden;
}
@keyframes winSplashIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.win-splash-exit {
  animation: winSplashOut 0.5s ease forwards !important;
}
@keyframes winSplashOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.05); }
}

/* Anneaux expansifs */
.win-splash-ring {
  position: absolute;
  width: clamp(160px, 48vw, 300px);
  height: clamp(160px, 48vw, 300px);
  border-radius: 50%;
  border: 1.5px solid rgba(212,168,41,0.55);
  animation: ringExpand 1.6s var(--ring-delay, 0s) ease-out infinite;
  pointer-events: none;
}
@keyframes ringExpand {
  0%   { transform: scale(0.2); opacity: 0.85; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Halo central */
.win-splash-glow {
  position: absolute;
  width: clamp(130px, 38vw, 220px);
  height: clamp(130px, 38vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,41,0.22) 0%, transparent 70%);
  animation: glowPulse 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowPulse {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.25); opacity: 1; }
}

/* Contenu */
.win-splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.win-splash-trophy {
  font-size: clamp(60px, 15vw, 90px);
  line-height: 1;
  animation: trophyDrop 0.7s 0.2s cubic-bezier(0.175,0.885,0.32,1.4) both;
  filter: drop-shadow(0 0 28px rgba(212,168,41,0.85));
}
@keyframes trophyDrop {
  from { opacity: 0; transform: translateY(-55px) scale(0.4) rotate(-12deg); }
  to   { opacity: 1; transform: translateY(0)     scale(1)   rotate(0deg); }
}

.win-splash-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(32px, 9vw, 62px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splashTextIn 0.65s 0.45s ease both;
}

.win-splash-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(26px, 7vw, 46px);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(212,168,41,0.6);
  animation: splashTextIn 0.65s 0.62s ease both;
}
.win-splash-score span { font-size: 0.55em; opacity: 0.7; font-weight: 600; }

.win-splash-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  animation: splashTextIn 0.65s 0.78s ease both;
}

@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 8px; }
  to   { opacity: 1; transform: translateY(0);    letter-spacing: 3px; }
}

/* ─── CONFETTI CANVAS ─── */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9990;
}

/* ─── SHARE BUTTON ─── */
.btn-share {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-share:hover { background: rgba(212,168,41,0.12); border-color: var(--gold); }
@media (min-width: 900px) { .btn-share { font-size: 16px; } }

/* ─── MENU BUTTON ─── */
.btn-menu {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.65;
}
.btn-menu:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hi); color: var(--text); opacity: 1; }
@media (min-width: 900px) { .btn-menu { font-size: 15px; } }

.results-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 700;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-align: center;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.results-subtitle {
  display:none;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 0;
  flex-shrink: 0;
}

.results-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
/* Shrink results image on small screens */
@media (max-height: 700px) {
  .results-img { aspect-ratio: unset; height: clamp(80px, 18vh, 150px); }
}
.results-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.results-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex-shrink: 0;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.stat-label { font-size: 10px; opacity: 0.55; text-transform: uppercase; letter-spacing: 1px; line-height: 1.3; }
.stat-value { font-size: 18px; font-weight: 900; font-family: 'Rajdhani', sans-serif; line-height: 1.2; }
@media (min-width: 500px) { .stat-value { font-size: 22px; } }

/* ─── BEST SCORE BANNER ─── */
.best-score-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.best-score-banner.new-record {
  background: rgba(212,168,41,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  animation: recordPulse 1.5s ease-in-out infinite;
}
.best-score-banner.old-record {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}
@keyframes recordPulse {
  0%,100% { box-shadow: 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 20px var(--gold-glow); }
}

/* ─── STREAK INDICATOR ─── */
.streak-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  animation: streakPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  flex-shrink: 0;
}
@keyframes streakPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ─── GAME OVER OVERLAY ─── */
.gameover-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── FADE OVERLAY ─── */
#fade-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.35s ease;
}
#fade-overlay.fade-in  { opacity: 1; }
#fade-overlay.fade-out { opacity: 0; }

/* ─── SCORE POP ─── */
.score-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  pointer-events: none;
  z-index: 8888;
  opacity: 0;
  animation: scorePop 1.1s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  text-shadow: 0 0 30px currentColor;
}
@keyframes scorePop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
  35%  { opacity: 1; transform: translate(-50%,-60%) scale(1.15); }
  70%  { opacity: 1; transform: translate(-50%,-68%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-80%) scale(0.9); }
}

/* ─── STREAK POP ─── */
.streak-pop {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  pointer-events: none;
  z-index: 8887;
  text-shadow: 0 0 20px var(--gold-glow);
  animation: streakPopAnim 1.3s ease-out forwards;
}
@keyframes streakPopAnim {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.7) translateY(0); }
  30%  { opacity: 1; transform: translateX(-50%) scale(1.1) translateY(-10px); }
  70%  { opacity: 1; transform: translateX(-50%) scale(1) translateY(-20px); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-40px); }
}

/* ─── READ SITUATION CARD ─── */
.read-card {
  background: rgba(212,168,41,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  flex-shrink: 0;
}
.read-card-icon { font-size: 24px; margin-bottom: 6px; }
.read-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 1px;
  margin-bottom: 5px;
}
@media (min-width: 900px) {
  .read-card { font-size: clamp(17px, 1.5vw, 21px); padding: 18px 22px; }
  .read-card-icon { font-size: 32px; }
  .read-card-title { font-size: clamp(20px, 1.7vw, 26px); }
}
@media (min-width: 1200px) {
  .read-card { font-size: clamp(19px, 1.6vw, 23px); }
  .read-card-title { font-size: clamp(22px, 1.9vw, 28px); }
}
@media (min-width: 1600px) {
  .read-card { font-size: clamp(22px, 1.8vw, 27px); }
  .read-card-title { font-size: clamp(25px, 2.1vw, 32px); }
}

/* ─── SCORE HERO (results) ─── */
.score-hero {
  text-align: center;
  padding: 0px 12px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.score-hero-label {
  font-size: 10px;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.score-hero-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 900;
  line-height: 1;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.score-hero-sub {
  display:none;
  font-size: 11px;
  opacity: 0.5;
  margin-top: 1px;
}

/* ─── BOTTOM BAR ─── */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(14,14,16,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-hi);
}
html.light .bottom-bar {
  background: rgba(230,232,240,0.88);
}

.bar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
  user-select: none;
}
@media (min-width: 480px) {
  .bar-btn { gap: 7px; padding: 7px 14px; font-size: 15px; }
}
html.light .bar-btn {
  background: rgba(255,255,255,0.65);
  color: var(--text);
}
.bar-btn:hover  { background: rgba(212,168,41,0.15); border-color: var(--gold); }
.bar-btn:active { transform: scale(0.96); }
.bar-btn.active { background: rgba(212,168,41,0.18); border-color: var(--gold); color: var(--gold-light); }

.bar-divider {
  width: 1px; height: 26px;
  background: var(--border-hi);
  flex-shrink: 0;
}

/* icon inside bar button */
.bar-icon { font-size: 18px; line-height: 1; }

/* ─── TUTORIAL POPUP ─── */
.tuto-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeInBack 0.2s ease;
}
@keyframes fadeInBack {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tuto-card {
  width: 100%; max-width: 520px; max-height: 85vh;
  background: var(--bg-panel);
  background-image: var(--panel-texture);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
  animation: popIn 0.22s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow: 0 0 60px rgba(212,168,41,0.2);
}
@keyframes popIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.tuto-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.tuto-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 1.5px;
  background: var(--gold-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tuto-close {
  background: none; border: 1px solid var(--border-hi);
  color: var(--muted); font-size: 18px; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.tuto-close:hover { background: rgba(255,255,255,0.08); }

.tuto-section { display: flex; flex-direction: column; gap: 6px; }
.tuto-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.tuto-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.tuto-row-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ─── EXPLANATION TEXT (feedback reason) ─── */
.explanation-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 900px)  { .explanation-text { font-size: clamp(22px, 2vw, 28px); line-height: 1.6; } }
@media (min-width: 1200px) { .explanation-text { font-size: clamp(25px, 2.2vw, 32px); line-height: 1.65; } }
@media (min-width: 1600px) { .explanation-text { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.7; } }

/* ═══════════════════════════════════════════════════
   MENU SCREEN — POLISHED
   ═══════════════════════════════════════════════════ */

/* ─── Ambient background ─── */
.menu-screen {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 16px 20px;
  overflow-y: auto;
  position: relative;
}

/* Animated radial glow behind logo */
.menu-screen::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 140vw);
  height: min(500px, 100vw);
  background: radial-gradient(ellipse at 50% 0%,
    rgba(212,168,41,0.13) 0%,
    rgba(212,168,41,0.05) 35%,
    transparent 70%
  );
  pointer-events: none;
  animation: ambientPulse 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ambientPulse {
  from { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
  to   { opacity: 1;   transform: translateX(-50%) scaleX(1.15); }
}

/* All direct children appear above the ambient */
.menu-screen > * { position: relative; z-index: 1; }

/* ─── Logo ─── */
.menu-logo-wrap {
  text-align: center;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: logoEnter 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes logoEnter {
  from { opacity: 0; transform: translateY(-28px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-logo {
  width: clamp(110px, 30vw, 190px);
  height: auto;
  display: block;
  animation:
    logoGlow 2.8s ease-in-out infinite alternate,
    logoEnter 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes logoGlow {
  from {
    filter:
      drop-shadow(0 0 10px rgba(212,168,41,0.55))
      drop-shadow(0 0 30px rgba(212,168,41,0.25));
  }
  to {
    filter:
      drop-shadow(0 0 28px rgba(245,215,110,1))
      drop-shadow(0 0 75px rgba(212,168,41,0.7))
      drop-shadow(0 0 120px rgba(212,168,41,0.35));
  }
}

.menu-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  animation: taglineEnter 0.8s 0.2s ease both;
}

@keyframes taglineEnter {
  from { opacity: 0; letter-spacing: 10px; }
  to   { opacity: 0.7; letter-spacing: 4px; }
}

/* ─── Theme section ─── */
.theme-section {
  width: 100%;
  max-width: 640px;
  animation: sectionEnter 0.55s 0.3s ease both;
}

@keyframes sectionEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.theme-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.theme-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}

/* Animated divider line that draws itself */
.theme-divider {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--border-hi) 0%, transparent 100%);
  transform-origin: left;
  animation: dividerDraw 0.6s 0.45s ease both;
}

@keyframes dividerDraw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ─── Grid ─── */
.levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .levels-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .levels-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── Level cards ─── */
.level-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  background-image: var(--panel-texture);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  text-align: center;
  user-select: none;
  min-height: 130px;
  justify-content: center;
  overflow: hidden;    /* clip the shimmer pseudo */
  transition:
    border-color 0.22s ease,
    background  0.22s ease,
    box-shadow  0.22s ease,
    transform   0.18s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* staggered entry — overridden per-card via inline style */
  animation: cardEnter 0.5s var(--card-delay, 0.35s) ease both;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer scan on hover */
.level-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(245,215,110,0.08) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}
.level-card.available:hover::after {
  transform: translateX(100%);
  transition: transform 0.45s ease;
}

/* Available */
.level-card.available {
  border-color: var(--border-hi);
  cursor: pointer;
}
.level-card.available:hover {
  border-color: var(--gold);
  background: rgba(212,168,41,0.07);
  transform: translateY(-4px);
  box-shadow:
    0 12px 36px rgba(212,168,41,0.22),
    0 0 0 1px rgba(212,168,41,0.18),
    inset 0 1px 0 rgba(245,215,110,0.12);
}
.level-card.available:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 14px rgba(212,168,41,0.18);
  transition-duration: 0.08s;
}

/* Pulsing gold border on available cards */
.level-card.available {
  animation:
    cardEnter 0.5s var(--card-delay, 0.35s) ease both,
    cardBorderPulse 3s 1.5s ease-in-out infinite;
}

@keyframes cardBorderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,41,0); }
  50%       { box-shadow: 0 0 0 3px rgba(212,168,41,0.12); }
}

/* Locked */
.level-card.locked {
  opacity: 0.35;
  cursor: not-allowed;
  animation: cardEnter 0.5s var(--card-delay, 0.35s) ease both;
}

/* Locked shimmer — "coming soon" sweep */
.level-card.locked::after {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: lockedShimmer 3.5s var(--card-delay, 0s) ease-in-out infinite;
}

@keyframes lockedShimmer {
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ─── Card internals ─── */
.level-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.level-icon {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.level-card.available:hover .level-icon {
  transform: scale(1.2) rotate(-5deg);
}

.level-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.level-best {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.75;
}

.level-status {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 50px;
  text-transform: uppercase;
}

.level-status.play {
  background: rgba(77,201,135,0.15);
  color: var(--green);
  border: 1px solid rgba(77,201,135,0.3);
  animation: statusPulse 2.5s 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.level-status.locked {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ─── Menu → Game transition flash ─── */
.level-launch-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(212,168,41,0.35) 0%,
    transparent 70%
  );
  animation: launchFlash 0.38s ease-out forwards;
}

@keyframes launchFlash {
  0%   { opacity: 0; transform: scale(0.5); }
  40%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.6); }
}


/* ─── EXIT TOAST (bouton retour mobile) ─── */
.exit-toast {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  z-index: 99999;
  white-space: nowrap;
  pointer-events: none;
  animation: shareFade 2.2s ease forwards;
}

/* ─── SHARE TOAST ANIMATION ─── */
@keyframes shareFade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}
