/* RipCord game channels: the lobby of games and tables, and the frame around one table. Each game's own board is drawn by
   its component (Components/Pages/Servers/Games/*.razor.css); this is only what they share. */

.gm { flex: 1; min-height: 0; display: flex; flex-direction: column; background-color: var(--rl-bg); background-image: var(--rl-bg-image, none); background-attachment: fixed; }
.gm__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem 2rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.gm__section { margin-bottom: 1.75rem; }
.gm__h { font-size: 1rem; font-weight: 650; margin: 0 0 .35rem; display: flex; align-items: center; gap: .5rem; }
.gm__count { font-size: .75rem; font-weight: 600; color: var(--rl-text-muted); background: var(--rl-surface-sunken); border-radius: 999px; padding: .05rem .5rem; }
.gm__hint { color: var(--rl-text-muted); font-size: .88rem; margin: .15rem 0 .75rem; }

.gm__games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .75rem; }
.gm-game { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem .9rem; border: 1px solid var(--rl-border); border-radius: var(--rl-radius, 10px); background: var(--rl-surface); }
.gm-game__glyph { font-size: 2rem; line-height: 1; width: 2.4rem; text-align: center; flex: none; }
.gm-game__body { flex: 1; min-width: 0; }
.gm-game__body h3 { margin: 0 0 .2rem; font-size: .98rem; font-weight: 650; }
.gm-game__body p { margin: 0 0 .3rem; font-size: .84rem; color: var(--rl-text-muted); }
.gm-game__body small { font-size: .75rem; color: var(--rl-text-muted); }

.gm-tables { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.gm-table { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--rl-border); border-radius: var(--rl-radius, 10px); background: var(--rl-surface); }
.gm-table__glyph { font-size: 1.6rem; flex: none; width: 2.2rem; text-align: center; }
.gm-table__body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.gm-table__phase { font-size: .78rem; color: var(--rl-text-muted); }
.gm-table__phase--playing { color: var(--rl-ok); }
.gm-table__seats { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem .7rem; }
.gm-seat { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; }
.gm-seat--empty { color: var(--rl-text-muted); font-style: italic; }
.gm-seat__dot, .gt-seat__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff; overflow: hidden; }
.gm-seat__dot img, .gt-seat__dot img { width: 100%; height: 100%; object-fit: cover; }
.gm-table__act { flex: none; }

/* One table */
.gt { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.gt__bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .55rem 1rem; border-bottom: 1px solid var(--rl-border); background: var(--rl-surface); position: sticky; top: 0; z-index: 2; }
.gt__title { margin: 0; font-size: 1rem; font-weight: 650; }
.gt__title small { color: var(--rl-text-muted); font-weight: 500; }
.gt__spacer { flex: 1; }
.gt__confirm { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }

.gt__seats { list-style: none; margin: 0; padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--rl-border); background: var(--rl-surface-raised); }
.gt-seat { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem .25rem .3rem; border-radius: 999px; border: 2px solid transparent; background: var(--rl-surface); font-size: .85rem; }
.gt-seat--turn { border-color: var(--rl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rl-accent) 22%, transparent); }
.gt-seat--won { border-color: var(--rl-ok); }
.gt-seat--left { opacity: .5; }
.gt-seat__tag { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; color: var(--rl-accent); }
.gt-seat--left .gt-seat__tag { color: var(--rl-text-muted); }
.gt-seat__x { border: 0; background: transparent; color: var(--rl-text-muted); cursor: pointer; padding: 0 .2rem; font-size: .8rem; line-height: 1; }
.gt-seat__x:hover { color: var(--rl-danger, #e5484d); }

.gt__lobby { padding: 1.5rem 1.25rem; max-width: 640px; }
.gt__lobbyBtns { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }
.gt__wait { color: var(--rl-text-muted); font-size: .9rem; }

.gt__result { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .7rem 1rem; background: color-mix(in srgb, var(--rl-ok) 14%, var(--rl-surface)); border-bottom: 1px solid var(--rl-border); }
.gt__result strong { font-size: 1.05rem; }
.gt__board { flex: 1; min-height: 0; padding: .75rem 1rem 1.5rem; display: flex; flex-direction: column; align-items: center; }
.gt__board > * { width: 100%; }
.gt__watching { padding: 0 1rem 1rem; }

@media (max-width: 640px) {
    .gm__scroll { padding: .75rem .75rem 2rem; }
    .gm-table { align-items: flex-start; flex-wrap: wrap; }
    .gt__board { padding: .5rem .5rem 1.25rem; }
}
