/* Keep the original desktop cards. Mobile uses a single native swipe row. */
.character-showcase { position: relative; }
.character-carousel-controls { display: none; }
.character-portrait.portrait-3 img { width: 820%; left: -688%; top: -124%; }
.character-portrait.portrait-4 img { width: 820%; left: -491%; top: -55%; }
.character-card.mint .character-portrait { background: #edf7ec; }
.character-card.sky .character-portrait { background: #edf5fe; }
@media (max-width: 768px) {
  .character-showcase .character-grid {
    display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
    position: relative; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    border-radius: 22px; align-items: stretch;
  }
  .character-grid::-webkit-scrollbar { display: none; }
  .character-showcase .character-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .character-showcase .character-grid:focus-visible { outline: 2px solid #986111; outline-offset: 4px; }
  .character-showcase.carousel-ready .character-carousel-controls {
    display: flex; justify-content: space-between; align-items: flex-end;
    position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1.5;
    padding: 0 12px 10px; pointer-events: none;
  }
  .character-carousel-toggle, .character-carousel-dots {
    pointer-events: auto; display: inline-flex; align-items: center;
    background: #fffdf8ed; border: 1px solid #e8d9bd; border-radius: 24px;
    box-shadow: 0 2px 8px #60381912; color: #603819;
  }
  .character-carousel-toggle { min-width: 44px; min-height: 44px; justify-content: center; font-size: 15px; }
  .character-carousel-dots { padding: 0 3px; }
  .character-carousel-dot { background: transparent; min-width: 30px; min-height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; }
  .character-carousel-dot::before { content: ''; width: 8px; height: 8px; border: 1px solid #95764c; border-radius: 50%; transition: background-color 220ms, box-shadow 220ms; }
  .character-carousel-dot[aria-current="true"]::before { background: #b88022; border-color: #b88022; box-shadow: 0 0 0 3px #f2d99e; }
  .character-carousel-dot:focus-visible, .character-carousel-toggle:focus-visible { outline: 2px solid #986111; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .character-carousel-dot::before { transition: none; }
}
