.deck { position: absolute; left: 50%; top: 52%; width: min(74vw, 300px); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); z-index: 3; }
.card {
  position: absolute; inset: 0; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, var(--a), var(--b)); color: #fff; text-align: center; padding: 24px;
  box-shadow: 0 16px 34px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.25);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  translate: 0 calc(var(--depth, 0) * 16px); scale: calc(1 - var(--depth, 0) * .06);
  transition: translate .45s var(--ease), scale .45s var(--ease);
  animation: cardIn .5s var(--ease) both;
}
.card.return { animation: cardBack .5s var(--ease) both; }
.card .emo { font-style: normal; font-size: clamp(72px, 24vw, 104px); line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.card b { font-size: clamp(22px, 6.5vw, 28px); letter-spacing: -.02em; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.card small { position: absolute; bottom: 18px; font-size: 13px; opacity: .75; font-weight: 600; }
.stamp { position: absolute; top: 26px; font-size: 22px; font-weight: 900; letter-spacing: .08em; padding: 4px 12px; border: 3px solid; border-radius: 12px; opacity: 0; }
.stamp.like { left: 22px; color: #a8ffcf; transform: rotate(-14deg); opacity: var(--like, 0); }
.stamp.nope { right: 22px; color: #ffb0b8; transform: rotate(14deg); opacity: var(--nope, 0); }
@keyframes cardIn { from { opacity: 0; } }
@keyframes cardBack { from { transform: translate(-120vw, -40px) rotate(-28deg); opacity: 0; } }

.swipe-btns { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 28px; z-index: 3; }
.swipe-btns[hidden] { display: none; }
.sbtn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.sbtn.nope { background: linear-gradient(160deg, #ff9aa8, #e8466a); }
.sbtn.like { background: linear-gradient(160deg, #8affc4, #1fb37a); }
.sbtn:active { transform: scale(.88); }

.heroes { position: absolute; left: 0; right: 0; top: 24%; display: flex; justify-content: center; align-items: center; gap: 8px; z-index: 2; pointer-events: none; }
.heroes.fan { top: 30%; }
.heroes.solo, .heroes.pair { top: 23%; }
.hero {
  width: min(40vw, 170px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--a) 60%, white), var(--a) 55%, var(--b));
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 60px color-mix(in srgb, var(--a) 60%, transparent), 0 24px 50px rgba(0,0,0,.35);
  animation: heroIn .8s var(--ease) both, heroBob 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * 120ms), calc(var(--k) * -1s);
  transform: translateY(-50%);
}
.hero i { font-style: normal; font-size: min(24vw, 110px); line-height: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.heroes.fan .hero { width: min(30vw, 130px); margin: 0 -14px; }
.heroes.fan .hero i { font-size: min(15vw, 66px); }
.heroes.fan .hero:nth-child(1) { rotate: -12deg; } .heroes.fan .hero:nth-child(3) { rotate: 12deg; }
.heroes.fan .hero:nth-child(2) { z-index: 2; width: min(36vw, 160px); }
.heroes.pair .hero { width: min(34vw, 150px); }
.heroes.pair .hero i { font-size: min(18vw, 82px); }
.bond { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); font-size: 40px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes heroIn { from { opacity: 0; scale: .4; } }
@keyframes heroBob { 50% { translate: 0 -10px; } }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.25); } }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.confetti { position: absolute; line-height: 1; will-change: transform, opacity; }


.emoji-warm .card-size { font-size: clamp(72px, 24vw, 104px); }
.emoji-warm .hero-size { font-size: min(24vw, 110px); }

.deck.pre { opacity: 0.01; pointer-events: none; }
.deck { transition: opacity .35s var(--ease); }
.card.far { opacity: 0; pointer-events: none; }
