/* HC Vocals — monochrome, like hcvocals.com: black, white, warm grey. Font: Space Grotesk. */
/* Fonts are stored in the app (fonts/, SIL Open Font License), not loaded from Google: no visitor data goes to
   Google (GDPR), and they work offline. Space Grotesk is one variable file for all weights. latin-ext = extra accents. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Saira Stencil One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/saira-stencil-one-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Saira Stencil One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/saira-stencil-one-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #000000;
  --card: #121212;
  --card-top: #171717;   /* cards get a soft top-to-bottom sheen */
  --card2: #1e1e1e;
  --line: #242424;
  --line2: #333333;
  --text: #ffffff;
  --muted: #a39d98;
  --lava: #ffffff;       /* main accent: white, like the buttons on hcvocals.com */
  --lava2: #b3aeaa;      /* secondary accent: the grey of 'VOCALS' */
  --ok: #4cc38a;         /* only for "in tune" / done */
  --bad: #ff4d4d;        /* only for voice-safety warnings */
  --radius: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--text);
  font: 16px/1.45 "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html { background: var(--bg); }
body { background: radial-gradient(120% 55% at 50% -8%, #1d1d1d 0%, #000 62%) fixed, var(--bg); min-height: 100vh; }
/* faint film grain for depth */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main { position: relative; z-index: 1; padding: 14px 16px calc(104px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; }
h1 { font-size: 2.3rem; line-height: 1; margin: 0; letter-spacing: 0; text-transform: uppercase; }
h2 { font-size: 1.15rem; margin: 6px 0; }
/* Titles in a stencil font like the HC Vocals logo lettering; small labels stay in Space Grotesk */
h1, h2, .brand-hc, .brand-word, .f-text b, .meter-verdict { font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400; }
h2, .f-text b { letter-spacing: .01em; }
.dim { color: var(--lava2); }
.eyebrow { margin: 0 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.page-head { margin: 10px 0 10px; }
.section-title { margin-top: 26px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.sub, .muted { color: var(--muted); }
.sub { margin: 10px 0; }
.small { font-size: .85rem; }

button { font: inherit; color: inherit; cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
button:active { transform: scale(.97); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* tabs appear with a short fade */
.tab { animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab { animation: none; } button:active { transform: none; } }

/* top & bottom bars */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 1.02rem; }
.brand-emblem { height: 34px; width: auto; display: block; margin-right: 5px; } /* mic + laurels from Mark's logo, white */
.brand-hc { letter-spacing: .04em; font-size: 1.15rem; }
.brand-word { color: var(--lava2); text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; } /* the grey of "VOCALS" */
.icon-btn { background: none; border: 0; padding: 6px; color: var(--text); display: flex; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, 1fr); z-index: 5;
  background: rgba(8,8,8,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.07); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tab-btn { position: relative; background: none; border: 0; padding: 10px 0 9px; color: #6f6a66; font-size: .66rem; font-weight: 500;
  letter-spacing: .02em; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tab-btn .ico { width: 23px; height: 23px; }
.tab-btn.active { color: var(--text); }
.tab-btn.active::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 2px; margin-left: -13px; border-radius: 0 0 2px 2px; background: var(--text); }

/* hero banners */
.hero { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); margin: 8px 0 4px; min-height: 176px; display: flex; align-items: flex-end; }
.hero-text { position: relative; z-index: 1; padding: 20px; }
.hero-text .sub { margin: 12px 0 0; max-width: 165px; font-size: .85rem; }
.hero-warm { background: linear-gradient(140deg, #1a1a1a, #060606 70%); }
.hero-art { position: absolute; right: -54px; top: -6px; height: 340px; opacity: .95; /* tall enough that the logo's own lettering falls below the banner */
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 95%); mask-image: linear-gradient(to left, #000 50%, transparent 95%); }
.hero-scream { min-height: 132px; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.92) 100%), url("img/live-concert.jpg") 45% 38% / cover; }
.hero-scream .hero-text { padding: 16px 18px; }
.hero-scream .eyebrow { color: #d6d2ce; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.hero-scream h1 { text-shadow: 0 2px 16px rgba(0,0,0,.6); display: flex; align-items: center; gap: 10px; font-size: 2.3rem; }

/* cards & lists */
.cards { display: grid; gap: 10px; margin-top: 14px; }
.card { text-align: left; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.card b { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.card:active, .row:active { background: var(--card2); }
.card.feature { display: flex; align-items: center; gap: 14px; padding: 16px; }
.f-icon { width: 48px; height: 48px; border-radius: 5px; background: var(--text); color: #000; display: grid; place-items: center; flex: 0 0 auto; }
.f-icon .ico { width: 24px; height: 24px; stroke-width: 2; }
.f-icon.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.f-text { flex: 1; min-width: 0; }
.chev { color: var(--muted); transition: transform .2s ease; }
.card.open .chev { transform: rotate(90deg); }
.list { display: grid; gap: 8px; margin-top: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%;
  background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: 5px; padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.row .meta { color: var(--muted); font-size: .85rem; }
.row.locked { opacity: .72; cursor: pointer; }
.pill { font-size: .72rem; padding: 3px 9px; border-radius: 4px; background: var(--card2); color: var(--muted); white-space: nowrap; font-weight: 500; }
.pill.on { background: rgba(255,255,255,.12); color: var(--text); }
.pill.done { background: rgba(76,195,138,.15); color: var(--ok); }

button.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); padding: 7px 12px 7px 9px; font-size: .78rem;
  background: rgba(255,255,255,.04); color: var(--text); }
button.pill .ico { width: 13px; height: 13px; }
button.pill:active { background: var(--text); color: #000; border-color: var(--text); }
.row > button.pill { padding: 9px; border-radius: 50%; }
.row > button.pill .ico { width: 15px; height: 15px; }

/* routine lists (pre-scream) */
.card.open { border-color: var(--line2); }
.wu-head { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.wu-steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; }
.wu-steps li { counter-increment: s; display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.wu-steps li::before { content: counter(s, decimal-leading-zero); color: #6f6a66; font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 18px; }
.wu-steps .meta { color: var(--muted); font-size: .8rem; margin-left: auto; font-variant-numeric: tabular-nums; }

/* breathing picker */
.pick { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line2); background: none; font-weight: 700; color: #000; }
.pick.on { background: var(--text); border-color: var(--text); }
.row .grow { flex: 1; min-width: 0; }

.panel { background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tip { color: var(--lava2); }
.banner { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; padding: 12px 14px; margin-top: 12px; }
.banner.warn { background: rgba(255,77,77,.1); border-color: rgba(255,77,77,.38); }
.warn-text { background: rgba(255,77,77,.08); border-left: 3px solid var(--bad); padding: 10px 12px; border-radius: 3px; font-size: .92rem; }

/* buttons */
.primary, .secondary { display: block; width: 100%; border-radius: 5px; padding: 15px; margin-top: 12px; font-weight: 700; border: 0;
  text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.primary { background: var(--text); color: #000; box-shadow: 0 6px 24px rgba(255,255,255,.08); }
.secondary { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.link { background: none; border: 0; color: var(--lava2); padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--bad); }
.seg { display: flex; background: #0e0e0e; border: 1px solid var(--line); border-radius: 5px; padding: 4px; margin: 10px 0; gap: 4px; }
.seg-btn { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 4px; color: var(--muted); font-weight: 500; }
.seg-btn.active { background: var(--text); color: #000; font-weight: 700; }
.field { display: block; margin: 14px 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.field .seg, .field input, .field textarea, .field select, .field p { letter-spacing: normal; text-transform: none; font-weight: 400; }
.field .seg { font-size: .95rem; }
.field p.small { font-size: .85rem; }

/* player */
#player { border-color: var(--line2); }
.player-head { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
#player-title { font-size: 1.5rem; margin-top: 8px; text-transform: uppercase; letter-spacing: -.02em; }
.bar { height: 6px; background: var(--card2); border-radius: 4px; overflow: hidden; margin-top: 12px; }

.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--lava2), var(--text)); transition: width .1s linear; }
.bar.seek { position: relative; overflow: visible; height: 6px; margin-top: 20px; cursor: pointer; touch-action: none; }
.bar.seek::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; bottom: -16px; } /* bigger finger target */
.bar.seek > div { position: relative; border-radius: 4px; }
.bar.seek > div::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.bar.seek.dragging > div { transition: none; }
.bar.seek.dragging > div::after { transform: scale(1.25); }
.player-time { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 12px 0 4px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255,255,255,.03); display: grid; place-items: center; color: var(--text); }
.round .ico { width: 20px; height: 20px; }
.round.big { width: 74px; height: 74px; background: var(--text); color: #000; border: 0; box-shadow: 0 8px 30px rgba(255,255,255,.12); }
.round.big .ico { width: 28px; height: 28px; }

/* scream (the guided path, switched off; .steps also used by guides and pop-ups) */
.steps { padding-left: 20px; }
.steps li { margin: 8px 0; }
.video-slot { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.03); border: 1px dashed var(--line2); border-radius: 4px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.video-slot .ico { width: 16px; height: 16px; color: var(--muted); }
.timer-box { text-align: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.timer { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.q { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q .seg { margin: 0; flex: 0 0 130px; }

/* pitch */
.note-display { text-align: center; font-size: 5rem; font-weight: 700; line-height: 1; margin: 18px 0 8px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#note-oct { font-size: 1.8rem; color: var(--muted); margin-left: 4px; }
.cents-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.cents-track { position: relative; height: 12px; margin-top: 4px; background: linear-gradient(90deg, rgba(255,77,77,.3), rgba(76,195,138,.45) 45%, rgba(76,195,138,.45) 55%, rgba(255,77,77,.3)); border-radius: 4px; }
.cents-center { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .5; }
#cents-needle { position: absolute; top: -6px; width: 6px; height: 24px; margin-left: -3px; left: 50%; background: var(--text); border-radius: 3px; transition: left .08s linear; }
#pitch-canvas { width: 100%; height: 220px; display: block; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; }
.harsh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: 5px; padding: 14px 8px; text-align: center; }
.stat-label { color: var(--muted); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.stat-val { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* progress */
.feel { display: flex; gap: 6px; margin: 10px 0; }
.feel button { flex: 1; font-size: 1.5rem; padding: 8px 0; background: var(--card2); border: 1px solid var(--line); border-radius: 4px; filter: grayscale(1); opacity: .7; }
.feel button.active { border-color: var(--text); background: rgba(255,255,255,.1); filter: none; opacity: 1; }
.hw-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hw-item input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--text); margin-top: 1px; } /* same size for short and long questions */
.hw-item.done span { text-decoration: line-through; color: var(--muted); }

/* forms & modals */
input[type=text], textarea, select { width: 100%; background: #0e0e0e; color: var(--text); border: 1px solid var(--line2); border-radius: 4px; padding: 12px; font: inherit; margin-top: 6px; }
input[type=text]:focus, textarea:focus, select:focus { outline: none; border-color: var(--lava2); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.modal-card { background: linear-gradient(180deg, #161616, #0b0b0b); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 6px 6px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line2); }
.modal-card h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0; }
.welcome-logo { display: block; width: 150px; margin: -4px auto 6px; }
@media (min-width: 600px) { .modal { align-items: center; } .modal-card { border-radius: 6px; border: 1px solid var(--line2); } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); background: var(--text); color: #000;
  padding: 11px 18px; border-radius: 4px; font-weight: 700; z-index: 30; max-width: 90vw; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

/* Home → Topics */
#tp-panel { scroll-margin-top: 80px; }
#tp-list .tp-head:first-child { margin-top: 0; }
#tp-list .list { margin-bottom: 4px; }
.tp-cat { margin-top: 12px; }
#tp-what { margin: 6px 0 0; }
#tp-detail .section-title { margin: 20px 0 0; }

/* Pitch → piano */
.ico.flip { transform: scaleX(-1); }
.piano { margin-top: 16px; padding: 12px 12px 14px; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }
.piano-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 34px; }
.piano-target { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.piano-oct { display: flex; align-items: center; gap: 2px; }
.piano-oct button { width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--line2); background: none; display: grid; place-items: center; padding: 0; }
.piano-oct button .ico { width: 16px; height: 16px; }
.piano-oct button:disabled { opacity: .3; }
.piano-oct span { min-width: 72px; text-align: center; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.target-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--text); color: #000; border: 0; border-radius: 4px; padding: 5px 10px 5px 8px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.target-chip .ico { width: 12px; height: 12px; }
.tg-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--muted); padding: 0; line-height: 1; margin-left: 0; flex: 0 0 auto; }
.piano-keys { position: relative; display: flex; height: 138px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  border-radius: 3px; overflow: hidden; background: #000; padding-top: 5px; box-shadow: inset 0 5px 6px -2px rgba(0,0,0,.9); }
.pk { position: relative; cursor: pointer; }
.pk.w { flex: 1; min-width: 0; margin-right: 1px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #d9d5d1 0%, #fbfaf8 12%, #efece8 100%);
  box-shadow: inset 0 -5px 0 #d2cdc8; transition: background .08s, box-shadow .08s; }
.pk.w:last-child { margin-right: 0; }
/* pressed: only the colour changes, never the shape (Mark's tester, 2026-10-10: neighbours looked squeezed) */
.pk.w.down { background: linear-gradient(180deg, #c4bfba 0%, #dedad5 20%, #d6d2cd 100%); box-shadow: inset 0 -5px 0 #c4bfba; }
.pk.b { position: absolute; top: 5px; z-index: 2; height: 58%; width: calc(100% / 14 * .6); margin-left: calc(100% / 14 * -.3); border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #111 0%, #2b2b2b 70%, #3a3a3a 100%); box-shadow: 0 3px 5px rgba(0,0,0,.55), inset 0 -4px 0 #0c0c0c, inset 1px 0 0 #444; transition: background .08s, box-shadow .08s; }
.pk.b.down { background: linear-gradient(180deg, #4a4a4a, #5c5c5c); }
.pk .lbl { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-size: .6rem; font-weight: 700; color: #8f8983; pointer-events: none; }
/* target = the last note played: a small dot on its key */
.pk.target::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #111; bottom: 26px; }
.pk.b.target::after { background: #fff; bottom: 9px; }
/* live = the note you're singing right now; green when it's on target */
.pk.w.live { background: linear-gradient(180deg, #d9d5d1 0%, #c9c3bd 40%, #a9a39d 100%); }
.pk.b.live { background: linear-gradient(180deg, #333, #6a6560); }
.pk.w.live.ok { background: linear-gradient(180deg, #d9d5d1 0%, #bfe9d3 40%, #7fd1a8 100%); }
.pk.b.live.ok { background: linear-gradient(180deg, #1f4a36, #4cc38a); }

/* Pitch: one screen, no scrolling (height set by fitPitch() in app.js) */
main.fit { padding-bottom: 0; }
.tab.pitch { display: flex; flex-direction: column; min-height: 0; }
.pitch-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pitch-top .seg { flex: 1; margin: 0; }
.mic-pill { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border-radius: 5px;
  border: 1px solid var(--line2); background: none; font-weight: 700; flex: 0 0 auto; }
.mic-pill .ico { width: 20px; height: 20px; }
.mic-pill.starting { opacity: .55; }
.mic-pill.on { background: var(--text); color: #000; border-color: var(--text); }
.mic-pill.on::after { content: ""; position: absolute; inset: -5px; border-radius: 6px; border: 2px solid rgba(255,255,255,.55); animation: micpulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes micpulse { from { opacity: .9; transform: scale(.97); } to { opacity: 0; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .mic-pill.on::after { animation: none; opacity: .5; } }
.mic-status { margin: 8px 2px 0; font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.pitch-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 8px; }

.readout { display: flex; align-items: center; gap: 14px; }
.readout .note-display { margin: 0; font-size: 3.6rem; min-width: 2.3ch; text-align: left; }
.readout #note-oct { font-size: 1.3rem; margin-left: 2px; }
.readout .cents { flex: 1; min-width: 0; }
.cents-val { color: var(--muted); font-size: .85rem; line-height: 1.25; margin-top: 7px; min-height: 2.5em; }
.graph { position: relative; flex: 1 1 auto; min-height: 70px; margin-top: 6px; }
#tab-pitch #pitch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.tab.pitch .piano { flex: 0 0 auto; margin-top: 10px; padding: 10px 10px 12px; }
.tab.pitch .piano-head { margin-bottom: 8px; }
.tab.pitch .piano-keys { height: clamp(92px, 16vh, 138px); }
#pitch-mode .seg-btn { font-size: .88rem; white-space: nowrap; }

/* Scream-o-meter */
#pitch-meter { overflow: auto; scrollbar-width: none; } /* scrolls inside the screen without showing a scrollbar line */
#pitch-meter::-webkit-scrollbar { display: none; }
.meter { position: relative; text-align: center; padding: 6px 4px 4px; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }

.meter-verdict { font-size: 1.7rem; font-weight: 700; letter-spacing: 0; margin-top: 10px; }
.meter-verdict.ok { color: var(--ok); }
.meter-sub { color: var(--muted); font-size: .9rem; margin: 6px 8px 10px; min-height: 2.6em; }
.meter-hist-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 2px 8px; }
.meter-hist { display: flex; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.mh { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 1px solid var(--line2); color: var(--muted); }
.mh.ok { border-color: var(--ok); color: var(--ok); }
.meter-note { color: var(--muted); font-size: .78rem; margin: 14px 2px 4px; }

/* Scream-o-meter v2: timer ring + result tiles */
.m-ring { position: relative; width: 138px; height: 138px; margin: 8px auto 2px; }
.m-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.r-track, .r-min, .r-fill { fill: none; stroke-width: 7; }
.r-track { stroke: #242424; }
.r-min { stroke: #3a3a3a; }            /* the minimum length of a scream */
.r-fill { stroke: var(--text); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .1s linear; }
.m-ring.armed::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: micpulse 1.6s ease-out infinite; pointer-events: none; }
.m-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.m-time { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.m-time small { font-size: .9rem; color: var(--muted); margin-left: 2px; }
.m-state { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.m-tile { border: 1px solid var(--line2); border-radius: 4px; padding: 10px 4px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); transition: background .12s, color .12s, border-color .12s; }
.m-tile.live { border-color: var(--text); color: var(--text); }
.m-tile.good.live { border-color: var(--ok); color: var(--ok); }
.m-tile.good.final { background: var(--ok); border-color: var(--ok); color: #000; }
.help-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 700; font-size: 1rem; padding: 0; z-index: 1; }
.meter-note .link { padding: 0; }

/* Routine cards open into their exercise list */
#routine-list .panel { margin-top: 12px; }
#routine-list .panel .wu-head { margin-top: 0; padding-top: 0; border-top: 0; }
.rs-list li { cursor: pointer; align-items: center; }
.rs-list li:active { background: var(--card2); }
.rs-list .rs-name { min-width: 0; flex: 1; }
.rs-list li .rs-play { flex: 0 0 auto; width: 14px; height: 14px; margin-right: 10px; color: var(--text); } /* ▶ on the left (2026-10-10) */

/* Scream-o-meter: a wrong result is shown in red (Mark's choice, 2026-09-28) */
.meter-verdict.no { color: var(--bad); }
.m-tile.final { background: var(--bad); border-color: var(--bad); color: #fff; }
.mh.no { border-color: var(--bad); color: var(--bad); }
.seg-btn.soon { opacity: .55; }
.seg-soon { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line2); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.m-kicker { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; min-height: 1em; }
.m-kicker:not(:empty) + .meter-verdict { margin-top: 2px; }
#pitch-mode .seg-soon { vertical-align: 1px; }
/* Meter result → Mark's written guides; rest day; Scream-o-meter progress */
.m-read { margin: -4px 10px 12px; text-align: left; }
.rest-links .link { padding: 4px 0; font-size: .9rem; text-align: left; }
.m-rest { margin: 0 0 10px; font-size: .88rem; }
.m-rest .link { padding: 4px 0 0; display: block; }
.rest-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.sp-grid { margin: 10px 0 8px; }
.sp-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 64px; align-items: end; margin-top: 10px; }
.sp-bar { height: 100%; border-radius: 5px; background: var(--card2); display: flex; align-items: flex-end; overflow: hidden; }
.sp-bar.today { outline: 2px solid var(--lava2); outline-offset: 1px; }
.sp-fill { width: 100%; background: var(--ok); border-radius: 5px 5px 0 0; }
.sp-axis { display: flex; justify-content: space-between; margin: 4px 0 10px; font-size: .72rem; }
/* Result boxes play Mark's example of that sound */
.m-tile.can-play { cursor: pointer; }
.m-tile-play { font-size: .6rem; margin-right: 5px; opacity: .7; vertical-align: 1px; }
.m-tile.playing { outline: 2px solid var(--text); outline-offset: 1px; color: var(--text); }
.m-tiles-hint { color: var(--muted); font-size: .75rem; text-align: center; margin: 8px 0 0; }
/* New meter (2026-10-08): "Some fry" is not a mistake → white, not red; history dot ◐ in white */
.m-tile[data-k=some].final { background: var(--text); border-color: var(--text); color: #000; }
.mh.mid { border-color: var(--text); color: var(--text); }
/* Preview-only take recorder (2026-10-08) */
.m-take { margin-top: 14px; padding: 12px; border: 1px dashed var(--line2); border-radius: 5px; }
.m-take .stat-label { margin: 0 0 8px; }
.m-take-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.m-take-btns .pill { border: 1px solid var(--line2); padding: 8px 12px; font-size: .8rem; color: var(--text); }
#m-take-msg { margin: 8px 0 0; word-break: break-all; }
/* Start screen with Mark's full logo */
#splash { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .4s ease; }
#splash img { width: min(62vw, 280px); height: auto; animation: splash-in .5s ease both; }
#splash.out { opacity: 0; pointer-events: none; }
@keyframes splash-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
/* Warm up: the "big step back" tip under the scale list (since 2026-09-30) */
.wu-tip { margin: 8px 0 0; }
/* Player speed for the whole routine (2026-09-30) */
.p-speed { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 2px; }
.p-speed .stat-label { margin-right: 4px; }
.round.sm { width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700; line-height: 1; padding: 0; }
.round.sm:disabled { opacity: .3; }
#p-speed-val { min-width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Legal notice & privacy (2026-09-30) */
.legal h3 { font-size: .95rem; margin: 16px 0 4px; }
.legal p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.legal dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .9rem; margin: 6px 0 10px; }
.legal dt { color: var(--muted); } .legal dd { margin: 0; overflow-wrap: anywhere; }
.legal .todo { color: var(--bad); }
#m-legal { z-index: 30; } /* opens on top of Settings / the welcome screen */

/* Player options row: speed + repeat (2026-10-01) */
.p-opts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 2px; }
.p-opts .p-speed { margin: 0; }
.p-repeat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2);
  background: none; color: var(--muted); font-size: .85rem; font-weight: 700; }
.p-repeat .ico { width: 17px; height: 17px; }
.p-repeat.on { background: var(--text); border-color: var(--text); color: #000; }
/* Sing / Scream button in the middle of the screen (2026-10-01), moved between the two slots by setPitchMode() */
.mic-slot { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; margin-top: 10px; }
.mic-slot .mic-pill { height: 52px; min-width: 58%; justify-content: center; font-size: 1.05rem; padding: 0 22px; }
.mic-slot .mic-pill .ico { width: 22px; height: 22px; }
.mic-slot .mic-status { margin: 6px 0 0; text-align: center; }
#mic-slot-meter { margin-top: 12px; }
/* The exercise that's playing, in every list (2026-10-01) */
.row.now, .wu-steps li.now { border-color: var(--text); box-shadow: inset 4px 0 0 var(--text); }
.row.now .grow, .wu-steps li.now .rs-name { color: var(--text); font-weight: 700; }
.row.now .grow::before, .wu-steps li.now .rs-name::before { content: "▶ "; font-size: .8em; }
#off-save { margin-top: 6px; }
/* Premium (plan 2026-10-02): lock badges, banner, upgrade sheet */
.lock-ico { width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -2px; opacity: .8; }
.row.locked .pick { display: grid; place-items: center; border-style: dashed; }
.up-list li::marker { color: var(--text); }
#m-upgrade .primary .lock-ico, #tp-videos .primary .lock-ico { margin-right: 6px; }
/* Routine builder "My week" (2026-10-02) */
.today-note { color: var(--bad); font-size: .9rem; }
.rb-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0 10px; }
.rb-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 4px; border: 1px solid var(--line2); background: none; font-size: .72rem; color: var(--muted); }
.rb-day b { font-size: .8rem; color: var(--text); }
.rb-day.sing { border-color: var(--lava2); color: var(--text); }
.rb-day.scream { background: var(--text); border-color: var(--text); color: #000; }
.rb-day.scream b { color: #000; }
.rb-day.rest { border-style: dashed; }
.rb-day.today { outline: 2px solid var(--lava2); outline-offset: 2px; }
.rb-warn { font-size: .85rem; line-height: 1.5; }
.rb-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 8px 0 12px; }
.rb-agree input { margin-top: 3px; flex: 0 0 auto; }
/* Voice diary (2026-10-02) */
#vd-kind { margin-top: 4px; }
#vd-rec.on { background: var(--text); border-color: var(--text); color: #000; }
#vd-list .row { gap: 6px; }
#vd-list .vd-cmp { font-size: .75rem; padding: 0 8px; }
#vd-list .vd-del { font-size: .78rem; }

/* My routine (Premium home + hub, 2026-10-03; no badges — Mark) */
.routine-btn { width: 100%; margin: 10px 0 2px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); color: var(--text); text-align: left;
  border: 1px solid transparent; background: linear-gradient(160deg, #222, #0a0a0a) padding-box, linear-gradient(120deg, #5e5a57, #2a2a2a 50%, #57534f) border-box; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.routine-btn img { width: 46px; height: 46px; object-fit: contain; }
.routine-btn .rt-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.routine-btn b { font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400; font-size: 1.55rem; text-transform: uppercase; line-height: 1; }
.routine-btn small { color: var(--muted); font-size: .82rem; }
.rt-checkin { margin-top: 10px; }
.rt-back { margin: 6px 0 2px; }
.rt-hero { min-height: 120px; }
.rt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 8px; text-align: center; }
.rt-day { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .7rem; color: var(--muted); }
.rt-day i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--line2); color: var(--text); }
.rt-day.scream i { background: var(--text); color: #000; border-color: var(--text); }
.rt-day.rest i { border-style: dashed; color: var(--muted); }
.rt-day.done i { background: #2a2a2a; color: var(--text); border-color: var(--lava2); }
.rt-day.today span { color: var(--text); font-weight: 700; }
.rt-day.today i { outline: 2px solid var(--lava2); outline-offset: 3px; }
.rt-prog { margin: 6px 0 12px; }
.rt-prog-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.rt-today h2 { font-size: 1.7rem; margin: 2px 0 8px; }
.rt-steps { list-style: none; padding: 0; margin: 4px 0 14px; counter-reset: s; }
.rt-steps li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.rt-steps li span:first-child::before { content: counter(s); color: var(--muted); font-weight: 700; margin-right: 10px; }
.rt-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rt-next .secondary { margin-top: 12px; }
/* Settings groups + compact voice diary (2026-10-03) */
.set-group { margin: 16px 0 6px; }
.set-group .section-title { margin: 0 0 6px; }
#set-close { margin-top: 16px; }
.vd-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); padding: 2px 0; text-align: left; }
.vd-head b { font-size: 1.05rem; }
.vd-head .chev { margin-left: auto; transition: transform .15s; }
.vd-head.open .chev { transform: rotate(90deg); }
#vd-body { margin-top: 10px; }

/* Titles only + "?" (Mark, 2026-10-05) */
.card-wrap { position: relative; }
.card-wrap > .card { width: 100%; }
.card-wrap > .card.feature { padding-right: 48px; }
.card-wrap > .card .chev, .card-wrap > .card .lock-ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
.card-wrap > .card.open .chev { transform: translateY(-50%) rotate(90deg); }
#m-info #info-text { white-space: pre-line; }
/* The "?" right beside the title (Mark, 2026-10-05) */
.title-help { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card2);
  color: var(--muted); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .75rem; line-height: 1; vertical-align: 2px; padding: 0; cursor: pointer; }
.title-help:active { color: var(--text); border-color: var(--text); }
/* The home image is tappable (2026-10-05) */
.hero-tap { cursor: pointer; }
.hero-tap:active { border-color: var(--line2); }
.hero-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 8px 10px 8px 14px; border-radius: 4px; background: var(--text); color: #000;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.hero-cta .ico { width: 16px; height: 16px; stroke-width: 2.4; transition: transform .15s; }
.hero-tap:active .hero-cta { transform: scale(.97); }
#hero-title .title-help { vertical-align: 6px; }
#hero[data-mode=warmup] .hero-art { height: 410px; } /* taller image so the logo lettering stays below the banner */
#hero[data-mode=routine] .hero-cta { display: none; } /* Premium: the My routine button right below does this job */

/* Per-day focus (2026-10-05) */
.rb-day span { line-height: 1.25; }
.rb-day.sel { outline: 2px solid var(--text); outline-offset: 2px; }
.rb-dayedit { border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px 12px 4px; margin: 0 0 12px; background: var(--card2); }
.rb-dayedit .section-title { margin: 2px 0 4px; }
.seg.rb-focus { flex-wrap: wrap; }
.seg.rb-focus .seg-btn { flex: 1 1 30%; font-size: .82rem; padding-left: 4px; padding-right: 4px; }
.rt-change { margin-top: 10px; }
#rt-change-box .seg.rb-focus { margin-top: 8px; }
/* Sectioned explanations in the "?" pop-up (2026-10-05) */
#info-sections .section-title { margin: 16px 0 6px; }
#info-sections .info-list { margin: 0; }
#info-sections .info-list li { margin: 4px 0; }
#m-info #info-ok { margin-top: 18px; }

/* Demonstrations screen (Mark, 2026-10-07): back arrow + big title, then cards (Warm up | Cool down → Lip trill | LaxVox
   → Low voice | High voice), then the list with a white "Play all" */
.dm-top { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; }
.dm-backbtn { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2);
  background: none; color: var(--text); }
.dm-backbtn:active { background: var(--card2); }
.dm-backbtn .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.dm-heading { min-width: 0; }
.dm-heading .eyebrow { margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-heading h1 { font-size: 2rem; line-height: 1; display: flex; align-items: center; gap: 10px; }
/* "Guided warm-ups" stays on one line next to the back arrow (Mark, 2026-10-12: it broke as "Guided Warm- / Ups") */
#dm-title { font-size: clamp(1.25rem, 6.4vw, 2rem); white-space: nowrap; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 150px; padding: 16px; width: 100%; color: var(--text); }
.dm-card .f-icon { margin-bottom: auto; }
.dm-card b { font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400; font-size: 1.25rem; line-height: 1.1;
  margin: 18px 0 4px; letter-spacing: .01em; }
.dm-card .meta { font-size: .8rem; }
#dm-list .primary { margin-top: 16px; }

/* Piano "Notes" toggle + "?" (2026-10-05) */
.pk-notes { height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); background: none; color: var(--muted); font-weight: 700; font-size: .78rem; margin-left: auto; }
.pk-notes.on { background: var(--text); border-color: var(--text); color: #000; }
.piano-target .title-help { margin-left: 0; }
.pk.b .lbl { bottom: 6px; color: #cfcac5; font-size: .5rem; }
.pk.w .lbl { font-size: .55rem; }
/* Pre-scream: discreet "only if you already know how to fry scream" line */
.routine-warn { font-size: .8rem; color: var(--muted); border-left: 2px solid var(--bad); padding: 2px 0 2px 10px; margin: 0 0 12px; }
/* APP RETHINK (Mark, 2026-10-10): the home is the scale list; a Play bar sits right above the tab bar */
.wu-pick { margin-top: 18px; }
.wu-pick-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.sc-hint { margin: 12px 2px 0; }
.wu-pick + .cards { margin-top: 22px; }
.pickbar { position: fixed; left: 0; right: 0; bottom: calc(59px + env(safe-area-inset-bottom, 0px)); z-index: 6; display: flex; gap: 8px;
  padding: 8px 12px; max-width: 640px; margin: 0 auto; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85) 30%); }
.pb-play { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 5px; padding: 14px;
  background: var(--text); color: #000; font-weight: 700; box-shadow: 0 6px 24px rgba(255,255,255,.08); }
.pb-play .ico { width: 18px; height: 18px; }
.pb-play:active { transform: scale(.98); }
.pb-clear { width: 50px; border: 1px solid var(--line2); border-radius: 5px; background: #0e0e0e; color: var(--muted); font-size: 1rem; }
body.has-pickbar main { padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)); }
.rb-scales { margin: 6px 0 8px; }
.rb-scales-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secondary.sm { width: auto; display: inline-block; padding: 9px 14px; margin-top: 0; font-size: .85rem; }

/* Practice calendar (Progress, 2026-10-10): month log; white = practiced, the face = that day's voice check-in */
.cal { margin-top: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font-size: 1.15rem; text-align: center; flex: 1; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: none; display: grid; place-items: center; padding: 0; color: var(--text); }
.cal-nav .ico { width: 18px; height: 18px; }
.cal-nav:disabled { opacity: .25; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: .7rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; min-width: 0; border-radius: 5px; border: 0; background: var(--card2); color: var(--text); padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; -webkit-tap-highlight-color: transparent; }
.cal-day b { font-size: .85rem; font-weight: 700; line-height: 1; }
.cal-day i { font-style: normal; font-size: .72rem; line-height: 1; min-height: .8rem; }
.cal-day.on { background: var(--text); color: #000; }
.cal-day.today { outline: 2px solid var(--lava2); outline-offset: 1px; }
.cal-day:disabled { background: none; color: var(--muted); opacity: .4; }
.cal-key { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--text); }
/* Day card v2 (2026-10-10, Mark: "looks deactivated"): white section titles, add practice, faces always tappable */
.day-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 8px; }
.day-sec b { font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
#day-total { font-weight: 700; font-size: 1.05rem; }
#day-practice .row { margin-bottom: 6px; }
.day-right { display: inline-flex; align-items: center; gap: 8px; }
.day-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--muted); padding: 0; line-height: 1; font-size: 1rem; }
.day-addbtn { margin-top: 4px; }
.day-form { border: 1px solid var(--line2); border-radius: 6px; padding: 10px 12px 12px; margin-top: 4px; }
.day-form .muted.small { margin: 4px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: none; color: var(--text); border-radius: 4px; padding: 8px 12px; font: inherit; font-size: .88rem; font-weight: 600; }
.chip.on { background: var(--text); border-color: var(--text); color: #000; }
.day-formbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.primary.sm { width: auto; display: inline-block; padding: 9px 18px; margin-top: 0; font-size: .85rem; }
.primary.sm:disabled { opacity: .35; }
#day-feel { margin: 0 0 6px; }
#day-feel button { filter: none; opacity: .85; }
#day-feel button.active { opacity: 1; }
#m-day .primary#day-ok { margin-top: 18px; }
/* Layout fixes from Mark's phone screenshots (2026-10-10) */
.nowrap { white-space: nowrap; }
/* piano header: the target chip + × stay on one line; while a target is set, the "Piano" word and the range text
   step aside so everything fits on narrow phones (the C keys are labelled anyway) */
#piano-target { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
#piano-target:empty { display: none; }
.piano-head.has-target .piano-target > .stat-label, .piano-head.has-target #pk-range { display: none; }
.piano-head.has-target .piano-oct { gap: 6px; }
/* day card: Cancel and Add the same size */
.day-formbtns button { flex: 1; height: 44px; padding: 0 12px; margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
#m-day .day-formbtns button { margin: 0; }

/* Coach: today's check-in card (2026-10-10) */
.ci-card h2 { margin: 0 0 10px; }
.ci-faces { margin: 0; }
.ci-faces button { filter: none; opacity: 1; }
.ci-card.done { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.ci-face { font-size: 1.7rem; line-height: 1; }
.ci-txt { flex: 1; }
.ci-card.done .link { padding: 0; }
/* Follow Mark (2026-10-10) */
.follow { display: grid; gap: 10px; }
a.follow-card { text-decoration: none; color: var(--text); }
.follow-card .f-text { display: flex; flex-direction: column; gap: 2px; }
/* Scream-o-meter: "Progress" button next to "Last attempts" (2026-10-10) */
.meter-hist-head #m-count { margin-left: auto; }
.sp-open { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2); background: none; color: var(--text); font-weight: 700; font-size: .8rem; }
.sp-open .ico { width: 15px; height: 15px; }
#m-sp .primary { margin-top: 16px; }
/* Home tiles under the image (2026-10-10): Demonstrations · Pre-scream · Follow Mark */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px;
  border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-top), var(--card)); color: var(--text);
  font: inherit; font-weight: 700; font-size: .82rem; line-height: 1.15; text-align: center; -webkit-tap-highlight-color: transparent; }
.tile .ico { width: 26px; height: 26px; }
.tile:active { background: var(--card2); }
#tab-follow .follow { margin-top: 14px; }
/* day card: the question that follows the face */
.day-q { margin: 12px 0 8px; }
.day-safety { margin-top: 10px; padding: 0; }
/* Home scale cards (2026-10-10): level cards (one open), mood icons, "Your warm-up" strip */
.sc-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-top), var(--card)); margin-top: 8px; overflow: hidden; }
.sc-card.open { border-color: var(--line2); }
.sc-card-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 14px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.sc-card-name { font-family: "Saira Stencil One", sans-serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.sc-card-meta { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sc-card-meta em { font-style: normal; color: var(--text); font-weight: 700; }
.sc-card-head .chev { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s; color: var(--muted); }
.sc-card.open .sc-card-head .chev { transform: rotate(90deg); }
.sc-lvl { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; flex: 0 0 auto; }
.sc-lvl i, .sc-lvl b { display: block; width: 4px; border-radius: 1px; background: var(--text); }
.sc-lvl b { background: var(--line2); }
.sc-lvl > :nth-child(1) { height: 7px; } .sc-lvl > :nth-child(2) { height: 11px; } .sc-lvl > :nth-child(3) { height: 16px; }
.sc-rows { padding: 0 10px 10px; display: grid; gap: 6px; }
.sc-note { margin: 0 4px 2px; }
.sc-row { margin: 0; background: rgba(255,255,255,.02); }
.sc-row.picked { border-color: var(--line2); background: rgba(255,255,255,.06); }
.sc-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-name { font-weight: 600; }
.sc-strip { margin: 10px 0 2px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.sc-strip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 4px; border-radius: 4px; background: var(--text); color: #000; font-weight: 700; font-size: .82rem; }
.sc-chip b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #000; color: var(--text); font-size: .72rem; }
.sc-chip button { border: 0; background: none; color: #000; font-size: 1rem; line-height: 1; padding: 0 4px; opacity: .55; }
.sc-arrow { color: var(--muted); font-size: .8rem; }
/* ▶ on the left, circle on the right in every audio list (Mark, 2026-10-10) */
.row > .pill.play:first-child, .row > .sc-play:first-child { flex: 0 0 auto; }
/* Mini player in the white bar while something plays (Mark, 2026-10-10): its thin progress line */
.pb-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #000; opacity: .55; transition: width .25s linear; }
/* Full player in the bar while something plays (Mark, 2026-10-10: replaces the play/pause-only bar) */
.pb-mini { position: relative; flex: 1; min-width: 0; background: var(--text); color: #000; border-radius: 5px; padding: 8px 10px 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.pb-title { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 0; background: none; color: #000; padding: 2px 4px 6px; font: inherit; text-align: left; }
.pb-title #pb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pb-time { font-size: .78rem; opacity: .65; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.pb-ctrl { display: flex; align-items: center; justify-content: space-between; padding: 0; }
.pb-ctrl button { width: 40px; height: 40px; border: 0; background: none; color: #000; display: grid; place-items: center; padding: 0; font-size: 1.1rem; }
.pb-ctrl button .ico { width: 22px; height: 22px; }
.pb-ctrl .pb-pp { width: 52px; height: 44px; border-radius: 50%; }
.pb-ctrl .pb-pp .ico { width: 28px; height: 28px; }
.pb-ctrl button:disabled { opacity: .3; }
.pb-ctrl .pb-stop { opacity: .6; }
/* Scale rows: the level's mood icon (2026-10-10, replaces the melody drawings) */
.sc-vibe { width: 22px; height: 22px; flex: 0 0 auto; margin-right: 6px; color: var(--lava2); opacity: .75; }
.sc-row.picked .sc-vibe { color: var(--text); opacity: 1; }
/* Scream-o-meter Beta line (2026-10-11) */
.m-beta { margin: 4px 8px 6px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.m-beta .seg-soon { margin-right: 4px; }
.m-beta .link { padding: 0; font-size: inherit; }

/* ±5 seconds buttons (2026-10-11; the gaps in .controls and .pb-ctrl were narrowed for them) */
.round.sm5 { width: 44px; height: 44px; border-color: transparent; background: none; }
.round.sm5 .ico { width: 24px; height: 24px; }
/* Pitch display can be dragged up/down (2026-10-11) */
#tab-pitch #pitch-canvas { touch-action: none; cursor: ns-resize; }

/* Support Mark (donation link, 2026-10-11): looks like the other white buttons */
a.donate-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #000; margin-top: 12px; }
.donate h2 { margin-top: 0; }

/* Support Mark card, a bit more presence (Mark, 2026-10-11): brighter border, soft glow, icon + stencil title */
.panel.donate { margin-top: 18px; border-color: rgba(255,255,255,.28); background: linear-gradient(160deg, #222 0%, #121212 55%, #0c0c0c 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 32px rgba(0,0,0,.55), 0 0 26px rgba(255,255,255,.05); }
.donate-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.donate-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; display: grid; place-items: center; background: var(--text); color: #000; }
.donate-ico .ico { width: 28px; height: 28px; }
.donate h2 { margin: 0; font-size: 1.45rem; text-transform: uppercase; }
.donate .muted { margin: 4px 0 0; }
/* Support Mark screen (2026-10-11): donation first, then the social links under a small heading */
.follow-head { margin: 22px 0 10px; }
#tab-follow .panel.donate { margin-top: 14px; }

/* After-session "Buy Mark a coffee" line (2026-10-11): sits above the tab bar (and above the Play bar when it shows) */
.thanks { position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 8;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 6px;
  background: linear-gradient(160deg, #222, #121212); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 10px 32px rgba(0,0,0,.6); }
body.has-pickbar .thanks { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
.thanks-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 5px; display: grid; place-items: center; background: var(--text); color: #000; }
.thanks-ico .ico { width: 20px; height: 20px; }
.thanks-text { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; }
.thanks-go { flex: 0 0 auto; padding: 8px 10px; border-radius: 4px; background: var(--text); color: #000; font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.thanks-x { flex: 0 0 auto; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 1rem; padding: 0; }
/* Tapping a row's name plays it, like ▶ (Mark, 2026-10-12) */
.sc-row .grow, #breath-list .row:not(.locked) .grow, #dm-list .row:not(.locked) .grow { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Guided warm-ups → Gentle warm-up (2026-10-12): a heading per sound (name + "?"), its short line, then its tracks */
.dm-sound { margin: 24px 0 8px; }
/* One screen with tabs (Mark, 2026-10-12): Gentle | Warm up | Cool down, then Lower / Higher voices, then the tab's heading */
#dm-tabs { margin-top: 4px; }
#dm-voice { margin-top: 0; }
.dm-tabtitle { margin: 18px 0 0; font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.dm-tabtitle + .dm-sound { margin-top: 14px; }
.dm-tabtitle + .list { margin-top: 12px; }
.dm-sound .section-title { margin: 0; color: var(--text); font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400;
  font-size: 1.2rem; text-transform: none; letter-spacing: .02em; }
.dm-sound .meta { margin: 2px 0 0; font-size: .85rem; }
/* HOME (Mark, 2026-10-12): "Start here" + 2 x 2 square cards, the symbol in the middle, the name under it, no pictures:
   Guided warm-ups · Scales · Fry scream warm-up · Support Mark */
.start-here { margin: 18px 0 12px 2px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 4px; }
.sq { aspect-ratio: 1 / 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px 12px;
  border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(150deg, #1d1d1d, #0a0a0a 70%); color: var(--text); text-align: center; }
.sq-ico { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 6px; }
.sq-ico .ico { width: 32px; height: 32px; }
.sq-name { font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-size: 1.35rem; line-height: 1.08; text-transform: uppercase; min-height: 2.16em; } /* 2 lines for every name, so the symbols line up */
/* "?" texts may contain a link (e.g. the trial lesson in Noo) */
#info-text a { color: var(--text); text-decoration: underline; }

/* ===== PHOTO DESIGN (Mark, 2026-10-12): concert photos behind the top of each screen, big titles, and every card /
   row / button in the same dark see-through grey as the home cards. Photos: img/bg/ (credits: photographer + Gian,
   see legal). Never show the drummer (crops are cut above him). ===== */
#tab-warmup, #tab-demos, #tab-scales, #tab-pre, #tab-follow { position: relative; isolation: isolate; display: flow-root; }
#tab-warmup::before, #tab-demos::before, #tab-scales::before, #tab-pre::before, #tab-follow::before {
  content: ""; position: absolute; left: -16px; right: -16px; top: -12px; height: 430px; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; }
#tab-warmup::before { height: 330px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 45%, rgba(8,8,8,.85) 80%, #080808 100%),
  url("img/bg/home.jpg") 30% 30% / auto 100% no-repeat; }
#tab-demos::before  { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), url("img/bg/guided.jpg") 47% 0% / cover no-repeat; }
#tab-scales::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), url("img/bg/scales.jpg") 0% 0% / cover no-repeat; }
#tab-pre::before    { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), url("img/bg/fry.jpg") 50% 35% / cover no-repeat; }
#tab-follow::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), url("img/bg/support.jpg") 50% 100% / cover no-repeat; }
/* home: big "Start here" over the photo, square cards */
.start-here { margin: 150px 0 14px 2px; color: var(--text); font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-weight: 400;
  font-size: 2.3rem; letter-spacing: .03em; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.sq { aspect-ratio: 1 / 1; gap: 14px; }
.sq-ico { width: 56px; height: 56px; }
/* section screens: back arrow above a big title, over the photo */
.dm-top { margin-top: 96px; flex-direction: column; align-items: flex-start; gap: 14px; }
.dm-heading h1 { font-size: clamp(1.6rem, 9.5vw, 2.3rem); white-space: normal; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
#dm-title { font-size: clamp(1.4rem, 8vw, 2rem); white-space: nowrap; }
.dm-heading .eyebrow { color: #ddd; text-shadow: 0 1px 8px #000; }
.dm-backbtn { background: rgba(0,0,0,.45); }
/* one look for every card, row and button: the home cards' dark grey, slightly see-through (Mark: "same as home") */
.row, .card, .panel, .seg, .sc-card, .sq, .dm-backbtn, .pill.play, .donate, .follow-card, .sc-card .sc-row {
  background: rgba(14,14,14,.86) !important; border-color: rgba(255,255,255,.14) !important; backdrop-filter: none; }
.seg-btn.active { background: var(--text) !important; }
.modal .panel, .modal .card, .modal .row { background: var(--card) !important; } /* windows stay solid */
/* Pitch + Scream-o-meter: smooth dark panels (no more thick matte grey) and their own backgrounds */
main.fit { position: relative; isolation: isolate; }
main.fit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 470px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,8,8,.35) 55%, #080808 100%), url("img/bg/pitch.jpg") 50% 0 / cover no-repeat; }
main.fit.meter-mode::before { height: 420px;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 50%, rgba(8,8,8,.92) 85%, #080808 100%), url("img/bg/meter.jpg") 50% 8% / cover no-repeat; }
#tab-pitch .meter, #tab-pitch .m-tiles > *, #tab-pitch .mic-pill:not(.on), #tab-pitch .banner, #tab-pitch .sp-open, #tab-pitch .help-btn, #tab-pitch .meter-hist > * {
  background: rgba(14,14,14,.86) !important; border: 1px solid rgba(255,255,255,.10) !important; box-shadow: none !important; }
#tab-pitch #pitch-canvas { background: rgba(10,10,10,.6) !important; border: 1px solid rgba(255,255,255,.10) !important; }
#tab-pitch .piano { background: rgba(10,10,10,.88) !important; border: 1px solid rgba(255,255,255,.10) !important; }
#tab-pitch .piano-head button { background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.10) !important; }/* Breathing (Gian) and Coach (Mark) photos, Mark 2026-10-12: same header as the other screens */
#tab-breathing, #tab-progress { position: relative; isolation: isolate; display: flow-root; }
#tab-breathing::before, #tab-progress::before { content: ""; position: absolute; left: -16px; right: -16px; top: -12px; height: 430px; z-index: -1; pointer-events: none; }
#tab-breathing::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), url("img/bg/breathing.jpg") 40% -60px / auto 480px no-repeat; }
#tab-progress::before  { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 22%, rgba(0,0,0,.2) 45%, rgba(8,8,8,.88) 80%, #080808 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%), url("img/bg/coach.jpg") 30% -46px / auto 480px no-repeat; } /* darker top + top-left, head a bit lower (Mark, 2026-10-12) */
#tab-breathing .page-head, #tab-progress .page-head { margin-top: 150px; }
#tab-breathing .page-head h1, #tab-progress .page-head h1 { font-size: 2.3rem; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
#tab-breathing .page-head .eyebrow, #tab-progress .page-head .eyebrow { color: #ddd; text-shadow: 0 1px 8px #000; }
#tab-progress .stat { background: rgba(14,14,14,.86) !important; border-color: rgba(255,255,255,.14) !important; }#tab-breathing .row { background: rgba(14,14,14,.76) !important; } /* Mark: Breathing cards a bit more see-through */
.pre-about { margin-top: 8px; padding: 0; font-size: .95rem; color: #ddd; text-decoration: underline; text-shadow: 0 1px 8px #000; } /* Fry scream warm-up: About under the title (2026-10-12) */
/* Breathing timer (Mark, 2026-10-12): a ring like a phone timer, time inside, ■ and ▶/❚❚ round buttons under it */
.bt { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 16px; margin-top: 14px; }
.bt-ring { position: relative; width: 210px; height: 210px; }
.bt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bt-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.bt-fill { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.bt-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.bt-time { font-size: 2.6rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1; }
.bt-time.bt-big { font-size: 4rem; font-family: "Saira Stencil One", "Space Grotesk", sans-serif; }
.bt-sub { color: var(--muted); font-size: .85rem; }
.bt-set { display: flex; align-items: center; gap: 2px; margin-top: 4px; } /* − and + closer together (Mark) */
.bt-set button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--text); font-size: 1.2rem; line-height: 1; padding: 0; }
.bt-set span { min-width: 46px; text-align: center; font-weight: 600; font-size: .95rem; }
.bt-btns { display: flex; gap: 56px; margin-top: 14px; }
.bt-btn { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--text); display: grid; place-items: center; padding: 0; }
.bt-btn .ico { width: 24px; height: 24px; }
.bt-btn:disabled { opacity: .35; }
.bt-main { background: var(--text); color: #000; border-color: var(--text); }
.bt-card { margin-top: 14px; }
.bt-card .sc-rows { padding-bottom: 12px; }
.bt-card #breath-play { margin: 12px 0 0; width: 100%; }.bt-mode { width: 100%; margin: 0 0 14px; }
.bt-mode .seg-btn:disabled { opacity: .5; }
.credits a { color: var(--text); text-decoration: underline; } /* photo credits in Settings (2026-10-13) */
/* Top bar title (Mark, 2026-10-13): bigger words, HC and VOCALS closer, VOCALS white; the logo keeps its size */
.brand { gap: 0; }
.brand-emblem { margin-right: 10px; }
.brand-hc { margin-right: 5px; }
.brand-hc, .brand-word { font-size: 1.5rem; letter-spacing: .03em; }
.brand-word { color: var(--text); }
/* Breathing timer setting (Mark, 2026-10-13): tap the time to choose it; − / + for minutes and for 5 seconds under the ring */
button.bt-time { background: none; border: 0; color: var(--text); padding: 0 4px; border-bottom: 1px dashed rgba(255,255,255,.25); }
button.bt-time:disabled { border-bottom-color: transparent; opacity: 1; }
.bt-set { gap: 14px; margin-top: 10px; }
.bt-step { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.bt-step span { min-width: 44px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.bt-pick { display: flex; gap: 12px; margin: 14px 0 18px; }
.bt-pick label { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.bt-pick select { font-size: 1.6rem; padding: 10px; border-radius: 6px; background: #0e0e0e; color: var(--text); border: 1px solid rgba(255,255,255,.18); text-align: center; }
.bt-pcancel { display: block; margin: 12px auto 0; }#tab-pitch .piano-head .target-chip { color: var(--text); } /* the target note chip: white text + symbol on the dark button (Mark, 2026-10-13) */
#pre-title { display: block; } /* normal text flow so 'warm-up' wraps as one word (2026-10-13) */
/* Install guide (2026-10-26): tabs iPhone | Android, the browser's own Install button on Android */
#ios-tabs { margin: 12px 0 4px; }
#ios-install { width: 100%; margin: 10px 0 2px; }
