html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Courier New", monospace;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
}
#wrap {
  position: relative;
  background: #000;
}
#screen {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: default;
}
.scanlines, .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
#wrap.crt .scanlines {
  display: block;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.22) 3px, rgba(0, 0, 0, 0) 4px);
  mix-blend-mode: multiply;
}
#wrap.crt .vignette {
  display: block;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.55) 100%);
}
#wrap.crt #screen {
  filter: contrast(1.08) saturate(1.12);
}

/* ---- Joel Faces panel ---- */
.faces-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.faces-panel.crop { z-index: 11; }
.faces-box {
  background: linear-gradient(#2a1a10, #120a06);
  border: 3px solid #8a6a30;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 120, 0, 0.25);
  color: #e8d8b0;
  padding: 18px 22px;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
}
.faces-box h1 {
  margin: 0 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: 2px;
  font-weight: normal;
  color: #ffd23a;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 120, 0, 0.6);
}
.faces-box p { margin: 0 auto 14px; max-width: 640px; font-size: 13px; line-height: 1.4; color: #c8b890; }
.faces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.face-card {
  background: #0c0604;
  border: 1px solid #5a4020;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.face-card canvas { image-rendering: pixelated; border: 1px solid #3a2810; }
.face-name { font-size: 12px; font-weight: bold; color: #ffd040; }
.faces-box button {
  background: linear-gradient(#b08030, #6a4410);
  color: #fff6d0;
  border: 1px solid #000;
  font: bold 12px "Courier New", monospace;
  padding: 5px 10px;
  cursor: pointer;
  min-width: 80px;
}
.faces-box button:hover { background: linear-gradient(#d0a040, #8a5a18); }
.faces-box button.ghost { background: #2a1a10; color: #b0a080; }
.faces-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: center; }
.crop-canvas { border: 2px solid #8a6a30; cursor: grab; touch-action: none; }
.zoom-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 8px; font-size: 12px; }
.zoom-row input { width: 180px; }
