html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.crt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 340px);
  margin: 0;
}

.crt__bezel {
  box-sizing: border-box;
  padding: 12px;
  background: #17141a;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.crt__screen {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: clamp(112px, 58vh, 196px);
  background: #0d1220;
  border-radius: 8px;
}

.crt__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px;
  text-align: center;
}

.crt__title {
  margin: 0;
  color: #fff7e6;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: clamp(16px, 4.2vh, 22px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 247, 230, 0.35);
}

.crt__sub {
  margin: 0;
  color: rgba(255, 247, 230, 0.82);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 500;
  font-size: clamp(10px, 2.6vh, 12px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.crt__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 247, 230, 0.08) 28%, rgba(255, 247, 230, 0.14) 50%, rgba(255, 247, 230, 0.08) 72%, transparent);
  animation-name: crtBand;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.crt__lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(23, 20, 26, 0.38) 0 2px, transparent 2px 4px);
  background-size: 100% 4px;
}

.crt__vig {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse 130% 105% at 50% 46%, transparent 40%, rgba(23, 20, 26, 0.18) 64%, rgba(23, 20, 26, 0.55) 100%);
}

.crt__cap {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@keyframes crtBand {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(500%);
  }
}
@media (max-width: 340px) {
  .crt {
    gap: 4px;
  }
  .crt__bezel {
    padding: 8px;
  }
  .crt__cap {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crt__band {
    animation: none !important;
  }
}
