/* ============================================================================
   TS ALL-FOR-ONE — PC KEYBOARD HOTKEYS OVERLAY & HELP SHEET
   Scoped strictly under #tshk-root (Ebony Lacquer & Gilded Bronze theme)
   ============================================================================ */

#tshk-root {
  --hk-font: "Be Vietnam Pro", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hk-ebony-0: #140e0a;
  --hk-ebony-1: #1c130d;
  --hk-ebony-2: #291c13;
  --hk-gold: #c99746;
  --hk-gold-hi: #f3d48c;
  --hk-cream: #f5ead6;
  --hk-sand: #c5ae8a;

  position: fixed;
  inset: 0;
  z-index: 9550;
  pointer-events: none;
  font-family: var(--hk-font);
  user-select: none;
}

#tshk-root *, #tshk-root *::before, #tshk-root *::after {
  box-sizing: border-box;
}

/* Compact floating keycap button tucked cleanly to the left of the Font bar (zero overlap) */
.tshk-fab {
  position: fixed;
  top: 112px;
  right: 194px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(24, 16, 11, 0.88);
  border: 1px solid rgba(201, 151, 70, 0.65);
  color: var(--hk-gold-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.tshk-fab:hover {
  transform: translateY(-1px);
  border-color: var(--hk-gold-hi);
  background: linear-gradient(180deg, rgba(64, 43, 27, 0.96) 0%, rgba(30, 20, 13, 0.96) 100%);
}

.tshk-fab-kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(243, 212, 140, 0.16);
  border: 1px solid rgba(243, 212, 140, 0.45);
  font-size: 10.5px;
  line-height: 1.25;
}

/* Modal backdrop */
.tshk-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 7, 4, 0.72);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  padding: 16px;
}

.tshk-backdrop.show {
  display: flex;
}

.tshk-modal {
  width: min(740px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: linear-gradient(180deg, #241810 0%, #150e09 100%);
  border: 1.5px solid var(--hk-gold);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(243, 212, 140, 0.22);
  color: var(--hk-cream);
  overflow: hidden;
}

.tshk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(201, 151, 70, 0.18) 0%, rgba(201, 151, 70, 0.04) 100%);
  border-bottom: 1px solid rgba(201, 151, 70, 0.32);
}

.tshk-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--hk-gold-hi);
  letter-spacing: 0.3px;
}

.tshk-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(201, 151, 70, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hk-gold-hi);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.tshk-close:hover {
  background: rgba(184, 51, 42, 0.45);
  border-color: #f08a82;
}

.tshk-body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .tshk-body {
    grid-template-columns: 1fr;
  }
}

.tshk-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 151, 70, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
}

.tshk-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hk-gold-hi);
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(201, 151, 70, 0.26);
}

.tshk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4.5px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tshk-row:last-child {
  border-bottom: none;
}

.tshk-desc {
  color: var(--hk-cream);
}

.tshk-keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tshk-kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(180deg, #3b2a1c 0%, #24180f 100%);
  border: 1px solid rgba(201, 151, 70, 0.6);
  color: #ffe8ad;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.tshk-sep {
  color: var(--hk-sand);
  font-size: 11px;
}

.tshk-foot {
  padding: 9px 16px;
  border-top: 1px solid rgba(201, 151, 70, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: var(--hk-sand);
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
