
:root {
  --primary:#2f80ed;
  --accent:#23c55e;
  --bg:#0e1117;
  --text:#fff;
  --muted:rgba(255,255,255,.90);
  --danger:#ff5b5b;
  --store-name-font:34px;
  --subtitle-font:22px;
  --idle-title-font:54px;
  --idle-subtitle-font:28px;
  --product-name-font:38px;
  --main-price-font:72px;
  --second-price-font:42px;
  --meta-font:24px;
  --footer-font:16px;
  --start-button-font:28px;
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;user-select:none;-webkit-user-select:none;touch-action:manipulation}
button,input{font-family:inherit}.hidden{display:none!important}
.bg-layer{position:fixed;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:1;pointer-events:none;z-index:0}
.bg-layer.has-bg::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.42)}
.screen{position:relative;z-index:1}.auth-screen{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding:16px}
.card,.modal-card{width:min(92vw,460px);background:rgba(20,25,35,.96);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:24px;text-align:center;box-shadow:0 20px 70px rgba(0,0,0,.45)}
h1,h2{margin:0 0 14px}p,.menu-hint{color:var(--muted);line-height:1.35}.pin-input,.text-input{display:block;width:100%;margin:12px 0;padding:16px;border:0;border-radius:14px;background:#fff;color:#111;font-size:28px;text-align:center}.pin-input{font-size:34px;font-weight:900;letter-spacing:4px}.text-input{font-size:18px}.main-btn,.secondary-btn,.danger-btn{width:100%;margin-top:12px;padding:16px;border:0;border-radius:14px;color:#fff;font-size:20px;font-weight:800}.main-btn{background:var(--primary)}.secondary-btn{background:rgba(255,255,255,.16)}.danger-btn{background:var(--danger)}.error-text{color:#ff9a9a;min-height:24px;margin-top:10px}.num-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 8px}.num-key{height:58px;border:0;border-radius:14px;background:#374151;color:#fff;font-size:28px;font-weight:900}.num-key.ok{background:var(--primary)}.num-key.clear{background:#4b5563}.num-key:active{background:var(--accent)}
/* Один эталонный холст 1280x720 используется и на CC600, и в Admin. */
.main-screen{position:fixed;left:0;top:0;width:1280px;height:720px;overflow:hidden;padding:0;transform-origin:0 0;background:transparent}
.header{position:absolute;left:40px;right:40px;top:24px;z-index:3;height:86px;display:flex;align-items:center;justify-content:center;gap:18px;padding:0;text-align:center}
.logo{width:64px;height:64px;object-fit:contain;border-radius:0;background:transparent;padding:0;flex:0 0 auto}.brand-text{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;max-width:1060px}.logo.hidden+.brand-text{align-items:center}.store-name{font-size:var(--store-name-font);font-weight:800;line-height:1.05;text-align:left;text-shadow:0 2px 4px rgba(0,0,0,.25);white-space:normal;overflow-wrap:anywhere}.subtitle{font-size:var(--subtitle-font);line-height:1.15;opacity:.9;margin-top:4px;text-align:left;text-shadow:0 1px 3px rgba(0,0,0,.25)}.logo.hidden+.brand-text .store-name,.logo.hidden+.brand-text .subtitle{text-align:center}
.content{position:absolute;left:40px;right:40px;top:118px;bottom:24px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:0}.content.idle{justify-content:center;padding:0 0 18px}.idle-title{font-size:var(--idle-title-font);font-weight:800;line-height:1.08;white-space:normal;max-width:1180px;overflow-wrap:anywhere;text-shadow:0 3px 8px rgba(0,0,0,.28)}.idle-subtitle{font-size:var(--idle-subtitle-font);line-height:1.15;margin-top:14px;color:var(--muted);text-shadow:0 2px 5px rgba(0,0,0,.25)}.idle-barcode-bottom{width:260px;max-width:260px;margin-top:32px;opacity:.98}.barcode-art{width:100%;height:auto;max-height:110px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.22))}
.content:not(.idle){justify-content:center;align-items:center;padding:0}.content.error-state{justify-content:center;align-items:center;padding:0}.product-view{width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.product-photo{width:220px;height:180px;object-fit:contain;background:#fff;border-radius:16px;padding:8px;margin:0 0 12px}.product-name{font-size:var(--product-name-font);font-weight:800;line-height:1.10;max-width:1080px;margin:0;text-align:center;overflow-wrap:anywhere;text-shadow:0 2px 5px rgba(0,0,0,.25)}.price-box{background:transparent;border:0;border-radius:0;padding:0;margin:0;min-width:0}.price-caption{font-size:18px;line-height:1.15;color:var(--text);margin-top:16px;margin-bottom:5px}.main-price{font-size:var(--main-price-font);font-weight:900;color:var(--accent);line-height:1}.second-price{font-size:var(--second-price-font);font-weight:800;line-height:1.05;margin-top:10px}.product-meta{font-size:var(--meta-font);line-height:1.15;margin-top:10px;color:var(--text)}.not-found{width:100%;font-size:var(--product-name-font);font-weight:800;color:#ff8d8d;text-align:center}.not-found-code{width:100%;max-width:1080px;margin-top:14px;font-size:var(--meta-font);line-height:1.25;color:var(--muted);text-align:center;overflow-wrap:anywhere}
.scan-input{position:fixed;left:-10000px;top:-10000px;width:1px;height:1px;opacity:0;border:0}.footer{display:none}.native-start-bridge{position:fixed;left:-10000px;top:-10000px;width:1px;height:1px;opacity:0}.tap-zone{position:absolute;left:0;top:0;width:150px;height:120px;z-index:15;background:transparent}.idle-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;background:#000}.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.66);padding:16px}.exit-screen{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#0e1117;color:white}
@media(max-width:700px){.card,.modal-card{padding:18px;border-radius:16px}.num-key{height:50px}}
