/* The code page: the one screen anyone can see. It names no school and no class. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/gate/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --canvas: #f5f4f0; --surface: #ffffff; --ink: #243247; --ink-2: #526174; --border: #d8dbe0; --control-border: #7a889a;
  --action: #2457c5; --action-pressed: #19449f; --action-soft: #edf3ff;
  --band-a: #2b4bc8; --band-b: #1e3a9f; --band-ink: #ffffff; --band-sub: #c7d2ff;
  --retry: #8a3b22; --retry-bg: #fff2ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121826; --surface: #1b2334; --ink: #edf1f7; --ink-2: #a9b6c8; --border: #2f3a4f; --control-border: #6b7a90;
    --action: #7ea6ff; --action-pressed: #a5c0ff; --action-soft: #1f2c47;
    --band-a: #22357f; --band-b: #172660; --band-sub: #b9c6f5;
    --retry: #ffb59a; --retry-bg: #3a2219;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink);
  font: 17px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.band {
  background: linear-gradient(160deg, var(--band-a), var(--band-b)); color: var(--band-ink);
  padding: calc(28px + env(safe-area-inset-top)) 20px 56px;
}
.band h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.band p { margin: 6px 0 0; color: var(--band-sub); }
main { max-width: 480px; margin: -36px auto 0; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px;
  margin: 0 0 16px; box-shadow: 0 6px 18px rgba(31, 42, 68, 0.08);
}
h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.sub { margin: 0 0 16px; color: var(--ink-2); }
.fine { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--retry-bg); color: var(--retry); font-weight: 600; }
form { display: grid; gap: 12px; }
input {
  width: 100%; min-height: 60px; padding: 8px 12px; border: 2px solid var(--control-border); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 28px; font-weight: 700; text-align: center;
  letter-spacing: 0.28em; text-indent: 0.28em; text-transform: uppercase;
}
input::placeholder { color: var(--border); }
input:focus-visible, button:focus-visible, a.go:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
button, a.go {
  display: block; width: 100%; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 14px;
  background: var(--action); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
@media (prefers-color-scheme: dark) { button, a.go { color: #10182a; } }
button:active, a.go:active { background: var(--action-pressed); }
button[disabled] { opacity: 0.6; }
a.go + a.go { margin-top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
