.why-poker__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 14px;
}
.why-poker__score-wrap {
  position: relative;
  margin-block-start: clamp(4px, .55vw, 8px);
}
.why-poker__score {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-block-size: clamp(28px, 3vw, 43px);
  min-inline-size: 64px;
  padding: 4px 12px;
  border-radius: 7px;
  background-color: #eeefec;
  background-image:
    linear-gradient(133deg, transparent 29%, rgb(248 242 227 / 50%) 47%, transparent 62%),
    linear-gradient(133deg, #dfebe3 6%, #ebe2ed 29%, #e0ecee 62%, #e3ece4 87%);
  background-size: 190% 170%;
  background-position: 73% 22%;
  color: #153e33;
  font: var(--type-font-eyebrow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body[data-animations="playing"] .why-poker__score {
    transition: background-position .4s cubic-bezier(.2,.7,.1,1);
  }
  body[data-animations="playing"] .why-poker__score:hover {
    background-position: 32% 62%;
  }
}
.why-poker__score-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.why-poker__score-sparkles > i {
  position: absolute;
  width: 12px;
  height: 15px;
  background: #d98a00;
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
  opacity: 0;
}
.why-poker__score-sparkles > i:nth-child(1) { top: -9px; left: 12%; }
.why-poker__score-sparkles > i:nth-child(2) { top: -8px; right: 9%; width: 15px; height: 19px; background: #efa914; }
.why-poker__score-sparkles > i:nth-child(3) { top: 29%; right: -8px; width: 10px; height: 13px; }
.why-poker__score-sparkles > i:nth-child(4) { bottom: -7px; right: 20%; width: 9px; height: 12px; }
.why-poker__score-sparkles > i:nth-child(5) { bottom: -6px; left: -4px; width: 10px; height: 13px; background: #efa914; }
body[data-animations="paused"] .why-poker__score-sparkles { visibility: hidden; }
.why-poker__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  min-height: 34px;
  color: #153e33;
  font: var(--type-font-caption);
}
.why-poker__feedback p { margin: 0; }
.why-poker__controls[data-intro] .why-poker__feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.why-poker__feedback .why-poker__detail { margin-top: 4px; opacity: .82; }
.why-poker__celebration {
  flex: none;
  object-fit: contain;
}
.why-poker__celebration[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  body[data-animations="playing"] .why-poker__celebration:not([hidden]) {
    animation: why-poker-celebrate .62s both;
  }
}
@keyframes why-poker-celebrate {
  0% { opacity: 0; transform: scale(.55) rotate(-22deg); }
  52% { opacity: 1; transform: scale(1.12) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
.why-poker__controls > button {
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.why-poker__controls > button:disabled { cursor: default; }

.reasons-section[data-poker] .reason-track { position: relative; }
.why-poker__slot {
  --poker-angle: -2deg;
  --poker-face: #142f29;
  --poker-ink: #a6efd4;
  --poker-art-tone: url('assets/why-poker/tones.svg#mint');
  position: relative;
  min-width: 0;
  transform: rotate(var(--poker-angle));
  transition: transform .4s cubic-bezier(.2,.7,.1,1);
  perspective: 1050px;
}
.why-poker__slot:nth-child(even) { --poker-angle: 2deg; }
.why-poker__slot:nth-child(3) { --poker-angle: -.5deg; }
.why-poker__hint {
  position: absolute;
  grid-row: 1 / span 1;
  z-index: 3;
  inset-block-end: calc(100% + 16px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: #222523;
  font: var(--type-font-caption);
  white-space: nowrap;
  pointer-events: none;
}
.why-poker__hint[data-side] {
  inset-block-end: calc(100% + 47px);
  inset-inline-start: 14px;
  transform: none;
}
.why-poker__hint[hidden] { display: none; }
.why-poker__hint-label {
  position: relative;
  inset-block-start: 6px;
  display: block;
  padding: 6px 10px;
}
.why-poker__hint-hand {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: calc(100% + 9px);
  width: 38px;
  height: auto;
  color: #727772;
  filter: drop-shadow(0 1px 1px rgb(34 37 35 / 8%));
  transform: rotate(22deg);
}
.why-poker__hint:not([data-side]) .why-poker__hint-hand {
  inset-block-start: -8px;
  inset-inline-end: calc(100% + 1px);
  width: 30px;
  transform: rotate(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  body[data-animations="playing"] .why-poker__hint-hand {
    animation: why-poker-hint-dip 3.6s infinite;
  }
  body[data-animations="playing"] .why-poker__hint-label {
    animation: why-poker-hint-follow 3.6s infinite;
  }
}
@keyframes why-poker-hint-dip {
  0%, 24% { translate: 0 0; animation-timing-function: ease-in; }
  6% { translate: 0 8px; animation-timing-function: ease-out; }
  30% { translate: 0 6px; animation-timing-function: ease-out; }
  52%, 100% { translate: 0 0; }
}
@keyframes why-poker-hint-follow {
  0%, 6%, 25%, 30%, 57%, 100% { translate: 0 0; }
  11%, 35% { translate: 0 1.5px; animation-timing-function: ease-out; }
}
@media (max-width: 849px) {
  .reasons-section[data-poker] .reason-track { padding-block-start: 74px; }
}
.why-poker__slot[data-palette="dark"] {
  --poker-face: #292a2a;
  --poker-ink: #f2f2ee;
  --poker-art-tone: url('assets/why-poker/tones.svg#dark');
  --poker-print-tone: url('assets/why-poker/tones.svg#dark-print');
}
.why-poker__slot[data-palette="lilac"] {
  --poker-face: #e3c2d6;
  --poker-ink: #382032;
  --poker-art-tone: url('assets/why-poker/tones.svg#lilac');
}
.why-poker__slot[data-palette="cream"] {
  --poker-face: #d9dad8;
  --poker-ink: #202222;
  --poker-art-tone: url('assets/why-poker/tones.svg#cream');
}
.why-poker__slot[data-palette="blue"] {
  --poker-face: #bedced;
  --poker-ink: #16263b;
  --poker-art-tone: url('assets/why-poker/tones.svg#blue');
}

.why-poker__flip {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.35,.1,.25,1);
}
.why-poker__slot[data-open] .why-poker__flip { transform: rotateY(180deg); }
.why-poker__slot .reason-card,
.why-poker__face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
}
.why-poker__slot .reason-card { transform: none !important; }

.reasons-section:is([data-cover-finish="pearl"], [data-cover-finish="satin"]) .reason-card {
  background-position: 65% 42%;
  background-repeat: no-repeat;
}
.reasons-section[data-cover-finish="pearl"] .reason-card {
  background-size: 120% 118%;
  background-image:
    radial-gradient(ellipse at 78% 22%, rgb(255 252 230 / 31%), transparent 58%),
    radial-gradient(ellipse at 15% 82%, rgb(171 235 230 / 25%), transparent 59%),
    radial-gradient(ellipse at 85% 83%, rgb(241 186 216 / 20%), transparent 52%);
}
.reasons-section[data-cover-finish="pearl"] .reason-mint {
  background-image:
    radial-gradient(ellipse at 78% 20%, rgb(244 249 213 / 37%), transparent 60%),
    radial-gradient(ellipse at 15% 82%, rgb(99 195 209 / 23%), transparent 57%),
    radial-gradient(ellipse at 84% 78%, rgb(236 185 226 / 14%), transparent 54%);
}
.reasons-section[data-cover-finish="pearl"] .reason-dark {
  background-image:
    radial-gradient(ellipse at 78% 20%, rgb(200 178 223 / 18%), transparent 58%),
    radial-gradient(ellipse at 15% 82%, rgb(103 193 173 / 14%), transparent 56%);
}
.reasons-section[data-cover-finish="satin"] .reason-card {
  --satin-rose: rgb(250 212 238 / 23%);
  --satin-light: rgb(255 255 245 / 38%);
  --satin-aqua: rgb(155 226 235 / 24%);
  background-image: linear-gradient(138deg,
    transparent 16%, var(--satin-rose) 33%, var(--satin-light) 46%,
    var(--satin-aqua) 59%, transparent 78%);
  background-size: 155% 145%;
}
.reasons-section[data-cover-finish="satin"] .reason-cream {
  --satin-rose: rgb(222 160 201 / 18%);
  --satin-aqua: rgb(108 188 201 / 21%);
}
.reasons-section[data-cover-finish="satin"] .reason-dark {
  --satin-rose: rgb(177 132 189 / 10%);
  --satin-light: rgb(213 222 228 / 13%);
  --satin-aqua: rgb(112 194 184 / 11%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body[data-animations="playing"] .reasons-section:is([data-cover-finish="pearl"], [data-cover-finish="satin"]) .reason-card {
    transition: background-position .4s cubic-bezier(.2,.7,.1,1);
  }
  body[data-animations="playing"] .reasons-section:is([data-cover-finish="pearl"], [data-cover-finish="satin"])
    .reason-track:not([data-dragging]) .why-poker__slot:not([data-open]):hover {
    transform: translateY(-10px) rotate(0) rotateX(2deg) rotateY(-3deg);
  }
  body[data-animations="playing"] .reasons-section:is([data-cover-finish="pearl"], [data-cover-finish="satin"])
    .reason-track:not([data-dragging]) .why-poker__slot:not([data-open]):hover .reason-card {
    background-position: 45% 55%;
  }
}

.why-poker__face {
  position: relative;
  display: grid;
  grid-template: auto 1fr auto / 1fr;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  border-radius: 23px;
  background: var(--poker-face);
  color: var(--poker-ink);
  transform: rotateY(180deg);
  font-family: Georgia, serif;
}
.why-poker__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
  filter: var(--poker-print-tone, var(--poker-art-tone));
}
.why-poker__corner {
  position: relative;
  justify-self: start;
  min-width: 1.45em;
  padding: .24em .18em;
  border-radius: .3em;
  background: var(--poker-face);
  text-align: center;
  font-size: clamp(19px, 3vw, 30px);
  font-weight: 700;
  line-height: .95;
}
.why-poker__corner small { display: block; font-size: .65em; margin-top: 4px; }
.why-poker__corner:last-child { grid-row: 3; justify-self: end; transform: rotate(180deg); }

.why-poker__hit {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 23px;
  background: transparent;
  color: #153e33;
  cursor: pointer;
  touch-action: pan-y;
}
.why-poker__hit[aria-disabled="true"] { cursor: grab; }
.why-poker__slot[data-open] .why-poker__hit { color: var(--poker-ink); }
.why-poker__slot:not([data-open])[data-palette="dark"] .why-poker__hit {
  color: var(--poker-ink);
}
.why-poker__slot[data-swap] .why-poker__face::after {
  content: '↻';
  position: absolute;
  inset-block-start: 19px;
  inset-inline-end: 19px;
  font: 20px / 1 system-ui, sans-serif;
}
.why-poker__slot[data-palette="mint"][data-swap] .why-poker__face::after {
  color: #000;
}
.why-poker__slot[data-match] .why-poker__corner {
  background: color-mix(in srgb, var(--poker-face) 85%, var(--poker-ink));
}
.why-poker__grip {
  display: none;
  position: absolute;
  right: 11px;
  bottom: 11px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #101d1ac2;
  color: #f1fff9;
  font: 18px / 1 system-ui, sans-serif;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.why-poker__slot[data-open] .why-poker__grip { left: 11px; right: auto; }
@media (hover: hover) {
  body[data-animations="playing"] .why-poker__slot:hover { transform: translateY(-10px) rotate(0); }
  .why-poker__slot:hover .why-poker__grip { display: grid; }
}
@media (any-pointer: coarse) {
  .why-poker__grip { display: grid; }
}
.why-poker__slot[data-dragging] {
  z-index: 2;
  translate: var(--drag-x, 0px) var(--drag-y, 0px);
  transform: rotate(0);
  pointer-events: none;
  transition: none;
}
.why-poker__slot[data-drop] { opacity: .68; }
.reason-track[data-dragging] { cursor: grabbing; user-select: none; }
.reason-track[data-dragging] .why-poker__hit,
.reason-track[data-dragging] .why-poker__grip { cursor: grabbing; }
body[data-animations="paused"] :is(.why-poker__slot, .why-poker__flip) { transition: none; }

@media (max-width: 760px) {
  .why-poker__face, .why-poker__hit { border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .why-poker__slot, .why-poker__flip { transition: none; }
  .why-poker__score-sparkles { visibility: hidden; }
}
@media print {
  .why-poker__slot, .why-poker__slot[data-open] .why-poker__flip { transform: none; }
  .why-poker__score-wrap, .why-poker__controls, .why-poker__face, .why-poker__hit, .why-poker__grip, .why-poker__hint { display: none; }
}
