/* Live table scenes: declaration changes the whole surface, not a watermark. */
.table-view {
  --scene-base: #18382e;
  --scene-light: #315344;
  --scene-panel: #142c24;
  background-color: var(--scene-base);
  background-image:
    radial-gradient(ellipse at 50% 35%, var(--scene-light), transparent 75%),
    repeating-linear-gradient(35deg, #ffffff02 0 1px, transparent 1px 4px);
}
.table-view[data-trump="S"] {
  --scene-base: #142c40;
  --scene-light: #31546c;
  --scene-panel: #112332;
}
.table-view[data-trump="H"] {
  --scene-base: #38252c;
  --scene-light: #603e43;
  --scene-panel: #2a1d24;
}
.table-view[data-trump="C"] {
  --scene-base: #173c2a;
  --scene-light: #315c3f;
  --scene-panel: #112d21;
}
.table-view[data-trump="D"] {
  --scene-base: #3a2e20;
  --scene-light: #635234;
  --scene-panel: #292218;
}
.table-view[data-trump="NT"] {
  --scene-base: #2c293e;
  --scene-light: #504962;
  --scene-panel: #211e30;
}
.table-view .table-header,
.table-view .hand-dock {
  background: var(--scene-panel);
}
.table-view .call-field {
  background: var(--scene-panel);
}
.table-view .felt-lettering {
  display: none;
}
.table-view .felt-ring {
  border-color: #dddac514;
}
.table-wordmark .table-emblem {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 31px;
  letter-spacing: 0;
}
.table-emblem .joker-icon {
  position: static;
  width: 30px;
  height: 35px;
}
.clock svg {
  width: 100%;
  height: 100%;
}
.clock > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.seat[data-relation] .seat-avatar {
  border-width: 2px;
  box-shadow:
    0 0 0 3px var(--camp-ring),
    0 0 18px var(--camp-ring),
    0 0 32px var(--camp-ring),
    0 4px 12px #0004;
}
.seat[data-relation].active .seat-avatar {
  outline: none;
  box-shadow:
    0 0 0 5px var(--camp-ring),
    0 0 24px var(--camp-ring),
    0 0 38px var(--camp-ring),
    0 4px 12px #0004;
}
.seat-avatar {
  width: 64px;
  height: 64px;
  font-size: 30px;
}
.top-seat {
  grid-template-columns: 64px auto;
}
.seat-name {
  font-size: 16px;
}
.seat.you {
  max-width: 390px;
  min-width: 240px;
  gap: 14px;
}
.seat.you .seat-avatar {
  width: 76px;
  height: 76px;
  font-size: 35px;
}
.seat.you .seat-name {
  font-size: 22px;
  max-width: 180px;
  font-weight: 600;
}
.seat.you .seat-name small {
  font-size: 12px;
}
.seat.you .seat-badge {
  font-size: 14px;
}
#pile-escaped-score {
  color: #e3d5a9;
  font-weight: 600;
  font-size: 1.15em;
}
.escape-effect {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  pointer-events: none;
}
.escape-effect .poker-card {
  position: absolute;
  left: -22px;
  top: -30px;
  animation: score-escape 0.85s cubic-bezier(0.2, 0.7, 0.3, 1)
    var(--escape-delay) both;
}
.escape-label {
  position: absolute;
  left: 0;
  top: -62px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid #d2c18b66;
  border-radius: 6px;
  background: var(--scene-panel);
  color: #eee0a8;
  font-size: 20px;
  box-shadow: 0 4px 20px #0003;
  animation: escape-caption 1.2s ease-out both;
}
@keyframes score-escape {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.8);
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--escape-x), var(--escape-y))
      rotate(var(--escape-angle)) scale(0.65);
  }
}
@keyframes escape-caption {
  0% {
    opacity: 0;
    translate: 0 12px;
  }
  20%,
  65% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
    translate: 0 -15px;
  }
}
@media (max-width: 1200px) {
  .seat-avatar {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
  .top-seat {
    grid-template-columns: 54px auto;
  }
  .seat.you .seat-avatar {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }
  .seat.you .seat-name {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .seat-avatar {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .top-seat {
    grid-template-columns: 42px auto;
  }
  .seat-name {
    font-size: 13px;
  }
  .seat.you {
    max-width: 340px;
    min-width: 220px;
    gap: 10px;
  }
  .seat.you .seat-avatar {
    width: 58px;
    height: 58px;
    font-size: 27px;
  }
  .seat.you .seat-name {
    font-size: 18px;
    max-width: 130px;
  }
  .seat.you .seat-badge {
    font-size: 12px;
  }
  .escape-label {
    font-size: 16px;
    top: -57px;
  }
  .table-wordmark .table-emblem {
    width: 25px;
    height: 30px;
    font-size: 25px;
  }
  .table-emblem .joker-icon {
    width: 24px;
    height: 29px;
  }
}
