/* Mi Optica: clear surfaces and violet from the supplied institutional logo. */
:root {
  color-scheme: light;
  --text: #2c3029;
  --muted: #70617c;
  --soft: #80728c;
  --accent: #65509a;
  --accent-strong: #2c3029;
  --accent-soft: #ede6f5;
  --line: #cfc0df;
}

html, body {
  background: #f7f5f9;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.mirror-shell,
.mirror-shell.storefront-mode,
.mirror-shell.mirror-mode {
  --mirror-top: 18%;
  --mirror-height: 49%;
  --mirror-left: 0%;
  --gesture-top: calc(var(--mirror-top) + 42.5%);
  --mirror-hint-top: calc(var(--mirror-top) + var(--mirror-height) - 3.4%);
  --carousel-top: 68.2%;
  --carousel-height: 26.3%;
  --carousel-width: 88%;
  background: #f7f5f9;
}

.mirror-shell::before, .street-reflection,
.viewer-stage::before, .viewer-stage::after { display: none; }

.experience-header {
  inset: 2.5% 6% auto;
  width: 88%;
  height: 10%;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 2cqw;
  padding: 0 1.5cqw;
  border: 1px solid #dfd4e9;
  border-radius: 2.5cqw;
  background: #fcfbfd;
  box-shadow: 0 5px 18px rgba(76, 38, 142, .03);
}


.experience-header .brand-lockup {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3cqh;
  min-width: 0;
  height: 60%;
  padding-right: 1.5cqw;
  border-right: 1px solid #d3c4e2;
  opacity: 1;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 8cqh;
  object-fit: contain;
}

.experience-header .storefront-cta {
  gap: .6cqh;
  text-shadow: none;
}
.experience-header .storefront-cta strong {
  display: block;
  color: var(--text);
  font-size: 3.35cqw;
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-shadow: none;
}
.experience-header .storefront-cta > span {
  font-size: 2.3cqw;
  font-weight: 400;
  line-height: 1.3;
  color: #564269;
}
.experience-header .storefront-cta small {
  font-size: 1.45cqw;
  line-height: 1.2;
  color: #70617c;
}
.experience-header .qr-panel { gap: .2cqh; opacity: 1; }
.experience-header .qr-box {
  width: 14.5cqw;
  height: 14.5cqw;
  max-width: 9cqh;
  max-height: 9cqh;
  padding: .6cqw;
  border-radius: 12px;
}
.experience-header .qr-copy span {
  font-size: 1.8cqw;
  font-weight: 700;
  color: var(--text);
}

.storefront-mode .viewer-stage,
.mirror-mode .viewer-stage {
  border: 1.2cqw solid #e7ddf1;
  border-radius: 4cqw;
  background: #e7ddf1;
  opacity: 1;
  box-shadow: 0 0 0 2px #c5afdc, 0 8px 24px rgba(76, 38, 142, .08);
}

.gesture-zone,
.storefront-mode .gesture-zone,
.mirror-mode .gesture-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .8cqw;
  width: 16%;
  height: 5.2cqw;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  opacity: 1;
  transform: translateY(-50%);
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
.gesture-left { left: 7%; }
.gesture-right { right: 7%; }
.gesture-zone::before { display: none; }
.gesture-icon,
.gesture-right .gesture-icon {
  flex: 0 0 auto;
  order: 0;
  width: 4.4cqw;
  height: 4.4cqw;
  border: 0;
  border-radius: 50%;
  background: #e9dff4;
  box-shadow: none;
}
.gesture-icon img { width: 42%; height: 42%; opacity: .82; }
.gesture-right .gesture-icon img { transform: rotate(180deg); }
.gesture-copy, .gesture-right .gesture-copy { order: 1; }
.gesture-copy strong {
  writing-mode: horizontal-tb;
  font-size: 1.7cqw;
  font-weight: 500;
  line-height: 1.15;
}
.gesture-zone:hover .gesture-icon { background: #d8c5ee; }
.gesture-zone:focus-visible { outline: 2px solid #65509a; outline-offset: 3px; border-radius: 12px; }
.gesture-zone.is-hot { background: none; border: 0; box-shadow: none; }
.gesture-zone.is-hot .gesture-icon { background: #d5a0c7; box-shadow: 0 0 0 4px #773dbd; }
.gesture-progress { inset: auto auto 0; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }

.mirror-hint {
  position: absolute;
  inset: var(--mirror-hint-top) 24% auto;
  height: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  color: #564269;
  font-size: 2cqw;
  font-weight: 400;
}
.mirror-hint img { width: 3.3cqw; height: 3.3cqw; opacity: 1; }

.carousel-panel::before {
  content: "";
  position: absolute;
  top: -1.1cqh;
  left: 3%;
  width: 94%;
  border-top: 1px solid #d1c0e0;
}
.storefront-mode .carousel-panel,
.mirror-mode .carousel-panel {
  opacity: 1;
  padding: 1.4cqh 2cqw;
  background: #f2edf7;
  border: 1px solid #dfd4e9;
  border-radius: 2.8cqw;
  box-shadow: none;
  backdrop-filter: none;
}
.storefront-mode .carousel-track,
.mirror-mode .carousel-track {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr) minmax(0, 1fr);
  gap: 1.2cqw;
  align-items: center;
  perspective: none;
}
.storefront-mode .lens-card,
.storefront-mode .lens-card.is-active,
.storefront-mode .lens-card:not(.is-active),
.mirror-mode .lens-card {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  padding: .5cqh .5cqw 1.2cqh;
  border: 1px solid #d8cce4;
  border-radius: 2cqw;
  background: #fff;
  color: var(--text);
  opacity: 1;
  transform: none;
  box-shadow: 0 5px 12px rgba(62, 33, 94, .06);
  backdrop-filter: none;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .2cqh;
  overflow: hidden;
}
.storefront-mode .lens-card.is-active {
  z-index: 3;
  border: 2px solid #65509a;
  box-shadow: 0 12px 26px rgba(76, 38, 142, .14);
}
.storefront-mode .lens-card:not(.is-active) {
  height: 76%;
  padding-bottom: 1.5cqh;
  transform: scale(.94);
}
.storefront-mode .lens-card.is-prev { transform: perspective(70cqw) scale(.94) rotateY(-26deg); transform-origin: right center; }
.storefront-mode .lens-card.is-next { transform: perspective(70cqw) scale(.94) rotateY(26deg); transform-origin: left center; }
.storefront-mode .lens-card:not(.is-active):hover { border-color: #65509a; }
.storefront-mode .lens-card:not(.is-active) .lens-meta { display: block; padding: .8cqh .6cqw 0; text-align: center; }
.storefront-mode .lens-card .lens-visual { border: 0; border-radius: 1.4cqw; box-shadow: none; opacity: 1; overflow: clip; }
.storefront-mode .lens-card.is-active .model-gallery.has-product-photo img { transform: scale(1.04); }
.storefront-mode .lens-card:not(.is-active) .model-gallery.has-product-photo img { transform: scale(1.15); opacity: 1; }
.storefront-mode .lens-card.is-active .lens-name { font-size: 3.5cqw; font-weight: 700; line-height: 1.12; }
.storefront-mode .lens-card.is-active .lens-variant { margin-top: .8cqh; font-size: 1.5cqw; font-weight: 400; line-height: 1.2; letter-spacing: .12em; color: #65509a; }
.storefront-mode .lens-card.is-active .lens-meta { padding: .8cqh 1cqw 0; }
.storefront-mode .lens-card:not(.is-active) .lens-name { font-size: 1.8cqw; font-weight: 600; line-height: 1.25; white-space: normal; }
.storefront-mode .lens-card:not(.is-active) .lens-variant { margin-top: .5cqh; font-size: 1.05cqw; font-weight: 400; line-height: 1.25; letter-spacing: .04em; white-space: normal; color: #65509a; }
.lens-price { display: none; }
.gallery-badge { background: #f6f2fa; color: #65509a; font-size: max(9px, 1.05cqw); padding: 3px 7px; }
.gallery-controls { bottom: 0; padding: 0; border: 0; gap: 1cqw; border-radius: 0; background: #fff; color: var(--text); }
.gallery-counter { font-size: 1.35cqw; }
.gallery-controls > button { display: none; }
.gallery-counter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gallery-pagination { display: flex; gap: .7cqw; max-width: 44cqw; overflow-x: auto; }
.gallery-controls .gallery-dot {
  display: block;
  width: 3.5cqw;
  height: 3.5cqw;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1cqw solid #fff;
  border-radius: 50%;
  background: #e9dff4;
  background-image: none;
  transform: none;
}
.gallery-controls .gallery-dot[aria-pressed="true"] { background: #2c3029; }
.gallery-controls .gallery-dot:hover { background: #a186bd; }
.gallery-controls button { width: 3.8cqw; height: 3.8cqw; min-width: 26px; min-height: 26px; font-size: 0; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hldnJvbi1sZWZ0IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjM1NCAxLjY0NmEuNS41IDAgMCAxIDAgLjcwOEw1LjcwNyA4bDUuNjQ3IDUuNjQ2YS41LjUgMCAwIDEtLjcwOC43MDhsLTYtNmEuNS41IDAgMCAxIDAtLjcwOGw2LTZhLjUuNSAwIDAgMSAuNzA4IDAiLz4KPC9zdmc+'); background-position: center; background-size: 32%; background-repeat: no-repeat; }
.gallery-controls button:last-child { transform: rotate(180deg); }
.gallery-controls button img { position: static; inset: auto; width: 36%; height: 36%; margin: 0; transform: none; filter: none; }
.gallery-controls button:last-child img { transform: rotate(180deg); }

.experience-footer {
  position: absolute;
  inset: auto 19% 1.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  color: #8a729f;
  font-size: 1.8cqw;
  font-weight: 400;
  letter-spacing: .32em;
}
.experience-footer::before, .experience-footer::after { content: ""; flex: 1; border-top: 1px solid #d1c0e0; }
.status-pill { color: #2c3029; background: #f7f5f9; border-color: #d1c0e0; box-shadow: none; }

.detection-indicator {
  display: inline-block;
  max-width: 170px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(25,22,29,.72);
  color: rgba(255,255,255,.9);
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(7px);
}

.detection-indicator[data-state="detecting"] { background: rgba(112,75,25,.78); }
.detection-indicator[data-state="active"] { background: rgba(25,104,68,.82); }
.hand-cursor { filter: drop-shadow(0 3px 4px rgba(0,0,0,.22)); }

@media (max-width: 500px) and (orientation: portrait) {
  .experience-header { left: 6%; width: 88%; gap: 1.5cqw; grid-template-columns: 1fr 1.3fr auto; }
  .experience-header .brand-lockup { padding-right: 1.5cqw; }
  .experience-header .storefront-cta strong { font-size: 3.6cqw; }
  .experience-header .storefront-cta > span { font-size: 2.5cqw; }
  .experience-header .storefront-cta small { font-size: 2.1cqw; }
  .experience-header .qr-copy span { font-size: 2.1cqw; }
  .gesture-copy strong { font-size: 2.1cqw; }
  .mirror-hint { font-size: 2cqw; gap: 1cqw; }
}

@media (orientation: landscape) {
  .mirror-shell, .mirror-shell.storefront-mode, .mirror-shell.mirror-mode {
    --mirror-hint-top: calc(var(--mirror-top) + var(--mirror-height) - 4.2%);
  }
  .experience-header { grid-template-columns: .7fr 2fr auto; }
  .brand-logo { max-height: 8cqh; }
  .experience-header .storefront-cta strong { font-size: 3.4cqh; }
  .experience-header .storefront-cta > span { font-size: 2cqh; }
  .experience-header .storefront-cta small { display: none; }
  .experience-header .qr-copy span { font-size: 1.5cqh; }
  .gesture-icon, .gesture-right .gesture-icon { width: 7cqh; height: 7cqh; }
  .gesture-copy strong, .mirror-hint { font-size: 2.4cqh; }
  .mirror-hint img { width: 3.8cqh; height: 3.8cqh; }
  .storefront-mode .lens-card.is-active { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .storefront-mode .lens-card.is-active .lens-name { font-size: 3.4cqh; }
  .storefront-mode .lens-card.is-active .lens-variant { font-size: 1.7cqh; }
  .gallery-counter { font-size: 1.5cqh; }
  .gallery-controls button { width: 3cqh; height: 3cqh; }
  .experience-footer { font-size: 1.8cqh; }
}

/* The interaction row never changes geometry when presence changes. */
.experience-header .storefront-cta small { display: none; }
.mirror-hint { visibility: hidden; border-radius: 999px; }
.mirror-shell[data-presence-mode="mirror"] .mirror-hint { visibility: visible; }
.mirror-shell[data-gesture-state="holding"] .mirror-hint { background: #eee8fa; color: #65509a; }
.mirror-shell[data-gesture-state="changed"] .mirror-hint { background: #773dbd; color: #fff; }
.mirror-shell[data-gesture-state="changed"] .mirror-hint img { filter: invert(1); }
.gesture-zone.is-hot .gesture-icon { background: #d5a0c7; box-shadow: 0 0 0 3px #773dbd; }
.gesture-progress { display: none; }
.gallery-controls .gallery-dot[aria-pressed="true"] { background: #773dbd; }

/* One visible action: raising a hand advances. Keep keyboard fallback in the controller. */
.gesture-zone, .storefront-mode .gesture-zone, .mirror-mode .gesture-zone { display: none; }
.mirror-hint { left: 20%; right: 20%; }

/* Messages float over the lower mirror; no separate instruction band. */
.mirror-hint { z-index: 5; background: rgba(255,255,255,.96); color: #2c3029; padding: .4cqh 1.5cqw; box-shadow: 0 3px 16px rgba(0,0,0,.12); pointer-events: none; }
.storefront-mode .carousel-panel, .mirror-mode .carousel-panel { display: flex; flex-direction: column; gap: .8cqh; }
.carousel-caption { display: flex; align-items: center; justify-content: space-between; flex: 0 0 2.2cqh; padding: 0 1cqw; font-size: 1.8cqw; color: #65509a; }
#modelPosition { font-weight: 700; }
#modelLoop { font-size: 1.5cqw; }
.storefront-mode .carousel-track, .mirror-mode .carousel-track { flex: 1; min-height: 0; height: auto; }
.experience-header .qr-copy { display: none; }
.experience-header .qr-box { width: 18cqw; height: 18cqw; max-width: 9.5cqh; max-height: 9.5cqh; padding: .3cqw; }
.experience-header .storefront-cta small { display: block; color: #65509a; font-size: 1.6cqw; }
.qr-box [hidden] { display: none !important; }
.qr-fallback { text-align: center; font-size: 1.6cqw; line-height: 1.6; font-weight: 700; }

/* Camera above the TV: continuous mirror and balanced logo / QR / message header. */
.experience-header {
  top: 2%; left: 6%; width: 88%; height: 15%;
  grid-template-columns: minmax(0, 1fr) 24cqw minmax(0, 1fr);
  gap: 3cqw; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.experience-header .brand-lockup { grid-column: 1; grid-row: 1; border: 0; padding: 0; height: auto; align-items: center; }
.brand-logo { width: 22cqw; max-width: 100%; max-height: 10cqh; }
.experience-header .qr-panel { grid-column: 2; grid-row: 1; justify-self: center; }
.experience-header .qr-box { width: 24cqw; height: 24cqw; max-width: 13cqh; max-height: 13cqh; border-radius: 1cqw; padding: .4cqw; box-shadow: none; }
.experience-header .storefront-cta { grid-column: 3; grid-row: 1; min-width: 0; gap: .9cqh; align-items: flex-start; text-align: left; }
.experience-header .storefront-cta strong { font-size: 3.2cqw; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.experience-header .storefront-cta > span { font-size: 2cqw; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.experience-header .storefront-cta small { font-size: 1.55cqw; line-height: 1.3; }
.storefront-mode .viewer-stage, .mirror-mode .viewer-stage { border: 0; border-radius: 0; box-shadow: none; background: #f7f5f9; }
.storefront-mode .carousel-panel, .mirror-mode .carousel-panel { border: 0; border-radius: 0; background: none; padding: .4cqh 0; }
.carousel-panel::before { display: none; }

/* A frozen, blurred camera frame lends the surrounding light to the whole display. */
.ambient-snapshot {
  position: absolute; inset: -5%; width: 110%; height: 110%;
  object-fit: cover; filter: blur(32px) saturate(.65);
  opacity: 0; pointer-events: none; z-index: 0;
  transition: opacity 1.2s ease;
}
.mirror-shell[data-ambient="ready"] .ambient-snapshot { opacity: var(--ambient-opacity, .40); }
.experience-header::before {
  content: ""; position: absolute; inset: -2cqh -6cqw -1cqh;
  background: rgba(255,255,255,.48); z-index: -1; pointer-events: none;
}
.experience-header { isolation: isolate; }
.experience-header .qr-box { background: #fff; }
.storefront-mode .lens-card, .mirror-mode .lens-card { background: rgba(255,255,255,.76); }
.storefront-mode .lens-card.is-active, .mirror-mode .lens-card.is-active { background: rgba(255,255,255,.88); }
.carousel-caption { background: rgba(255,255,255,.50); border-radius: .6cqw; }
.storefront-mode .viewer-stage, .mirror-mode .viewer-stage {
  mask-image: linear-gradient(to bottom, transparent, #000 2%, #000 98%, transparent);
}
@media (prefers-reduced-motion: reduce) { .ambient-snapshot { transition: none; } }
/* Keep the fixed display from scrolling when Chrome focuses a carousel card. */
.mirror-shell { overflow: clip; }

.camera-zoom-controls {
  position: absolute;
  top: 2.2%;
  left: 61.5%;
  right: auto;
  z-index: 30;
  color: #564269;
  font-size: clamp(12px, 1.5cqw, 18px);
}
.camera-zoom-controls summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(119, 61, 189, .72);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  color: #773dbd;
  box-shadow: 0 4px 18px rgba(45, 28, 64, .20);
  list-style: none;
  cursor: pointer;
}
.camera-zoom-controls summary::-webkit-details-marker { display: none; }
.camera-zoom-controls output { font-variant-numeric: tabular-nums; font-weight: 600; }
.camera-zoom-controls[open] summary { background: #ede6f5; }
.camera-zoom-panel {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: min(300px, 88vw);
  padding: 16px;
  border: 1px solid #dfd4e9;
  border-radius: 16px;
  background: #fcfbfd;
  box-shadow: 0 8px 32px rgba(45, 28, 64, .16);
}
.camera-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.camera-settings-heading > strong { color: #2c3029; font-size: 14px; }
.camera-zoom-panel label { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-weight: 650; color: #2c3029; }
.camera-zoom-panel p { margin: 6px 0 10px; font-size: 13px; line-height: 1.4; }
.camera-zoom-panel input { display: block; width: 100%; height: 36px; margin: 0; accent-color: #773dbd; cursor: pointer; }
.camera-zoom-limits { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.camera-zoom-panel button { display: block; min-height: 36px; margin: 16px 0 0; padding: 6px 12px; border-radius: 8px; color: #564269; background: #ede6f5; cursor: pointer; }
.camera-zoom-controls :is(summary, input, button):focus-visible { outline: 2px solid #773dbd; outline-offset: 3px; }
.camera-zoom-panel { max-height: 78cqh; overflow-y: auto; }
.camera-zoom-panel .ambient-auto-label { align-items: center; justify-content: flex-start; font-weight: 400; }
.camera-zoom-panel .ambient-auto-label input { width: 18px; height: 18px; flex: 0 0 18px; }
.camera-zoom-panel #ambientCapture { background: #65509a; color: #fff; }
.camera-zoom-panel button:disabled { opacity: .6; cursor: wait; }
#ambientCaptureStatus { color: #564269; }
/* Two model-specific QR codes frame the compact brand and direct instructions. */
.experience-header { grid-template-columns: 24cqw minmax(0,1fr) 24cqw; gap: 2cqw; height: 15%; }
.experience-header .whatsapp-panel { grid-column: 1; }
.experience-header .purchase-panel { grid-column: 3; }
.experience-header .qr-panel { grid-row: 1; gap: .5cqh; }
.experience-header .qr-box { width: 21cqw; height: 21cqw; max-width: 11.5cqh; max-height: 11.5cqh; }
.header-center { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 1cqh; min-width: 0; }
.header-center .brand-logo { width: 19cqw; max-height: 4.5cqh; }
.experience-header .header-center .storefront-cta { text-align: center; align-items: center; gap: .65cqh; }
.experience-header .storefront-cta strong { font-size: 2.8cqw; }
.experience-header .storefront-cta > span { font-size: 2cqw; white-space: pre-line; }
.experience-header .storefront-cta small { font-size: 1.6cqw; }
.qr-caption { text-align: center; font-size: 1.6cqw; line-height: 1.25; color: #2c3029; }
/* Contextual guides occupy the sides of the live mirror, keeping the face clear. */
.gesture-guides {
  position: absolute; top: var(--mirror-top); left: var(--mirror-left);
  width: calc(100% - var(--mirror-left) * 2); height: var(--mirror-height);
  z-index: 5; pointer-events: none; visibility: hidden;
}
.mirror-shell[data-presence-mode="mirror"] .gesture-guides { visibility: visible; }
.gesture-guide {
  position: absolute; top: 19%; width: 22%; height: 40%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5cqh; padding: 1.2cqw; text-align: center;
  color: #fff; background: rgba(48,35,67,.16);
  border: 1px solid rgba(255,255,255,.48); border-radius: 2cqw;
  text-shadow: 0 1px 4px rgba(0,0,0,.7); font-size: 2cqw; line-height: 1.22;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gesture-guide-left { left: 5%; }
.gesture-guide-right { right: 5%; }
.gesture-guide-arrow { font-size: 4cqw; line-height: 1; }
.gesture-guide-hand { display: block; width: 4.8cqw; height: 4.8cqw; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.gesture-guide-left .gesture-guide-hand { transform: scaleX(-1); }
.gesture-guide strong { font-size: 2.6cqw; letter-spacing: .025em; }
.gesture-guide-action { font-weight: 650; }
.gesture-guide-feedback { margin-top: .6cqh; font-size: 1.45cqw; max-width: 17cqw; }
.mirror-shell[data-gesture-side="left"] .gesture-guide-left,
.mirror-shell[data-gesture-side="right"] .gesture-guide-right {
  background: rgba(101,80,154,.45); border-color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 22px rgba(119,61,189,.25);
}
@media (prefers-reduced-motion: reduce) { .gesture-guide { transition: none; } }
/* The shared stop instruction stays compact below the side guides. */
.mirror-hint { height: auto; min-height: 3cqh; font-size: 1.8cqw; line-height: 1.25; text-align: center; }
.storefront-invitation {
  position: absolute; z-index: 5; left: 16%; width: 68%;
  top: calc(var(--mirror-top) + var(--mirror-height) / 2); transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1cqh;
  padding: 2.3cqh 3cqw; border-radius: 2cqw;
  background: rgba(48,35,67,.22); border: 1px solid rgba(255,255,255,.48);
  color: #fff; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,.7);
  pointer-events: none; overflow-wrap: anywhere;
}
.storefront-invitation strong { font-size: 3.8cqw; line-height: 1.15; text-wrap: balance; }
.storefront-invitation span { font-size: 2.4cqw; line-height: 1.3; text-wrap: balance; }
.storefront-invitation[hidden], .mirror-shell[data-presence-mode="mirror"] .storefront-invitation { display: none; }
