/* Aimlink | Hero, live data (assets/film/live.js): the detection over the target clip, the phone that crops the film into its screen while
   the world round it becomes the landing's contour landscape, GO's target overview on its screen, and the line "Turn target shooting
   into live data." (white on the night, the accent words lime). */
@layer sections {
  .film-live { display: none; }
  .film.is-live .film-live { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; overflow: clip; contain: strict; }
  .lv { --lv-lime: var(--color-lime); --lv-low: var(--color-orange); }

  /* ── detection, in the stage's pixels (moved with the clip) ── */
  .lv-cam { position: absolute; inset: 0; transform-origin: 50% 50%; visibility: hidden; }
  .lv-under { position: absolute; left: 0; top: 0; overflow: visible; }
  .lv-det { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-lime) 70%, transparent)); }
  .lv-dring { fill: none; stroke: var(--lv-lime); }
  .lv-dbr { fill: none; stroke: var(--color-snow); stroke-linecap: round; }
  .lv-dline { stroke: var(--lv-lime); stroke-linecap: round; }
  .lv-dmed { fill: none; stroke: var(--lv-lime); opacity: 0.7; }
  .lv-ddot { fill: var(--lv-lime); }

  /* ── the phone: at rest it is the frame's size (live.js sets it and --pw), moved and scaled from its middle ── */
  /* round the phone: the range at night (a Higgsfield loop, live.js plays it only while it shows); its poster stands in until it runs.
     The lane's vanishing point (about 70 % across) stays behind the phone: on a tall screen the picture is pulled that way. */
  .lv-plate { position: absolute; inset: 0; opacity: 0; background: var(--color-night) center / cover no-repeat; }
  .lv-shade {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: color-mix(in srgb, var(--color-night) 86%, transparent);
    transition: opacity 1100ms var(--ease-out) 120ms;
  }
  @media (max-width: 1023.98px) {
    .film.is-live.is-landed .lv-shade { opacity: 0.7; }
    .film.is-live.is-landed.is-still .lv-shade { transition: none; }
  }
  .lv-lane { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .lv.is-tall .lv-plate { background-position: 70% 50%; }
  .lv.is-tall .lv-lane { object-position: 70% 50%; }
  .lv-dev { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; perspective: calc(var(--pw) * 4.2); }
  /* the lane's light behind the phone, as on the GO page */
  .lv-glow {
    position: absolute; inset: -16% -70%; border-radius: 50%; pointer-events: none; opacity: 0;
    background: radial-gradient(closest-side, rgb(160 224 32 / 0.2), rgb(160 224 32 / 0.06) 48%, transparent 74%);
  }
  /* The solid (the site's iPhone front, site.css .phone, with a titanium edge of lit faces, a back and its shadow, as the analysis had
     it). The front stands at z 0, so while the phone faces the camera its screen lies exactly where the clip's frame is drawn; the body
     lies behind it. Never opacity on the solid or above it in the 3D chain (it would flatten it): its layers fade with --po. */
  .lv-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
  .lv-phone { --pw: inherit; backface-visibility: hidden; opacity: var(--po, 1); background: none; box-shadow: none; }
  /* the titanium frame and the black bezel are rings (a full background would lie behind the screen, and the screen is a window onto
     the film while the phone closes in round it); the side buttons belong to the edge */
  .lv-phone .phone-bezel { background: none; }
  .lv-phone::before, .lv-phone::after {
    content: ""; display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: auto; height: auto; box-shadow: none; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .lv-phone::before {
    padding: calc(var(--pw) * 0.012); border-radius: calc(var(--pw) * 0.17);
    background: linear-gradient(135deg, #8b8e93 0%, #3d3f43 16%, #26282b 50%, #424448 84%, #7e8186 100%);
  }
  .lv-phone::after { inset: calc(var(--pw) * 0.012); padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.158); background: #000; }
  .lv-phone .phone-bezel::after { content: ""; position: absolute; inset: 0; border-radius: calc(var(--pw) * 0.17); box-shadow: inset 0 0 0 calc(var(--pw) * 0.003) rgb(255 255 255 / 0.12); pointer-events: none; }
  .lv-edge, .lv-back { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
  .lv-edge { transform: translateZ(calc(var(--pw) * -0.0575)); }
  .lv-edge i {
    position: absolute; left: 50%; top: 50%; backface-visibility: hidden; opacity: var(--po, 1);
    width: calc(var(--fw) * var(--pw) + 1.5px); height: calc(var(--pw) * 0.115);
    margin: calc(var(--pw) * -0.0575) 0 0 calc((var(--fw) * var(--pw) + 1.5px) / -2);
    transform: translate3d(calc(var(--fx) * var(--pw)), calc(var(--fy) * var(--pw)), 0) rotateZ(var(--fa)) rotateX(90deg);
    --c: calc(var(--l, 0.4) * 62% + 12%);
    background: linear-gradient(180deg, hsl(212 6% calc(var(--c) * 0.62)) 0%, hsl(212 7% var(--c)) 18%, hsl(212 6% calc(var(--c) * 0.86)) 52%, hsl(212 7% var(--c)) 84%, hsl(212 6% calc(var(--c) * 0.6)) 100%);
  }
  .lv-back {
    transform: translateZ(calc(var(--pw) * -0.115)) rotateY(180deg); backface-visibility: hidden; opacity: var(--po, 1);
    border-radius: calc(var(--pw) * 0.17); background: linear-gradient(155deg, #3a3d42 0%, #24262a 46%, #303338 100%);
  }
  .lv-pshadow {
    position: absolute; inset: 3% 5%; border-radius: calc(var(--pw) * 0.17); background: rgb(0 0 0 / 0.7); filter: blur(30px);
    transform: translateZ(calc(var(--pw) * -0.6)) translate(8%, 6%); opacity: calc(var(--po, 1) * 0.8); pointer-events: none;
  }
  .lv-phone .phone-screen { container-type: size; background: transparent; }
  .lv-phone .phone-island { left: 34.48%; top: 1.41%; width: 31.04%; height: 4.23%; }

  /* ── GO's target overview (the Figma frame), in the screen's own unit: 1cqw = 1 % of its width, 216.6cqw tall. Paper above, the
     sheet (Score trend) below; the colours are the app's (Target Cream paper, night ink, orange shots, lime). ── */
  .lv-go { position: absolute; inset: 0; overflow: hidden; font: 400 3.5cqw/1.3 var(--font-text); color: var(--color-snow); background: rgb(249 234 199 / var(--lv-bg, 0)); }
  /* the clip's held frame, as large as the stage and placed where the clip stands (live.js): the screen is a window onto the film */
  .lv-snap { position: absolute; left: 0; top: 0; display: block; max-width: none; object-fit: cover; transform-origin: 50% 50%; }
  .lv-flat { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: visible; opacity: 0; }
  .lv-paper { fill: var(--color-cream); }
  .lv-black { fill: #14161A; }
  .lv-line { fill: none; stroke: var(--color-shot-on-paper); stroke-width: 0.4; }
  .lv-line-d { fill: none; stroke: #DCD3BC; stroke-width: 0.4; }
  .lv-num { font: 700 4.6px/1 var(--font-text); fill: var(--color-shot-on-paper); text-anchor: middle; dominant-baseline: central; }
  .lv-num-d { fill: #F1E7CE; }
  .lv-fdot { fill: #FF5A1F; }
  .lv-fnew { fill: none; stroke: var(--color-lime); stroke-width: 0.9; }
  .lv-fout, .lv-fmed, .lv-fline { fill: none; stroke-width: 0.55; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
  .lv-fout { stroke: var(--color-fern); }
  .lv-fmed, .lv-fline { stroke: var(--color-lime); }
  .lv-fplus { fill: none; stroke: var(--color-lime); stroke-width: 0.55; opacity: 0; }

  .lv-gtop { position: absolute; inset: 0 0 auto; height: 119.6cqw; color: var(--color-shot-on-paper); opacity: 0; }
  .lv-gstatus { display: flex; align-items: center; justify-content: space-between; height: 12.4cqw; padding: 2.4cqw 6.5cqw 0 9cqw; font-size: 3.8cqw; font-weight: 600; }
  .lv-gst-r { display: flex; align-items: center; gap: 1.4cqw; }
  .lv-gsig { width: 4.6cqw; height: 3.1cqw; fill: currentColor; }
  .lv-gwifi { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .lv-gbat { display: inline-grid; place-items: center; min-width: 6.4cqw; height: 3.7cqw; padding: 0 0.7cqw; border-radius: 1.2cqw; background: var(--color-shot-on-paper); color: var(--color-cream); font-size: 2.6cqw; line-height: 1; }
  .lv-gic { display: block; width: 7cqw; height: 7cqw; }
  .lv-gclose { position: absolute; right: 4.6cqw; top: 14.6cqw; display: grid; place-items: center; width: 7.6cqw; height: 7.6cqw; border-radius: 50%; background: var(--color-lime); color: var(--color-moss); }
  .lv-gclose .lv-gic { width: 7.6cqw; height: 7.6cqw; }
  .lv-gctrl { position: absolute; left: 4cqw; right: 4cqw; top: 107.4cqw; display: flex; align-items: center; gap: 2cqw; margin: 0; }
  .lv-gctrl span { display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; background: #5D646B; color: #fff; }
  .lv-gctrl b { margin-left: auto; padding: 1.3cqw 2.4cqw 0.9cqw; border-radius: 999px; background: #fff; color: var(--color-shot-on-paper); font: 500 4cqw/1 var(--font-numeric); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
  .lv-gctrl .is-lime { background: var(--color-lime); color: var(--color-moss); }

  .lv-gsheet { position: absolute; left: 0; right: 0; top: 119.6cqw; bottom: 0; padding: 4cqw 2.4cqw 0; border-radius: 7cqw 7cqw 0 0; background: var(--color-line-dark); transform: translateY(105%); }
  .lv-gtabs { display: flex; align-items: center; justify-content: center; gap: 4cqw; margin: 0; font-size: 3.5cqw; font-weight: 600; color: var(--color-snow-2); white-space: nowrap; }
  .lv-gtabs b { font-weight: 600; color: var(--color-snow); }
  .lv-gtabs .lv-gic { margin: -1.5cqw; color: var(--color-snow-2); }
  .lv-gtabs .lv-gic:first-child { margin-right: auto; }
  .lv-gtabs .lv-gic:last-child { margin-left: auto; }
  .lv-gcut { max-width: 3.6cqw; overflow: hidden; }   /* the third tab runs under the arrow, as in the app */
  .lv-gk { margin: 3.2cqw 0 2cqw; text-align: center; font-size: 2.9cqw; color: var(--color-snow-3); }
  .lv-gchart { position: relative; margin: 0 1cqw; padding: 2cqw; border-radius: 4cqw; background: var(--color-grey-2); }
  .lv-gchart svg { display: block; width: 100%; height: auto; overflow: visible; }
  .lv-gaxis { stroke: #5D646B; stroke-width: 0.4; }
  .lv-gmean { stroke: var(--color-lime); stroke-width: 0.4; stroke-dasharray: 1.6 1.6; opacity: 0; }
  .lv-gline { fill: none; stroke: var(--color-lime); stroke-width: 0.9; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
  .lv-gdot { fill: #FF5A1F; opacity: 0; }
  .lv-gdot.is-new { stroke: var(--color-lime); stroke-width: 0.8; }
  .lv-gy { position: absolute; left: 2.8cqw; font-size: 2.2cqw; line-height: 1; color: var(--color-snow-2); }
  .lv-gy.is-mean { color: var(--color-lime); opacity: 0; }
  .lv-gchips { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1cqw; margin: 2.2cqw 1cqw 0; padding: 0; list-style: none; }
  .lv-gchips li { display: grid; justify-items: center; gap: 1cqw; padding: 1.6cqw 0 1.4cqw; border-radius: 2.6cqw; background: var(--color-grey-2); font-size: 2.8cqw; color: var(--color-snow); opacity: 0; }
  .lv-gchips b { display: grid; place-items: center; width: 8.6cqw; height: 6cqw; padding-top: 0.3cqw; border-radius: 999px; background: #14161A; color: var(--color-snow); font: 500 3.6cqw/1 var(--font-numeric); font-variant-numeric: tabular-nums; }
  .lv-gchips .is-new b { background: var(--color-paper); color: #14161A; }

  /* ── the line, on the night: left of the phone on a wide screen, over it on a tall one; the words a shooter repeats are slanted lime ── */
  .lv-words {
 position: absolute; left: max(var(--gutter), 6vw); margin: 0; transform: translateY(50%); visibility: hidden;
 font: var(--type-display-xl-weight) var(--type-display-xl-size)/var(--type-display-xl-leading) var(--font-display); letter-spacing: var(--type-display-xl-tracking);
 color: var(--color-snow); text-wrap: balance; text-shadow: 0 2px 30px rgb(5 8 11 / 0.6);
 }
  .lv-words em { font-style: normal; color: var(--color-lime); padding-right: 0.04em; }
  .lv-words > span { display: inline-block; vertical-align: bottom; overflow: hidden; padding-top: 0.08em; }
  .lv-words > span + span { margin-left: 0.28em; }
  .lv-words > span > span { display: block; }
  .lv.is-tall .lv-words { left: 0; right: 0; margin-inline: auto; transform: none; text-align: center; }
}
