:root{
  --beige:#d8cdb0;
  --beige-dark:#b8ac8c;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:'IBM Plex Mono', monospace;
  background:
    radial-gradient(circle at 20% 0%, #2a2a3a 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, #1a2a1a 0%, transparent 50%),
    #0d0d10;
  background-attachment:fixed;
  min-height:100vh;
  color:#e5e0d5;
}

/* IBM logo — striped blue bars */
.ibm-logo{
  font-family:'IBM Plex Mono', monospace;
  font-weight:800;
  font-size:1.8rem;
  letter-spacing:-1px;
  color:#1f5fbf;
  padding:2px 8px;
  background:linear-gradient(
    #1f5fbf 0, #1f5fbf 3px, transparent 3px, transparent 6px,
    #1f5fbf 6px, #1f5fbf 9px, transparent 9px, transparent 12px
  );
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 1px rgba(31,95,191,0.3);
  border:2px solid #1f5fbf;
  border-radius:3px;
}

/* CRT monitor casing */
.crt-case{
  background:linear-gradient(150deg,#3a3a3a,#222);
  border-radius:18px;
  padding:22px 22px 10px;
  box-shadow:0 20px 40px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.05);
  border:1px solid #444;
}
.crt-screen{
  position:relative;
  background:#020a02;
  border-radius:22px / 30px;
  overflow:hidden;
  box-shadow:inset 0 0 60px rgba(0,0,0,0.9);
  aspect-ratio:640/400;
  border:8px solid #111;
}
.crt-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  image-rendering:pixelated;
  filter:saturate(1.2);
}
.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) 2px,
    rgba(0,0,0,0.28) 3px,
    rgba(0,0,0,0.28) 4px
  );
  animation:flicker 0.15s infinite;
}
.crt-glow{
  position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  box-shadow:inset 0 0 90px rgba(40,255,80,0.06);
}
@keyframes flicker{
  0%{ opacity:0.94; }
  50%{ opacity:1; }
  100%{ opacity:0.96; }
}
.crt-brand{
  text-align:center;
  color:#888;
  font-size:9px;
  letter-spacing:2px;
  margin-top:8px;
  text-transform:uppercase;
}

/* beige case panels */
.beige-panel{
  background:linear-gradient(160deg,var(--beige),var(--beige-dark));
  border:1px solid #9a8e6e;
  box-shadow:0 4px 12px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.4);
}

.ctrl-btn{
  color:#fff;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.5px;
  padding:6px 10px;
  border-radius:5px;
  border:none;
  cursor:pointer;
  transition:all 0.1s;
  box-shadow:0 2px 4px rgba(0,0,0,0.3);
}
.ctrl-btn:active{ transform:translateY(1px); }

.led{
  width:9px; height:9px; border-radius:50%;
  display:inline-block;
  transition:all 0.2s;
  border:1px solid rgba(0,0,0,0.3);
}

/* floppy slot */
.floppy-slot{
  border:2px dashed #9a8e6e;
  border-radius:6px;
  padding:14px;
  cursor:pointer;
  background:rgba(255,255,255,0.15);
  transition:all 0.15s;
}
.floppy-slot:hover{ background:rgba(255,255,255,0.28); }
.floppy-drag{
  border-color:#1f5fbf;
  background:rgba(31,95,191,0.15);
  transform:scale(1.01);
}

/* inspector */
.inspector{
  background:#171712;
  border:1px solid #2a2a2a;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}

input[type=range]{
  accent-color:#33ccaa;
}

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:#333; border-radius:4px; }
::-webkit-scrollbar-track{ background:#111; }