/* Exerciții rapide (js/exercitii-rapide.js). Pagina de alegere urmează tema site-ului (tokenuri
   pe :root, redefinite sub body.dark-theme). Playerul e mereu închis la culoare: se citește
   mai ușor de la 1–2 metri, cu telefonul sprijinit, și nu orbește seara. */
:root {
    --exr-accent: #0f766e;
    --exr-accent-2: #14b8a6;
    --exr-on-accent: #ffffff;
    --exr-page-bg: #f3f7f6;
    --exr-card-bg: #ffffff;
    --exr-card-border: #d5e6e2;
    --exr-ink: #0f172a;
    --exr-muted: #4b5b63;
    --exr-shadow: 0 10px 28px rgba(15, 60, 55, .12);
    --exr-chip: #e6f4f1;
    /* playerul */
    --exr-p-bg: #0b1220;
    --exr-p-panel: #111a2c;
    --exr-p-ink: #f8fafc;
    --exr-p-muted: #a7b4c6;
    --exr-p-line: #24324a;
    --exr-p-btn: #1c2840;
    --exr-p-btn-hi: #26355a;
    --exr-good: #22c55e;
    --exr-warn: #f59e0b;
    --exr-bad: #ef4444;
}

body.dark-theme {
    --exr-accent: #2dd4bf;
    --exr-accent-2: #5eead4;
    --exr-on-accent: #04201c;
    --exr-page-bg: #0b1116;
    --exr-card-bg: #131c24;
    --exr-card-border: #24343d;
    --exr-ink: #e8eef2;
    --exr-muted: #a3b2bb;
    --exr-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    --exr-chip: #17312d;
}

/* clip, nu hidden: `body { overflow-x: hidden }` de pe tot site-ul face din <body> un
   container de derulare care nu se derulează și strică position: sticky. */
.exr-body, body.exr-body#page-top {
    background: var(--exr-page-bg);
    color: var(--exr-ink);
    overflow-x: clip;
    min-height: 100vh;
}

/* ───────────── Pagina de alegere ───────────── */
.exr-home { padding-top: 84px; padding-bottom: 40px; }
.exr-wrap { max-width: 980px; }
.exr-hero { text-align: center; padding: 4px 0 14px; }
.exr-hero .container { max-width: 760px; }
.exr-hero h1 { font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.5rem); margin: 0 0 6px; display: inline-flex; align-items: center; gap: 12px; color: var(--exr-ink); }
.exr-hero-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: var(--exr-shadow); }
.exr-lead { max-width: 620px; margin: 0 auto; color: var(--exr-muted); font-size: 1.05rem; line-height: 1.55; }

.exr-h2 { font-size: 1.3rem; font-weight: 800; margin: 26px 0 12px; color: var(--exr-ink); }

/* culorile rutinelor */
.exr-theme-dimineata { --exr-g1: #f59e0b; --exr-g2: #ea580c; }
.exr-theme-dupa-munca { --exr-g1: #14b8a6; --exr-g2: #2563eb; }
.exr-theme-seara { --exr-g1: #6366f1; --exr-g2: #7c3aed; }

.exr-sug {
    border-radius: 22px;
    padding: 20px 18px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--exr-g1), var(--exr-g2));
    box-shadow: var(--exr-shadow);
}
.exr-sug-kicker { margin: 0 0 4px; font-weight: 700; opacity: .92; font-size: .95rem; letter-spacing: .02em; }
.exr-sug-titlu { margin: 0 0 6px; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; color: #fff; }
.exr-sug-text { margin: 0 0 14px; font-size: 1rem; line-height: 1.5; opacity: .95; max-width: 640px; }
.exr-sug-btns, .exr-card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.exr-go {
    min-height: 64px;
    border: 0;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--exr-g1), var(--exr-g2));
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    cursor: pointer;
    touch-action: manipulation;
}
.exr-go:active { transform: translateY(1px); }
.exr-go:focus-visible, .exr-ctl:focus-visible, .exr-sec:focus-visible, .exr-begin:focus-visible, .exr-mic-btn:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.exr-go-big { min-height: 76px; font-size: 1.5rem; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .55); box-shadow: none; }
.exr-go-big.is-last { background: #fff; color: var(--exr-g2); border-color: #fff; }

.exr-serie { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--exr-card-bg); border: 1px solid var(--exr-card-border); font-weight: 700; color: var(--exr-ink); }
.exr-serie b { color: var(--exr-accent); }

