.dsr-root {
    display: flex;
    flex-direction: column;
}

.dsr-screen.hidden { display: none !important; }

.dsr-title {
    text-align: center;
    font-size: 2.4rem;
    margin: 8px 0 4px;
}

.dsr-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.dsr-controls-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 28px;
    max-width: 420px;
    background: var(--panel);
    border-radius: 14px;
    padding: 16px 20px;
}

.dsr-controls-list li {
    padding: 6px 0;
    color: var(--text);
    font-size: 0.95rem;
}

#dsr-start-btn {
    display: block;
    margin: 0 auto;
}

.dsr-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05060a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#dsr-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.dsr-hud-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    font-family: var(--heading-font);
}

.dsr-shield-block, .dsr-distance-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(5, 6, 12, 0.55);
    padding: 6px 12px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.dsr-shield-block .hud-label, .dsr-distance-block .hud-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.dsr-shield-bar {
    width: 140px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.dsr-shield-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4dd0e1, #2ecc71);
    transition: width 0.2s ease;
}

.dsr-shield-fill.low {
    background: linear-gradient(90deg, #ff6b4d, #ff2d2d);
}

.dsr-lives-block {
    background: rgba(5, 6, 12, 0.55);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 1rem;
    backdrop-filter: blur(2px);
}

.dsr-distance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.dsr-message {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 6, 12, 0.7);
    color: var(--accent);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    pointer-events: none;
    white-space: nowrap;
}

.dsr-message.hidden { display: none; }

.dsr-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border: 2px solid rgba(255, 80, 60, 0.85);
    border-radius: 50%;
    pointer-events: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dsr-reticle::before, .dsr-reticle::after {
    content: '';
    position: absolute;
    background: rgba(255, 80, 60, 0.85);
}

.dsr-reticle::before { top: 50%; left: -10px; right: -10px; height: 2px; transform: translateY(-1px); }
.dsr-reticle::after { left: 50%; top: -10px; bottom: -10px; width: 2px; transform: translateX(-1px); }

.dsr-reticle.locked {
    border-color: #6dff7a;
    transform: scale(0.85);
}

.dsr-reticle.locked::before, .dsr-reticle.locked::after {
    background: #6dff7a;
}

.dsr-reticle.hidden { display: none; }

.dsr-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 14, 0.75);
}

.dsr-overlay.hidden { display: none; }

.dsr-overlay-panel {
    background: var(--panel);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    max-width: 340px;
}

.dsr-overlay-panel h2 {
    color: var(--accent);
    margin-top: 0;
}

.dsr-overlay-actions .primary-button {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #7ee787, #35b04a);
    color: #0e1024;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .dsr-shield-bar { width: 90px; }
    .dsr-hud-top { font-size: 0.85rem; }
}
