.startup-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}

.startup-card {
  width: min(100%, 620px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(120, 255, 236, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(120, 255, 236, 0.09), transparent 38%),
    rgba(0, 0, 0, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
  color: var(--text-emerald-body);
  font-family: var(--font-ui);
  font-size: var(--type-body);
}

.startup-age-card {
  display: grid;
  gap: 22px;
  width: min(100%, 500px);
  text-align: center;
}

.startup-cooldown-card {
  gap: 18px;
  width: min(100%, 560px);
  text-align: center;
}

.startup-cooldown-card:not([hidden]) {
  display: grid;
}

.startup-cooldown-message {
  margin: 0;
  color: var(--text-emerald-primary);
  font-size: var(--type-body);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.startup-brand {
  margin: 0;
  color: var(--text-emerald-solid);
  font-size: var(--type-eyebrow);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.startup-card h1 {
  margin: 0;
  color: var(--text-emerald-solid);
  font-size: var(--type-display);
  line-height: 1.08;
  text-align: center;
}

.startup-age-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.startup-no-button {
  background: rgba(159, 83, 43, 0.9);
}

.startup-denied-message {
  margin: -4px 0 0;
  color: var(--text-emerald-secondary);
  line-height: 1.45;
}

.startup-rules-card {
  grid-template-rows: minmax(0, 1fr) max-content;
  gap: 18px;
  padding: 12px 10px 14px 20px;
  overflow: hidden;
}

.startup-rules-card:not([hidden]) {
  display: grid;
}

.startup-scroll {
  min-height: 0;
  padding: 10px 16px 10px 2px;
  outline: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--emerald) rgba(159, 83, 43, 0.38);
  scrollbar-width: thin;
}

.startup-scroll::-webkit-scrollbar {
  width: 10px;
}

.startup-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(159, 83, 43, 0.32);
}

.startup-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(159, 83, 43, 0.32);
  border-radius: 999px;
  background: var(--emerald);
}

.startup-scroll::-webkit-scrollbar-thumb:hover {
  background: #b4fff5;
}

.startup-scroll h1 {
  margin-top: 7px;
  text-align: left;
}

#rulesGateTitle {
  font-size: var(--type-section-title);
  line-height: 1.2;
}

.startup-scroll h2 {
  margin: 22px 0 9px;
  color: var(--text-emerald-solid);
  font-size: var(--type-section-title);
  line-height: 1.2;
}

.startup-scroll p,
.startup-list {
  color: var(--text-emerald-body);
  font-size: var(--type-body-compact);
  line-height: 1.48;
}

.startup-scroll .startup-brand {
  margin: 0 0 8px;
  color: var(--text-emerald-solid);
  font-size: var(--type-eyebrow);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.startup-scroll p {
  margin: 9px 0;
}

.startup-scroll .startup-lead {
  color: var(--text-emerald-primary);
}

.startup-sequence-card .startup-fine-print,
.startup-sequence-card .startup-fine-print p {
  color: var(--text-emerald-muted);
  font-size: var(--type-small);
  line-height: 1.4;
}

.startup-sequence-card .startup-important {
  color: var(--text-emerald-primary);
}

.startup-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 23px;
}

ol.startup-list {
  list-style-type: decimal;
}

.startup-list li::marker {
  color: var(--emerald);
  font-weight: 900;
}

.startup-next-button {
  width: calc(100% - 10px);
  min-height: 48px;
  justify-self: center;
}

@media (max-width: 520px) {
  .startup-gate {
    padding: 10px;
  }

  .startup-card {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .startup-age-card {
    gap: 18px;
    padding: 22px 16px;
  }

  .startup-cooldown-card {
    gap: 14px;
    padding: 20px 16px;
  }

  .startup-rules-card {
    gap: 12px;
    padding: 9px 7px 10px 14px;
  }

  .startup-scroll {
    padding: 8px 11px 8px 0;
  }

  .startup-scroll p,
  .startup-list {
    font-size: var(--type-body-compact);
    line-height: 1.4;
  }

  .startup-sequence-card .startup-fine-print,
  .startup-sequence-card .startup-fine-print p {
    font-size: var(--type-caption);
  }

  .startup-scroll h2 {
    margin-top: 18px;
  }

  .startup-next-button {
    width: calc(100% - 7px);
    min-height: 44px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .startup-gate {
    padding: 6px;
  }

  .startup-card {
    max-height: calc(100dvh - 12px);
  }

  .startup-age-card {
    gap: 10px;
    padding: 12px 20px;
  }

  .startup-cooldown-card {
    gap: 7px;
    padding: 9px 16px;
  }

  .startup-cooldown-card h1 {
    font-size: var(--type-modal-title);
  }

  .startup-cooldown-message {
    font-size: var(--type-body-compact);
    line-height: 1.25;
  }

  .startup-age-card h1 {
    font-size: var(--type-display);
  }

  .startup-rules-card {
    width: min(100%, 760px);
    gap: 7px;
    padding: 7px 7px 7px 14px;
  }

  .startup-scroll {
    padding-block: 4px;
  }

  .startup-scroll h1 {
    font-size: var(--type-modal-title);
  }

  #rulesGateTitle {
    font-size: var(--type-section-title);
  }

  .startup-scroll h2 {
    margin: 12px 0 5px;
    font-size: var(--type-section-title);
  }

  .startup-scroll p,
  .startup-list {
    font-size: var(--type-body);
    line-height: 1.3;
  }

  .startup-brand {
    font-size: var(--type-eyebrow);
  }

  .startup-list {
    gap: 4px;
  }

  .startup-next-button {
    min-height: 34px;
  }
}

@media (max-height: 300px) {
  .startup-gate {
    padding: 4px;
  }

  .startup-card {
    max-height: calc(100dvh - 8px);
  }

  .startup-cooldown-card {
    gap: 4px;
    padding: 6px 10px;
  }

  .startup-cooldown-card h1 {
    font-size: var(--type-section-title);
  }

  .startup-cooldown-card .startup-brand {
    font-size: var(--type-caption);
  }

  .startup-cooldown-message {
    font-size: var(--type-caption);
    line-height: 1.15;
  }

  .startup-cooldown-card .startup-next-button {
    min-height: 30px;
  }
}
