/* Plouf Pop! — interface en verre dépoli, univers sous-marin unique (pas de thème clair/sombre). */

@font-face { font-family: 'FredokaLocal'; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'FredokaLocal'; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'FredokaLocal'; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Aquarium : verre nacré sur eau turquoise, accent pêche-corail au soleil */
  --deep: #0F5F86;
  --ink: #2A2F57;
  --text: #FFFFFF;
  --glass: rgba(10, 52, 90, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.45);
  --peach-a: #FFF1CC;
  --peach-b: #FFC3A0;
  --rose: #FF9EB4;
  --gold: #FFE08A;
  --violet: #B9A4FF;
  --coral: #FF9C8A;
  --shadow: 0 10px 30px rgba(6, 32, 64, 0.28);
  --font: 'FredokaLocal', 'Fredoka', ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif;
  --safe-t: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --safe-l: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
  --safe-r: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
  color-scheme: dark;
}

html, body {
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #B4F5EA, #46C6CC 45%, var(--deep)) fixed;
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

#ui { position: fixed; inset: 0; pointer-events: none; }
#ui button, #ui .card, #ui .pearls { pointer-events: auto; }

button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; }
svg { display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 17px/1 var(--font);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(10, 40, 80, 0.35);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), background 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active, .iconbtn:active, .tool:active { transform: scale(0.92); }
.btn.primary {
  color: #5B2C40;
  text-shadow: none;
  background: linear-gradient(180deg, var(--peach-a), var(--peach-b) 58%, var(--rose));
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(255, 130, 150, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -3px 0 rgba(200, 80, 110, 0.18);
}
.btn.big { flex-direction: column; gap: 4px; font-size: 28px; padding: 16px 60px 14px; }
.btn.big small { font-size: 14px; font-weight: 500; opacity: 0.8; }
.btn.wide { width: 100%; }
.breathe { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.iconbtn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1);
  padding: 0;
}
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- Écran titre ---------- */
.screen[hidden] { display: none !important; }
#title { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  padding-top: calc(var(--safe-t) + 9vh); padding-bottom: calc(var(--safe-b) + 6vh);
  padding-left: max(16px, var(--safe-l)); padding-right: max(16px, var(--safe-r)); }
