@font-face{font-family:Manrope;src:url('/home-assets/manrope-400.ttf');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url('/home-assets/manrope-600.ttf');font-weight:600;font-display:swap}
:root{font:16px/1.45 Manrope,system-ui,sans-serif;color-scheme:dark;color:#f5f6fa;background:#08090d;--ink:#f5f6fa;--muted:#b3b7c5;--blue:#a1e8ff;--edge:#373b48}*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(ellipse at 50% 28%,#14192255,transparent 68%),#08090d}button,select,input,a{font:inherit;touch-action:manipulation}button,select,input,a{accent-color:var(--blue)}button,select,a{color:var(--ink)}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,select,.secondary,.record-option{border:1px solid var(--edge);border-radius:12px;background:#15171e}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button:not(:disabled):hover,.secondary:hover{border-color:#9aa6b9}a{text-decoration:none}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}::selection{background:#ace7f5;color:#10131b}
.game{width:min(100%,590px);min-height:100svh;margin:auto;padding:clamp(15px,3svh,32px) clamp(16px,4vw,36px) max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column}header{display:flex;align-items:center;gap:10px}h1,h2{font:400 clamp(32px,4vw,45px)/1.1 Georgia,serif;margin:0;letter-spacing:-.035em}.back{display:grid;place-items:center;min-width:44px;height:44px;margin-left:-9px}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#progress{margin-left:auto;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}#stage{flex:1;display:flex;flex-direction:column}#instruction{font-size:14px;line-height:1.6;color:#d9dce4;margin:24px 0 20px}.board{position:relative;margin-right:6px}.columns,.bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.15fr);gap:6px}.columns{text-align:center;color:var(--muted);font-size:14px;margin-bottom:9px}.rows{list-style:none;margin:0;padding:0;display:grid;gap:7px}.bar{position:relative;height:clamp(46px,8.1svh,79px)}.bar>*{display:grid;place-items:center;min-width:0;border:1px solid #363b48;background:linear-gradient(165deg,#15171e,#0c0e13);border-radius:9px}.bar strong{font:400 clamp(21px,4vw,30px)/1 Georgia,serif;letter-spacing:-.02em;border-color:#8795a6}.bar[data-pair="0"] strong{border-color:#88a5b9}.bar:not(.empty)::after{content:"";position:absolute;right:-6px;width:3px;inset-block:4px;border-radius:3px;background:#858392}.bar[data-pair="0"]::after{background:#85c1d4}.bar.empty{opacity:.22}.current>*{border-color:#677f92}.current .active{border-color:var(--blue);box-shadow:inset 0 0 8px #78c9e52a,0 0 6px #7ed1f02a}.current>strong{color:white}.bar.current .active:last-child{background:#213341}.board #ball{position:absolute;left:0;top:0;width:clamp(15px,2.3vw,22px);aspect-ratio:1;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 36% 22%,white 1%,#e3eef5 19%,#a9b2c1 39%,#697587 67%,#d4e5f6 94%);box-shadow:0 0 12px #85d5ff66;transform:translate(-50%,-50%);will-change:transform}.controls{margin-top:auto;padding-top:22px}.beat-row,#settings,.actions{display:flex;align-items:center;gap:10px}.beat-row{border:1px solid var(--edge);border-radius:13px;padding:8px 12px;background:#111319}.beat-row button{height:42px;width:42px;display:grid;place-items:center;border-radius:50%}.beat-row button svg{width:16px;height:16px}.beat-choice{display:flex;align-items:baseline;gap:8px;flex:1}.beat-choice select{font:21px Georgia,serif;max-width:70%;padding:5px 4px;border:0;background:transparent}.beat-choice span:last-child{font-size:12px;color:var(--muted)}#settings{margin:12px 0}#settings>label{flex:1}select{padding:9px;min-height:44px;cursor:pointer}select:disabled{opacity:1;color:#e0e2eb}#bars{width:100%}.record-option{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;cursor:pointer}.record-option input{width:16px;height:16px}.actions{margin-top:14px}.actions button,.review-actions button,.secondary{min-height:48px;padding:9px 16px}.primary{flex:1;width:100%;border:1px solid #d2d5e1;border-radius:18px;color:#11151e;font:22px Georgia,serif;background:linear-gradient(177deg,#f3f4fa,#bac1cf 50%,#e5e6ed);box-shadow:inset 0 1px 2px white}#notice,#review-note{color:#ded7bb;font-size:14px}#announce{pointer-events:none}#review{margin-top:48px;display:flex;flex:1;flex-direction:column}#review h2{font-size:clamp(38px,7vw,54px)}#summary{color:var(--muted);margin:8px 0 25px}#pairs{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0;margin:0 0 26px}#pairs li{display:grid;grid-template-columns:1fr 28px 1fr;gap:8px;align-items:center;text-align:center}#pairs span{border:1px solid #565c6a;border-radius:10px;padding:5px;font:23px Georgia,serif}#pairs i{height:1px;background:#697483}#take audio{width:100%}details{margin:12px 0}summary{cursor:pointer;min-height:42px;padding-block:10px}details label{display:block;font-size:13px;color:var(--muted)}details input{display:block;width:100%;min-height:32px}.secondary{display:grid;place-items:center;margin:10px 0} .review-actions{margin-top:auto;padding-top:24px;display:grid;gap:5px}.quiet{border:0;background:none;color:var(--muted)}.game:is([data-phase="playing"],[data-phase="counting"],[data-phase="paused"]) #instruction{display:none}.game:is([data-phase="playing"],[data-phase="counting"],[data-phase="paused"]) .board{margin-top:clamp(14px,3svh,26px)}.game:is([data-phase="playing"],[data-phase="counting"],[data-phase="paused"]) .bar{height:clamp(44px,10.5svh,99px)}#record-time{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}#record-time::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;background:#ff8494;border-radius:50%}.game[data-phase="playing"] #settings,.game[data-phase="counting"] #settings,.game[data-phase="paused"] #settings{display:none}
@media(max-height:650px){.game{padding-block:10px}.game #instruction{margin:10px 0}.controls{padding-top:9px}.bar{height:clamp(36px,7.5svh,49px)}#review{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.board #ball{will-change:auto;box-shadow:none}.current .active{box-shadow:none}}

.board{--row-size:clamp(46px,8.1svh,79px)}
.rows-window{height:calc(5 * var(--row-size) + 28px);overflow:hidden;margin-right:-6px;padding-right:6px}
.game .bar{height:var(--row-size)}
.board #ball{z-index:1}
.game:is([data-phase="playing"],[data-phase="counting"],[data-phase="paused"]) .board{--row-size:clamp(44px,10.5svh,99px)}
.beat-choice{min-width:0}.beat-choice select{width:100%;max-width:100%;text-overflow:ellipsis}
.tempo-control{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:12px;white-space:nowrap}
.tempo-control input,.timing-fields input{color:var(--ink);border:1px solid var(--edge);border-radius:8px;background:#191c24;font-variant-numeric:tabular-nums}
.tempo-control input{font-size:16px;line-height:1;width:6ch;min-height:40px;text-align:center;appearance:textfield}
.tempo-control input::-webkit-inner-spin-button{appearance:none}
#source-tools{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 12px;font-size:14px}
#choose-file,#track-timing summary{min-height:44px;padding:10px 2px;color:var(--blue)}
#choose-file{background:transparent;border:none}#track-timing{margin:0;flex:1}
.timing-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.timing-fields input{padding:5px 8px;min-height:40px;margin-top:4px;font-size:16px}
#source-tools + #settings{margin-top:2px}
@media(max-height:650px){.board{--row-size:clamp(36px,7.5svh,49px)}}

#audition .preview-stop,#audition[aria-pressed="true"] .preview-play{display:none}
#audition[aria-pressed="true"] .preview-stop{display:block}
