.shortcuts { position: relative; z-index: 1; width: min(46rem, 100% - 32px); margin: 4rem auto 2rem; padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem; color: var(--ink); background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 18px; }
.shortcuts h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.shortcuts h2 { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.shortcuts p, .shortcuts li { line-height: 1.6; }
.shortcuts header > p { color: var(--muted); }
.shortcuts .note { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.shortcuts table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fffdf6; border: 1px solid var(--panel-border); border-radius: 14px; overflow: hidden; }
.shortcuts th, .shortcuts td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--panel-border); }
.shortcuts thead th { border-top: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.shortcuts tbody th { width: 38%; font-weight: 600; white-space: nowrap; }
kbd { display: inline-block; min-width: 1.6em; padding: .1em .45em; border: 1px solid var(--panel-border); border-bottom-width: 2px; border-radius: 6px; background: #fffdf6; color: var(--ink); font: 600 .9em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; }
@media (max-width: 600px) {
  .shortcuts { margin-top: 3.5rem; }
  .shortcuts thead { display: none; }
  .shortcuts tr, .shortcuts tbody th, .shortcuts td { display: block; width: auto; }
  .shortcuts tbody th { padding-bottom: .2rem; white-space: normal; border-top: 1px solid var(--panel-border); }
  .shortcuts td { padding-top: 0; border-top: 0; }
  .shortcuts tbody tr:first-child th { border-top: 0; }
}

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--panel-border); border-radius: 999px; background: #fffdf6; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.toc a:hover { border-color: var(--accent); }
.shortcuts :focus-visible, chess-button.page-close :focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
