:root { color-scheme: light; font-family: system-ui, sans-serif; color: #263238; background: #eef2f3; }
* { box-sizing: border-box; } body { margin: 0; } button, select, input { font: inherit; }
[hidden] { display: none !important; }
button { border: 0; border-radius: 9px; padding: .7rem 1rem; background: #ed7b3b; color: #fff; cursor: pointer; } button.secondary { background: #667b86; }
.app { max-width: 1100px; margin: auto; padding: 2rem; }.screen { display: none; }.screen.active { display: block; } h1 { margin-top: 0; }
header, .play-header, .actions { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }.muted, .hint { color: #65757d; }.header-actions { display:flex; gap:.65rem; flex-wrap:wrap; }.song-list { display: grid; gap: 1rem; }.song-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem; align-items:center; background: #fff; border-radius: 12px; padding: 1.2rem; box-shadow: 0 2px 8px #26323818; }.song-card-main { min-width:0; }.song-card h2 { margin:0; font-size:1.25rem; line-height:1.45; }.song-artist { margin-left:.5rem; color:#65757d; font-size:.88em; font-weight:500; }.song-details,.song-kps { margin:.32rem 0 0; line-height:1.45; }.song-details { color:#52636b; }.song-kps strong { color:#c25e23; }.chart-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }.hp-wrap { display:flex; align-items:center; gap:.5rem; margin:.7rem 0; font-weight:700; }.hp-bar { flex:1; height:14px; background:#d7dfe2; border-radius:999px; overflow:hidden; }.hp-bar > div { height:100%; width:50%; background:#63be7b; transition:width .15s, background .15s; }
.playfield { position: relative; height: min(55vw, 450px); min-height: 300px; border: 4px solid #839096; background: #f7f9f9; overflow: hidden; }.lane { position: relative; height: 50%; border-bottom: 3px solid #1f2527; }.lane.lower { border-bottom: 0; }.judge-bar { position: absolute; z-index: 3; top: 0; height: 50%; width: 4px; background: #f28b35; box-shadow: 0 0 8px #f28b35; }.note { position: absolute; z-index: 1; top: 31%; height: 38%; min-width: 42px; border: 4px solid #aeb9be; border-radius: 18px; background: #fff; color: #5d6c73; display: flex; align-items: center; justify-content: center; padding: 0 .55rem; font-size: clamp(1rem, 2.7vw, 2rem); font-weight: 700; white-space: nowrap; }.note-char { display:inline-block; margin-right:.23em; }.note-char:last-child { margin-right:0; }.note-char.typed { color:#218c5a; text-shadow:0 0 5px #63be7b66; }.note.current { border-color: #8ed3e6; }.note.active { border-color: #4aaed0; color: #e46e2e; background: #f8fdff; }.note.active .note-char.typed { color:#16864f; }.note.space { background: #f2f7ff; }.note.active.space { border-color: #4c8ed7; }.target-display { text-align: center; font-size: 1.4rem; font-weight: 700; min-height: 2rem; margin: 1rem; }.result-summary { background: #fff; padding: 1.2rem; border-radius: 12px; margin-bottom: 1rem; } dialog { width: min(540px, 94vw); border: 0; border-radius: 14px; box-shadow: 0 12px 40px #0004; } dialog::backdrop { background: #0005; } dialog form { display: grid; gap: .8rem; } dialog header h2, .options-panel h3 { margin: 0; }.options-dialog { width:min(1040px,96vw); max-height:90vh; overflow:auto; }.options-dialog > form > header { position:sticky; top:0; z-index:5; padding:.2rem 0 .5rem; background:#fff; }.options-dialog header button { flex:0 0 auto; }.options-columns { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:1rem; align-items:start; }.options-panel { display:grid; gap:.75rem; padding:1rem; border-radius:10px; background:#f0f5f6; }.options-panel > label { display:block; }.generator-options input[type=number] { width: 4.5em; }.audio-options,.practice-pattern { display:grid; gap:.45rem; border:1px solid #cbd7dc; border-radius:8px; }.audio-options label { display:grid; grid-template-columns:7.5em 1fr 3.5em; gap:.5rem; align-items:center; }.area-weights { display:grid; gap:.45rem; border:1px solid #cbd7dc; border-radius:8px; }.area-weights label { display:grid; grid-template-columns:5em 1fr 3em; gap:.5rem; align-items:center; }.area-weights label:has(input[type=checkbox]) { display:block; }.credits-dialog { width:min(760px,94vw); max-height:86vh; overflow:auto; }.credits-content { line-height:1.65; }.credits-content h2 { margin:1.2rem 0 .35rem; color:#c25e23; }.credits-content h3 { margin:1rem 0 .25rem; font-size:1.05rem; }.credits-content p { margin:.18rem 0; }.credits-content a { color:#267a9b; overflow-wrap:anywhere; }.invalid { color:#bd3f3f; font-weight:700; }.grade { color:#c25e23; font-weight:700; }
.grade { display:inline-block; padding:.08em .38em; border-radius:.38em; font-weight:800; }
.grade-novice { color:#65757d; background:#e7ecee; }
.grade-rookie { color:#287a46; background:#e1f3e5; }
.grade-veteran { color:#176aa0; background:#dff1fa; box-shadow:inset 0 0 0 1px #8bc8e8; }
.grade-master { color:#7844a8; background:linear-gradient(135deg,#f0e3ff,#e4efff); box-shadow:0 0 6px #9f75c844; }
.grade-grandmaster { color:#9b6500; background:linear-gradient(135deg,#fff7c7,#ffd77b); box-shadow:0 0 7px #e0a62b77; }
.grade-legendary { color:#fff; background:linear-gradient(135deg,#ffb13b,#e85c2b,#b82055); text-shadow:0 1px 2px #6f1c2a; box-shadow:0 0 9px #ef713c99; }
.grade-mythical { color:#fff; background:linear-gradient(135deg,#a64de0,#ed4f9a,#ff9d42); text-shadow:0 1px 3px #5a164f; box-shadow:0 0 10px #d84fbd99; }
.grade-celestial { color:#fff; background:linear-gradient(110deg,#28a9ff,#7755e9,#e950c9,#ff9d38,#35c88a); background-size:200% 100%; text-shadow:0 1px 3px #263a72; box-shadow:0 0 12px #6b85ffbb,0 0 4px #fff inset; }
@media (max-width:760px) { .options-columns,.song-card { grid-template-columns:1fr; }.chart-buttons { margin-top:.25rem; }.chart-buttons button { width:100%; }.audio-options label { grid-template-columns:6.5em 1fr 3.5em; }.app { padding:1rem; } }
