/* ============================================================
   cards.css — фигурные карты (J/Q/K) и декоративные тузы.
   Подключается ПОСЛЕ styles.css одной строкой:
     <link rel="stylesheet" href="cards.css">
   Работает в «Пауке» и «Косынке»: рисунок вешается через
   ::after по data-rank / data-suit, JS менять не нужно.
   Цвета и геометрия — строго из палитры игры.
   ============================================================ */

/* Каждая карта — собственный контекст наложения. Без этого положительный
   z-index центрального знака туза (см. ниже) «протекает» наружу, и масть туза
   рисуется поверх лежащих на нём карт в отбое и в домах. */
.card {
  isolation: isolate;
}

.card:not(.back)[data-rank="J"]::after,
.card:not(.back)[data-rank="Q"]::after,
.card:not(.back)[data-rank="K"]::after,
.card:not(.back)[data-rank="A"]::after {
  content: '';
  position: absolute;
  inset: 14% 12%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* У фигур центральный знак масти прячем (его заменяет рисунок),
   у туза — оставляем: он становится центром медальона. */
.card:not(.back)[data-rank="J"] .card-center,
.card:not(.back)[data-rank="Q"] .card-center,
.card:not(.back)[data-rank="K"] .card-center {
  visibility: hidden;
}
.card:not(.back)[data-rank="A"] .card-center {
  position: relative;
  z-index: 1;
}

.card:not(.back)[data-rank="J"][data-suit="spades"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cellipse%20cx%3D'32'%20cy%3D'8'%20rx%3D'8'%20ry%3D'3'%20fill%3D'%231a1a1a'%20transform%3D'rotate(-10%2032%208)'%2F%3E%3Ccircle%20cx%3D'23.8'%20cy%3D'5.2'%20r%3D'1.7'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'16.5'%20r%3D'5'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'21%2C44%2022%2C33%2026%2C26.5%2038%2C26.5%2042%2C33%2043%2C44'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'22.6%2C32%2041.4%2C40.5%2041.4%2C44%2022.6%2C35.5'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'5'%20width%3D'1.5'%20height%3D'21'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'53.2%2C1.5%2056.2%2C5.5%2053.2%2C9.5%2050.2%2C5.5'%20fill%3D'%231a1a1a'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="Q"][data-suit="spades"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cpolygon%20points%3D'25.5%2C10%2028.5%2C4.5%2032%2C8.5%2035.5%2C4.5%2038.5%2C10'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'25.5'%20y%3D'10'%20width%3D'13'%20height%3D'3.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'28.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'35.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'18.5'%20r%3D'5'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'20%2C44%2021%2C34%2025.5%2C26.5%2038.5%2C26.5%2043%2C34%2044%2C44'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'29.5'%20r%3D'1.6'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'13'%20width%3D'1.3'%20height%3D'13'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'8.6'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'49.8'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'56.4'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'10.8'%20r%3D'1.1'%20fill%3D'%23faf8f5'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="K"][data-suit="spades"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Crect%20x%3D'52.2'%20y%3D'3'%20width%3D'2.6'%20height%3D'22'%20rx%3D'1'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'48.5'%20y%3D'20'%20width%3D'10'%20height%3D'2.4'%20rx%3D'1'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.5'%20cy%3D'26.5'%20r%3D'2.2'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'24%2C11%2027.5%2C3.5%2032%2C9%2036.5%2C3.5%2040%2C11'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'24'%20y%3D'11'%20width%3D'16'%20height%3D'3.6'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'27.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'36.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'20'%20r%3D'5.2'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'19%2C44%2020%2C33%2025%2C27%2039%2C27%2044%2C33%2045%2C44'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'32%2C31.5%2034.8%2C35.5%2032%2C39.5%2029.2%2C35.5'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="A"][data-suit="spades"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Crect%20x%3D'4'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'4'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'23'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.07'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20stroke-opacity%3D'0.5'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'19.5'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.6'%20stroke-opacity%3D'0.3'%2F%3E%3C%2Fsvg%3E"); }

.card:not(.back)[data-rank="J"][data-suit="clubs"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cellipse%20cx%3D'32'%20cy%3D'8'%20rx%3D'8'%20ry%3D'3'%20fill%3D'%231a1a1a'%20transform%3D'rotate(-10%2032%208)'%2F%3E%3Ccircle%20cx%3D'23.8'%20cy%3D'5.2'%20r%3D'1.7'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'16.5'%20r%3D'5'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'21%2C44%2022%2C33%2026%2C26.5%2038%2C26.5%2042%2C33%2043%2C44'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'22.6%2C32%2041.4%2C40.5%2041.4%2C44%2022.6%2C35.5'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'5'%20width%3D'1.5'%20height%3D'21'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'53.2%2C1.5%2056.2%2C5.5%2053.2%2C9.5%2050.2%2C5.5'%20fill%3D'%231a1a1a'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="Q"][data-suit="clubs"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cpolygon%20points%3D'25.5%2C10%2028.5%2C4.5%2032%2C8.5%2035.5%2C4.5%2038.5%2C10'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'25.5'%20y%3D'10'%20width%3D'13'%20height%3D'3.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'28.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'35.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'18.5'%20r%3D'5'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'20%2C44%2021%2C34%2025.5%2C26.5%2038.5%2C26.5%2043%2C34%2044%2C44'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'29.5'%20r%3D'1.6'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'13'%20width%3D'1.3'%20height%3D'13'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'8.6'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'49.8'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'56.4'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'10.8'%20r%3D'1.1'%20fill%3D'%23faf8f5'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="K"][data-suit="clubs"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Crect%20x%3D'52.2'%20y%3D'3'%20width%3D'2.6'%20height%3D'22'%20rx%3D'1'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'48.5'%20y%3D'20'%20width%3D'10'%20height%3D'2.4'%20rx%3D'1'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'53.5'%20cy%3D'26.5'%20r%3D'2.2'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'24%2C11%2027.5%2C3.5%2032%2C9%2036.5%2C3.5%2040%2C11'%20fill%3D'%231a1a1a'%2F%3E%3Crect%20x%3D'24'%20y%3D'11'%20width%3D'16'%20height%3D'3.6'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'27.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'36.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%231a1a1a'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'20'%20r%3D'5.2'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.15'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'19%2C44%2020%2C33%2025%2C27%2039%2C27%2044%2C33%2045%2C44'%20fill%3D'%231a1a1a'%2F%3E%3Cpolygon%20points%3D'32%2C31.5%2034.8%2C35.5%2032%2C39.5%2029.2%2C35.5'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="A"][data-suit="clubs"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Crect%20x%3D'4'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'4'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%231a1a1a'%20opacity%3D'0.8'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'23'%20fill%3D'%231a1a1a'%20fill-opacity%3D'0.07'%20stroke%3D'%231a1a1a'%20stroke-width%3D'1'%20stroke-opacity%3D'0.5'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'19.5'%20fill%3D'none'%20stroke%3D'%231a1a1a'%20stroke-width%3D'0.6'%20stroke-opacity%3D'0.3'%2F%3E%3C%2Fsvg%3E"); }

.card:not(.back)[data-rank="J"][data-suit="hearts"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cellipse%20cx%3D'32'%20cy%3D'8'%20rx%3D'8'%20ry%3D'3'%20fill%3D'%23b22222'%20transform%3D'rotate(-10%2032%208)'%2F%3E%3Ccircle%20cx%3D'23.8'%20cy%3D'5.2'%20r%3D'1.7'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'16.5'%20r%3D'5'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'21%2C44%2022%2C33%2026%2C26.5%2038%2C26.5%2042%2C33%2043%2C44'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'22.6%2C32%2041.4%2C40.5%2041.4%2C44%2022.6%2C35.5'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'5'%20width%3D'1.5'%20height%3D'21'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'53.2%2C1.5%2056.2%2C5.5%2053.2%2C9.5%2050.2%2C5.5'%20fill%3D'%23b22222'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="Q"][data-suit="hearts"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cpolygon%20points%3D'25.5%2C10%2028.5%2C4.5%2032%2C8.5%2035.5%2C4.5%2038.5%2C10'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'25.5'%20y%3D'10'%20width%3D'13'%20height%3D'3.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'28.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'35.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'18.5'%20r%3D'5'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'20%2C44%2021%2C34%2025.5%2C26.5%2038.5%2C26.5%2043%2C34%2044%2C44'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'29.5'%20r%3D'1.6'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'13'%20width%3D'1.3'%20height%3D'13'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'8.6'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'49.8'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'56.4'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'10.8'%20r%3D'1.1'%20fill%3D'%23faf8f5'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="K"][data-suit="hearts"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Crect%20x%3D'52.2'%20y%3D'3'%20width%3D'2.6'%20height%3D'22'%20rx%3D'1'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'48.5'%20y%3D'20'%20width%3D'10'%20height%3D'2.4'%20rx%3D'1'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.5'%20cy%3D'26.5'%20r%3D'2.2'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'24%2C11%2027.5%2C3.5%2032%2C9%2036.5%2C3.5%2040%2C11'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'24'%20y%3D'11'%20width%3D'16'%20height%3D'3.6'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'27.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'36.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'20'%20r%3D'5.2'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'19%2C44%2020%2C33%2025%2C27%2039%2C27%2044%2C33%2045%2C44'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'32%2C31.5%2034.8%2C35.5%2032%2C39.5%2029.2%2C35.5'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="A"][data-suit="hearts"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Crect%20x%3D'4'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'4'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'23'%20fill%3D'%23b22222'%20fill-opacity%3D'0.07'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20stroke-opacity%3D'0.5'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'19.5'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'0.6'%20stroke-opacity%3D'0.3'%2F%3E%3C%2Fsvg%3E"); }

.card:not(.back)[data-rank="J"][data-suit="diamonds"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cellipse%20cx%3D'32'%20cy%3D'8'%20rx%3D'8'%20ry%3D'3'%20fill%3D'%23b22222'%20transform%3D'rotate(-10%2032%208)'%2F%3E%3Ccircle%20cx%3D'23.8'%20cy%3D'5.2'%20r%3D'1.7'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'16.5'%20r%3D'5'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'21%2C44%2022%2C33%2026%2C26.5%2038%2C26.5%2042%2C33%2043%2C44'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'22.6%2C32%2041.4%2C40.5%2041.4%2C44%2022.6%2C35.5'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'5'%20width%3D'1.5'%20height%3D'21'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'53.2%2C1.5%2056.2%2C5.5%2053.2%2C9.5%2050.2%2C5.5'%20fill%3D'%23b22222'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="Q"][data-suit="diamonds"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Cpolygon%20points%3D'25.5%2C10%2028.5%2C4.5%2032%2C8.5%2035.5%2C4.5%2038.5%2C10'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'25.5'%20y%3D'10'%20width%3D'13'%20height%3D'3.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'28.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'35.5'%20cy%3D'3.8'%20r%3D'1.2'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'18.5'%20r%3D'5'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'20%2C44%2021%2C34%2025.5%2C26.5%2038.5%2C26.5%2043%2C34%2044%2C44'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'29.5'%20r%3D'1.6'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3Crect%20x%3D'52.5'%20y%3D'13'%20width%3D'1.3'%20height%3D'13'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'8.6'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'49.8'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'56.4'%20cy%3D'11.4'%20r%3D'1.9'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.1'%20cy%3D'10.8'%20r%3D'1.1'%20fill%3D'%23faf8f5'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="K"][data-suit="diamonds"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Cline%20x1%3D'5'%20y1%3D'44'%20x2%3D'59'%20y2%3D'44'%20stroke%3D'%23b22222'%20stroke-width%3D'0.7'%20opacity%3D'0.3'%2F%3E%3Cg%20id%3D'h'%3E%3Crect%20x%3D'52.2'%20y%3D'3'%20width%3D'2.6'%20height%3D'22'%20rx%3D'1'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'48.5'%20y%3D'20'%20width%3D'10'%20height%3D'2.4'%20rx%3D'1'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'53.5'%20cy%3D'26.5'%20r%3D'2.2'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'24%2C11%2027.5%2C3.5%2032%2C9%2036.5%2C3.5%2040%2C11'%20fill%3D'%23b22222'%2F%3E%3Crect%20x%3D'24'%20y%3D'11'%20width%3D'16'%20height%3D'3.6'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'27.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'36.5'%20cy%3D'2.8'%20r%3D'1.3'%20fill%3D'%23b22222'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'20'%20r%3D'5.2'%20fill%3D'%23b22222'%20fill-opacity%3D'0.15'%20stroke%3D'%23b22222'%20stroke-width%3D'1.2'%2F%3E%3Cpolygon%20points%3D'19%2C44%2020%2C33%2025%2C27%2039%2C27%2044%2C33%2045%2C44'%20fill%3D'%23b22222'%2F%3E%3Cpolygon%20points%3D'32%2C31.5%2034.8%2C35.5%2032%2C39.5%2029.2%2C35.5'%20fill%3D'%23faf8f5'%20opacity%3D'0.9'%2F%3E%3C%2Fg%3E%3Cuse%20href%3D'%23h'%20transform%3D'rotate(180%2032%2044)'%2F%3E%3C%2Fsvg%3E"); }
.card:not(.back)[data-rank="A"][data-suit="diamonds"]::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2088'%3E%3Crect%20x%3D'1'%20y%3D'1'%20width%3D'62'%20height%3D'86'%20rx%3D'3'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20opacity%3D'0.5'%2F%3E%3Crect%20x%3D'4'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'4'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'4'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Crect%20x%3D'56.5'%20y%3D'80.5'%20width%3D'3.5'%20height%3D'3.5'%20fill%3D'%23b22222'%20opacity%3D'0.8'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'23'%20fill%3D'%23b22222'%20fill-opacity%3D'0.07'%20stroke%3D'%23b22222'%20stroke-width%3D'1'%20stroke-opacity%3D'0.5'%2F%3E%3Ccircle%20cx%3D'32'%20cy%3D'44'%20r%3D'19.5'%20fill%3D'none'%20stroke%3D'%23b22222'%20stroke-width%3D'0.6'%20stroke-opacity%3D'0.3'%2F%3E%3C%2Fsvg%3E"); }
