:root {
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --gate-bg: #f4f6f9;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #dde3ea;
  --brand: #1a56db;
  --btn-bg: #ffffff;
  --btn-border: #c7cfd9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #121417;
    --card-bg: #1b1f24;
    --gate-bg: #121417;
    --text: #e6e9ee;
    --muted: #9aa5b1;
    --border: #2c333b;
    --brand: #7aa2ff;
    --btn-bg: #242a31;
    --btn-border: #3a424c;
  }
}
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--gate-bg);
  z-index: 10;
}
.gate[hidden] { display: none; }
.gate-card {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.gate-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
}
.gate h1 {
  font-size: 18px;
  margin: 0 0 6px;
}
.gate p { margin: 0 0 18px; }
.gate-muted { color: var(--muted); font-size: 13px; }
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 18px;
  background: var(--btn-bg);
  color: var(--text);
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.google-btn:hover { border-color: var(--brand); }
.gate-link {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