.exr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.exr-card {
    background: var(--exr-card-bg);
    border: 1px solid var(--exr-card-border);
    border-top: 6px solid var(--exr-g1);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--exr-shadow);
    display: flex; flex-direction: column; gap: 10px;
}
.exr-card h3 { margin: 0; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--exr-ink); }
.exr-card h3 small { flex-basis: 100%; font-size: .85rem; font-weight: 600; color: var(--exr-muted); }
.exr-card-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--exr-g1), var(--exr-g2)); }
.exr-card-text { margin: 0; color: var(--exr-muted); line-height: 1.5; flex: 1; }
.exr-card .exr-go.is-last { outline: 3px solid var(--exr-g1); outline-offset: 2px; }
.exr-ce summary, .exr-more summary { cursor: pointer; font-weight: 700; color: var(--exr-accent); padding: 6px 0; }
.exr-ce-body h4 { font-size: .95rem; font-weight: 800; margin: 8px 0 4px; color: var(--exr-ink); }
.exr-ce-body ol { margin: 0 0 6px; padding-left: 1.3rem; color: var(--exr-muted); font-size: .95rem; }
.exr-ce-body li span { color: var(--exr-muted); opacity: .85; }

.exr-box { margin-top: 18px; background: var(--exr-card-bg); border: 1px solid var(--exr-card-border); border-radius: 18px; padding: 4px 16px 14px; box-shadow: var(--exr-shadow); }
.exr-box p, .exr-box li { line-height: 1.55; }
.exr-safety-short { font-weight: 600; padding: 10px 12px; border-radius: 12px; background: var(--exr-chip); }
.exr-sig-intro { margin-bottom: 8px; color: var(--exr-muted); }
.exr-toggles { display: grid; gap: 8px; }
.exr-switch { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 52px; border-radius: 12px; border: 1px solid var(--exr-card-border); cursor: pointer; font-weight: 600; }
.exr-switch input { width: 24px; height: 24px; accent-color: var(--exr-accent); flex: none; }
.exr-note { color: var(--exr-muted); font-size: .95rem; }
.exr-cmds { columns: 2 220px; padding-left: 1.2rem; }
.exr-privacy { font-size: .92rem; color: var(--exr-muted); border-left: 4px solid var(--exr-accent); padding-left: 10px; }
.exr-table-wrap { overflow-x: auto; }
.exr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.exr-table th, .exr-table td { padding: 8px 6px; border-bottom: 1px solid var(--exr-card-border); text-align: center; }
.exr-table th:first-child, .exr-table td:first-child { text-align: left; }
.exr-table th small { font-weight: 500; color: var(--exr-muted); }
.exr-sources a, .exr-links a { color: var(--exr-accent); }
.exr-sources ul { padding-left: 1.2rem; }

/* ───────────── Playerul ───────────── */
body.exr-playing { overflow: hidden; overscroll-behavior: none; }
body.exr-playing #mainNav, body.exr-playing .footer, body.exr-playing #exr-home, body.exr-playing footer { display: none !important; }

