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

html, body {
  height: 100%;
  background: #050505;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  min-height: 100dvh;
}

#frame {
  position: relative;
  line-height: 0;
  border: 1px solid #2a5a2a;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.06), inset 0 0 60px rgba(0, 0, 0, 0.9);
  background: #0a0a0a;
}

#screen {
  display: block;
  background: #0a0a0a;
  touch-action: manipulation;
}

#scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 3px,
    rgba(0, 0, 0, 0.16) 4px,
    rgba(0, 0, 0, 0.16) 5px
  );
  mix-blend-mode: multiply;
  opacity: 0.4;
}

#hint {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #2a5a2a;
  text-transform: uppercase;
  user-select: none;
  text-align: center;
  line-height: 1.7;
}

#hint a {
  color: #00cc00;
  text-decoration: none;
  border-bottom: 1px solid #2a5a2a;
}

#hint a:hover { color: #00ff00; }

@media (max-height: 560px) {
  #hint { font-size: 11px; }
  body { gap: 4px; }
}
