/* ===================================================================
   Cross-store orders playful 版（project/fabricare-orders-play.html，2026-10-21）。共用部分在 play.css。
   基地店 / 枢纽两色沿用 --chart-base / --chart-hub；字段三态沿用产品里的 --st-*（只复述产品界面）。
   =================================================================== */

/* ---------- 01 Is my uniform ready? ---------- */
.fo-call { display: grid; gap: 22px; }
.fo-call-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fo-calls { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-ui); font-size: 15px; color: var(--ink-60); }
.fo-calls .pl-num { font-size: clamp(40px, 4vw, 56px); }
.fo-call[data-mode="board"] .fo-calls { opacity: .35; }
.fo-map { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto; gap: clamp(14px, 2vw, 24px); }
.fo-map > [data-s="Ft Stewart"] { grid-column: 1; grid-row: 1; }
.fo-map > [data-s="Hinesville"] { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.fo-map > [data-s="Savannah"] { grid-column: 1; grid-row: 2; }
.fo-board { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.fo-store {
  --c: var(--chart-base); position: relative; display: grid; gap: 4px; justify-items: start; padding: 20px 22px 18px;
  border: 0; border-radius: 22px; background: var(--paper-warm); color: var(--ink); text-align: left;
  box-shadow: inset 0 0 0 1px var(--ink-12); transition: transform .4s var(--pl-spring), box-shadow .3s var(--ease);
}
.fo-store.is-hub { --c: var(--chart-hub); }
.fo-store::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-bottom: 6px; }
.fo-store b { font: 500 19px/1.2 var(--f-display); }
.fo-store small { font: 400 13px/1.3 var(--f-ui); color: var(--ink-45); }
.fo-pile { display: flex; gap: 4px; margin-top: 10px; }
.fo-pile i { width: 18px; height: 24px; border-radius: 3px; background: #f7e3e6; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transform: rotate(calc(var(--r, 0) * 1deg)); }
.fo-pile i:nth-child(odd) { --r: -6; } .fo-pile i:nth-child(even) { --r: 4; }
.fo-says { min-height: 1.3em; margin-top: 8px; font: 500 13.5px/1.3 var(--f-ui); color: var(--c); }
.fo-ring { position: absolute; right: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--c); opacity: 0; transform: scale(.4); }
.fo-ring::before { content: ''; position: absolute; inset: 7px; background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fo-store.is-ringing .fo-ring { animation: fo-ring 1.1s var(--ease); }
@keyframes fo-ring { 10%, 70% { opacity: 1; transform: scale(1); } 15%, 25%, 35%, 45% { transform: scale(1) rotate(-14deg); } 20%, 30%, 40%, 50% { transform: scale(1) rotate(14deg); } 100% { opacity: 0; transform: scale(.4); } }
.fo-board {
  display: grid; justify-items: center; gap: 12px; padding: 22px; border-radius: 22px;
  border: 1.5px dashed var(--ink-12); text-align: center; transition: border-color .4s var(--ease), background .4s var(--ease);
}
.fo-card {
  display: grid; gap: 2px; justify-items: start; width: min(230px, 100%); padding: 16px 18px; border-radius: 16px; background: var(--paper-warm);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); text-align: left; opacity: .15; filter: blur(3px); transform: scale(.92);
  transition: opacity .5s var(--ease), filter .5s var(--ease), transform .6s var(--pl-spring);
}
.fo-card b { font: 500 24px/1.1 var(--f-display); letter-spacing: -.01em; }
.fo-card span { font: 400 13.5px/1.3 var(--f-ui); color: var(--ink-60); }
.fo-card em { margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--chart-hub) 14%, transparent); color: var(--chart-hub); font: 500 12.5px/1.2 var(--f-ui); font-style: normal; }
.fo-board small { font: 400 13px/1.3 var(--f-ui); color: var(--ink-45); }
.fo-call[data-mode="board"] .fo-board { border-color: transparent; background: color-mix(in srgb, var(--chart-hub) 8%, transparent); }
.fo-call[data-mode="board"] .fo-card { opacity: 1; filter: none; transform: none; }
.fo-call[data-mode="board"] .fo-store { box-shadow: inset 0 0 0 1.5px var(--c); }
.fo-call-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fo-call-foot .pl-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; flex: 1 1 560px; }
@media (max-width: 760px) { .fo-call-foot .pl-points { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .fo-map { grid-template-columns: 1fr; }
  .fo-map > .fo-store, .fo-board { grid-column: 1 !important; grid-row: auto !important; }
  .fo-board { order: -1; }
}

/* ---------- 02 确认票据 ---------- */
.fo-confirm { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) 260px; gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.fo-ticket { margin: 0; transform: rotate(-2deg); transition: transform .5s var(--pl-spring); }
.fo-ticket:hover { transform: rotate(0) scale(1.03); }
.fo-ticket img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .5); }
.fo-ticket figcaption { margin-top: 12px; font: 400 12.5px/1.3 var(--f-ui); color: var(--ink-45); text-align: center; }
.fo-fields { display: grid; gap: 10px; }
.fo-f {
  --k: var(--st-auto); position: relative; display: grid; gap: 4px; width: 100%; padding: 12px 16px 12px 20px; border: 0; border-radius: 14px;
  background: var(--paper-warm); color: var(--ink); text-align: left; font-family: var(--f-ui);
  box-shadow: inset 4px 0 0 var(--k); transition: box-shadow .3s var(--ease), transform .4s var(--pl-spring);
}
.fo-f.is-check { --k: var(--st-check); }
.fo-f.is-missing { --k: var(--st-missing); }
/* 正在看的那一格：轻轻往右推一下，像有人的手指点在上面 */
.fo-f.is-look { transform: translateX(6px); box-shadow: inset 4px 0 0 var(--k), 0 0 0 2px var(--k); }
.fo-type { min-height: 1.2em; }
.fo-type.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: fo-caret .8s steps(1) infinite; }
@keyframes fo-caret { 50% { opacity: 0; } }
.fo-fl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.fo-fl em { font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--k); margin-left: 6px; }
.fo-f b { font: 500 20px/1.2 var(--f-display); }
.fo-f input { width: 100%; max-width: 220px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font: 500 18px/1.2 var(--f-display); }
.fo-f input:focus { outline: none; }
.fo-act { font-size: 13px; color: var(--k); font-weight: 500; }
.fo-f.is-ok { --k: var(--st-auto); }
.fo-f.is-ok .fo-fl em { text-decoration: line-through; color: var(--ink-45); }
.fo-f.is-ok .fo-act { color: var(--st-auto); }
.fo-f.is-ok { animation: pl-pop .45s var(--pl-spring); }
.fo-save { justify-self: start; margin-top: 6px; }
.fo-save { opacity: .3; transition: opacity .3s var(--ease), transform .45s var(--pl-spring); pointer-events: none; }
.fo-save.is-ready { opacity: 1; }
.fo-save.is-press { transform: scale(.94); }
.fo-done { min-height: 1.4em; font: 500 15px/1.4 var(--f-ui); color: var(--st-auto); }
.fo-key { display: grid; gap: 10px; font: 400 14px/1.35 var(--f-ui); color: var(--ink-60); }
.fo-key > p:not(.fo-acc) { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.fo-key .is-auto .pl-ic { color: var(--st-auto); } .fo-key .is-check .pl-ic { color: var(--st-check); } .fo-key .is-missing .pl-ic { color: var(--st-missing); }
.fo-key .pl-ic { vertical-align: 0; margin-top: 0; }
.fo-key b { color: var(--ink); font-weight: 500; margin-right: 4px; }
.fo-acc { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--ink-12); }
.fo-acc .pl-num { display: block; margin: 0 0 6px; font-size: clamp(36px, 3.6vw, 48px); }
@media (max-width: 1080px) { .fo-confirm { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); } .fo-key { grid-column: 1 / -1; } }
@media (max-width: 680px) { .fo-confirm { grid-template-columns: 1fr; } .fo-ticket { max-width: 260px; justify-self: center; } }

