/* css/main/target-counter-and-rapid-fire.css — part 18/30 of the app styles (was css/main.css; loaded in this order by index.html). */
      /* ─────────────────────────────────────────────
         CONTADOR DE DIANA — setup, resultados, overlay, log
         ───────────────────────────────────────────── */
      .ctr-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border);
      }
      .ctr-section-title {
        font-family: "Oswald", sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: var(--muted);
        text-align: right;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .ctr-log-pill {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 44px;
        padding: 0 16px;
        background: var(--accent);
        color: var(--accent-fg);
        border: none;
        border-radius: 14px;
        font-family: "Oswald", sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        cursor: pointer;
        transition: opacity 0.15s;
      }
      .ctr-log-pill:active { opacity: 0.85; }
      .ctr-log-pill:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .ctr-log-pill svg { width: 18px; height: 18px; }
      .ctr-setup {
        overscroll-behavior: contain;
        padding: 16px 16px 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        flex: 1;
      }
      .ctr-card {
        background: var(--card);
        border-radius: 10px;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .ctr-card-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--muted);
        text-transform: uppercase;
        text-align: center;
      }
      .ctr-chip-row {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
      }
      .ctr-how-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        background: var(--card);
        border: none;
        border-radius: 10px;
        color: var(--text);
        font-family: "Oswald", sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
      }
      .ctr-how-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .ctr-how-toggle svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        transition: transform 0.2s;
      }
      .ctr-how-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
      .ctr-how-body {
        display: none;
        background: var(--card);
        border-radius: 10px;
        padding: 16px;
        font-size: 13px;
        color: var(--muted);
        line-height: 1.7;
      }
      .ctr-how-body.open { display: block; }
      .ctr-how-body p { margin: 0 0 10px; }
      .ctr-how-body p:last-child { margin: 0; }
      .ctr-start-wrap { padding: 12px 16px 16px; flex-shrink: 0; }
      .ctr-results {
        overscroll-behavior: contain;
        padding: 16px 16px 8px;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        flex: 1;
      }
      .ctr-results-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .ctr-overlay-bottom {
        padding: 12px 16px 16px;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .ctr-danger-btn {
        background: transparent;
        color: var(--danger);
        border: 1.5px solid var(--danger);
        border-radius: 10px;
        height: 40px;
        padding: 0 14px;
        font-family: "Oswald", sans-serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.15s;
      }
      .ctr-danger-btn:active { background: rgba(192, 57, 43, 0.12); }
      .ctr-danger-btn:focus-visible {
        outline: 2px solid var(--danger);
        outline-offset: 2px;
      }
      .ctr-log-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
      }
      .ctr-log-back {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
        cursor: pointer;
        transition: background 0.15s;
      }
      .ctr-log-back:active { background: var(--hover-strong); }
      .ctr-log-back:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .ctr-log-back svg { width: 22px; height: 22px; }
      .ctr-log-title {
        flex: 1;
        font-family: "Oswald", sans-serif;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--accent);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
      }
      .ctr-log-spacer {
        flex: 0 0 auto;
        width: 44px;
      }

      /* ─────────────────────────────────────────────
         TIRO RÁPIDO — comparte patrones con contador
         ───────────────────────────────────────────── */
      .tr-card {
        background: var(--card);
        border-radius: 10px;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .tr-segment-row {
        display: flex;
        gap: 8px;
      }
      .tr-segment {
        flex: 1;
        min-height: 44px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 14px;
        border: 1.5px solid var(--border);
        background: var(--card);
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s;
      }
      .tr-segment.active {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-dim);
      }
      .tr-segment:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .tr-segment svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
      }
      .tr-section-help {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.5;
      }
      .tr-section-help-warn {
        color: var(--danger);
        font-weight: 600;
      }
      .tr-meter-bar {
        background: var(--surface2);
        border-radius: 6px;
        height: 14px;
        overflow: hidden;
      }
      .tr-meter-fill {
        height: 100%;
        width: 0%;
        background: var(--success);
        transition: width 0.1s;
        border-radius: 6px;
      }
      .tr-icon-btn {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
        cursor: pointer;
        transition: background 0.15s;
      }
      .tr-icon-btn:active { background: var(--hover-strong); }
      .tr-icon-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .tr-icon-btn svg { width: 22px; height: 22px; }
      .tr-icon-btn-danger { color: var(--danger); }
      .tr-icon-btn-danger:focus-visible { outline-color: var(--danger); }
      .tr-modal-sheet-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 600;
        background: rgba(0, 0, 0, 0.82);
        align-items: flex-end;
        justify-content: center;
        padding: 0;
      }
      .tr-modal-sheet {
        overscroll-behavior: contain;
        background: var(--card);
        border-radius: 14px 14px 0 0;
        max-width: 480px;
        width: 100%;
        max-height: calc(90vh / var(--tl-zoom, 1));
        overflow-y: auto;
        padding: 20px 20px 32px;
      }
      .tr-modal-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        gap: 12px;
      }
      .tr-modal-sheet-title {
        font-family: "Oswald", sans-serif;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1px;
        flex: 1;
        min-width: 0;
      }
      .tr-modal-close {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        border-radius: 6px;
      }
      .tr-modal-close:hover { background: rgba(255, 255, 255, 0.05); }
      .tr-modal-close:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .tr-modal-close svg { width: 20px; height: 20px; }

