/* ── Layout ───────────────────────────────────────────────────────────────── */
.ar-main {
    margin-top: 1rem;
}

/* ── How-to ──────────────────────────────────────────────────────────────── */
.ar-how-to {
    border: 1px solid rgba(0, 255, 255, 0.24);
    background: rgba(0, 255, 255, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.ar-how-to h3 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-accent);
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
}

.ar-how-to ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--game-text);
}

.ar-how-to li {
    margin: 0.5rem 0;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.4;
}

.ar-how-to li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--game-accent);
}

/* ── Config panel ────────────────────────────────────────────────────────── */
.ar-config {
    border: 1px solid rgba(0, 255, 255, 0.24);
    background: rgba(0, 255, 255, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.ar-config h3 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--game-accent);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.ar-config-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.ar-config-row label {
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    min-width: 150px;
}

.ar-config-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.ar-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--game-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.ar-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--game-accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.ar-speed-readout {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 70px;
    font-size: 1rem;
    color: var(--game-accent);
}

.ar-speed-unit {
    font-size: 0.78rem;
    color: var(--game-muted);
}

.ar-config-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ar-cfg-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: transparent;
    color: var(--game-muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: 120ms ease;
}

.ar-cfg-btn:hover {
    border-color: var(--game-accent);
    color: var(--game-accent);
}

.ar-cfg-btn.active {
    border-color: var(--game-accent);
    background: rgba(0, 255, 255, 0.12);
    color: var(--game-accent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.ar-config-note {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--game-muted);
    opacity: 0.7;
}

/* ── Game card ───────────────────────────────────────────────────────────── */
.ar-card {
    border: 1px solid rgba(0, 255, 255, 0.28);
    background: rgba(8, 14, 14, 0.88);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.1);
    padding: 1.2rem;
}

.ar-topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.ar-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--game-accent);
}

.ar-stats {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--game-muted);
    flex-wrap: wrap;
}

.ar-stats strong {
    color: var(--game-text);
}

.ar-instruction {
    min-height: 1.4rem;
    font-size: 0.88rem;
    color: var(--game-muted);
    border-left: 2px solid rgba(0, 255, 255, 0.4);
    padding-left: 0.7rem;
    margin-bottom: 0.8rem;
}

/* ── Timer bar ───────────────────────────────────────────────────────────── */
.ar-timer-track {
    height: 4px;
    background: rgba(0, 255, 255, 0.12);
    margin-bottom: 1rem;
    overflow: hidden;
}

.ar-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--game-accent);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    transform-origin: left;
    transition: background 0.3s ease;
}

.ar-timer-bar.urgent {
    background: var(--game-danger);
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.8);
}

/* ── Start button ────────────────────────────────────────────────────────── */
.ar-start-btn {
    display: block;
    margin: 0 auto 1rem;
    padding: 0.8rem 2.4rem;
    border: 1px solid var(--game-accent);
    background: rgba(0, 255, 255, 0.06);
    color: var(--game-accent);
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 140ms ease;
}

.ar-start-btn:hover {
    background: rgba(0, 255, 255, 0.14);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.ar-start-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

/* ── Arena (target board) ────────────────────────────────────────────────── */
.ar-board {
    position: relative;
    width: 100%;
    min-height: 460px;
    background: rgba(4, 10, 10, 0.92);
    border: 1px solid rgba(0, 255, 255, 0.18);
    overflow: hidden;
    cursor: crosshair;

    /* Subtle grid overlay */
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Targets ─────────────────────────────────────────────────────────────── */
.ar-target {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, rgba(0, 255, 255, 0.18), rgba(0, 40, 40, 0.85));
    border: 2px solid rgba(0, 255, 255, 0.85);
    box-shadow:
        0 0 14px rgba(0, 255, 255, 0.45),
        inset 0 0 18px rgba(0, 255, 255, 0.1);
    cursor: crosshair;
    animation: ar-spawn 0.18s ease-out forwards;
    user-select: none;
}

/* Inner ring decoration */
.ar-target::before {
    content: "";
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.4);
}

/* Centre dot */
.ar-target::after {
    content: "";
    position: absolute;
    inset: 44%;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
}

.ar-target:hover {
    border-color: #fff;
    box-shadow:
        0 0 22px rgba(0, 255, 255, 0.7),
        inset 0 0 24px rgba(0, 255, 255, 0.18);
}

.ar-target.hit {
    animation: ar-hit 0.22s ease-out forwards;
    pointer-events: none;
}

/* Miss flash on board */
.ar-board.miss-flash {
    animation: ar-miss-flash 0.25s ease-out;
}

@keyframes ar-spawn {
    from { transform: scale(0.2); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes ar-hit {
    0%   { transform: scale(1);    opacity: 1; }
    60%  { transform: scale(1.35); opacity: 0.6; }
    100% { transform: scale(0.1);  opacity: 0; }
}

@keyframes ar-miss-flash {
    0%, 100% { border-color: rgba(0, 255, 255, 0.18); }
    50%       { border-color: rgba(255, 60, 60, 0.8); box-shadow: inset 0 0 40px rgba(255, 0, 0, 0.15); }
}

/* ── Feedback line ───────────────────────────────────────────────────────── */
.ar-feedback {
    margin-top: 0.7rem;
    min-height: 1.3rem;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--game-muted);
    transition: color 0.2s;
}

.ar-feedback.success { color: var(--game-success); }
.ar-feedback.danger  { color: var(--game-danger);  }

/* ── Overlays (shared game-shell already handles .game-overlay) ─────────── */
