/* Lyra Lab page CSS: only what sits inside a visual and the kit lacks (taste-skill system.md), plus the
   rally section's pinned stage (the page's one effect) and the waitlist form's two columns. */
:root { --lyra-p1: #5ab9fc; --lyra-p2: #f0b45b; --lyra-line: rgb(233 237 243 / .1); }

/* numbers and player chips */
.lyra-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lyra-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 99px;
  font: 500 13px/1 var(--font-mono); background: rgb(233 237 243 / .08); color: var(--p-ink); }
.lyra-chip--P1 { background: rgb(90 185 252 / .16); color: var(--lyra-p1); }
.lyra-chip--P2 { background: rgb(240 180 91 / .16); color: var(--lyra-p2); }
.lyra-dot { border-radius: 50% !important; opacity: 1 !important; }
.lyra-dot--P1 { background: var(--lyra-p1) !important; } .lyra-dot--P2 { background: var(--lyra-p2) !important; }
.lyra-muted { color: var(--muted); }
.lyra-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); margin: var(--s-5) 0 0; }
.app + *, .grid > p.lyra-lead { margin-top: 0; }

/* hero: the window's thumbnails are tiny courts; the result card in the page's dark */
.lyra-thumb { background: var(--p-surface) !important; position: relative; }
.lyra-thumb::after { content: ""; position: absolute; inset: 7px 10px; border: 1px solid rgb(90 185 252 / .55); border-radius: 2px;
  background: linear-gradient(rgb(90 185 252 / .55), rgb(90 185 252 / .55)) center / 100% 1px no-repeat; }