.title-top, .title-bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.title-bottom { gap: 16px; }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.9; font-weight: 700; }
.logo-line { display: flex; font-size: clamp(64px, 20vw, 118px); letter-spacing: -0.01em; }
.logo-line span {
  display: inline-block;
  color: #FFFFFF;
  text-shadow: 0 3px 0 rgba(60, 150, 190, 0.55), 0 8px 24px rgba(0, 60, 110, 0.35), 0 0 40px rgba(200, 255, 250, 0.45);
  animation: bob 3.6s ease-in-out infinite;
}
.logo-line span:nth-child(2) { animation-delay: -0.4s; }
.logo-line span:nth-child(3) { animation-delay: -0.8s; }
.logo-line span:nth-child(4) { animation-delay: -1.2s; }
.logo-line span:nth-child(5) { animation-delay: -1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.logo-pop {
  margin-top: 6px;
  font-size: clamp(34px, 10vw, 56px);
  padding: 4px 22px 8px;
  border-radius: 999px;
  color: #5B2C40;
  background: linear-gradient(180deg, var(--peach-a), var(--peach-b) 60%, var(--rose));
  box-shadow: 0 10px 28px rgba(255, 130, 150, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-4deg);
  animation: popTilt 5s ease-in-out infinite;
}
@keyframes popTilt { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(3deg) scale(1.05); } }
.tagline { margin: 6px 0 0; font-size: 17px; font-weight: 500; opacity: 0.92; text-shadow: 0 1px 6px rgba(10, 50, 90, 0.4); max-width: 30ch; text-wrap: balance; }
.world { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; text-shadow: 0 1px 6px rgba(10, 50, 90, 0.5); }
.row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(var(--safe-t) + 10px) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l));
}
.lvl { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lvl-num { font-size: 22px; font-weight: 700; text-shadow: 0 1px 2px rgba(5, 35, 70, 0.6), 0 2px 10px rgba(5, 35, 70, 0.55); white-space: nowrap; }
.tier { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.tier.hard { background: rgba(255, 140, 120, 0.4); }
.tier.boss { background: rgba(150, 120, 255, 0.45); }
.tier.easy { background: rgba(140, 255, 210, 0.3); }
.pearls {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(5, 35, 70, 0.5);
  border: 1px solid var(--line); background: var(--glass);
  box-shadow: var(--shadow);
}
.pearls.bump { animation: bump 0.35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 50% { transform: scale(1.18); } }
.pearl {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFFFF 0 14%, #FFF0F5 30%, #F0D2E4 62%, #C9A6CC 100%);
  box-shadow: 0 2px 6px rgba(80, 40, 90, 0.35), inset 0 -2px 3px rgba(150, 100, 160, 0.35);
}
.pearl.sm { width: 11px; height: 11px; }
.hud-sub {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 66px);
  padding: 4px 14px; border-radius: 999px; background: var(--glass); white-space: nowrap;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; text-shadow: 0 1px 6px rgba(10, 50, 90, 0.5);
}
.mini-stars { display: flex; gap: 2px; }
.mini-stars svg { width: 15px; height: 15px; transition: opacity 0.4s, transform 0.4s; }
.mini-stars svg.off { opacity: 0.3; transform: scale(0.8); }
.hud-bottom {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 12px;
  padding: 0 max(14px, var(--safe-r)) calc(var(--safe-b) + 14px) max(14px, var(--safe-l));
}
.tool {
  position: relative;
  width: 72px; height: 66px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text);
  font-size: 11px; font-weight: 600;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), opacity 0.2s;
  padding: 0;
}
.tool svg { width: 26px; height: 26px; }
.tool[disabled] > :not(.cost) { opacity: 0.4; }
.tool[disabled] .cost { filter: saturate(0.7); }
.cost {
  position: absolute; top: -7px; right: -6px;
  display: flex; align-items: center; gap: 3px;
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 7px 2px 4px; border-radius: 999px;
  color: #5B2C40;
  background: linear-gradient(180deg, var(--peach-a), var(--peach-b));
  box-shadow: 0 3px 8px rgba(120, 50, 80, 0.3);
}
.cost.free { background: linear-gradient(180deg, #E4FFF6, #A8F0DA); color: #1E5A4A; }

/* ---------- Bulles d'info ---------- */
#tip {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 96px);
  transform: translateX(-50%);
  width: max-content; max-width: min(340px, calc(100vw - 32px));
  padding: 11px 18px; border-radius: 20px;
  font-size: 16px; font-weight: 500; text-align: center; line-height: 1.35; text-wrap: balance;
  border: 1px solid var(--line); background: rgba(40, 110, 140, 0.55);
  box-shadow: var(--shadow);
  text-shadow: 0 1px 3px rgba(10, 50, 90, 0.35);
  animation: tipIn 0.5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, -10px) scale(0.92); } }
#banner { position: fixed; left: 0; right: 0; top: 36%; display: flex; justify-content: center; padding: 0 16px; }
.banner-inner {
  padding: 14px 30px 16px; border-radius: 26px; text-align: center;
  border: 1px solid var(--line); background: rgba(40, 110, 140, 0.5);
  box-shadow: var(--shadow);
  animation: bannerIn 2.8s ease forwards;
}
.banner-inner h3 { margin: 0; font-size: 28px; font-weight: 700; text-shadow: 0 2px 10px rgba(10, 50, 90, 0.4); }
.banner-inner p { margin: 4px 0 0; font-size: 15px; font-weight: 500; opacity: 0.9; }
@keyframes bannerIn { 0% { opacity: 0; transform: scale(0.85) translateY(10px); } 14% { opacity: 1; transform: scale(1); } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04) translateY(-8px); } }
#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 100px); transform: translateX(-50%);
  width: max-content; max-width: min(340px, calc(100vw - 32px));
  padding: 10px 18px; border-radius: 18px; text-align: center;
  font-size: 15px; font-weight: 500; line-height: 1.35;
  border: 1px solid var(--line); background: rgba(20, 60, 100, 0.7);
  animation: tipIn 0.4s cubic-bezier(.2, 1.4, .4, 1);
}

