/* --- Display (TV/Shared Screen) Styles --- */
.lobby-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: #f9fafb;
}

.qr-container {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
}

#qr-code {
    width: 200px;
    height: 200px;
}

.room-code-large {
    font-family: monospace;
    font-size: 4rem;
    letter-spacing: 0.3em;
    color: #4dabf7;
    margin: 20px 0;
}

.join-url {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 20px;
}

.player-count-text {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 20px;
}

.start-hint {
    font-size: 1.5rem;
    color: #ffd43b;
    margin-top: 30px;
}

/* --- Player List for Display --- */
.player-list-display {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.player-card {
    background: #1a1a2e;
    padding: 20px 40px;
    border-radius: 12px;
    min-width: 150px;
}

.player-card.ready {
    border: 2px solid #4ade80;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.player-status {
    color: #888;
    margin-top: 8px;
}

.player-status.ready {
    color: #4ade80;
}

/* --- Player Grid (Space Rocks Display) --- */
.player-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 30px auto;
}

.player-slot {
    background: #1a1a2e;
    padding: 20px;
    border-radius: 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
}

.player-slot.filled {
    border: 2px solid;
}

.player-slot.ready {
    background: #1a3a1a;
}

.slot-empty {
    color: #444;
}

/* --- Display Game Screen --- */
.game-screen-display {
    display: none;
    height: 100vh;
}

.display-game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 20px;
}

.player-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.player-label {
    font-size: 1.5rem;
    font-weight: 700;
}

.player-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4dabf7;
}

.display-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.display-hud-left,
.display-hud-right {
    display: flex;
    gap: 30px;
}

.display-hud .hud-item {
    text-shadow: 0 0 10px #000;
}

.display-hud .hud-label {
    font-size: 0.9rem;
    color: #888;
}

.display-hud .hud-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* --- Display Scoreboard --- */
.display-scoreboard {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 10;
}

.score-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-item.dead {
    opacity: 0.4;
}

.score-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* --- Marble Merge Display Game Canvas --- */
.display-game-container .game-canvas {
    background: #1a1a2e;
    border-radius: 12px;
}
