#bonus-draw {
  position: fixed;
  z-index: 30;
  top: max(88px, 17dvh);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}
#bonus-draw[hidden] {
  display: none;
}
.bonus-draw-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f5ead0;
  color: #183e2e;
  border: 1px solid #e0c178;
  border-radius: 12px;
  box-shadow: 0 8px 32px #051d1860;
  animation: bonus-reveal 2.8s both;
}
.bonus-draw-faces {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}
.bonus-draw-faces img {
  display: block;
  width: 54px;
  height: 72px;
}
.bonus-draw-faces > span {
  font-size: 14px;
  padding: 5px;
}
.bonus-draw-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 310px;
}
.bonus-draw-copy strong {
  font-size: 18px;
  line-height: 1.2;
}
.bonus-draw-copy span {
  font-size: 14px;
  line-height: 1.35;
}
.bonus-draw-copy small {
  font-size: 12px;
  color: #49644c;
}
.tile .tile-render.bonus-arrival {
  outline: 2px solid #ffe3a1;
  outline-offset: 1px;
  filter: drop-shadow(0 0 7px #ffce6f) !important;
}
@keyframes bonus-reveal {
  0% {
    opacity: 0;
    transform: translateY(9px) scale(0.97);
  }
  8%,
  85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (min-width: 801px) {
  .seat .bonus-row .tile.tiny,
  .hand-zone .bonus-row .tile.tiny {
    --tile-w: 33px;
    --tile-h: 44px;
  }
  .seat .bonus-row {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-block: 2px 5px;
  }
  .seat .bonus-piece {
    flex-shrink: 0;
  }
}
.landscape-bonus .tile {
  --tile-w: 25px;
  --tile-h: 34px;
  width: 25px;
  height: 34px;
}
.public-tiles .bonus .tile {
  width: 36px;
  height: 48px;
}
.own-public .bonus {
  margin: 0;
}
.own-public .bonus .tile {
  width: 33px;
  height: 44px;
}
@media (min-width: 560px) and (max-height: 600px) and (orientation: landscape) {
  .hand-topline .bonus-row .tile {
    --tile-w: 25px;
    --tile-h: 34px;
  }
  .landscape-declared {
    min-height: 36px;
  }
  .landscape-seat-left .landscape-rack,
  .landscape-seat-right .landscape-rack {
    max-height: calc(var(--rail) + 10px);
  }
}
@media (max-width: 800px) {
  #bonus-draw {
    top: max(82px, 13dvh);
    max-width: calc(100vw - 20px);
  }
  .bonus-draw-card {
    gap: 9px;
    padding: 10px 12px;
  }
  .bonus-draw-faces img {
    width: 39px;
    height: 52px;
  }
  .bonus-draw-copy {
    max-width: 215px;
  }
  .bonus-draw-copy strong {
    font-size: 15px;
  }
  .bonus-draw-copy span {
    font-size: 12px;
  }
  .bonus-draw-copy small {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bonus-draw-card {
    animation: none;
  }
}
