/* ============================================================
   Chips Party — Design system (thème clair, SaaS sobre)
   Accent vert, cartes blanches, bordures fines, coins arrondis,
   ombres très subtiles. Mobile-first, autonome (0 ressource externe).
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #f4f6f4; /* insets discrets */
  --surface-3: #eef1ee;

  /* Traits */
  --border: #e4e7e4;
  --border-strong: #d4d9d4;

  /* Texte */
  --text: #1a1e1b;
  --muted: #6a716a;
  --muted-2: #8b918b;

  /* Accent (vert) */
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-weak: #f0fdf4;
  --accent-weak-2: #dcfce7;
  --accent-border: #bbf7d0;

  /* États */
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-weak: #fef2f2;
  --danger-border: #fecaca;
  --warn: #b45309;
  --warn-weak: #fffbeb;

  /* Médailles (sobres) */
  --gold: #b7791f;
  --silver: #64748b;
  --bronze: #a3672a;

  /* Rayons */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(16, 24, 16, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 16, 0.06), 0 1px 2px rgba(16, 24, 16, 0.04);
  --shadow-lg: 0 12px 34px rgba(16, 24, 16, 0.14);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* Compat: anciens noms encore référencés en inline */
  --red: var(--danger);
  --purple: var(--accent);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Icônes SVG inline (style Lucide) */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: currentColor;
  vertical-align: middle;
}
.icon svg {
  width: 1.1em;
  height: 1.1em;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.lg svg {
  width: 1.35em;
  height: 1.35em;
}

/* Focus accessible et homogène */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100%;
  padding: calc(16px + var(--safe-t)) 16px calc(120px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loading {
  margin: auto;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.brand .logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.brand .logo svg {
  width: 18px;
  height: 18px;
}
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.who .pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.who .pill.admin {
  background: var(--accent-weak-2);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.phase-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak-2);
  flex: none;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.card h2 .icon {
  color: var(--muted);
}
.card .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 4px 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Inputs & buttons ───────────────────────────────────── */
input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder {
  color: var(--muted-2);
}
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak-2);
}
label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 2px 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease, filter 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active {
  transform: scale(0.985);
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn.secondary:hover {
  background: var(--surface-2);
}
.btn.danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn.danger:hover {
  background: var(--danger-weak);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn.ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:disabled:hover {
  background: var(--accent);
}
.btn.secondary:disabled:hover,
.btn.ghost:disabled:hover,
.btn.danger:disabled:hover {
  background: var(--surface);
}
.btn.sm {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.btn-row {
  display: flex;
  gap: 10px;
}

.linkish {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
}
.linkish:hover {
  color: var(--danger);
}

/* ── Players list ───────────────────────────────────────── */
.players {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 56px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-hover);
  background: var(--accent-weak-2);
  flex: none;
}
.player-row .name {
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.badge.ok {
  background: var(--accent-weak-2);
  color: var(--accent-hover);
}
.badge.wait {
  background: var(--surface-3);
  color: var(--muted);
}
.badge.score {
  background: var(--accent-weak-2);
  color: var(--accent-hover);
  font-size: 13px;
}

/* ── Chip guess cards (grille) ──────────────────────────── */
.chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.chip-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  flex: none;
}
.chip-title {
  font-weight: 600;
  font-size: 15px;
}
.flavor-pick {
  width: 100%;
  min-height: 50px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.flavor-pick:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.flavor-pick.filled {
  border-color: var(--accent-border);
  background: var(--accent-weak);
  color: var(--text);
  font-weight: 600;
}
.flavor-pick .chev {
  color: var(--muted-2);
}
.flavor-pick:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.joker-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.joker {
  flex: 1;
  min-width: 130px;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.joker .icon {
  color: var(--muted);
}
.joker:hover {
  background: var(--surface-2);
}
.joker.active {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent-hover);
}
.joker.active .icon {
  color: var(--accent);
}
.joker.steal.active {
  border-color: var(--danger);
  background: var(--danger-weak);
  color: var(--danger);
}
.joker.steal.active .icon {
  color: var(--danger);
}
.joker:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.joker:disabled:hover {
  background: var(--surface);
}

/* Note explicative sous un joker actif */
.steal-target {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.steal-target .icon {
  margin-top: 1px;
  color: var(--muted);
  flex: none;
}
.steal-target.warn {
  background: var(--danger-weak);
  border-color: var(--danger-border);
  color: var(--danger-hover);
}
.steal-target.warn .icon {
  color: var(--danger);
}

/* reveal state on chip card */
.chip-card.revealed {
  border-color: var(--accent-border);
}
.chip-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
}
.chip-result .icon {
  flex: none;
}
.chip-result.correct {
  color: var(--accent-hover);
}
.chip-result.wrong {
  color: var(--danger);
}
.truth {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.truth b {
  color: var(--text);
  font-weight: 700;
}

/* ── Tokens indicator ───────────────────────────────────── */
.tokens {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tokens span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.tokens span .icon {
  color: var(--muted);
}
.tokens b {
  color: var(--text);
  font-weight: 700;
}

/* ── Sticky bottom action bar ───────────────────────────── */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(
    180deg,
    rgba(245, 247, 245, 0),
    var(--bg) 45%
  );
  z-index: 30;
}
.actionbar-inner {
  max-width: 600px;
  margin: 0 auto;
}
.actionbar .btn {
  box-shadow: var(--shadow);
}

/* ── Scoreboard ─────────────────────────────────────────── */
.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.score-row.me {
  border-color: var(--accent-border);
  background: var(--accent-weak);
}
.rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  flex: none;
}
.rank.gold {
  color: var(--gold);
  background: #fdf6e3;
}
.rank.silver {
  color: var(--silver);
  background: #f1f5f9;
}
.rank.bronze {
  color: var(--bronze);
  background: #f7efe6;
}
.score-row .name {
  font-weight: 600;
  font-size: 15px;
}
.score-row .pts {
  font-weight: 700;
  font-size: 19px;
  color: var(--accent-hover);
}
.score-row .detail {
  font-size: 12px;
  color: var(--muted);
}

/* ── Admin tabs ─────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  min-height: 42px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ftag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 8px 6px 13px;
  font-weight: 600;
  font-size: 14px;
}
.ftag button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  border-radius: 50%;
}
.ftag button:hover {
  background: var(--danger-weak);
  color: var(--danger);
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 8px;
}
.admin-chip .num {
  font-weight: 700;
  color: var(--text);
  width: 34px;
  flex: none;
  font-size: 14px;
}
.admin-chip select {
  flex: 1;
  padding: 10px 12px;
  font-size: 15px;
}
.admin-chip .rev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent-hover);
  font-weight: 600;
  white-space: nowrap;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.hint .icon {
  margin-top: 1px;
  flex: none;
}
.hint.warn {
  color: var(--warn);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-num {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.field-num label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 5px;
}
.field-num input {
  background: var(--surface);
}

/* ── Bottom sheet ───────────────────────────────────────── */
.sheet.hidden,
.reveal-overlay.hidden,
.toast.hidden {
  display: none;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 22, 0.32);
  backdrop-filter: blur(2px);
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-b);
  animation: sheetUp 0.22s ease;
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.sheet-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.sheet-close {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.sheet-close:hover {
  background: var(--surface-3);
  color: var(--text);
}
.sheet-body {
  overflow-y: auto;
  padding: 10px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  padding: 15px 16px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sheet-opt:hover {
  background: var(--surface-2);
}
.sheet-opt .icon {
  color: var(--accent);
  opacity: 0;
}
.sheet-opt.selected {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent-hover);
  font-weight: 600;
}
.sheet-opt.selected .icon {
  opacity: 1;
}

/* ── Reveal animation ───────────────────────────────────── */
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(24, 32, 26, 0.55);
  backdrop-filter: blur(3px);
  perspective: 1200px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.reveal-card {
  width: min(76vw, 300px);
  height: min(76vw, 300px);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 1.2, 0.5, 1);
}
.reveal-card.flip {
  transform: rotateY(180deg);
}
.reveal-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  text-align: center;
}
.reveal-front {
  background: var(--surface);
  border: 1px solid var(--border);
}
.reveal-front .reveal-suspense {
  font-size: 68px;
  font-weight: 800;
  color: var(--border-strong);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
.reveal-num,
.reveal-num-sm {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 13px;
}
.reveal-num {
  font-size: 14px;
}
.reveal-hint {
  color: var(--muted);
  font-size: 14px;
}
.reveal-back {
  background: var(--accent);
  transform: rotateY(180deg);
  border: 1px solid var(--accent-hover);
}
.reveal-back .reveal-num-sm {
  color: rgba(255, 255, 255, 0.85);
}
.reveal-flavor {
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-transform: capitalize;
}

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  background: #1e2420;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
}
.toast.err {
  background: var(--danger);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
  font-size: 14px;
}

/* ── Bandeau réseau (offline / reconnexion) ─────────────── */
.netbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: calc(6px + var(--safe-t)) 6px 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Bandeau des goûts possibles (référence, pendant les choix) ── */
.flavor-ref {
  position: sticky;
  top: calc(var(--safe-t) + 4px);
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}
.flavor-ref .lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.flavor-ref .list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.flavor-ref .rtag {
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--text);
}

/* ── Overlay de vol (victime) ───────────────────────────── */
.steal-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  background: rgba(28, 20, 20, 0.62);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
  text-align: center;
  padding: 24px;
}
.steal-overlay .rob-card {
  background: var(--surface);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
  max-width: 340px;
  width: 100%;
}
.steal-overlay .rob-emoji {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: var(--danger-weak);
  color: var(--danger);
}
.steal-overlay .rob-emoji svg {
  width: 30px;
  height: 30px;
}
.steal-overlay .rob-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 0.3px;
  margin-top: 12px;
}
.steal-overlay .rob-msg {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-top: 8px;
}
.steal-overlay .rob-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--danger);
  margin-top: 10px;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
