.tavern-games-entry,.hall-banner {
  --hall-art:url('locations/tavern-game-tables.webp');
  background-color:#281d12;
  background-size:cover;
  background-position:72% center;
}
.tavern-games-entry {
  display:flex; align-items:flex-end; justify-content:space-between; gap:.75rem 1rem; flex-wrap:wrap;
  min-height:clamp(150px,22vw,255px); margin-block:12px;
  padding:clamp(12px,3vw,24px); border-color:#876446;
  background-image:linear-gradient(90deg,#160e08d9,transparent 77%),linear-gradient(0deg,#1b130ee8,transparent 68%),var(--hall-art);
}
.tavern-games-entry :is(h2,p) { margin:0; }
.tavern-games-entry p { margin-top:.3rem; color:#f0daba; font-size:.89rem; }
.hall-card-shell { overflow:hidden; border:1px solid #8c6947; border-radius:6px; background:#201710; }
.hall-banner {
  min-height:clamp(145px,24vw,285px); display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between;
  align-items:flex-end; padding:clamp(12px,3vw,24px);
  background-image:linear-gradient(0deg,#1b130df0,transparent 75%),var(--hall-art);
}
.hall-banner h2 { margin:0; }
.hall-banner strong { font-size:.87rem; font-variant-numeric:tabular-nums; color:#ffe0a5; }
.hall-body { padding:clamp(8px,2.3vw,22px); }
.hall-game { margin-top:12px; display:grid; gap:.65rem; justify-items:start; }
.hall-game p { margin:0; }
.hall-chips { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.hall-chip {
  width:40px; aspect-ratio:1; border:2px dashed #b88e51; border-radius:50%;
  color:#f8e5bf; background:#5b2f22; font-weight:700; cursor:pointer;
}
.hall-chip[aria-pressed="true"] { box-shadow:0 0 0 2px #ffdea0; background:#7d4227; }
.hall-lock,.hall-result { color:#f0cf97; }
.hall-result:empty { display:none; }
.hall-limit { margin-top:1rem; padding-top:.65rem; border-top:1px solid #684d35; }
.hall-limit summary { cursor:pointer; color:#d8ba8d; }
.hall-limit p { margin:.55rem 0; font-size:.85rem; }
.cup-table { width:min(100%,425px); display:grid; grid-template-columns:repeat(3,1fr); gap:7%; border-radius:50% 50% 6px 6px; padding:.85rem 9% .6rem; background:radial-gradient(ellipse,#632b23,#382117 78%); }
.hall-cup {
  position:relative; isolation:isolate; display:grid; justify-items:center; gap:.55rem; min-width:0; padding:.45rem .2rem .15rem;
  color:#edcea3; background:none; border:1px solid transparent; border-radius:6px; cursor:pointer;
}
.hall-cup:disabled { opacity:1; cursor:default; }
.hall-cup:not(:disabled):hover { border-color:#bb874d; background:#ab7b3225; }
.cup-shell { display:block; width:min(100%,74px); aspect-ratio:1/1.1; border:2px solid #98683f; border-bottom:6px double #c58d50; border-radius:42% 42% 28% 28%/9% 9% 6% 6%;
  background:repeating-linear-gradient(78deg,#82512d49 0 2px,#3d1e0e4d 3px 5px,transparent 6px 13px),linear-gradient(90deg,#40200d,#b8783f 44%,#5b2a12 78%); 
  box-shadow:0 7px 9px #1209068c; }
.cup-ball { position:absolute; width:clamp(11px,3vw,19px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 30% 25%,#fff3ac,#9a4a26 75%); bottom:24%; box-shadow:0 2px 6px #140904; }
.hall-cup:has(.cup-ball) .cup-shell { transform:translateY(-20%); }
.cup-table.is-shuffling .hall-cup:nth-child(1) { animation:cup-left 1.25s ease-in-out both; z-index:2; }
.cup-table.is-shuffling .hall-cup:nth-child(2) { animation:cup-middle 1.25s ease-in-out both; z-index:3; }
.cup-table.is-shuffling .hall-cup:nth-child(3) { animation:cup-right 1.25s ease-in-out both; z-index:1; }
@keyframes cup-left { 25% {transform:translate(118%,-13%)} 52% {transform:translate(236%,0)} 77% {transform:translate(118%,12%)} }
@keyframes cup-middle { 25% {transform:translate(118%,10%)} 52% {transform:translate(-118%,0)} 77% {transform:translate(-118%,-11%)} }
@keyframes cup-right { 25% {transform:translate(-236%,4%)} 52% {transform:translate(-118%,-14%)} 77% {transform:translate(0,0)} }
.blackjack-table { display:grid; gap:.9rem; min-width:min(100%,370px); padding:12px; border:1px solid #546047; border-radius:5px; background:radial-gradient(ellipse,#344c33,#213024); }
.blackjack-table p { font-size:.85rem; color:#ecdfbd; margin-bottom:.3rem; }
.hall-hand { min-height:54px; display:flex; flex-wrap:wrap; gap:5px; }
.hall-card { display:grid; justify-items:center; align-content:center; width:clamp(30px,9vw,48px); aspect-ratio:3/4; border-radius:4px; color:#251d18; border:1px solid #d8b77c; background:#f8e4bb; font-size:.88rem; line-height:1.1; }
.hall-card.is-red { color:#a13027; }
.hall-card.is-hidden { color:#f1d4a2; background:repeating-linear-gradient(45deg,#743e32 0 4px,#542920 4px 8px); }
.roulette-layout { width:100%; display:grid; grid-template-columns:minmax(118px,205px) minmax(0,1fr); gap:clamp(12px,3vw,29px); }
.roulette-layout p { margin:.55rem 0; }
.roulette-wheel { position:relative; display:grid; place-items:center; width:100%; max-width:210px; aspect-ratio:1; border:6px double #b98950; border-radius:50%; background:#41291c; box-shadow:0 5px 14px #170d08; }
.roulette-disc { position:absolute; inset:5px; border-radius:50%; background:var(--wheel); transform:rotate(var(--angle)); box-shadow:inset 0 0 0 2px #c1996b; }
.roulette-disc.is-spinning { animation:wheel-spin 2s cubic-bezier(.12,.64,.19,1) both; }
@keyframes wheel-spin { from {transform:rotate(var(--from))} to {transform:rotate(var(--angle))} }
.roulette-wheel b { z-index:1; display:grid; place-items:center; width:48%; aspect-ratio:1; border:3px double #a77749; border-radius:50%; color:#ffe3a9; background:#271810; }
.roulette-pointer { position:absolute; z-index:1; inset-block-start:-7px; transform:scaleX(.8); color:#ffe3a9; }
.roulette-board,.roulette-outside { display:grid; gap:2px; margin-top:6px; }
.roulette-board { grid-template-columns:repeat(13,minmax(0,1fr)); }
.roulette-outside { grid-template-columns:repeat(6,minmax(0,1fr)); }
.roulette-outside :nth-last-child(-n+3) { grid-column:span 2; }
.roulette-cell { position:relative; min-width:0; min-height:34px; padding:2px 1px; border:1px solid #767852; border-radius:2px; color:#fff4dc; background:#394d32; font-size:clamp(.55rem,2vw,.83rem); font-weight:600; cursor:pointer; }
.roulette-cell.green { grid-row:span 3; }
.roulette-cell.red { background:#8a352c; }
.roulette-cell.black { background:#302724; }
.roulette-cell[aria-pressed="true"] { outline:1px solid #ffdea1; z-index:1; }
.placed-chip { position:absolute; bottom:-2px; right:-2px; border:1px solid #e8c586; border-radius:100%; padding:1px 2px; font-size:.64rem; color:#402914; background:#f4cd87; pointer-events:none; }
.chat-alms { display:flex; flex-wrap:wrap; gap:5px; margin:4px 0 2px; }
.chat-alms .button { min-height:24px; padding:1px 6px; font-size:.78rem; }
.chat-beggar { border-inline-start:2px solid #ba9362; }
.chat-beggar img { width:26px; height:26px; object-fit:contain; float:left; margin-inline-end:6px; }
@media(max-width:620px) {
  .roulette-layout { grid-template-columns:minmax(0,1fr); }
  .roulette-display { display:grid; justify-items:center; }
  .roulette-wheel { max-width:130px; }
  .roulette-board { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .roulette-board .green { grid-row:span 6; }
  .roulette-cell { min-height:36px; }
}
