h1 {
  margin: 0;
  font-family: var(--font-card);
  font-size: var(--text-xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ic {
  flex: none;
  vertical-align: -0.2em;
}

.wordmark {
  font-family: var(--font-card);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark a {
  text-decoration: none;
}

.wordmark::after {
  content: "\00a0♠";
  font-style: normal;
  font-size: 0.7em;
  color: var(--accent);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.hero h1 {
  font-size: var(--text-2xl);
}

.lede {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.link {
  min-height: var(--target);
  background: none;
  border: 0;
  padding: var(--space-2) 0;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link[aria-current] {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 99rem;
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 0 rgb(0 0 0 / 25%);
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

.btn--primary:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
}

.btn--primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 25%);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 3.25rem;
  font-size: var(--text-lg);
}

.btn--icon {
  width: var(--target);
  padding: 0;
}

.btn--quiet {
  border-color: transparent;
  background: none;
  color: var(--ink-soft);
}

.field__label {
  font-weight: 600;
}

.field__hint {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.field__error {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--danger);
}

.input {
  width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
}

.input--lg {
  min-height: 3.25rem;
  font-size: var(--text-lg);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.switches {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
}

.switches legend {
  padding: 0 0 var(--space-1);
}

.switch {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

.flash {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-weight: 600;
}

.page--table > .flash {
  position: absolute;
  inset: var(--space-3) auto auto 50%;
  z-index: 6;
  transform: translateX(-50%);
  animation: fade-away 0.4s 3s forwards;
}

.flash--alert {
  border-color: var(--danger);
  color: var(--danger);
}

.foot {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-3);
  border: 1px solid currentcolor;
  border-radius: 99rem;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  color: var(--ink);
}

.room__number {
  font-variant-numeric: tabular-nums;
}

.tool {
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.tool:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.tool__off,
.is-muted .tool__on {
  display: none;
}

.is-muted .tool__off {
  display: block;
}

.room[data-can-reveal="false"] [data-needs="reveal"],
.room[data-can-reset="false"] [data-needs="reset"],
.room[data-can-clear="false"] [data-needs="clear"],
.room[data-can-reveal="true"] [data-lacks="reveal"] {
  display: none;
}

/* ---------- the landing page ---------- */

.locales {
  display: flex;
  gap: var(--space-3);
}

.landing__title {
  margin-top: 2vh;
  font-size: clamp(2.5rem, min(7.4vw, 12vh), 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  animation: rise 0.7s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.landing__title em {
  color: var(--accent);
}

.landing__lede {
  margin-top: var(--space-4);
  text-wrap: balance;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  animation: rise 0.7s 0.1s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.landing__cta {
  animation: rise 0.7s 0.2s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.pokerchip--cta {
  width: 8.25rem;
  font-size: 0.9375rem;
}

.pokerchip--cta:hover {
  transform: translateY(-4px) rotate(8deg);
  box-shadow:
    0 13px 0 rgb(0 0 0 / 30%),
    0 26px 36px rgb(0 0 0 / 35%);
}

.pokerchip--join {
  --chip: var(--chip-join);
}

.modal {
  padding: 3rem var(--space-6) var(--space-6);
  border: 0;
  border-radius: 1rem;
  background: var(--surface-raised);
  color: var(--ink);
  text-align: left;
  box-shadow:
    0 0 0 6px var(--card),
    0 0 0 8px var(--accent),
    0 40px 80px -20px rgb(0 0 0 / 60%);
}

.modal[open] {
  animation: drop-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.modal::backdrop,
.namecard::backdrop,
.modal-backdrop {
  background: rgb(8 30 20 / 62%);
  backdrop-filter: blur(3px);
}

dialog.namecard {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.namecard__back {
  border-radius: 1.1rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgb(255 255 255 / 22%) 9px 10px),
    repeating-linear-gradient(-45deg, transparent 0 9px, rgb(255 255 255 / 22%) 9px 10px), var(--card-red);
  box-shadow:
    inset 0 0 0 10px var(--card),
    inset 0 0 0 12px var(--card-red),
    0 20px 40px -12px rgb(0 0 0 / 60%);
  rotate: -7deg;
  animation: drop-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.namecard__back + .namecard__back {
  rotate: 5deg;
  animation-delay: 0.06s;
}

.namecard__face {
  padding: 3.5rem var(--space-5) 3.75rem;
  border-radius: 1.1rem;
  background: var(--surface-raised);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 60%);
  animation: drop-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) 0.12s both;
}

.namecard__index {
  font-family: var(--font-card);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: var(--card-red);
}

.namecard__index em {
  display: block;
  font-style: normal;
}

.namecard__room {
  margin: 0;
  font-family: var(--font-card);
  font-size: var(--text-lg);
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}

.namecard__room small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.namecard__here {
  font-size: 0.8125rem;
  text-wrap: balance;
  color: var(--ink-soft);
}

.namecard__pile .pc {
  --w: 0.95rem;

  animation: none;
}

.input--sign {
  width: 100%;
  padding: 0 0 0.3rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-card);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
}

.input--sign::placeholder {
  color: var(--line-strong);
}

.input--sign:focus-visible {
  outline: 0;
  border-bottom-color: var(--accent);
}

.modal__head {
  padding-bottom: var(--space-4);
}

.modal__body {
  border-block: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
}

.modal__body::-webkit-scrollbar {
  width: 10px;
}

.modal__body::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface-raised);
  border-radius: 99rem;
  background: var(--line-strong);
}

.modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

.modal__title {
  margin: 0;
  font-family: var(--font-card);
  font-size: clamp(1.5rem, 5.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.landing__felt {
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 12%, var(--felt), var(--felt-deep) 60%);
  box-shadow:
    inset 0 0 0 3px rgb(255 255 255 / 16%),
    0 0 0 10px var(--rail-light),
    0 0 0 24px var(--rail),
    0 -30px 80px -20px rgb(0 0 0 / 50%);
}

.landing__fan {
  transition: rotate 0.25s ease-out;
}

.landing__slot {
  pointer-events: none;
  animation: deal-in 0.7s cubic-bezier(0.2, 1.2, 0.3, 1) calc(0.35s + var(--i) * 55ms) both;
  transition: translate 0.2s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.landing__slot:hover,
.landing__slot:focus-within {
  z-index: 2;
  translate: 0 -34px;
}

.flip {
  display: block;
  width: var(--fan-card);
  height: calc(var(--fan-card) * 1.4);
  padding: 0;
  border: 0;
  background: none;
  perspective: 900px;
  pointer-events: auto;
  cursor: pointer;
}

.flip__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.4, 1);
}

.flip[aria-pressed="true"] .flip__inner {
  transform: rotateY(180deg);
}

.flip .pc {
  --w: var(--fan-card);

  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.flip .pc i {
  display: block;
}

.flip__back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10%;
  border-radius: calc(var(--fan-card) * 0.1);
  background: var(--card-red);
  color: var(--on-felt);
  font-size: calc(var(--fan-card) * 0.125);
  font-weight: 800;
  line-height: 1.15;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  box-shadow:
    inset 0 0 0 calc(var(--fan-card) * 0.05) var(--card),
    inset 0 0 0 calc(var(--fan-card) * 0.07) var(--card-red),
    0 10px 22px -8px rgb(0 0 0 / 55%);
}

.landing__hint {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-felt);
  opacity: 0.75;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes deal-in {
  from {
    opacity: 0;
    translate: 0 60vh;
    rotate: 25deg;
  }
}

/* ---------- the table ---------- */

.felt {
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, var(--felt), var(--felt-deep));
  color: var(--on-felt);
  text-align: center;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 16%),
    inset 0 0 40px rgb(0 0 0 / 35%),
    0 0 0 6px var(--rail-light),
    0 0 0 14px var(--rail),
    0 30px 60px -18px rgb(0 0 0 / 60%);
}

.felt__label,
.felt__waiting {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.9;
}

.felt__big {
  font-family: var(--font-card);
  font-variant-numeric: lining-nums;
  font-size: clamp(3.5rem, 7vw, 5.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 2px 0 rgb(0 0 0 / 35%);
}

.felt__big--range {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  white-space: nowrap;
}

.board--agreed .felt__big {
  animation: drop-in 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) 0.3s both;
}

.felt__again {
  margin-top: var(--space-3);
  height: 2.5rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 99rem;
  background: var(--card);
  color: var(--card-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgb(0 0 0 / 30%);
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

.felt__again:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 30%);
}

.pokerchip {
  width: clamp(7.25rem, 10vw, 8.75rem);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--chip, var(--card-red)) 0 56%, var(--card) 56% 61%, transparent 61%),
    repeating-conic-gradient(var(--card) 0 15deg, var(--chip, var(--card-red)) 15deg 30deg);
  color: var(--on-felt);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 8px 0 rgb(0 0 0 / 35%),
    0 14px 24px rgb(0 0 0 / 35%);
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

.pokerchip:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgb(0 0 0 / 35%);
}

.pokerchip span {
  display: block;
}

.pokerchip small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.68em;
  letter-spacing: 0.04em;
}

.pokerchip--ready {
  animation: spin 2.4s linear infinite;
}

.pokerchip--ready span {
  animation: spin 2.4s linear infinite reverse;
}

.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
}

.stats div {
  display: flex;
  gap: var(--space-1);
}

.stats dt {
  opacity: 0.8;
}

.stats dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timer {
  position: absolute;
  inset: auto 0 12%;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.hint {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- seats ---------- */

.seat {
  color: var(--ink);
  text-align: center;
}

.seat__name {
  display: block;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: clamp(0.75rem, 1vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.presence {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.2rem;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  vertical-align: 0.08em;
}

.presence--here {
  border-color: var(--ok);
  background: var(--ok);
}

.seat--low {
  --flag: var(--low);
}

.seat--high {
  --flag: var(--high);
}

.flag {
  position: absolute;
  inset: -2rem auto auto 50%;
  z-index: 2;
  translate: -50% 0;
  padding: 0.25rem 0.45rem;
  border-radius: 99rem;
  background: var(--flag);
  color: var(--on-flag);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: drop-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.7s both;
}

/* ---------- the playing card ---------- */

.pc {
  --w: var(--seat-card);

  position: relative;
  display: inline-block;
  width: var(--w);
  height: calc(var(--w) * 1.4);
  vertical-align: top;
  border-radius: calc(var(--w) * 0.1);
  background: var(--card);
  color: var(--card-ink);
  font-family: var(--font-card);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1;
  box-shadow:
    0 1px 0 rgb(0 0 0 / 25%),
    0 8px 16px -6px rgb(0 0 0 / 55%);
  user-select: none;
}

.pc--red {
  color: var(--card-red);
}

.pc b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--w) * 0.42);
}

.pc--long b {
  font-size: calc(var(--w) * 0.32);
}

.pc b span {
  display: block;
  height: 0.72em;
  line-height: 0.72em;
}

/* Centre the ink, not the line box: trim the box to cap height and baseline. */
@supports (text-box-trim: trim-both) {
  .pc b span {
    height: auto;
    line-height: 1;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}

.pc b .ic {
  width: 1.2em;
  height: 1.2em;
}

.pc i {
  position: absolute;
  inset: calc(var(--w) * 0.08) auto auto calc(var(--w) * 0.09);
  font-size: calc(var(--w) * 0.17);
  font-style: normal;
  text-align: center;
}

.pc i em {
  display: block;
  font-size: 1.05em;
  font-style: normal;
}

.pc i.pc__br {
  inset: auto calc(var(--w) * 0.09) calc(var(--w) * 0.08) auto;
  transform: rotate(180deg);
}

.seats--close .pc i,
.seats--packed .pc i {
  display: none;
}

.pc--back {
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, rgb(255 255 255 / 22%) 5px 6px),
    repeating-linear-gradient(-45deg, transparent 0 5px, rgb(255 255 255 / 22%) 5px 6px), var(--card-red);
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.07) var(--card),
    inset 0 0 0 calc(var(--w) * 0.09) var(--card-red),
    0 8px 16px -6px rgb(0 0 0 / 55%);
  animation: deal 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.pc--none {
  border: 2px dashed var(--ink-soft);
  background: none;
  box-shadow: none;
  opacity: 0.55;
}

.pc--up {
  animation: turn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i) * 70ms) both;
}

