.desktop-gate {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent, #2563eb) 10%, transparent), transparent 42%),
    var(--gate-bg, #f5f6f8);
  color: var(--gate-text, #111827);
}

html.struct-desktop-gate .desktop-gate {
  display: flex !important;
}

html.struct-desktop-gate body > *:not(.desktop-gate):not(.icon-sprite):not(script) {
  display: none !important;
}

.desktop-gate-card {
  width: min(100%, 420px);
  padding: 32px 28px 28px;
  border: 1px solid var(--gate-border, #e5e7eb);
  border-radius: 20px;
  background: var(--gate-card, #fff);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.desktop-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-gate-brand img {
  width: 36px;
  height: 36px;
}

.desktop-gate-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.desktop-gate-card p {
  margin: 0;
  color: var(--gate-muted, #6b7280);
  font-size: 15px;
  line-height: 1.55;
}

.desktop-gate-qr {
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 24px auto 16px;
  padding: 12px;
  border: 1px solid var(--gate-border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
}

.desktop-gate-qr img,
.desktop-gate-qr canvas {
  display: block;
  width: 216px;
  height: 216px;
}

.desktop-gate-url {
  margin-top: 8px;
  word-break: break-all;
  font-size: 13px;
}

.desktop-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.desktop-gate-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--gate-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.desktop-gate-button.primary {
  border-color: transparent;
  background: var(--accent, #2563eb);
  color: #fff;
}

.desktop-gate-hint {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
}

.desktop-gate-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent, #2563eb);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-appearance="light"]) .desktop-gate {
    --gate-bg: #090b10;
    --gate-card: #11151d;
    --gate-text: #f3f4f6;
    --gate-muted: #9ca3af;
    --gate-border: #2a3140;
  }
}

html[data-appearance="dark"] .desktop-gate {
  --gate-bg: #090b10;
  --gate-card: #11151d;
  --gate-text: #f3f4f6;
  --gate-muted: #9ca3af;
  --gate-border: #2a3140;
}
