/* Game pages. Self-contained on purpose: the dashboard's /styles.css supplies the
   header and page frame, everything below is only the game UI. */
.mg { max-width: 920px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--text-color, #1e293b); }
.mg h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.mg .muted { color: #64748b; font-size: .92rem; }
.mg .card { background: #fff; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.mg label { display: block; font-size: .85rem; font-weight: 600; margin: .75rem 0 .3rem; }
.mg input[type=text], .mg textarea { width: 100%; box-sizing: border-box; padding: .6rem .7rem; font: inherit; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.mg textarea { resize: vertical; min-height: 2.6rem; }
.mg input:focus, .mg textarea:focus { outline: 2px solid #2563eb55; border-color: #2563eb; }

.mg button { font: inherit; cursor: pointer; border-radius: 8px; padding: .6rem 1.1rem; border: 1px solid #cbd5e1; background: #f1f5f9; color: inherit; }
.mg button:hover:not(:disabled) { background: #e2e8f0; }
.mg button.primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.mg button.primary:hover:not(:disabled) { background: #1d4ed8; }
.mg button:disabled { opacity: .5; cursor: not-allowed; }
.mg .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.mg .row > * { flex: 1 1 200px; }
.mg .row > button { flex: 0 0 auto; }

.mg .banner { padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; }
.mg .banner.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mg .banner.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.mg .roomhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mg .code { font-size: 1.9rem; font-weight: 800; letter-spacing: .25em; font-family: ui-monospace, monospace; }
.mg .timer { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mg .timer.urgent { color: #dc2626; }

.mg .layout { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; align-items: start; }
@media (max-width: 720px) { .mg .layout { grid-template-columns: 1fr; } }

.mg .players { list-style: none; margin: 0; padding: 0; }
.mg .players li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #f1f5f9; }
.mg .players li:last-child { border-bottom: 0; }
.mg .players li.away { opacity: .45; }
.mg .players .pname { font-weight: 600; overflow-wrap: anywhere; }
.mg .chip { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.mg .chip.ready, .mg .chip.voted { background: #dcfce7; color: #166534; }
.mg .chip.presenting { background: #dbeafe; color: #1e40af; }
.mg .score { font-variant-numeric: tabular-nums; font-weight: 700; }

.mg .bot { background: #f8fafc; border-left: 4px solid #2563eb; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .5rem; }
.mg .bot .who { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2563eb; }
.mg .bot.old { opacity: .55; border-left-color: #cbd5e1; }

.mg .stmt { display: block; width: 100%; text-align: left; padding: .9rem 1rem; margin-bottom: .6rem; border-radius: 10px; background: #fff; border: 2px solid #e2e8f0; font-size: 1.02rem; overflow-wrap: anywhere; }
.mg .stmt .num { font-weight: 800; color: #2563eb; margin-right: .6rem; }
.mg button.stmt:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.mg .stmt.mine { border-color: #2563eb; background: #eff6ff; }
.mg .stmt.lie { border-color: #dc2626; background: #fef2f2; }
.mg .stmt.truth { border-color: #16a34a; background: #f0fdf4; }
.mg .tag { float: right; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.mg .tag.lie { color: #dc2626; } .mg .tag.truth { color: #16a34a; }
.mg .liepick { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .85rem; font-weight: 400; }
.mg .liepick input { width: auto; }

.mg .lb { width: 100%; border-collapse: collapse; }
.mg .lb td { padding: .5rem .4rem; border-bottom: 1px solid #f1f5f9; }
.mg .lb tr.you td { font-weight: 700; }
.mg .lb td.pts { text-align: right; font-variant-numeric: tabular-nums; }

.mg .games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.mg .gcard { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 1.1rem 1.25rem; }
.mg a.gcard:hover { border-color: #2563eb; box-shadow: 0 2px 10px #2563eb22; }
.mg .gcard h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.mg .gcard p { margin: 0; color: #64748b; font-size: .92rem; }
.mg .gcard.soon { opacity: .6; }
.mg .badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; margin-bottom: .5rem; }
.mg .badge.live { background: #dcfce7; color: #166534; }
.mg .badge.next { background: #e2e8f0; color: #475569; }
