.mod-keypad .keypad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
}

.mod-keypad .keypad-key {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px 4px 4px;
  border: 2px solid #8b8576;
  border-radius: 4px;
  background: linear-gradient(#f4efe0, #ddd6c2);
  color: var(--c-black, #111);
  cursor: pointer;
  box-shadow: 0 4px 0 #6f6a5d, 0 5px 6px rgba(0, 0, 0, 0.5);
  transition: transform 50ms ease, box-shadow 50ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.mod-keypad .keypad-key:active,
.mod-keypad .keypad-key.is-pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6f6a5d, 0 2px 3px rgba(0, 0, 0, 0.5);
}

.mod-keypad .keypad-key:focus-visible {
  outline: 3px solid var(--c-yellow, #f5d000);
  outline-offset: 2px;
}

.mod-keypad .keypad-light {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 22px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--led-off, #2a2a2a);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mod-keypad .keypad-key.is-pressed .keypad-light {
  background: var(--c-green, #2bd14a);
  box-shadow: 0 0 6px var(--c-green, #2bd14a);
}

.mod-keypad .keypad-key.is-wrong .keypad-light {
  background: var(--c-red, #d0281f);
  box-shadow: 0 0 6px var(--c-red, #d0281f);
}

.mod-keypad .keypad-glyph {
  font-family: var(--font-symbols, 'Noto Sans', 'Segoe UI Symbol', 'DejaVu Sans', sans-serif);
  font-size: 40px;
  line-height: 1;
  pointer-events: none;
}
