/* GENERATED by compat/compat_css.py from style.css - do not edit; edit style.css and run it again */
:root { --bg: #0B0B0C; --on-bg: #F3EEE6; --ink: #4A3F35; --menu-fs: 16px; --target: 44px; --chip: #FFFFFF; --chip-active: #4A3F35 }
.bar, .keys { --gap: clamp(4px, 1.2cqw, 12px) }
.no-cq .bar, .no-cq .keys { --gap: max(4px, min(calc(1.2 * var(--cqw, 1vw)), 12px)) }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--on-bg); font-family: system-ui, -apple-system, "Noto Sans TC", "PingFang TC", sans-serif; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; overscroll-behavior: none }
#app { position: fixed; top: 0; left: 0; background: linear-gradient(#1c1c1e, var(--bg) 30%); width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; display: flex; flex-direction: column; container-type: size; padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left) }
@media (orientation: portrait) and (pointer: coarse) {
#app { width: 100vh; width: 100dvh; height: 100vw; height: 100dvw; left: 100vw; left: 100dvw; transform-origin: top left; transform: rotate(90deg) }
}
.bar { display: flex; align-items: center; gap: 8px; padding: 8px var(--gap) }
.no-flex-gap .bar > * + * { margin-left: 8px }
.songs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none }
.no-flex-gap .songs > * + * { margin-left: 6px }
.chip { border: 2px solid var(--ink); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer }
.chip.active { background: var(--chip-active); color: #fff }
.status { font-size: 13px; opacity: .7; white-space: nowrap }
.keys { position: relative; flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--gap); padding: 0 var(--gap) var(--gap) }
.key { position: relative; border: none; border-radius: 0 0 calc(2.2 * var(--cqw, 1vw)) calc(2.2 * var(--cqw, 1vw)); border-radius: 0 0 max(10px, min(calc(2.2 * var(--cqw, 1vw)), 22px)) max(10px, min(calc(2.2 * var(--cqw, 1vw)), 22px)); border-radius: 0 0 clamp(10px, 2.2cqw, 22px) clamp(10px, 2.2cqw, 22px); background: linear-gradient(#fff 85%, #f1f1f1); box-shadow: 0 8px 0 #c9c3bb, inset 0 0 0 1px #d9d4cc; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4%; padding: 0 6% 7%; transition: transform 60ms ease-out, box-shadow 60ms ease-out, filter 60ms; cursor: pointer; min-width: 0 }
.no-flex-gap .key > * + * { margin-top: 4% }
.key .shape { flex: none }
.key.down { transform: translateY(6px); box-shadow: 0 2px 0 #c9c3bb, inset 0 0 0 1px #d9d4cc; background: #f2f0ec }
.key.black { position: absolute; z-index: 2; padding: 0; border-radius: 4px 4px calc(2 * var(--cqw, 1vw)) calc(2 * var(--cqw, 1vw)); border-radius: 4px 4px max(8px, min(calc(2 * var(--cqw, 1vw)), 16px)) max(8px, min(calc(2 * var(--cqw, 1vw)), 16px)); border-radius: 4px 4px clamp(8px, 2cqw, 16px) clamp(8px, 2cqw, 16px); background: linear-gradient(#444, #1c1c1c); box-shadow: 0 6px 0 #000, inset 0 -6px 0 rgba(255,255,255,.08); transition: transform 350ms cubic-bezier(.2,.9,.3,1.3), opacity 250ms, box-shadow 60ms, filter 60ms }
.key.black.down { transform: translateY(6px); box-shadow: 0 0 0 #000; filter: brightness(1.6) }
.key.next { animation: hop 700ms ease-in-out infinite; outline: 6px solid var(--c); outline-offset: -6px }
@keyframes hop {
0%, 100% { transform: translateY(0) }
50% { transform: translateY(-10px) }
}
.bubble { position: fixed; width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 4px solid #fff; pointer-events: none; animation: float 900ms ease-out forwards }
@keyframes float {
from { transform: translate(-50%, -50%) scale(.6); opacity: 1 }
to { transform: translate(-50%, -260%) scale(1.2); opacity: 0 }
}
.celebrate { animation: party 1.2s ease-in-out }
@keyframes party {
0%, 100% { filter: none }
25% { filter: hue-rotate(60deg) }
50% { filter: hue-rotate(180deg) }
75% { filter: hue-rotate(300deg) }
}
@media (orientation: portrait) and (pointer: fine) and (max-width: 600px) {
.keys { --gap: 4px }
.chip { font-size: 12px; padding: 5px 9px }
}
@media (prefers-reduced-motion: reduce) {
.key.next { animation: none }
}
.select { border: 2px solid var(--ink); border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 600; font-size: var(--menu-fs); line-height: 1.2; font-family: inherit; padding: .3em .5em }
.song-select { max-width: 16em }
.lang { margin-left: auto; max-width: 9.5em }
.mode-select.active { background: var(--t-600); border-color: var(--t-600); color: #fff }
.piano-status { font-size: 13px; font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.key.heard { background: color-mix(in srgb, var(--c) 22%, #fff) }
.key.black.heard { background: linear-gradient(#666, #333) }
.now { display: flex; align-items: center; justify-content: center; gap: 12px; height: calc(24 * var(--cqh, 1vh)); height: max(64px, min(calc(24 * var(--cqh, 1vh)), 150px)); height: clamp(64px, 24cqh, 150px); padding: 0 var(--gap, 8px) 6px }
.no-flex-gap .now > * + * { margin-left: 12px }
.now-label { font-weight: 800; font-size: calc(1.6 * var(--cqw, 1vw)); font-size: max(12px, min(calc(1.6 * var(--cqw, 1vw)), 18px)); font-size: clamp(12px, 1.6cqw, 18px); opacity: .75; writing-mode: horizontal-tb }
.now-card { height: 100%; display: flex; align-items: center; gap: calc(1.5 * var(--cqw, 1vw)); gap: max(6px, min(calc(1.5 * var(--cqw, 1vw)), 18px)); gap: clamp(6px, 1.5cqw, 18px); background: #fff; border-radius: 18px; padding: 6px calc(2 * var(--cqw, 1vw)); padding: 6px max(8px, min(calc(2 * var(--cqw, 1vw)), 20px)); padding: 6px clamp(8px, 2cqw, 20px); box-shadow: 0 4px 0 rgba(74,63,53,.15) }
.no-flex-gap .now-card > * + * { margin-left: max(6px, min(calc(1.5 * var(--cqw, 1vw)), 18px)) }
.now.empty .now-card { opacity: .6 }
.now.empty .now-arrow, .now.empty .now-key-wrap { visibility: hidden }
.now-staff { height: 100%; width: auto; aspect-ratio: 1; object-fit: contain }
.now-arrow { width: calc(3 * var(--cqw, 1vw)); width: max(18px, min(calc(3 * var(--cqw, 1vw)), 34px)); width: clamp(18px, 3cqw, 34px); aspect-ratio: 1; background: var(--ink); opacity: .5; clip-path: polygon(0 35%, 55% 35%, 55% 10%, 100% 50%, 55% 90%, 55% 65%, 0 65%) }
.now-key-wrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px }
.no-flex-gap .now-key-wrap > * + * { margin-top: 2px }
.mini-key { height: 72%; aspect-ratio: .8; border-radius: 4px 4px 12px 12px; background: #fff; box-shadow: 0 4px 0 #c9c3bb, inset 0 0 0 1px #d9d4cc; display: grid; align-items: center; justify-items: center; place-items: center }
.mini-key .shape { margin: 0 }
.mini-key.black { background: linear-gradient(#444, #1c1c1c); box-shadow: 0 4px 0 #000; aspect-ratio: .55 }
.now.pop .now-card { animation: pop 300ms ease-out }
@keyframes pop {
0% { transform: scale(.92) }
60% { transform: scale(1.04) }
100% { transform: scale(1) }
}
@media (prefers-reduced-motion: reduce) {
.now.pop .now-card { animation: none }
}
.dialog-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 20; background: rgba(40, 32, 25, .45); display: grid; align-items: center; justify-items: center; place-items: center; padding: 16px }
.dialog-backdrop[hidden] { display: none }
.dialog { width: min(460px, calc(92 * var(--cqw, 1vw))); width: min(460px, 92cqw); max-height: calc(92 * var(--cqh, 1vh)); max-height: 92cqh; overflow: auto; background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center }
.dialog-icon { font-size: 36px; line-height: 1 }
.dialog h2 { margin: 8px 0 6px; font-size: 20px }
.dialog p { margin: 0 0 16px; font-size: 15px; line-height: 1.5 }
.dialog-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
.no-flex-gap .dialog-actions > * + * { margin-left: 10px }
.chip.primary { background: var(--t-700); border-color: var(--t-700); color: #fff }
.clef-pick { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 2px 0 4px; height: calc(var(--menu-fs) * 2.1) }
.no-flex-gap .clef-pick > * + * { margin-left: 2px }
.clef-icon { height: 88%; width: auto; aspect-ratio: 1.47; object-fit: cover; object-position: left center }
.clef-pick .select { border: none; padding-left: 2px; background: transparent }
.quiz-btn.active { background: var(--t-700); border-color: var(--t-700); color: #fff }
.key.reveal { animation: reveal 450ms ease-in-out 4 }
@keyframes reveal {
0%, 100% { background: #fff; outline: 0 solid var(--c) }
50% { background: color-mix(in srgb, var(--c) 45%, #fff); outline: 6px solid var(--c) }
}
.key.black.reveal { animation: reveal-black 450ms ease-in-out 4 }
@keyframes reveal-black {
50% { background: var(--c) }
}
.mini-key.ask { display: grid; align-items: center; justify-items: center; place-items: center }
.ask-mark { font-size: calc(5 * var(--cqh, 1vh)); font-size: max(22px, min(calc(5 * var(--cqh, 1vh)), 44px)); font-size: clamp(22px, 5cqh, 44px); font-weight: 900; color: #b8b0a6 }
.praise { position: absolute; left: 50%; top: 42%; z-index: 15; font-size: calc(16 * var(--cqh, 1vh)); font-size: max(48px, min(calc(16 * var(--cqh, 1vh)), 120px)); font-size: clamp(48px, 16cqh, 120px); transform: translate(-50%, -50%); pointer-events: none }
.praise.show { animation: praise 2.4s ease-out forwards }
@keyframes praise {
0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) }
20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) }
35% { transform: translate(-50%, -50%) scale(1) }
80% { opacity: 1 }
100% { opacity: 0; transform: translate(-50%, -90%) scale(1) }
}
@media (prefers-reduced-motion: reduce) {
.key.reveal, .key.black.reveal, .praise.show { animation-duration: 1ms }
}
.keys.quiz .key.heard:not(.reveal) { background: #ece9e4 }
.now-label, .status, .piano-status { color: var(--on-bg) }
.now-card { box-shadow: 0 4px 0 rgba(255,255,255,.12) }
.key { box-shadow: 0 8px 0 #9d978f, inset 0 0 0 1px #d9d4cc }
.key.down { box-shadow: 0 2px 0 #9d978f, inset 0 0 0 1px #d9d4cc }
.bar-row > * { flex-shrink: 0 }
.bar-row > .select, .bar-row > .clef-pick { flex-shrink: 1; min-width: 4.5em }
.clef-pick .select { min-width: 0; flex: 1 1 auto }
.bar-row > .piano-status { flex-shrink: 1; min-width: 0 }
.top { display: flex; align-items: stretch; gap: var(--gap, 8px); padding: 8px calc(1.2 * var(--cqw, 1vw)) 10px; padding: 8px max(4px, min(calc(1.2 * var(--cqw, 1vw)), 12px)) 10px; padding: 8px clamp(4px, 1.2cqw, 12px) 10px; height: calc(40 * var(--cqh, 1vh)); height: max(110px, min(calc(40 * var(--cqh, 1vh)), 340px)); height: clamp(110px, 40cqh, 340px); flex: none }
.no-flex-gap .top > * + * { margin-left: var(--gap, 8px) }
.top .now { flex: none; height: 100%; padding: 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px }
.top .now-label { font-size: 14px; line-height: 1 }
.top .now-card { flex: 1; min-height: 0; height: auto }
.top .mini-key { height: 86% }
.top .now-arrow { width: calc(4 * var(--cqh, 1vh)); width: max(18px, min(calc(4 * var(--cqh, 1vh)), 40px)); width: clamp(18px, 4cqh, 40px) }
.top .bar { flex: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; align-items: center; padding: 0; row-gap: 6px; overflow-y: auto }
.top .lang { margin-left: 0 }
.top .chip, .top .select { font-size: var(--menu-fs); min-height: var(--target) }
.top .clef-pick { height: var(--target) }
.top .status, .top .piano-status { font-size: 14px; opacity: .85 }
.top .chip:focus-visible, .top .select:focus-visible, .dialog .chip:focus-visible { outline: 3px solid var(--t-400); outline-offset: 2px }
.clef-pick:focus-within { outline: 3px solid var(--t-400); outline-offset: 2px }
.clef-pick .select:focus-visible { outline: none }
.top { --pad: clamp(5px, 1.6cqh, 16px) }
.no-cq .top { --pad: max(5px, min(calc(1.6 * var(--cqh, 1vh)), 16px)) }
.top .now { padding: var(--pad); background: rgba(255,255,255,.06); border-radius: 22px }
.top .now-card { padding: var(--pad) calc(var(--pad) * 1.5) }
.top .bar { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; justify-content: flex-start; gap: 8px; padding: var(--pad); background: rgba(255,255,255,.06); border-radius: 22px }
.bar-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: 100% }
.no-flex-gap .bar-row > * + * { margin-left: 8px }
.top .now { aspect-ratio: 2.05; align-items: stretch }
.top .now-card { justify-content: center; min-width: 0 }
.top .now-staff { min-width: 0 }
.bar-row { flex-wrap: nowrap }
.bar-row > .select, .bar-row > .clef-pick { min-width: 5em }
.key { padding: 0 12% max(14%, calc(5 * var(--cqh, 1vh))); padding: 0 12% max(14%, 5cqh) }
.key .shape, .mini-key .shape { background: none !important; clip-path: none !important; border-radius: 0 !important; aspect-ratio: 1 }
.key .shape { width: 74%; max-height: 34% }
.key .shape svg, .mini-key .shape svg { width: 100%; height: 100%; display: block; overflow: visible }
.key .shape svg path, .mini-key .shape svg path { fill: var(--c); stroke: var(--c); stroke-width: 6; stroke-linejoin: round }
.mini-key .shape { width: 66% }
.top .bar .piano-status { white-space: normal; line-height: 1.25; max-width: 16em }
#app, #app[data-clef="G"] { --t-50: #FFF7FA; --t-100: #FFF0F5; --t-200: #FFE3EE; --t-250: #F8BBD0; --t-300: #F48FB1; --t-400: #FF9EC4; --t-600: #C2185B; --t-700: #AD1457; --t-ink: #6D2146; --t-ink2: #5A2340; --t-title: #880E4F; --t-on-dark: #FFD1E3; --t-dis: #F3E6EB; --t-dis-ink: #6B4A58; --t-glow: #2A131D; --t-panel: rgba(236, 64, 122, .14); --t-panel-line: rgba(244, 143, 177, .35); --t-backdrop: rgba(28, 8, 18, .62) }
#app[data-clef="F"] { --t-50: #F5FBFF; --t-100: #EAF6FD; --t-200: #D6EEFB; --t-250: #B3E5FC; --t-300: #81D4FA; --t-400: #7FD0FF; --t-600: #0277BD; --t-700: #01579B; --t-ink: #0D3B5C; --t-ink2: #173F5A; --t-title: #01579B; --t-on-dark: #BFE8FF; --t-dis: #E3EEF4; --t-dis-ink: #3F5B6E; --t-glow: #0F1E27; --t-panel: rgba(41, 182, 246, .14); --t-panel-line: rgba(129, 212, 250, .35); --t-backdrop: rgba(6, 18, 28, .62) }
#app { background: linear-gradient(var(--t-glow), var(--bg) 34%); transition: background 400ms }
.top .now, .top .bar { background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-panel-line); transition: background-color 400ms, box-shadow 400ms }
.top .now-label { color: var(--t-on-dark); opacity: 1 }
.top .now-card { box-shadow: 0 0 0 3px var(--t-250), 0 6px 18px rgba(0,0,0,.35) }
.top .now-arrow { background: var(--t-600); opacity: 1 }
.mini-key.ask .ask-mark { color: var(--t-600) }
.top .bar .select,
.top .bar .chip,
.top .bar .clef-pick { background: var(--t-100); color: var(--t-ink); border: 2px solid var(--t-300); border-radius: 999px; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: background-color 120ms, border-color 120ms }
.top .bar .clef-pick .select { background: transparent; border: none; box-shadow: none }
.top .bar .select:hover, .top .bar .chip:hover, .top .bar .clef-pick:hover { background: var(--t-200) }
.top .bar .select option { background: #fff; color: var(--t-ink) }
.top .bar .mode-select.active { background: var(--t-600); border-color: var(--t-600); color: #fff }
.top .bar .quiz-btn.active { background: var(--t-700); border-color: var(--t-700); color: #fff }
.top .bar .select:disabled { opacity: 1; background: var(--t-dis); color: var(--t-dis-ink); border-style: dashed; cursor: not-allowed }
.top .status, .top .piano-status { color: var(--t-on-dark); opacity: 1; font-weight: 700 }
.top .bar .chip:focus-visible, .top .bar .select:focus-visible, .top .bar .clef-pick:focus-within { outline: 3px solid var(--t-400); outline-offset: 3px }
.top .bar .clef-pick .select:focus-visible { outline: none }
.dialog-backdrop { background: var(--t-backdrop); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px) }
.dialog { background: var(--t-50); color: var(--t-ink2); border: 2px solid var(--t-250); border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.45) }
.dialog h2 { color: var(--t-title); font-size: 22px; line-height: 1.3 }
.dialog p { color: var(--t-ink2); font-size: 16px; line-height: 1.6 }
.dialog .chip { min-height: 44px; min-width: 44px; padding: 8px 20px; font-size: 16px; font-weight: 700; border-radius: 999px; background: #fff; color: var(--t-700); border: 2px solid var(--t-700) }
.dialog .chip.primary { background: var(--t-700); border-color: var(--t-700); color: #fff }
.dialog .chip:hover { filter: brightness(.96) }
.dialog .chip:focus-visible { outline: 3px solid var(--t-600); outline-offset: 3px }
.top .bar .clef-pick .select:disabled { background: transparent; border: none; color: var(--t-dis-ink) }
.top .bar .clef-pick:has(.select:disabled) { background: var(--t-dis); border-style: dashed }
.top { --top-h: clamp(110px, 40cqh, 340px); height: var(--top-h); --staff: calc(var(--top-h) - 18px - 4 * var(--pad)) }
.no-cq .top { --top-h: max(110px, min(calc(40 * var(--cqh, 1vh)), 340px)) }
.top .now { aspect-ratio: auto; width: max-content; flex: none }
.top .now-card { flex: none; height: auto; width: max-content }
.top .now-staff { flex: none; width: var(--staff); height: var(--staff); min-width: var(--staff) }
.top .now-arrow { flex: none; width: calc(var(--staff) * .22); max-width: 40px; min-width: 16px }
.top .now-key-wrap { flex: none; height: var(--staff) }
.top .mini-key, .top .mini-key.ask { flex: none; height: calc(var(--staff) * .86); width: calc(var(--staff) * .69); aspect-ratio: auto }
.top .mini-key.black { width: calc(var(--staff) * .47) }
.top .bar .play-btn.active { background: var(--t-600); border-color: var(--t-600); color: #fff }
.top .bar .chip:disabled { background: var(--t-dis); color: var(--t-dis-ink); border-style: dashed; cursor: not-allowed; box-shadow: none }
.key.oops { animation: oops 400ms ease-in-out }
@keyframes oops {
0%, 100% { translate: 0 0 }
20% { translate: -5px 0 }
40% { translate: 5px 0 }
60% { translate: -3px 0 }
80% { translate: 3px 0 }
}
@media (prefers-reduced-motion: reduce) {
.key.oops { animation: none }
}
.menu-btn { display: none }
#app.menu-folded .top .bar-row { display: none }
#app.menu-folded .top .bar { flex: none; margin-left: auto; align-self: flex-start; background: transparent; box-shadow: none; padding: var(--pad) }
#app.menu-folded .menu-btn { display: grid; align-items: center; justify-items: center; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--t-panel-line); background: rgba(255, 255, 255, .06); cursor: pointer; touch-action: manipulation }
#app.menu-folded .menu-btn span,
#app.menu-folded .menu-btn span::before,
#app.menu-folded .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--t-300); position: relative; content: "" }
#app.menu-folded .menu-btn span::before { position: absolute; top: -6px }
#app.menu-folded .menu-btn span::after { position: absolute; top: 6px }
#app.menu-folded .menu-btn:focus-visible { outline: 3px solid var(--t-400); outline-offset: 3px }
img.praise { width: calc(46 * var(--cqh, 1vh)); width: max(140px, min(calc(46 * var(--cqh, 1vh)), 340px)); width: clamp(140px, 46cqh, 340px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); top: 50% }
#app, #app[data-clef="G"] { --t-key-shadow: #C9A9B6; --t-sticker: rgba(184, 51, 106, .45) }
#app[data-clef="F"] { --t-key-shadow: #A7BFCC; --t-sticker: rgba(42, 127, 176, .45) }
.key .shape svg path, .mini-key .shape svg path { fill: var(--c); stroke: var(--cl, var(--c)); stroke-width: 7; stroke-linejoin: round; paint-order: stroke }
.key:not(.black) { box-shadow: 0 8px 0 var(--t-key-shadow), inset 0 0 0 1px #E6DDE0 }
.key:not(.black).down { box-shadow: 0 2px 0 var(--t-key-shadow), inset 0 0 0 1px #E6DDE0 }
.key.next { outline-color: var(--cl, var(--c)) }
@keyframes reveal {
0%, 100% { background: #fff; outline: 0 solid var(--cl, var(--c)) }
50% { background: color-mix(in srgb, var(--c) 55%, #fff); outline: 6px solid var(--cl, var(--c)) }
}
.key.heard { background: color-mix(in srgb, var(--c) 30%, #fff) }
.bubble { background: var(--c); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--cl, var(--c)) }
.top .now-card { border-radius: 20px; box-shadow: 0 0 0 3px var(--t-300), 0 6px 0 var(--t-sticker) }
.mini-key { box-shadow: 0 4px 0 var(--t-key-shadow), inset 0 0 0 2px var(--t-250); border-radius: 8px 8px 16px 16px }
.top .bar .select, .top .bar .chip, .top .bar .clef-pick { box-shadow: 0 3px 0 var(--t-sticker) }
.top .bar .chip:disabled { box-shadow: none }
.dialog { box-shadow: 0 0 0 3px var(--t-300), 0 10px 0 var(--t-sticker), 0 20px 40px rgba(0,0,0,.4) }
.dialog .chip { box-shadow: 0 3px 0 var(--t-sticker) }
.celebrate { animation: none }
.celebrate .key:not(.black) { animation: cheer 600ms ease-in-out 2 }
.celebrate .key:not(.black):nth-child(2n) { animation-delay: 80ms }
@keyframes cheer {
0%, 100% { translate: 0 0; filter: none }
50% { translate: 0 -10px; filter: brightness(1.04) }
}
@media (prefers-reduced-motion: reduce) {
.celebrate .key:not(.black) { animation: none }
}
#app, #app[data-clef="G"] { --t-50: #FFF9FB; --t-100: #FFF5F8; --t-200: #FDE6EE; --t-250: #FBC8D8; --t-300: #EE9DBA; --t-400: #C04877; --t-600: #A93A66; --t-700: #8F2E55; --t-ink: #7A2447; --t-ink2: #6A2040; --t-title: #8F2E55; --t-on-dark: #7A2447; --t-dis: #F4E7EC; --t-dis-ink: #6B4A58; --t-dot: #FBC8D8; --t-paper: #FFF5F8; --t-backdrop: rgba(58, 20, 36, .45); --ink-line: #111 }
#app[data-clef="F"] { --t-50: #F7FCFF; --t-100: #F1F9FD; --t-200: #DDF0FA; --t-250: #C3E5F8; --t-300: #8CC8EA; --t-400: #2A78A8; --t-600: #1F6591; --t-700: #1A557B; --t-ink: #123F5C; --t-ink2: #183F57; --t-title: #1A557B; --t-on-dark: #123F5C; --t-dis: #E4EEF3; --t-dis-ink: #3F5B6E; --t-dot: #C3E5F8; --t-paper: #F1F9FD; --t-backdrop: rgba(10, 34, 52, .45) }
html, body { background: #111 }
#app { background: radial-gradient(var(--t-dot) 28%, transparent 30%) 0 0 / 22px 22px,
    var(--t-paper); transition: background-color 300ms }
#app .top .now, #app .top .bar { background: transparent; box-shadow: none }
#app .top .now-card { position: relative; background: #fff; border: 3px solid var(--ink-line); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink-line) }
#app .top .now-arrow { background: var(--ink-line) }
#app .mini-key, #app .top .mini-key { background: #fff; border: 3px solid var(--ink-line); border-radius: 6px 6px 14px 14px; box-shadow: 4px 4px 0 var(--ink-line) }
#app .mini-key.ask .ask-mark { color: var(--t-600) }
.now-bubble { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); display: grid; align-items: center; justify-items: center; place-items: center; font: 900 20px/1 system-ui, sans-serif; color: var(--t-600); pointer-events: none }
.now-bubble::after { content: ""; position: absolute; left: -7px; bottom: 1px; border: 7px solid transparent; border-top-color: var(--ink-line); transform: rotate(40deg) }
#app .key:not(.black) { background: #fff; border: 3px solid var(--ink-line); border-radius: 0 0 14px 14px; box-shadow: 5px 5px 0 var(--ink-line) }
#app .key:not(.black).down { box-shadow: 1px 1px 0 var(--ink-line); transform: translate(4px, 4px) }
#app .key .shape svg path, #app .mini-key .shape svg path { fill: var(--c); stroke: var(--c); stroke-width: 7; stroke-linejoin: round; paint-order: stroke }
#app .key.black { background: var(--ink-line); border-radius: 0 0 10px 10px; box-shadow: 4px 4px 0 var(--t-600) }
#app .key.black::after { content: ""; position: absolute; left: 18%; top: 6%; width: 12%; height: 55%; background: #fff; border-radius: 9px; opacity: .85; pointer-events: none }
#app .key.black.down { box-shadow: 1px 1px 0 var(--t-600); filter: none; background: #333 }
#app .key.next { outline: 6px solid var(--t-600); outline-offset: -9px }
#app .key.heard { background: color-mix(in srgb, var(--c) 35%, #fff) }
.bubble { background: var(--c); border: 3px solid #111; box-shadow: 3px 3px 0 #111 }
#app .top .bar .select, #app .top .bar .chip, #app .top .bar .clef-pick { background: var(--t-100); color: var(--t-ink); border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); font-weight: 800 }
#app .top .bar .clef-pick .select { border: none; box-shadow: none; background: transparent }
#app .top .bar .select:hover, #app .top .bar .chip:hover, #app .top .bar .clef-pick:hover { background: var(--t-200) }
#app .top .bar .mode-select.active, #app .top .bar .play-btn.active { background: var(--t-600); color: #fff }
#app .top .bar .quiz-btn.active { background: var(--t-700); color: #fff }
#app .top .bar .chip:disabled, #app .top .bar .select:disabled { background: var(--t-dis); color: var(--t-dis-ink); border-style: dashed; box-shadow: none }
#app .top .bar .clef-pick:has(.select:disabled) { background: var(--t-dis); border-style: dashed; box-shadow: none }
#app .top .bar .chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-line) }
#app .top .status:not(:empty), #app .top .piano-status:not(:empty) { color: var(--t-ink); background: #fff; opacity: 1; border: 2px solid var(--ink-line); border-radius: 8px; padding: 2px 8px }
#app .top .bar .chip:focus-visible, #app .top .bar .select:focus-visible, #app .top .bar .clef-pick:focus-within { outline: 3px solid var(--t-400); outline-offset: 3px }
#app.menu-folded .menu-btn { background: #fff; border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line) }
#app.menu-folded .menu-btn span,
#app.menu-folded .menu-btn span::before,
#app.menu-folded .menu-btn span::after { background: var(--ink-line) }
#app .dialog-backdrop { background: var(--t-backdrop); -webkit-backdrop-filter: none; backdrop-filter: none }
#app .dialog { background: #fff; color: var(--t-ink2); border: 3px solid var(--ink-line); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink-line) }
#app .dialog .chip { border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); color: var(--t-700); background: #fff }
#app .dialog .chip.primary { background: var(--t-700); color: #fff }
#app img.praise { filter: drop-shadow(8px 8px 0 #111) }
#app .now.right .now-card { animation: right-pop 600ms ease-out }
@keyframes right-pop {
0% { transform: scale(1); box-shadow: 6px 6px 0 var(--ink-line) }
35% { transform: scale(1.05); box-shadow: 0 0 0 6px var(--t-250), 8px 8px 0 var(--ink-line) }
100% { transform: scale(1); box-shadow: 6px 6px 0 var(--ink-line) }
}
.fly { position: absolute; z-index: 8; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; background: #fff; border: 3px solid #111; border-radius: 14px; box-shadow: 4px 4px 0 #111; transform: translate(-50%, 0) scale(.5); opacity: 0; animation: fly-up 1200ms cubic-bezier(.2, .8, .3, 1) forwards }
.no-flex-gap .fly > * + * { margin-top: 4px }
.fly img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block }
.fly .shape { width: 62%; aspect-ratio: 1; display: block }
.fly .shape svg { width: 100%; height: 100%; display: block; overflow: visible }
.fly .shape svg path { fill: var(--c); stroke: #111; stroke-width: 7; stroke-linejoin: round; paint-order: stroke }
@keyframes fly-up {
0% { transform: translate(-50%, 0) scale(.5) rotate(-6deg); opacity: 0 }
15% { transform: translate(-50%, -30%) scale(1) rotate(-3deg); opacity: 1 }
70% { opacity: 1 }
100% { transform: translate(-50%, -150%) scale(1.12) rotate(4deg); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) {
.fly { animation: fly-fade 1000ms ease-out forwards }
@keyframes fly-fade {
0% { opacity: 0; transform: translate(-50%, -40%) }
20%, 70% { opacity: 1; transform: translate(-50%, -40%) }
100% { opacity: 0; transform: translate(-50%, -40%) }
}
#app .now.right .now-card { animation: none }
}
.cs-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden }
#app .top .bar { overflow: visible }
.clef-pick { display: contents }
#clefIcon { display: none }
.cs { position: relative; display: inline-flex; min-width: 0 }
.bar-row > .cs, .bar-row > .clef-pick > .cs { flex-shrink: 1; min-width: 5em }
#app .top .bar .cs-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); max-width: 100%; min-width: 0; padding: 4px 30px 4px 8px; position: relative; cursor: pointer; text-align: left; font: inherit; font-size: var(--menu-fs); font-weight: 800 }
.no-flex-gap #app .top .bar .cs-btn > * + * { margin-left: 6px }
.cs-btn::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-70%) rotate(45deg) }
.cs.open .cs-btn::after { transform: translateY(-30%) rotate(-135deg) }
.cs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
.cs-ico { flex: none; width: 24px; height: 24px; display: inline-grid; align-items: center; justify-items: center; place-items: center }
.cs-ico svg { width: 24px; height: 24px; display: block; overflow: visible }
.cs-ico svg * { fill: var(--t-250); stroke: #111; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round }
.cs-ico svg [fill="none"] { fill: none }
.cs-ico svg .i-ink { fill: #111; stroke: none }
.cs-ico svg .i-dark { fill: var(--t-300) }
.cs-ico img { width: 26px; height: 26px; object-fit: cover; object-position: left center }
.cs-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: max(100%, 13em); max-width: min(calc(92 * var(--cqw, 1vw)), 26em); max-width: min(92cqw, 26em); max-height: min(calc(58 * var(--cqh, 1vh)), 320px); max-height: min(58cqh, 320px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 3px solid #111; border-radius: 16px; box-shadow: 5px 5px 0 #111; padding: 6px; touch-action: pan-y; scrollbar-width: auto; scrollbar-color: var(--t-400) var(--t-100) }
.cs-list[hidden] { display: none }
.cs-list::-webkit-scrollbar { width: 12px }
.cs-list::-webkit-scrollbar-track { background: var(--t-100); border-radius: 8px }
.cs-list::-webkit-scrollbar-thumb { background: var(--t-400); border-radius: 8px; border: 2px solid var(--t-100) }
.cs-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--t-ink); font-size: 16px; font-weight: 800; cursor: pointer; white-space: nowrap }
.no-flex-gap .cs-opt > * + * { margin-left: 10px }
.cs-opt:hover, .cs-opt:focus { background: var(--t-200); outline: none }
.cs-opt:focus-visible { outline: 3px solid var(--t-400); outline-offset: -3px }
.cs-opt[aria-selected="true"] { background: var(--t-250) }
#app .top .bar .cs-btn:disabled { cursor: not-allowed }
#app .top .bar .mode-select.cs-btn.active { background: var(--t-600); color: #fff }
#app .top .bar .cs-btn.attn { animation: pick-me 1.6s ease-in-out infinite }
@keyframes pick-me {
0%, 60%, 100% { transform: rotate(0) scale(1); box-shadow: 3px 3px 0 #111 }
10% { transform: rotate(-4deg) scale(1.06) }
20% { transform: rotate(4deg) scale(1.06); box-shadow: 3px 3px 0 #111, 0 0 0 6px var(--t-250) }
30% { transform: rotate(-3deg) scale(1.04) }
40% { transform: rotate(2deg) scale(1.02); box-shadow: 3px 3px 0 #111, 0 0 0 3px var(--t-250) }
}
@media (prefers-reduced-motion: reduce) {
#app .top .bar .cs-btn.attn { animation: none; box-shadow: 3px 3px 0 #111, 0 0 0 5px var(--t-250) }
}
#app .key.next { animation: none }
.cue { animation: cue 4s ease-in-out infinite; transform-origin: 50% 100% }
@keyframes cue {
0%, 100% { transform: rotate(0) }
25% { transform: rotate(-10deg) }
75% { transform: rotate(10deg) }
}
.ask-mark.cue { display: inline-block }
@media (prefers-reduced-motion: reduce) {
.cue { animation: cue-soft 4s ease-in-out infinite }
@keyframes cue-soft {
50% { filter: drop-shadow(0 0 6px var(--t-400)) }
}
}
#app .top .now-card { cursor: pointer }
.bar-row > .cs-lang { min-width: 7.2em; flex-shrink: .5 }
.bar-row > .cs-mode { flex-shrink: 1.4 }
.reward { position: absolute; z-index: 9; pointer-events: none; aspect-ratio: 1; transform: translate(-50%, -50%); container-type: inline-size }
.rw-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0 }
.rw-answer { position: absolute; left: 19%; top: 19%; width: 62%; display: flex; flex-direction: column; align-items: center; gap: 2%; z-index: 2; animation: rw-in 3.2s cubic-bezier(.33, 0, .25, 1) both }
.no-flex-gap .rw-answer > * + * { margin-top: 2% }
.rw-answer img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block }
@keyframes rw-in {
0% { scale: .7; opacity: 0 }
14% { scale: 1; opacity: 1 }
78% { scale: 1; opacity: 1 }
100% { scale: .97; opacity: 0 }
}
.rw-p { position: absolute; left: 50%; top: 50%; pointer-events: none }
.rw-p svg { width: 100%; height: 100%; display: block; overflow: visible }
.rw-confetti .rw-p { width: calc(3.2 * var(--cqw, 1vw)); width: 3.2cqw; height: calc(5.2 * var(--cqw, 1vw)); height: 5.2cqw; background: var(--c); border-radius: calc(.8 * var(--cqw, 1vw)); border-radius: .8cqw; box-shadow: 0 0 0 calc(.35 * var(--cqw, 1vw)) rgba(255, 255, 255, .7); box-shadow: 0 0 0 .35cqw rgba(255, 255, 255, .7); animation: rw-conf 3s cubic-bezier(.25, .6, .35, 1) var(--d) both; will-change: transform, opacity }
@keyframes rw-conf {
0% { transform: translate(-50%, -50%) rotate(0) scale(.4); opacity: 0 }
10% { opacity: 1 }
35% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(calc(var(--r) * .4)) scale(1) }
75% { opacity: .9 }
100% { transform: translate(calc(-50% + var(--dx) * 1.25), calc(-50% + var(--dy) + var(--fall))) rotate(var(--r)) scale(.9); opacity: 0 }
}
.bubble-party { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 60; pointer-events: none; overflow: hidden }
.bubble-party.bye { transition: opacity .5s; opacity: 0 }
.pb { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; pointer-events: auto; cursor: pointer; touch-action: manipulation; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0, rgba(255,255,255,.95) 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, transparent 58%, var(--tint) 72%, rgba(255,255,255,.35) 100%); background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 9%, transparent 10%),
    radial-gradient(circle at 68% 74%, rgba(255,255,255,.5) 0 5%, transparent 6%),
    radial-gradient(circle at 50% 50%, transparent 58%, color-mix(in srgb, var(--tint) 70%, transparent) 72%, rgba(255,255,255,.35) 100%); border: 2.5px solid rgba(17,17,17,.55); box-shadow: inset 0 0 12px rgba(255,255,255,.6); animation: pb-burst .7s cubic-bezier(.15, 1.4, .4, 1) var(--d) both, pb-float var(--f) ease-in-out calc(.7s + var(--d)) infinite }
@keyframes pb-burst {
0% { translate: calc(calc(50 * var(--cqw, 1vw)) - var(--x)) calc(calc(50 * var(--cqh, 1vh)) - var(--y)); translate: calc(50cqw - var(--x)) calc(50cqh - var(--y)); scale: .1; opacity: 0 }
60% { opacity: 1 }
100% { translate: 0 0; scale: 1; opacity: 1 }
}
@keyframes pb-float {
0%, 100% { transform: translate(0, 0) }
25% { transform: translate(calc(1.5 * var(--cqw, 1vw)), calc(-2.5 * var(--cqh, 1vh))); transform: translate(1.5cqw, -2.5cqh) }
50% { transform: translate(calc(-1 * var(--cqw, 1vw)), calc(-4 * var(--cqh, 1vh))); transform: translate(-1cqw, -4cqh) }
75% { transform: translate(calc(-2 * var(--cqw, 1vw)), calc(-1.5 * var(--cqh, 1vh))); transform: translate(-2cqw, -1.5cqh) }
}
.pb.popped { animation: pb-pop .32s ease-out forwards; pointer-events: none }
@keyframes pb-pop {
0% { scale: 1; opacity: 1 }
40% { scale: 1.25; opacity: .8; border-style: dashed }
100% { scale: 1.55; opacity: 0; border-style: dotted }
}
@media (prefers-reduced-motion: reduce) {
.reward .rw-p { animation-duration: .01s !important }
.pb { animation: pb-fade .4s both }
@keyframes pb-fade {
from { opacity: 0 }
to { opacity: 1 }
}
}
.cs-icononly .cs-ico { width: 40px; height: 40px }
.cs-icononly .cs-ico img { width: 40px; height: 40px }
.cs-icononly .cs-opt { justify-content: center }
#app.demo-on .cue { animation-duration: var(--beat, 540ms); animation-iteration-count: infinite }
.now-key-wrap, .mini-key { position: relative }
.reward.rw-card { z-index: 5 }
.noscript { position: relative; z-index: 100; max-width: 720px; margin: 24px auto; padding: 16px 20px; background: #fff; color: #1d1d1f; border: 3px solid #111; border-radius: 16px; font: 16px/1.6 system-ui, sans-serif }
.noscript a { color: #2A78A8 }
.ios-tip { margin: 0; max-width: 36em; font-size: 13px; line-height: 1.4; text-align: right; color: #4f4f55 }
.ios-tip[hidden], #app.menu-folded .top .ios-tip { display: none }
.cs[hidden] { display: none !important }
#app .top .bar { flex: 1; min-width: 0; padding: var(--pad); flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 6px; background: transparent; box-shadow: none; overflow: visible }
#app .menu-btn { display: grid; align-items: center; justify-items: center; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: #fff; border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); cursor: pointer; touch-action: manipulation }
#app .menu-btn svg { width: 26px; height: 26px; display: block }
#app .menu-btn svg path { fill: var(--t-200); stroke: var(--ink-line); stroke-width: 1.6; stroke-linejoin: round }
#app .menu-btn svg circle { fill: #fff; stroke: var(--ink-line); stroke-width: 1.6 }
#app .menu-btn:focus-visible { outline: 3px solid var(--t-400); outline-offset: 3px }
#app .menu-btn.tap { animation: tap-count 260ms ease-out }
@keyframes tap-count {
50% { transform: scale(.9) }
}
.menu-hint { margin: 0; max-width: 14em; text-align: right; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--t-ink) }
#app.settings-on .top .bar { visibility: hidden }
#app .settings-backdrop { z-index: 30 }
#app .dialog.settings { width: min(820px, calc(96 * var(--cqw, 1vw))); width: min(820px, 96cqw); max-height: calc(94 * var(--cqh, 1vh)); max-height: 94cqh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; text-align: left; padding: calc(2.4 * var(--cqh, 1vh)) calc(2.4 * var(--cqw, 1vw)); padding: max(10px, min(calc(2.4 * var(--cqh, 1vh)), 20px)) max(12px, min(calc(2.4 * var(--cqw, 1vw)), 24px)); padding: clamp(10px, 2.4cqh, 20px) clamp(12px, 2.4cqw, 24px) }
.settings h2 { margin: 0 0 calc(1.6 * var(--cqh, 1vh)); margin: 0 0 max(6px, min(calc(1.6 * var(--cqh, 1vh)), 12px)); margin: 0 0 clamp(6px, 1.6cqh, 12px); font-size: 22px; text-align: center }
.set-row { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 10px; padding: calc(1.3 * var(--cqh, 1vh)) 0; padding: max(5px, min(calc(1.3 * var(--cqh, 1vh)), 9px)) 0; padding: clamp(5px, 1.3cqh, 9px) 0; border-top: 2px dashed var(--t-250) }
.set-row[hidden] { display: none }
.set-label { font-size: 15px; font-weight: 800; color: var(--t-title) }
.seg { display: flex; flex-wrap: wrap; gap: 8px }
.no-flex-gap .seg > * + * { margin-left: 8px }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; color: var(--t-ink); background: #fff; border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); touch-action: manipulation }
.no-flex-gap .seg-btn > * + * { margin-left: 6px }
.seg-btn img { width: 34px; height: 34px; object-fit: cover; object-position: left center }
.seg-btn.on { background: var(--t-600); color: #fff }
.seg-btn.on img { background: #fff; border-radius: 6px }
.seg-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; border-style: dashed }
.seg-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-line) }
.seg-btn:focus-visible { outline: 3px solid var(--t-400); outline-offset: 3px }
.seg-lang .seg-btn { padding: 6px 12px; font-size: 15px }
.set-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: calc(2 * var(--cqh, 1vh)); padding-top: max(8px, min(calc(2 * var(--cqh, 1vh)), 14px)); padding-top: clamp(8px, 2cqh, 14px); border-top: 2px dashed var(--t-250) }
.no-flex-gap .set-actions > * + * { margin-left: 10px }
#app .dialog.settings .chip { border: 3px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); font-weight: 800 }
#app .dialog.settings .chip.active { background: var(--t-600); color: #fff }
#app .dialog.settings .chip:disabled { opacity: .55; box-shadow: none; border-style: dashed }
#app .dialog.settings .start-btn { min-width: 9em; font-size: 18px }
.set-status { margin: 8px 0 0 !important; text-align: center; font-size: 14px !important }
.set-status .piano-status, .set-status .status { color: var(--t-ink); opacity: 1 }
#app .settings .ios-tip { margin: 8px auto 0; text-align: center; max-width: 40em }
.set-native { display: none !important }
#app .key:not(.black) { background: var(--c) }
#app .key.heard:not(.black) { background: var(--c); filter: brightness(.9) saturate(1.2) }
.keys.quiz .key.heard:not(.reveal):not(.black) { background: var(--c) }
#app .key.next:not(.black) { outline: 6px solid var(--cl); outline-offset: -9px }
@keyframes reveal {
0%, 100% { outline: 0 solid var(--cl, var(--c)); filter: none }
50% { outline: 8px solid var(--cl, var(--c)); outline-offset: -10px; filter: brightness(1.06) }
}
#app .top .mini-key.colored { background: var(--c) }
.key.cue:not(.black), .mini-key.cue { animation: key-cue 2.4s ease-in-out infinite }
@keyframes key-cue {
0%, 100% { box-shadow: 5px 5px 0 var(--ink-line), inset 0 0 0 0 var(--cl) }
50% { box-shadow: 5px 5px 0 var(--ink-line), inset 0 0 0 7px var(--cl) }
}
.key.black.cue { animation: none }
#app.demo-on .key.cue, #app.demo-on .mini-key.cue { animation-duration: var(--beat, 900ms) }
@media (prefers-reduced-motion: reduce) {
.key.cue:not(.black), .mini-key.cue { animation: none; box-shadow: 5px 5px 0 var(--ink-line), inset 0 0 0 6px var(--cl) }
}
#app .dialog.settings { padding-bottom: 0 }
.set-actions { position: sticky; bottom: 0; background: #fff; padding-bottom: calc(2 * var(--cqh, 1vh)); padding-bottom: max(8px, min(calc(2 * var(--cqh, 1vh)), 16px)); padding-bottom: clamp(8px, 2cqh, 16px); z-index: 1 }
@container (max-height: 480px) {
.settings h2 { font-size: 18px; margin-bottom: 4px }
.set-row { grid-template-columns: 6em 1fr; gap: 8px; padding: 4px 0 }
.set-label { font-size: 13px }
.seg { gap: 6px }
.seg-btn { font-size: 14px; padding: 4px 12px }
.seg-lang .seg-btn { font-size: 13px; padding: 4px 10px }
.seg-btn img { width: 28px; height: 28px }
#app .dialog.settings .chip { min-height: 44px; padding: 6px 14px; font-size: 15px }
.menu-hint { font-size: 12px }
}
#app .key:not(.black) { background: #fff }
#app .key.lit:not(.black) { background: var(--c) }
#app .key.heard:not(.black) { background: var(--c); filter: none }
.keys.quiz .key.heard:not(.reveal):not(.black) { background: var(--c) }
@keyframes reveal {
0%, 100% { outline: 0 solid var(--cl, var(--c)) }
50% { outline: 8px solid var(--cl, var(--c)); outline-offset: -10px; background: var(--c) }
}
.key-staff { position: absolute; left: 0; right: 0; bottom: 5%; margin: 0 auto; width: 88%; height: 40%; object-fit: contain; object-position: 50% 100%; pointer-events: none; display: block }
.finger { position: absolute; left: 18%; bottom: 42%; width: 64%; aspect-ratio: 60 / 80; z-index: 3; pointer-events: none; animation: finger-press 1.2s ease-in-out infinite }
.key.black .finger { left: 5%; bottom: 6%; width: 90% }
@supports not (aspect-ratio: 1) {
.finger { height: 26% }
.key.black .finger { height: 30% }
}
.finger svg { width: 100%; height: 100%; display: block; overflow: visible; transform: rotate(180deg) }
.finger .f-hand { fill: #FFE1CF; stroke: #111; stroke-width: 3.2; stroke-linejoin: round }
.finger .f-line { fill: none; stroke: #111; stroke-width: 2.2; stroke-linecap: round }
.f-ring { position: absolute; left: 50%; bottom: -14%; width: 60%; aspect-ratio: 1; margin-left: -30%; border-radius: 50%; border: 3px solid var(--cl, #111); opacity: 0; animation: finger-ring 1.2s ease-out infinite }
@keyframes finger-press {
0%, 100% { transform: translateY(-18%) }
45%, 60% { transform: translateY(4%) }
}
@keyframes finger-ring {
0%, 40% { transform: scale(.3); opacity: 0 }
50% { opacity: .9 }
100% { transform: scale(1.2); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) {
.finger { animation: none }
.f-ring { animation: none; opacity: .8; transform: scale(.9) }
}
#app .top { position: relative; justify-content: center }
#app .top .bar { position: absolute; right: 0; top: 0; flex: none; width: auto; max-width: 30% }
#app .dialog.settings { position: relative }
.set-lang { position: absolute; top: calc(2 * var(--cqh, 1vh)); top: max(8px, min(calc(2 * var(--cqh, 1vh)), 16px)); top: clamp(8px, 2cqh, 16px); right: calc(2 * var(--cqw, 1vw)); right: max(10px, min(calc(2 * var(--cqw, 1vw)), 20px)); right: clamp(10px, 2cqw, 20px); z-index: 6 }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 30px 4px 10px; position: relative; font: inherit; font-size: 14px; font-weight: 700; color: var(--t-ink); cursor: pointer; background: #fff; border: 2px solid var(--ink-line); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink-line) }
.no-flex-gap .lang-btn > * + * { margin-left: 6px }
.lang-btn svg { width: 20px; height: 20px; display: block }
.lang-btn svg * { fill: none; stroke: var(--ink-line); stroke-width: 1.6 }
.lang-btn svg circle { fill: var(--t-200) }
.lang-btn::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg) }
.lang-btn[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg) }
.lang-btn:focus-visible { outline: 3px solid var(--t-400); outline-offset: 2px }
.lang-list { position: absolute; top: calc(100% + 6px); right: 0; width: max-content; max-width: calc(70 * var(--cqw, 1vw)); max-width: 70cqw; max-height: min(calc(64 * var(--cqh, 1vh)), 360px); max-height: min(64cqh, 360px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; display: grid; grid-template-columns: repeat(2, auto); gap: 4px; padding: 6px; background: #fff; border: 3px solid var(--ink-line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink-line) }
.lang-list[hidden] { display: none }
.lang-list .seg-btn { min-height: 40px; padding: 4px 12px; font-size: 14px; justify-content: flex-start; border: none; box-shadow: none; border-radius: 10px }
.lang-list .seg-btn:hover { background: var(--t-200) }
.lang-list .seg-btn.on { background: var(--t-600); color: #fff }
.settings h2 { padding: 0 9em }
@container (max-height: 480px) {
.settings h2 { padding: 0 8em 0 0; text-align: left }
}
.keys.quiz .key-staff { visibility: hidden }
.top .now-staff { width: calc(var(--staff) * 1.79); height: var(--staff); min-width: 0; aspect-ratio: auto; display: block }
.now-staff svg { width: 100%; height: 100%; display: block; overflow: visible }
.now-staff .cur-halo { opacity: .45; transform-box: fill-box; transform-origin: center; animation: cur-halo 1.6s ease-in-out infinite }
@keyframes cur-halo {
0%, 100% { transform: scale(.85); opacity: .35 }
50% { transform: scale(1.1); opacity: .6 }
}
@media (prefers-reduced-motion: reduce) {
.now-staff .cur-halo { animation: none }
}
span.key-staff { display: block }
span.key-staff svg { width: 100%; height: 100%; display: block; overflow: visible }
.now-staff .cur-arrow { animation: cur-arrow 1s ease-in-out infinite }
@keyframes cur-arrow {
0%, 100% { opacity: 1; transform: translateY(0) }
50% { opacity: .15; transform: translateY(-40px) }
}
@media (prefers-reduced-motion: reduce) {
.now-staff .cur-arrow { animation: cur-arrow-soft 1.4s step-end infinite }
@keyframes cur-arrow-soft {
50% { opacity: .3 }
}
}
.top .now { cursor: pointer }