/* ---------- 03 状态就是按钮 ---------- */
.fo-step { display: grid; gap: 22px; }
.fo-step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fo-ipad { font: 500 14px/1 var(--f-ui); color: var(--ink-60); }
.fo-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.fo-steps li { --c: var(--chart-base); }
.fo-steps li[data-own="hub"] { --c: var(--chart-hub); }
.fo-sb {
  position: relative; display: grid; gap: 4px; justify-items: start; width: 100%; height: 100%; min-height: 150px; padding: 18px 16px;
  border: 1.5px solid var(--ink-12); border-radius: 18px; background: var(--paper-warm); color: var(--ink-45); text-align: left;
  font-family: var(--f-ui); transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .4s var(--pl-spring);
}
.fo-steps b { font: 500 16px/1.2 var(--f-display); color: inherit; }
.fo-steps small { font-size: 13px; }
.fo-steps em { margin-top: auto; padding-top: 10px; font: 500 12.5px/1.3 var(--f-ui); font-style: normal; color: var(--c); }
.fo-dot { width: 22px; height: 22px; margin-bottom: 8px; border-radius: 50%; border: 2px solid currentColor; }
.fo-steps li.is-done .fo-sb { color: var(--ink); border-color: transparent; }
.fo-steps li.is-done .fo-dot { border-color: var(--c); background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fo-steps li.is-next .fo-sb { border: 2px solid var(--c); color: var(--ink); animation: fo-breathe 1.4s var(--ease) infinite; }
.fo-steps li.is-tap .fo-sb { transform: scale(.95); }
@keyframes fo-breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); } }
.fo-steps li.is-new .fo-dot { animation: pl-pop .45s var(--pl-spring); }
.fo-step-bar { display: flex; align-items: center; gap: 14px; min-height: 28px; }
.fo-step-say { font: 500 16px/1.4 var(--f-ui); color: var(--ink); }
.fo-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 760px) { .fo-rules { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .fo-steps { grid-template-columns: 1fr; } .fo-sb { min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; } .fo-dot { grid-row: span 3; margin: 0; } }

/* ---------- 04 测量 ---------- */
.fo-meas { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); }
.fo-pipe { display: grid; gap: 20px; align-content: start; }
.fo-pipe { gap: 26px; }
.fo-way { display: grid; gap: 12px; }
.fo-way-t { font: 500 12.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-45); }
.fo-chain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fo-chain li { padding: 10px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-12); font: 500 14.5px/1 var(--f-ui); color: var(--ink); }
.fo-chain li:not(:last-child)::after { content: '→'; margin-left: 16px; margin-right: -6px; color: var(--ink-45); }
.fo-chain .is-zip { background: color-mix(in srgb, var(--st-check) 18%, var(--paper)); }
.fo-chain .is-ocr { background: color-mix(in srgb, var(--chart-hub) 16%, var(--paper)); }
.fo-acc2 .pl-num { font-size: clamp(36px, 3.6vw, 52px); }
.fo-bar { display: block; height: 14px; border-radius: 7px; background: var(--ink-12); overflow: hidden; }
.fo-bar i { display: block; height: 100%; width: 0; border-radius: 0 7px 7px 0; background: var(--chart-hub); transition: width 1.2s var(--pl-spring); }
.fo-way.is-obvious .fo-bar i { background: var(--st-check); }
.fo-meas.is-in .fo-bar i { width: var(--acc); }
.fo-meas.is-in .fo-way.is-ship .fo-bar i { transition-delay: .5s; }
.fo-lib { display: grid; gap: 14px; justify-items: start; align-content: start; }
.fo-ol { font: 500 12.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-45); }
.fo-box-wrap { display: grid; place-items: end start; width: 100%; height: 170px; }
.fo-box {
  display: block; width: 170px; height: 170px; border-radius: 14px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--chart-base) 30%, transparent) 0 8px, color-mix(in srgb, var(--chart-base) 18%, transparent) 8px 16px);
  transform-origin: bottom left; transition: transform .9s var(--pl-spring);
}
.fo-meas.is-in .fo-box { transform: scale(.3194); transition-delay: .8s; }   /* 面积缩 9.8 倍 → 边长缩 √9.8 */
.fo-mb { display: flex; align-items: baseline; gap: 8px; font: 500 18px/1 var(--f-ui); color: var(--ink-60); }
@media (max-width: 860px) { .fo-meas { grid-template-columns: 1fr; } }

