:root { color-scheme: light; --canvas: #f5f5f7; --card: #ffffff; --text: #1d1d1f; --muted: #86868b; --field: rgba(120, 120, 128, 0.12); --blue: #007aff; --ring: rgba(0, 122, 255, 0.35); --err: #d70015; --shadow: 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 30px rgba(0, 0, 0, 0.06); }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --canvas: #1c1c1e; --card: #2c2c2e; --text: #f5f5f7; --muted: #98989d; --field: rgba(120, 120, 128, 0.24); --blue: #0a84ff; --ring: rgba(10, 132, 255, 0.5); --err: #ff6961; --shadow: none; }
}
html, body.gate { background: var(--canvas); }
body.gate {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; color: var(--text); letter-spacing: -0.01em;
}
body.gate main { width: min(340px, calc(100vw - 32px)); background: var(--card); border-radius: 18px; padding: 36px 28px 28px; box-sizing: border-box; text-align: center; box-shadow: var(--shadow); }
body.gate main::before { content: ""; display: block; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 17px; box-shadow: 0 8px 24px rgba(20, 20, 31, 0.25); background: url(/mark.svg) center / contain no-repeat; }
body.gate h1 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
body.gate p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 20px; }
body.gate p.err { color: var(--err); font-weight: 500; }
body.gate label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.gate input { width: 100%; box-sizing: border-box; height: 40px; border: 0; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; margin-bottom: 10px; background: var(--field); color: var(--text); text-align: center; outline: none; }
body.gate input:focus { box-shadow: 0 0 0 3.5px var(--ring); }
body.gate button { width: 100%; height: 40px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
body.gate button:hover { filter: brightness(1.08); }
body.gate pre { background: var(--field); border-radius: 10px; padding: 12px; font-size: 12px; overflow-x: auto; text-align: left; }
