/* The house card face, shared by every card game. Pairs with _shared/cards.js. */

.pcard {
  position: relative;
  width: clamp(52px, 11.5vw, 68px);
  aspect-ratio: 5 / 7;
  border-radius: 7px;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--cream), #efe3c2);
  box-shadow: inset 0 0 0 1px rgba(122, 104, 80, .5), 0 3px 8px rgba(0, 0, 0, .35);
  font-family: var(--display);
  border: none;
  padding: 0;
  flex: none;
}
.pcard.small { width: clamp(46px, 10vw, 58px); }
.pcard.red { color: var(--oxblood-bright); }
.pcard.black { color: var(--ink); }
.pc-corner {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
  font-size: clamp(12px, 2.4vw, 15px);
  font-weight: 600;
}
.pc-corner i { font-style: normal; font-size: .85em; }
.pc-corner.tl { top: 4px; left: 5px; }
.pc-corner.br { bottom: 4px; right: 5px; transform: rotate(180deg); }
.pc-mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.pc-glyph { font-size: clamp(20px, 4.4vw, 28px); }
.pc-crown {
  position: absolute;
  top: 16%;
  font-style: normal;
  font-size: 13px;
  color: var(--gold-deep);
}
