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

:root {
  --cabinet: #1a1c2c;
  --bezel: #0c0d16;
  --accent: #e53b44;
}

html, body { height: 100%; }

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 65% at 50% -10%, #34365c 0%, transparent 60%),
    linear-gradient(160deg, #14152a 0%, #0a0a14 55%, #050508 100%);
  font-family: "Press Start 2P", monospace;
  color: #e8e8f0;
  overflow: hidden;
  user-select: none;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: linear-gradient(180deg, #2b2d4a, #1a1c2c);
  border: 2px solid #3d4066;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}

.marquee h1 {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffd93d;
  text-shadow: 2px 2px 0 var(--accent), 4px 4px 0 rgba(0,0,0,.5);
}

.badge {
  font-size: 8px;
  padding: 5px 8px;
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.4);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.dot.red    { background: #e53b44; color: #e53b44; }
.dot.yellow { background: #ffd93d; color: #ffd93d; }
.dot.green  { background: #63c74d; color: #63c74d; animation: blink 1.6s infinite; }

@keyframes blink { 50% { opacity: .25; } }

.screen-wrap {
  position: relative;
  padding: 16px;
  background: linear-gradient(180deg, #23253f, var(--bezel) 70%);
  border: 2px solid #3d4066;
  border-radius: 14px;
  box-shadow:
    0 18px 50px rgba(0,0,0,.75),
    inset 0 0 30px rgba(0,0,0,.8);
}

canvas {
  display: block;
  width: 768px;
  height: 720px;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 200px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #5c94fc;
  border-radius: 4px;
}

/* 扫描线 + 玻璃高光 */
.screen-wrap::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 4px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 30%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
}

.panel {
  padding: 10px 18px;
  background: rgba(26,28,44,.85);
  border: 2px solid #3d4066;
  border-radius: 10px;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 8px;
  color: #9aa0c8;
}

kbd {
  display: inline-block;
  font: inherit;
  padding: 3px 5px;
  margin: 0 2px;
  background: #2b2d4a;
  border: 1px solid #4a4d7a;
  border-bottom-width: 3px;
  border-radius: 4px;
  color: #ffd93d;
}
