/* ==========================================================================
   Mini screens: the small pictures in the hero diagrams (home and Ads).
   A landscape screen, a portrait screen, a video wall and a layout, each playing a business's content.
   Where ads run, a bar says so and (on the home page) shows what they earn; a stack means several screens
   at one place. Pure CSS, sized by the parent's width. Uses the shared tokens in style.css.
   ========================================================================== */
.ms { position: relative; display: block; width: 100%; --lyr: 5px; }
.ms-scr {
  position: relative; display: block; overflow: hidden; width: 100%;
  border: 3px solid #020618; border-radius: 7px; background: #050B24;
  box-shadow: 0 0 0 1px var(--ln), 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.ms-land .ms-scr, .ms-lay .ms-scr, .ms-wall .ms-scr { aspect-ratio: 16 / 9; }
.ms-por .ms-scr { aspect-ratio: 9 / 16; }
.ms-wall .ms-scr { border-radius: 5px; border-width: 2px; }

/* content: a picture per business */
.ms-a { position: absolute; inset: 0; overflow: hidden; }
.ms-a::before, .ms-a::after { content: ""; position: absolute; }
.ms-cafe { background: linear-gradient(135deg, #5B3A1E, #2A1A0C); }
.ms-cafe::before { width: 34%; aspect-ratio: 1; right: 8%; top: 14%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F7E8D0, #C79A63); }
.ms-cafe::after { left: 9%; top: 18%; width: 38%; height: 56%; background: repeating-linear-gradient(0deg, rgba(247, 232, 208, .85) 0 3px, transparent 3px 9px); border-radius: 2px; opacity: .8; }
.ms-bake { background: linear-gradient(135deg, #0E7A63, #0A3D3A); }
.ms-bake::before { width: 36%; aspect-ratio: 1; right: 8%; bottom: 10%; border-radius: 50%; background: radial-gradient(circle, #0A3D3A 22%, #F472B6 24% 62%, transparent 64%); }
.ms-bake::after { left: 9%; top: 16%; width: 36%; height: 40%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .85) 0 3px, transparent 3px 9px); opacity: .8; }
.ms-way { background: linear-gradient(160deg, #0F1D57, #050B24); }
.ms-way::before { left: 14%; top: 18%; width: 34%; aspect-ratio: 1; border-radius: 22%; background: linear-gradient(135deg, #2F6BFF, #7C4DFF); box-shadow: 0 0 22px rgba(47, 107, 255, .6); }
.ms-way::after { right: 10%; bottom: 14%; width: 40%; height: 40%; background: repeating-linear-gradient(0deg, rgba(241, 245, 255, .7) 0 3px, transparent 3px 9px); opacity: .7; }
.ms-film { background: linear-gradient(170deg, #4C1D95, #1B1670 60%, #050B24); }
.ms-film::before { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85) 0 18%, rgba(34, 211, 238, .5) 20% 46%, transparent 48%); }
.ms-film::after { inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .45)); }

/* a layout: a main zone, a side zone and a ticker bar, each its own picture */
.ms-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr 22%; gap: 2px; background: #020618; }
.ms-zones .ms-a { position: relative; inset: auto; }
.ms-zones .z1 { grid-row: 1 / 3; }
.ms-zones .z4 { grid-column: 1 / 3; background: linear-gradient(90deg, #2F6BFF, #7C4DFF); }
.ms-zones .z4::before { left: 6%; right: 6%; top: 40%; height: 20%; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.ms-zones .z4::after { display: none; }

/* a video wall: one picture over a grid of screens (the lines are the bezels) */
.ms-wall .ms-scr::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 1.5px), #020618 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
              linear-gradient(transparent calc(50% - 1.5px), #020618 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}

/* several screens at one place (a quick ad): the same screen again, stacked behind */
.ms-lyr { position: absolute; inset: 0; border: 3px solid #020618; border-radius: 7px; background: linear-gradient(135deg, #0F1D57, #0A1440); box-shadow: 0 0 0 1px var(--ln); }
.ms-lyr.l1 { transform: translate(calc(var(--lyr) * 1), calc(var(--lyr) * -1)); opacity: .85; }
.ms-lyr.l2 { transform: translate(calc(var(--lyr) * 2), calc(var(--lyr) * -2)); opacity: .6; }
.ms-stack .ms-scr { z-index: 1; }
.ms-count { position: absolute; z-index: 3; inset-inline-end: -4px; bottom: -6px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--pg); background: #0A1440; color: var(--tx); font: 800 10px/1.3 var(--fb); }

/* an ad is playing: a bar across the bottom of the screen */
.ms-ad {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 4px;
  padding: 2px 5px; background: linear-gradient(135deg, rgba(47, 107, 255, .92), rgba(124, 77, 255, .92)); color: #fff;
  font: 800 8.5px/1.4 var(--fb); letter-spacing: .04em; white-space: nowrap; overflow: hidden;
}
.ms-ad i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #86EFAC; box-shadow: 0 0 6px #86EFAC; }
.ms-ad b { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: #D1FAE5; }
.ms-por .ms-ad { font-size: 8px; }
[dir="rtl"] .ms-ad { letter-spacing: 0; }
