/* Demo player HUD — sits on top of the real portal while a reel types and taps. */
#swfl-demo-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 240;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.88));
  border-bottom: 1px solid #334155;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: auto;
}
body.fp-vision-open #swfl-demo-hud {
  background: rgba(7, 17, 31, 0.72);
}
#swfl-demo-hud .swfl-demo-copy { flex: 1; min-width: 0; }
#swfl-demo-hud .swfl-demo-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}
#swfl-demo-hud .swfl-demo-say {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
#swfl-demo-hud .swfl-demo-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
#swfl-demo-hud button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
#swfl-demo-hud button.danger { background: #7f1d1d; }
#swfl-demo-finger {
  position: fixed;
  z-index: 230;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid #c4b5fd;
  background: rgba(147, 51, 234, 0.35);
  box-shadow: 0 0 0 6px rgba(147, 51, 234, 0.18);
  pointer-events: none;
  transition: top 0.18s ease, left 0.18s ease, opacity 0.15s;
}
.swfl-demo-target {
  outline: 2px solid #c4b5fd !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.25);
}
body.swfl-demo-playing { scroll-padding-top: 88px; }

.demo-studio h1 { margin: 0 0 8px; }
.demo-scenes { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .demo-scenes { grid-template-columns: 1fr 1fr; }
}
.demo-scene {
  margin: 0;
  text-align: left;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.demo-scene:hover, .demo-scene:focus { border-color: #9333ea; }
.demo-scene strong { display: block; font-size: 17px; margin-bottom: 4px; }
.demo-scene .muted { margin: 0; }
.demo-how { margin-top: 8px; }

.shop-check h1 { margin: 0 0 8px; }
.shop-check.is-up { border-color: #166534; }
.shop-check.is-down { border-color: #991b1b; }
.shop-check-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.shop-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.shop-check-list li.pass { border-color: #166534; }
.shop-check-list li.fail { border-color: #991b1b; }
.shop-check-list li.skip { border-color: #854d0e; }
.shop-check-list li strong { display: block; }
.shop-check-list .muted { display: block; margin-top: 2px; }
.shop-check-mark {
  flex-shrink: 0;
  min-width: 48px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.shop-check-list li.pass .shop-check-mark { background: #166534; color: #dcfce7; }
.shop-check-list li.fail .shop-check-mark { background: #991b1b; color: #fee2e2; }
.shop-check-list li.skip .shop-check-mark { background: #854d0e; color: #fef9c3; }
