/* 07 demo: the live AAA shop as a lit screen in a dark arena. Psycho Clown's entrance wall, graded into the ground,
   glows behind the browser like a jumbotron. Copy, test card and four still tiles sit in a narrow left column. */
/* 07 demo: the live AAA shop as the one lit object on a dark stage. A warm key light falls on the browser from above
   and pools on the floor under it; nothing else moves or glows. Left: what to do, as three steps in (enter, pay, leave),
   and the purchase in four stills that open inside the same frame if the connection is slow. */
#demo { overflow: hidden; background: var(--sf-dark); outline: none; }
#demo .demo__light { position: absolute; z-index: -1; left: 30%; right: -6%; top: -30%; height: 110%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgb(240 200 120 / 0.20), rgb(201 162 74 / 0.06) 55%, transparent 78%); }
#demo .demo__floor { position: absolute; z-index: -1; left: 36%; right: 2%; bottom: -14%; height: 34%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(214 176 92 / 0.20), rgb(214 176 92 / 0.05) 60%, transparent); filter: blur(10px); }

#demo .demo__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: center; }
#demo .h2 { font-size: var(--h2-size, 54px); line-height: 1.04; margin-bottom: 16px; }
#demo .say { font-size: 22px; max-width: 15em; }

#demo .demo__steps { display: grid; gap: 10px; margin: 20px 0 0; padding: 16px 0 0; list-style: none; counter-reset: st; border-top: 1px solid var(--gold-line); }
#demo .demo__steps li { counter-increment: st; position: relative; padding-left: 40px; min-height: 28px; font-size: 19px; line-height: 1.4; color: var(--tx-on-dark-2); }
#demo .demo__steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 600; color: var(--accent-text-dark); box-shadow: inset 0 0 0 1px rgb(214 176 92 / 0.45); }
#demo .demo__steps b { font-weight: 600; color: var(--tx-on-dark); }
#demo .demo__steps em { display: block; margin-top: 2px; font-style: normal; font-size: 19px; font-weight: 500; letter-spacing: 0.04em; color: var(--tx-on-dark); font-variant-numeric: tabular-nums; }

#demo .demo__alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 0; font-size: 17px; color: var(--tx-on-dark-3); }
#demo .demo__alt span { flex-basis: 100%; font-size: 15px; }
#demo .demo__alt button { padding: 0; border: 0; background: none; cursor: pointer; font: 500 18px/1.5 var(--font); color: var(--tx-on-dark-2);
  text-decoration: underline; text-decoration-color: rgb(214 176 92 / 0.45); text-underline-offset: 4px; }
#demo .demo__alt button[aria-pressed="true"], #demo .demo__alt button:hover { color: var(--tx-on-dark); text-decoration-color: #e0b456; }
#demo .demo__alt button:focus-visible { outline: 2px solid #e0b456; outline-offset: 3px; border-radius: 4px; }

/* browser frame with the live shop */
#demo .demo__stage { position: relative; }
#demo .demo__win { position: relative; display: flex; flex-direction: column; height: min(calc(100vh - 150px), 900px); min-height: 480px; border-radius: 16px;
  background: #0d0908; box-shadow: 0 0 0 1px rgb(240 210 140 / 0.22), 0 60px 110px -30px rgb(0 0 0 / 0.95), 0 0 140px -10px rgb(214 176 92 / 0.24); }
#demo .m-win__bar { flex: none; gap: 12px; background: #24201e; }
#demo .m-win__dots i { background: rgb(246 239 226 / 0.2); }
#demo .m-url { background: rgb(246 239 226 / 0.08); color: var(--tx-on-dark-2); }
#demo .m-url svg { color: var(--ok-on-dark); }
#demo .demo__live { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft-dark); color: var(--ok-on-dark); font-size: 13px; font-weight: 600; }
#demo .demo__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-on-dark); box-shadow: 0 0 0 3px rgb(110 196 153 / 0.18); }
#demo .demo__back { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(246 239 226 / 0.08); color: var(--tx-on-dark-2); font-size: 13px; font-weight: 600; transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui); }
#demo .demo__back kbd { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border-radius: 5px; font: 600 10.5px/1 var(--font); box-shadow: inset 0 0 0 1px rgb(246 239 226 / 0.25); }
#demo.is-live .demo__back { background: var(--act-dark-bg); color: var(--act-dark-fg); }
#demo.is-live .demo__back kbd { box-shadow: inset 0 0 0 1px rgb(27 19 16 / 0.35); }
@media (hover: hover) and (pointer: fine) { #demo .demo__back:hover { background: rgb(246 239 226 / 0.16); color: var(--tx-on-dark); } #demo.is-live .demo__back:hover { background: var(--act-dark-hover); color: var(--act-dark-fg); } }

#demo .demo__view { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 16px 16px; background: #0d0908; }
#demo .demo__view iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; background: #0d0908; transform-origin: 0 0; }
/* the cover keeps wheel scrolling on the proposal until someone clicks into the shop */
#demo .demo__cover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: center; padding: 31% 0 0; border: 0; background: transparent; cursor: pointer; }
#demo .demo__cover span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: rgb(20 12 10 / 0.82); color: var(--tx-on-dark); box-shadow: inset 0 0 0 1px rgb(246 239 226 / 0.18), 0 12px 30px -10px rgb(0 0 0 / 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0.92; transition: opacity 200ms var(--ease-ui); }
#demo .demo__cover:hover span, #demo .demo__cover:focus-visible span { opacity: 1; background: #e0b456; color: #1b130f; }
#demo.is-live .demo__cover { display: none; }
#demo .demo__still { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 18px 18px 70px; background: #120b09; }
#demo .demo__still img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.9); }
#demo .demo__still button { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(246 239 226 / 0.12); color: var(--tx-on-dark); font: 600 14px/1 var(--font); }
html.demo-live, html.demo-live body { overflow: hidden; }
#demo .demo__tab { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(246 239 226 / 0.08); color: var(--tx-on-dark-2); font-size: 13px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { #demo .demo__tab:hover { background: rgb(246 239 226 / 0.16); color: var(--tx-on-dark); } }

@media (min-width: 1600px) {
  #demo .demo__grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; }
  #demo .h2 { font-size: 64px; }
  #demo .say { font-size: 24px; }
  #demo .demo__steps li, #demo .demo__steps em { font-size: 20px; }
}
@media (max-width: 1100px) {
  #demo .demo__grid { grid-template-columns: minmax(0, 1fr); }
  #demo .say { max-width: 27em; }
  #demo .demo__win { height: 70vh; min-height: 420px; }
}

