/* Small face cards only. Preserve owner dimensions and all gameplay/visibility logic.
   TABLE palette: --cyan, table-card-face pink/purple, TABLE SIMPLE green. */
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card) {
  --mini-tone:var(--cyan,#48edf5);
  --mini-cut:polygon(8% 0,92% 0,100% 6%,100% 94%,92% 100%,8% 100%,0 94%,0 6%);
  container-type:size;
  position:relative!important;
  display:inline-block!important;
  flex-shrink:0;
  box-sizing:border-box;
  border:0!important;
  border-radius:0!important;
  clip-path:var(--mini-cut);
  background:#e8edf2!important;
  box-shadow:none!important;
  isolation:isolate;
}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card):is(.red,.suit-h) {--mini-tone:#ff4b86;}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card):is(.blue,.suit-d) {--mini-tone:#c073ff;}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card):is(.green,.suit-c) {--mini-tone:#2adfa3;}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card)::before {
  content:''!important;display:block!important;position:absolute!important;inset:1px!important;
  clip-path:var(--mini-cut);border:0!important;border-radius:0!important;
  background:radial-gradient(circle,rgba(170,196,214,.09) .5px,transparent .7px) 0 0/7px 7px,linear-gradient(155deg,#111923,#080a0e 70%)!important;
  box-shadow:none!important;opacity:1!important;z-index:0;pointer-events:none;
}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card)::after {content:none!important;}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card) > :is(.table-card-face,.table-card-rank-bottom) {display:none!important;}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card) > .card-rank {
  position:absolute!important;display:block!important;left:calc(50% - 1px)!important;top:8%!important;
  right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
  width:max-content!important;height:auto!important;margin:0!important;padding:0!important;
  color:var(--mini-tone)!important;font-family:'Barlow Condensed','Arial Narrow',sans-serif!important;
  font-size:40cqh!important;font-weight:600!important;line-height:1!important;
  letter-spacing:0!important;text-shadow:none!important;background:none!important;z-index:1;
}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card) > .card-suit {
  position:absolute!important;display:block!important;left:50%!important;top:53%!important;
  right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
  width:max-content!important;height:auto!important;margin:0!important;padding:0!important;
  font-family:'Ponder Table Suit','Noto Sans JP',sans-serif!important;
  font-size:32cqh!important;font-weight:400!important;font-style:normal!important;line-height:1!important;
  color:var(--mini-tone)!important;text-shadow:none!important;filter:none!important;z-index:1;
  background:linear-gradient(155deg,color-mix(in srgb,var(--mini-tone) 40%,transparent),color-mix(in srgb,var(--mini-tone) 10%,transparent))!important;
  background-clip:text!important;-webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent;-webkit-text-stroke:.65px var(--mini-tone);
}
html:root body :is(.history-card-mini:not(.hhv2-empty-board-card):not(.hhv2-hand-mask-card):not(.card-back),.duel-out-card > .card-ui,.ponder-mini-card) > .card-rank[data-rank="Q"]::after {
  content:'';position:absolute;width:.23em;height:.092em;left:.219em;bottom:-.004em;background:currentColor;
}
/* Combo lists are inline notation, not miniature card surfaces. */
html:root body .profile-v2-range-combo-cards {display:flex;align-items:center;gap:5px;white-space:nowrap;}
html:root body .profile-v2-range-combo-cards > .ponder-mini-inline {
  --mini-tone:var(--cyan,#48edf5);
  display:inline-flex;align-items:center;gap:1px;
  width:auto;height:auto;padding:0;border:0;background:none;box-shadow:none;
  color:var(--mini-tone);font-size:clamp(10px,1.15vw,13px);line-height:1;
}
html:root body .ponder-mini-inline.suit-h {--mini-tone:#ff4b86;}
html:root body .ponder-mini-inline.suit-d {--mini-tone:#c073ff;}
html:root body .ponder-mini-inline.suit-c {--mini-tone:#2adfa3;}
html:root body .ponder-mini-inline > .card-rank {
  position:relative!important;inset:auto!important;transform:none!important;
  font:600 1em/1 'Barlow Condensed','Arial Narrow',sans-serif!important;
  color:var(--mini-tone)!important;letter-spacing:0;text-shadow:none!important;
}
html:root body .ponder-mini-inline > .card-suit {
  position:static!important;transform:none!important;font:400 .9em/1 'Ponder Table Suit','Noto Sans JP',sans-serif!important;
  color:var(--mini-tone)!important;text-shadow:none!important;
  background:linear-gradient(155deg,color-mix(in srgb,var(--mini-tone) 40%,transparent),color-mix(in srgb,var(--mini-tone) 10%,transparent));
  background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  -webkit-text-stroke:.65px var(--mini-tone);
}
html:root body .ponder-mini-inline > .card-rank[data-rank="Q"]::after {
  content:'';position:absolute;width:.23em;height:.092em;left:.219em;bottom:-.004em;background:currentColor;
}
