.poker-face {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfddd2;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 8px #06100e77;
}
.poker-face .card-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.poker-face.joker-big, .poker-face.joker-small { background: #fff; }
.poker-face.joker-big { border-color: #c43a42; }
.poker-face.joker-small { border-color: #35424a; }
.poker-face .joker-figure {
  position: absolute;
  top: 6%;
  left: 10%;
  width: 80%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.poker-face .joker-index {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 14px;
  height: 15px;
  border-radius: 2px;
  background: #fff;
  color: #b62931;
  font: 800 12px/1 "PingFang SC", sans-serif;
}
.poker-face.joker-small .joker-index { color: #222e34; }
.poker-face .joker-index-top { top: 2px; left: 2px; }
.poker-face .joker-index-bottom { right: 2px; bottom: 2px; transform: rotate(180deg); }
.hand { align-items: flex-start; row-gap: 10px; column-gap: 0; padding: 10px 2px 8px; }
.card.poker-face { width: 53px; height: 79px; margin-right: -12px; transition: transform .15s ease, box-shadow .15s ease; }
.card.poker-face:hover:not(:disabled) { z-index: 2; transform: translateY(-4px); }
.card.poker-face.selected, .card.poker-face.selected:hover {
  z-index: 3;
  transform: translateY(-9px);
  border-color: #e9ba66;
  box-shadow: 0 0 0 2px #e9ba66, 0 8px 14px #06100eaa;
}
.card.poker-face.trump:not(.selected) { box-shadow: inset 0 0 0 2px #cf9e4f, 0 3px 8px #06100e77; }
.card.poker-face.point::after { content: ""; position: absolute; top: 5px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #c79b54; transform: none; }
.card.poker-face:focus-visible, .friend-card.poker-face:focus-visible { outline: 2px solid #efc67a; outline-offset: 3px; }
.friend-card.poker-face { width: 100%; min-width: 0; height: 69px; }
.friend-card.poker-face.is-selected { border-color: #e9ba66; box-shadow: 0 0 0 2px #e9ba66; }
.discard-card.poker-face { width: 35px; height: 51px; }
.played-card.poker-face { width: 52px; height: 76px; }
.played-card.poker-face .played-owner {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  overflow: hidden;
  padding: 2px 0;
  background: #fffdf5e8;
  color: #394e44;
  font: 700 8px/1.1 "PingFang SC", sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-card.poker-face { width: 32px; height: 47px; }
.match-card { display: block; flex: none; width: 37px; min-width: 0; height: 55px; padding: 0; overflow: hidden; border: 1px solid #dfddd2; border-radius: 4px; background: #fff; }
.match-card img { display: block; width: 100%; height: 100%; }
.match-point-cards .match-card { width: 29px; min-width: 0; height: 43px; }
@media (max-width: 700px) {
  .hand { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 0; }
  .card.poker-face { width: 100%; height: 68px; margin: 0; }
  .played-card.poker-face { width: 33px; height: 51px; }
  .played-card.poker-face .played-owner { font-size: 7px; }
  .table-area .discard-card.poker-face { width: 30px; height: 44px; }
  .table-area.friend-phase .friend-card.poker-face { height: 64px; }
  .table-area.friend-phase .card.poker-face { height: 64px; }
}
