:root {
  --ink: #161616;
  --ours: #009a36;
  --yel: #d49400;
  --red: #e53935;
  --mute: #7a7a7a;
  --gate-col: min(248px, 58%);
}
html, body.login-universe {
  margin: 0;
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.login-universe {
  display: block;
  place-items: unset;
  background: #fff;
}
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.gate {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 82vmin);
  height: min(420px, 82vmin);
  border-radius: 50%;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e6e6e6;
  padding: 44px 0 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.gate-brand,
.gate-count,
.gate-sub,
.gate label,
.gate button[type="submit"],
.login-error {
  width: var(--gate-col);
  max-width: 248px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.gate-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
  text-align: center;
  justify-content: center;
}
.gate-count {
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1;
}
.gate-sub {
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: #444;
  margin: 0 0 2px;
  max-width: var(--gate-col);
}
.gate label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: left;
}
.gate input {
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 8px 14px;
  font: 15px/1.2 system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.gate input:focus {
  outline: none;
  border-color: #bbb;
}
.gate button[type="submit"] {
  margin-top: 2px;
  border: 1.5px solid #161616;
  background: #161616;
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font: 600 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
.gate button[type="submit"]:hover { background: #2a2a2a; }
.login-error {
  background: #fdecec;
  color: #9b2c2c;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  min-height: 1.9em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-error.is-empty {
  visibility: hidden;
  background: transparent;
  min-height: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}
.login-demo {
  margin: 2px 0 0;
  text-align: center;
  color: #9a9a9a;
  font-size: 11px;
}
.login-demo code { font-size: 11px; }
.legend {
  position: fixed;
  left: 50%;
  top: calc(50% + min(210px, 41vmin) + 36px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #666;
  pointer-events: none;
  white-space: nowrap;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.legend .ok { background: var(--ours); }
.legend .mid { background: var(--yel); }
.legend .no { background: var(--red); }
.ways {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e6e6e6;
  padding: 7px;
  backdrop-filter: blur(10px);
}
.ways button {
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #222;
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.ways button.on {
  background: #161616;
  color: #fff;
  border-color: #161616;
}
.ways-note {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 12px;
  color: #777;
  pointer-events: none;
}
