/* A vertical lift plays the card; horizontal touch movement keeps hand scrolling. */
.duel-layout .hand .game-card:is([data-action="hand"],[data-action="o-hand"]) {
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.duel-layout .hand .game-card:is([data-action="hand"],[data-action="o-hand"]) img { -webkit-user-drag: none; }
.card-is-dragging, .card-is-dragging * { cursor: grabbing !important; }
.card-is-dragging .hand { scroll-snap-type: none; }
.duel-layout .hand .game-card.card-drag-source {
  opacity: .28;
  transform: none;
  filter: saturate(.5);
}
.card-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10002;
  aspect-ratio: 2 / 3;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 18px 17px #000c);
}
.card-drag-ghost > .game-card {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  transform: rotate(-3deg);
  transition: transform .12s ease, box-shadow .12s ease;
  opacity: 1;
  filter: none;
  box-shadow: 0 4px 0 #020705, 0 0 0 2px #c4ff36, 0 0 26px #c4ff3645;
}
.card-drag-ghost.over-target > .game-card {
  transform: rotate(0) scale(1.025);
  box-shadow: 0 4px 0 #020705, 0 0 0 3px #5df5d3, 0 0 32px #5df5d390;
}
.card-drag-ghost .card-label h3 { font-size: 15px; }
.card-drag-ghost .card-type { font-size: 6px; }
.card-drag-ghost .card-stats { font-size: 11px; }
.card-drag-ghost .card-stats > span:last-child { font-size: 7px; }
.card-drag-ghost .card-cost { width: 28px; height: 30px; font-size: 16px; }
.card-drag-ghost .card-rarity { font-size: 8px; }
.card-is-dragging .duel-layout .card-drop-zone {
  outline: 2px dashed #c4ff36;
  outline-offset: 4px;
  position: relative;
  box-shadow: 0 0 22px #c4ff3635, inset 0 0 24px #c4ff361c;
  animation: none;
}
.duel-layout .board.card-drop-zone { border-radius: 9px; }
.card-is-dragging .duel-layout .card-drop-zone::after {
  content: attr(data-drop-label);
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 8;
  transform: translate(-50%,-50%);
  width: max-content;
  height: auto;
  max-width: calc(100% - 6px);
  padding: 5px 7px;
  border: 1px solid #c4ff3680;
  border-radius: 4px;
  background: #0b1711ed;
  color: #dfff96;
  font: 800 13px 'Barlow Condensed',sans-serif;
  line-height: 1;
  text-align: center;
  letter-spacing: .3px;
  pointer-events: none;
}
.card-is-dragging .duel-layout .card-drop-hover {
  outline: 3px solid #5df5d3;
  outline-offset: 3px;
  box-shadow: 0 0 30px #5df5d36b, inset 0 0 32px #5df5d335;
}
.card-is-dragging .duel-layout .card-drop-hover::after {
  color: #a8ffed;
  border-color: #5df5d3;
  background: #092e26ed;
}
.card-is-dragging .duel-layout .targetable:not(.card-drop-zone) {
  outline: none;
  box-shadow: none;
  animation: none;
}
.card-drag-hint {
  position: fixed;
  z-index: 10003;
  left: 50%;
  top: max(67px,env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  padding: 9px 13px;
  border: 1px solid #c4ff36;
  border-radius: 6px;
  background: #101b13f2;
  box-shadow: 0 5px 24px #0009;
  color: #e2ffa7;
  font: 800 16px 'Barlow Condensed',sans-serif;
  text-align: center;
  line-height: 1.1;
  letter-spacing: .5px;
  pointer-events: none;
}
@media(max-width:760px) {
  .card-drag-hint { top: 61px; font-size: 14px; padding: 8px 10px; }
  .duel-layout .card-drop-zone::after { font-size: 11px; padding: 4px; }
}
@media(prefers-reduced-motion:reduce) {
  .card-drag-ghost > .game-card { transition: none; }
}
