/* 不規則動詞：一覧・リズム・テスト（app.css の変数を使う） */
.vb { width: min(100% - 32px, 1060px); margin: 0 auto; padding: 0 0 56px; --cA: var(--brand); --cB: var(--blue); --cC: var(--teal); --cX: var(--violet); }
.vb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vb-noscript { color: var(--ink3); padding: 20px 0; }

/* ── 型の小さな図 ── */
.vb-pat { display: inline-flex; gap: 2px; flex: none; }
.vb-pat i { width: 9px; height: 14px; border-radius: 3px; background: var(--cA); }
.vb-pat .p-b { background: var(--cB); } .vb-pat .p-c { background: var(--cC); } .vb-pat .p-x { background: var(--cX); }

/* ── タブ ── */
.vb-tabs { position: sticky; top: var(--hd); z-index: 20; margin: 0 -16px 14px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vb-tabs-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh1); }
.vb-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border: 0; border-radius: 12px; background: none; color: var(--ink2); font-weight: 800; font-size: 13px; line-height: 1.2; padding: 6px 2px; transition: background .15s, color .15s; }
.vb-tabs button .ic { width: 22px; height: 22px; }
.vb-tabs button:hover { background: var(--bg2); }
.vb-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.vb-tabs em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 10.5px; font-weight: 900; min-width: 18px; padding: 0 5px; line-height: 18px; border-radius: 9px; background: var(--ok); color: #fff; }
.vb-tabs em:empty { display: none; }
@media (min-width: 640px) { .vb-tabs button { flex-direction: row; gap: 8px; font-size: 15px; } .vb-tabs em { position: static; } }

/* ── 一覧：型のボタン・検索 ── */
.vb-types { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.vb-types::-webkit-scrollbar { display: none; }
.vb-ty { flex: 1 0 auto; min-width: 74px; display: grid; justify-items: center; gap: 3px; padding: 10px 10px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); line-height: 1.2; }
.vb-ty b { font-family: var(--en); font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.vb-ty small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.vb-ty[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.vb-ty[aria-pressed="true"] small { color: inherit; opacity: .75; }
.vb-ty:not([data-type=""]) b { margin-top: 1px; }
.vb-ty[data-type=""] b { font-family: var(--jp); margin-top: 8px; }
.vb-tdesc { font-size: 13.5px; color: var(--ink2); margin: 4px 0 12px; line-height: 1.7; }
.vb-tdesc b { color: var(--ink); }
.vb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; background: var(--bg); }
@media (min-width: 900px) and (min-height: 700px) { .vb-bar { position: sticky; top: calc(var(--hd) + 76px); z-index: 10; } }
.vb-q { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink3); box-shadow: var(--sh1); }
.vb-q input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; padding: 11px 0; color: var(--ink); outline: none; }
.vb-q:focus-within { border-color: var(--blue); }
.vb-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); flex: none; }
.vb-seg button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.vb-seg button .ic { width: 15px; height: 15px; color: var(--gold); }
.vb-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh1); }
.vb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 16px; }
.vb-tools .chip { min-height: 38px; }
.vb-tools .chip .ic { width: 18px; height: 18px; }
.vb-tip { font-size: 12.5px; color: var(--ink3); font-weight: 700; }
.vb-none { text-align: center; color: var(--ink3); padding: 30px 0; }

