/* keylock.css -- S-0000-0354: the "hold Esc to leave" hint shown while
 * navigator.keyboard.lock() is active. Tokens from core.css only, same rule as every
 * other module here (BRIEFING-S.md).
 */

.keylock-hint {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;                 /* below #gone (100): a lost connection still wins */
  background: var(--surface2);
  color: var(--text-strong);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 14px;
  font: var(--ui-fs) var(--font-ui);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  pointer-events: none;
}
.keylock-hint[hidden] { display: none; }

/* light theme only (S-0000-0382): the hint becomes a soft card, same tokens as the
 * menu dropdown in core.css -- dark is untouched, it never matches either selector
 * below (system light with no override, or an explicit data-theme="light"). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .keylock-hint {
    background: var(--surface-card); border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
}
:root[data-theme="light"] .keylock-hint {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
