/*
 * Rainbow Piano: the tool's own components (13 Nov 2026, on the UltraCompress Pro template, after the GPS Speedometer, whose
 * shared block the first part of this file copies; it came from CompassPro, the Clock, Prana Breathing Exercises, the
 * Decision Maker, the Employee ID Card Generator, SpinForge and EngCalc). Base: /libs/site-pages.css (tokens, Inter and
 * Space Grotesk, buttons, theme toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). The second
 * part is the original's piano exactly as it looked (the night sky, the felt, the rainbow keys and their caps, the note
 * creatures' stage, the chord pads, the song cards, the game pictures, the stickers, the result stars and every animation),
 * in its own lettering (Grandstander, SIL Open Font License, fonts/OFL.txt) and its own colours in both themes; the plain
 * controls around it (tabs, buttons, chips, choices, windows, messages) take the site's pills. The original's class names
 * stay (app.js sets them). Light is the default; dark applies when <html> has no data-theme. Assembled once from the GPS
 * Speedometer's file and the original's style.css, then edited by hand: this file is the source.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.24);
    --ok: #166534;
    --ok-soft: rgba(22, 101, 52, 0.09);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.08);
    --warn: #92400e;
    --warn-soft: rgba(217, 119, 6, 0.1);
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.26);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Small helpers ----- */
main [hidden], .dialog [hidden], .big-dialog [hidden] { display: none !important; } /* the script hides parts that carry their own display */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.block { display: block; }
.hint { color: var(--text-3); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link:hover { color: var(--link-hover); }
code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; padding: 0; font-family: inherit; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px; border-radius: 9999px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); min-width: 220px; max-width: 100%; }
.status-icon { font-size: 1.3rem; line-height: 1; }
.status-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.status-main { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-sub { font-size: 0.72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--surface-2); max-width: 100%; }
.view-tab { padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.view-tab:hover { color: var(--link); }
.view-tab.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.view-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.view[hidden] { display: none; }
.shell-hint { margin-top: 14px; }

/* ----- Fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.input, .select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
input[type="time"].input { color-scheme: light; width: 9em; }
:root:not([data-theme="light"]) input[type="time"].input { color-scheme: dark; }
.select { width: auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.select option { color: #0a0a14; background: #fff; }
.num-input { width: 7.5em; }
.num-input.wide { width: 10em; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; color: var(--text); padding: 4px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.seg button:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.seg button[aria-checked="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--chip); font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chip .ico { width: 15px; height: 15px; color: var(--link); }
.chip:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Windows ----- */
.dialog { margin: auto; border: 1px solid var(--surface-border); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.dialog--narrow { width: min(420px, calc(100vw - 16px)); }
.dialog--wide { width: min(680px, calc(100vw - 16px)); }
.dialog::backdrop { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-title { margin: 0; font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease; }
.dialog-close:hover { border-color: var(--brand); color: var(--link); }
.dialog-body { padding: 20px; overflow-y: auto; max-height: calc(100vh - 210px); display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.confirm-message { margin: 0; color: var(--text); }
.help-body h3 { margin: 6px 0 0; font-size: 1rem; }
.help-body p { margin: 0; color: var(--text-2); }

/* ----- Toasts ----- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 420px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast button { background: none; border: 0; padding: 0; color: #c4b5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast.good { border-left-color: #4ade80; }
.toast.bad { border-left-color: #f87171; }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }




/* ===== Rainbow Piano components ===== */

/* ----- The site's text rules (p, ul, li, headings) must not reach the tool: same weight as the site's, loaded later ----- */
:where(.app-shell) p, :where(.app-shell) ul, :where(.app-shell) ol, :where(.app-shell) li, :where(.dialog) p, :where(.dialog) li, :where(.big-dialog) p { margin: 0; line-height: 1.5; }
:where(.app-shell) ul, :where(.app-shell) ol { padding: 0; list-style: none; }
:where(.app-shell) h2, :where(.app-shell) h3, :where(.dialog) h3 { margin: 0; line-height: 1.2; }
:where(.app-shell) dl, :where(.app-shell) dd { margin: 0; }

/* ----- The piano's own lettering (Grandstander, SIL Open Font License, fonts/OFL.txt) ----- */
@font-face { font-family: "Grandstander"; src: url("fonts/grandstander.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* ----- The tool's names for the site's colours, and the piano's own colours (the original's, in both themes) ----- */
:root {
    --font-display: "Grandstander", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
    --panel: var(--surface);
    --panel-2: var(--surface-2);
    --muted: var(--text-2);
    --border: var(--line);
    --border-strong: var(--line-strong);
    --good: var(--ok);
    /* The note colours: the same in both themes, so a player always sees the same Do. */
    --note-c: #f2464b;
    --note-d: #ff8a2b;
    --note-e: #ffc928;
    --note-f: #4cc35a;
    --note-g: #29b1e3;
    --note-a: #7a6cf2;
    --note-b: #e056c8;
    --cap-ink: #0f1124; /* the original's #1e2140, a shade darker so the names on the red and purple caps reach 4.5:1 */
    --bed: #1e2140;
    --felt: #c8333d;
    --sky-top: #0f1338;
    --sky-mid: #1d2459;
    --sky-low: #333d9c;
    --stage-h: clamp(150px, 30vh, 340px);
    --keys-h: clamp(150px, 27vh, 250px);
}
:root:not([data-theme="light"]) {
    --bed: #0b0e24;
    --sky-top: #090c28;
    --sky-mid: #151a46;
    --sky-low: #29317f;
}

/* ----- Buttons and controls: the original's names on the site's pills ----- */
.btn { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn.primary, .btn[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn.primary:hover:not(:disabled), .btn[aria-pressed="true"]:hover:not(:disabled) { color: #fff; box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }
.btn.danger { color: var(--danger); border-color: rgba(185, 28, 28, 0.35); }
.btn.danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; }
.small-btn, .btn.small-btn { font-size: 0.85rem; padding: 8px 15px; }
.btn:focus-visible, .inst:focus-visible, .song:focus-visible, .pad:focus-visible, .stage-btn:focus-visible, .stage-start:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--surface); color: var(--text-strong); }
.icon-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.chip[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
input[type="range"] { accent-color: var(--brand); }
.mini { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.mini .select, .ctl .select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.empty { color: var(--text-2); }

/* ----- Toolbar and screens ----- */
.view-tab { display: inline-flex; align-items: center; gap: 7px; position: relative; }
.view-tab .ico { width: 16px; height: 16px; }
.app-toolbar .view-tabs { flex: 0 1 auto; overflow-x: auto; scrollbar-width: thin; }
.tab-dot { position: absolute; top: 5px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--note-c); }
.view-tab.active .tab-dot { background: #fff; }
.screen { padding: 28px 0 0; display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.screen h2 { font-size: 1.5rem; color: var(--text-strong); }
.lead { margin-top: 4px; color: var(--text-2); max-width: 70ch; }

/* ----- Instrument picker ----- */
.instrument-zone { scroll-margin-top: 97px; }
.instruments { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.instruments::-webkit-scrollbar { display: none; }
.inst {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 12px; border-radius: 9999px;
    border: 1px solid var(--chip-border); background: var(--surface); color: var(--text-strong); cursor: pointer;
    font-family: var(--font-display); font-weight: 650; font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.inst .ico { width: 22px; height: 22px; }
.inst:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.inst:active { transform: translateY(1px); }
.inst[aria-checked="true"] { background: var(--gradient-brand); border-color: transparent; color: #fff; }

/* ----- The instrument: stage, felt and keys (the original's look) ----- */
.block { border-radius: 22px; overflow: hidden; background: var(--bed); position: relative; }
.stage { position: relative; height: var(--stage-h); overflow: hidden; background: radial-gradient(110% 90% at 50% 125%, var(--sky-low) 0%, var(--sky-mid) 48%, var(--sky-top) 100%); }
#stageCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.felt { height: 6px; background: linear-gradient(180deg, #e04650 0%, var(--felt) 45%, #8f1f2a 100%); }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 12px 0 16px; pointer-events: none; color: #fff; }
.hud-left { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hud-right { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.hud .hud-title { font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.hud .hud-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.hud-bar { width: min(220px, 40vw); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); margin-top: 6px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.hud .hud-score { font-family: var(--font-display); font-weight: 750; font-size: 1.1rem; color: #fff; margin-right: 6px; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.stage-btn { width: 38px; height: 38px; border-radius: 10px; padding: 0; display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.stage-btn:hover { background: rgba(255, 255, 255, 0.18); }
.stage-btn:disabled { opacity: 0.4; cursor: default; }
.focus-only { display: none; }
.stage .chord-name {
    position: absolute; left: 50%; top: 18%; transform: translateX(-50%); margin: 0;
    font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.2; color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.stage .chord-name.show { opacity: 1; }
.stage-start {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 26px 10px 20px; cursor: pointer;
    border: 0; border-radius: 999px; background: #ffffff; color: #1e2140; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.stage-start .ico { width: 22px; height: 22px; }
.stage-start:hover { background: var(--note-e); }
.stage-actions { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.stage-actions .btn { background: rgba(255, 255, 255, 0.95); color: #1e2140; border-color: transparent; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px 16px; background: rgba(10, 12, 40, 0.66); color: #fff; text-align: center; z-index: 3; }
.result { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 460px; }
.result h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 750; color: #fff; }
.result p { color: rgba(255, 255, 255, 0.85); }
.result .actions { justify-content: center; margin-top: 6px; }
.result .btn { background: #fff; color: #1e2140; border-color: transparent; box-shadow: none; }
.result .btn:hover:not(:disabled) { color: #1e2140; }
.result .btn.primary { background: var(--note-e); color: #1e2140; }
.res-stars { display: flex; gap: 6px; }
.res-stars .ico { width: clamp(34px, 7vw, 52px); height: clamp(34px, 7vw, 52px); stroke-width: 1.5; }
.res-stars .on { fill: var(--note-e); stroke: #f0a800; animation: starIn 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.res-stars .on:nth-child(2) { animation-delay: 0.15s; }
.res-stars .on:nth-child(3) { animation-delay: 0.3s; }
.res-stars .off { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.35); }
@keyframes starIn { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } }

.keys {
    position: relative; display: flex; gap: 2px; height: var(--keys-h); background: var(--bed);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    --kw: 54px; --lbl: 15px;
}
.key { position: relative; }
.key.white {
    flex: 1 1 0; min-width: 0; height: 100%; background: var(--tint); border-radius: 0 0 10px 10px;
    box-shadow: inset 0 -7px 0 rgba(30, 33, 64, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.05s, background-color 0.1s, box-shadow 0.05s;
}
.key .cap {
    position: absolute; left: 11%; right: 11%; bottom: 12px; height: 36%; max-height: 92px; border-radius: 10px; background: var(--c);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.k-lbl { font-family: var(--font-display); font-weight: 750; font-size: var(--lbl); line-height: 1; color: var(--cap-ink); pointer-events: none; white-space: nowrap; }
.key.white .k-lbl { position: absolute; left: 0; right: 0; bottom: 21px; text-align: center; }
.keys.drums .k-lbl { font-size: calc(var(--lbl) * 0.74); }
/* Animal pictures sit in the coloured cap, below the black keys. */
.key.white .k-pic { top: auto; bottom: 38px; font-size: min(calc(var(--kw) * 0.5), 30px); }
.k-kbd { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font: 600 11px/1 'Inter', system-ui, sans-serif; color: rgba(30, 33, 64, 0.5); pointer-events: none; }
.k-pic { position: absolute; left: 0; right: 0; text-align: center; top: 22%; font-size: min(calc(var(--kw) * 0.55), 34px); line-height: 1; pointer-events: none; }
.key.white.down { transform: translateY(3px); background: var(--tint-down); box-shadow: inset 0 -3px 0 rgba(30, 33, 64, 0.14), inset 0 8px 12px rgba(30, 33, 64, 0.14); }
.key.white.down .cap { filter: saturate(1.15) brightness(1.06); }
.key.black {
    position: absolute; top: 0; z-index: 2; left: var(--bx); width: var(--bw); height: 60%; border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #2f3466 0%, #191c3b 72%, #262a52 100%);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.05s, box-shadow 0.05s;
}
.key.black .cap { left: 22%; right: 22%; bottom: 9px; height: 5px; padding: 0; border-radius: 3px; box-shadow: none; }
.key.black .k-lbl { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #fff; font-size: calc(var(--lbl) * 0.72); }
.key.black .k-kbd { color: rgba(255, 255, 255, 0.55); }
.key.black .k-pic { top: 14%; font-size: min(calc(var(--kw) * 0.38), 22px); }
.key.black.down { transform: translateY(2px); background: var(--c); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.key.black.down .k-lbl { color: var(--cap-ink); }
.key.black.down .cap { background: rgba(255, 255, 255, 0.7); }
/* Black and white keys: colour only as a small dot. */
.keys.classic .key.white { background: #ffffff; }
.keys.classic .key.white.down { background: #e9eaf3; }
.keys.classic .key.white .cap { background: transparent; box-shadow: none; }
.keys.classic .key.white .cap::before { content: ""; position: absolute; left: 50%; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.keys.classic .key.black.down { background: #4a4f86; }
.keys.classic .key.black.down .k-lbl { color: #fff; }
.key.hint::after {
    content: ""; position: absolute; inset: 5px 5px 6px; border-radius: 8px; pointer-events: none;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--c), 0 0 22px 6px var(--c); animation: hint 1s ease-in-out infinite;
}
.key.black.hint::after { inset: 3px; border-radius: 6px; }
@keyframes hint { 50% { opacity: 0.45; } }
.key.nope { animation: nope 0.32s ease; }
@keyframes nope { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }

/* ----- Under the keys ----- */
.deck { margin-top: 14px; }
.deck-part { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.deck .deck-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; color: var(--text-strong); min-width: 0; }
.deck-pic { font-size: 1.5rem; line-height: 1; }
.deck-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.deck .game-status { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-strong); }
.game-status .lives { display: inline-flex; gap: 2px; }
.game-status .lives .ico { width: 20px; height: 20px; fill: var(--note-c); stroke: var(--note-c); }
.game-status .lives .ico.off { fill: none; stroke: var(--line-strong); }
.rec-btn .rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--note-c); flex: none; }
.btn.rec-btn[aria-pressed="true"] { background: var(--danger-strong); border-color: var(--danger-strong); color: #fff; box-shadow: none; } /* white on the note red was 3.4:1 */
.btn.rec-btn[aria-pressed="true"]:hover:not(:disabled) { color: #fff; }
.rec-btn[aria-pressed="true"] .rec-dot { background: #fff; border-radius: 3px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.rec-time { font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; min-width: 3.2em; color: var(--text-strong); }
.num { font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.ctl { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.ctl.octave { gap: 6px; }
.range-label { min-width: 6.4em; text-align: center; font-weight: 700; color: var(--text-strong); }
.tempo input { width: 120px; }
.tempo output { min-width: 2.2em; color: var(--text-strong); }

/* ----- Play ----- */
.play-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .play-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; } }
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .pads { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pad {
    min-height: 104px; border-radius: 18px; border: 2px solid var(--line); border-bottom-width: 6px; cursor: pointer; color: var(--text-strong);
    background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
    touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.05s, border-width 0.05s;
}
.pad b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.pad small { color: var(--text-2); font-size: 0.78rem; }
.pad .dots { display: flex; gap: 5px; }
.pad .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.pad.down { transform: translateY(4px); border-bottom-width: 2px; border-color: var(--c); }
.tips { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.app-shell .tip-list { padding-left: 1.1em; list-style: disc; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.tip-list li::marker { color: var(--note-c); }

/* ----- Songs ----- */
.song-search { position: relative; display: block; width: min(100%, 300px); }
.song-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.song-search .input { padding-left: 40px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.song-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.song {
    width: 100%; height: 100%; padding: 0; text-align: left; display: flex; flex-direction: column; cursor: pointer; font-family: inherit; color: var(--text-strong);
    border: 2px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.song:hover { border-color: var(--brand); transform: translateY(-2px); }
.song:active { transform: translateY(1px); }
.song[aria-pressed="true"] { border-color: var(--text-strong); }
.song-art { position: relative; height: 62px; background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 70%, #2a3388); flex: none; }
.song-art svg { position: absolute; left: 54px; right: 10px; top: 9px; width: calc(100% - 64px); height: 44px; max-width: none; }
.song-pic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; }
.song-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.song-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.song-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 0.8rem; margin-top: auto; }
.level { display: inline-flex; align-items: center; gap: 6px; }
.level i { display: inline-flex; gap: 3px; }
.level i b { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.level i b.on { background: var(--text-strong); }
.got { display: inline-flex; gap: 1px; }
.got .ico { width: 16px; height: 16px; stroke-width: 1.6; }
.got .on { fill: var(--note-e); stroke: #d49a00; }
.got .off { stroke: var(--line-strong); }

/* ----- Games ----- */
.games { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; }
@media (min-width: 900px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.game-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-strong); }
.game-card > p { color: var(--text-2); max-width: 52ch; }
.game-art {
    width: 100%; height: 96px; border-radius: 18px; position: relative; overflow: hidden;
    background: radial-gradient(110% 120% at 50% 130%, var(--sky-low), var(--sky-mid) 50%, var(--sky-top));
    display: flex; align-items: center; justify-content: center; gap: 14px;
}
.game-art i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); position: relative; }
.game-art i::before, .game-art i::after { content: ""; position: absolute; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 2px 1px 0 1px #1e2140; }
.game-art i::before { left: 8px; } .game-art i::after { right: 8px; }
.echo-art i:nth-child(2) { transform: translateY(-14px); } .echo-art i:nth-child(3) { transform: translateY(-24px); }
.echo-art i:nth-child(4) { background: transparent; border: 3px dashed rgba(255, 255, 255, 0.45); transform: translateY(-14px); }
.echo-art i:nth-child(4)::before, .echo-art i:nth-child(4)::after { display: none; }
.hunt-art i { width: 46px; height: 46px; } .hunt-art i::before, .hunt-art i::after { top: 15px; width: 9px; height: 9px; } .hunt-art i::before { left: 11px; } .hunt-art i::after { right: 11px; }
.hunt-art b { width: 70px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); box-shadow: 0 -10px 0 rgba(255, 255, 255, 0.4), 0 10px 0 rgba(255, 255, 255, 0.4); }
.game-card .best { font-weight: 600; color: var(--text-strong); }

/* ----- Recordings ----- */
.rec-list { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rec-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec-main { flex: 1 1 220px; min-width: 0; }
.rec-item .rec-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-strong); overflow-wrap: anywhere; }
.rec-item .rec-meta { color: var(--text-2); font-size: 0.85rem; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ----- Stickers ----- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt { color: var(--text-2); font-size: 0.85rem; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--text-strong); }
.sticker-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 28px 16px; }
.sticker { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.disc {
    width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; line-height: 1;
    background: var(--c); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--line), 0 8px 0 2px rgba(30, 33, 64, 0.08);
    margin-bottom: 8px; transform: rotate(var(--r, -4deg));
}
.sticker.locked .disc { background: var(--surface-2); filter: grayscale(1); opacity: 0.5; transform: none; }
.sticker-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--text-strong); }
.sticker-how { color: var(--text-2); font-size: 0.8rem; max-width: 22ch; }
.sticker-when { color: var(--good); font-size: 0.78rem; font-weight: 600; }

/* ----- Windows ----- */
.dialog .field + .field, .dialog .field + .check-row, .dialog .check-row + .field { margin-top: 2px; }
.dialog .seg { margin-top: 2px; }
.help-body .examples { margin: 0; padding-left: 1.2em; list-style: disc; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-2); }
.help-body b { color: var(--text-strong); }
.toast .toast-pic { font-size: 1.5rem; line-height: 1; }

/* ----- The big piano: a window above the whole page (the browser's top layer), so nothing can sit over the keys ----- */
.big-dialog { margin: 0; padding: 0; border: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: var(--bg, #ffffff); color: var(--text); overflow: hidden; }
:root:not([data-theme="light"]) .big-dialog { background: #0a0a14; }
.big-dialog::backdrop { background: rgba(10, 10, 20, 0.85); }
.big-wrap { --g: 16px; width: 100%; height: 100%; display: flex; flex-direction: column; background: inherit; }
@media (min-width: 640px) { .big-wrap { --g: 80px; } }
.big-wrap:fullscreen { background: #ffffff; }
:root:not([data-theme="light"]) .big-wrap:fullscreen { background: #0a0a14; }
.big-wrap .instrument-zone { flex: 1; display: flex; flex-direction: column; padding: 12px var(--g); min-height: 0; }
.big-wrap .instruments, .big-wrap .controls { display: none !important; }
.big-wrap .block { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.big-wrap .stage { flex: 1; height: auto; min-height: 110px; }
.big-wrap .keys { height: min(46vh, 360px); flex: none; }
.big-wrap .focus-only { display: inline-grid; }
.big-wrap .deck { margin-top: 10px; }
.big-wrap .toasts { position: absolute; }

/* Short screens, such as a phone on its side. */
@media (max-height: 520px) and (min-width: 560px) {
    :root { --stage-h: 110px; --keys-h: 170px; }
    .instruments { padding-bottom: 8px; }
}

/* ----- Phones ----- */
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .app-toolbar { gap: 10px; }
    .toolbar-right { width: 100%; }
    .toolbar-right .btn { flex: 1 1 auto; }
    /* five tabs at 16 px do not fit one row on a phone: three, then two wider ones; the site's round theme button sits at the right */
    .app-toolbar .view-tabs { width: calc(100% - 52px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; border-radius: 24px; }
    .view-tab { grid-column: span 2; justify-content: center; padding: 8px 6px; gap: 5px; min-width: 0; }
    .view-tab:nth-child(n+4) { grid-column: span 3; }
    .instrument-zone { scroll-margin-top: 81px; }
    .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .song-art { height: 54px; }
    .song-art svg { left: 44px; width: calc(100% - 52px); right: 8px; top: 7px; height: 40px; }
    .song-pic { left: 8px; font-size: 26px; }
    .song-name { font-size: 1rem; } /* 16 px on phones (it was 15.7 px; 14 Nov 2026) */
    .toasts { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
    .toast { min-width: 0; max-width: none; }
    .dialog-body, .dialog-head, .dialog-actions { padding-left: 16px; padding-right: 16px; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
}
@media (max-width: 459px) { .view-tab .ico { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
    .info-section .info-grid { grid-template-columns: repeat(2, 1fr); }
    .info-three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .dialog, .dialog[open], .toast, .seg button, .chip, .view-tab, .inst, .song { transition: none; animation: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
    .app-toolbar, .instrument-zone, .shell-hint { display: none !important; }
}
/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026). The keys, the sky and its lettering are the
   instrument; the key labels, chord names and scores on it are display lettering. */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]) { min-height: 44px; }
    main input[type="range"] { min-height: 44px; }
    main .seg button, main .view-tab, main .chip, main .btn, main .inst { min-height: 44px; }
    main .icon-btn, main .stage-btn { width: 44px; height: 44px; min-width: 44px; }
    main .link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
    main .check-row { min-height: 44px; align-items: center; }
    main .mini .select, main .ctl .select { min-height: 44px; }
    main :is(p:not(.hud-title):not(.hud-score):not(.chord-name):not(.deck-title):not(.rec-name), li, .hint, .label, .input, .select, kbd, .seg button, .chip,
        .muted, .lead, .view-tab, .shell-hint, .empty, .btn, .link, .ctl, .mini, .sticker-how, .sticker-when, .song-meta, .stats dt, .pad small) { font-size: 1rem; }
    .dialog button, .dialog .btn, .dialog select, .dialog input:not([type="checkbox"]):not([type="range"]), .dialog summary { min-height: 44px; }
    .dialog input[type="range"] { min-height: 44px; }
    .dialog .dialog-close, .dialog .icon-btn { width: 44px; height: 44px; }
    .dialog .check-row { min-height: 44px; align-items: center; }
    .dialog :is(p, .hint, .label, .input, li, kbd, small, .link, .btn, .seg button, .check-row, .examples) { font-size: 1rem; }
    .big-dialog .stage-btn, .big-dialog .icon-btn { width: 44px; height: 44px; min-width: 44px; }
    .big-dialog :is(.btn, .seg button, .select) { min-height: 44px; }
    .big-dialog :is(.btn, .seg button, .select, .mini, .game-status, .hint, .hud-sub) { font-size: 1rem; }
}
