body {
  background: radial-gradient(ellipse at 75% 3%, #72573950, transparent 34%), radial-gradient(ellipse at 15% 28%, #34534280, transparent 50%), #101813;
}
.lounge-game > .heading { position: relative; isolation: isolate; padding: 1.15rem 1rem; min-height: 7.8rem; background: linear-gradient(112deg, #203c2e, #322f26); border-radius: .75rem; border: 1px solid #69705a; overflow: hidden; }
.lounge-game > .heading::before, .lounge-game > .heading::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .64; }
.lounge-game > .heading::before { background: #997954; clip-path: polygon(30% 100%, 49% 62%, 60% 69%, 76% 17%, 88% 49%, 94% 42%, 100% 58%, 100% 100%); }
.lounge-game > .heading::after { background: #193126; clip-path: polygon(17% 100%, 42% 73%, 55% 90%, 66% 62%, 80% 81%, 91% 53%, 100% 65%, 100% 100%); }
.lounge-game > .table { border-color: #8a7554; background-image: radial-gradient(ellipse at 40% 30%, #32835526, #13271a60), repeating-linear-gradient(125deg, #ffffff06 0 1px, transparent 1px 4px); }
.roulette-closing { outline: 2px solid #f2c486; outline-offset: 2px; border-radius: .45rem; }
#roulette-payouts { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin: .65rem 0; }
#roulette-payouts:empty { display: none; }
.payout-tag { border: 1px solid #d5af66; border-radius: 2rem; padding: .3rem .55rem; background: #1a3728; color: #ffe5a6; }
.lounge-payout .payout-tag { animation: payout-arrival 1.55s both; }
@keyframes payout-arrival { 0%, 65% { opacity: 0; } 100% { opacity: 1; } }
.dealer-button { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; color: #292118; background: #f4d7a0; border: 2px solid #aa8b52; font-weight: 700; font-size: .72rem; }
#flight-layer { position: fixed; z-index: 20; inset: 0; pointer-events: none; }
.flying-chip { position: absolute; will-change: transform; }
.dealer-felt { border: 1px solid #8a9d78; border-radius: 2rem 2rem .65rem .65rem; text-align: center; padding: .65rem; margin: .6rem 0 1rem; background: #13382b; }
.dealer-felt h2 { margin: .25rem 0 .6rem; }
.dealer-felt .cards { justify-content: center; align-items: center; min-height: 2.8rem; }
.dealer-reveal { display: inline-grid; }
.dealer-reveal .card { grid-area: 1 / 1; backface-visibility: hidden; }
.dealer-reveal .back { animation: dealer-back .3s both var(--dealer-delay); }
.dealer-reveal .card:not(.back) { animation: dealer-front .3s both var(--dealer-delay); }
.dealer-draw { animation: dealer-draw .34s ease-out both var(--dealer-delay); }
@keyframes dealer-back { 0%, 45% { transform: perspective(400px) rotateY(0); opacity: 1; } to { transform: perspective(400px) rotateY(-90deg); opacity: 0; } }
@keyframes dealer-front { 0%, 48% { transform: perspective(400px) rotateY(90deg); opacity: 0; } to { transform: perspective(400px) rotateY(0); opacity: 1; } }
@keyframes dealer-draw { from { transform: translate(.85rem,-.65rem); opacity: 0; } to { transform: translate(0); opacity: 1; } }
.dealer-outcome { display: inline-block; margin-left: .6rem; padding: .28rem .45rem; border-radius: .35rem; color: #f4f0e6; background: #393635; }
.outcome-won { background: #286144; }
.outcome-lost { background: #683938; }
.reaction-bar, .reaction-bubbles { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.reaction-bar { margin-top: .65rem; }
.reaction-bar button { padding: .37rem .55rem; }
.reaction-bubbles:empty { display: none; }
.table-reaction { display: flex; flex-direction: column-reverse; align-items: center; gap: .35rem; padding: .35rem; }
.reaction-copy { display: grid; gap: .2rem; }
.reaction-copy strong { font-size: .82rem; color: #f4d7a0; }
.reaction-copy span { padding: .3rem .5rem; border-radius: .65rem .65rem .65rem .15rem; background: #103325; border: 1px solid #809076; }
@media (prefers-reduced-motion: no-preference) {
  .roulette-closing { animation: roulette-warning .85s ease-in-out infinite alternate; }
  @keyframes roulette-warning { from { box-shadow: 0 0 0 #f4c87500; } to { box-shadow: 0 0 .65rem #f4c875; } }
}
@media (prefers-reduced-motion: reduce) {
  .lounge-payout .payout-tag, .dealer-reveal .card, .dealer-draw { animation: none; }
}
