/* Amber CRT terminal palette */
:root {
  --bg: #0b0700;          /* near-black with a warm tint */
  --bg-glow: #1a1000;     /* faint phosphor wash in the center */
  --amber: #ffb000;       /* classic amber phosphor */
  --amber-dim: #b87800;   /* secondary text */
  --amber-deep: #6b4400;  /* borders and subtle lines */
  --glow: rgba(255, 176, 0, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Silkscreen", monospace;
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.8;
  color: var(--amber);
  background: radial-gradient(ellipse at center, var(--bg-glow) 0%, var(--bg) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

/* Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  z-index: 10;
}

/* Vignette and screen curvature feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
  animation: flicker 6s infinite;
  z-index: 11;
}

.screen {
  width: min(720px, 100%);
  padding: 40px 32px;
  border: 2px solid var(--amber-deep);
  border-radius: 14px;
  background: rgba(255, 176, 0, 0.03);
  box-shadow:
    0 0 40px rgba(255, 176, 0, 0.12),
    inset 0 0 60px rgba(255, 176, 0, 0.06);
}

.dim {
  color: var(--amber-dim);
  margin: 0;
}

.boot {
  margin-bottom: 32px;
  font-size: 0.75em;
  letter-spacing: 0.08em;
}

.title {
  margin: 0 0 32px;
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-shadow:
    0 0 6px var(--glow),
    0 0 18px var(--glow);
}

.prompt p {
  margin: 0;
  text-shadow: 0 0 5px var(--glow);
}

.caret {
  color: var(--amber-dim);
  margin-right: 0.6em;
}

/* Blinking block cursor */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  margin-left: 0.4em;
  vertical-align: text-bottom;
  background: var(--amber);
  box-shadow: 0 0 8px var(--glow);
  animation: blink 1s steps(1) infinite;
}

.foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px dashed var(--amber-deep);
  font-size: 0.7em;
  letter-spacing: 0.08em;
}

::selection {
  background: var(--amber);
  color: var(--bg);
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.94; }
  94%      { opacity: 1; }
  97%      { opacity: 0.96; }
}

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

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