#access-screen[hidden], #access-content[hidden], #access-screen [hidden] { display: none !important; }
#access-screen { max-width: 30rem; margin: 2.5rem auto; padding: 0 1rem; color: #263c31; font: 1rem/1.6 system-ui, sans-serif; }
#access-screen a, #access-screen button { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 8px 4px 0; padding: 4px 10px; color: #294536; }

#access-content header.drinks-room-header {
  position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px; padding: 8px 12px;
  background: #fffdf6; border-bottom: 1px solid #d6d8c9;
}
#access-content .drinks-home, #access-screen a.drinks-home {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 14px; border-radius: 12px; background: #244c39; color: #fff;
  font: 700 1rem/1.25 system-ui, sans-serif; text-decoration: none;
}
.drinks-home:focus-visible { outline: 3px solid #976b16; outline-offset: 2px; }
#resume-drinks[hidden] { display: none; }

#access-screen[data-state="pending"], #pub-entry, #view > .pub-arrival {
  position: fixed; inset: 0; z-index: 40; display: grid; place-content: center;
  justify-items: center; gap: 22px; max-width: none; margin: 0; padding: 18px;
  background: radial-gradient(ellipse at 50% 42%, #254039, #102420 72%);
  color: #f4e9cb; text-align: center; font: 700 1.12rem/1.5 system-ui,sans-serif;
}
#access-screen[data-state="pending"] > :not(#access-message) { display: none; }
#access-screen[data-state="pending"] #access-message, #pub-entry p, #view > .pub-arrival { margin: 0; }
#access-screen[data-state="pending"]::before, #pub-entry::before, .pub-arrival::before {
  content: ''; display: block; width: 40px; height: 64px; border: 3px solid #d7b885;
  border-radius: 14px 14px 2px 2px; transform-origin: left center;
  background: radial-gradient(circle at 78% 57%, #f6dc8d 2px, transparent 3px), linear-gradient(100deg,#654b39,#413a30);
  box-shadow: 5px 0 0 #0d201d, 0 0 26px #f4ce7e36;
  animation: pub-door 1.15s ease-in-out infinite alternate;
}
@keyframes pub-door { from { transform: perspective(180px) rotateY(-8deg); } to { transform: perspective(180px) rotateY(-52deg); } }
@media(prefers-reduced-motion:reduce) {
  #access-screen[data-state="pending"]::before, #pub-entry::before, .pub-arrival::before { animation: none; }
}
.table-mark { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 9px; }
.table-mark img { width: 100%; height: 100%; object-fit: contain; }

:is(#games,.games) .table-card { display:flex; flex-direction:column; align-items:stretch; gap:0; min-width:0; overflow:hidden; padding:0; text-align:left;
  border:1px solid #ddd8ca; border-radius:14px; background:#fffdf8; box-shadow:0 3px 8px #392d1810; }
:is(#games,.games) .table-card .card-art { display:grid; place-items:center; position:relative; width:100%; height:auto; aspect-ratio:1; flex:none; grid-template: minmax(0,1fr) / minmax(0,1fr); }
:is(#games,.games) .table-card .table-mark { width:100%; height:100%; border-radius:0; }
:is(#games,.games) .table-card .table-mark img { display:block; object-fit:contain; }
.table-card .card-warning {
  position:absolute; top:7px; left:7px; padding:3px 8px; border:1px solid #d88484;
  border-radius:6px; background:#fff2f2; color:#b42323; font:750 .78rem/1.4 system-ui,sans-serif;
}
:is(#games,.games) .table-card .card-copy { display:grid; align-content:start; gap:3px; min-height:66px; padding:11px 12px 13px; }
:is(#games,.games) .table-card .card-title { color:#27362c; font:750 1rem/1.3 system-ui,sans-serif; }
:is(#games,.games) .table-card .card-sub { color:#586258; font:450 .83rem/1.4 system-ui,sans-serif; }

.drinks-room-header .room-invite { display:grid; gap:2px; min-width:0; max-width:100%; text-align:start; }
.room-invite strong { line-height:1.25; overflow-wrap:anywhere; }
.room-invite small { font-weight:500; }
