:root{--m-press:80ms;--m-fast:120ms;--m-base:200ms;--m-slow:320ms;--m-stagger:45ms;--m-out:cubic-bezier(.23,1,.32,1);--m-in:cubic-bezier(.5,0,.75,0);--m-sheet:cubic-bezier(.32,.72,0,1);--m-roll:260ms;--m-roll-gap:35ms;--m-count:520ms;--m-pulse:600ms;--m-draw:640ms;--m-stamp:520ms}
/* Retail engine (hardware preset): CJK-ready type, language switch, till, customer display. Tokens from app.css; brand pack sets colours. */
:root{--pay:#C8102E;--pay-press:#A50D26;--font:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--display:"Newsreader Display","Noto Serif SC","Songti SC",Georgia,serif}
html[data-lang="zh"]{--display:"Newsreader Display","Noto Sans SC","PingFang SC","Microsoft YaHei",serif}
html[data-lang="zh"] body{line-height:1.5;letter-spacing:0}
html[data-lang="zh"] .up{text-transform:none!important;letter-spacing:.02em!important}
.btn.pay{background:var(--pay);border-color:var(--pay)}.btn.pay:hover{background:var(--pay-press)}
.btn.pay:disabled{background:#E7E8EC;border-color:#E7E8EC;color:#8C909A;opacity:1}
.btn.pay kbd{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.3);color:#fff}
body.lang-fade #app,body.lang-fade .shell{animation:langfade .22s ease-out}
@keyframes langfade{from{opacity:.35;filter:blur(1.5px)}}
/* language switch */
.lang-sw{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:rgba(24,23,28,.07);flex:none}
.lang-sw button{height:34px;min-width:52px;padding:0 12px;border-radius:9px;font-weight:700;font-size:14px;color:var(--muted)}
.lang-sw button[lang="zh-Hans"]{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;font-weight:600}
.lang-sw button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.lang-sw.dark{background:rgba(255,255,255,.1)}.lang-sw.dark button{color:#C9CDD8}.lang-sw.dark button.on{background:#fff;color:var(--ink)}
.lang-sw.big button{height:44px;min-width:72px;font-size:16px}
/* wordmark (neutral; swap via brand.logo) */
.wm{display:inline-flex;align-items:center;gap:.5em;line-height:1;letter-spacing:.04em}.wm-t{display:inline-flex;flex-direction:column}.wm-badge{width:2.3em;height:2.3em;border-radius:50%;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 2px 8px rgba(0,0,0,.25)}.wm b{font-weight:900;font-size:1em}.wm em{font-style:normal;font-weight:700;font-size:.56em;letter-spacing:.32em;opacity:.8;margin-top:.2em}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px;margin:10px 0}.kv span{color:var(--muted)}.kv b{text-align:right;font-variant-numeric:tabular-nums}.kv b.bad{color:var(--bad)}
.inp{width:100%;height:46px;border:1px solid var(--line-2);border-radius:11px;padding:0 12px;background:#fff;font-size:15px;margin:8px 0}
.inp:focus{outline:2px solid var(--info);outline-offset:0;border-color:transparent}.inp.big{height:58px;font-size:22px;font-weight:650}
.row-end{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.warnbox,.okbox{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:10px;font-weight:600;font-size:14px;margin:10px 0 0}.warnbox{background:var(--warn-tint);color:#8A5300}.okbox{background:var(--ok-tint);color:var(--ok)}.warnbox svg,.okbox svg{flex:none;width:18px;height:18px}
.lbl{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:4px}

/* ============ CUSTOMER DISPLAY ============ */
body.display{height:100vh;overflow:hidden;background:var(--ink);color:#fff}
.dsp{height:100vh;display:grid;grid-template-columns:1fr minmax(380px,40%)}
.dsp-l{padding:clamp(20px,3vw,40px);display:flex;flex-direction:column;min-height:0}
.dsp-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dsp-top .wm{font-size:clamp(20px,2vw,30px)}
.dsp-lines{flex:1;overflow:auto;margin-top:22px;border-top:1px solid rgba(255,255,255,.12)}
.dl{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08);animation:slidein .2s ease-out}
.dl b{font-size:clamp(16px,1.4vw,21px);font-weight:700}.dl span{color:#AEB3C0;font-size:clamp(13px,1vw,16px)}.dl em{font-style:normal;color:#9FB6F5;font-size:clamp(13px,1vw,16px)}.dl strong{grid-row:1/3;grid-column:2;align-self:center;font-size:clamp(18px,1.6vw,24px);font-variant-numeric:tabular-nums}
.dsp-r{background:var(--brand);display:flex;flex-direction:column;justify-content:flex-start;padding:clamp(20px,3vw,44px);gap:10px;position:relative;overflow:hidden}
.dsp-r small{color:#D5DDF3;font-size:clamp(15px,1.3vw,20px)}.dsp-total{font:600 clamp(44px,4.6vw,92px)/1 var(--font);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.dsp-cust{font-size:clamp(15px,1.2vw,19px);color:#fff;font-weight:650}
.dsp-vat{display:flex;gap:16px;color:#D5DDF3;font-size:14px}
.dsp-idle{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;background:radial-gradient(ellipse at 50% 30%,rgba(var(--brand-rgb),.55),transparent 60%),var(--ink)}
.dsp-idle .wm{font-size:clamp(40px,6vw,92px)}.dsp-idle p{color:#C3C7D2;font-size:clamp(18px,1.8vw,26px);margin:0}
.dsp-thanks{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;background:var(--ok)}
.dsp-thanks h1{font-size:clamp(40px,6vw,88px);margin:0}.dsp-thanks p{font-size:clamp(20px,2vw,32px);margin:0}
.dsp-corner{position:fixed;right:14px;bottom:12px;display:flex;gap:8px;align-items:center;opacity:.85}
@media (max-width:760px){.dsp-corner{top:12px;bottom:auto}.dsp{grid-template-columns:1fr;grid-template-rows:1fr auto}.dsp-r{padding:18px}.dsp-total{font-size:52px}}

.dsp-sp{flex:1}
.dsp-last{position:relative;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:6px;animation:slidein .25s ease-out}
.dsp-last small{color:#D5DDF3;font-size:13px;font-weight:700;letter-spacing:.04em}.dsp-last b{font-size:clamp(20px,1.9vw,30px);line-height:1.2}.dsp-last em{font-style:normal;color:#C9D6FA;font-size:clamp(16px,1.3vw,20px)}.dsp-last span{color:#D5DDF3;font-size:clamp(14px,1.1vw,17px)}.dsp-last strong{color:#fff}
@media (max-width:760px){.dsp-count{display:none}.dsp-last{display:none}.dsp-sp{display:none}}

.free-tag{color:#0F8F63;font-weight:800;letter-spacing:.03em}.l-sub s{opacity:.6}
.btn.freebie-btn{border-color:#0F8F63;color:#0F8F63;font-weight:700}
