:root {
  --c64-border: #6c5eb5;
  --c64-blue: #4338a5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--c64-border);
  color: #c8c8ff;
  font-family: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", Menlo, monospace;
}

#stage {
  position: fixed;
  inset: 0;
  background: var(--c64-border);
  overflow: hidden;
}

#stage iframe,
#stage .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: var(--c64-border);
}

.placeholder {
  z-index: 2;
  pointer-events: none;
}

.placeholder[hidden],
iframe[hidden] {
  display: none !important;
}

#debug {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: rgba(12, 8, 28, 0.88);
  color: #d8d0c0;
  padding: 8px 10px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

#debug[hidden] {
  display: none !important;
}

.debug-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#debug button,
#debug select {
  appearance: none;
  background: #1c1c1c;
  color: #d8d0c0;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 6px 8px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

#debug a {
  color: #8a7a58;
  margin-left: auto;
}

.status {
  margin: 6px 0 0;
  min-height: 1.2em;
  color: #8a8a8a;
}

input[type="file"] {
  display: none;
}
