/* (19/11 soir) Mode turbo : fenêtre « Turbo ou normal ? » du premier donjon (js/turbo-choix.js), section des Réglages,
   ligne « Mode turbo en attente » sur les grandes cartes (js/game.js). */
.tbc-modal { background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 90, .55), rgba(3, 6, 20, .82)); animation: tbc-fond .3s ease-out; }
.tbc-modal.sortie { animation: tbc-fond-sortie .5s ease-in forwards; }
.tbc-box { width: min(860px, 95vw); max-height: 94vh; overflow-y: auto; padding: 18px 20px 14px; text-align: center;
  background: linear-gradient(180deg, #1d2250, #12153a); border: 2px solid #ffd76a; box-shadow: 0 0 0 4px rgba(255, 215, 106, .12), 0 18px 60px rgba(0, 0, 0, .6); animation: tbc-entree .45s cubic-bezier(.2, 1.4, .4, 1); }
.tbc-modal.sortie .tbc-box { animation: tbc-sortie .5s ease-in forwards; }
.tbc-titre { font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 34px; color: var(--gold, #ffd76a); text-shadow: 0 3px 0 #6b3b00; }
.tbc-sous { font-size: 17px; margin: 4px 0 12px; opacity: .92; }
.tbc-cartes { display: flex; gap: 14px; justify-content: center; }
.tbc-carte { flex: 1 1 0; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; cursor: pointer;
  background: rgba(20, 24, 54, .85); border: 2px solid #3c4478; transition: transform .15s, border-color .15s, box-shadow .15s;
  animation: tbc-carte .5s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.tbc-carte.tbc-normal { animation-delay: .12s; }
.tbc-carte.tbc-turbo { border-color: #c9a23a; }
.tbc-carte:hover, .tbc-carte:has(.btn.focus) { transform: translateY(-4px) scale(1.02); border-color: #ffd76a; box-shadow: 0 0 22px rgba(255, 215, 106, .35); }
.tbc-carte.tbc-normal:hover, .tbc-carte.tbc-normal:has(.btn.focus) { border-color: #8fb4ff; box-shadow: 0 0 22px rgba(143, 180, 255, .35); }
.tbc-carte.actuel { outline: 2px dashed rgba(255, 255, 255, .45); outline-offset: 3px; }
.tbc-carte.pris { animation: tbc-pris .5s ease-out forwards; border-color: #fff; }
.tbc-modal.sortie .tbc-carte:not(.pris) { opacity: .25; transform: scale(.94); transition: opacity .3s, transform .3s; }
.tbc-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b0f24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tbc-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbc-badge { position: absolute; left: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(10, 12, 30, .8); border: 2px solid #ffd76a; }
.tbc-normal .tbc-badge { border-color: #8fb4ff; }
.tbc-turbo .tbc-badge { animation: tbc-eclair 1.6s ease-in-out infinite; }
.tbc-nom { font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 24px; color: #ffd76a; }
.tbc-normal .tbc-nom { color: #b9d0ff; }
.tbc-txt { font-size: 15px; line-height: 1.3; min-height: 3.9em; opacity: .9; }
.tbc-btn { min-width: 70%; font-size: 18px; }
.tbc-info { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; font-size: 15px; margin-top: 10px; opacity: .92; }
.tbc-info + .tbc-info { margin-top: 4px; }
.tbc-i { flex: none; width: 8px; height: 8px; margin-top: .45em; transform: rotate(45deg); background: #ffd76a; box-shadow: 0 0 6px rgba(255, 215, 106, .7); }
@keyframes tbc-fond { from { opacity: 0; } to { opacity: 1; } }
@keyframes tbc-fond-sortie { to { opacity: 0; } }
@keyframes tbc-entree { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes tbc-sortie { to { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes tbc-carte { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes tbc-pris { 0% { transform: scale(1.02); box-shadow: 0 0 0 rgba(255, 255, 255, 0); } 35% { transform: scale(1.07); box-shadow: 0 0 40px rgba(255, 240, 180, .9); } 100% { transform: scale(1.04); box-shadow: 0 0 18px rgba(255, 240, 180, .5); } }
@keyframes tbc-eclair { 0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 106, 0); } 50% { box-shadow: 0 0 14px rgba(255, 215, 106, .9); } }
/* Téléphone à l'horizontale (peu de hauteur) : tout tient sans faire défiler */
@media (max-height: 520px) {
  .tbc-box { padding: 10px 12px 8px; }
  .tbc-titre { font-size: 24px; }
  .tbc-sous { font-size: 13px; margin: 2px 0 6px; }
  .tbc-cartes { gap: 8px; }
  .tbc-carte { padding: 6px; gap: 3px; }
  .tbc-video { width: auto; height: 32vh; }
  .tbc-nom { font-size: 18px; }
  .tbc-txt { font-size: 12px; min-height: 0; }
  .tbc-btn { font-size: 15px; padding: 4px 10px; }
  .tbc-info { font-size: 12px; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .tbc-box, .tbc-carte, .tbc-turbo .tbc-badge { animation: none; } }

/* Réglages : la section « Mode turbo » */
.tbr-box { border: 2px solid #3c4478; transition: border-color .2s, box-shadow .2s; }
.tbr-box.on { border-color: #ffd76a; box-shadow: 0 0 14px rgba(255, 215, 106, .25); }
.tbr-etat { font-size: 14px; padding: 1px 8px; border-radius: 10px; background: #2a2f55; }
.tbr-box.on .tbr-etat { background: #ffd76a; color: #3a2400; }
.tbr-l { margin-top: 3px; font-size: 14px; }
.tbr-multi { color: #ffe3a0; }
.tbr-inter { cursor: pointer; }
.tbr-inter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tbr-glissiere { position: relative; flex: none; width: 42px; height: 22px; border-radius: 11px; background: #3a3f66; transition: background .2s; }
.tbr-glissiere::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #dfe3ff; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.tbr-inter input:checked + .tbr-glissiere { background: #d9a520; }
.tbr-inter input:checked + .tbr-glissiere::after { transform: translateX(20px); background: #fff; }
.tbr-inter.focus .tbr-glissiere, .tbr-inter input:focus-visible + .tbr-glissiere { outline: 2px solid #ffd76a; outline-offset: 2px; }

/* Grandes cartes : il voulait le turbo, mais un joueur est en mode normal */
.picks-tbn { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); font-size: 18px; color: #ffe3a0; white-space: nowrap;
  background: rgba(10, 12, 30, .78); border: 1px solid #c9a23a; border-radius: 10px; padding: 4px 12px; pointer-events: none; animation: pop .3s; }

/* (25/11) Fenêtre « Contours lumineux » (js/contour-choix.js) : 3 cartes qui s'allument ou s'éteignent, puis « Valider » */
.ctc-box { width: min(1100px, 96vw); }
.ctc-carte { max-width: 340px; }
.ctc-carte.actuel { outline: none; border-color: #ffd76a; box-shadow: 0 0 20px rgba(255, 215, 106, .4); }
.ctc-carte:nth-child(2) { animation-delay: .08s; } .ctc-carte:nth-child(3) { animation-delay: .16s; }
.ctc-carte[data-ctc="attaques"] .tbc-badge { border-color: #ff6b7a; }
.ctc-carte[data-ctc="attaques"].actuel { border-color: #ff8a96; box-shadow: 0 0 20px rgba(255, 90, 110, .4); }
.ctc-bascule { transition: background .15s, transform .15s; }
.ctc-bascule[aria-pressed="true"] { animation: pop .3s; }
.ctc-ok { min-width: 220px; font-size: 20px; }
/* Téléphone debout : les cartes l'une sous l'autre, le film à gauche */
@media (max-width: 640px) {
  .ctc-cartes { flex-direction: column; gap: 8px; }
  .ctc-carte { max-width: none; display: grid; grid-template-columns: 44% 1fr; grid-template-rows: auto auto auto; column-gap: 8px; row-gap: 2px; text-align: left; padding: 6px; }
  .ctc-carte .tbc-video { grid-row: 1 / 4; }
  .ctc-carte .tbc-nom { font-size: 18px; } .ctc-carte .tbc-txt { font-size: 12px; min-height: 0; } .ctc-carte .tbc-btn { min-width: 0; font-size: 14px; padding: 3px 8px; }
  .ctc-box .tbc-titre { font-size: 26px; } .ctc-box .tbc-sous { font-size: 14px; }
}
