/* NewOrleans.com deal-a-card styles. Loaded after quiz.css (brand colors, fonts, buttons)
   and wheel.css (the background and the card face, shared with the wheel). */

/* ---------- Layout ---------- */

.dk-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 40px;
  text-align: center;
  animation: nq-in .45s var(--ease) both;
}

.dk-text { max-width: 36em; }
.dk-text .nq-eyebrow { justify-content: center; }
.dk-lede { margin: 14px auto 0; color: var(--text-muted); }

@media (min-width: 900px) {
  .dk-stage {
    min-height: 100vh;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    column-gap: clamp(32px, 5vw, 80px);
    text-align: left;
  }
  .dk-text .nq-eyebrow { justify-content: flex-start; }
  .dk-lede { margin-left: 0; }
}

.is-embedded .dk-text { padding-right: 56px; }
.is-inline .dk-stage { min-height: 0; }
.is-inline, .is-inline body { height: auto; }
.is-inline .sw-app { min-height: 0; }

.dk-table {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- The hand ---------- */

.dk-hand {
  --cw: clamp(84px, 26vw, 176px);
  position: relative;
  width: 100%;
  height: calc(var(--cw) * 1.728 + 56px);
  cursor: pointer;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}
.dk-hand[hidden] { display: none; }

.dk-card {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: var(--cw);
  aspect-ratio: 827 / 1429;
  margin-left: calc(var(--cw) / -2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--brass);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: transform;
  transition: opacity .35s var(--ease);
}
.dk-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.dk-card.is-dim { opacity: .28; }

.dk-actions { margin-top: 18px; }
.dk-actions[hidden] { display: none; }
.dk-deal { min-height: 54px; padding: 0 28px; font-size: 15px; }

/* ---------- The card face (wheel.css .sw-card, with the suit's art as its band) ---------- */

.dk-face { margin: 4px auto 0; text-align: center; }
.dk-band { height: 180px; padding: 0; overflow: hidden; }
.dk-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.dk-error { padding: 48px var(--pad-x); }
