/* ---------- the display cabinet (src/scenes/display.js; art/areas/display/layout.json) ----------
   Layers, back to front: the cabinet, the stands with their slabs and income plates, the lamps (screen light over the
   slabs), the doors. The register, its receipt, coins and card ride in a group that slides in from the right. */
#panel.area .dc, #panel.area .dc-till { position: absolute; inset: 0; pointer-events: none; }
#panel.area .dc-in { transition: opacity 0.28s ease; }
#panel.area.arriving .dc-in { opacity: 0; } /* they come up behind the glass as the doors open */
#panel.area .dc-stand { z-index: 1; }
#panel.area .dc-slab { z-index: 2; filter: drop-shadow(calc(var(--a) * 2) calc(var(--a) * 3) 0 rgba(35, 32, 28, 0.38)); }
#panel.area .dc-slab .sl.shown::after { content: none; }
#panel.area .dc-inc { z-index: 2; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: calc(var(--g) * 6.2 * min(var(--fs), 1.1)); line-height: 1; color: #3a2410; white-space: nowrap; }
/* an empty stand: a + on the felt backing; a locked one: the lock, faint */
#panel.area .dc-empty { z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
#panel.area .dc-empty i { display: grid; place-items: center; width: calc(var(--a) * 12); height: calc(var(--a) * 12); font-style: normal; font-family: var(--font-px); font-weight: 700; font-size: calc(var(--g) * 14); line-height: 1;
  color: #f3ead2; opacity: 0.55; border: var(--g) dashed rgba(243, 234, 210, 0.45); border-radius: var(--g); transition: opacity 0.12s ease, translate 0.1s ease; }
#panel.area .dc-empty:hover i, #panel.area .dc-empty:focus-visible i { opacity: 1; translate: 0 calc(var(--a) * -1); }
#panel.area .dc-lock { z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.4; transition: opacity 0.12s ease; }
#panel.area .dc-lock:hover { opacity: 0.75; }
#panel.area .dc-lock .ico, #panel.area .dc-lock canvas, #panel.area .dc-lock img { width: calc(var(--a) * 10); height: calc(var(--a) * 10); image-rendering: pixelated; }
/* the lamps light the stands once the doors are open, one after another */
#panel.area .dc-lamp { z-index: 3; mix-blend-mode: screen; pointer-events: none; opacity: 0; transition: opacity 0.35s ease calc(var(--i) * 70ms + 80ms); }
#panel.area.opened .dc-lamp { opacity: var(--glow); }
#panel.area.closing .dc-lamp { opacity: 0; transition: opacity 0.1s ease; }
body.calm #panel.area .dc-lamp { transition: none; }

/* the register: the amount on its dark glass, Collect on the brass bar, the fill in the drawer's slot, the time to
   full on the drawer's card; the receipt's readouts; Fill with my best; the index card's note */
#panel.area .dc-till .art { z-index: 1; }
#panel.area .dc-amount { z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding: 0 calc(var(--a) * 2); box-sizing: border-box;
  font-family: var(--font-px); font-weight: 700; font-size: calc(var(--g) * 12); line-height: 1; color: #9be36b; text-shadow: 0 0 calc(var(--g) * 3) rgba(155, 227, 107, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
#panel.area .dc-collect { z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-px); font-weight: 700; font-size: calc(var(--g) * 7.5); line-height: 1; color: #3a2410; letter-spacing: 0.04em; transition: translate 0.08s ease, color 0.1s ease; }
#panel.area .dc-collect:hover:not(:disabled) { color: #7a2a26; }
#panel.area .dc-collect:active:not(:disabled) { translate: 0 var(--g); }
#panel.area .dc-collect:disabled { opacity: 0.45; cursor: default; }
#panel.area .dc-fill { z-index: 2; overflow: hidden; }
#panel.area .dc-fill > i { display: block; height: 100%; background: linear-gradient(#b9f58c, #5aa83a); box-shadow: inset 0 calc(var(--g) * -1) 0 rgba(35, 32, 28, 0.3); transition: width 0.3s ease; }
#panel.area .dc-eta { z-index: 2; display: grid; place-items: center; font-family: var(--font-ui); font-size: calc(var(--g) * 6 * min(var(--fs), 1.1)); line-height: 1; color: var(--ink); white-space: nowrap; }
#panel.area .dc-eta.full { color: #7a2a26; font-weight: 700; animation: dcFull 1.2s steps(2, end) infinite; }
@keyframes dcFull { 50% { opacity: 0.45; } }
body.calm #panel.area .dc-eta.full { animation: none; }
#panel.area .dc-read { z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--g) * 3); font-family: var(--font-ui); font-size: calc(var(--g) * 5.8 * min(var(--fs), 1.1)); line-height: 1;
  color: var(--ink); white-space: nowrap; }
#panel.area .dc-read b { font-variant-numeric: tabular-nums; }
#panel.area .dc-best { z-index: 2; display: grid; place-items: center; padding: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-px); font-weight: 700; font-size: calc(var(--g) * 7 * min(var(--fs), 1.1)); color: var(--ink); text-shadow: none;
  background: #9be36b; border: calc(var(--g) * 1.5) solid var(--ink); border-radius: calc(var(--g) * 1.5);
  box-shadow: inset 0 var(--g) 0 #d4ffb5, inset 0 calc(var(--g) * -1) 0 #5aa83a, 0 calc(var(--g) * 1.5) 0 rgba(35, 32, 28, 0.45); }
#panel.area .dc-best:hover:not(:disabled) { filter: brightness(1.07); }
#panel.area .dc-best:active:not(:disabled) { translate: 0 var(--g); box-shadow: inset 0 var(--g) 0 #d4ffb5, inset 0 calc(var(--g) * -1) 0 #5aa83a, 0 calc(var(--g) * 0.5) 0 rgba(35, 32, 28, 0.45); }
#panel.area .dc-best:disabled { opacity: 0.5; cursor: default; }
#panel.area .dc-note { z-index: 2; display: flex; align-items: center; font-family: var(--font-ui); font-size: calc(var(--g) * 5.6 * min(var(--fs), 1.1)); line-height: 1.2; color: #3d3a52; }
