/* 拳皇97 招式表（沿用 ../guide/guide.css，以下為本頁專用） */
main.wide { max-width: 980px; }
.topbar .in { max-width: 980px; }

.legend { background: var(--primary-soft); border-radius: 18px; padding: 16px 22px; margin: 22px 0; }
.legend b { display: block; color: var(--primary); margin-bottom: 4px; }
.legend ul { margin: 0; }

kbd {
    display: inline-block; min-width: 1.55em; padding: 0 0.3em; border-radius: 6px;
    font: 700 0.82rem/1.55 var(--font-en); text-align: center; color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.kA { background: #dc2626; }
.kB { background: #d97706; }
.kC { background: #16a34a; }
.kD { background: #2563eb; }
.dir { font-family: var(--font-en); font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; }
.hold { font-weight: 700; color: var(--warn); white-space: nowrap; }
td.c i, .c i { font-style: normal; color: var(--muted); margin: 0 0.15em; }

.tools { position: sticky; top: 55px; z-index: 5; background: var(--paper); padding: 10px 0; margin-bottom: 6px; }
#q {
    width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--soft); color: var(--text); font: inherit; font-size: 0.95rem;
}
#q:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.chip {
    flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--paper); color: var(--muted); font: 700 0.84rem var(--font-zh); cursor: pointer;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.jump { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 10px 0 8px; font-size: 0.9rem; }
.jt { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 3px 0; }
.jt b { width: 6.5em; flex: none; color: var(--muted); font-size: 0.82rem; }
.jt a { text-decoration: none; }
.jt a:hover { text-decoration: underline; }

.char { scroll-margin-top: 175px; }
.char h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 34px; }
.char h2 small { font: 600 0.9rem var(--font-en); color: var(--muted); }
.char h2 .team { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; }

table.mv td { vertical-align: middle; }
table.mv td.n { width: 46%; font-weight: 700; }
table.mv .o { display: block; font: 400 0.76rem/1.4 var(--font-en); color: var(--muted); }
table.mv tr.d1 td.n { padding-left: 30px; }
table.mv tr.d2 td.n { padding-left: 52px; }
table.mv .br { color: var(--muted); margin-right: 4px; font-weight: 400; }
table.mv td.c { line-height: 2; }
table.mv .note { display: inline-block; margin-left: 8px; font-size: 0.78rem; color: var(--muted); background: var(--soft); padding: 0 8px; border-radius: 6px; line-height: 1.7; }
tr.grp th { font-size: 0.8rem; padding: 6px 12px; letter-spacing: 0.1em; background: var(--soft); }
tr.grp.tc th { color: var(--muted); }
tr.grp.ts th { color: var(--accent); }
tr.grp.tx th { color: #dc2626; }
html[data-theme="dark"] tr.grp.tx th { color: #f87171; }
mark { background: rgba(250, 204, 21, 0.45); color: inherit; border-radius: 3px; }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.totop {
    position: fixed; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: var(--primary); color: #fff; text-decoration: none;
    font-weight: 700; box-shadow: var(--shadow); z-index: 20;
}

@media (max-width: 640px) {
    .tools { top: 51px; }
    table.mv td.n { width: auto; }
    table.mv tr td { display: block; border-bottom: 0; padding: 6px 12px 0; }
    table.mv tr td.c { padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
    table.mv tr.d1 td.c { padding-left: 30px; }
    table.mv tr.d2 td.c { padding-left: 52px; }
    .jt b { width: 100%; }
}
