.frpstat-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(30, 32, 38, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

body.frpstat-gate-locked > *:not(#frpstatGateOverlay) {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.frpstat-gate-panel {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.frpstat-gate-panel h2 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  color: #222;
  text-align: center;
}

.frpstat-gate-panel .frpstat-gate-hint {
  margin: 0 0 14px 0;
  font-size: 0.82rem;
  color: #666;
  text-align: center;
}

#frpstatGatePinDisplay {
  font-family: ui-monospace, monospace;
  font-size: 1.45rem;
  text-align: center;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  color: #333;
}

#frpstatGateKeypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.frpstat-gate-key {
  padding: 12px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  background: #f7f8fa;
  cursor: pointer;
}

.frpstat-gate-key.sub {
  background: #e8ecf4;
  font-size: 0.9rem;
}

#frpstatGateMsg {
  min-height: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #c53030;
  margin-top: 10px;
}