.d-win--dark .d-row { border-color: rgb(255 255 255 / .07); }
.d-win--dark .d-row b { color: #eceef0; } .d-win--dark .d-row small { color: #9aa0a6; }
.d-win--dark .d-tabs span.is-on { background: rgb(255 255 255 / .08); color: #fff; } .d-win--dark .d-tabs span { color: #9aa0a6; }
.d-win--dark .d-btn { background: var(--p-accent); color: var(--p-accent-ink); }
.d-win--dark .d-rows { border-color: rgb(255 255 255 / .07); }
.d-chip { background: rgb(90 185 252 / .16); color: var(--lyra-p1); }
.d-chip--low { background: rgb(240 180 91 / .16); color: var(--lyra-p2); }
.lyra-card.d-card { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 50px -24px rgb(0 0 0 / .8); }
.lyra-card .d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #aeb3b8; border-top: 1px solid rgb(255 255 255 / .07); }
.lyra-card .d-note__line:first-of-type { border-top: 0; }
.lyra-card .d-note__line b { font-weight: 500; color: #fff; }
.lyra-card .d-note__line > b:last-child { margin-inline-start: auto; }
.lyra-card .d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: rgb(90 185 252 / .16); color: var(--lyra-p1); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 48px 96px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
@media (max-width: 639px) { .ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px; } }

/* the rally: one screen pinned inside its two-screen section (the page's one effect) */
.lyra-rally > .wrap { height: 100%; }
.lyra-rally__in { height: 100%; display: flex; flex-direction: column; gap: var(--s-7); }
.lyra-rally__head { align-items: start; }
.lyra-rally__lead { margin: 0; font-size: var(--t-lead); line-height: 1.5; }
.lyra-rally__say { margin: var(--s-4) 0 0; display: grid; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.25; }
.lyra-rally__know { display: none; color: var(--p-accent); }
.lyra-rally[data-known] .lyra-rally__guess { display: none; } .lyra-rally[data-known] .lyra-rally__know { display: block; }
.lyra-stage { position: relative; flex: 1 1 0; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; background: #0d1220; border: 1px solid var(--lyra-line); }
.lyra-stage__cam { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lyra-stage__mini { position: absolute; inset-inline-end: var(--s-5); bottom: var(--s-5); width: clamp(64px, 9vw, 120px); padding: 6px; border-radius: 10px;
  background: rgb(10 13 20 / .78); border: 1px solid var(--lyra-line); opacity: var(--k, 0); }
.lyra-stage__mini canvas { display: block; width: 100%; aspect-ratio: 61 / 134; }
.lyra-stage__stats { position: absolute; inset-inline-start: var(--s-5); bottom: var(--s-5); margin: 0; display: flex; gap: var(--s-3); opacity: var(--k, 0); }
.lyra-stage__stats > div { padding: 10px 14px; border-radius: 10px; background: rgb(10 13 20 / .78); border: 1px solid var(--lyra-line); }
.lyra-stage__stats dt { font-size: 13px; color: var(--muted); order: 2; }
.lyra-stage__stats dd { margin: 0 0 2px; font-size: 24px; color: var(--p-ink); }
.lyra-stage__stats > div { display: flex; flex-direction: column-reverse; }
@media (max-width: 1023px) { .lyra-rally__in { gap: var(--s-5); } .lyra-rally__say { font-size: var(--t-card); } }
@media (max-width: 639px) {
  .lyra-stage__stats { inset-inline: var(--s-3); bottom: var(--s-3); gap: 6px; flex-wrap: wrap; }
  .lyra-stage__stats > div { padding: 6px 9px; } .lyra-stage__stats dd { font-size: 18px; }
  .lyra-stage__mini { top: var(--s-3); bottom: auto; inset-inline-end: var(--s-3); width: 58px; }
}

/* the app window (sections-library app-frame recipe, with our own panes) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg, #11151f); border: 1px solid var(--u-border, var(--lyra-line)); border-radius: var(--u-r, 16px); box-shadow: var(--u-shadow, none); color: var(--p-ink); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-inline-start: 1px solid var(--lyra-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg, #11151f)); pointer-events: none; }
.lyra-app { --u-bg: #11151f; }
.lyra-pane-head { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--lyra-line); font-size: 14px; }
.lyra-pane-head b { font-weight: 500; font-size: 16px; } .lyra-pane-head small { color: var(--muted); font-size: 13px; }
.lyra-pane-head .lyra-chip { margin-inline-start: auto; }
.lyra-li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--lyra-line); font-size: 14px; }
.lyra-li__id { font: 400 13px/1 var(--font-mono); color: var(--muted); }
.lyra-li__main b { display: block; font-weight: 500; } .lyra-li__main small { color: var(--muted); font-size: 13px; }
.lyra-li.is-on { background: rgb(90 185 252 / .08); box-shadow: inset 2px 0 0 var(--p-accent); }
[dir="rtl"] .lyra-li.is-on { box-shadow: inset -2px 0 0 var(--p-accent); }
.lyra-open { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding: 16px 20px; }
.lyra-tr { display: grid; grid-template-columns: 56px 44px minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--lyra-line); font-size: 14px; }
.lyra-th { color: var(--muted); font-size: 13px; padding-top: 0; }
.lyra-tr .lyra-num { color: var(--muted); font-size: 13px; }
.lyra-open__side { display: grid; align-content: start; gap: 16px; }
.lyra-still { width: 100%; height: auto; border-radius: 12px; background: #0d1220; border: 1px solid var(--lyra-line); }
.lyra-still__court { fill: none; stroke: rgb(233 237 243 / .35); stroke-width: 3; }
.lyra-still__trail { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.lyra-box { fill: none; stroke-width: 5; } .lyra-box--P1 { stroke: var(--lyra-p1); } .lyra-box--P2 { stroke: var(--lyra-p2); }
.lyra-moved { display: grid; gap: 8px; font-size: 14px; } .lyra-moved > span { color: var(--muted); font-size: 13px; }
.lyra-moved b { display: flex; align-items: center; gap: 10px; font-weight: 500; }
@media (max-width: 1279px) { .lyra-open { grid-template-columns: minmax(0, 1fr); } .lyra-open__side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; } .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-inline-start: 0; border-top: 1px solid var(--lyra-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); } .app > .app__pane--list { display: none; } .app > .app__pane + .app__pane { border-top: 0; }
  .lyra-tr { grid-template-columns: 48px 40px minmax(0, 1fr) minmax(0, 1fr); }
  .lyra-open__side { display: none; }
}

/* the profile bento: panels hold drawings of the real numbers */
#profile .panel { --p-h: 250px; }
/* panels stand on the kit's lit sky ground: the drawings use its ink and accent */
.lyra-panel { display: grid; place-items: center; padding: var(--s-6); color: var(--ground-ink); }
.lyra-bars { width: 100%; max-width: 640px; display: grid; gap: 12px; }
.lyra-bar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2.5rem; align-items: center; gap: 14px; font-size: 15px; }
.lyra-bar > i { height: 10px; border-radius: 99px; background: rgb(37 48 58 / .1); position: relative; overflow: hidden; }
.lyra-bar > i::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: inherit; background: var(--ground-accent); }
.lyra-bar > b { font-weight: 400; text-align: end; }
.lyra-heat { width: 100%; height: auto; max-height: 100%; }
.lyra-heat__cells rect { fill: var(--ground-accent); }
.lyra-menu-panel .lyra-heat__cells rect { fill: var(--p-accent); }
.lyra-heat__lines path { fill: none; stroke: currentColor; stroke-opacity: .5; stroke-width: .05; }
.lyra-heat__net { stroke: currentColor; stroke-width: .09; }
.lyra-panel--heat { color: var(--ground-ink); } .lyra-menu-panel { color: var(--p-ink); }
.lyra-panel--fig { align-content: center; justify-items: start; gap: var(--s-4); }
.lyra-fig { margin: 0; display: grid; gap: 2px; } .lyra-fig b { font-weight: 400; font-size: var(--t-stat); line-height: 1; letter-spacing: -0.03em; color: var(--ground-ink); }
.lyra-fig span { color: var(--ground-ink); font-size: 14px; } .lyra-fig--sm b { font-size: 24px; }
.lyra-split { width: 100%; display: grid; gap: 18px; }
.lyra-split > div { display: grid; gap: 8px; font-size: 15px; } .lyra-split b { font-weight: 400; margin-inline-start: 6px; }
.lyra-split i { display: block; height: 14px; border-radius: 99px; width: var(--v); min-width: 14px; background: var(--ground-accent); }
.lyra-split > div + div i { background: #b7792a; }
@media (max-width: 639px) { #profile .panel { --p-h: 120px; } .lyra-bar { grid-template-columns: 6rem minmax(0, 1fr) 2rem; gap: 10px; font-size: 14px; } .lyra-bars { gap: 6px; } }

/* numbers: four figures in two columns (counter-rolls rolls them once) */
.lyra-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-7); }
.lyra-stats .stat { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.lyra-stats .t-stat { margin: 0; font-family: var(--font-mono); text-align: start; justify-self: start; }
[dir="rtl"] .lyra-stats .t-stat { justify-self: end; }
.lyra-stats .t-small { margin: 0; }

/* steps and community */
#how .panel { --p-h: 380px; }
#how .dg { width: 100%; height: 100%; }
.lyra-facts { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-3); }
.lyra-facts li { padding-block: var(--s-3); border-top: 1px solid var(--line); }
@media (max-width: 639px) { #how .panel { --p-h: 290px; } }

/* nav cards: small drawings of the product's parts */
.menu-card .panel { --p-h: 200px; }
.lyra-menu-panel { display: grid; place-items: center; padding: var(--s-5); background: #0d1220; }
.lyra-menu-panel .lyra-still { border: 0; width: 100%; }
.lyra-mini-rows { width: 100%; display: grid; }
.lyra-tr--mini { grid-template-columns: 52px 40px minmax(0, 1fr); font-size: 13px; padding: 7px 0; }
.lyra-menu-panel--heat svg { height: 100%; width: auto; }

/* the waitlist form: two columns on the split's right side */
.lyra-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-5); padding: var(--s-8); border-radius: var(--r-lg); background: var(--p-surface); align-content: start; }
.lyra-form .lyra-full { grid-column: 1 / -1; }
.lyra-form select { width: 100%; }
.lyra-form .form__status:empty { display: none; }
.lyra-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 639px) { .lyra-form { grid-template-columns: 1fr; padding: var(--s-6); } }

/* Arabic: the kit's lines mirror; numbers and code stay left to right */
[dir="rtl"] .ly-piece--main .d-main { padding-right: 18px; padding-left: var(--ly-cut-room); }
[dir="rtl"] .d-row .num, [dir="rtl"] .lyra-bar > b { text-align: left; }

/* the rally's pause button (the stage plays the rally on a loop) */
.lyra-pause { position: absolute; top: var(--s-4); inset-inline-end: var(--s-4); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--lyra-line); background: rgb(10 13 20 / .78); color: var(--p-ink); cursor: pointer; }
.lyra-pause .i-play { display: none; } .lyra-pause[aria-pressed="true"] .i-play { display: block; } .lyra-pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 639px) { .lyra-pause { top: auto; bottom: var(--s-3); inset-inline-end: var(--s-3); } .lyra-stage__mini { top: var(--s-3); } }

