:root {
  color-scheme: dark;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  font-family: var(--mono);
  background:
    radial-gradient(120% 90% at 18% 8%, #ffd7a3 0%, transparent 58%),
    radial-gradient(90% 70% at 90% 100%, #ff8a3d 0%, transparent 55%),
    linear-gradient(135deg, #ffb347 0%, #f5511e 52%, #b9330f 100%);
  background-attachment: fixed;
}

.terminal {
  width: min(660px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(24, 20, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 70px -24px rgba(96, 26, 0, 0.55);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-amber {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.title {
  flex: 1;
  margin-right: 56px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.screen {
  padding: 40px 32px 32px;
}

.prompt-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.45;
}

.prompt-symbol {
  color: #ffd29c;
  font-weight: 500;
}

.prompt-text {
  word-break: break-word;
}

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 3px;
  background: #fff;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.enter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.enter-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(15px, 3.6vw, 19px);
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  animation: rise 0.45s ease-out both;
  transition: color 0.15s ease;
}

.enter-link:nth-child(2) {
  animation-delay: 0.16s;
}

.enter-link:hover {
  color: #ffd29c;
}

.enter-prompt {
  color: #ffd29c;
}

.enter-arrow {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }

  .enter-link {
    animation: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 28px 20px 24px;
  }

  .title {
    margin-right: 40px;
    font-size: 12px;
  }
}