/* ---------- Fenêtres ---------- */
#modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: calc(var(--safe-t) + 16px) max(16px, var(--safe-r)) calc(var(--safe-b) + 16px) max(16px, var(--safe-l));
  background: rgba(8, 34, 66, 0.38);
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}
#modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.card {
  width: min(420px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 26px 60px rgba(4, 24, 50, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: cardIn 0.5s cubic-bezier(.2, 1.35, .4, 1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(0.9); } }
.card h2 { margin: 2px 0 6px; font-size: 30px; font-weight: 700; text-wrap: balance; text-shadow: 0 2px 10px rgba(10, 50, 90, 0.35); }
.card p { margin: 6px auto; font-size: 16px; font-weight: 500; line-height: 1.45; max-width: 34ch; opacity: 0.95; text-wrap: balance; }
.card .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin: 0; }
.card .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.card .actions .row { flex-wrap: nowrap; }
.card .actions .row .btn { flex: 1; }
.card canvas { margin: 4px auto; display: block; }
.stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 10px 0 4px; }
.stars svg { width: 58px; height: 58px; opacity: 0.25; transform: scale(0.6); }
.stars svg:nth-child(2) { width: 70px; height: 70px; }
.stars svg.on { animation: starIn 0.55s cubic-bezier(.2, 1.7, .4, 1) forwards; filter: drop-shadow(0 0 12px rgba(255, 220, 120, 0.85)); }
@keyframes starIn { from { opacity: 0.25; transform: scale(0.4) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.reward { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); margin-top: 6px; }
.meta { font-size: 14px; opacity: 0.85; font-weight: 500; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 10px; margin-top: 14px; }
.dex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dex button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; border-radius: 20px;
  color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.13);
}
.dex button.locked { opacity: 0.75; font-weight: 500; }
.levels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.levels button {
  aspect-ratio: 1; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 50%;
  color: var(--text); font-size: 17px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.15);
  padding: 0;
}
.levels button.hard { box-shadow: inset 0 0 0 2px rgba(255, 150, 130, 0.8); }
.levels button.boss { box-shadow: inset 0 0 0 2px rgba(185, 164, 255, 0.95); background: rgba(150, 120, 255, 0.22); }
.levels button.current { background: linear-gradient(180deg, var(--peach-a), var(--peach-b)); color: #5B2C40; }
.levels button[disabled] { opacity: 0.32; }
.levels .st { font-size: 9px; letter-spacing: 1px; color: var(--gold); line-height: 1; min-height: 9px; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-size: 17px; font-weight: 500; }
.toggle input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); border: 1px solid var(--line); position: relative; transition: background 0.25s; cursor: pointer; margin: 0; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1); }
.toggle input:checked { background: linear-gradient(180deg, #A8F5DE, #5ED6C0); }
.toggle input:checked::after { transform: translateX(22px); }
.toggle input:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 2px; }
.small { font-size: 13px; opacity: 0.8; }

#fade { position: fixed; inset: 0; background: #0E5577; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
#fade.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .breathe, .logo-line span, .logo-pop { animation: none; }
  .card, #tip, .banner-inner { animation-duration: 0.01s; }
}

