:root {
  color-scheme: dark;
  --bg: #07080b;
  --surface: rgba(18, 19, 25, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.58);
  --pink: #ff1493;
  --purple: #8b1cf6;
  --danger: #ff4d5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 20, 147, 0.18), transparent 22rem),
    radial-gradient(circle at 58% 70%, rgba(139, 28, 246, 0.14), transparent 26rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(520px, 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 42px 24px;
}

.open-project {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cover {
  width: min(78vw, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #14161c;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(255, 20, 147, 0.13);
}

.placeholder-cover {
  display: grid;
  place-items: center;
  font-size: clamp(64px, 18vw, 112px);
  font-weight: 950;
  color: rgba(255, 255, 255, 0.44);
}

.brand-name {
  margin: 0 0 -14px;
  color: rgba(247, 247, 251, 0.42);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 2px 0 0;
  font-size: clamp(42px, 13vw, 74px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 950;
}

.open-button,
.primary-action {
  width: min(100%, 360px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  border-radius: 18px;
  color: #07080b;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 46px rgba(255, 20, 147, 0.2);
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
}

.state-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.legal-shell {
  width: min(760px, 100%);
  place-items: start center;
}

.legal-card {
  width: 100%;
  padding: 34px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.legal-card h1 {
  max-width: none;
  margin-top: 10px;
  font-size: clamp(34px, 8vw, 58px);
}

.legal-intro {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.55;
}

.legal-sections {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.legal-sections h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.legal-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.secondary-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.state-card h1 {
  max-width: none;
  font-size: clamp(36px, 9vw, 58px);
}

.brand-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 48px rgba(255, 20, 147, 0.18);
}

.brand-mark span {
  width: 34px;
  height: 34px;
  border: 5px solid #07080b;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(247, 247, 251, 0.36);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.password-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.password-form input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

@media (max-width: 520px) {
  .shell {
    padding: 34px 22px;
  }

  .open-project {
    gap: 22px;
  }

  .cover {
    width: min(82vw, 340px);
    border-radius: 24px;
  }
}
