/* LDR – estilos mínimos tipo app */

.ldr-bg {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
                radial-gradient(900px 500px at 90% 0%, rgba(0, 0, 0, 0.12), transparent 60%),
                #f7f7fb;
}

.ldr-log {
    height: 240px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.ldr-players {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 992px) {
    .ldr-players {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ldr-player {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldr-scoreboard {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.ldr-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0,0,0,.08);
}

.ldr-test {
    margin-top: 10px;
    max-height: 180px;
    overflow: auto;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.ldr-test-row {
    padding: 6px 4px;
    border-bottom: 1px dashed rgba(0,0,0,.12);
}

.ldr-test-row:last-child {
    border-bottom: none;
}

/* Jugador (pantalla completa) */
.ldr-player-body {
    margin: 0;
    height: 100vh;
    background: #000;
    overflow: hidden;
    touch-action: manipulation;
}

.ldr-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: block;
}

.ldr-hint {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
}

.ldr-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.ldr-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.ldr-screen--idle { background: #111; }
.ldr-screen--off  { background: #000; }
.ldr-screen--red  { background: #ff1f1f; }
.ldr-screen--blue { background: #1976ff; }
.ldr-screen--green{ background: #00c853; }
.ldr-screen--yellow{ background: #ffd600; }
.ldr-screen--white{ background: #ffffff; }

.ldr-flash {
    animation: ldrFlash 0.35s linear 0s 4;
}

@keyframes ldrFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(0.4); }
    100% { filter: brightness(1); }
}