.exr-player {
    position: fixed;
    inset: 0;
    z-index: 2000;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "hud" "stage" "bottom";
    background: radial-gradient(120% 80% at 50% 0%, #15223a 0%, var(--exr-p-bg) 60%);
    color: var(--exr-p-ink);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.exr-player[hidden] { display: none; }

.exr-hud { grid-area: hud; text-align: center; padding: 8px 14px 0; min-width: 0; }
.exr-kicker { margin: 0; font-size: clamp(15px, 4vw, 20px); font-weight: 700; color: var(--exr-p-muted); letter-spacing: .02em; }
.exr-kicker .exr-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #14532d; color: #bbf7d0; font-size: .85em; }
.exr-kicker .exr-badge-side { background: #1e3a8a; color: #dbeafe; }
.exr-name {
    margin: 2px 0 0;
    font-size: clamp(30px, 8vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.exr-timer {
    font-size: clamp(88px, 26vw, 200px);
    font-weight: 800;
    line-height: .95;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.exr-player[data-phase="transition"] .exr-timer, .exr-player[data-phase="prep"] .exr-timer { color: #fde68a; }
.exr-player[data-phase="transition"] .exr-name, .exr-player[data-phase="prep"] .exr-name { color: #fde68a; }
.exr-step { margin: 2px 0 0; min-height: 1.3em; font-size: clamp(16px, 4.2vw, 24px); font-weight: 600; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.exr-stage-wrap { grid-area: stage; position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.exr-stage { position: absolute; inset: 0; }
/* pânza stă absolut în scenă: altfel mărimea ei (după ecran complet) ar împinge layoutul */
.exr-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none !important; }

.exr-bottom { grid-area: bottom; padding: 6px 12px 10px; min-width: 0; }
.exr-progress { display: flex; gap: 3px; height: 10px; margin: 0 0 6px; }
.exr-progress span { flex: 1 1 0; border-radius: 4px; background: var(--exr-p-line); overflow: hidden; position: relative; }
.exr-progress span.is-done { background: #0d9488; }
.exr-progress span i { position: absolute; inset: 0 auto 0 0; width: 0; background: #2dd4bf; }
.exr-next { margin: 0 0 8px; text-align: center; font-size: clamp(20px, 5vw, 28px); font-weight: 700; color: var(--exr-p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exr-next b { color: #fff; }
.exr-fallback { margin: 0 0 8px; text-align: center; font-size: 15px; color: #fcd34d; }

.exr-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.exr-ctl {
    min-width: 64px; height: 64px;
    border-radius: 20px;
    border: 0;
    background: var(--exr-p-btn);
    color: #fff;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 24px;
    padding: 0 12px;
    cursor: pointer;
    touch-action: manipulation;
}
.exr-ctl > span:not([class^="exr-w"]) { font-size: 12px; font-weight: 700; color: var(--exr-p-muted); }
.exr-player h2, .exr-player p, .exr-player button { font-family: inherit; font-style: normal; }
.exr-ctl:active, .exr-sec:active { background: var(--exr-p-btn-hi); }
.exr-ctl-main { width: 88px; height: 88px; border-radius: 50%; font-size: 36px; background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 8px 22px rgba(20, 184, 166, .35); }
.exr-ctl-main .exr-w-play { display: none; }
.exr-player.is-paused .exr-ctl-main .exr-w-play, .exr-player[data-phase="ready"] .exr-ctl-main .exr-w-play, .exr-player[data-phase="done"] .exr-ctl-main .exr-w-play { display: inline; }
.exr-player.is-paused .exr-ctl-main .exr-w-pause, .exr-player[data-phase="ready"] .exr-ctl-main .exr-w-pause, .exr-player[data-phase="done"] .exr-ctl-main .exr-w-pause { display: none; }
.exr-more-btn { display: none; }

.exr-secondary { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: nowrap; }
.exr-sec {
    flex: 1 1 0; min-width: 0; max-width: 92px;
    min-height: 52px;
    border: 0; border-radius: 14px;
    background: var(--exr-p-btn);
    color: #e2e8f0;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 18px; padding: 4px 2px;
    cursor: pointer;
    touch-action: manipulation;
}
.exr-sec span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.exr-sec[aria-pressed="true"] { background: #14532d; color: #bbf7d0; box-shadow: inset 0 0 0 2px #22c55e; }
.exr-sec-exit { color: #fecaca; }
#exr-sound .exr-w-s1, #exr-sound .exr-w-s2 { display: none; }
#exr-sound[data-mode="1"] .exr-w-s0, #exr-sound[data-mode="2"] .exr-w-s0 { display: none; }
#exr-sound[data-mode="1"] .exr-w-s1, #exr-sound[data-mode="2"] .exr-w-s2 { display: inline; }

/* microfonul: mare, în colțul scenei, cu cuvânt sub el (nu doar culoare) */
.exr-mic { position: absolute; right: 12px; bottom: 10px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.exr-mic[hidden] { display: none; }
.exr-mic-btn {
    position: relative;
    width: 76px; height: 76px; border-radius: 50%;
    border: 3px solid #64748b;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 30px;
    display: grid; place-items: center;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.exr-mic-ic { display: none; grid-area: 1 / 1; }
.exr-mic-badge { display: none; position: absolute; right: -4px; top: -4px; width: 30px; height: 30px; border-radius: 50%; background: #f59e0b; color: #1c1917; font-size: 14px; place-items: center; }
.exr-mic-label { font-size: 16px; font-weight: 800; color: #e2e8f0; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); background: rgba(11, 18, 32, .65); padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.exr-mic[data-state="off"] .exr-ic-off, .exr-mic[data-state="error"] .exr-ic-off, .exr-mic[data-state="tap"] .exr-ic-off { display: inline; }
.exr-mic[data-state="starting"] .exr-ic-wait { display: inline; }
.exr-mic[data-state="starting"] .exr-mic-btn { background: transparent; border-style: dashed; color: #e2e8f0; }
.exr-mic[data-state="listening"] .exr-ic-on, .exr-mic[data-state="hearing"] .exr-ic-on, .exr-mic[data-state="speaking"] .exr-ic-on { display: inline; }
.exr-mic[data-state="listening"] .exr-mic-btn { background: #15803d; border-color: #4ade80; color: #fff; animation: exr-pulse 1.6s ease-out infinite; }
.exr-mic[data-state="hearing"] .exr-mic-btn { background: #16a34a; border-color: #bbf7d0; color: #fff; animation: exr-pulse 0.7s ease-out infinite; }
.exr-mic[data-state="speaking"] .exr-mic-btn { background: #334155; border-color: #64748b; color: #94a3b8; opacity: .8; }
.exr-mic[data-state="speaking"] .exr-mic-badge { display: grid; }
.exr-mic[data-state="error"] .exr-mic-btn { background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.exr-mic[data-state="listening"] .exr-mic-label, .exr-mic[data-state="hearing"] .exr-mic-label { color: #bbf7d0; }
.exr-mic[data-state="error"] .exr-mic-label { color: #fecaca; }
@keyframes exr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .65); }
    100% { box-shadow: 0 0 0 22px rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .exr-mic[data-state="listening"] .exr-mic-btn, .exr-mic[data-state="hearing"] .exr-mic-btn { animation: none; box-shadow: 0 0 0 6px rgba(74, 222, 128, .45); }
}

/* cercul respirației (aceeași idee ca la Meditație) */
.exr-breath { position: absolute; left: 12px; bottom: 12px; width: 120px; height: 120px; z-index: 4; pointer-events: none; display: grid; place-items: center; }
.exr-breath[hidden] { display: none; }
/* pe exercițiile de respirație: mare, jos la mijloc — nu peste instructor */
.exr-breath.is-center { left: 50%; bottom: 10px; width: min(170px, 34vh); height: min(170px, 34vh); transform: translateX(-50%); }
.exr-breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(196, 181, 253, .45); }
.exr-breath-circle {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(233, 213, 255, .55), rgba(139, 92, 246, .42) 45%, rgba(76, 29, 149, .32) 100%);
    box-shadow: 0 0 2.4rem rgba(196, 181, 253, .35);
    transform: scale(var(--exr-b, .6));
    will-change: transform;
}
.exr-breath-text { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.05; text-shadow: 0 1px 8px rgba(30, 10, 60, .9); }
.exr-breath-word { font-size: 22px; font-weight: 800; color: #fff; }
.exr-breath-count { font-size: 30px; font-weight: 800; color: #ede9fe; font-variant-numeric: tabular-nums; }
.exr-breath.is-center .exr-breath-word { font-size: 28px; }
.exr-breath.is-center .exr-breath-count { font-size: 40px; }

.exr-toast {
    position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
    z-index: 13; pointer-events: none;
    padding: 14px 24px; border-radius: 20px;
    background: rgba(21, 128, 61, .92); color: #fff;
    font-size: clamp(28px, 8vw, 48px); font-weight: 800; white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.exr-toast.is-error { background: rgba(153, 27, 27, .94); font-size: clamp(17px, 4.6vw, 24px); white-space: normal; max-width: 88%; text-align: center; }
.exr-heard { position: absolute; right: 100px; bottom: 34px; z-index: 13; max-width: 55%; padding: 6px 10px; border-radius: 10px; background: rgba(15, 23, 42, .85); color: #cbd5e1; font-size: 15px; pointer-events: none; }

.exr-overlay {
    position: absolute; inset: 0; z-index: 9;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 16px; text-align: center;
    background: rgba(8, 13, 24, .72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.exr-overlay[hidden] { display: none; }
.exr-ready { background: rgba(8, 13, 24, .45); }
.exr-ready-title { margin: 0; font-size: clamp(22px, 6vw, 34px); font-weight: 800; color: #fff; }
.exr-ready-first { margin: 0; font-size: 18px; color: #cbd5e1; max-width: 520px; }
.exr-begin {
    min-height: 88px; min-width: 240px; padding: 0 34px;
    border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    color: #fff; font-size: clamp(30px, 8vw, 44px); font-weight: 800;
    box-shadow: 0 12px 30px rgba(34, 197, 94, .35);
    cursor: pointer; touch-action: manipulation;
}
.exr-link-btn { border: 0; background: transparent; color: #93c5fd; font-size: 17px; font-weight: 700; padding: 10px; cursor: pointer; }
.exr-pause-big { margin: 0; font-size: clamp(56px, 18vw, 120px); font-weight: 900; line-height: 1; color: #fff; letter-spacing: .02em; }
.exr-pause-hint { margin: 0; color: #cbd5e1; font-size: 17px; }
.exr-sheet { z-index: 12; background: rgba(8, 13, 24, .9); overflow-y: auto; justify-content: center; }
.exr-sheet-text { margin: 0; font-size: clamp(22px, 6vw, 34px); font-weight: 800; color: #fff; max-width: 640px; }
.exr-sheet-more { margin: 0; font-size: 16px; line-height: 1.5; color: #cbd5e1; max-width: 640px; text-align: left; }
.exr-sheet-more:empty { display: none; }
.exr-sheet-btns, .exr-final-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.exr-sheet .exr-begin { min-height: 72px; font-size: clamp(22px, 6vw, 30px); min-width: 200px; }
.exr-sheet-no { min-height: 72px; min-width: 160px; padding: 0 24px; border-radius: 999px; border: 2px solid #475569; background: transparent; color: #e2e8f0; font-size: 20px; font-weight: 700; cursor: pointer; }

.exr-final { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(110% 80% at 50% 0%, #134e4a 0%, var(--exr-p-bg) 70%); text-align: center; }
.exr-final[hidden] { display: none; }
.exr-final-in { max-width: 620px; }
.exr-final-icon { margin: 0; font-size: 54px; color: #fbbf24; }
.exr-final-title { margin: 4px 0; font-size: clamp(34px, 9vw, 56px); font-weight: 900; color: #fff; }
.exr-final-sub { margin: 0 0 16px; font-size: 20px; color: #cbd5e1; }
.exr-final-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.exr-final-stats div { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; gap: 4px; }
.exr-final-stats b { font-size: clamp(40px, 12vw, 72px); line-height: 1; color: #5eead4; font-variant-numeric: tabular-nums; }
.exr-final-stats div:first-child b { color: #fbbf24; }
.exr-final-stats span { font-size: 14px; color: #cbd5e1; font-weight: 600; }
.exr-final-note { color: #fde68a; font-size: 18px; font-weight: 600; }
.exr-final-note:empty { display: none; }

/* ───────────── Orizontal: scena în stânga, restul în dreapta ───────────── */
/* viteza: butoane mari, unul lângă altul (ecranul „Începe" și fereastra peste scenă) */
.exr-ready-opts { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.exr-seg { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; max-width: 100%; }
.exr-seg button {
    flex: 0 1 auto; min-width: 52px; min-height: 52px; padding: 0 8px;
    border: 0; border-radius: 14px;
    background: var(--exr-p-btn); color: #e2e8f0;
    font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
    cursor: pointer; touch-action: manipulation;
}
.exr-seg button.is-slow { font-size: 15px; }
.exr-seg button[aria-pressed="true"] { background: #0f766e; color: #fff; box-shadow: inset 0 0 0 2px #5eead4; }
.exr-seg button:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.exr-speed-note { margin: 0; font-size: 14px; line-height: 1.35; color: #fde68a; max-width: 380px; }
.exr-speed-note[hidden], .exr-ready-wall-note[hidden] { display: none; }
.exr-ready-switch { background: rgba(15, 23, 42, .62); border-color: rgba(148, 163, 184, .45); color: #e2e8f0; min-height: 48px; padding: 8px 14px; }
.exr-ready-wall-note { margin: 0; font-size: 14px; color: #bbf7d0; max-width: 380px; }
.exr-speed-pop {
    position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 14;
    width: max-content; max-width: calc(100% - 16px);
    padding: 10px 10px 12px; border-radius: 18px;
    background: var(--exr-p-panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    text-align: center;
}
.exr-speed-pop[hidden] { display: none; }
.exr-speed-title { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: #fff; }
.exr-speed-pop .exr-speed-note { margin-top: 8px; }
.exr-kicker .exr-badge-breath { background: #1e3a8a; color: #bfdbfe; }
.exr-kicker .exr-badge-speed { background: #134e4a; color: #99f6e4; }

/* telefon în picioare: ecranul „Începe" mai strâns, deasupra microfonului din colț */
@media (orientation: portrait) and (max-width: 600px) {
    .exr-ready { gap: 8px; padding: 10px 12px 86px; justify-content: safe center; overflow-y: auto; }
    .exr-ready-title { font-size: 24px; }
    .exr-ready .exr-begin { min-height: 66px; min-width: 220px; font-size: 32px; }
    .exr-ready-first { font-size: 15px; }
    .exr-ready .exr-link-btn { padding: 4px 10px; font-size: 16px; }
    .exr-speed-note, .exr-ready-wall-note { font-size: 13px; }
}

@media (orientation: landscape) and (min-width: 700px) {
    .exr-player {
        grid-template-columns: 58vw minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas: "stage hud" "stage spacer" "stage bottom";
    }
    .exr-hud { padding-top: 16px; }
    .exr-name { font-size: clamp(26px, 3.4vw, 52px); }
    .exr-timer { font-size: clamp(72px, calc(14vh + 6vw), 180px); }
    .exr-bottom { padding: 6px 14px 14px; }
    .exr-next { font-size: clamp(18px, 2vw, 26px); }
}
@media (orientation: landscape) and (max-height: 600px) {
    .exr-player {
        grid-template-columns: 58vw minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas: "stage hud" "stage spacer" "stage bottom";
    }
    .exr-hud { padding: 6px 8px 0; }
    .exr-kicker { font-size: 14px; }
    .exr-name { font-size: clamp(22px, 3.6vw, 36px); -webkit-line-clamp: 2; }
    .exr-timer { font-size: clamp(72px, calc(14vh + 6vw), 180px); }
    .exr-step { font-size: 15px; }
    .exr-bottom { padding: 2px 8px 8px; position: relative; }
    .exr-next { font-size: 17px; margin-bottom: 6px; }
    .exr-progress { height: 8px; margin-bottom: 4px; }
    .exr-controls { gap: 10px; }
    .exr-ctl { min-width: 56px; height: 56px; padding: 0 8px; font-size: 22px; }
    .exr-ctl > span:not([class^="exr-w"]) { display: none; }
    .exr-ctl-main { width: 76px; height: 76px; font-size: 30px; }
    .exr-more-btn { display: inline-flex; }
    /* rândul al doilea se strânge în „⋯" */
    .exr-secondary { display: none; position: absolute; right: 8px; bottom: calc(100% + 6px); z-index: 30; flex-wrap: wrap; width: min(340px, 40vw); padding: 8px; border-radius: 16px; background: var(--exr-p-panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); justify-content: flex-start; }
    .exr-secondary.is-open { display: flex; }
    .exr-secondary .exr-sec { flex: 0 0 calc(33.3% - 6px); max-width: none; }
    .exr-mic-btn { width: 72px; height: 72px; font-size: 28px; }
    .exr-breath.is-center { width: 130px; height: 130px; left: 12px; transform: none; }
    .exr-begin { min-height: 76px; font-size: 30px; }
    .exr-overlay { gap: 10px; }
    .exr-ready-first { font-size: 15px; }
    /* pe telefon culcat, ecranul „Începe" e scund: mai strâns, cu derulare dacă tot nu încape */
    .exr-ready { justify-content: safe center; overflow-y: auto; gap: 6px; padding: 8px; }
    .exr-ready .exr-begin { min-height: 60px; font-size: 26px; }
    .exr-ready-opts { gap: 6px; }
    .exr-seg button { min-width: 46px; min-height: 46px; font-size: 16px; }
    .exr-seg button.is-slow { font-size: 14px; }
    .exr-ready-switch { min-height: 44px; padding: 4px 12px; }
    .exr-speed-note, .exr-ready-wall-note { font-size: 13px; }
}
@media (max-width: 380px) {
    .exr-seg { gap: 4px; }
    .exr-seg button { min-width: 48px; padding: 0 5px; font-size: 16px; }
    .exr-seg button.is-slow { font-size: 13px; }
}
@media (max-width: 360px) {
    .exr-controls { gap: 10px; }
    .exr-sec span { font-size: 11px; }
}
