/* S1 «Как устроено», play copy of ../../slides/s1-how/index.html's styles. Scoped by #slide-s1 / s1- ids;
   the card is class-scoped (.s1-card) so PLAY.handles.protocolCard() clones keep their look anywhere. */
#slide-s1 { pointer-events: none; }

/* a grade on the right of the rack: the wall and sideboard sink into navy so the type reads (follows the rack edge) */
#s1-scrim {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(8, 13, 27, 0) 0px, rgba(8, 13, 27, 0) var(--x0, 900px),
    rgba(9, 15, 31, 0.5) calc(var(--x0, 900px) + 240px), rgba(9, 15, 31, 0.66) calc(var(--x0, 900px) + 700px), rgba(9, 15, 31, 0.7) 100%);
}
#s1-lines { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; }
#s1-lines line { stroke-linecap: round; }

/* stage labels: pinned to each sled's right edge, the sled's own light as a short lead */
.s1-lab {
  position: absolute; left: 0; top: 0; transform: translate(26px, -50%);
  display: flex; align-items: center; gap: 16px; white-space: nowrap; opacity: 0;
  font-family: "Inter", sans-serif; font-size: 37px; font-weight: 580; letter-spacing: -0.016em; color: var(--ink);
  text-shadow: 0 2px 18px rgba(5, 10, 22, 0.9);
}
.s1-lab b { display: block; width: 30px; height: 3px; border-radius: 2px; background: var(--c, #3fb8f4); box-shadow: 0 0 10px var(--c, #3fb8f4); flex: none; }
.s1-lab .s1-gone { color: var(--muted); font-weight: 520; margin-left: -4px; opacity: 0; }
.s1-lab .s1-tick { width: 34px; height: 34px; flex: none; margin-left: -4px; }
.s1-lab .s1-tick path { fill: none; stroke: #2fe8ce; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
#s1-l0 { --c: #5fa8ff; }
#s1-l1 { --c: #3d8cf2; }
#s1-l2 { --c: #2fe8ce; }
#s1-l3 { --c: #a493ff; }
#s1-l4 { --c: #e9f1ff; }
#s1-l5 { --c: #2fe8ce; }

/* the slide's one line, top right, level with the badge */
#s1-head {
  position: absolute; left: 0; top: 0; transform: translate(36px, -50%); white-space: nowrap;
  font-family: "Inter", sans-serif; font-size: 62px; font-weight: 640; letter-spacing: -0.026em; color: var(--ink);
  text-shadow: 0 2px 26px rgba(5, 10, 22, 0.85);
}
#s1-head .hk-hl { font-weight: 720; }
#s1-head-t { display: inline-block; opacity: 0; }

/* the hero: the agent's task card (class-scoped: cloned by PLAY.handles.protocolCard) */
.s1-card {
  position: absolute; left: 0; top: 0; width: 780px; transform-origin: 50% 50%; box-sizing: content-box;
  border-radius: 26px; background: linear-gradient(180deg, rgba(22, 36, 64, 0.97) 0%, rgba(11, 19, 36, 0.98) 100%);
  border: 2px solid rgba(110, 170, 245, 0.34);
  box-shadow: 0 40px 90px rgba(2, 6, 16, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "Inter", sans-serif; color: var(--ink);
}
#s1-card { opacity: 0; }
.s1-card .in { padding: 32px 40px 38px; }
.s1-card .top { display: flex; align-items: center; justify-content: space-between; }
.s1-card .who { font-size: 54px; font-weight: 660; letter-spacing: -0.022em; }
.s1-card .ex {
  padding: 4px 13px 6px; border-radius: 10px; border: 1.5px dashed rgba(141, 156, 188, 0.6);
  font-size: 26px; font-weight: 540; color: #a7b4cf;
}
.s1-card .what { margin-top: 10px; font-size: 38px; font-weight: 470; color: var(--body); }
.s1-card .bot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.s1-card .dl { font-size: 40px; font-weight: 540; color: #ffb36b; padding: 3px 10px 5px; margin-left: -10px; border-radius: 10px; background: rgba(255, 159, 67, 0.12); }
.s1-card .lkw { display: flex; align-items: center; gap: 14px; }
.s1-card .s1-lk {
  display: flex; align-items: center; padding: 6px 18px 9px; border-radius: 16px;
  font-size: 68px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: #d9f2ff; background: rgba(63, 184, 244, 0.13); border: 2px solid rgba(63, 184, 244, 0.45);
}
.s1-card .dig { position: relative; display: inline-block; width: 1.24em; height: 1.18em; overflow: hidden; }
.s1-card .dig span { position: absolute; left: 0; top: 0; line-height: 1.18em; }
.s1-card .s1-d25 { transform: translateY(118%); }
.s1-card .s1-ok { width: 64px; height: 64px; flex: none; opacity: 0; }
.s1-card .s1-ok circle { fill: rgba(47, 232, 206, 0.16); stroke: #2fe8ce; stroke-width: 2.5; }
.s1-card .s1-ok path { fill: none; stroke: #2fe8ce; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* the passed state, static (the protocol handle's clone) */
.s1-card--passed { border-color: rgba(47, 232, 206, 0.7); box-shadow: 0 40px 90px rgba(2, 6, 16, 0.65), 0 0 46px rgba(47, 232, 206, 0.35); }
.s1-card--passed .s1-lk { color: #c9fff6; background: rgba(47, 232, 206, 0.14); border-color: rgba(47, 232, 206, 0.6); }
.s1-card--passed .s1-d52 { transform: translateY(-118%); }
.s1-card--passed .s1-d25 { transform: translateY(0); }
.s1-card--passed .s1-ok { opacity: 1; }
.s1-card--passed .s1-ok path { stroke-dashoffset: 0; }

#s1-why {
  position: absolute; left: 0; top: 0; transform: translate(-50%, 0); opacity: 0; white-space: nowrap;
  font-family: "Inter", sans-serif; font-size: 42px; font-weight: 600; color: #ff8f84; letter-spacing: -0.012em;
  text-shadow: 0 2px 18px rgba(5, 10, 22, 0.9);
}
#s1-why b { font-weight: 720; color: #ffb3a8; }
