/* Doodad Dude - Under Construction PIN Gate */
html.dd-gate-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

html.dd-gate-locked body > *:not(#ddUnderConstructionGate) {
  filter: blur(18px) brightness(0.6) saturate(80%) !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#ddUnderConstructionGate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(20, 26, 46, 0.94) 0%, rgba(7, 10, 18, 0.98) 100%);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f2f4fa;
}

#ddUnderConstructionGate.unlocked {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dd-gate-box {
  width: 100%;
  max-width: 440px;
  background: rgba(14, 19, 36, 0.96);
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 22px;
  padding: 44px 34px 38px;
  text-align: center;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(255, 90, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: ddGateCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ddGateCardIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dd-gate-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 25px rgba(255, 90, 31, 0.25);
  animation: ddGatePulse 2.5s infinite ease-in-out;
}

@keyframes ddGatePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 90, 31, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 35px rgba(255, 90, 31, 0.4); transform: scale(1.04); }
}

.dd-gate-tag {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ff8a52;
  margin-bottom: 10px;
}

.dd-gate-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px;
}

.dd-gate-desc {
  font-size: 14.5px;
  color: #9aa4bd;
  line-height: 1.55;
  margin: 0 0 28px;
}

.dd-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dd-gate-input-wrap {
  position: relative;
  width: 100%;
}

.dd-gate-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 11, 20, 0.95);
  border: 1.5px solid rgba(116, 170, 255, 0.22);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: #ffffff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: 'JetBrains Mono', monospace, -apple-system, sans-serif;
}

.dd-gate-input:focus {
  border-color: #ff5a1f;
  background: rgba(12, 16, 30, 0.98);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.22), 0 0 20px rgba(255, 90, 31, 0.15);
}

.dd-gate-input.shake {
  animation: ddGateShake 0.4s ease-in-out;
  border-color: #ff453a !important;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.25) !important;
}

@keyframes ddGateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.dd-gate-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff5a1f 0%, #ff8a52 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  color: #ffffff;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 18px rgba(255, 90, 31, 0.38);
}

.dd-gate-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 26px rgba(255, 90, 31, 0.52);
  filter: brightness(1.05);
}

.dd-gate-btn:active {
  transform: translateY(0);
}

.dd-gate-error {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #ff453a;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dd-gate-error.visible {
  opacity: 1;
}