/* ---------- Menu principal ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(360px, 100%); }
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 74px; padding: 10px 6px;
  border-radius: 22px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(5, 35, 70, 0.4);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1);
}
.tile:active { transform: scale(0.93); }
.tile svg { width: 24px; height: 24px; }
.tile em {
  position: absolute; top: -8px; right: -4px;
  font-style: normal; font-size: 10px; font-weight: 700; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; color: #5B2C40;
  background: linear-gradient(180deg, var(--peach-a), var(--peach-b));
  box-shadow: 0 3px 8px rgba(120, 50, 80, 0.3); text-shadow: none;
}
#btnDaily.done em { background: linear-gradient(180deg, #E4FFF6, #A8F0DA); color: #1E5A4A; }

/* ---------- Barre des écrans carte / aquarium ---------- */
#screenbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l));
}
#screenbar[hidden] { display: none; }
.sb-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; text-shadow: 0 1px 2px rgba(5, 35, 70, 0.6), 0 2px 10px rgba(5, 35, 70, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-actions { display: flex; gap: 8px; }
.small-btn { padding: 9px 12px; font-size: 13px; }

/* ---------- Trophée débloqué ---------- */
#trophy {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(360px, calc(100vw - 32px));
  padding: 10px 18px 10px 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 241, 204, 0.97), rgba(255, 195, 160, 0.97));
  color: #5B2C40; box-shadow: 0 14px 34px rgba(120, 50, 60, 0.35);
  z-index: 40; animation: trophyIn 3.2s ease forwards;
}
#trophy[hidden] { display: none; }
.tr-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; color: #E0A23A; }
.tr-icon svg { width: 26px; height: 26px; }
.tr-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.tr-n { margin: 1px 0; font-size: 17px; font-weight: 700; }
.tr-r { margin: 0; font-size: 12px; font-weight: 500; opacity: 0.85; }
@keyframes trophyIn { 0% { opacity: 0; transform: translate(-50%, -30px) scale(0.9); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- Listes ---------- */
.trophy-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.trophy-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.trophy-row.got { background: rgba(255, 224, 138, 0.25); border-color: rgba(255, 224, 138, 0.6); }
.tr-badge { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #FFE08A; font-size: 20px; }
.trophy-row.got .tr-badge { background: #FFFFFF; }
.tr-body { flex: 1; min-width: 0; }
.tr-name { margin: 0; font-size: 15px; font-weight: 600; }
.tr-desc { margin: 2px 0 0; font-size: 12px; opacity: 0.85; }
.tr-rew { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.bar { height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #A8F5DE, #5ED6C0); }
.locked-row { opacity: 0.6; }
.need { font-size: 14px; font-weight: 700; color: var(--gold); }
.gold-badge { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #FFD24A; color: #5B3A00; vertical-align: 1px; }
.ice-demo { width: 74px; height: 96px; margin: 8px auto; border-radius: 10px 10px 34px 34px; background: linear-gradient(135deg, rgba(240, 252, 255, 0.9), rgba(190, 230, 255, 0.6)); border: 2px solid rgba(255, 255, 255, 0.9); display: grid; place-items: center; font-weight: 700; font-size: 30px; color: #3C7CC4; }

/* ---------- Panel de testeurs ---------- */
.panel-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.panel-row[hidden] { display: none; }
.panel-row .btn { display: inline-flex; align-items: center; gap: 7px; }
.panel-row svg { width: 18px; height: 18px; }
.fb { text-align: left; margin-top: 8px; }
.fb .fb-q { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; opacity: 0.9; max-width: none; }
.fb-stars { display: flex; gap: 6px; justify-content: center; }
.fb-star { font-size: 32px; line-height: 1; padding: 2px 4px; color: rgba(255, 255, 255, 0.35); background: none; border: 0; cursor: pointer; transition: transform 0.15s, color 0.15s; }
.fb-star.on { color: #FFE08A; text-shadow: 0 2px 10px rgba(255, 200, 80, 0.5); }
.fb-star:active { transform: scale(0.85); }
.fb-seg { display: flex; gap: 6px; }
.fb-opt { flex: 1; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.12); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fb-opt.on { background: linear-gradient(180deg, var(--peach-a), var(--peach-b)); color: #5B2C40; border-color: transparent; }
.fb textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 54px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 34, 66, 0.28); color: var(--text); font: inherit; font-size: 15px; }
.fb textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.fb-err { color: #FFE1C8; font-size: 14px; font-weight: 600; text-align: center; }
.card.wide { width: min(720px, 100%); text-align: left; }
.card.wide h2, .card.wide .eyebrow { text-align: center; }
.dash h3 { margin: 18px 0 6px; font-size: 18px; }
.dash .small, .dash p { max-width: none; margin: 4px 0; }
.dash-me { font-size: 15px; }
.dash-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.dash-sum .kpi { background: rgba(8, 34, 66, 0.28); border-radius: 14px; padding: 8px 6px; text-align: center; }
.dash-sum b { display: block; font-size: 18px; }
.dash-sum span { font-size: 12px; opacity: 0.8; }
.dash-table { overflow-x: auto; border-radius: 12px; background: rgba(8, 34, 66, 0.22); }
.dash table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
.dash th, .dash td { padding: 6px 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.dash th:first-child, .dash td:first-child { text-align: left; }
.dash th { font-weight: 600; opacity: 0.8; }
.dash tr.hot td { background: rgba(255, 110, 120, 0.22); }
.dash-fb { background: rgba(8, 34, 66, 0.25); border-radius: 14px; padding: 8px 12px; margin: 8px 0; }
.dash-fb .meta { font-size: 12px; opacity: 0.8; }
.dash-fb p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 420px) { .dash-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
