/* stencil.css - the stencil over the camera (web/film-stencil.js; docs/stencil-filming.md): one-take-mock-1016/v5's look (the outline
   that turns by itself, one ring, one line over the head, one hint under it, the REC pill, a red frame while it records, the how-to box
   top-left) in the app's colours and type. Its break and the yellow Pause and finish the cut (Grady, 2026-10-19: "that little pause
   button telling them to finish the cut"). Only transform and opacity ever move (selfcheck screens: smooth scrolling). */
.film-view.sten::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; }
.film-view.sten-live::after { box-shadow: inset 0 0 0 5px var(--orange); }
.sten-guide { position: absolute; z-index: 3; pointer-events: none; color: #fff; transition: opacity var(--t-sheet) var(--ease-out);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .85)) drop-shadow(0 0 5px rgba(0, 0, 0, .4)); }
.sten-guide svg { display: block; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); }
.sten-guide path { stroke-width: 3px; }
.sten-guide.on { color: var(--yellow); filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }   /* a dark edge to read on any picture, no yellow glow */
.sten-guide.wait { opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .sten-guide.idle svg { animation: sten-breathe 1.8s ease-in-out infinite; } }
@keyframes sten-breathe { 50% { opacity: .62; } }
.sten-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.sten-ring-bg { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 6; }
.sten-ring-fill { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round; }
/* the line over the head and the one rule under it: white before it starts, orange whenever his head is out and nothing counts */
.sten-cue { position: absolute; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }
.sten-word { padding: 0 20px; color: #fff; font-size: 1.6rem; font-weight: 700; line-height: 1.1; text-align: center; letter-spacing: -.01em; }
.sten-cue.locked .sten-word { color: var(--yellow); }
.sten-sub { display: none; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .88rem;
  font-weight: 700; text-shadow: none; }
.sten-sub.on { display: block; }
.sten-sub.warn { background: var(--orange); }
.sten-hintbar { position: absolute; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.sten-hint { padding: 7px 18px; border-radius: 999px; background: var(--cream); color: var(--black); font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.sten-hint:empty { display: none; }
.sten-rec { position: absolute; top: 12px; left: 50%; z-index: 5; display: none; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.sten-rec.on { display: flex; }
.sten-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .sten-rec i { animation: sten-blink 1s steps(2) infinite; } }
.sten-rec.hold i { background: #999; animation: none; }
@keyframes sten-blink { 50% { opacity: 0; } }
/* Grady's how-to video, top-left under Close: a placeholder until he films it; a tap opens it big */
.cap .sten-howto { position: absolute; left: 12px; top: 12px; z-index: 7; width: 62px; height: 88px; min-height: 0; margin: 0; padding: 0; gap: 6px;
  flex-direction: column; border: 2px solid rgba(255, 255, 255, .7); border-radius: 16px; background: #1c1a18;
  color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.sten-play { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding-left: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #111; font-size: .7rem; }
.sten-howto-word { display: none; padding: 0 6px; font-size: .8rem; font-weight: 700; line-height: 1.1; text-align: center; }
.cap .sten-howto.big { width: calc(100% - 24px); height: 60%; }
.sten-howto.big .sten-play { width: 56px; height: 56px; font-size: 1.3rem; }
.sten-howto.big .sten-howto-word { display: block; font-size: 1.1rem; }
.sten-end .sten-guide, .sten-end .sten-ring, .sten-end .sten-cue, .sten-end .sten-hintbar { display: none; }
/* the head outline toggle (Grady, 2026-10-23: "a really, really small toggle so they can turn it off"): top-right under the lens, quiet
   over the camera, the gradient when on; gone while today's camera records and once the half is full */
.cap .sten-toggle { position: absolute; top: 62px; right: 10px; z-index: 7; width: auto; height: 30px; min-height: 0; margin: 0; padding: 0 5px 0 8px; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(13, 13, 15, .55); color: #fff; box-shadow: none; }
.cap .sten-toggle::after { content: ""; position: absolute; inset: -8px; }
.sten-toggle svg { flex: none; width: 16px; height: 16px; }
.sten-switch { position: relative; flex: none; width: 26px; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.sten-switch i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cap .sten-toggle.on { border-color: transparent; background: #f8f6f1; color: #0a0a0a; }
.sten-toggle.on .sten-switch { background: rgba(0, 0, 0, .3); }
.sten-toggle.on .sten-switch i { transform: translateX(10px); }
.cap-recording .sten-toggle, .sten-end .sten-toggle { display: none; }
/* the sheet under the camera holds only what it must (a line, an upload's problem, the yellow button): see-through until then */
.cap .cap-panel.sten-panel { background: transparent; }
.sten-status:empty { display: none; }
.sten-say .cam-guy { padding-bottom: 6px; }
.sten-say .cam-say b { letter-spacing: .04em; }
.cap .sten-pause { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 66px; margin: 4px 0 0; border: 0;
  border-radius: 999px; background: var(--yellow); color: #0a0a0a; font-size: 1.3rem; font-weight: 700; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .cap .sten-pause { animation: sten-pulse 1.4s ease-in-out infinite; } }
@keyframes sten-pulse { 50% { transform: scale(1.03); } }
.sten-bars { display: flex; gap: 5px; }
.sten-bars i { width: 7px; height: 22px; border-radius: 2px; background: var(--black); }
/* the stencil's break (film-end.js): Before done, the guy, Resume, My videos */
.sten-chip { align-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 198, 41, .18); color: var(--yellow); font-size: .9rem; font-weight: 700; }
.cap .sten-resume { min-height: 66px; background: var(--orange); color: #fff; font-size: 1.3rem; font-weight: 700; }
.cap .sten-later { color: var(--cream); border-color: #fbf4ea55; }
/* Consultation's talk (today's camera, no outline): its script top-right under Flip, small, readable at arm's length (Grady, 2026-10-19) */
.sten-script { position: absolute; top: 62px; right: 10px; z-index: 6; max-width: 40%; padding: 8px 10px; border-radius: 14px; pointer-events: none;
  background: rgba(13, 13, 15, .72); color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.2; }
.sten-script b { display: block; color: var(--yellow); font-size: .82rem; }
.sten-script ol { margin: 6px 0 0; padding-left: 1.2em; }
.sten-script li + li { margin-top: 4px; }
