/* ============================================================
   bootmaker.css — BootMaker toy app (FOUNDATION STUB)
   Owned by the `bootmaker` agent — expand freely below.
   Foundation provides: desk glyph, springboard tile, body sizing.
   ============================================================ */

/* desk icon glyph — the happy-Mac ":)" from the boot CRT */
.desk-icon .glyph.bm-glyph {
  font-family: var(--display);
  font-size: 26px;
  color: var(--green);
  text-shadow: 0 0 8px rgba(57, 255, 110, 0.7);
}

/* springboard tile — dark CRT with a green happy-Mac face */
.sb-icon .tile-bm {
  background: radial-gradient(120% 120% at 50% 30%, #12321e, #05130b 72%);
  color: var(--green);
  font-family: var(--display);
  text-shadow: 0 0 8px rgba(57, 255, 110, 0.7);
}

/* window/app body — boot stage workspace (glitchpic-body pattern) */
.bm-body {
  padding: 0;
  border-top: none;
  height: 560px;
  min-height: 440px;
  max-height: calc(100dvh - 130px);
  overflow: hidden;
  background: #0b0b10;
}
.bm-app-body {
  padding: 0;
  overflow: hidden;
  background: #0b0b10;
}

/* ============================================================
   BootMaker UI — stage canvas + control panel
   ============================================================ */

/* two-column on desktop window, stacked on the phone app */
.bm-wrap {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 12px;
  overflow: hidden;
}

/* the 1080² stage, scaled to fit its box (square, letterboxed) */
.bm-stage {
  flex: 0 0 auto;
  align-self: flex-start;
  width: min(52%, 360px);
  aspect-ratio: 1 / 1;
  background: #050d07;
  border: 2px solid var(--green-dim, #1a7a38);
  box-shadow: 0 0 18px rgba(57, 255, 110, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bm-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

/* control panel */
.bm-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-y: auto;
  padding-right: 2px;
  color: var(--text, #b8ffcc);
  font-family: var(--mono, 'Share Tech Mono', monospace);
}

.bm-field { display: flex; flex-direction: column; gap: 4px; }
.bm-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim, #4a8a5a);
}

.bm-input,
.bm-log-input {
  width: 100%;
  background: #071009;
  border: 1px solid var(--green-dim, #1a7a38);
  color: var(--green, #39ff6e);
  font-family: var(--mono, 'Share Tech Mono', monospace);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 8px;
  border-radius: 3px;
  outline: none;
}
.bm-input {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
}
.bm-input:focus,
.bm-log-input:focus {
  border-color: var(--green, #39ff6e);
  box-shadow: 0 0 8px rgba(57, 255, 110, 0.3);
}
.bm-input::placeholder { color: var(--text-dim, #4a8a5a); }

/* face picker */
.bm-faces { flex-direction: column; }
.bm-face-btns { display: flex; gap: 8px; }
.bm-face-btn {
  flex: 1;
  background: radial-gradient(120% 120% at 50% 30%, #12321e, #05130b 72%);
  border: 1px solid var(--green-dim, #1a7a38);
  color: var(--green-dim, #1a7a38);
  font-family: var(--mono, 'Share Tech Mono', monospace);
  font-size: 18px;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.bm-face-btn:hover { color: var(--green, #39ff6e); border-color: var(--green, #39ff6e); }
.bm-face-btn.active {
  color: var(--green, #39ff6e);
  border-color: var(--green, #39ff6e);
  box-shadow: 0 0 10px rgba(57, 255, 110, 0.4);
  text-shadow: 0 0 8px rgba(57, 255, 110, 0.7);
}

/* editable log lines */
.bm-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 168px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--green-faint, #0d2e18);
  border-radius: 4px;
}
.bm-log-row { display: flex; align-items: center; gap: 6px; }
.bm-mark {
  flex: 0 0 auto;
  width: 14px;
  text-align: center;
  font-size: 12px;
}
.bm-mark.ok { color: var(--green, #39ff6e); }
.bm-mark.err { color: var(--red, #ff2244); }
.bm-mark.none { color: var(--text-dim, #4a8a5a); }
.bm-log-input { font-size: 11px; letter-spacing: 0.5px; padding: 4px 6px; }

/* action buttons */
.bm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}
.bm-btn {
  background: #0a1a10;
  border: 1px solid var(--green-dim, #1a7a38);
  color: var(--green, #39ff6e);
  font-family: var(--mono, 'Share Tech Mono', monospace);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 9px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.bm-btn:hover {
  background: #0f2a19;
  border-color: var(--green, #39ff6e);
  box-shadow: 0 0 8px rgba(57, 255, 110, 0.25);
}
.bm-btn:active { transform: translateY(1px); }
.bm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.bm-btn-primary {
  background: var(--green-dim, #1a7a38);
  color: #04120a;
  border-color: var(--green, #39ff6e);
  font-weight: 700;
}
.bm-btn-primary:hover { background: var(--green, #39ff6e); }

/* status line */
.bm-status {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim, #4a8a5a);
  text-transform: uppercase;
  min-height: 14px;
  margin-top: auto;
  padding-top: 4px;
}

/* ---- phone app: stack stage over controls ---- */
.bm-app-body .bm-wrap {
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-y: auto;
}
.bm-app-body .bm-stage {
  width: 100%;
  max-width: 320px;
  align-self: center;
}
.bm-app-body .bm-panel { overflow: visible; }
.bm-app-body .bm-log-list { max-height: none; }

/* reduced motion: no CRT-y transitions (canvas jumps to final frame) */
@media (prefers-reduced-motion: reduce) {
  .bm-face-btn, .bm-btn { transition: none; }
}