/* ---------- 05 $0 账单 ---------- */
.fo-ship { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.fo-receipt {
  position: relative; display: grid; gap: 10px; width: 100%; padding: 26px 26px 34px; border: 0; background: #ffffff; color: var(--ink);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 14px; text-align: left;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .45); transform: rotate(1.5deg); transition: transform .5s var(--pl-spring);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) bottom / 16px 10px repeat-x;
  clip-path: inset(0 0 calc(100% - var(--print, 30%)) 0); transition: clip-path 1.2s steps(14), transform .5s var(--pl-spring);
}
.fo-ship.is-in .fo-receipt { --print: 100%; }
.fo-receipt:hover { transform: rotate(0); }
.fo-r-head { padding-bottom: 10px; border-bottom: 1px dashed rgba(0, 0, 0, .25); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fo-r-line, .fo-r-total { display: flex; justify-content: space-between; gap: 16px; }
.fo-r-line span { color: rgba(0, 0, 0, .65); }
.fo-r-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, .25); font-size: 20px; font-weight: 700; }
.fo-r-foot { margin-top: 8px; font-size: 12px; color: rgba(0, 0, 0, .5); }
.fo-out { display: grid; gap: 14px; }
.fo-x { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fo-x li { position: relative; padding: 12px 20px; border-radius: 14px; background: var(--paper-warm); font: 500 18px/1 var(--f-display); color: var(--ink-45); }
.fo-x li::after { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--st-missing); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease) calc(var(--i, 0) * 180ms + .3s); }
.fo-x li:nth-child(2) { --i: 1; } .fo-x li:nth-child(3) { --i: 2; }
.fo-ship.is-in .fo-x li::after { transform: scaleX(1); }
@media (max-width: 760px) { .fo-ship { grid-template-columns: 1fr; } }

/* ---------- 06 没做完的 ---------- */
.fo-todo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fo-ti {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; height: 100%; padding: 18px; border-radius: 18px;
  background: var(--paper-warm); color: var(--ink); font-family: var(--f-ui); transition: transform .45s var(--pl-spring);
}
.fo-ti:hover { transform: rotate(-1deg) translateY(-3px); }
.fo-box2 { grid-row: span 3; }
.fo-todo b { font: 500 17px/1.2 var(--f-display); }
.fo-todo em { justify-self: start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--st-check) 16%, transparent); color: #9a5a00; font: 500 12px/1.3 var(--f-ui); font-style: normal; }
.fo-todo small { font-size: 13.5px; line-height: 1.4; color: var(--ink-60); }

@media (prefers-reduced-motion: reduce) {
  .fo-card, .fo-box, .fo-bar i, .fo-receipt, .fo-x li::after, .fo-chain li { transition-duration: .01s !important; }
  .fo-store.is-ringing .fo-ring, .fo-steps li.is-next .fo-sb, .fo-type.is-typing::after { animation: none !important; }
}

/* 演完才出现的 Replay，和说明放在一起 */
.fo-step-bar .pl-replay { margin-left: auto; }
.fo-fields .pl-replay { justify-self: start; }
