/* Small non-interactive pile: its entire footprint is 34 x 50 px.
   Add inside .felt; data-count="0" or .is-empty switches to an empty slot. */
.draw-pile {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 34px;
  height: 50px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.draw-pile-back {
  position: absolute;
  display: block;
  box-sizing: border-box;
  left: 2px;
  top: 0;
  width: 28px;
  height: 44px;
  border: 2px solid #e5d7b1;
  border-radius: 1px;
  background: repeating-linear-gradient(45deg, #ab9873 0 2px, #c8b58c 2px 4px);
  box-shadow: 1px 2px 0 #796749, 2px 3px 0 #dfcfaa, 3px 4px 0 #173d2c99;
}
.draw-pile-back::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #e7d6aa;
}
.draw-pile-back::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: calc(50% - 1px);
  height: 2px;
  background: #dfcda4;
  box-shadow: 0 1px 0 #8a7958;
}
.draw-pile-count {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 17px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid #8b9870;
  background: #254b38;
  color: #efe3bb;
  font: 600 10px/14px var(--pixel, monospace);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.draw-pile:is([data-count='0'], .is-empty) .draw-pile-back {
  border: 1px dashed #a5b38a88;
  background: transparent;
  box-shadow: none;
}
.draw-pile:is([data-count='0'], .is-empty) .draw-pile-back::before,
.draw-pile:is([data-count='0'], .is-empty) .draw-pile-back::after {
  display: none;
}
.draw-pile:is([data-count='0'], .is-empty) .draw-pile-count {
  color: #a6b392;
  border-color: #708665;
}

.draw-flight {
  position: fixed;
  z-index: 90;
  width: 28px;
  height: 44px;
  margin: 0;
  padding: 0;
  pointer-events: none !important;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}
.draw-flight .draw-pile-back {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: 1px 2px 0 #183a2b77;
}
body.reduced-motion .draw-flight { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .draw-flight { display: none !important; }
}
@media (max-width: 600px) {
  .draw-pile { top: 18px; right: 18px; }
}