/* ── 仲間のカード ── */
.vb-fams { display: grid; gap: 14px; }
@media (min-width: 900px) { .vb-fams { grid-template-columns: 1fr 1fr; align-items: start; } }
.vb-fam { --c: var(--blue); --cb: var(--blue-bg); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 14px 14px; box-shadow: var(--sh1); position: relative; overflow: hidden; scroll-margin-top: calc(var(--hd) + 130px); }
.vb-fam::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.vb-fam[data-type="AAA"] { --c: var(--gold); --cb: var(--gold-bg); }
.vb-fam[data-type="ABA"] { --c: var(--violet); --cb: var(--violet-bg); }
.vb-fam[data-type="ABB"] { --c: var(--blue); --cb: var(--blue-bg); }
.vb-fam[data-type="ABC"] { --c: var(--teal); --cb: var(--teal-bg); }
.vb-fam[data-type="SP"] { --c: var(--coral); --cb: var(--coral-bg); }
.vb-fh { display: flex; gap: 12px; align-items: flex-start; }
.vb-fh .vb-pat { margin-top: 6px; padding: 6px; border-radius: 10px; background: var(--cb); }
.vb-ft { min-width: 0; flex: 1; }
.vb-ft h3 { font-size: 17px; font-weight: 900; margin: 0; line-height: 1.45; }
.vb-fm { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--c); }
.vb-fprog { color: var(--ok); }
.vb-sd { font-style: normal; letter-spacing: 1px; color: var(--c); margin-left: 6px; font-size: 10px; }
.vb-hint { display: flex; gap: 8px; margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--cb); font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.vb-hint .ic { color: var(--c); margin-top: 2px; }
.vb-heads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 11px; font-weight: 800; color: var(--ink3); padding: 0 4px 4px; text-align: center; }
.vb-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vb-w { container-type: inline-size; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 7px 7px 7px; }
.vb-wh { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 700; padding: 0 4px 5px; line-height: 1.45; }
.vb-ja { flex: 1; min-width: 0; }
.vb-star { color: var(--gold); display: inline-flex; flex: none; }
.vb-star .ic { width: 15px; height: 15px; }
.vb-mk { flex: none; font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 1px 7px; }
.vb-mk:empty { display: none; }
.vb-mk.is-ok { background: var(--ok-bg); color: var(--ok); }
.vb-mk.is-ng { background: var(--ng-bg); color: var(--ng); }
.vb-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.vb-f { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 46px; padding: 6px 4px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: clamp(14px, 4.1vw, 17px); line-height: 1.2; text-align: center; color: var(--ink); }
.vb-f .en { font-weight: 700; overflow-wrap: anywhere; }
.vb-f .ic { width: 13px; height: 13px; color: var(--ink3); flex: none; }
.vb-f1 { color: var(--cB); background: color-mix(in srgb, var(--blue-bg) 55%, var(--card)); }
.vb-f2 { color: var(--cC); background: color-mix(in srgb, var(--teal-bg) 55%, var(--card)); }
.vb-f.has-au:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.vb-f.tap { animation: vbTap .35s ease-out; }
@keyframes vbTap { 40% { transform: scale(1.06); } }
@container (max-width: 240px) {
  .vb-forms { grid-template-columns: 1fr; }
  .vb-f { justify-content: flex-start; padding-left: 10px; min-height: 40px; }
  .vb-f::before { content: attr(data-l); width: 4.5em; flex: none; text-align: left; font-size: 11px; font-weight: 800; color: var(--ink3); }
}
/* 隠す（タップで出る） */
#vb-list.hide1 .vb-f1:not(.show) .en, #vb-list.hide2 .vb-f2:not(.show) .en { visibility: hidden; }
#vb-list.hide1 .vb-f1:not(.show), #vb-list.hide2 .vb-f2:not(.show) { background: repeating-linear-gradient(-45deg, var(--bg2) 0 6px, var(--card) 6px 12px); box-shadow: inset 0 0 0 1.5px dashed var(--line2); }
#vb-list.hide1 .vb-f1:not(.show)::after, #vb-list.hide2 .vb-f2:not(.show)::after { content: "?"; position: absolute; font: 900 18px var(--en); color: var(--ink3); }
#vb-list .vb-f.show { animation: vbTap .3s ease-out; background: var(--mark); color: var(--ink); }
#vb-list.hide1 .vb-f1 .ic, #vb-list.hide2 .vb-f2 .ic { display: none; }
.vb-ex { margin: 6px 4px 0; font-size: 13px; }
.vb-ex summary { cursor: pointer; color: var(--ink3); font-weight: 800; font-size: 12px; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.vb-ex summary::-webkit-details-marker { display: none; }
.vb-ex summary::before { content: "+"; font-family: var(--en); font-weight: 900; }
.vb-ex[open] summary::before { content: "−"; }
.vb-ex p { margin: 6px 0 0; line-height: 1.55; }
.vb-ex p .en { display: block; }
.vb-ex small { color: var(--ink3); font-size: 12px; }
.vb-fa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.vb-go { flex: 1 1 auto; }
.vb-go .ic { width: 20px; height: 20px; }

/* ════════ リズム ════════ */
.vb-rh { max-width: 860px; margin: 0 auto; }
.rh-top { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.rh-pick { position: relative; flex: 1; min-width: 0; }
.rh-fam { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--card); box-shadow: var(--sh1); min-height: 58px; }
.rh-fn { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.rh-fn b { font-size: 15.5px; font-weight: 900; }
.rh-fn small { font-size: 12px; color: var(--ink3); font-weight: 700; }
.rh-chev { color: var(--ink3); transition: transform .2s; }
.rh-fam[aria-expanded="true"] .rh-chev { transform: rotate(180deg); }
.rh-fl { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh2); }
.rh-fl-h { display: flex; align-items: center; gap: 8px; margin: 8px 6px 4px; font-size: 12px; font-weight: 900; color: var(--ink3); font-family: var(--en); }
.rh-fl button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; line-height: 1.4; }
.rh-fl button span { font-weight: 800; font-size: 14px; }
.rh-fl button small { grid-column: 1; color: var(--ink3); font-size: 12px; }
.rh-fl button .vb-sd { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--brand); }
.rh-fl button:hover { background: var(--bg2); }
.rh-fl button[aria-current="true"] { background: var(--brand-bg); }
.rh-nav { display: flex; gap: 4px; }
.rh-nav .ib { height: 100%; min-height: 58px; border: 1.5px solid var(--line2); background: var(--card); border-radius: 16px; }
.rh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rh-steps button { position: relative; display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); line-height: 1.3; }
.rh-steps b { font-size: 18px; color: var(--ink3); }
.rh-steps span { font-size: 13px; font-weight: 800; }
.rh-steps button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-bg); }
.rh-steps button[aria-checked="true"] b { color: var(--brand); }
.rh-steps button.done::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rh-sd { font-size: 13px; color: var(--ink2); margin: 8px 2px 12px; line-height: 1.65; min-height: 2.6em; }

