/* Settings › hotkeys, Hotkeys.dc.html (hk-*), and the "?" cheat card over any page
   (HotkeysCardDesktop). Keyboard-only, so there's no phone take. Colours are roles, so
   dark mode and custom themes recolour it. */

/* ---- keycaps ---- */
.hk-keys { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hk-cap { font-family: var(--font-hand); font-size: 14.5px; line-height: 1; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; box-sizing: border-box; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 7px 9px 7px 8px; background: var(--paper); color: var(--ink); white-space: nowrap; }
.hk-cap.off { color: var(--ink-faint); border-color: color-mix(in srgb, var(--ink-faint) 60%, transparent); text-decoration: line-through; }
.hk-w { font-size: 13.5px; color: var(--ink-soft); padding: 0 2px; }
.hk-note .hk-cap, .hk-cc-head .hk-cap { height: 24px; min-width: 24px; font-size: 13px; vertical-align: 1px; }

/* ---- the section ---- */
.hk-wrap { font-size: 16px; line-height: 1.3; }
.hk-note { display: flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 18px; background: var(--hi-yellow); border: 2px solid var(--line); border-radius: 6px 14px 8px 12px; box-shadow: 3px 4px 0 color-mix(in srgb, var(--line) 18%, transparent); rotate: -.4deg; font-size: 15px; }
.hk-note > svg { flex-shrink: 0; }

.hk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.hk-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hk-card { border: 2.5px dashed var(--ink-faint); border-radius: 12px 9px 13px 8px; background: var(--surface); padding: 2px 18px 6px; min-width: 0; }
.hk-card.yours { border: 2.5px solid var(--line); box-shadow: 3px 4px 0 color-mix(in srgb, var(--line) 18%, transparent); }
.hk-h { font-family: var(--font-marker); font-weight: 700; font-size: 23px; margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.hk-h small { font-family: var(--font-hand); font-weight: 400; font-size: 14px; color: var(--ink-soft); margin-left: auto; white-space: nowrap; }
.hk-sub { font-family: var(--font-marker); font-weight: 700; font-size: 19px; color: var(--ink-soft); margin: 10px 0 0; }

.hk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 46px; padding: 3px 0; border-bottom: 2px dashed color-mix(in srgb, var(--line) 12%, transparent); }
.hk-row:last-child { border-bottom: none; }
.hk-card.yours .hk-row { min-height: 54px; }
.hk-nm { flex: 1; min-width: 140px; font-size: 16.5px; line-height: 1.15; }
.hk-nm small { display: block; font-size: 13.5px; color: var(--ink-soft); }
.hk-grow { flex: 1; min-width: 0; }

.hk-set { font: inherit; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 130px; padding: 2px 10px; box-sizing: border-box; border: 2px solid var(--line); border-radius: 10px 14px 10px 12px; background: var(--paper); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.hk-set:hover { box-shadow: 2px 2px 0 var(--line); transform: translate(-1px, -1px); }
.hk-set.empty { border-style: dashed; color: var(--ink-soft); }
.hk-set.listen { background: var(--hi-yellow); border-style: solid; color: var(--gray-900); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi-yellow) 45%, transparent); }
.hk-set.bad { border-color: var(--danger); }
.hk-set .hk-cap { height: 26px; min-width: 26px; font-size: 14px; }
.hk-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; background: none; color: var(--ink-soft); cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.hk-x:hover { background: color-mix(in srgb, var(--line) 7%, transparent); color: var(--ink); }
.hk-gap { width: 36px; flex-shrink: 0; }

.hk-fold { flex-basis: 100%; margin: 0 0 4px; padding-left: 14px; font-size: 14px; color: var(--ink-soft); position: relative; }
.hk-fold::before { content: ""; position: absolute; left: 2px; top: -2px; width: 8px; height: 12px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-bottom-left-radius: 6px; }
.hk-delay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hk-delay .sg-inp { width: auto; }
.hk-clash { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 6px; padding: 8px 12px; background: color-mix(in srgb, var(--danger) 12%, var(--paper)); border: 2px solid var(--danger); border-radius: 8px 12px 9px 11px; font-size: 14.5px; }
.hk-clash span { flex: 1; min-width: 180px; }
.hk-tg { min-height: 54px; }

/* ---- the cheat card: press ? anywhere ---- */
.hk-scrim { position: fixed; inset: 0; z-index: 420; border: none; padding: 0; background: color-mix(in srgb, var(--gray-900) 42%, transparent); cursor: pointer; }
.hk-pop { position: fixed; z-index: 421; left: 50%; top: 50%; translate: -50% -50%; width: 1200px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); overflow: auto; box-sizing: border-box; padding: 22px 28px 18px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--line); border-radius: 12px 18px 14px 16px / 16px 12px 18px 14px; box-shadow: 6px 7px 0 var(--line); font-size: 16px; line-height: 1.3; outline: none; }
.hk-cc-head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.hk-cc-head h2 { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 40px; line-height: 1; }
.hk-cc-head p { margin: 0; flex: 1; font-size: 14.5px; color: var(--ink-soft); }
.hk-cc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 26px; }
.hk-cc-col { min-width: 0; }
.hk-cc .hk-sub { margin-top: 0; }
.hk-cc .hk-row { min-height: 36px; padding: 1px 0; flex-wrap: nowrap; }
.hk-cc .hk-nm { font-size: 15px; min-width: 0; }
.hk-cc .hk-cap { height: 25px; min-width: 25px; font-size: 13.5px; }
.hk-none { margin: 6px 0; font-size: 14.5px; color: var(--ink-soft); }
.hk-cc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 2px dashed color-mix(in srgb, var(--line) 15%, transparent); font-size: 14.5px; color: var(--ink-soft); }
.hk-cc-foot a { color: var(--link-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
