/* The shared suit sheet holds 176 px of real ink per card. Larger prints are
   individual faces so an enlarged queen never downloads an entire enlarged suit. */
:is(.playing-card,.deck-card,.salon-card,.flying-card):has(>.card-print){container-type:inline-size}
[data-card-surface] .card-drop-ready {
  outline:3px solid #f3d49a;
  outline-offset:-3px;
  box-shadow:inset 0 0 0 5px #4c3e28;
}
.card-print::after {
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(132deg,#fff9e826,transparent 32%,transparent 76%,#795b3312);
}
.flying-card .card-print::after {
  background:linear-gradient(118deg,#fffdf867,transparent 37%,transparent 64%,#73563321);
}
.flying-card.salon-chip {
  box-shadow:inset 1px 1px 2px #fffa,inset -1px -2px 2px #1b1b1766,0 2px #493e32,2px 6px 7px #14221b70!important;
}
.table-kort .playing-card:disabled:not(.playable-card) {opacity:.8}
.card-rest-surface{position:relative}
.table-holding-object,.table-holding-object [data-card-surface]{cursor:grabbing}
[data-card-surface] [data-free-card]{cursor:grab}
[data-card-surface] .table-paper-away{opacity:.24}
.table-free-felt{
  position:absolute;z-index:7;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;
  padding:3px 8px;border:1px dashed #eee3bb9c;border-radius:8px;color:#ffefd0;background:#193e34de;
  font:600 11px/1.25 var(--font-body,system-ui);letter-spacing:.015em;
}
.card-rest-surface :is(.table-rest-object,.table-peer-flight){
  --rest-width:clamp(41px,5vw,72px);--rest-height:calc(var(--rest-width)*1.42);
  display:block;position:absolute;z-index:6;translate:-50% -50%;rotate:var(--rest-turn,0deg);
  width:var(--rest-width);height:var(--rest-height);min-width:0;min-height:0;margin:0;padding:0;
  border:0;border-radius:5%;background:none;box-shadow:none;touch-action:none;user-select:none;
}
.card-rest-surface :is(.table-rest-object,.table-peer-flight).rest-chip{--rest-width:clamp(28px,4vw,44px);--rest-height:var(--rest-width)}
.card-rest-surface :is(.table-rest-object,.table-peer-flight)>:is(.deck-card,.salon-chip){display:block;width:100%;height:100%;margin:0;min-width:0;min-height:0}
.card-rest-surface :is(.table-rest-object,.table-peer-flight)>.card-back{border:2px solid #e1d4b8;border-radius:6%;background:repeating-linear-gradient(45deg,transparent 0 4px,#d3b98894 4.5px 5.5px),repeating-linear-gradient(-45deg,#21534d 0 4px,#a5946b 4.5px 5.5px);box-shadow:1px 2px 4px #132d2880}
.card-rest-surface .table-rest-object[data-rest-own]{cursor:grab}
.card-rest-surface .table-rest-object:focus-visible{outline:3px solid #f6d798;outline-offset:3px}
.card-rest-surface .table-rest-object:not([data-rest-own]),.card-rest-surface .table-peer-flight,.table-holding-object .table-rest-object{pointer-events:none}
.card-rest-surface .table-peer-flight{z-index:8;filter:drop-shadow(2px 5px 3px #10251e5c)}
.rest-arriving{animation:show-rest-paper var(--rest-delay,340ms) step-end backwards}
@keyframes show-rest-paper{from{visibility:hidden}to{visibility:visible}}
@media(prefers-reduced-motion:reduce){.rest-arriving{animation:none}}
@container (min-width:176px){.card-print{background:var(--face-medium) center/100% 100% no-repeat}}
@container (min-width:384px){.card-print{background-image:var(--face-large)}}
@container (min-width:768px){.card-print{background-image:var(--face-poster)}}
@media(min-resolution:1.5dppx){
  @container (min-width:88px){.card-print{background:var(--face-medium) center/100% 100% no-repeat}}
  @container (min-width:192px){.card-print{background-image:var(--face-large)}}
  @container (min-width:384px){.card-print{background-image:var(--face-poster)}}
}
@media(min-resolution:2.5dppx){
  @container (min-width:58px){.card-print{background:var(--face-medium) center/100% 100% no-repeat}}
  @container (min-width:128px){.card-print{background-image:var(--face-large)}}
  @container (min-width:256px){.card-print{background-image:var(--face-poster)}}
}
