:root {
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --blue: #3568f5;
  --cyan: #37c6d4;
  --violet: #7357e8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: #071526;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}

.bg-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(7, 21, 38, 0.55) 70%, rgba(7, 21, 38, 0.88) 100%);
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.mark {
  margin: 0 0 0.4rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  box-shadow: 0 12px 40px rgba(53, 104, 245, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mark span {
  font-size: 1.25rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #9ec1ff, #7ef0ff 45%, #c4b5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.message {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 450;
  letter-spacing: 0.01em;
}

.access {
  margin-top: 2.5rem;
  width: min(100%, 20rem);
  border: 0;
}

.access-summary {
  list-style: none;
  cursor: pointer;
  color: rgba(248, 251, 255, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.access-summary::-webkit-details-marker {
  display: none;
}

.access-summary:hover,
.access[open] .access-summary {
  color: rgba(248, 251, 255, 0.75);
}

.access-form {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.access-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(248, 251, 255, 0.18);
  border-radius: 0.65rem;
  background: rgba(7, 21, 38, 0.55);
  color: var(--ink);
  font: inherit;
}

.access-form input:focus-visible {
  outline: 2px solid rgba(53, 104, 245, 0.7);
  outline-offset: 2px;
}

.access-form button {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: linear-gradient(120deg, var(--blue), #4f7cff);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.access-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.access-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #ffb4b4;
}

.access-status[data-ok="true"] {
  color: #9ef0c4;
}

@media (prefers-reduced-motion: reduce) {
  .bg canvas {
    display: none;
  }

  .bg {
    background: radial-gradient(circle at 30% 30%, #1a3a66, #071526 60%);
  }
}
