/* Slide 4: the swipeable wildcard fan, same look as the app's surprise deck */
.deck-wrap { flex: 1 1 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.deck {
  position: relative;
  width: 420px;
  flex: none;
  height: 300px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.deck-inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transition: transform 320ms var(--ease);
}
.deck-inner.dragging { transition: none; }

.wc {
  position: absolute;
  left: 144px;
  top: 110px;
  width: 132px;
  height: 196px;
  border: none;
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-family: var(--body);
  cursor: pointer;
  transform-origin: 50% 100%;
  opacity: 0;
}
.wc.perk { background: var(--cream); color: var(--ink); }
.wc.setback { background: var(--ink); color: var(--cream); }
.wc .kind { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.wc.perk .kind { color: var(--green); }
.wc.setback .kind { color: var(--sun); }
.wc .name { font-family: var(--display); font-size: 21px; text-transform: uppercase; line-height: 1; }
.wc .effect { font-size: 13px; line-height: 1.3; }
.wc.front { box-shadow: 0 8px 0 rgba(42, 24, 20, .35); }

.deck-dots { display: flex; gap: 6px; }
.deck-dots span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(42, 24, 20, .3);
  transition: width 250ms ease, background 250ms ease;
}
.deck-dots span.active { width: 18px; background: var(--ink); }
.deck-hint { font-size: 14px; font-weight: 500; }

/* Narrow phones: shrink the whole fan so it fits */
@media (max-width: 460px) {
  .deck { transform: scale(.66); transform-origin: 50% 50%; margin: -50px -72px; }
}