/* ステージ */
.rh-stage { --beat: .65s; position: relative; border-radius: 24px; padding: 14px 14px 16px; overflow: hidden; color: #f4f1ea; background: radial-gradient(120% 90% at 50% 0%, #2a3350 0%, #161b2b 60%, #10131e 100%); box-shadow: var(--sh2), inset 0 0 0 1px rgba(255, 255, 255, .06); min-height: 360px; isolation: isolate; }
.rh-stage::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 122, 82, .22), transparent 70%); opacity: 0; transform: scale(.6); }
.rh-stage.thump::before { animation: rhThump calc(var(--beat) * .9) ease-out; }
@keyframes rhThump { 0% { opacity: 1; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.15); } }
.rh-prog { position: absolute; inset: 0 0 auto 0; height: 4px; background: rgba(255, 255, 255, .08); --p: 0; }
.rh-prog i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #ff7a52, #f2bd4b); transition: width .3s; }
.rh-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rh-dots { display: flex; gap: 8px; }
.rh-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .08s, background .08s; display: grid; place-items: center; font-style: normal; font-size: 0; }
.rh-dots i.on { background: #ff7a52; transform: scale(1.35); box-shadow: 0 0 14px rgba(255, 122, 82, .8); }
.rh-dots .rh-d4 { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.rh-dots .rh-d4.on { background: #f2bd4b; box-shadow: 0 0 14px rgba(242, 189, 75, .7); }
.rh-pos { font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .6); font-family: var(--en); }
.rh-ja { text-align: center; font-size: 15px; font-weight: 800; color: #f2bd4b; margin: 10px 0 8px; min-height: 1.6em; }
.rh-cards { display: grid; gap: 8px; }
.rh-c { position: relative; display: grid; grid-template-columns: 74px 1fr; align-items: center; min-height: 64px; padding: 6px 14px 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .12s cubic-bezier(.2, .9, .3, 1.4), background .12s, box-shadow .12s; overflow: hidden; }
.rh-l { font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.rh-w { font-size: clamp(26px, 8.4vw, 40px); font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; letter-spacing: .01em; }
.rh-c0 .rh-w { color: #fff; } .rh-c1 .rh-w { color: #9cc0ff; } .rh-c2 .rh-w { color: #7fe3d8; }
.rh-q { display: none; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 900 30px var(--en); color: rgba(255, 255, 255, .35); }
.rh-c.on { transform: scale(1.035); background: rgba(255, 122, 82, .2); box-shadow: inset 0 0 0 2px #ff7a52, 0 8px 30px rgba(255, 122, 82, .35); }
.rh-c1.on { background: rgba(122, 167, 255, .2); box-shadow: inset 0 0 0 2px #7aa7ff, 0 8px 30px rgba(122, 167, 255, .35); }
.rh-c2.on { background: rgba(79, 209, 197, .2); box-shadow: inset 0 0 0 2px #4fd1c5, 0 8px 30px rgba(79, 209, 197, .35); }
.rh-c.pre { opacity: .55; }
.rh-c.hid .rh-w { visibility: hidden; }
.rh-c.hid .rh-q { display: block; }
.rh-c.hid.on .rh-q { color: #fff; animation: rhSay var(--beat) ease-out; }
@keyframes rhSay { 0% { transform: translateY(-50%) scale(1.5); } 100% { transform: translateY(-50%) scale(1); } }
/* 次の拍まで隠れている語：拍に向かって帯が満ちる */
.rh-c.soon::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: currentColor; color: #9cc0ff; animation: rhFill var(--beat) linear forwards; }
.rh-c2.soon::after { color: #7fe3d8; }
@keyframes rhFill { to { width: 100%; } }
.rh-c.ans { box-shadow: inset 0 0 0 2px #5fd08e; }
.rh-c.ans .rh-w { animation: rhIn .25s ease-out; }
@keyframes rhIn { from { opacity: 0; transform: translateY(6px); } }
.rh-rest { display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 12px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 1px dashed rgba(255, 255, 255, .15); border: 1px dashed rgba(255, 255, 255, .15); transition: background .1s, color .1s; }
.rh-rest.on { background: rgba(242, 189, 75, .18); color: #f2bd4b; }
.rh-next { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); margin: 10px 0 0; min-height: 1.6em; }
.rh-next b { color: #fff; font-size: 15px; }
@media (min-width: 720px) {
  .rh-stage { padding: 18px 22px 22px; min-height: 340px; }
  .rh-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) 64px; gap: 10px; }
  .rh-c { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 150px; padding: 14px 10px; align-content: center; gap: 6px; }
  .rh-w { font-size: 42px; max-width: 100%; }
  .rh-q { right: auto; left: 50%; top: 58%; transform: translate(-50%, -50%); font-size: 46px; }
  @keyframes rhSay { 0% { transform: translate(-50%, -50%) scale(1.5); } 100% { transform: translate(-50%, -50%) scale(1); } }
  .rh-rest { min-height: 150px; writing-mode: vertical-rl; }
  .rh-ja { font-size: 17px; }
}
/* 重なる画面：待機・カウント・読み込み・終わり */
.rh-idle, .rh-end, .rh-cnt, .rh-load { position: absolute; inset: 0; display: none; }
.rh-stage[data-state="idle"] .rh-idle { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(180deg, transparent 0%, rgba(16, 19, 30, .2) 25%, rgba(16, 19, 30, .94) 58%); }
.rh-hint { font-size: 13px; line-height: 1.7; margin: 0 0 8px; color: #f4f1ea; }
.rh-il { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.rh-il li { display: flex; gap: 6px; white-space: nowrap; overflow: hidden; }
.rh-il li span:nth-child(2) { color: #9cc0ff; } .rh-il li span:nth-child(3) { color: #7fe3d8; }
@media (max-width: 400px) { .rh-il { grid-template-columns: 1fr; } .rh-il li:nth-child(n+5) { display: none; } }
.rh-stage[data-state="count"] .rh-cnt { display: grid; place-items: center; pointer-events: none; font: 900 120px/1 var(--en); color: rgba(255, 255, 255, .9); text-shadow: 0 0 40px rgba(255, 122, 82, .7); }
.rh-cnt.pop { animation: rhPop calc(var(--beat) * .95) ease-out; }
@keyframes rhPop { 0% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(.9); opacity: .15; } }
.rh-stage[data-state="load"] .rh-load { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(16, 19, 30, .6); }
.rh-load i { width: 10px; height: 10px; border-radius: 50%; background: #ff7a52; animation: rhDot 1s infinite ease-in-out; }
.rh-load i:nth-child(2) { animation-delay: .15s; } .rh-load i:nth-child(3) { animation-delay: .3s; }
@keyframes rhDot { 50% { transform: translateY(-8px); opacity: .5; } }
.rh-stage[data-state="end"] .rh-end { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; background: rgba(16, 19, 30, .9); animation: fade .3s; }
.rh-end-k { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .2em; color: #f2bd4b; }
.rh-end h3 { margin: 4px 0 6px; font-size: 20px; line-height: 1.4; }
.rh-end h3 small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); font-weight: 700; }
.rh-end p { font-size: 13.5px; color: rgba(255, 255, 255, .8); max-width: 30em; }
.rh-end-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rh-end .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.rh-stage[data-state="pause"] .rh-cards { opacity: .6; }

/* 操作 */
.rh-ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0 8px; }
.rh-play { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 16px 34px; min-width: 200px; justify-content: center; font-size: 17px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff8a4c, #d93a1c); box-shadow: 0 5px 0 #a72d14, 0 12px 26px rgba(217, 58, 28, .35); transition: transform .1s, box-shadow .1s; }
.rh-play .ic { width: 24px; height: 24px; }
.rh-play:active { transform: translateY(4px); box-shadow: 0 1px 0 #a72d14; }
.rh-play[aria-pressed="true"] { background: linear-gradient(135deg, #3b4766, #222a40); box-shadow: 0 5px 0 #11151f, 0 12px 26px rgba(0, 0, 0, .25); }
.rh-stop { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink2); display: grid; place-items: center; }
.rh-stop:disabled { opacity: .35; cursor: default; }
.rh-opts { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.rh-og { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; }
.rh-ol { font-size: 12.5px; font-weight: 900; color: var(--ink3); }
.rh-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.rh-seg button { border: 0; background: none; border-radius: 11px; padding: 7px 4px; font-weight: 800; font-size: 13.5px; line-height: 1.25; display: grid; color: var(--ink2); }
.rh-seg small { font-family: var(--en); font-size: 10.5px; color: var(--ink3); font-weight: 700; }
.rh-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh1); }
.rh-tg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rh-tg .chip { min-height: 38px; }
.rh-tg .chip .ic { width: 18px; height: 18px; }
.rh-ynst { display: inline-flex; }
.rh-ynst .yns-pill { background: #1c2234; }
.rh-vol { flex: 1 1 120px; display: flex; align-items: center; min-width: 110px; }
.rh-vol input { width: 100%; accent-color: var(--brand); height: 32px; }
.rh-tip { font-size: 12.5px; color: var(--ink3); margin: 12px 4px 0; line-height: 1.7; }

/* ════════ テスト ════════ */
.vb-ts { max-width: 820px; margin: 0 auto; }
.ts-stats { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh1); }
.ts-ring { --p: 0; position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; align-content: center; line-height: 1; }
.ts-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ts-ring circle { fill: none; stroke: var(--bg2); stroke-width: 5; }
.ts-ring .ts-ring-v { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 * (1 - var(--p))); transition: stroke-dashoffset .6s; }
.ts-ring b { font: 900 26px var(--en); }
.ts-ring small { font-size: 11px; color: var(--ink3); font-weight: 800; }
.ts-st p { margin: 0 0 2px; font-size: 14px; line-height: 1.6; }
.ts-st b { font-weight: 900; }
.ts-st-s { font-size: 12px !important; color: var(--ink3); margin-top: 4px !important; }
.ts-h { font-size: 15px; font-weight: 900; margin: 22px 0 10px; }
.ts-scopes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ts-sc { display: grid; gap: 1px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); line-height: 1.3; text-align: center; }
.ts-sc b { font-size: 14px; font-weight: 900; }
.ts-sc small { font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.ts-sc.hot { border-color: var(--ng); }
.ts-sc.hot small { color: var(--ng); }
.ts-sc[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ts-sc[aria-pressed="true"] small { color: inherit; opacity: .8; }
.ts-sc:disabled { opacity: .45; cursor: default; }
.ts-sel { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.ts-sel select { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); }
.ts-modes { display: grid; gap: 8px; }
@media (min-width: 640px) { .ts-modes { grid-template-columns: repeat(2, 1fr); } }
.ts-md { display: grid; grid-template-columns: 46px 1fr; gap: 2px 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); line-height: 1.45; }
.ts-md-i { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 900 19px var(--en); background: var(--bg2); color: var(--ink2); }
.ts-md b { font-size: 15px; font-weight: 900; }
.ts-md small { font-size: 12px; color: var(--ink3); }
.ts-md[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-bg); }
.ts-md[aria-pressed="true"] .ts-md-i { background: var(--brand); color: #fff; }
.ts-go { text-align: center; margin: 22px 0 10px; }
.ts-go .btn { min-width: 240px; font-size: 16.5px; }
.ts-go p { font-size: 12.5px; color: var(--ink3); margin: 10px 0 0; }
.ts-miss { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--ng-bg); }
.ts-miss summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ng); }
.ts-miss ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ts-miss li { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 14px; }
.ts-miss small { color: var(--ink3); }
/* 出題中 */
.ts-run { padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh2); }
.ts-top { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.ts-quit { border: 0; background: var(--bg2); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.ts-pbar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.ts-pbar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s; }
.ts-cnt { font-family: var(--en); white-space: nowrap; }
.ts-score b { font: 900 16px var(--en); color: var(--brand); }
.ts-q { text-align: center; padding: 18px 0 6px; }
.ts-ja { margin: 0; font-size: 14px; color: var(--ink2); font-weight: 700; }
.ts-base { margin: 2px 0 0; font-size: clamp(38px, 12vw, 58px); font-weight: 800; line-height: 1.15; }
.ts-ask { margin: 2px 0 14px; font-size: 16px; font-weight: 800; }
.k1 { color: var(--blue); } .k2 { color: var(--teal); }
.ts-timer { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 0 auto 14px; max-width: 420px; }
.ts-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ng), var(--gold), var(--ok)); border-radius: inherit; }
.ts-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
.ts-o { min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--bg); font-size: clamp(17px, 5vw, 22px); font-weight: 800; padding: 8px; color: var(--ink); box-shadow: 0 3px 0 var(--line2); transition: transform .08s; overflow-wrap: anywhere; }
.ts-o:active { transform: translateY(2px); box-shadow: none; }
.ts-o.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); box-shadow: 0 3px 0 var(--ok); animation: vbTap .35s; }
.ts-o.ng { background: var(--ng-bg); border-color: var(--ng); color: var(--ng); box-shadow: 0 3px 0 var(--ng); animation: tsShake .35s; }
.ts-o:disabled { cursor: default; }
@keyframes tsShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ts-combo { margin: 12px 0 0; font-size: 13px; font-weight: 900; color: var(--gold); }
.ts-late { margin: 10px 0 0; font-weight: 900; color: var(--ng); }
.ts-ins { display: grid; gap: 10px; max-width: 440px; margin: 14px auto 0; text-align: left; }
.ts-ins label { display: grid; gap: 4px; font-size: 13px; font-weight: 900; position: relative; }
.ts-ins input { font-size: 22px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line2); background: var(--bg); color: var(--ink); width: 100%; }
.ts-ins input:focus { outline: none; border-color: var(--blue); }
.ts-ins label.ok input { border-color: var(--ok); background: var(--ok-bg); }
.ts-ins label.ng input { border-color: var(--ng); background: var(--ng-bg); text-decoration: line-through; text-decoration-color: var(--ng); }
.ts-fb { min-height: 1.8em; margin: 14px 0 6px; font-size: 16px; }
.ts-fb .ok { color: var(--ok); } .ts-fb .ng { color: var(--ng); }
.ts-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
/* 隠す表 */
.ts-tbl-h { font-size: 13px; color: var(--ink2); margin: 12px 2px; line-height: 1.7; }
.ts-tbl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-tbl li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "w p pp" "ox ox ox"; gap: 5px; padding: 7px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
@media (min-width: 560px) { .ts-tbl li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px; grid-template-areas: "w p pp ox"; align-items: center; } }
.ts-tw { grid-area: w; display: grid; line-height: 1.25; padding-left: 4px; }
.ts-tw .en { font-size: 17px; font-weight: 800; }
.ts-tw small { font-size: 11px; color: var(--ink3); }
.ts-h1 { position: relative; min-height: 44px; border-radius: 10px; border: 0; padding: 4px; font-size: 15px; font-weight: 700; background: repeating-linear-gradient(-45deg, var(--bg2) 0 6px, var(--card) 6px 12px); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); overflow-wrap: anywhere; }
.ts-h1[data-k="1"] { grid-area: p; } .ts-h1[data-k="2"] { grid-area: pp; }
.ts-h1 span { visibility: hidden; }
.ts-h1::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 18px var(--en); color: var(--ink3); }
.ts-h1.show { background: var(--card); }
.ts-h1.show span { visibility: visible; }
.ts-h1.show::after { display: none; }
.ts-h1[data-k="1"].show { color: var(--blue); } .ts-h1[data-k="2"].show { color: var(--teal); }
.ts-ox { grid-area: ox; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ts-ox button { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--card); font-size: 17px; font-weight: 900; color: var(--ink2); }
.ts-ox [data-ox="1"]:hover { border-color: var(--ok); color: var(--ok); }
.ts-ox [data-ox="0"]:hover { border-color: var(--ng); color: var(--ng); }
.ts-tbl li[data-done="ok"] { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.ts-tbl li[data-done="ng"] { background: var(--ng-bg); border-color: color-mix(in srgb, var(--ng) 40%, transparent); }
.ts-tbl li[data-done="ok"] [data-ox="1"] { background: var(--ok); color: #fff; border-color: var(--ok); }
.ts-tbl li[data-done="ng"] [data-ox="0"] { background: var(--ng); color: #fff; border-color: var(--ng); }
.ts-tbl li[data-done] .ts-ox button { cursor: default; }
/* 結果 */
.ts-res { padding: 20px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh2); text-align: center; }
.ts-res-k { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .2em; color: var(--ink3); }
.ts-res-n { margin: 4px 0 8px; font-size: 18px; font-weight: 800; }
.ts-res-n b { font: 900 52px var(--en); color: var(--brand); }
.ts-res-n span { display: block; font-size: 13px; color: var(--ink3); }
.ts-res-l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.ts-res-l li { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--bg); font-size: 14.5px; line-height: 1.4; }
.ts-res-l i { grid-row: 1 / 3; font-style: normal; font-weight: 900; font-size: 18px; text-align: center; }
.ts-res-l .ok i { color: var(--ok); } .ts-res-l .ng i { color: var(--ng); }
.ts-res-l .ng { background: var(--ng-bg); }
.ts-res-l small { color: var(--ink3); font-size: 12px; }

/* ════════ 使い方 ════════ */
.vb-use { max-width: 860px; margin: 0 auto; }
.vb-use h2 { font-size: clamp(19px, 5vw, 24px); font-weight: 900; margin: 10px 0 14px; padding-left: 12px; border-left: 6px solid var(--brand); }
.vb-use h2 + .vb-steps { margin-top: 0; }
.vb-uses { display: grid; gap: 10px; }
@media (min-width: 720px) { .vb-uses { grid-template-columns: 1fr 1fr; } }
.vb-u { --c: var(--blue); --cb: var(--blue-bg); padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.vb-u1 { --c: var(--blue); --cb: var(--blue-bg); } .vb-u2, .vb-u3, .vb-u4 { --c: var(--teal); --cb: var(--teal-bg); }
.vb-u-k { display: inline-block; margin: 0; font-size: 11.5px; font-weight: 900; padding: 1px 10px; border-radius: 999px; background: var(--cb); color: var(--c); }
.vb-u h3 { font-size: 16.5px; font-weight: 900; margin: 6px 0 4px; }
.vb-u p { font-size: 13.5px; line-height: 1.7; margin: 0 0 8px; color: var(--ink2); }
.vb-u-ex { padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.vb-u-ex .en { display: block; font-size: 15px; color: var(--ink); }
.vb-u-ex b { color: var(--c); }
.vb-u-ex small { font-size: 12px; color: var(--ink3); }
.vb-ll { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 6px; border-radius: 12px; background: var(--cb); color: var(--ink); text-decoration: none; line-height: 1.35; }
.vb-ll > .ic:first-child { color: var(--c); }
.vb-ll span { flex: 1; min-width: 0; display: grid; }
.vb-ll b { font-size: 14px; font-weight: 800; }
.vb-ll small { font-size: 11.5px; color: var(--ink3); }
.vb-ll small:empty { display: none; }
.vb-u-note { display: flex; gap: 8px; margin: 14px 0 26px; padding: 12px 14px; border-radius: 14px; background: var(--gold-bg); font-size: 13.5px; line-height: 1.7; }
.vb-u-note .ic { color: var(--gold); margin-top: 2px; }
.vb-steps { list-style: none; counter-reset: s; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.vb-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); line-height: 1.6; }
.vb-steps li::before { content: counter(s); grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 900 17px var(--en); }
.vb-steps b { font-size: 15px; }
.vb-steps span { font-size: 13.5px; color: var(--ink2); }

/* お知らせ */
.vb-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 90; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.vb-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ════════ 印刷用の表 ════════ */
.vb-print { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  .vb > :not(.vb-print), .ph-art, .ph .crumbs, .ph-k, .ph-l, .vb-toast { display: none !important; }
  .ph { padding: 0 !important; background: none !important; }
  .ph h1 { font-size: 15pt !important; margin: 0 0 2mm !important; }
  .vb { width: auto; padding: 0; }
  .vb-print { display: block !important; color: #000; font-family: var(--jp); }
  .vb-pr-h { font-size: 8pt; margin: 0 0 3mm; color: #333; }
  .vb-pr-cols { columns: 2; column-gap: 6mm; }
  .vb-print table { width: 100%; border-collapse: collapse; margin: 0 0 3mm; break-inside: avoid; font-size: 8.4pt; line-height: 1.25; }
  .vb-print th { text-align: left; font-size: 7.6pt; background: #eee !important; padding: 1mm 1.5mm; border: .3pt solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vb-print td { border: .3pt solid #bbb; padding: .7mm 1.5mm; font-family: var(--en); font-weight: 600; }
  .vb-print td:last-child { font-family: var(--jp); font-weight: 400; font-size: 7.4pt; color: #333; }
}

/* ════════ 音（YNS）を入れた所 ════════ */
/* 仲間の頭出し（型ごとに通す・2 周目） */
.rh-famc { position: absolute; inset: 0; display: none; }
.rh-stage[data-state="fam"] .rh-famc { display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; padding: 16px 20px; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 122, 82, .3), transparent), rgba(16, 19, 30, .93); animation: fade .25s; }
.rh-famc small { font-size: 12px; font-weight: 900; letter-spacing: .2em; color: #f2bd4b; }
.rh-famc .vb-pat { transform: scale(1.5); margin: 6px 0 4px; }
.rh-famc b { max-width: 100%; font-size: clamp(19px, 5.6vw, 28px); font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
.rh-famc span.en { font-size: 14px; color: rgba(255, 255, 255, .7); }
.rh-famc.pop b { animation: rhPop2 calc(var(--beat) * .9) ease-out; }
.rh-famc[data-k="3"] b { color: #ff9a6e; }
@keyframes rhPop2 { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ts-snd { display: flex; justify-content: flex-end; margin-top: 12px; }
.ts-go .ts-snd { justify-content: center; }
.ts-snd .yns-pill { background: #1c2234; }
.ts-score b { display: inline-block; }
.ts-score b.bump, .tb-cb.bump b { animation: tsBump .3s ease-out; }
@keyframes tsBump { 40% { transform: scale(1.35); } }
.ts-timer.hurry i { animation: tsHurry .5s ease-in-out infinite; }
@keyframes tsHurry { 50% { opacity: .45; } }
.ts-md-beat .ts-md-i { background: linear-gradient(135deg, #ff8a4c, #d93a1c); color: #fff; font-size: 22px; }
.ts-md-beat[aria-pressed="true"] .ts-md-i { background: linear-gradient(135deg, #ff8a4c, #d93a1c); }
.ts-res-pt { display: block; font-size: 15px !important; color: var(--ink) !important; font-weight: 900; margin-top: 2px; }
.ts-res-pt i { font: 900 26px var(--en); font-style: normal; color: var(--gold); }
.ts-res-n b.done { animation: tsBump .45s ease-out; }

/* リズム速答 */
.ts-run-beat { color: #f4f1ea; background: radial-gradient(120% 90% at 50% 0%, #2a3350 0%, #161b2b 60%, #10131e 100%); border-color: rgba(255, 255, 255, .08); }
.ts-run-beat .ts-top { color: rgba(255, 255, 255, .75); }
.ts-run-beat .ts-quit { background: rgba(255, 255, 255, .1); color: #fff; }
.ts-run-beat .ts-pbar { background: rgba(255, 255, 255, .1); }
.ts-run-beat .ts-pbar i { background: linear-gradient(90deg, #ff7a52, #f2bd4b); }
.ts-run-beat .ts-score b { color: #f2bd4b; }
.tb { --beat: .68s; position: relative; isolation: isolate; padding-top: 10px; }
.tb::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 122, 82, .2), transparent 70%); opacity: 0; }
.tb.thump::before { animation: rhThump calc(var(--beat) * .9) ease-out; }
.tb-hud { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .7); }
.tb-bpm b, .tb-cb b { font: 900 18px var(--en); color: #fff; display: inline-block; }
.tb-bpm.up b { animation: tsBump .5s ease-out; color: #ff9a6e; }
.tb-cb.hot b { color: #f2bd4b; text-shadow: 0 0 12px rgba(242, 189, 75, .7); }
.tb-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 360px; margin: 12px auto 4px; }
.tb-dots i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .08s, transform .08s; }
.tb-dots i:nth-child(4n+1) { background: rgba(255, 255, 255, .26); }
.tb-dots i.past { background: rgba(255, 122, 82, .45); }
.tb-dots i.on { background: #ff7a52; transform: scaleY(1.7); box-shadow: 0 0 12px rgba(255, 122, 82, .8); }
.tb-body { position: relative; transition: opacity .2s; }
.tb-body.wait { opacity: .5; }
.tb-body.in .ts-base, .tb-body.in .ts-opts { animation: rhIn .22s ease-out; }
.tb .ts-ja { color: #f2bd4b; min-height: 1.6em; }
.tb .ts-base { color: #fff; }
.tb .ts-ask { color: rgba(255, 255, 255, .85); }
.tb .k1 { color: #9cc0ff; } .tb .k2 { color: #7fe3d8; }
.tb .ts-o { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .18); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.tb .ts-o:not(:disabled):hover { border-color: #ff7a52; }
.tb .ts-o.ok { background: rgba(95, 208, 142, .22); border-color: #5fd08e; color: #b8f5cf; box-shadow: 0 3px 0 #2f8f58; }
.tb .ts-o.ng { background: rgba(255, 99, 99, .2); border-color: #ff6b6b; color: #ffc2c2; box-shadow: 0 3px 0 #a33; }
.tb .ts-o:disabled:not(.ok):not(.ng) { opacity: .7; }
.tb-ans { min-height: 1.6em; margin: 10px 0 0; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.tb-judge { position: absolute; left: 0; right: 0; top: 34%; pointer-events: none; display: grid; justify-items: center; gap: 2px; opacity: 0; }
.tb-judge.pop { animation: tbJudge 1.1s ease-out forwards; }
.tb-judge b { font: 900 clamp(34px, 10vw, 52px)/1 var(--en); letter-spacing: .04em; -webkit-text-stroke: 1px rgba(0, 0, 0, .25); }
.tb-judge small { font: 900 18px var(--en); color: #fff; }
.tb-judge em { font-style: normal; font-size: 13px; font-weight: 900; padding: 2px 10px; border-radius: 99px; background: #ff7a52; color: #fff; }
.j-perfect { color: #ffd34d; text-shadow: 0 0 22px rgba(255, 211, 77, .9); }
.j-good { color: #7fe3d8; text-shadow: 0 0 18px rgba(127, 227, 216, .8); }
.j-ok { color: #9cc0ff; }
.j-miss { color: #ff7b7b; text-shadow: 0 0 16px rgba(255, 90, 90, .7); }
@keyframes tbJudge { 0% { opacity: 0; transform: scale(1.6); } 15% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.tb-cnt { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 900 110px/1 var(--en); color: rgba(255, 255, 255, .92); text-shadow: 0 0 40px rgba(255, 122, 82, .7); }
.tb-cnt:empty { display: none; }
.tb-cnt.pop { animation: rhPop calc(var(--beat) * .95) ease-out; }
.tb-tip { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin: 14px 0 0; line-height: 1.7; }
.tb-tip b { color: #ffd34d; }
@media (prefers-reduced-motion: reduce) { .tb-judge.pop { animation: none; opacity: 1; } .tb.thump::before, .tb-dots i.on { animation: none; transform: none; } }
