.table-prop-panel {
  position: fixed;
  z-index: 90;
  box-sizing: border-box;
  width: min(19rem, calc(100vw - 16px));
  padding: 10px;
  border: 1px solid #98734a;
  border-radius: 12px;
  background: #211913;
  color: #fff1d6;
  box-shadow: 0 8px 22px #0009;
}
.table-prop-panel[hidden] { display: none; }
.table-prop-title {
  display: block;
  margin: 0 44px 6px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 30px;
}
.table-prop-close, .table-prop-choice {
  color: inherit;
  background: #32251b;
  border: 1px solid #806548;
  border-radius: 7px;
  cursor: pointer;
}
.table-prop-close {
  position: absolute;
  inset: 6px 7px auto auto;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.table-prop-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.table-prop-choice {
  min-height: 54px;
  display: grid;
  justify-items: center;
  place-content: center;
  gap: 1px;
  padding: 3px 1px;
  font-size: 12px;
  white-space: nowrap;
}
.table-prop-choice:hover, .table-prop-close:hover { background: #57412d; }
.table-prop-panel button:focus-visible { outline: 2px solid #ffda83; outline-offset: 1px; }
.table-prop-stage {
  position: fixed;
  z-index: 95;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.table-prop-effect { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.table-prop-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 28px;
  color: #efbb63;
}
.table-prop-effect .table-prop-icon {
  position: absolute;
  top: -14px;
  left: -18px;
  transform: rotate(var(--prop-turn, 0deg)) scale(1.4);
  filter: drop-shadow(0 0 5px #2b1609);
}
.table-prop-icon .table-prop-detail, .table-prop-icon::before, .table-prop-icon::after {
  position: absolute;
  box-sizing: border-box;
}
.table-prop-icon::before, .table-prop-icon::after { content: ""; }
.prop_toast .table-prop-detail {
  inset: 4px auto auto 5px;
  width: 12px;
  height: 19px;
  background: linear-gradient(172deg, #fff0bd55 26%, #df9634 30%, #ac4e1c);
  border: 1px solid #ffe4a2;
  border-bottom-width: 3px;
  border-radius: 2px 2px 4px 4px;
  transform: rotate(-17deg);
}
.prop_toast .table-prop-detail + .table-prop-detail { left: 19px; transform: rotate(17deg); }
.prop_toast::after { width: 11px; height: 6px; left: 13px; top: 0; background: #ffefb2; clip-path: polygon(50% 0, 61% 38%, 100% 20%, 78% 62%, 100% 100%, 50% 85%, 0 100%, 21% 60%, 0 20%, 39% 38%); }
.prop_hourglass::before {
  inset: 3px 9px;
  background: linear-gradient(#fbe3a1aa, #a8692c 50%, #eab65a 80%);
  clip-path: polygon(0 0, 100% 0, 95% 25%, 62% 50%, 95% 75%, 100% 100%, 0 100%, 5% 75%, 38% 50%, 5% 25%);
}
.prop_hourglass .table-prop-detail {
  left: 7px;
  top: 2px;
  width: 22px;
  height: 4px;
  background: linear-gradient(#ffe6aa, #b67a36);
  border-radius: 3px;
}
.prop_hourglass .table-prop-detail + .table-prop-detail { top: 22px; }
.prop_tomato::before {
  inset: 6px 5px 3px;
  border-radius: 48% 56% 49% 50%;
  background: radial-gradient(ellipse at 31% 26%, #ffcb9b 0%, #e36045 22%, #ac241c 78%);
}
.prop_tomato::after { top: 4px; left: 10px; width: 16px; height: 9px; background: #79a457; clip-path: polygon(44% 38%, 56% 0, 65% 5%, 60% 36%, 100% 22%, 70% 58%, 84% 100%, 52% 72%, 20% 100%, 29% 55%, 0 28%); }
.prop_clap::before {
  inset: 1px 2px 0;
  background: repeating-conic-gradient(from 260deg at 50% 89%, #e6bd7e 0deg 8deg, #a94f3b 9deg 13deg, #edb863 14deg 15deg);
  clip-path: polygon(50% 93%, 0 46%, 7% 28%, 17% 18%, 30% 13%, 42% 7%, 57% 7%, 70% 13%, 83% 18%, 93% 28%, 100% 46%);
}
.prop_clap::after { inset: auto 15px 2px; height: 5px; background: #ecbd72; border-radius: 50%; }
.table-prop-burst {
  position: absolute;
  inset: -23px auto auto -23px;
  width: 46px;
  height: 46px;
  opacity: 0;
  border: 2px solid #ebbf71;
  border-radius: 50%;
  box-sizing: border-box;
}
.table-prop-arrived .table-prop-icon { animation: table-prop-pop 1200ms ease-out both; }
.table-prop-arrived .table-prop-burst { animation: table-prop-ring 1200ms ease-out both; }
.table-prop-arrived .prop_hourglass { animation-name: table-prop-shake; }
.table-prop-arrived .prop_clap { animation-name: table-prop-fan; }
.table-prop-arrived .prop_toast .table-prop-detail { animation: table-prop-clink 350ms ease-out both; }
.table-prop-arrived .prop_toast .table-prop-detail + .table-prop-detail { animation-direction: reverse; }
.table-prop-arrived:has(.prop_tomato) .table-prop-burst {
  border: none;
  background: #d54c37;
  clip-path: polygon(45% 30%, 60% 6%, 64% 33%, 86% 16%, 78% 43%, 100% 60%, 72% 60%, 82% 87%, 56% 74%, 34% 100%, 32% 71%, 5% 84%, 22% 56%, 0 41%, 32% 41%, 25% 15%);
}
@keyframes table-prop-pop {
  0% { transform: scale(1.4); }
  29% { transform: scale(1.8); }
  100% { transform: scale(1.2); opacity: 0; }
}
@keyframes table-prop-ring {
  0% { transform: scale(.55); opacity: .85; }
  28% { transform: scale(1.35); opacity: .63; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes table-prop-shake {
  0%, 36%, 58% { transform: rotate(0) scale(1.42); }
  9%, 27% { transform: rotate(-26deg) scale(1.49); }
  18% { transform: rotate(26deg) scale(1.49); }
  100% { transform: scale(1.12); opacity: 0; }
}
@keyframes table-prop-fan {
  0% { transform: scale(.65, 1.22); }
  17%, 45% { transform: scale(1.65) rotate(-8deg); }
  100% { transform: scale(1.32); opacity: 0; }
}
@keyframes table-prop-clink {
  0% { rotate: 13deg; }
  36% { rotate: -12deg; }
  100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .table-prop-effect:not(.table-prop-arrived) { visibility: hidden; }
  .table-prop-arrived .table-prop-icon { animation: none; }
  .table-prop-arrived .prop_toast .table-prop-detail { animation: none; }
  .table-prop-arrived .table-prop-burst { animation: none; opacity: .65; }
}
