* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #111;
}

.mock {
  position: relative;
  width: min(1400px, 100%);
  aspect-ratio: var(--w) / var(--h);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  background: var(--bg) center / cover no-repeat;
}

.hit {
  position: absolute;
  border: 0;
  background: rgba(0,0,0,0); /* invisible click layer */
  cursor: pointer;
}
.hit:focus { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }

.input {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0); /* invisible */
  outline: none;
  font-size: 16px;
}

.select {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0); /* invisible */
  outline: none;
  font-size: 16px;
  appearance: none;
}

.debug .hit, .debug .input, .debug .select {
  background: rgba(0, 255, 255, 0.18); /* turn on to see placements */
  outline: 1px dashed rgba(0,255,255,.8);
}

.hit {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  color: transparent;
}

.modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 50;
}

.hidden { display: none; }

.modal-card {
  width: min(520px, 92%);
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.modal-card h2 { margin: 0 0 8px; font-size: 18px; }
.modal-card p { margin: 0 0 12px; color: #444; font-size: 14px; }

.modal-card input[type="file"]{
  width: 100%;
  margin: 8px 0 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  border: 1px solid #d0d0d0;
  background: #f7f7f7;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.modal-btn.primary {
  background: #1f2a56;
  color: #fff;
  border-color: #1f2a56;
}

.file-label {
  display: block;
  font-size: 13px;
  color: #333;
  margin: 10px 0 12px;
}
.file-label input[type="file"]{
  display: block;
  width: 100%;
  margin-top: 6px;
}