.board--split .seat:not(.seat--low, .seat--high) .pc {
  opacity: 0.5;
  scale: 0.92;
}

.seat--low .seat__name,
.seat--high .seat__name {
  margin-top: 0.8rem;
}

.seat--low .pc--up,
.seat--high .pc--up {
  scale: 1.12;
  outline: 3px solid var(--flag);
  outline-offset: 2px;
  animation:
    turn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i) * 70ms) both,
    shake 0.7s 0.8s 1,
    ring 1.2s 1.5s infinite;
}

.board--agreed .pc--up {
  box-shadow:
    0 0 0 3px var(--gold),
    0 12px 22px -6px rgb(0 0 0 / 60%);
  animation:
    turn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i) * 70ms) both,
    wave 0.7s ease-in-out calc(0.6s + var(--i) * 90ms) 3;
}

/* ---------- the hand ---------- */

.hand__card {
  display: flex;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.hand__card .pc {
  --w: var(--hand-card);

  pointer-events: auto;
  cursor: pointer;
}

.hand__card[aria-pressed="true"] .pc {
  box-shadow:
    0 0 0 3px var(--gold),
    0 14px 24px -6px rgb(0 0 0 / 60%);
}

.hand__card:focus-visible {
  outline: none;
}

.hand__card:focus-visible .pc {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- moments ---------- */

.confetti {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  inset: 40% auto auto 50%;
  width: 10px;
  height: 16px;
  background: var(--confetti-1);
  opacity: 0;
  animation: confetti 1.9s cubic-bezier(0.12, 0.7, 0.3, 1) var(--d) forwards;
}

.confetti i:nth-child(6n + 2) {
  background: var(--confetti-2);
}

.confetti i:nth-child(6n + 3) {
  background: var(--confetti-3);
}

.confetti i:nth-child(6n + 4) {
  background: var(--confetti-4);
}

.confetti i:nth-child(6n + 5) {
  background: var(--confetti-5);
}

.confetti i:nth-child(6n) {
  background: var(--confetti-6);
}

@keyframes confetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
  }
}

