/* Metronom – Logik in web/src/metronom/ */
.me-main { max-width: 720px; }
#me { display: flex; flex-direction: column; gap: 18px; margin-bottom: var(--sp-7, 48px); }
.me-hero, .me-box { border-radius: 22px; padding: 20px; }
.me-hero { color: #fff; text-align: center; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, var(--c1, #e879f9), var(--c2, #4338ca)); box-shadow: 0 24px 50px -26px var(--c2, #4338ca); }
.me-stage { position: relative; width: 240px; height: 240px; margin: 4px auto 10px; display: grid; place-items: center; }
.me-pulse { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); }
.me-pulse.hit { animation: mePulse .28s ease-out; }
.me-pulse.hit.strong { animation: mePulseStrong .36s ease-out; }
.me-pulse.muted.hit { animation: none; border-style: dashed; }
@keyframes mePulse { 0% { transform: scale(1.06); background: rgba(255,255,255,.22); border-color: #fff; } 100% { transform: scale(1); background: transparent; } }
@keyframes mePulseStrong { 0% { transform: scale(1.12); background: rgba(255,255,255,.38); border-color: #fff; } 100% { transform: scale(1); background: transparent; } }
.me-center { position: relative; display: flex; flex-direction: column; align-items: center; }
.me-bpm { font-size: 5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.me-unit { font-size: .85rem; opacity: .85; }
.me-tname { margin-top: 6px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.2); }
.me-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.me-slider { flex: 1 1 220px; max-width: 360px; accent-color: #fff; }
.me-pm, .me-chip { border: 0; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font: inherit; font-weight: 700; padding: 8px 12px; min-width: 44px; cursor: pointer; }
.me-pm:hover, .me-chip:hover { background: rgba(255,255,255,.32); }
.me-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.me-chip { padding: 5px 12px; font-weight: 600; font-size: .9rem; }
.me-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 4px; }
.me-dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .08s, background .08s; }
.me-dot.l3 { background: rgba(255,255,255,.42); }
.me-dot.l2 { background: rgba(255,255,255,.22); }
.me-dot.l0 { opacity: .4; border-style: dashed; }
.me-dot.on { background: #fff; color: var(--c2, #4338ca); transform: scale(1.18); }
.me-bar { margin: 4px 0; min-height: 1.4em; opacity: .9; font-size: .92rem; }
.me-go { min-width: 170px; height: 60px; border: 0; border-radius: 999px; background: #fff; color: var(--c2, #4338ca); font: inherit; font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.me-go.on { background: #1f2937; color: #fff; }
.me-go:focus-visible, .me-dot:focus-visible, .me-pm:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.me-tap { height: 60px; border-radius: 999px; }
.me-tap.hit { animation: mePulse .2s; }
.me-msg:empty { display: none; }
.me-box { background: var(--surface); border: 1px solid var(--border); }
.me-box h2 { margin: 0 0 12px; font-size: 1.15rem; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.me-grid label, .me-num { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.me-grid input[type=range] { accent-color: var(--c2, var(--accent)); }
.me-subrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.me-sw { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; cursor: pointer; }
.me-sw input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c2, var(--accent)); flex: none; }
.me-sw span { display: flex; flex-direction: column; }
.me-sw small, .me-fine { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .me-bpm { font-size: 4rem; } .me-stage { width: 200px; height: 200px; } .me-dot { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .me-pulse.hit, .me-tap.hit { animation: none; } }
.me-ueben > summary { cursor: pointer; list-style: none; font-size: 1.05rem; }
.me-ueben > summary::-webkit-details-marker { display: none; }
.me-ueben > summary::before { content: "▸ "; }
.me-ueben[open] > summary::before { content: "▾ "; }
.me-ueben[open] > summary { margin-bottom: 12px; }
