/* B. Homepage offline film (films/offline.js). Night ground, the site's ink, slate, blues and its ok / warn pair. */
.pm-offline .of-layer, .pm-offline .of-world { position: absolute; inset: 0; }
.pm-offline .of-defs { position: absolute; }
/* The till's own CSS motion is replaced by the film's frame-driven drawing. */
.pm-offline .scene .sc-cv * { animation: none !important; }

/* B1–B2: the status above the till, the note, the till in its frame. */
.pm-offline .of-status { position: absolute; left: 96px; top: 84px; height: 64px; display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; border-radius: 999px; background: var(--pm-ok-soft); color: var(--pm-ok); font-size: 28px; font-weight: 600; white-space: nowrap; transform-origin: 0 50%; }
.pm-offline .of-status i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 6px rgb(21 128 61 / .18); }
.pm-offline .of-status.is-warn { background: var(--pm-warn-soft); color: var(--pm-warn); }
.pm-offline .of-status.is-warn i { box-shadow: 0 0 0 6px rgb(180 83 9 / .18); }
.pm-offline .of-note { position: absolute; left: 96px; top: 192px; margin: 0; font-size: 68px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; color: var(--pm-paper); }
.pm-offline .of-note .is-accent { color: var(--pm-on-dark-accent); }
.pm-offline .of-clip { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .22em; margin: -.06em -.02em -.22em; }
.pm-offline .of-clip > span { display: inline-block; }
.pm-offline .of-stage { position: absolute; left: 96px; top: 316px; width: 1058px; padding: 8px; border: 1px solid var(--pm-on-dark-line); border-radius: 18px; background: rgb(255 255 255 / .06); box-shadow: 0 80px 160px var(--pm-shadow); }
.pm-offline .of-stage .scene { border-radius: 12px; }

/* B2: the marker ink and the viewfinder corners; the shutter flash. */
.pm-offline .of-ink { position: absolute; inset: 0; overflow: visible; }
.pm-offline .of-ink path { stroke: var(--pm-on-dark-accent); }
.pm-offline .of-bracket { position: absolute; width: 64px; height: 64px; border: 0 solid var(--pm-on-dark-accent); }
.pm-offline .of-bracket.is-tl { left: 48px; top: 48px; border-width: 4px 0 0 4px; }
.pm-offline .of-bracket.is-tr { right: 48px; top: 48px; border-width: 4px 4px 0 0; }
.pm-offline .of-bracket.is-bl { left: 48px; bottom: 48px; border-width: 0 0 4px 4px; }
.pm-offline .of-bracket.is-br { right: 48px; bottom: 48px; border-width: 0 4px 4px 0; }
.pm-offline .of-flash { position: absolute; inset: 0; background: var(--pm-paper); opacity: 0; pointer-events: none; }

/* B3: the Waiting counter (an odometer of two 0–9 strips) and the order cards. */
.pm-offline .of-counter { position: absolute; left: 1214px; top: 316px; transform-origin: 0 0; }
.pm-offline .of-counter small { display: block; font: 500 22px/1 var(--pm-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--pm-on-dark-muted); }
.pm-offline .of-roll { display: block; overflow: hidden; height: 116px; margin-top: 10px; }
.pm-offline .of-strip { display: block; }
.pm-offline .of-strip i { display: block; font: 500 104px/116px var(--pm-font); font-style: normal; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--pm-paper); }
.pm-offline .of-card { position: absolute; left: 1214px; width: 400px; height: 100px; border-radius: 14px; transform-origin: center; }
.pm-offline .of-card-face { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; row-gap: 8px; padding: 0 22px; overflow: hidden; border-radius: 14px; background: var(--pm-paper); color: var(--pm-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9); }
.pm-offline .of-num { font: 700 26px/1.1 var(--pm-mono); }
.pm-offline .of-chip-hold { justify-self: end; display: block; }
.pm-offline .of-chip { display: block; padding: 5px 14px; border-radius: 999px; background: var(--pm-warn-soft); color: var(--pm-warn); font-size: 18px; font-weight: 600; font-style: normal; line-height: 1.2; }
.pm-offline .of-chip.is-sent { background: var(--pm-ok-soft); color: var(--pm-ok); }
.pm-offline .of-kind { font-size: 22px; line-height: 1.2; color: var(--pm-ink-soft); }
.pm-offline .of-amt { justify-self: end; font: 600 22px/1.2 var(--pm-mono); color: var(--pm-ink); }
/* One glaze across the whole stack after the last card lands, clipped by each card's corners. */
.pm-offline .of-glaze { position: absolute; top: -200px; height: 500px; width: 360px; transform: rotate(14deg); mix-blend-mode: multiply; background: linear-gradient(90deg, rgb(29 78 216 / 0), rgb(29 78 216 / .16) 45%, rgb(29 78 216 / .16) 55%, rgb(29 78 216 / 0)); pointer-events: none; }

