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

body {
  background: #111;
  font-family: 'IBM Plex Mono', monospace;
  color: #c8b89a;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    radial-gradient(ellipse at center, #1a1510 0%, #0a0804 100%);
  pointer-events: none;
  z-index: -1;
}

.crt-bezel {
  background: linear-gradient(145deg, #5c4a32 0%, #3d2e1a 30%, #2a1f10 70%, #1a1208 100%);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 
    0 0 0 3px #1a1208,
    0 0 0 6px #3d2e1a,
    inset 0 2px 8px rgba(0,0,0,0.6),
    0 12px 40px rgba(0,0,0,0.8);
  position: relative;
}

.crt-bezel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,220,160,0.08);
  pointer-events: none;
}

.crt-inner {
  background: #000;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    inset 0 0 8px rgba(0, 255, 65, 0.05);
}

.crt-screen-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.crt-screen-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  border-radius: 8px;
}

.crt-screen-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
}

#apple1-canvas {
  display: block;
  border-radius: 8px;
  image-rendering: pixelated;
}

.screen-glow {
  box-shadow: 
    0 0 60px rgba(0, 255, 65, 0.08),
    0 0 120px rgba(0, 255, 65, 0.04);
}

.retro-btn {
  font-family: 'IBM Plex Mono', monospace;
  background: linear-gradient(180deg, #5a4a3a 0%, #3a2a1a 100%);
  color: #ddd0b8;
  border: 2px solid #2a1a0a;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.1s;
}

.retro-btn:hover {
  background: linear-gradient(180deg, #6a5a4a 0%, #4a3a2a 100%);
}

.retro-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.retro-btn-red {
  background: linear-gradient(180deg, #8a3030 0%, #5a1818 100%);
  border-color: #3a0808;
}

.retro-btn-red:hover {
  background: linear-gradient(180deg, #9a4040 0%, #6a2828 100%);
}

.retro-btn-green {
  background: linear-gradient(180deg, #2a6a2a 0%, #184a18 100%);
  border-color: #083a08;
}

.retro-btn-green:hover {
  background: linear-gradient(180deg, #3a7a3a 0%, #285a28 100%);
}

.retro-input {
  font-family: 'IBM Plex Mono', monospace;
  background: #1a1a1a;
  color: #33ff33;
  border: 2px solid #3a2a1a;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 13px;
  outline: none;
}

.retro-input:focus {
  border-color: #5a4a3a;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.15);
}

.led-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.led-green {
  background: #33ff33;
  box-shadow: 0 0 6px #33ff33, inset 0 1px 2px rgba(0,0,0,0.3);
}

.led-red {
  background: #ff3333;
  box-shadow: 0 0 6px #ff3333, inset 0 1px 2px rgba(0,0,0,0.3);
}

.led-off {
  background: #333;
}

.panel-section {
  background: linear-gradient(180deg, #2a2218 0%, #1e1810 100%);
  border: 1px solid #3a2a1a;
  border-radius: 6px;
  padding: 12px;
}

.apple-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #8a7a5a;
  letter-spacing: 3px;
}

.status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #33ff33;
}

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

.mobile-warning {
  display: none;
}

@media (max-width: 768px) {
  .mobile-warning {
    display: block;
    background: #2a1a0a;
    border: 1px solid #5a4a3a;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    color: #ddd0b8;
  }
}

.footer-link {
  color: #5a4a3a;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #8a7a5a;
}

textarea.retro-input {
  resize: vertical;
  min-height: 50px;
}