:root {
  --bg: #0a0d12;
  --bg2: #10141c;
  --teal: #14b8a6;
  --amber: #fbbf24;
  --line: #123;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, #14232b 0%, transparent 55%),
    radial-gradient(circle at 90% 10%, #1a1424 0%, transparent 50%),
    var(--bg);
  color: #cbeae6;
  font-family: 'IBM Plex Mono', monospace;
  min-height: 100vh;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.oric-title { font-family: 'VT323', monospace; letter-spacing: 1px; }

.rainbow-bar {
  height: 6px;
  background: linear-gradient(90deg,
    #000 0%, #f00 16%, #0f0 33%, #ff0 50%, #00f 66%, #f0f 83%, #0ff 100%);
}

.badge {
  background: #0d2a2a;
  border: 1px solid #1f5c58;
  color: #6fe6dc;
  padding: 2px 8px;
  border-radius: 4px;
}
.link-btn {
  background: none;
  border: 1px solid #1f5c58;
  color: #9fe;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.help-panel {
  background: #0c1720;
  border: 1px solid #1f5c58;
  line-height: 1.5;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #2b7d76;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #0c1620, #0a1017);
  transition: all .15s;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--amber);
  background: #10202a;
}
.hidden { display: none; }

/* Screen */
.screen-wrap {
  display: flex;
  justify-content: center;
  background: #05070a;
  border: 2px solid #1a2530;
  border-radius: 8px;
  padding: 14px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.8);
}
.oric-screen {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 240 / 224;
  background: #000;
  border-radius: 4px;
}
.oric-screen.crt {
  box-shadow: 0 0 30px rgba(20,184,166,.25);
  filter: saturate(1.1) contrast(1.05);
  position: relative;
}
.oric-screen.crt {
  background-image: repeating-linear-gradient(
    0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,.15) 3px);
}

/* Retro keys */
.retro-key {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  background: linear-gradient(180deg, #1c2b33, #0e181e);
  color: #9fe6dd;
  border: 1px solid #2b6b64;
  border-bottom: 3px solid #16403c;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .08s;
}
.retro-key:hover { background: linear-gradient(180deg, #244049, #12222a); }
.retro-key:active { transform: translateY(2px); border-bottom-width: 1px; }
.retro-key:disabled { opacity: .4; cursor: not-allowed; }
.retro-key.active { color: var(--amber); border-color: var(--amber); }

/* Virtual keyboard */
.vkbd {
  background: #0b141a;
  border: 1px solid #1a3a38;
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
}
.vkbd-row { display: flex; gap: 4px; margin-bottom: 4px; }
.vkey {
  flex: 1;
  min-width: 34px;
  font-size: 11px;
  padding: 8px 2px;
  background: linear-gradient(180deg, #182830, #0c151b);
  color: #bfeee7;
  border: 1px solid #2a5c57;
  border-bottom: 2px solid #143c38;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  white-space: nowrap;
}
.vkey:active { transform: translateY(1px); background: #244049; }
.vkey-empty { color: #234; cursor: default; border-style: dashed; opacity: .4; }
.vkey-fct { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 8px rgba(251,191,36,.3); }

/* Debug */
.debug-panel {
  background: #0a1218;
  border: 1px solid #1a3a38;
  border-radius: 8px;
  padding: 12px;
  height: fit-content;
}
.dbg-section { border-bottom: 1px solid #16302e; padding: 8px 0; }
.dbg-head { color: var(--amber); font-weight: 700; margin-bottom: 4px; }
.mini-btn {
  background: #12303c; color: #7fe; border: 1px solid #2b6b64;
  border-radius: 4px; padding: 2px 6px; font-size: 10px; cursor: pointer;
}
.mini-btn:hover { background: #1a4450; }
.dbg-input {
  width: 100%; background: #05121a; border: 1px solid #2b6b64;
  color: #9fe; padding: 4px; border-radius: 4px; margin-bottom: 6px;
}
.dump {
  background: #05121a; border: 1px solid #14302e; border-radius: 4px;
  padding: 6px; color: #6fe6dc; font-size: 10px; overflow-x: auto; margin: 0;
}
</parameter>
</invoke>