.old-pc-body {
  background: var(--color-ink);
  color: var(--color-chalk);
  font-family: "Roboto", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.back-link {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 20;
  font-family: "Bangers", "Roboto", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--color-chalk);
  background: var(--color-panel);
  border: 3px solid #000;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  text-decoration: none;
}

.pc-scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 6rem 1.5rem 3rem;
}

.pc-caption {
  max-width: 320px;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
  opacity: 0.8;
}

.crt-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crt-bezel {
  width: min(90vw, 480px);
  background: #000;
  border: 5px solid #000;
  border-radius: 26px;
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 10px 10px 0 #000;
}

.crt-screen {
  position: relative;
  background: #05130a;
  border: 6px solid #100e0a;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #000;
}

.crt-glass {
  position: absolute;
  inset: 0;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  display: flex;
  flex-direction: column;
}

.crt-screen.is-on .crt-glass {
  opacity: 1;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0px,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.crt-output {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 0.4rem;
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #46ffa0;
  text-shadow: 0 0 6px rgba(70, 255, 160, 0.6);
  white-space: pre-wrap;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(70, 255, 160, 0.5) transparent;
}

.crt-output::-webkit-scrollbar {
  width: 5px;
}

.crt-output::-webkit-scrollbar-track {
  background: transparent;
}

.crt-output::-webkit-scrollbar-thumb {
  background: rgba(70, 255, 160, 0.5);
  border-radius: 3px;
}

.crt-input-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.25rem;
  color: #46ffa0;
}

.crt-prompt {
  text-shadow: 0 0 6px rgba(70, 255, 160, 0.6);
}

.crt-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #46ffa0;
  font-family: inherit;
  font-size: inherit;
  text-shadow: 0 0 6px rgba(70, 255, 160, 0.6);
}

.crt-input::placeholder {
  color: rgba(70, 255, 160, 0.4);
}

.crt-link {
  color: #46ffa0;
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(70, 255, 160, 0.6);
  cursor: pointer;
}

.crt-link:hover {
  color: #b6ffd8;
}

.crt-cursor {
  width: 0.55rem;
  height: 1.1rem;
  background: #46ffa0;
  box-shadow: 0 0 6px rgba(70, 255, 160, 0.6);
  animation: crt-blink 1s step-end infinite;
}

@keyframes crt-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.crt-standby {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin: 0;
  font-size: 0.85rem;
  color: #3a3a3a;
  transition: opacity 0.15s ease;
}

.crt-screen.is-on .crt-standby {
  opacity: 0;
  pointer-events: none;
}

.crt-screen.is-booting .crt-glass {
  animation: crt-flicker 0.5s steps(6) 1;
}

.crt-screen.is-glitching .crt-glass {
  animation: crt-glitch 0.15s steps(2) infinite;
}

@keyframes crt-glitch {
  0% {
    transform: translate(0, 0);
    filter: hue-rotate(0deg);
  }

  50% {
    transform: translate(-2px, 1px);
    filter: hue-rotate(40deg);
  }

  100% {
    transform: translate(2px, -1px);
    filter: hue-rotate(-30deg);
  }
}

.crt-bluescreen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #1b3fc4;
  color: #eef1ff;
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 1.4rem;
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.crt-screen.is-crashed .crt-bluescreen {
  opacity: 1;
}

.crt-screen.is-crashed .crt-glass {
  opacity: 0;
}

@keyframes crt-flicker {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  35% {
    opacity: 0.1;
  }

  55% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.crt-brand {
  margin-top: 0.9rem;
  text-align: center;
  font-family: "Bangers", "Roboto", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: white;
}

.crt-stand {
  width: 90px;
  height: 26px;
  background: #000;
  border: 5px solid #000;
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-top: -4px;
}

.crt-power-btn {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Bangers", "Roboto", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--color-chalk);
  background: var(--color-panel);
  border: 4px solid #000;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 #000;
}

.crt-power-led {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7a1f1f;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.6);
}

.crt-power-btn.is-on .crt-power-led {
  background: #4cff6a;
  box-shadow: 0 0 8px rgba(76, 255, 106, 0.8);
}

@media (max-width: 480px) {
  .crt-bezel {
    padding: 1.2rem 1.1rem 1rem;
  }

  .crt-output,
  .crt-input-line {
    font-size: 1.1rem;
  }
}
