/* KICKOFF · Le Débat de la semaine (jeu communautaire)
   S'appuie sur tokens.css + les classes partagées de games.css (.gm-back, .gm-hero-ico,
   .gm-loading, .gx-pulse, .card, .pill). Palette rouge/or/noir, slash signature. */

.db-wrap { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 18px; }

.db-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.db-kicker { letter-spacing: .2em; }

.db-question {
  font-size: 26px; line-height: 1.08; letter-spacing: .01em;
  margin: 2px 0 2px; font-style: italic;
  text-wrap: balance;
}
.db-question::first-letter { color: var(--red-glow); }

.db-tease { font-size: 13px; line-height: 1.5; margin-top: -4px; }
.db-warn { font-size: 12px; text-align: center; letter-spacing: .02em; }

/* ---------- choix : deux camps face à face ---------- */
.db-choices { display: flex; flex-direction: column; gap: 10px; position: relative; margin: 4px 0 2px; }

.db-choice {
  position: relative; display: flex; align-items: center; gap: 14px;
  text-align: left; cursor: pointer; width: 100%;
  padding: 18px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); color: var(--txt);
  -webkit-tap-highlight-color: transparent; overflow: hidden;
  transition: transform .16s cubic-bezier(.16,1,.3,1), border-color .2s ease, box-shadow .25s ease;
  animation: koCardIn .5s cubic-bezier(.16,1,.3,1) backwards;
}
.db-choice-a { animation-delay: .04s; }
.db-choice-b { animation-delay: .12s; }
.db-choice::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(120deg, rgba(232,0,13,.20), transparent 62%);
  pointer-events: none;
}
@media (hover: hover) {
  .db-choice:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(232,0,13,.55); box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 4px 20px rgba(232,0,13,.16); }
  .db-choice:not(:disabled):hover::before { opacity: 1; }
  .db-choice:not(:disabled):hover .db-go { color: var(--red-glow); }
}
.db-choice:active { transform: scale(.98); }
.db-choice:disabled { cursor: default; }
.db-choice.is-picked { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset, var(--glow-red); }
.db-choice:disabled:not(.is-picked) { opacity: .4; }

.db-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 4px 16px rgba(232,0,13,.28);
}
.db-choice-b .db-badge { background: linear-gradient(135deg, var(--gold), #b8860b); color: #1a1300; box-shadow: 0 4px 16px rgba(244,195,59,.24); }
.db-choice-txt { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; line-height: 1.2; }
.db-go {
  flex: none; font-family: var(--disp); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted);
  transition: color .18s ease;
}

/* le VS central avec le slash rouge en fond */
.db-vs { position: relative; text-align: center; height: 4px; margin: 2px 0; }
.db-vs i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(-8deg);
  font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .12em;
  color: var(--muted); background: var(--ink);
  padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.db-vs::after {
  content: "/"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 30px;
  color: rgba(232,0,13,.18); z-index: -0;
}

/* ---------- résultats : barre A vs B ---------- */
.db-results { display: flex; flex-direction: column; gap: 12px; }
.db-legend { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; }
.db-leg { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.db-leg-b { flex-direction: row; justify-content: flex-end; text-align: right; }
.db-let {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
}
.db-leg-b .db-let { background: linear-gradient(135deg, var(--gold), #b8860b); color: #1a1300; }
.db-opt { font-size: 13px; font-weight: 700; line-height: 1.2; min-width: 0; }
.db-yours {
  flex: none; font-family: var(--disp); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; font-size: 9px;
  padding: 2px 7px; border-radius: 999px; color: var(--txt);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
}
.db-leg.is-mine .db-yours { color: var(--red-glow); border-color: rgba(232,0,13,.5); background: rgba(232,0,13,.1); }

.db-bar {
  position: relative; display: flex; height: 58px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
}
.db-fill {
  height: 100%; width: 0; display: flex; align-items: center;
  transition: width .85s cubic-bezier(.16,1,.3,1); overflow: hidden; min-width: 0;
}
.db-fill-a { justify-content: flex-start; background: linear-gradient(180deg, var(--red-glow), var(--red-deep)); }
.db-fill-b { justify-content: flex-end; background: linear-gradient(180deg, var(--gold), #b8860b); }
.db-pct {
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 22px;
  padding: 0 14px; white-space: nowrap;
}
.db-fill-a .db-pct { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.db-fill-b .db-pct { color: #1a1300; }
.db-slash {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(-8deg);
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 34px;
  color: var(--ink); text-shadow: 0 0 10px rgba(0,0,0,.5); pointer-events: none; z-index: 2;
}
.db-count {
  text-align: center; font-family: var(--disp); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted);
}

.db-verdict { text-align: center; }
.db-verdict .kicker { display: block; margin-bottom: 6px; }
.db-verdict p { font-size: 14.5px; font-weight: 700; line-height: 1.4; font-style: italic; }

.db-empty { text-align: center; padding: 26px 16px; }

@media (prefers-reduced-motion: reduce) {
  .db-choice, .db-fill { animation: none; transition: none; }
}
