/* Playground Your Order, Live (08). Scope every rule under .live-experiment. */
.live-experiment .live-stage {
  /* LukApp's own colours: the night navy of 06, LukApp blue, and its light blue for words. */
  --lv-blue: #0868f8;
  --lv-bright: #4d94ff;
  --lv-sky: #8fb4ff;
  --lv-line: #1c2a4a;
  --lv-muted: #9aa8c6;
  --lv-live: #5ea2ff;
  --acc: var(--lv-blue);
  background:
    radial-gradient(46% 34% at 27% 58%, rgba(8, 104, 248, 0.3) 0%, rgba(8, 104, 248, 0) 100%),
    radial-gradient(70% 40% at 100% 0%, rgba(77, 148, 255, 0.12) 0%, rgba(77, 148, 255, 0) 70%),
    linear-gradient(180deg, #071231 0%, #050a19 100%);
  color: #eef3ff;
  padding: 30px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}
.live-experiment .lv { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.live-experiment .lv-head h3 em { color: var(--lv-sky); }
.live-experiment .lv-head p { max-width: 36ch; }
.live-experiment .lv-label { margin: 0 0 10px; font-size: 0.8125rem; color: var(--lv-muted); }

/* ---- business chips ---- */
.live-experiment .lv-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.live-experiment .lv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--lv-line);
  border-radius: 14px;
  background: rgba(143, 180, 255, 0.04);
  color: #c9d5ef;
  font: 500 0.8125rem/1.2 var(--sans, "DM Sans", sans-serif);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.live-experiment .lv-chip:hover { border-color: #2d4274; color: #fff; }
.live-experiment .lv-chip:focus-visible { outline: 3px solid var(--lv-sky); outline-offset: 2px; }
.live-experiment .lv-chip .lv-sym { width: 17px; height: 17px; color: color-mix(in oklab, var(--acc, #8fb4ff) 80%, #fff); }
.live-experiment .lv-chip[aria-pressed="true"] { background: var(--lv-blue); border-color: var(--lv-blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(8, 104, 248, 0.9); }
.live-experiment .lv-chip[aria-pressed="true"] .lv-sym { color: #fff; }
.live-experiment .lv-sym { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the body: the phone on the left; the businesses and the live stages beside it; stacked when narrow ---- */
/* When the neighbouring card is taller, the spare room goes around the phone, not under the foot. */
.live-experiment .lv-body {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  grid-template-areas: "phone pick" "phone side";
  grid-template-rows: auto 1fr;
  gap: 28px 28px;
  align-items: start;
  margin-block: auto;
}
.live-experiment .lv-pick { grid-area: pick; min-width: 0; }
.live-experiment .lv-phone-wrap { grid-area: phone; display: flex; justify-content: center; min-width: 0; }
.live-experiment .lv-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@container (max-width: 559px) {
  .live-experiment .lv-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pick" "phone" "side"; grid-template-rows: none; gap: 24px; }
  .live-experiment .lv-chips { display: flex; flex-wrap: wrap; }
  .live-experiment .lv-chip { min-height: 40px; border-radius: 99px; padding: 6px 12px 6px 10px; }
}

/* ---- stage list: the stage now running grows; the rail between dots fills as the order moves ---- */
.live-experiment .lv-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.live-experiment .lv-stages li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 0 0 16px;
  color: var(--lv-muted);
  font-size: 0.875rem;
  transition: color 0.3s;
}
.live-experiment .lv-stages li:last-child { padding-bottom: 0; }
.live-experiment .lv-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--lv-blue), var(--lv-bright)) 0 0 / 100% calc(var(--seg, 0) * 100%) no-repeat, var(--lv-line);
}
.live-experiment .lv-st-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #2c3d66;
  background: #071231;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.live-experiment .lv-st-dot svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.live-experiment .lv-st-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--lv-bright);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.3s;
}
.live-experiment .lv-st-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.live-experiment .lv-st-name { line-height: 1.3; transition: font-size 0.3s, color 0.3s; }
.live-experiment .lv-st-sub { display: none; font-size: 0.8125rem; line-height: 1.4; color: var(--lv-muted); }
.live-experiment .lv-st-eta { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lv-sky); white-space: nowrap; }
.live-experiment .lv-st-eta:empty { display: none; }
.live-experiment li.is-now { color: #fff; }
.live-experiment li.is-now .lv-st-name { font: 500 1.25rem/1.2 var(--display, "Space Grotesk", sans-serif); letter-spacing: -0.02em; }
.live-experiment li.is-now .lv-st-sub { display: block; }
.live-experiment li.is-now .lv-st-eta { padding: 5px 10px; border-radius: 99px; background: rgba(8, 104, 248, 0.2); box-shadow: inset 0 0 0 1px rgba(77, 148, 255, 0.35); }
.live-experiment li.is-now .lv-st-dot { border-color: var(--lv-bright); box-shadow: 0 0 0 5px rgba(8, 104, 248, 0.22), 0 0 18px rgba(77, 148, 255, 0.55); }
.live-experiment li.is-now .lv-st-dot::after { opacity: 1; transform: scale(1); }
.live-experiment li.is-past { color: #c9d5ef; }
.live-experiment li.is-past .lv-st-dot { border-color: var(--lv-blue); background: var(--lv-blue); }
.live-experiment li.is-past .lv-st-dot svg { opacity: 1; transform: none; }
.live-experiment .lv-caption { margin: 0; min-height: 2.8em; font-size: 0.875rem; line-height: 1.5; color: var(--lv-muted); }
.live-experiment .lv-fromicon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--lv-muted);
}
.live-experiment .lv-fromicon svg { width: 14px; height: 14px; fill: none; stroke: var(--lv-sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the phone ---- */
/* The phone's colours: LukApp blue until a business is picked, then that business's (set from the script). */
.live-experiment .lv-phone.is-lukapp { --acc-deep: #0868f8; --lv-live: #5ea2ff; }
.live-experiment .lv-phone {
  --acc: #0868f8;
  --acc2: #4d94ff;
  --acc-deep: color-mix(in oklab, var(--acc) 70%, #000);
  --lv-live: var(--acc2);
  width: 292px;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(150deg, #3b3e48, #16181d 38%, #0c0d10 70%, #2a2c33);
  box-shadow: inset 0 0 0 1px rgba(143, 180, 255, 0.16), 0 0 0 1px #03060f, 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 30px 90px -40px color-mix(in oklab, var(--acc) 75%, transparent);
  font-family: var(--sans, "DM Sans", sans-serif);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@container (max-width: 300px) {
  .live-experiment .lv-phone { zoom: 0.8; }
}
.live-experiment .lv-screen {
  position: relative;
  width: 274px;
  height: 560px;
  border-radius: 39px;
  /* clip, not hidden: a hidden box can still be scrolled by focus or scrollIntoView, which slid the app and the island up */
  overflow: hidden;
  overflow: clip;
  background: #eef0f2;
  color: #0d1424;
  isolation: isolate;
  touch-action: pan-y;
}
.live-experiment .lv-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s, transform 0.4s;
}
.live-experiment .lv-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 8px 20px 0 26px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.live-experiment .lv-status .lv-time { margin-right: auto; }
.live-experiment .lv-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.live-experiment .lv-sig i { width: 3px; border-radius: 1px; background: currentColor; }
.live-experiment .lv-sig i:nth-child(1) { height: 4px; }
.live-experiment .lv-sig i:nth-child(2) { height: 6px; }
.live-experiment .lv-sig i:nth-child(3) { height: 8px; }
.live-experiment .lv-sig i:nth-child(4) { height: 10px; }
.live-experiment .lv-batt { width: 26px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: 0.9; }
.live-experiment .lv-batt-fill { fill: currentColor; stroke: none; }

.live-experiment .lv-appbody { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 0; min-height: 0; }
.live-experiment .lv-greet { margin: 0; font-size: 12px; font-weight: 500; color: #5a6478; }
.live-experiment .lv-bizname {
  margin: 2px 0 18px;
  font: 500 24px/1.15 var(--display, "Space Grotesk", sans-serif);
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-experiment .lv-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 15px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--acc2), var(--acc) 52%, color-mix(in oklab, var(--acc) 80%, #000));
  box-shadow: 0 18px 30px -18px color-mix(in oklab, var(--acc) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: background 0.4s;
  overflow: hidden;
}
.live-experiment .lv-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
.live-experiment .lv-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.live-experiment .lv-hero-sym { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.live-experiment .lv-hero-sym .lv-sym { width: 21px; height: 21px; }
.live-experiment .lv-hero-ready {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.live-experiment .lv-hero-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.live-experiment .lv-hero-meta { font-size: 12px; opacity: 0.88; }
.live-experiment .lv-rows { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.live-experiment .lv-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(13, 20, 36, 0.06); }
.live-experiment .lv-rows i { width: 34px; height: 34px; border-radius: 11px; background: color-mix(in oklab, var(--acc) 16%, #fff); }
.live-experiment .lv-rows span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-experiment .lv-rows b { font-size: 13px; font-weight: 600; }
.live-experiment .lv-rows small { font-size: 11px; color: #5a6478; }

/* The one big button. Its width and scale are driven by springs; the ring and tick live inside it. */
.live-experiment .lv-cta-wrap { position: relative; display: flex; justify-content: center; margin-top: auto; padding-bottom: 12px; }
.live-experiment .lv-cta {
  position: relative;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 26px;
  background: var(--acc-deep);
  color: #fff;
  font: 600 15px/1 var(--sans, "DM Sans", sans-serif);
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 12px 24px -12px color-mix(in oklab, var(--acc) 90%, #000);
  transition: background-color 0.3s, color 0.3s, opacity 0.25s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.live-experiment .lv-cta:hover { background: color-mix(in oklab, var(--acc-deep) 88%, #000); }
.live-experiment .lv-cta:focus-visible { outline: 3px solid var(--acc-deep); outline-offset: 3px; }
.live-experiment .lv-cta-label { display: block; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.15s; }
.live-experiment .lv-cta.is-busy .lv-cta-label { opacity: 0; }
.live-experiment .lv-cta-ring,
.live-experiment .lv-cta-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  opacity: 0;
}
.live-experiment .lv-cta-ring { border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; transition: opacity 0.15s; }
.live-experiment .lv-cta.is-spin .lv-cta-ring { opacity: 1; animation: lv-spin 0.75s linear infinite; }
.live-experiment .lv-cta-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.live-experiment .lv-cta-tick path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.live-experiment .lv-cta.is-tick .lv-cta-tick { opacity: 1; }
.live-experiment .lv-cta.is-tick .lv-cta-tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-experiment .lv-cta.is-gone { opacity: 0; transition: none; }
.live-experiment .lv-cta.is-placed { background: color-mix(in oklab, var(--acc) 16%, #fff); color: color-mix(in oklab, var(--acc) 80%, #000); box-shadow: none; cursor: default; }
.live-experiment .lv-haptic { position: absolute; inset: 0 0 12px; width: 100%; height: auto; margin: 0; opacity: 0.011; cursor: pointer; }
.live-experiment .lv-homebar { flex: none; height: 22px; position: relative; }
.live-experiment .lv-homebar::before { content: ""; position: absolute; left: 50%; bottom: 7px; width: 100px; height: 4px; margin-left: -50px; border-radius: 4px; background: rgba(13, 20, 36, 0.8); }
@keyframes lv-spin { to { transform: rotate(360deg); } }

/* The ghost that flies from the button into the island. */
.live-experiment .lv-fly {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  background: var(--acc-deep);
  color: #fff;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--acc) 90%, #000);
  pointer-events: none;
  will-change: transform, width, height;
}
.live-experiment .lv-fly svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the island ---- */
.live-experiment .lv-island {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 11px;
  width: 84px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #000;
  color: #fff;
  transform: translateX(-50%);
  overflow: hidden;
  cursor: pointer;
  contain: layout paint;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sans, "DM Sans", sans-serif);
  transition: box-shadow 0.4s;
}
.live-experiment .lv-island.is-x { touch-action: none; }
.live-experiment .lv-island:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* A live island wears a thin keyline in the app's own colour, as iOS tints it. */
.live-experiment .lv-island.is-live { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in oklab, var(--acc) 50%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--acc2) 18%, transparent); }
/* While the shape changes, the outgoing words blur out at once and the new ones blur in once the
   shape has mostly grown. The rule on the state being entered sets the timing. */
.live-experiment .lv-c,
.live-experiment .lv-xwrap {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  filter: blur(4px);
  transition: opacity 0.12s ease-in, filter 0.12s ease-in, transform 0.12s ease-in;
}
/* The compact row is laid out at the compact size, whatever the shape is doing right now. */
.live-experiment .lv-c { width: 236px; height: 38px; padding: 0 9px 0 8px; gap: 8px; opacity: 0; box-sizing: border-box; }
.live-experiment .lv-island.is-live .lv-c { opacity: 1; filter: blur(0); transition: opacity 0.24s 0.12s, filter 0.24s 0.12s; }
.live-experiment .lv-island.is-live.is-x .lv-c { opacity: 0; filter: blur(4px); transition: opacity 0.12s ease-in, filter 0.12s ease-in; }
.live-experiment .lv-c-sym,
.live-experiment .lv-x-sym,
.live-experiment .lv-note-sym {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--acc2), var(--acc));
  color: #fff;
}
.live-experiment .lv-c-sym .lv-sym,
.live-experiment .lv-x-sym .lv-sym,
.live-experiment .lv-note-sym .lv-sym { width: 14px; height: 14px; stroke-width: 2; }
.live-experiment .lv-c-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.live-experiment .lv-c-t { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.live-experiment .lv-c-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.live-experiment .lv-c-bar[hidden] { display: none; }
.live-experiment .lv-c-bar b,
.live-experiment .lv-x-bar b { display: block; height: 100%; border-radius: inherit; background: var(--lv-live); transform-origin: 0 50%; transform: scaleX(0); }
.live-experiment .lv-c-eta,
.live-experiment .lv-x-eta { flex: none; display: inline-flex; align-items: center; gap: 0.25em; font-size: 12.5px; font-weight: 600; color: var(--lv-live); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Rolling minutes: one column per digit, like an odometer. The soft mask hides the digit leaving. */
.live-experiment .lv-roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.live-experiment .lv-dg {
  display: block;
  height: 1.2em;
  line-height: 1.2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.live-experiment .lv-dg-col { display: flex; flex-direction: column; will-change: transform; }
.live-experiment .lv-dg-col > span { display: block; height: 1.2em; }
.live-experiment .lv-unit { line-height: 1.2; }
.live-experiment .lv-c-eta svg,
.live-experiment .lv-x-eta svg { display: block; width: 18px; height: 18px; fill: none; stroke: var(--lv-live); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* The expanded view: also the lock-screen card. */
.live-experiment .lv-xwrap { width: 250px; height: 150px; opacity: 0; transform: scale(0.96); transform-origin: 50% 0; pointer-events: none; }
.live-experiment .lv-island.is-x .lv-xwrap { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.26s 0.14s, filter 0.26s 0.14s, transform 0.36s 0.14s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-experiment .lv-x { display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; padding: 13px 14px 12px; box-sizing: border-box; text-align: left; }
.live-experiment .lv-x:empty { display: none; }
.live-experiment .lv-x-top { display: flex; align-items: center; gap: 10px; }
.live-experiment .lv-x-sym { width: 30px; height: 30px; border-radius: 9px; }
.live-experiment .lv-x-sym .lv-sym { width: 17px; height: 17px; }
.live-experiment .lv-x-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-experiment .lv-x-h { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; overflow: hidden; }
.live-experiment .lv-x-biz { font-size: 11px; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-experiment .lv-x-mid { flex: 1; display: flex; align-items: center; min-height: 34px; }
.live-experiment .lv-map { display: block; width: 100%; height: 100%; min-height: 34px; max-height: 62px; border-radius: 10px; background: #0b1428; overflow: hidden; }
.live-experiment .lv-map-streets path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 3; }
.live-experiment .lv-route { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 6; }
.live-experiment .lv-route-done { fill: none; stroke: var(--lv-live); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.live-experiment .lv-map-start { fill: rgba(255, 255, 255, 0.6); }
.live-experiment .lv-map-pin { fill: var(--lv-live); }
.live-experiment .lv-map-dot circle { fill: #fff; }
.live-experiment .lv-map-halo { fill: rgba(255, 255, 255, 0.18); animation: lv-halo 1.8s ease-out infinite; }
@keyframes lv-halo { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.live-experiment .lv-x-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.live-experiment .lv-x-steps { display: flex; gap: 5px; width: 100%; }
.live-experiment .lv-x-steps i { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); }
.live-experiment .lv-x-steps i.is-past { background: var(--acc); }
.live-experiment .lv-x-steps i.is-now { background: var(--lv-live); }
.live-experiment .lv-x-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-experiment .lv-x-line { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-experiment .lv-x-track {
  flex: none;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.live-experiment .lv-bloom {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 30px;
  width: 200px;
  height: 90px;
  margin-left: -100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--acc2) 80%, #fff), transparent);
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
}
.live-experiment .lv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the lock screen: LukApp's night, drawn in CSS ---- */
.live-experiment .lv-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(130% 50% at 50% 112%, #0868f8 0%, rgba(8, 104, 248, 0) 64%),
    radial-gradient(70% 36% at 92% 62%, rgba(77, 148, 255, 0.42) 0%, rgba(77, 148, 255, 0) 70%),
    radial-gradient(80% 40% at 6% 34%, rgba(26, 64, 168, 0.55) 0%, rgba(26, 64, 168, 0) 70%),
    linear-gradient(180deg, #02050f 0%, #061332 52%, #0a2c78 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.live-experiment .lv-lock::before {
  display: none; /* the horizon is the front layer (.lv-depth) now */
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -38%;
  height: 62%;
  border-radius: 50%;
  border-top: 1px solid rgba(143, 180, 255, 0.35);
  box-shadow: 0 -18px 60px -20px rgba(77, 148, 255, 0.55);
  pointer-events: none;
}
.live-experiment .is-locked .lv-lock { opacity: 1; pointer-events: auto; }
.live-experiment .is-locked .lv-app { opacity: 0; transform: scale(0.98); pointer-events: none; }
.live-experiment .lv-unlock { position: absolute; inset: 0; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
.live-experiment .lv-unlock:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 39px; }
.live-experiment .lv-lock > :not(.lv-unlock) { pointer-events: none; }
.live-experiment .lv-lock-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: 50px; transform: scale(1.06); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-experiment .is-locked .lv-lock-top { transform: none; }
/* Depth: LukApp's horizon is drawn as a front layer, so the lower edge of the clock sits behind the
   planet, as on an iOS depth wallpaper. It also settles a touch slower than the clock when the
   phone locks, which gives the two a sense of distance. */
.live-experiment .lv-depth {
  position: absolute;
  z-index: 1;
  left: -85%;
  top: 151px;
  width: 270%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(38% 14% at 50% 0%, rgba(77, 148, 255, 0.34), rgba(77, 148, 255, 0) 100%),
    linear-gradient(180deg, #071a4c 0, #08215e 110px, #0a2f86 250px, #0b4fd0 360px, #0868f8 440px);
  box-shadow: inset 0 1px 0 rgba(170, 200, 255, 0.75), inset 0 10px 22px -12px rgba(143, 180, 255, 0.55), 0 -16px 46px -18px rgba(77, 148, 255, 0.75);
  transform: translateY(14px) scale(1.04);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.live-experiment .is-locked .lv-depth { transform: none; }
/* The pile spread out: the clock steps back and up to make room. */
.live-experiment .lv-lock-top { margin-bottom: 0; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), margin-bottom 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-experiment .lv-lock.is-fanned .lv-lock-top { margin-bottom: -48px; transform: translateY(-28px) scale(0.78); transition-duration: 0.45s; }
.live-experiment .lv-lock-icon { transition: opacity 0.25s; }
.live-experiment .lv-lock.is-fanned .lv-lock-icon { opacity: 0; }
.live-experiment .lv-lock-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0.9; }
.live-experiment .lv-lock-date { margin: 12px 0 0; font-size: 14px; font-weight: 500; opacity: 0.9; letter-spacing: -0.01em; }
.live-experiment .lv-lock-clock { margin: -2px 0 0; font: 300 66px/1.1 var(--display, "Space Grotesk", sans-serif); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
/* The notifications pile up (newest on top, older ones peeking below, thinner) and spread into a
   list when tapped. The script springs each note and the pile's height; the notes sit on top of
   each other, so the pile's height is set by hand. */
.live-experiment .lv-notes {
  position: relative;
  z-index: 1;
  display: block;
  height: 0;
  margin: 16px 12px 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.live-experiment .lv-notes[hidden] { display: none; }
.live-experiment .lv-lock > .lv-notes.is-pile { pointer-events: auto; cursor: pointer; }
.live-experiment .lv-notes:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.live-experiment .lv-note {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: 50% 100%;
}
.live-experiment .lv-note > * { transition: opacity 0.25s; }
/* The layers under the top one show only their glass. */
.live-experiment .lv-note.is-under { background: rgba(190, 212, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.live-experiment .lv-note.is-under > * { opacity: 0; }
.live-experiment .lv-less {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.live-experiment .lv-notes.is-fanned .lv-less { opacity: 1; transform: none; transition-delay: 0.08s; }
.live-experiment .lv-note-sym { width: 30px; height: 30px; border-radius: 9px; }
.live-experiment .lv-note-sym .lv-sym { width: 17px; height: 17px; }
.live-experiment .lv-note-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.live-experiment .lv-note-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; }
.live-experiment .lv-note-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-experiment .lv-note-top small { font-size: 10px; opacity: 0.7; flex: none; }
.live-experiment .lv-note-body { font-size: 11.5px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-experiment .lv-lockcard {
  position: relative;
  z-index: 1;
  margin: 8px 12px 0;
  border-radius: 24px;
  background: rgba(3, 8, 22, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.live-experiment .lv-lockcard.is-on { opacity: 1; transform: none; }
.live-experiment .lv-lockcard .lv-x { height: 150px; }
/* A new stage while locked: the card brightens for a beat in the app's colour. */
.live-experiment .lv-lockglow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--acc2) 34%, transparent), transparent 72%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc2) 70%, transparent), 0 0 30px -8px color-mix(in oklab, var(--acc) 90%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.live-experiment .lv-lock-hint { position: absolute; z-index: 1; left: 0; right: 0; bottom: 34px; margin: 0; font-size: 11px; font-weight: 500; text-align: center; color: rgba(255, 255, 255, 0.72); }
.live-experiment .lv-sleep { position: absolute; inset: 0; z-index: 9; background: #000; opacity: 0; pointer-events: none; }
.live-experiment .lv-lock-tools { position: absolute; z-index: 1; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; padding: 0 34px; }
.live-experiment .lv-tool { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.live-experiment .lv-tool svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* ---- the foot: what just happened, the toggles and the brief ---- */
.live-experiment .lv-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--lv-line); }
.live-experiment .lv-msg { margin: 0; min-height: 1.4em; font-size: 0.8125rem; color: var(--lv-muted); }
.live-experiment .lv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.live-experiment .lv-toggles { display: flex; flex-wrap: wrap; gap: 7px; }
.live-experiment .lv-toggles .small-control { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-color: #2a3b63; }
.live-experiment .lv-toggles .small-control[aria-pressed="true"] { background: #0868f8; color: #fff; border-color: #0868f8; }
.live-experiment .lv-snd { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.live-experiment .lv-brief {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--lv-sky);
  font: 500 0.9375rem/1.3 var(--sans, "DM Sans", sans-serif);
  text-align: left;
  cursor: pointer;
  text-underline-offset: 4px;
}
.live-experiment .lv-brief:hover { text-decoration: underline; }
.live-experiment .lv-brief:focus-visible { outline: 3px solid var(--lv-sky); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 600px) {
  .live-experiment .live-stage { padding: 24px 18px 20px; }
  .live-experiment .lv { gap: 20px; }
}
@media (max-width: 360px) {
  .live-experiment .live-stage { padding-inline: 14px; }
  .live-experiment .lv-chip { padding: 6px 11px 6px 9px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-experiment .lv-map-halo { animation: none; opacity: 0.5; }
  .live-experiment .lv-c,
  .live-experiment .lv-xwrap,
  .live-experiment .lv-lock,
  .live-experiment .lv-app,
  .live-experiment .lv-lockcard,
  .live-experiment .lv-lock-top { transition-duration: 0.3s; }
  .live-experiment .lv-app,
  .live-experiment .lv-xwrap,
  .live-experiment .lv-depth,
  .live-experiment .is-locked .lv-lock-top { transform: none !important; }
  .live-experiment .lv-lock.is-fanned .lv-lock-top { transform: translateY(-28px) scale(0.78) !important; }
  .live-experiment .lv-st-dot svg,
  .live-experiment .lv-st-name { transition: none; }
}
