/* Dor — DS-023 · TheLayoutLoft Parts Line
   Skin A: telemetry tether — amber while dodging, emerald on lock.
   All .dor- prefixed. */
.dor {
  font:400 14px/1.55 ui-sans-serif,system-ui,sans-serif; color:#F8FAFC;
}
.dor *,.dor *::before,.dor *::after { box-sizing:border-box; margin:0; }

.dor-form { display:flex; flex-direction:column; gap:12px; margin-bottom:6px; }
.dor-form input {
  padding:11px 14px; border-radius:10px; font:400 13.5px/1.4 inherit;
  background:#0D1017; border:1px solid rgba(255,255,255,.1);
  color:#F8FAFC; outline:none; transition:border-color .2s;
}
.dor-form input:focus { border-color:#F59E0B; }
.dor-form input.dor-bad { border-color:rgba(239,68,68,.6); }
.dor-form input::placeholder { color:#525A6E; }

/* arena = the playground where the button dodges */
.dor-arena {
  position:relative; height:120px; overflow:hidden;
}
.dor-line { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.dor-path {
  fill:none; stroke:#64748B; stroke-width:1.6; stroke-dasharray:5 5;
  transition:stroke .3s, stroke-dasharray .3s;
}
[data-dor-locked="1"] .dor-path { stroke:#10B981; stroke-dasharray:none; }

.dor-btn {
  position:absolute; left:50%; bottom:12px; margin-left:-62px;
  width:124px; padding:12px 0; border-radius:10px; cursor:pointer;
  font:700 13px/1 inherit; text-align:center;
  background:#151923; color:#C7CDDC;
  border:1px solid #334155;
  transition:transform .22s cubic-bezier(.34,1.56,.64,1),
             background .25s, border-color .25s, color .25s;
}
.dor-btn:disabled { cursor:not-allowed; opacity:.85; }
[data-dor-locked="1"] .dor-btn {
  background:linear-gradient(135deg,#0D9488,#047857); color:#fff;
  border-color:rgba(52,211,153,.5);
}
[data-dor-locked="1"] .dor-btn:hover { filter:brightness(1.12); }
.dor-btn.dor-wait { opacity:.6; }
.dor-btn.dor-done { background:linear-gradient(135deg,#059669,#047857); }
.dor-btn.dor-done::after { content:' ✓'; }

@media (prefers-reduced-motion:reduce) {
  .dor-btn { transition:background .25s, border-color .25s; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
