/* ── Tron Light-Cycles ── */

.tron-host,
.tron-player {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem;
}

.tron-round-info {
    font-size: 1rem;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.tron-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    border: 2px solid #00ffff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
    background: #0a0a0a;
    overflow: hidden;
}

.tron-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay for countdown / round-end / finished */
.tron-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.tron-countdown {
    text-align: center;
}

.tron-countdown-num {
    font-size: 5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    line-height: 1;
}

.tron-countdown-label {
    font-size: 1.25rem;
    color: #aaa;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tron-round-result {
    text-align: center;
}

.tron-result-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Host status bar */
.tron-host-status {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

.tron-alive-counter {
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

/* Mobile turn buttons */
.tron-mobile-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

.tron-turn-btn {
    flex: 1;
    padding: 1.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 2px solid #00ffff;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background 0.1s, box-shadow 0.1s;
}

.tron-turn-btn:active {
    background: rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.4), inset 0 0 16px rgba(0, 255, 255, 0.1);
}

.tron-scoreboard-container {
    width: 100%;
    max-width: 400px;
}
