/* «الاستراحة» (public/tables/lounge.js, 2026-11-18; its root is «.lgw»: «.lg» is the games' big marbles and the site's legendary pictures): the bar on every page while one's in a lounge — a dark majlis pill with
   gold, the panel above it. One look on the site's pages and the games'. */
.lgw { --lg-ink: #FFF7E8; --lg-mut: #CDBFA8; --lg-line: rgba(255, 214, 140, .22); --lg-c1: rgba(40, 27, 17, .96); --lg-c2: rgba(20, 13, 9, .97); --lg-gold: #F5C451; --lg-ok: #2BD46A;
  position: fixed; z-index: 2147482000; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--lg-up, 0px)); display: grid; gap: 10px; justify-items: start;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; color: var(--lg-ink); line-height: 1.5; text-align: start; }
.lgw *, .lgw *::before, .lgw *::after { box-sizing: border-box; }
.lgw button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.lgw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; }

/* the pill */
.lg-pill { order: 3; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 99px; background: linear-gradient(180deg, var(--lg-c1), var(--lg-c2)); border: 1px solid var(--lg-line); box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 236, 200, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lg-ic { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #E5A532); box-shadow: 0 4px 12px rgba(229, 165, 50, .35); }
.lg-ic svg { width: 20px; height: 20px; }
.lg-heads { display: flex; align-items: center; border: 0; background: none; padding: 0 4px; cursor: pointer; }
.lg-h { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; margin-inline-start: -8px; box-shadow: 0 0 0 2px #1C130C; transition: box-shadow .15s ease; }
.lg-h:first-child { margin-inline-start: 0; }
.lg-h > * { width: 100% !important; height: 100% !important; }
.lg-h.off { filter: grayscale(.85) brightness(.75); }
.lg-h.talk { box-shadow: 0 0 0 2px #1C130C, 0 0 0 4px var(--lg-ok), 0 0 12px rgba(43, 212, 106, .7); }
.lg-more { margin-inline-start: 6px; font-size: 12px; color: var(--lg-mut); font-weight: 700; }
.lg-mic, .lg-in, .lg-go { flex: none; border: 1px solid var(--lg-line); background: rgba(255, 236, 200, .07); border-radius: 99px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 700; }
.lg-mic { width: 36px; padding: 0; justify-content: center; color: var(--lg-mut); }
.lg-mic.on { color: #05230F; background: linear-gradient(180deg, #6CEDA2, #22B45E); border-color: transparent; }
.lg-go { color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5B93A); border-color: transparent; animation: lgPulse 1.4s ease-in-out infinite alternate; }

/* the sound held back by the browser (a new page, no tap yet) */
.lg-tap { order: 2; border: 0; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 800; color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5B93A); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .7); cursor: pointer; animation: lgPulse 1.2s ease-in-out infinite alternate; }

/* the panel */
.lg-panel { order: 1; width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, var(--lg-c1), var(--lg-c2)); border: 1px solid var(--lg-line); box-shadow: 0 26px 70px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 236, 200, .1); display: grid; gap: 12px; animation: lgIn .28s cubic-bezier(.2, 1.2, .3, 1); }
.lg-top { display: flex; align-items: center; gap: 8px; }
.lg-top b { flex: 1; min-width: 0; font-size: 15.5px; color: #FFE7A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-top small { color: var(--lg-mut); font-size: 12px; }
.lg-x { border: 0; background: rgba(255, 236, 200, .08); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.lg-table { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(245, 196, 81, .12); border: 1px solid rgba(245, 196, 81, .4); font-size: 13.5px; }
.lg-table span { flex: 1; min-width: 0; }
.lg-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lg-p { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 14px; background: rgba(255, 236, 200, .05); text-align: center; min-width: 0; }
.lg-p b { justify-self: stretch; text-align: center; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* (the column's width: a shrink-to-fit name was cut by a fraction of a pixel in Safari) */
.lg-p small { font-size: 11px; color: var(--lg-mut); }
.lg-p.off { opacity: .55; }
.lg-pav { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: visible; display: grid; }
.lg-pav > :first-child { position: relative; width: 48px !important; height: 48px !important; border-radius: 50%; overflow: hidden; }
.lg-pav.sm, .lg-pav.sm > :first-child { width: 32px !important; height: 32px !important; }
.lg-p.talk .lg-pav > :first-child { box-shadow: 0 0 0 3px var(--lg-ok), 0 0 14px rgba(43, 212, 106, .7); }
.lg-crown { position: absolute; top: -8px; inset-inline-end: -6px; font-style: normal; font-size: 14px; }
.lg-mute { position: absolute; top: 6px; inset-inline-start: 6px; border: 0; background: rgba(0, 0, 0, .35); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 12px; }
.lg-voice { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--lg-line); background: rgba(255, 236, 200, .07); cursor: pointer; font-size: 13.5px; font-weight: 700; }
.lg-btn.gold { color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5C451 45%, #E5A532); border-color: transparent; }
.lg-btn.ghost { color: var(--lg-mut); }
.lg-btn.wide { flex-basis: 100%; }
.lg-btn.sm { flex: none; min-height: 32px; font-size: 12.5px; }
.lg-btn.done { color: var(--lg-ok); }
.lg-btn:focus-visible, .lg-ic:focus-visible, .lg-mic:focus-visible, .lg-g:focus-visible { outline: 2px solid #FFE7A3; outline-offset: 2px; }
.lg-panel h4 { margin: 2px 0 0; font-size: 13px; color: var(--lg-mut); }
.lg-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lg-g { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--lg-line); background: rgba(255, 236, 200, .05); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.lg-g img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.lg-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-inv { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; padding-top: 4px; border-top: 1px solid var(--lg-line); }
.lg-f { display: flex; align-items: center; gap: 10px; }
.lg-f b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-note { margin: 4px 0; color: var(--lg-mut); font-size: 12.5px; text-align: center; }
@keyframes lgIn { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lgPulse { from { box-shadow: 0 0 0 0 rgba(245, 185, 58, .5); } to { box-shadow: 0 0 0 6px rgba(245, 185, 58, 0); } }
@media (max-width: 600px) {
  .lgw:not(.dock) { inset-inline: 12px; justify-items: stretch; }
  .lg-pill { justify-self: start; }
  .lgw:not(.dock) .lg-panel { width: 100%; }
}

/* the dock (a phone; a game's page): on the screen's edge, dragged up or down it (--lg-f: its share of the screen's height) */
.lgw.dock { inset-inline-start: 0; inset-inline-end: auto; bottom: auto; top: clamp(60px, calc(var(--lg-f, .36) * 100%), calc(100% - 150px)); gap: 0; justify-items: start; }
.lg-dk { order: 3; display: grid; gap: 6px; padding: 6px; background: linear-gradient(180deg, var(--lg-c1), var(--lg-c2)); border: 1px solid var(--lg-line); border-inline-start: 0;
  border-start-end-radius: 20px; border-end-end-radius: 20px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 236, 200, .1); touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.lgw.drag .lg-dk { cursor: grabbing; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8), 0 0 0 2px rgba(245, 196, 81, .5); }
.lg-dic, .lg-dmic { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lg-dic { color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #E5A532); box-shadow: 0 4px 12px rgba(229, 165, 50, .35); }
.lg-dic svg { width: 21px; height: 21px; }
.lg-n { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #FFF7E8; background: #2B1C10; border: 1.5px solid var(--lg-gold); }
.lg-dmic { color: var(--lg-mut); background: rgba(255, 236, 200, .08); border: 1px solid var(--lg-line); }
.lg-dmic.on { color: #05230F; background: linear-gradient(180deg, #6CEDA2, #22B45E); border-color: transparent; }
.lg-dmic.me { box-shadow: 0 0 0 3px rgba(43, 212, 106, .45); }
.lg-dk.talk .lg-dic { box-shadow: 0 0 0 3px var(--lg-ok), 0 0 16px rgba(43, 212, 106, .75); }
.lg-dk.tb .lg-dic::after, .lg-dk.held .lg-dic::after { content: ""; position: absolute; bottom: -3px; inset-inline-end: -3px; width: 13px; height: 13px; border-radius: 50%; background: #FF5A4E; border: 2px solid #1C130C; animation: lgPulse 1.2s ease-in-out infinite alternate; }
.lg-dk.held .lg-dic::after { background: #4EA8FF; }
.lg-scrim { position: fixed; inset: 0; background: rgba(8, 5, 2, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: lgFade .2s ease; }
.lgw.dock .lg-panel { position: fixed; inset-inline-start: 64px; top: max(16px, calc(50% - 290px)); }
@media (max-width: 760px) {
  .lgw.dock .lg-panel { inset-inline: 0; top: auto; bottom: 0; width: 100%; max-height: 82vh; max-height: 82dvh; border-radius: 24px 24px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); animation: lgUp .3s cubic-bezier(.2, 1, .3, 1); }
  .lgw.dock .lg-panel::before { content: ""; justify-self: center; width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 236, 200, .25); margin-top: -4px; }
  .lgw.dock { inset-inline: 0 auto; }
}
@keyframes lgUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes lgFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lg-panel, .lg-go, .lg-tap, .lg-scrim, .lg-dk.tb .lg-dic::after, .lg-dk.held .lg-dic::after { animation: none; } }
