/* Onglets de l'écran « Partir en expédition » + CT arc-en-ciel (21/11/2026). Pixel art : liserés nets, animations en steps(). */
.oe-onglets { position: sticky; top: var(--oe-top, 44px); z-index: 1; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px; margin: 4px 0 2px;
  background: linear-gradient(rgba(10, 18, 44, .98) 80%, rgba(10, 18, 44, 0)); scrollbar-width: none; }
.oe-onglets::-webkit-scrollbar { display: none; }
.oe-onglet { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.oe-ico { font-size: 1.05em; line-height: 1; }
.oe-cts { display: inline-flex; align-items: center; margin-left: 2px; }
.oe-cts .ct-disque { width: 20px; height: 20px; margin-left: -4px; }
.oe-cts .ct-disque:first-child { margin-left: 0; }
.oe-onglet.primary .oe-cts .ct-disque { animation: oeSaute 1.4s steps(4) infinite; }
.oe-onglet.primary .oe-cts .ct-disque:nth-child(2) { animation-delay: .15s; }
.oe-onglet.primary .oe-cts .ct-disque:nth-child(3) { animation-delay: .3s; }
@keyframes oeSaute { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2px); } }
/* Quand on arrive sur une section : un petit éclat doré sur son titre */
.oe-flash { animation: oeFlash 1.1s steps(6) 1; }
@keyframes oeFlash { 0%, 100% { text-shadow: none; } 30%, 70% { text-shadow: 0 0 10px #ffe27a, 0 0 2px #fff; } }

/* La CT arc-en-ciel : le disque gris, un dégradé qui glisse par-dessus, découpé à la forme du disque */
.ct-arc { position: relative; display: inline-block; width: 32px; height: 32px; vertical-align: middle; flex: none; isolation: isolate; }
.ct-arc.gros { width: 48px; height: 48px; }
.ct-arc .ct-disque { width: 100%; height: 100%; display: block; filter: grayscale(1) brightness(1.4) contrast(.85) saturate(0); }
.ct-arc::after { content: ''; position: absolute; inset: 0; mix-blend-mode: color; pointer-events: none;
  background: linear-gradient(120deg, #ff3b3b 0%, #ffb01f 8%, #ffe82e 16%, #3fe06a 25%, #2ec8ff 33%, #6a5bff 41%, #ff3b3b 50%, #ffb01f 58%, #ffe82e 66%, #3fe06a 75%, #2ec8ff 83%, #6a5bff 91%, #ff3b3b 100%) 0 0 / 200% 100%;
  -webkit-mask: url(assets/ui/ct/normal.png) center / 100% 100% no-repeat; mask: url(assets/ui/ct/normal.png) center / 100% 100% no-repeat;
  animation: ctArcGlisse 3.2s steps(16) infinite; }
@keyframes ctArcGlisse { to { background-position: 100% 0; } }
.chip .ct-arc, .btn .ct-arc, h3 .ct-arc { width: 24px; height: 24px; }
.oe-cts .ct-arc { width: 22px; height: 22px; }
.ct-dg-tete .ct-arc.gros { width: 36px; height: 36px; animation: ctFlotte 1.8s steps(4) infinite; }
@media (prefers-reduced-motion: reduce) { .ct-arc::after, .oe-onglet.primary .oe-cts .ct-disque, .oe-flash { animation: none; } }
/* Écran étroit : les onglets en grille 2 x 2, tous visibles sans défiler, avec les CT du jour */
@media (max-width: 560px) {
  .oe-onglets { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 4px; padding: 4px 2px; }
  .oe-onglet { min-width: 0; justify-content: center; padding: 3px 4px; gap: 4px; }
  .oe-onglet .oe-nom { font-size: .85em; white-space: nowrap; }
  .oe-onglet .oe-ico img, .oe-onglet .oe-ico svg { width: 16px; height: 16px; }
  .oe-cts .ct-disque { width: 16px; height: 16px; margin-left: -3px; }
  .oe-cts .ct-arc { width: 18px; height: 18px; }
}
/* Les cartes de donjon tiennent dans la largeur : 2 colonnes qui rétrécissent, 1 seule sur très petit écran */
.dep-modal .dungeons { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.dep-modal .dungeons > .dg { min-width: 0; }
@media (max-width: 560px) { .dep-modal .dungeons { grid-template-columns: 1fr; } }
.dep-box { overflow-x: hidden; } /* la rangée d'onglets défile seule de côté ; la fenêtre ne glisse jamais de côté */
