/* Shared table UI for the Classic Games Lounge: HUD, stage, action bar, banner, speech bubbles. */
.match-host { position: relative; z-index: 2; height: 100dvh; }
.table-screen.lt { height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, rgba(20,16,12,.0), rgba(0,0,0,.55)); }
.lt-hud { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: linear-gradient(180deg, rgba(8,7,10,.92), rgba(8,7,10,.72)); border-bottom: 1px solid var(--line); z-index: 7; flex-wrap: wrap; }
.lt-pl { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 4px; border-radius: 99px; border: 1px solid transparent; transition: border-color .3s, box-shadow .3s; min-width: 0; }
.lt-pl.turn { border-color: var(--brass); box-shadow: 0 0 16px rgba(214,178,94,.35); }
.lt-pl .who { line-height: 1.15; min-width: 0; } .lt-pl .who b { font: 700 .95rem Cinzel, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 170px; } .lt-pl .sub { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-pl .sc { text-align: center; padding-left: 8px; border-left: 1px solid var(--line); } .lt-pl .sc b { font: 700 1.45rem Cinzel, serif; color: var(--brass); display: block; line-height: 1; }
.lt-mid { order: 50; flex: 1; text-align: center; font-size: .88rem; color: var(--parch); min-width: 140px; }
.lt-hud .hud-right { order: 60; display: flex; gap: 6px; }
.lt-mono { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem Cinzel, serif; color: #20170c; border: 2px solid var(--brass); flex: none; }
.lt-stage { position: relative; flex: 1; min-height: 0; background: transparent; }
.board-host { position: absolute; inset: 0; display: grid; place-items: center; padding: 4px; }
.board-canvas { display: block; border-radius: 10px; box-shadow: 0 18px 60px rgba(0,0,0,.65); touch-action: none; }
.lt-bubble { position: absolute; z-index: 8; top: 10px; max-width: min(340px, 60vw); background: rgba(250,240,215,.96); color: #20170c; padding: 8px 14px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 22px rgba(0,0,0,.5); animation: ltpop .25s ease; }
.lt-bubble.pos0 { right: 12px; top: auto; bottom: 10px; } .lt-bubble.pos1 { left: 12px; } .lt-bubble.pos2 { left: 50%; transform: translateX(-50%); top: 8px; } .lt-bubble.pos3 { right: 12px; }
.lt-bubble.hidden, .lt-banner.hidden { display: none; }
@keyframes ltpop { from { transform: scale(.85); opacity: 0; } }
.lt-banner { position: absolute; z-index: 9; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(10,8,12,.94); border: 2px solid var(--brass); border-radius: 18px; padding: 18px 26px; text-align: center; box-shadow: 0 20px 70px rgba(0,0,0,.8); max-width: min(580px, 92vw); max-height: 86%; overflow: auto; }
.lt-banner .bn-text { font-size: 1.05rem; margin-bottom: 12px; }
.lt-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.lt-bar .msg { min-height: 1.3em; color: var(--parch); font-size: .92rem; text-align: center; }
.lt-bar .btns { flex-wrap: wrap; }
.lt-rot { display: none; position: absolute; z-index: 10; top: 6px; left: 50%; transform: translateX(-50%); font-size: .75rem; background: rgba(0,0,0,.7); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; color: var(--muted); }
.goal-chip { top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; }
.btn.act.fold { border-color: #8a3a3a; }
.btn.act .k { margin-left: 8px; font-size: .68rem; opacity: .6; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; max-height: 46vh; overflow: auto; }
.free-opp { display: flex; gap: 10px; align-items: center; padding: 8px 10px; cursor: pointer; } .free-opp.sel { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }
.rules-body p { margin: .2em 0 .8em; } .rules-body h3 { margin-bottom: .1em; color: var(--brass); } .rules-body ul { margin: .2em 0 .8em 1.2em; }
.lesson { max-width: min(1100px, 96vw); }
@media (orientation: portrait) and (max-width: 700px) { .lt-rot.show { display: block; } .lt-pl .who b { max-width: 100px; } .lt-pl .sub { display: none; } }
@media (max-height: 520px) { .lt-hud { padding: 3px 8px; } .lt-mono, .lt-pl canvas { width: 38px !important; height: 38px !important; } .lt-pl .tiny.sub { display: none; } .btn.act { padding: 7px 14px; font-size: .9rem; } .lt-bar { padding: 4px 8px; gap: 2px; } .lt-bar .msg { font-size: .8rem; min-height: 1em; } }