/* fixes from the gate: readable small text, the kit's figure size, the club photo square, taller step panels */
.hero__proof, .lyra-form .t-small { color: var(--ink); }
.hero__art { --action: var(--ground-ink); --ink: var(--ground-ink); }
#clubs .frame { aspect-ratio: 1 / 1; }
.lyra-stats { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.lyra-stats .stat { justify-items: start; justify-content: start; text-align: start; padding-top: var(--s-3); }
@media (max-width: 639px) { .ly-piece--main .d-row:nth-child(n+3) { display: none; } }

.lyra-join-photo { aspect-ratio: 4 / 3; margin-top: var(--s-6); }
#how .lyra-menu-panel .lyra-still { max-height: 100%; }
/* a drawing never sets its panel's height: the panel keeps --p-h */
.lyra-panel { height: var(--p-h); overflow: hidden; min-height: 0; }
.lyra-panel--heat .lyra-heat { height: 100%; width: auto; max-width: 100%; }
/* tablets and phones: each section on its screens (layout-v4.md, the tablet) */
@media (max-width: 1279px) { .lyra-stage { flex: 0 0 auto; height: min(56svh, 560px); } #profile .panel { --p-h: 200px; } }
@media (min-width: 640px) and (max-width: 1023px) {
  #profile .panel { --p-h: 160px; }
  #how { --h: 2; } #how .panel { --p-h: 300px; }
}
@media (max-width: 639px) { .lyra-stage { height: min(46svh, 360px); } }
@media (max-width: 639px) { #profile .panel { --p-h: 120px; } }
@media (max-width: 639px) { .lyra-stage__stats > div:nth-child(n+3) { display: none; } }

/* ---------------------------------------------------------------- scroll motion (the owner's choice, public/scroll.js) */
/* the hero: pinned for one more screen on a wide screen; its window slides away and the real shuttle path draws */
.lyra-hero-court { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; color: var(--ground-ink); }
.lyra-hero-court__lines path { fill: none; stroke: currentColor; stroke-opacity: .45; stroke-width: 1.4; }
.lyra-hero-court__net { stroke-opacity: .8 !important; }
.lyra-hero-court__trail { fill: none; stroke: var(--ground-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero__art > .ly-piece { will-change: transform, opacity; }
@media (min-width: 1024px) {
  .hero.lyra-hero-pin { height: 200svh; }
  .hero.lyra-hero-pin > .wrap { position: sticky; top: var(--lyra-pt, 120px); height: calc(100svh - var(--lyra-pt, 120px) - var(--hpadb, 64px)); }
}
@media (prefers-reduced-motion: reduce) { .lyra-hero-court { opacity: 0; } }

/* the rally: two screens, its stage pinned through them */
.lyra-rally__pin { position: sticky; top: var(--padt); height: calc(100svh - var(--padt) - var(--padb)); }
.lyra-rally__pin .lyra-stage { flex: 1 1 0; height: auto; min-height: 240px; }
@media (max-width: 639px) { .lyra-rally__pin { top: var(--padt); } }

/* blocks rise in once as they come into view */
html.lyra-rise [data-lyra-rise] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22,1,.36,1) var(--rise-delay, 0ms), transform .9s cubic-bezier(.22,1,.36,1) var(--rise-delay, 0ms); }
html.lyra-rise [data-lyra-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.lyra-rise [data-lyra-rise] { opacity: 1; transform: none; transition: none; } }
/* the hero's court only on screens where the hero is pinned; a phone shows four of the seven shot bars */
@media (max-width: 1023px) { .lyra-hero-court { display: none; } }
@media (max-width: 639px) { .lyra-bar:nth-child(n+4) { display: none; } }
