:root { color-scheme: dark; font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; background: #0d2421; color: #f0fbf6; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; background: radial-gradient(circle at 50% 0%, #2c5a4e, #0d2421 52%); }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #e8bd5c; outline-offset: 3px; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.timer-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.timer-page .app-shell { height: 100vh; height: 100dvh; min-height: 0; }
.metronome { width: 100%; max-width: 430px; min-width: 0; padding: 24px; border: 1px solid #4f8171; border-radius: 32px; background: #15312d; box-shadow: 0 20px 55px #07171480; }
.topbar { display: flex; align-items: center; justify-content: center; }
h1 { margin: 0; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.reset-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #5c8778; border-radius: 50%; background: #20483f; color: inherit; font-weight: 800; }
.status { min-height: 1.3em; margin: 18px 0 8px; color: #b8d8cc; font-size: .85rem; text-align: center; }
.beat-display { display: grid; width: 100%; min-height: 174px; place-content: center; justify-items: center; }
.beat-track { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 6vw, 28px); min-height: 112px; padding: 9px 12px 0; }
.beat-note { position: relative; display: block; width: clamp(30px, 10vw, 46px); height: 94px; transform-origin: 50% 84%; }
.beat-note::before { position: absolute; right: 3px; bottom: 0; width: 31px; height: 23px; border: 3px solid #a4d4c6; border-radius: 50%; background: transparent; content: ""; transform: rotate(-20deg); }
.beat-note::after { position: absolute; right: 4px; bottom: 18px; width: 3px; height: 72px; border-radius: 999px; background: #a4d4c6; content: ""; }
.beat-note.active::before { border-color: #f3d68c; background: #e8bd5c; box-shadow: 0 0 0 8px #e8bd5c33; }
.beat-note.active::after { background: #f3d68c; }
.beat-note.pulse { animation: note-pulse 250ms ease-out; }
@keyframes note-pulse { 0% { transform: scale(.86); } 62% { transform: scale(1.08); } 100% { transform: scale(1); } }
.tempo-panel { display: grid; justify-items: center; gap: 8px; padding: 12px 0 6px; }
.bpm-output { font-size: clamp(3rem, 15vw, 4.5rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.bpm-output small { font-size: .95rem; letter-spacing: .08em; }
.range-label { color: #b8d8cc; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
input[type="range"] { width: 100%; accent-color: #e8bd5c; }
.stepper { display: grid; width: 100%; grid-template-columns: 54px 1fr 54px; gap: 12px; align-items: center; }
.stepper button { width: 54px; height: 42px; border: 1px solid #5c8778; border-radius: 14px; background: #20483f; color: inherit; font-size: 1.5rem; }
.stepper .tap-button { justify-self: center; width: min(110px, 100%); height: 36px; min-height: 36px; border-radius: 12px; font-size: .78rem; letter-spacing: .03em; }
.signature-panel { margin: 20px 0; padding: 0; border: 0; }
.signature-panel legend { width: 100%; margin-bottom: 9px; color: #b8d8cc; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.signature-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.signature-options button { min-height: 45px; border: 1px solid #5c8778; border-radius: 12px; background: #20483f; color: inherit; font-weight: 800; }
.signature-options button[aria-pressed="true"] { border-color: #e8bd5c; background: #5b4a19; }
.beat-track[data-count="12"] { width: 100%; min-width: 0; gap: clamp(2px, 1vw, 4px); padding-inline: 0; }
.beat-track[data-count="12"] .beat-note { width: clamp(16px, 5.8vw, 23px); height: 76px; }
.beat-track[data-count="12"] .beat-note::before { right: 1px; width: 23px; height: 17px; border-width: 2px; }
.beat-track[data-count="12"] .beat-note::after { right: 2px; bottom: 13px; width: 2px; height: 58px; }
.beat-track[data-count="6"] { gap: clamp(7px, 3.5vw, 14px); padding-inline: 0; }
.beat-track[data-count="6"] .beat-note { width: clamp(25px, 8vw, 34px); height: 84px; }
.beat-track[data-count="6"] .beat-note::before { width: 27px; height: 20px; }
.beat-track[data-count="6"] .beat-note::after { bottom: 16px; height: 64px; }
.beat-track[data-count="7"] { gap: clamp(5px, 2.5vw, 10px); padding-inline: 0; }
.beat-track[data-count="7"] .beat-note { width: clamp(23px, 7.2vw, 31px); height: 80px; }
.beat-track[data-count="7"] .beat-note::before { width: 25px; height: 19px; }
.beat-track[data-count="7"] .beat-note::after { bottom: 15px; height: 61px; }
.transport { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.primary-button { min-height: 64px; border: 0; border-radius: 19px; background: #e8bd5c; box-shadow: 0 5px 0 #9a7624; color: #263007; font-size: 1.15rem; font-weight: 900; }
.primary-button:active { box-shadow: 0 1px 0 #9a7624; transform: translateY(4px); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; }
.volume-panel { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 26px; }
.volume-icon { width: 27px; height: 27px; fill: #b8d8cc; }
.info-footer { margin: 16px 0 0; font-size: .74rem; text-align: center; }
.info-footer a, .info-links a, .legal-return { color: #d9e9b5; }
.info-footer a:focus-visible, .info-links a:focus-visible, .legal-return:focus-visible { outline: 3px solid #e8bd5c; outline-offset: 3px; }
.reveal-email { padding: 0; border: 0; background: transparent; color: #e8bd5c; font: inherit; text-decoration: underline; }
.revealed-email { color: #e8bd5c; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.info-page .app-shell { align-items: flex-start; }
.legal-screen { margin: 24px 0; line-height: 1.55; }
.legal-screen h1 { font-size: clamp(1.4rem, 6vw, 2rem); text-transform: none; }
.legal-screen h2 { margin: 28px 0 8px; font-size: 1.1rem; }
.legal-screen p { color: #d3ede2; }
.legal-screen a { color: #e8bd5c; }
.legal-header { display: flex; gap: 14px; align-items: center; }
.legal-header h1 { margin: 0; }
.legal-eyebrow { margin: 0 0 3px; color: #b8d8cc; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal-back { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid #5c8778; border-radius: 50%; background: #20483f; color: inherit; text-decoration: none; }
.info-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 30px; }
.legal-return { display: inline-block; margin-top: 24px; }
@media (max-height: 760px) and (orientation: portrait) { .timer-page .app-shell { padding: 10px 18px; } .timer-page .metronome { padding: 14px 22px; border-radius: 26px; } .timer-page .status { min-height: 1.1em; margin: 8px 0 3px; } .timer-page .beat-display { min-height: 112px; } .timer-page .beat-track { min-height: 86px; } .timer-page .beat-note { width: 29px; height: 70px; } .timer-page .beat-note::before { width: 24px; height: 18px; border-width: 2px; } .timer-page .beat-note::after { bottom: 14px; height: 53px; width: 2px; } .timer-page .tempo-panel { padding: 4px 0; } .timer-page .signature-panel { margin: 10px 0; } .timer-page .signature-options button { min-height: 39px; } .timer-page .primary-button { min-height: 54px; } .timer-page .volume-panel { margin-top: 14px; } .timer-page .info-footer { margin-top: 10px; } }
@media (max-height: 600px) and (orientation: portrait) { .timer-page .app-shell { padding: 6px 16px; } .timer-page .metronome { padding: 9px 18px; border-radius: 22px; } .timer-page .status { margin: 4px 0 1px; font-size: .76rem; } .timer-page .beat-display { min-height: 88px; } .timer-page .beat-track { min-height: 69px; } .timer-page .beat-note { width: 25px; height: 57px; } .timer-page .beat-note::before { width: 20px; height: 15px; } .timer-page .beat-note::after { bottom: 11px; height: 43px; } .timer-page .tempo-panel { gap: 3px; padding: 1px 0; } .timer-page .bpm-output { font-size: 2.8rem; } .timer-page .stepper { gap: 8px; } .timer-page .signature-panel { margin: 6px 0; } .timer-page .signature-panel legend { margin-bottom: 4px; } .timer-page .signature-options button { min-height: 35px; } .timer-page .primary-button { min-height: 48px; } .timer-page .volume-panel { margin-top: 9px; } .timer-page .info-footer { margin-top: 6px; } .timer-page .beat-track[data-count="12"] .beat-note { width: clamp(14px, 5.5vw, 20px); height: 54px; } .timer-page .beat-track[data-count="12"] .beat-note::before { width: 17px; height: 13px; } .timer-page .beat-track[data-count="12"] .beat-note::after { bottom: 10px; height: 40px; } .timer-page .beat-track[data-count="6"] .beat-note, .timer-page .beat-track[data-count="7"] .beat-note { width: 23px; height: 55px; } .timer-page .beat-track[data-count="6"] .beat-note::before, .timer-page .beat-track[data-count="7"] .beat-note::before { width: 20px; height: 15px; } .timer-page .beat-track[data-count="6"] .beat-note::after, .timer-page .beat-track[data-count="7"] .beat-note::after { bottom: 11px; height: 41px; } }
@media (max-height: 560px) and (orientation: landscape) { .timer-page .app-shell { padding: 7px 14px; } .timer-page .metronome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; max-width: 760px; padding: 10px 18px; border-radius: 22px; } .timer-page .topbar, .timer-page .status { grid-column: 1 / -1; } .timer-page .status { min-height: 1em; margin: 4px 0; } .timer-page .beat-display { grid-column: 1; grid-row: 3 / span 3; min-height: 82px; } .timer-page .beat-track { min-height: 72px; gap: 10px; } .timer-page .beat-note { width: 25px; height: 61px; } .timer-page .beat-note::before { width: 21px; height: 16px; border-width: 2px; } .timer-page .beat-note::after { bottom: 12px; height: 46px; width: 2px; } .timer-page .tempo-panel { grid-column: 2; padding: 0; gap: 4px; } .timer-page .bpm-output { font-size: 2.7rem; } .timer-page .signature-panel { grid-column: 2; margin: 6px 0; } .timer-page .signature-panel legend { margin-bottom: 4px; } .timer-page .signature-options button { min-height: 32px; } .timer-page .transport { grid-column: 2; } .timer-page .primary-button { min-height: 42px; } .timer-page .reset-button { width: 36px; height: 36px; } .timer-page .volume-panel { grid-column: 1; margin: 0; } .timer-page .info-footer { grid-column: 1; margin: 4px 0 0; } .timer-page .beat-track[data-count="12"] .beat-note { width: clamp(14px, 3vw, 20px); height: 56px; } .timer-page .beat-track[data-count="12"] .beat-note::before { width: 17px; height: 13px; } .timer-page .beat-track[data-count="12"] .beat-note::after { bottom: 10px; height: 42px; } .timer-page .beat-track[data-count="6"] .beat-note, .timer-page .beat-track[data-count="7"] .beat-note { width: 23px; height: 58px; } .timer-page .beat-track[data-count="6"] .beat-note::before, .timer-page .beat-track[data-count="7"] .beat-note::before { width: 20px; height: 15px; } .timer-page .beat-track[data-count="6"] .beat-note::after, .timer-page .beat-track[data-count="7"] .beat-note::after { bottom: 11px; height: 44px; } }
@media (max-height: 560px) and (orientation: landscape) { .timer-page .topbar { grid-column: 1; grid-row: 1; justify-content: flex-start; } .timer-page .topbar h1 { font-size: 1rem; } .timer-page .status { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: .72rem; text-align: right; } .timer-page .beat-display { grid-column: 1; grid-row: 2; } .timer-page .tempo-panel { grid-column: 2; grid-row: 2; } .timer-page .volume-panel { grid-column: 1; grid-row: 3; align-self: center; } .timer-page .signature-panel { grid-column: 2; grid-row: 3; } .timer-page .info-footer { grid-column: 1; grid-row: 4; align-self: center; margin: 0; font-size: .68rem; text-align: left; } .timer-page .transport { grid-column: 2; grid-row: 4; } }