@keyframes wave {
  0%,
  100% {
    translate: 0 0;
  }

  40% {
    translate: 0 -20px;
  }
}

@keyframes shake {
  0%,
  100% {
    rotate: 0deg;
  }

  15% {
    rotate: -9deg;
  }

  35% {
    rotate: 8deg;
  }

  55% {
    rotate: -5deg;
  }

  75% {
    rotate: 3deg;
  }
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 var(--flag);
  }

  100% {
    box-shadow: 0 0 0 16px transparent;
  }
}

@keyframes drop-in {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.6);
  }

  60% {
    transform: translateY(2px) scale(1.1);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.4);
  }
}

@keyframes turn {
  from {
    transform: rotateY(90deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-away {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.swatch {
  width: 5.5rem;
  padding: var(--space-5) var(--space-2) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.swatch--page {
  background: var(--surface-page);
}

.swatch--raised {
  background: var(--surface-raised);
}

.swatch--felt {
  background: var(--felt);
  color: var(--on-felt);
}

.swatch--rail {
  background: var(--rail);
  color: var(--on-felt);
}

.swatch--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.swatch--gold {
  background: var(--gold);
  color: var(--card-ink);
}

.sample-hand {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--felt);
}

.sample-hand .pc {
  --w: 3.5rem;
}

.sample-hand .pc i {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
