/* Kaincana mobile tarot drawer: scoped to Pull a Card, October 16, 2026. */
/* Desktop deck remains unchanged. Small-screen deck is a native horizontally-scrollable ribbon. */
@media (max-width: 640px) {
  .card-room { padding: 42px 16px 65px; }
  .card-room-inner { width: 100%; min-width: 0; }
  .card-room .section-heading { margin-bottom: 24px; }
  .tarot-stage {
    width: 100%; max-width: 100%; min-height: 0; margin: 8px 0 0;
    border-radius: 26px; overflow: hidden;
  }
  .deck-scroll {
    box-sizing: border-box; width: 100%; max-width: 100%;
    margin: 0; padding: 36px 0 16px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; touch-action: pan-x;
    scrollbar-width: thin; scrollbar-color: #8d6ba2 transparent;
  }
  .deck {
    box-sizing: border-box; display: flex; align-items: flex-end;
    width: max-content; min-width: 0; height: 206px;
    position: relative; margin: 0; padding: 0 26px;
    perspective: none;
  }
  .tarot-card {
    box-sizing: border-box; position: relative;
    left: auto; bottom: auto; flex: 0 0 112px;
    width: 112px; height: 186px;
    transform: none; transform-origin: center bottom;
    will-change: auto;
  }
  .tarot-card + .tarot-card { margin-left: -62px; }
  .deck:not(.locked) .tarot-card:hover,
  .deck:not(.locked) .tarot-card:focus-visible {
    transform: translateY(-18px) scale(1.04);
    z-index: 100 !important;
  }
  .deck:not(.locked) .tarot-card:focus-visible {
    outline: 2px solid #f0db9c; outline-offset: 3px;
  }
  .deck-scroll:focus-visible { outline: 2px solid #f0db9c; outline-offset: -3px; }
  .deck-scroll .tarot-card-inner { border-radius: 13px; }
  .tarot-swipe-hint {
    display: block; margin: 0; padding: 0 12px 16px;
    color: #d9cce0; font: 12px/1.5 Arial, sans-serif; letter-spacing: .02em;
  }
  .hint { margin-top: 16px; }
  .selection-layout { margin-top: 23px; padding-top: 22px; }
  .card-room, #results { scroll-margin-top: 96px; }
}
@media (min-width: 641px) { .tarot-swipe-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tarot-card, .tarot-card-inner { transition-duration: .01ms !important; }
  .deck-scroll { scroll-behavior: auto; }
}
