/* Noodle Pull — order ticket on top, the dough on one canvas, three big move buttons under it. */

.nd-col { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 640px; margin: 0 auto; }
.nd-top { flex: none; padding: 2px 14px 6px; }
.nd-pips { display: flex; justify-content: center; gap: 5px; direction: ltr; }
.nd-pips i { flex: 1 1 0; max-width: 30px; height: 7px; border-radius: 4px; background: rgba(255, 246, 227, 0.14); }
.nd-pips i.is-now { background: var(--parchment); box-shadow: 0 0 0 2px rgba(255, 246, 227, 0.2); }
.nd-pips i.is-s3 { background: var(--w-butter); }
.nd-pips i.is-s2 { background: var(--w-mint); }
.nd-pips i.is-s1 { background: var(--w-crust); }

.nd-ticket { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 16px;
  border-radius: 14px; background: var(--w-cream); color: #23291C; box-shadow: 0 3px 0 var(--w-crust); }
.nd-ticket__n { font-weight: 800; font-size: 0.95rem; }
.nd-ticket__want { display: flex; align-items: baseline; gap: 7px; font-weight: 700; }
.nd-ticket__want b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--w-tomato); }

.nd-scene { position: relative; flex: 1 1 auto; min-height: 140px; margin: 4px 12px 0; border-radius: 18px; overflow: hidden;
  background: var(--lapis-deep); box-shadow: 0 0 0 2px var(--hairline); direction: ltr; }
.nd-canvas { display: block; -webkit-user-select: none; user-select: none; }

.nd-panel { flex: none; padding: 6px 12px 4px; }
.nd-info { margin: 0 0 6px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--mist); }
.nd-info.is-served { color: var(--w-butter); }
.nd-info.is-note { color: var(--w-tomato); }
.nd-body { display: grid; align-items: stretch; }
.nd-body > * { grid-area: 1 / 1; }
.nd-body > .is-hidden { visibility: hidden; }

.nd-ops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.nd-op { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 6px 4px;
  border: 0; border-radius: 18px; color: #23291C; font: inherit; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.32); transition: transform 0.08s, opacity 0.15s; }
.nd-op b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; direction: ltr; unicode-bidi: bidi-override; }
.nd-op span { font-weight: 800; font-size: 0.82rem; line-height: 1.15; }
.nd-op--fold { background: var(--w-butter); }
.nd-op--add { background: var(--w-mint); }
.nd-op--cut { background: var(--w-tomato); color: var(--w-cream); }
.nd-op:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32); }
.nd-op.is-off { opacity: 0.38; }
.nd-op:focus-visible, .nd-next:focus-visible { outline: 3px solid var(--parchment); outline-offset: 2px; }
.nd-next { align-self: center; width: 100%; min-height: 58px; }

.kit-dock-btn:disabled { opacity: 0.4; }

@media (max-height: 600px) {
  .nd-ticket { margin-top: 5px; padding: 3px 14px; }
  .nd-ticket__want b { font-size: 1.6rem; }
  .nd-info { min-height: 2.3em; margin-bottom: 3px; font-size: 0.9rem; }
  .nd-op { min-height: 56px; }
  .nd-op b { font-size: 1.4rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .nd-col { max-width: 900px; flex-direction: row; flex-wrap: wrap; align-content: stretch; }
  .nd-top { width: 100%; }
  .nd-scene { flex: 1 1 50%; height: calc(100% - 70px); margin: 0 6px 4px 12px; }
  .nd-panel { flex: 0 0 44%; align-self: center; }
}
