
#device-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(56,189,248,.10), transparent 62%),
    radial-gradient(ellipse 60% 50% at 85% 95%, rgba(99,102,241,.09), transparent 60%),
    #060a13;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dg-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 32px;
  border-radius: 24px;
  background: linear-gradient(168deg, rgba(24,36,56,.97) 0%, rgba(14,21,35,.99) 100%);
  border: 1px solid rgba(125,211,252,.20);
  box-shadow:
    0 1px 0 rgba(255,255,255,.07),
    0 40px 100px rgba(0,0,0,.7),
    0 0 80px rgba(37,99,235,.12);
  text-align: center;
  overflow: hidden;
}
.dg-card-narrow { max-width: 430px; }

.dg-glow {
  position: absolute;
  top: -110px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 220px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.22), transparent 70%);
  pointer-events: none;
}
.dg-glow-warn {
  background: radial-gradient(ellipse at center, rgba(245,158,11,.20), transparent 70%);
}

.dg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #7dd3fc;
  background: rgba(56,189,248,.10);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 999px;
}
.dg-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56,189,248,.9);
  animation: dgPulse 1.8s ease-in-out infinite;
}
@keyframes dgPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.dg-icon {
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.dg-icon svg { width: 32px; height: 32px; }
.dg-icon-warn {
  color: #fbbf24;
  background: rgba(245,158,11,.10);
  border: 1.5px solid rgba(245,158,11,.34);
  box-shadow: 0 0 34px rgba(245,158,11,.22);
}
.dg-icon-safari {
  color: #38bdf8;
  background: rgba(56,189,248,.10);
  border: 1.5px solid rgba(56,189,248,.34);
  box-shadow: 0 0 34px rgba(56,189,248,.22);
}

.dg-title {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .2px;
  color: #e8eefb;
}
.dg-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #a8b6cf;
  text-align: left;
}

.dg-divider {
  height: 1px;
  margin: 26px 0;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.24), transparent);
}

.dg-qr-wrap { margin-bottom: 24px; }
.dg-qr-label {
  font-size: 12.5px;
  color: #6b7a94;
  margin-bottom: 15px;
  letter-spacing: .3px;
}
.dg-qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(148,163,184,.18);
}
.dg-qr-box svg { display: block; border-radius: 4px; }
.dg-qr-fallback { font-size: 12px; color: #64748b; padding: 60px 20px; }

.dg-link-box {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  background: rgba(4,8,16,.6);
  border: 1px solid rgba(148,163,184,.16);
}
.dg-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: 'SF Mono','Menlo','Consolas',monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #7dd3fc;
  word-break: break-all;
  text-align: left;
  background: none;
  border: none;
}
.dg-copy {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #bfdbfe;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(56,189,248,.13);
  border: 1px solid rgba(56,189,248,.32);
  border-radius: 10px;
  transition: background .2s, border-color .2s, color .2s;
}
.dg-copy:hover { background: rgba(56,189,248,.22); border-color: rgba(56,189,248,.55); }
.dg-copy.dg-copied {
  color: #6ee7b7;
  background: rgba(52,211,153,.14);
  border-color: rgba(52,211,153,.42);
}

.dg-foot {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6b7a94;
}

.dg-steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
  text-align: left;
}
.dg-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.65;
  color: #a8b6cf;
}
.dg-step-num {
  flex: 0 0 auto;
  width: 21px; height: 21px;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56,189,248,.13);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 50%;
}

.dg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.dg-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #a8b6cf;
}
.dg-list li::before {
  content: '';
  position: absolute;
  left: 6px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251,191,36,.7);
}
.dg-list li:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  #device-gate { padding: 16px; align-items: flex-start; }
  .dg-card { padding: 32px 22px 26px; border-radius: 20px; margin-top: 8px; }
  .dg-title { font-size: 19px; }
  .dg-desc { font-size: 13.5px; }
  .dg-link-box { flex-direction: column; }
  .dg-copy { width: 100%; justify-content: center; }
  .dg-qr-box svg { width: 160px !important; height: 160px !important; }
}
