.card:not(.back) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d7cfbc;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, #ffffff 0 28%, transparent 29%),
    linear-gradient(145deg, #fff 0%, #fffdf7 56%, #f0ece0 100%);
  box-shadow: 0 5px 12px #13251d24, inset 0 0 0 2px #ffffffc7;
  color: var(--card-ink, #314a50);
}

.card:not(.back)::before {
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px solid #c9b77b55;
  border-radius: 5px;
  content: '';
  pointer-events: none;
}

.card[data-suit='spades'] {
  --card-ink: #28445b;
}

.card[data-suit='hearts'] {
  --card-ink: #bb3c4e;
  border-color: #dfb9b7;
}

.card[data-suit='diamonds'] {
  --card-ink: #a85432;
  border-color: #dec2a5;
}

.card[data-suit='clubs'] {
  --card-ink: #315f4c;
}

.card[data-suit='trump'] {
  --card-ink: #596a31;
  border-color: #c5af70;
  background:
    radial-gradient(circle at 50% 46%, #fffdf0 0 28%, transparent 29%),
    linear-gradient(145deg, #fffdf3, #f2e8c8 75%, #e4d49e);
}

.card[data-suit='excuse'] {
  --card-ink: #765294;
  border-color: #c8b8d9;
  background:
    radial-gradient(circle at 50% 46%, #fffdfc 0 28%, transparent 29%),
    linear-gradient(145deg, #fff, #f2edf7 75%, #e3d9eb);
}

.card .card-corner,
.card .card-bottom {
  z-index: 2;
  color: var(--card-ink, inherit);
  text-shadow: 0 1px #fff;
}

.card .card-corner {
  top: 6px;
  left: 6px;
}

.card .card-bottom {
  right: 6px;
  bottom: 6px;
}

.card-pips {
  position: absolute;
  z-index: 1;
  inset: 17px 7px 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  line-height: 1;
}

.card-pips i {
  font-size: clamp(9px, 1.05vw, 13px);
  font-style: normal;
  text-shadow: 0 1px #ffffffa8;
}

.card-pips-1 i {
  font-size: 22px;
}

.card .card-center {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #cdb9768c;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf5 0 52%, #f3ecd9 100%);
  color: var(--card-ink, inherit);
  font: 700 22px/1 'Playfair Display', serif;
  text-shadow: 0 1px #fff;
}

.card .card-center-trump {
  border-color: #a28a4b;
  background: radial-gradient(circle, #fff9df 0 49%, #eadcae 100%);
  font-family: 'DM Sans', sans-serif;
}

.card .card-center-excuse {
  border-color: #a68db8;
  background: radial-gradient(circle, #fff 0 49%, #e9dff0 100%);
  font-size: 25px;
}

.card.face-court:not(.back) .card-center-court {
  border-width: 2px;
  font-size: 23px;
}

.card-caption {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  max-width: calc(100% - 12px);
  overflow: hidden;
  transform: translateX(-50%);
  color: var(--card-ink, inherit);
  font: 700 5px/1 'DM Sans', sans-serif;
  letter-spacing: .55px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-court-suit {
  position: absolute;
  z-index: 0;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--card-ink, inherit);
  font-size: 18px;
  opacity: .16;
}

.card.card-bout {
  border-color: #b3954e;
  box-shadow: 0 5px 14px #94783c30, inset 0 0 0 2px #fff8df;
}

.card.suit-start:not(:first-child) {
  border-left-width: 2px;
}

.hand > .card {
  width: var(--hand-card-width, 56px);
  min-width: 0;
  flex: 0 0 var(--hand-card-width, 56px);
  margin-left: calc(var(--hand-card-step, 47px) - var(--hand-card-width, 56px));
}

.hand > .card:first-child {
  margin-left: 0;
}

.hand > .card.suit-start:not(:first-child) {
  margin-left: calc(var(--hand-card-step, 47px) - var(--hand-card-width, 56px));
}

.card.playable {
  border: 2px solid #bc9236;
  background-color: #fffdf0;
  box-shadow: 0 0 0 2px #f3dfaa, 0 8px 18px #38280d38, inset 0 0 0 2px #fff;
  opacity: 1;
}

.card.playable:hover,
.card.playable:focus-visible {
  outline: 2px solid #74571d;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #f0daa0, 0 12px 20px #38280d45, inset 0 0 0 2px #fff;
}

.card.unplayable {
  filter: saturate(.6);
  opacity: .62;
}

.card.selected {
  border-color: #6a8f72;
  box-shadow: 0 0 0 2px #b7d1b8, 0 9px 20px #16291f40, inset 0 0 0 2px #fff;
}

.card[role='button']:focus-visible {
  outline: 2px solid #315f4c;
  outline-offset: 2px;
}

.card:not(.back) {
  border-width: 1.5px;
  border-radius: 9px;
  background-image:
    linear-gradient(155deg, #ffffff 0%, #fffdf8 46%, #f2eee3 100%),
    repeating-linear-gradient(45deg, transparent 0 5px, #c7b77b0a 5px 6px);
  box-shadow: 0 6px 13px #10251d32, inset 0 0 0 2px #ffffffd9, inset 0 -9px 16px #d7ceb31a;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.card:not(.back)::after {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-radius: 0 4px 0 0;
  content: '';
  opacity: .34;
  pointer-events: none;
}

.card[data-suit='spades'] {
  --card-ink: #263e59;
  background-image: linear-gradient(155deg, #fff 0%, #f7fafd 55%, #e8eff5 100%);
}

.card[data-suit='hearts'] {
  --card-ink: #a83149;
  background-image: linear-gradient(155deg, #fff 0%, #fffafa 55%, #f5e6e6 100%);
}

.card[data-suit='diamonds'] {
  --card-ink: #a34c2d;
  background-image: linear-gradient(155deg, #fff 0%, #fffbf6 55%, #f4e9da 100%);
}

.card[data-suit='clubs'] {
  --card-ink: #2e6349;
  background-image: linear-gradient(155deg, #fff 0%, #f8fcf8 55%, #e7f0e6 100%);
}

.card[data-suit='trump'] {
  background-image: radial-gradient(ellipse at 50% 40%, #fffef8 0%, #faf1d5 56%, #e9d9a9 100%);
  box-shadow: 0 6px 13px #352b1640, inset 0 0 0 2px #fff9e3, inset 0 0 0 4px #c6a95a35;
}

.card[data-suit='excuse'] {
  background-image: radial-gradient(ellipse at 50% 40%, #fff 0%, #f8f2fb 57%, #e8def0 100%);
  box-shadow: 0 6px 13px #2c183c30, inset 0 0 0 2px #fff, inset 0 0 0 4px #9a78a528;
}

.card.face-court .card-center-court {
  width: 43px;
  height: 43px;
  border: 2px solid currentColor;
  background: radial-gradient(circle, #fffef9 0 48%, #e8dfc8 100%);
  box-shadow: 0 2px 8px #24201620, inset 0 0 0 2px #ffffffa8;
  font-size: 24px;
}

.card.face-court:not(.back) .card-caption {
  bottom: 13px;
  font-size: 6px;
  letter-spacing: .8px;
}

.card.card-bout:not(.back) {
  border-color: #ae8c39;
  box-shadow: 0 0 0 1px #dfc878, 0 7px 16px #94783c3d, inset 0 0 0 2px #fff9e7;
}

.card:not(.back).playable {
  border-color: #ddbd64;
  box-shadow: 0 0 0 2px #f4e1a9, 0 9px 20px #38280d4a, inset 0 0 0 2px #fff;
}

.card:not(.back).playable:hover,
.card:not(.back).playable:focus-visible {
  transform: translateY(-9px) scale(1.035);
  filter: brightness(1.035);
}

.seat-indicators {
  position: absolute;
  top: calc(100% + 4px);
  left: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 150px;
  pointer-events: none;
}

.seat-indicators span {
  padding: 3px 5px;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  background: #102d27e8;
  color: #eff5ed;
  font: 800 7px/1 'DM Sans', sans-serif;
  letter-spacing: .35px;
  white-space: nowrap;
  box-shadow: 0 2px 7px #07181155;
}

.seat-indicators .seat-role {
  border-color: #f0d17a99;
  background: #473e25ed;
  color: #ffe9a6;
}

.seat-indicators .seat-role.declarer-role {
  border-color: #ffe28a;
  background: #57451f;
  color: #fff4cb;
  box-shadow: 0 0 0 2px #f4cf5d26;
}

.seat.team-declarer .avatar,
.player-bar.team-declarer .avatar {
  box-shadow: 0 0 0 3px #f2d475, 0 0 15px #f0cc6547;
}

.seat.team-partner .avatar,
.player-bar.team-partner .avatar {
  box-shadow: 0 0 0 3px #8fe0bc, 0 0 15px #69d7a45e;
}

.seat.team-defense .avatar,
.player-bar.team-defense .avatar {
  box-shadow: 0 0 0 2px #a9c1d8, 0 0 12px #6c9fc344;
}

.seat-indicators .seat-role.solo-role {
  border-color: #fff0a6;
  background: #71521b;
  color: #fff8d9;
  box-shadow: 0 0 0 2px #f4cf5d35;
}

.seat-indicators .seat-offline {
  border-color: #e5a69b;
  background: #6c3029ed;
  color: #fff0ed;
}

.seat-indicators .seat-auto-action {
  border-color: #f2c771;
  background: #725022ed;
  color: #fff2cc;
  box-shadow: 0 0 0 2px #edbf5833, 0 2px 8px #07181170;
}

.team-partner .seat-indicators .seat-role {
  border-color: #9ed9bcad;
  background: #164c3bea;
  color: #d1ffe5;
}

.team-defense .seat-indicators .seat-role {
  border-color: #a9c1d899;
  background: #294257e8;
  color: #e1f1ff;
}

.seat-indicators .seat-lead {
  border-color: #fff1b6;
  background: #fff5d9;
  color: #4c3a14;
}

.seat-indicators .seat-taker {
  border-color: #9af2d0;
  background: #124b3d;
  color: #ddfff3;
}

.seat-indicators .seat-turn {
  border-color: #a8f0a9;
  background: #a8efad;
  color: #123823;
  box-shadow: 0 0 0 2px #a8efad40, 0 2px 8px #06160b70;
}

.seat.leading-seat .avatar {
  box-shadow: 0 0 0 3px #fff0ae, 0 0 18px #ffd86c9c;
}

.seat.taking-trick .avatar,
.player-bar.taking-trick .avatar {
  box-shadow: 0 0 0 3px #91eec8, 0 0 18px #57d9a18c;
}

.seat.active-seat .avatar {
  outline: 2px solid #a9efaa;
  outline-offset: 3px;
}

.player-bar .player-badge {
  border: 1px solid #c7b274;
  background: #fff4d2;
  color: #604a1b;
}

.player-badge.badge-role-partner {
  border-color: #85b99a;
  background: #e0f2e5;
  color: #275840;
}

.player-badge.badge-role-solo {
  border-color: #aa842d;
  background: #fff0bf;
  color: #543e0c;
}

.player-badge.badge-role-defense {
  border-color: #9cb1c3;
  background: #e6eff5;
  color: #35566c;
}

.player-bar.active-seat .player-badge {
  background: #164c3b;
  border-color: #a3d19c;
  color: #fff;
}

.player-bar.leading-seat .player-badge {
  box-shadow: 0 0 0 2px #e2cb8840;
}

@media (max-width: 760px) {
  .seat-indicators {
    top: calc(100% + 3px);
    left: 34px;
    gap: 2px;
    max-width: 115px;
  }

  .seat-indicators span {
    padding: 2px 4px;
    font-size: 6px;
  }

  .card.face-court:not(.back) .card-center-court {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .card.face-court:not(.back) .card-caption {
    bottom: 9px;
    font-size: 5px;
  }
}

.hand {
  height: clamp(96px, 13vh, 116px);
  overflow-x: clip;
}

.hand > .card {
  height: 100px;
  z-index: var(--card-order, 0);
}

.hand > .card[data-card-id] {
  cursor: default;
}

.hand > .card[role='button'] {
  cursor: pointer;
}

.hand .card-corner,
.hand .card-bottom {
  font-size: 11px;
}

.hand .card-corner em,
.hand .card-bottom em {
  font-size: 10px;
}

.hand .card-pips {
  inset: 19px 8px 19px;
}

.hand .card-pips i {
  font-size: clamp(10px, 1.15vw, 14px);
}

.hand .card-pips-1 i {
  font-size: 25px;
}

.hand .card.face-court:not(.back) .card-center-court {
  width: 48px;
  height: 48px;
  font-size: 27px;
}

.hand .card.face-court:not(.back) .card-caption {
  bottom: 15px;
  font-size: 7px;
}

.hand > .card.selected {
  z-index: 100;
  transform: translateY(-16px) scale(1.08);
  animation: card-select .22s ease-out both;
}

.hand > .card.selected::after {
  top: 6px;
  right: 6px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #fff7d8;
  border-radius: 50%;
  background: #806322;
  color: #fff;
  content: '✓';
  font: 800 10px/1 'DM Sans', sans-serif;
  opacity: 1;
  box-shadow: 0 1px 4px #101c1666;
}

.hand > .card[role='button']:hover,
.hand > .card[role='button']:focus-visible {
  z-index: 110;
  transform: translateY(-12px) scale(1.08);
}

.hand > .card.discard-forbidden {
  filter: grayscale(.72) saturate(.45);
  opacity: .58;
}

.hand > .card.discard-forbidden:hover,
.hand > .card.discard-forbidden:focus-visible {
  filter: grayscale(.5) saturate(.6);
  opacity: .82;
}

.hand > .card.card-dealing {
  animation: card-deal-in .48s cubic-bezier(.2, .72, .25, 1) both;
  animation-delay: var(--deal-delay, 0ms);
}

.discard-actions {
  min-width: 0;
  gap: 9px;
}

.discard-instruction {
  color: #435548;
  font-weight: 700;
  line-height: 1.3;
}

.discard-progress {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid #d8ddcf;
  border-radius: 6px;
  background: #f1f2e9;
  color: #516254;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.discard-progress::before {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--discard-progress, 0%);
  height: 3px;
  background: #bd9b4b;
  content: '';
  transition: width .2s ease, background .2s ease;
}

.discard-progress.complete {
  border-color: #8cba9a;
  background: #e5f3e7;
  color: #23553a;
}

.discard-progress.complete::before {
  background: #3b9660;
}

@keyframes card-deal-in {
  from {
    opacity: 0;
    transform: translateY(-34px) rotate(5deg) scale(.76);
    filter: brightness(1.35) saturate(.7);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes card-select {
  from {
    transform: translateY(-3px) scale(.98);
  }

  to {
    transform: translateY(-16px) scale(1.08);
  }
}

@media (max-width: 760px) {
  .hand {
    height: clamp(80px, 12vh, 96px);
  }

  .hand > .card {
    height: 86px;
  }

  .hand .card-corner,
  .hand .card-bottom {
    font-size: 9px;
  }

  .hand .card-corner em,
  .hand .card-bottom em {
    font-size: 8px;
  }

  .hand .card-pips {
    inset: 15px 4px 15px;
  }

  .hand .card-pips i {
    font-size: clamp(8px, 2.8vw, 11px);
  }

  .hand .card-pips-1 i {
    font-size: 20px;
  }

  .hand .card.face-court:not(.back) .card-center-court {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .hand .card.face-court:not(.back) .card-caption {
    bottom: 10px;
    font-size: 5px;
  }

  .discard-actions {
    gap: 4px;
  }

  .discard-instruction {
    min-width: 0;
    font-size: 7px;
  }

  .discard-progress {
    padding: 4px 5px;
    font-size: 7px;
  }
}

@media (max-height: 700px) {
  .hand {
    height: clamp(70px, 12vh, 86px);
  }

  .hand > .card {
    height: min(82px, 11vh);
  }
}

@media (max-height: 580px) {
  .hand {
    height: 64px;
  }

  .hand > .card {
    height: min(62px, 11vh);
  }

  .hand > .card.selected {
    transform: translateY(-8px) scale(1.04);
  }
}

@media (max-width: 520px) {
  .discard-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hand > .card.card-dealing,
  .hand > .card.selected {
    animation: none;
  }
}

.hand-heading {
  color: #3f594a;
  font-weight: 700;
}

.hand-hint {
  color: #556b5e;
}

.table-note {
  color: #4c5d50;
}

.table-note p {
  font-weight: 500;
}

.turn-pill {
  color: #57451d;
  font-weight: 800;
}

@media (max-width: 760px) {
  .card-pips {
    inset: 14px 4px 13px;
  }

  .card-pips i {
    font-size: clamp(7px, 2.8vw, 10px);
  }

  .card-pips-1 i {
    font-size: clamp(16px, 5.6vw, 20px);
  }

  .card .card-center {
    width: 30px;
    height: 30px;
    font-size: clamp(14px, 5vw, 19px);
  }

  .card .card-center-excuse {
    font-size: clamp(18px, 6vw, 23px);
  }

  .card-caption {
    bottom: 10px;
    font-size: 4px;
    letter-spacing: .25px;
  }

  .card-court-suit {
    bottom: 19px;
    font-size: 14px;
  }

  .card.suit-start:not(:first-child) {
    border-left-width: 2px;
  }

.hand .card-caption {
    font-size: 5px;
  }
}

.hand:focus-visible {
  outline: 2px solid #b89b50;
  outline-offset: 2px;
  border-radius: 4px;
}

.card:not(.back) {
  overflow: hidden;
  border: 1px solid #b9b09d;
  border-radius: 10px;
  background-image:
    radial-gradient(ellipse at 50% 45%, #fff 0%, #fffdf6 45%, #f0ebdc 100%),
    repeating-linear-gradient(135deg, transparent 0 7px, #8d74420a 7px 8px);
  box-shadow: 0 7px 15px #10251d38, inset 0 0 0 2px #ffffffd9, inset 0 -12px 17px #a58e5712;
}

.card:not(.back)::before {
  inset: 4px;
  border-color: #a990553f;
  border-radius: 7px;
}

.card:not(.back)::after {
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-color: currentColor;
  opacity: .52;
}

.card .card-corner b,
.card .card-bottom b {
  font-size: 1.15em;
  font-weight: 800;
}

.card .card-corner em,
.card .card-bottom em {
  font-size: 1.05em;
}

.card-caption {
  bottom: 11px;
  padding: 3px 5px;
  border: 1px solid #c4b99180;
  border-radius: 10px;
  background: #fffdf2e8;
  font-size: 6px;
  letter-spacing: .65px;
  box-shadow: 0 1px 3px #17291c1a;
}

.card.face-court:not(.back) .card-center-court {
  width: 46px;
  height: 46px;
  border: 2px double currentColor;
  background: radial-gradient(circle, #fff 0 49%, #e9dfc7 100%);
  box-shadow: 0 3px 9px #17291c24, inset 0 0 0 3px #ffffffc2;
  font-size: 25px;
}

.card[data-suit='trump']:not(.back) {
  border-color: #a3883d;
  background-image: radial-gradient(ellipse at 50% 43%, #fffef7 0%, #fcf2d1 55%, #e4d098 100%);
  box-shadow: 0 7px 16px #32291145, inset 0 0 0 2px #fff9e6, inset 0 0 0 4px #b79b514c;
}

.card[data-suit='excuse']:not(.back) {
  border-color: #9176a2;
  background-image: radial-gradient(ellipse at 50% 43%, #fff 0%, #f8f0fb 56%, #e2d3ec 100%);
  box-shadow: 0 7px 16px #28143638, inset 0 0 0 2px #fff, inset 0 0 0 4px #9879a930;
}

.card.card-bout:not(.back) {
  outline: 2px solid #c6a24a;
  outline-offset: -3px;
}

.hand > .card.selected {
  border-color: #96751f;
  outline: 3px solid #d4b557;
  outline-offset: 1px;
  box-shadow: 0 12px 22px #30230b55, inset 0 0 0 2px #fff7d8;
}

@keyframes dog-reveal-card {
  from { opacity: 0; transform: translateY(-14px) rotate(-3deg) scale(.9); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.dog-reveal-cards > .card {
  animation: dog-reveal-card .32s cubic-bezier(.2,.72,.25,1) both;
}

.dog-reveal-cards > .card:nth-child(2) { animation-delay: 45ms; }
.dog-reveal-cards > .card:nth-child(3) { animation-delay: 90ms; }
.dog-reveal-cards > .card:nth-child(4) { animation-delay: 135ms; }
.dog-reveal-cards > .card:nth-child(5) { animation-delay: 180ms; }
.dog-reveal-cards > .card:nth-child(6) { animation-delay: 225ms; }

@media (prefers-reduced-motion: reduce) {
  .dog-reveal-cards > .card { animation: none; }
}

.hand.hand-grid {
  display: grid;
  height: auto;
  min-height: clamp(150px, 21vh, 176px);
  grid-template-columns: repeat(var(--hand-columns), var(--hand-card-step));
  grid-template-rows: repeat(var(--hand-rows), auto);
  justify-content: start;
  align-content: start;
  overflow: visible;
}

.hand.hand-grid > .card,
.hand.hand-grid > .card.suit-start:not(:first-child) {
  width: var(--hand-card-width, 48px);
  height: min(86px, 11vh);
  margin-left: 0;
}

.hand.hand-scrollable {
  justify-content: flex-start;
  padding-top: 6px;
  overflow-x: auto;
  overflow-y: visible;
  touch-action: pan-x;
  scrollbar-width: thin;
}

@media (max-width: 760px) {
  .hand.hand-scrollable {
    scrollbar-width: none;
  }

  .hand.hand-scrollable::-webkit-scrollbar {
    display: none;
  }
}

.hand.hand-scrollable > .card.selected,
.hand.hand-scrollable > .card[role='button']:hover,
.hand.hand-scrollable > .card[role='button']:focus-visible {
  transform: translateY(-6px) scale(1.04);
  animation: none;
}

.card-court-art {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 50%;
  width: calc(100% - 12px);
  height: calc(100% - 29px);
  overflow: visible;
  transform: translateX(-50%);
  color: var(--card-ink, #314a50);
}

.card-court-art .court-frame {
  fill: #fffdf7b8;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: .44;
}

.card-court-art .court-face {
  fill: #f4e4cf;
  stroke: currentColor;
  stroke-width: 1.2;
}

.card-court-art .court-robe {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: .22;
}

.card-court-art .court-headwear {
  fill: #d5bc78;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.card-court-art .court-initial,
.card-court-art .court-suit {
  fill: currentColor;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  text-anchor: middle;
}

.card-court-art .court-initial {
  font-size: 7px;
}

.card-court-art .court-suit {
  font-size: 8px;
}

.card.back {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d2b86a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #e2ca7c 0 3%, #174536 4% 43%, transparent 44%),
    repeating-linear-gradient(45deg, #174536 0 3px, #205542 3px 6px),
    linear-gradient(145deg, #28634b, #10362d);
  box-shadow: 0 4px 10px #07181140, inset 0 0 0 2px #ffffff15;
  color: #f5e6b2;
}

.card.back::before {
  position: absolute;
  z-index: -1;
  inset: 3px;
  border: 1px solid #eedc9b80;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, transparent 0 4px, #ffffff08 4px 5px);
  content: '';
  pointer-events: none;
}

.card.back::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #e3ca7b;
  border-radius: 50%;
  background: #164537;
  box-shadow: 0 2px 6px #07181170, inset 0 0 0 2px #fff3d119;
  color: #f2df9d;
  content: '✦';
  font-size: 15px;
}

@media (max-width: 760px) {
  .card-court-art {
    top: 12px;
    height: calc(100% - 25px);
  }
}

@media (max-height: 580px) and (max-width: 760px) {
  .card-pips {
    inset: 11px 3px 10px;
  }

  .card .card-center {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .card-caption {
    bottom: 8px;
    font-size: 3px;
  }
}

.card:not(.back) {
  border: 1px solid #c8c0ae;
  border-radius: 12px;
  background-image:
    linear-gradient(90deg, var(--card-ink) 0 4px, transparent 4px),
    radial-gradient(ellipse at 54% 46%, #fff 0%, #fffdf7 50%, #eee9dd 100%);
  box-shadow: 0 8px 16px #10251d3d, inset 0 0 0 2px #ffffffda, inset 0 -12px 18px #a58e5718;
}

.card[data-suit='trump']:not(.back) {
  border-color: #a3883d;
  background-image:
    linear-gradient(90deg, #77652e 0 4px, transparent 4px),
    radial-gradient(ellipse at 54% 46%, #fffef7 0%, #fcf2d1 55%, #e4d098 100%);
}

.card[data-suit='excuse']:not(.back) {
  border-color: #9176a2;
  background-image:
    linear-gradient(90deg, #75598b 0 4px, transparent 4px),
    radial-gradient(ellipse at 54% 46%, #fff 0%, #f8f0fb 56%, #e2d3ec 100%);
}

.card:not(.back)::after {
  top: 0;
  right: 12px;
  left: 12px;
  width: auto;
  height: 3px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: currentColor;
  opacity: .78;
}

.card .card-corner,
.card .card-bottom {
  padding: 3px 4px;
  border: 1px solid #b9aa814d;
  border-radius: 6px;
  background: #fffdf3e8;
  box-shadow: 0 1px 3px #17291c18;
}

.card .card-center-trump {
  border-color: #887137;
  background: radial-gradient(circle, #fff8df 0 46%, #e8d9a8 100%);
  box-shadow: 0 2px 6px #4f411c35, inset 0 0 0 2px #ffffffb8;
}

.card .card-center-excuse {
  border-color: #9a7eaa;
  background: radial-gradient(circle, #fff 0 47%, #e9dff0 100%);
  box-shadow: 0 2px 6px #3d284c2e, inset 0 0 0 2px #ffffffc7;
}