/* B4: the arcs (white core in blue glow), the Shared database node and its pulse. */
.pm-offline .of-fly { position: absolute; inset: 0; overflow: visible; }
.pm-offline .of-glow { fill: none; stroke: var(--pm-on-dark-accent); stroke-linecap: round; stroke-linejoin: round; }
.pm-offline .of-core line { stroke: var(--pm-paper); }
.pm-offline .of-comet { fill: none; stroke: var(--pm-paper); stroke-linecap: round; stroke-linejoin: round; }
.pm-offline .of-head, .pm-offline .of-anchor { fill: var(--pm-paper); }
.pm-offline .of-anchor-halo { fill: var(--pm-on-dark-accent); fill-opacity: .25; }
.pm-offline .of-halo-0 { stop-color: var(--pm-paper); stop-opacity: .6; }
.pm-offline .of-halo-1 { stop-color: var(--pm-on-dark-accent); stop-opacity: .3; }
.pm-offline .of-halo-2 { stop-color: var(--pm-on-dark-accent); stop-opacity: 0; }
.pm-offline .of-node-disc { fill: var(--pm-ink); stroke: var(--pm-on-dark-line); stroke-width: 1.5; }
.pm-offline .of-node-glass { fill: var(--pm-paper); fill-opacity: .06; }
.pm-offline .of-node-icon { fill: none; stroke: var(--pm-paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-offline .of-pulse-glow { fill: none; stroke: var(--pm-on-dark-accent); }
.pm-offline .of-pulse-fill { fill: var(--pm-on-dark-accent); }
.pm-offline .of-pulse-line, .pm-offline .of-ring { fill: none; stroke: var(--pm-on-dark-accent); }
.pm-offline .of-node-label { position: absolute; margin: 0; transform: translateY(-50%); font-size: 30px; font-weight: 600; white-space: nowrap; color: var(--pm-on-dark-soft); }

/* Portrait cut (phones, 1080 × 1350): the landscape pieces at phone-readable sizes, re-staged in one column. The
   landscape rules above also match this canvas; these override their sizes and places. */
.pm-offline.pm-portrait .of-status { left: 88px; top: 112px; height: 96px; gap: 20px; padding: 0 40px; font-size: 44px; }
.pm-offline.pm-portrait .of-status i { width: 20px; height: 20px; box-shadow: 0 0 0 8px rgb(21 128 61 / .18); }
.pm-offline.pm-portrait .of-status.is-warn i { box-shadow: 0 0 0 8px rgb(180 83 9 / .18); }
.pm-offline.pm-portrait .of-note { left: 88px; top: 252px; font-size: 88px; }
/* B1–B2: a window onto the till's order panel; its foot runs off the bottom of the frame. */
.pm-offline.pm-portrait .ofp-track { position: absolute; inset: 0; }
.pm-offline.pm-portrait .of-stage { left: 48px; top: 408px; width: 986px; }
.pm-offline.pm-portrait .ofp-crop { position: relative; height: 982px; overflow: hidden; border-radius: 12px; }
.pm-offline.pm-portrait .ofp-crop .scene { position: absolute; top: 0; border-radius: 0; }
/* B3: the counter reads across one row; two-row cards at 40 px and up. */
.pm-offline.pm-portrait .of-counter { left: 88px; top: 470px; display: flex; align-items: center; gap: 28px; transform-origin: 0 50%; }
.pm-offline.pm-portrait .of-counter small { font-size: 40px; }
.pm-offline.pm-portrait .of-roll { height: 132px; margin-top: 0; }
.pm-offline.pm-portrait .of-strip i { font-size: 120px; line-height: 132px; }
.pm-offline.pm-portrait .of-card { left: 88px; width: 640px; height: 150px; border-radius: 20px; }
.pm-offline.pm-portrait .of-card-face { row-gap: 10px; padding: 0 32px; border-radius: 20px; }
.pm-offline.pm-portrait .of-num { font-size: 48px; }
.pm-offline.pm-portrait .of-chip { padding: 6px 22px; font-size: 40px; }
.pm-offline.pm-portrait .of-kind, .pm-offline.pm-portrait .of-amt { font-size: 40px; }
.pm-offline.pm-portrait .of-glaze { top: -260px; height: 670px; width: 400px; }
/* B4: the node's label. */
.pm-offline.pm-portrait .of-node-label { font-size: 44px; }
