/* =====================================================================
   lobby.css — Lobby (waiting room) and result-page styling.
   ===================================================================== */

.page-lobby { padding: 20px 16px 40px; }
.lobby-wrap { max-width: 520px; margin: 0 auto; }

.lobby-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lobby-eyebrow { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ivory-dim); }
.room-code { font-size: 34px; letter-spacing: 0.12em; margin: 0; }

.seats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }

.seat-card {
    background: rgba(25, 28, 40, 0.75);
    border: 1px solid rgba(232, 194, 95, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.seat-card.seat-card--empty { border-style: dashed; align-items: center; justify-content: center; color: var(--ivory-dim); font-size: 13px; }
.seat-card.seat-card--me { box-shadow: 0 0 0 2px var(--gold-500) inset; }
.seat-card.seat-card--red { border-left: 4px solid var(--ludo-red); }
.seat-card.seat-card--green { border-left: 4px solid var(--ludo-green); }
.seat-card.seat-card--yellow { border-left: 4px solid var(--ludo-yellow); }
.seat-card.seat-card--blue { border-left: 4px solid var(--ludo-blue); }

.seat-color-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ivory-dim); }
.seat-nickname { font-size: 16px; font-weight: 700; color: var(--ivory); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.seat-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(242, 240, 236, 0.1); color: var(--ivory-dim); }
.seat-badge--host { background: rgba(232, 194, 95, 0.2); color: var(--gold-400); }
.seat-badge--ready { background: rgba(90, 200, 130, 0.2); color: #8fd6a8; }
.seat-badge--waiting { background: rgba(242, 240, 236, 0.08); }
.seat-badge--offline { background: rgba(209, 73, 91, 0.2); color: #f3aab6; }

.lobby-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 8px; }
.ready-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ivory);
    padding: 12px 14px;
    background: rgba(25, 28, 40, 0.6);
    border: 1px solid rgba(242, 240, 236, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.ready-toggle input { width: 20px; height: 20px; accent-color: var(--gold-500); }

.lobby-hint { text-align: center; font-size: 13px; margin-top: 12px; }

/* --- Result page --- */
.result-card { text-align: center; }
.finish-order-list { display: flex; flex-direction: column; gap: 8px; text-align: left; margin: 20px 0; }
.finish-order-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(242, 240, 236, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
}
.finish-rank { font-weight: 700; color: var(--gold-400); min-width: 28px; }
.finish-color-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.finish-color-dot--red { background: var(--ludo-red); }
.finish-color-dot--green { background: var(--ludo-green); }
.finish-color-dot--yellow { background: var(--ludo-yellow); }
.finish-color-dot--blue { background: var(--ludo-blue); }
.finish-name { color: var(--ivory); font-weight: 600; }

.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

@media (min-width: 480px) {
    .seats-grid { grid-template-columns: repeat(2, 1fr); }
}
