:root{color:#181816;background:#fbfbf8;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Yu Gothic,Meiryo,Noto Sans CJK JP,Noto Sans JP,sans-serif;font-synthesis:none;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;--ink: #181816;--muted: #565651;--faint: #a9a9a3;--line-soft: #cfcfca;--soft: #f0f0ec;--surface: #ffffff}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:linear-gradient(#eeeeea 1px,transparent 1px),linear-gradient(90deg,#eeeeea 1px,transparent 1px),var(--surface);background-size:22px 22px}button{border:0;font:inherit;color:inherit;background:none;cursor:pointer}button:focus-visible{outline:3px solid var(--ink);outline-offset:2px}button:active{transform:translateY(1px)}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}svg.fill{fill:currentColor;stroke:none}.shell{display:flex;flex-direction:column;width:min(100%,560px);min-height:100svh;margin:0 auto;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));gap:18px}.home{justify-content:center}.brand{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center}.brand-mark{width:58px;height:58px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}h1{margin:0;font-size:clamp(2rem,11vw,2.9rem);line-height:1;font-weight:900;letter-spacing:-.02em}.set-list{display:grid;gap:12px}.set-card{display:grid;gap:10px;padding:14px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}.set-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.set-head:not(:has(h2)){justify-content:flex-end}.dl-size{margin-left:auto;color:var(--muted);font-size:.78rem;font-weight:800}.set-head h2{margin:0;font-size:1.2rem;font-weight:900}.chip{display:flex;align-items:center;gap:4px;min-height:36px;padding:4px 10px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);font-weight:800;font-size:.82rem;font-variant-numeric:tabular-nums;white-space:nowrap}.chip svg{width:18px;height:18px}.chip.saved{color:var(--muted);border-color:var(--line-soft)}.chip.danger{background:var(--ink);color:#fff}.chip.busy{background:linear-gradient(90deg,var(--soft) var(--p),var(--surface) var(--p))}.set-progress{height:8px;border:2px solid var(--ink);border-radius:99px;overflow:hidden;background:var(--surface)}.set-progress span{display:block;height:100%;background:var(--ink)}.set-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);font-weight:900;font-size:.95rem;font-variant-numeric:tabular-nums}.btn.primary{background:var(--ink);color:#fff}.btn.wide{grid-column:1 / -1}.error,.empty{margin:0;color:var(--muted);font-weight:700;font-size:.9rem}.top-bar{display:grid;grid-template-columns:44px 1fr 44px;gap:12px;align-items:center}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}.icon-btn.toggle{border-color:var(--line-soft);color:var(--faint)}.icon-btn.toggle.on{border-color:var(--ink);background:var(--ink);color:#fff}.top-title{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:900;font-size:1.05rem}.streaming{display:inline-flex;color:var(--faint)}.streaming svg{width:18px;height:18px}.counter{display:flex;align-items:baseline;justify-content:center;gap:6px;font-variant-numeric:tabular-nums}.counter b{font-size:3rem;font-weight:900;line-height:1}.counter span{color:var(--muted);font-weight:800;font-size:1.1rem}.reps{display:grid;grid-template-columns:1fr 1fr 1.45fr 1fr;gap:6px}.rep{display:grid;align-items:center;min-height:40px;padding:0 2px}.rep-bar{display:block;height:10px;border-radius:99px;background:var(--surface);border:2px solid var(--line-soft);overflow:hidden}.rep.now .rep-bar{border-color:var(--ink)}.rep-fill{display:block;height:100%;width:0;background:var(--ink)}.text-card{display:grid;align-content:center;gap:10px;min-height:160px;padding:18px 16px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}.text-card .en{margin:0;font-size:1.22rem;font-weight:800;line-height:1.45}.text-card .ja{margin:0;color:var(--muted);font-size:1rem;font-weight:700;line-height:1.6}.text-card.hidden-text{position:relative;border-style:dashed;border-color:var(--line-soft)}.text-card .veil{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:var(--faint)}.text-card .veil svg{width:40px;height:40px}.controls{display:grid;grid-template-columns:1fr 1fr 1.4fr 1fr;gap:8px}.ctrl{display:grid;place-items:center;min-height:58px;border:2px solid var(--ink);border-radius:8px;background:var(--surface)}.ctrl svg{width:26px;height:26px}.ctrl.main{background:var(--ink);color:#fff}.ctrl.main svg{width:32px;height:32px}html{touch-action:manipulation}button{touch-action:manipulation;-webkit-user-select:none;user-select:none}.check{display:flex;align-items:center;gap:8px;min-height:40px;color:var(--muted);font-weight:900;font-size:.9rem}.check svg{width:18px;height:18px}.check .box{display:grid;place-items:center;width:24px;height:24px;border:2px solid var(--ink);border-radius:6px;background:var(--surface)}.check .box svg{width:16px;height:16px;stroke-width:3.2}.check.on{color:var(--ink)}.check.on .box{background:var(--ink);color:#fff}[hidden]{display:none!important}.scrub{position:relative;display:grid;gap:4px}.ticks{display:grid;grid-template-columns:repeat(var(--n, 50),minmax(0,1fr));gap:2px;height:40px;align-items:center;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}.ticks:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:4px}.ticks i{display:block;height:14px;border-radius:2px;background:var(--line-soft);pointer-events:none}.ticks i.done{background:var(--muted)}.ticks i.now{background:var(--ink);height:30px}.ticks i.hover{background:var(--ink);height:24px}.scrub-row{display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem;font-weight:800;font-variant-numeric:tabular-nums}.bubble{position:absolute;bottom:52px;transform:translate(-50%);padding:4px 12px;border-radius:8px;background:var(--ink);color:#fff;font-weight:900;font-size:1.15rem;font-variant-numeric:tabular-nums;pointer-events:none}.lv{display:inline-flex;align-items:flex-end;gap:3px;height:20px}.lv i{display:block;width:6px;border-radius:2px;background:var(--line-soft)}.lv i:nth-child(1){height:8px}.lv i:nth-child(2){height:14px}.lv i:nth-child(3){height:20px}.lv i.on{background:var(--ink)}.level-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}.level-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border:2px solid var(--line-soft);border-radius:8px;background:var(--surface);color:var(--muted);font-weight:900;font-size:.85rem}.level-tab.on{border-color:var(--ink);background:var(--ink);color:#fff}.level-tab.on .lv i{background:#ffffff59}.level-tab.on .lv i.on{background:#fff}.part-tabs{display:flex;flex-wrap:wrap;gap:6px}.part-tab{min-height:34px;padding:4px 14px;border:2px solid var(--line-soft);border-radius:999px;background:var(--surface);color:var(--muted);font-weight:900;font-size:.82rem}.part-tab.on{border-color:var(--ink);color:var(--ink)}.text-card ruby{ruby-position:under;ruby-align:center}.text-card rt{font-size:.5em;font-weight:700;color:var(--muted);letter-spacing:0;line-height:1}.info-link{justify-self:center;display:inline-flex;align-items:center;gap:4px;padding:4px 2px;color:var(--muted);font-weight:800;font-size:.8rem}.info-link svg{width:16px;height:16px}.guide{width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);color:var(--ink)}.guide::backdrop{background:#00000059}.guide h2{margin:0 0 12px;font-size:1.05rem}.guide ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}.guide li{display:flex;align-items:center;gap:12px}.guide li div{display:grid;gap:1px}.guide li span{font-weight:800}.guide li small{color:var(--muted);font-size:.78rem}.guide p{margin:14px 0;color:var(--muted);font-size:.8rem}.guide .notes{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:0 0 16px;padding-top:12px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:.72rem;line-height:1.5}.guide .notes dt{font-weight:800}.guide .notes dd{margin:0}.guide .btn{width:100%}
