:root {
  --bg: #071026;
  --card: #0b1220;
  --accent: #fb7185;
  --muted: #9aa4b2;
  --white: #e6eef6;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #002252;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.card {
  width: min(860px, 96%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #22c1c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 18px;
}

.lead {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.kit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width:640px) {
  .kit {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pad {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pad .key {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  margin-top: 8px;
}

.pad .label {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.pad:active,
.pad.active {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  outline: 3px solid rgba(124, 58, 237, 0.12);
}

.pad .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.legend {
  margin-top: 8px;
  color: var(--muted)
}

.small {
  font-size: 13px;
  color: var(--muted)
}