/*
  Product films: a scaled replica of the app (octopus-joe) that plays a scripted task.
  Everything inside .film-cam is laid out on a fixed 1200 x 750 canvas and scaled as one piece,
  so pixel sizes below are the app's own.
*/
.film { margin-top: clamp(22px, 3vw, 36px); }
.film-screen { position: relative; aspect-ratio: 16 / 10; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--paper); }
@media (max-width: 700px) { .film-screen { aspect-ratio: 4 / 5; box-shadow: 5px 5px 0 var(--ink); border-radius: 14px; } }
.film-cam { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
.film-cam.is-out { opacity: 0; }
.film-bar { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.film-steps { display: flex; flex: 1; gap: 6px; min-width: 0; }
.film-steps li { flex: 1; min-width: 0; padding-top: 9px; border-top: 4px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color 250ms, color 250ms; }
.film-steps li.is-past { border-top-color: var(--ink); }
.film-steps li.is-on { border-top-color: var(--ink); color: var(--ink); background: linear-gradient(var(--marker), var(--marker)) left top / 100% 100% no-repeat; padding-left: 8px; }
.film-ctl { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); font-size: 15px; font-weight: 700; transition: background 150ms, transform 120ms, box-shadow 120ms; }
.film-ctl:hover { background: var(--marker); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.film-ctl svg { width: 13px; height: 13px; }
.band-ink .film-steps li { color: #c9cdc6; }
@media (max-width: 700px) { .film-steps li { font-size: 12px; } .film-steps li:not(.is-on) { color: transparent; flex: 0.35; } }
.film-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* ---------- The app ---------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.45; --mute: #5a5f66; --wash: #e4e6e1; --line-2: #e6e8e3; }
.app p, .app h3, .app h4 { margin: 0; }
.app ul, .app ol { margin: 0; padding: 0; list-style: none; }
.app-top { height: 56px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--side); border-bottom: 1px solid var(--line); }
.app-logo { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.app-beta, .tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--stone); border-radius: 4px; padding: 2px 6px; color: var(--ink-2); }
.app-nav { display: flex; gap: 2px; flex: 1; margin-left: 4px; }
.app-nav span { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); border: 1.5px solid transparent; white-space: nowrap; }
.app-nav .on { border-color: var(--ink); background: var(--sheet); font-weight: 600; color: var(--ink); }
.app-agent { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; border: 1.5px solid transparent; border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: background 150ms; }
.app-agent kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; color: var(--mute); }
.app-agent.on { border-color: var(--ink); background: var(--sheet); font-weight: 600; color: var(--ink); }
.app-me { width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.app-body { flex: 1; display: flex; min-height: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.app .mark { background: var(--marker-soft); padding: 1px 3px; }

/* Chat panel */
.app-chat { width: 0; flex: none; overflow: hidden; border-right: 1px solid var(--line); background: var(--paper); transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.app-chat.is-open { width: 360px; }
.app-chat-in { width: 360px; height: 100%; display: flex; flex-direction: column; }
.chat-head { height: 56px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.chat-head .j svg { width: 28px; }
.chat-head b { font-size: 14px; font-weight: 600; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); white-space: nowrap; }
.chat-status i { width: 7px; height: 7px; border-radius: 999px; background: var(--done); }
.chat-status.is-work i { background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); animation: film-pulse 0.9s ease-in-out infinite; }
.chat-status.is-wait i { background: var(--ink); }
.chat-tools { margin-left: auto; display: flex; gap: 14px; color: var(--ink); }
.chat-tools svg { width: 16px; height: 16px; }
.chat-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 22px 20px 12px; }
.chat-flow { display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.chat-body.is-talking { justify-content: flex-end; }
.chat-open .j svg { width: 72px; }
.chat-open { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: opacity 260ms ease; }
.chat-open.is-gone { opacity: 0; }
.who { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 5px; }
.mono { font-family: var(--mono); font-size: 15px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); padding: 8px 16px; font-size: 14px; color: var(--ink-2); transition: background 120ms, transform 120ms; }
.chip.strong { border: 1.5px solid var(--ink); font-weight: 600; color: var(--ink); }
.chip.is-press { background: var(--marker); transform: scale(0.96); }
.chip.is-picked { background: var(--marker); }
.msg { animation: film-fade 420ms ease both; }
.msg-you { align-self: flex-end; max-width: 88%; background: var(--wash); border-radius: 16px 16px 6px 16px; padding: 10px 16px; font-size: 15px; line-height: 1.55; }
.msg-joe .chips { margin-top: 12px; }
.plan { border: 1px solid var(--line); background: var(--sheet); border-radius: 16px; overflow: hidden; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.plan-head em { font-style: normal; color: var(--ink); }
.plan.is-over .plan-head span { color: var(--done); }
.plan ul { padding: 6px 0; }
.plan li.step { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 16px; font-size: 14.5px; line-height: 1.35; color: var(--mute); transition: color 250ms; }
.plan li.step > i { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--stone); border-radius: 6px; background: var(--sheet); display: grid; place-items: center; transition: background 250ms, border-color 250ms; }
.plan li.step > span { flex: 1; min-width: 0; }
.plan li.step > em { flex: none; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.plan li.step > em:empty { display: none; }
.plan li.is-doing { color: var(--ink); font-weight: 600; }
.plan li.is-doing > i { border: 2px solid var(--ink); border-top-color: transparent; border-radius: 999px; animation: spin 0.75s linear infinite; }
.plan li.is-done { color: var(--ink-2); }
.plan li.is-done > i { background: var(--ink); border-color: var(--ink); }
.plan li.is-done > i::before { content: ''; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.plan li.is-done > em { color: var(--ink); }
.plan li.crit { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 16px 10px 46px; }
.crit span { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--marker-soft); border: 1px solid var(--ink); white-space: nowrap; }
.live { border: 1.5px solid var(--ink); background: var(--sheet); border-radius: 14px; padding: 12px 14px; }
.live b { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.live-bar { height: 8px; border: 1.5px solid var(--ink); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 0; background: var(--marker); transition: width 400ms; }
.chat-foot { flex: none; padding: 4px 16px 16px; }
.chat-sees { display: flex; align-items: center; gap: 8px; min-height: 30px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.chat-sees i { width: 6px; height: 6px; border-radius: 999px; background: var(--done); }
.chat-input { display: flex; align-items: flex-end; gap: 8px; min-height: 56px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); transition: border-color 150ms; }
.chat-input.is-focus { border-color: var(--ink); }
.chat-input p { flex: 1; box-sizing: content-box; padding: 6px 0; font-size: 15px; line-height: 24px; color: var(--mute); transition: height 320ms cubic-bezier(0.3, 0.7, 0.2, 1); overflow: hidden; }
.chat-input.has-text p { color: var(--ink); }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0.3; transition: opacity 150ms, transform 120ms; }
.chat-input.has-text .chat-send { opacity: 1; }
.chat-send.is-press { transform: scale(0.9); }
.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--ink); animation: caret 0.9s step-end infinite; }

/* Pages */
.app-main { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.page { padding: 28px 32px 0; max-width: 1040px; margin: 0 auto; transition: opacity 300ms ease; }
.page.is-out { opacity: 0; }
.stage { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.stage .j svg { width: 96px; }
.stage-bubble { flex: 1; max-width: 560px; padding: 14px 20px 16px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--sheet); box-shadow: var(--hard); }
.page h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.page .intro { margin-top: 6px; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.count { white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 200ms; }
.count.is-hot { color: var(--ink); background: var(--marker); padding: 3px 7px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--ink); }
.btn-o { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--sheet); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-k { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform 120ms, background 200ms; }
.btn-k.is-press, .btn-o.is-press { transform: scale(0.96); }
.btn-k.is-saved { background: var(--done); }
.search { margin-top: 20px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); }
.search-row { display: flex; align-items: flex-end; gap: 8px; }
.search label { display: block; font-size: 13px; font-weight: 600; padding: 0 4px 4px; }
.film-screen .field { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; }
.crit-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); font-size: 14px; }
.crit-btn.on { border: 1.5px solid var(--ink); font-weight: 600; }
.crit-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 400; display: grid; place-items: center; }
.search-crit { display: none; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.search-crit.on { display: flex; }
.search-crit span { display: inline-flex; gap: 6px; min-height: 36px; align-items: center; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--marker-soft); font-size: 13.5px; font-weight: 600; }
.search-crit small { font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cand { position: relative; height: 196px; display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); transition: opacity 450ms ease, transform 450ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 220ms, box-shadow 220ms; }
.cand-top { display: flex; justify-content: space-between; gap: 12px; height: 42px; }
.cand h4 { font-size: 18px; font-weight: 600; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-match { text-align: right; line-height: 1; }
.cand-match b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 400; }
.cand-match small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.cand-row { display: flex; align-items: center; gap: 12px; height: 24px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.cand-row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cand-row.lead { height: 28px; font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 8px; }
.cand-row.muted { color: var(--mute); }
.cand-row em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.cand-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); }
.cand.is-scan { border-color: var(--ink); box-shadow: 3px 3px 0 var(--marker); }
.cand.is-out { opacity: 0; transform: translateY(6px); }
.cand.is-kept { border-color: var(--ink); }
.cand-sl { position: absolute; right: 16px; bottom: 44px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; animation: film-rise 420ms cubic-bezier(0.25, 0.8, 0.25, 1) both; }
.toast { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--marker); box-shadow: var(--hard); font-size: 15px; font-weight: 700; animation: film-rise 520ms cubic-bezier(0.25, 0.8, 0.25, 1) both; }
.toast small { display: block; font-size: 13px; font-weight: 500; }

/* Espace créateur and the builder */
.go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.page h4.q { margin-top: 26px; font-size: 20px; font-weight: 700; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.type { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
.type.is-press { border-color: var(--ink); box-shadow: var(--hard); transform: translate(-2px, -2px); }
.type-ico { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.type.is-press .type-ico { background: var(--ink); color: #fff; }
.type-ico svg, .blk-ico svg { width: 20px; height: 20px; }
.type b { display: block; margin-top: 12px; font-size: 18px; }
.type p { margin-top: 8px; font-size: 14px; color: var(--ink-2); min-height: 82px; }
.type small { display: block; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--mute); min-height: 68px; }
.type i { font-style: normal; font-size: 14px; font-weight: 600; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 22px; align-items: start; }
.b-col { transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1); }
.b-empty { transition: opacity 280ms ease; }
.b-empty.is-gone { opacity: 0; }
.b-name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; padding-bottom: 4px; border-bottom: 1.5px solid var(--stone); color: var(--stone); min-height: 42px; }
.b-name.has-text { color: var(--ink); border-bottom-color: var(--ink); }
.b-for { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.b-for .field { min-height: 40px; font-size: 14px; color: var(--ink); background: var(--sheet); border-radius: 10px; flex: 1; max-width: 300px; }
.b-acts { display: flex; gap: 10px; margin-top: 16px; }
.b-label { display: block; margin: 24px 0 6px; font-size: 13px; font-weight: 600; }
.b-intro { min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); font-size: 15px; color: var(--mute); }
.b-empty { margin-top: 18px; padding: 22px; border: 1.5px dashed var(--stone); border-radius: 16px; }
.b-empty b { font-size: 18px; }
.b-kinds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.b-kinds span { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); font-size: 14px; font-weight: 600; }
.blk-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.blocks { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.blk { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); animation: film-rise 480ms cubic-bezier(0.25, 0.8, 0.25, 1) both; transition: border-color 300ms, box-shadow 300ms; }
.blk.is-now { border-color: var(--ink); box-shadow: 3px 3px 0 var(--marker); }
.blk-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.blk-head b { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.blk-head em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.blk-q { margin-top: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 16px; font-weight: 500; }
.blk-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.blk-opts span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.blk-opts span::before { content: ''; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 4px; }
.blk-proofs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--mute); min-height: 26px; }
.blk-proofs span { font-size: 13px; font-weight: 600; color: var(--ink); padding: 3px 9px; border-radius: 999px; background: var(--marker-soft); border: 1px solid var(--ink); }
.meter { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); }
.meter-time { display: block; margin-top: 6px; font-family: var(--mono); font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.meter-n { margin-top: 8px; font-size: 14px; font-weight: 500; }
.meter small { display: block; font-size: 13px; color: var(--mute); line-height: 1.35; }
.meter-part { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.meter-proofs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.meter-proofs li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; animation: film-rise 260ms ease-out both; }
.meter-proofs em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.checks li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; color: var(--ink-2); }
.checks li i { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--stone); border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.checks li.is-done { color: var(--ink); }
.checks li.is-done i { background: var(--done); border-color: var(--done); animation: pop 500ms ease-out; }
.checks li.is-done i::before { content: '✓'; }
.meter-ready { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--done); display: none; }
.meter-ready.on { display: block; }

/* Simulation */
.sim { position: absolute; inset: 0; display: grid; grid-template-columns: 640px 560px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.45; --mute: #5a5f66; }
.sim p, .sim h3 { margin: 0; }
.sim ul { margin: 0; padding: 0; list-style: none; }
.sim-cand { display: flex; flex-direction: column; padding: 22px 60px 26px; }
.sim-strip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.sim-strip b { font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.sim-brief { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.sim-brief b { color: var(--ink); }
.callbox { margin-top: 16px; flex: 1; display: flex; flex-direction: column; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 22px; background: var(--sheet); box-shadow: 6px 6px 0 var(--ink); }
.who-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color 200ms, background 200ms; }
.who-row + .who-row { margin-top: 10px; }
.who-row.is-on { border-color: var(--ink); background: var(--marker-soft); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 16px; background: var(--paper); }
.who-row.me .avatar { background: var(--ink); color: #fff; }
.who-row div { flex: 1; min-width: 0; }
.who-row b { display: block; font-size: 16px; }
.who-row small { font-size: 13px; color: var(--ink-2); }
.bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.bars i { width: 4px; height: 6px; border-radius: 2px; background: var(--stone); transition: height 120ms, background 200ms; }
.who-row.is-on .bars i { background: var(--ink); animation: film-voice 0.5s ease-in-out infinite alternate; }
.bars i:nth-child(2n) { animation-delay: -0.2s !important; } .bars i:nth-child(3n) { animation-delay: -0.35s !important; } .bars i:nth-child(5n) { animation-delay: -0.1s !important; }
.caption { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 14px; padding: 4px 6px; min-height: 120px; }
.caption span { transition: opacity 180ms ease; font-size: 27px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.caption small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); margin-bottom: 8px; min-height: 16px; }
.call-foot { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.call-foot time { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.call-foot small { flex: 1; font-size: 12.5px; color: var(--mute); line-height: 1.3; }
.hang { width: 46px; height: 46px; border-radius: 999px; background: var(--alert); display: grid; place-items: center; color: #fff; }
.hang svg { width: 22px; height: 22px; }
.rec-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--alert); animation: film-pulse 1.1s ease-in-out infinite; }
.sim-rec { display: flex; flex-direction: column; padding: 28px 34px 26px; background: var(--sheet); border-left: 2px solid var(--ink); }
.sim-rec h3 { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sim-rec .sub { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.sim-empty { margin-top: 20px; padding: 18px; border: 1.5px dashed var(--stone); border-radius: 14px; font-size: 15px; color: var(--mute); }
.finds { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.find { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); animation: film-rise 520ms cubic-bezier(0.25, 0.8, 0.25, 1) both; transition: background 300ms; }
.find.is-play { background: var(--marker-soft); }
.play { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--sheet); display: grid; place-items: center; transition: background 150ms, transform 120ms; }
.play svg { width: 12px; height: 12px; margin-left: 2px; }
.play.is-press { transform: scale(0.9); }
.find.is-play .play { background: var(--ink); color: #fff; }
.find b { display: block; font-size: 16.5px; }
.find q { font-size: 14.5px; quotes: none; }
.find time { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.find-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; display: none; }
.find.is-play .find-track { display: block; }
.find-track i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 2600ms linear; }
.sim-sum { margin-top: 18px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--marker); box-shadow: var(--hard); font-size: 15px; font-weight: 700; animation: film-rise 520ms cubic-bezier(0.25, 0.8, 0.25, 1) both; }
.sim-sum small { display: block; font-size: 13.5px; font-weight: 500; margin-top: 2px; }

/* Cursors */
.cur { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; opacity: 0; will-change: transform; }
.cur.on { opacity: 1; }
.cur svg { width: 22px; height: 22px; display: block; filter: drop-shadow(1px 2px 0 rgba(21, 23, 28, 0.25)); transition: transform 100ms; }
.cur.is-press svg { transform: scale(0.8); }
.cur span { position: absolute; left: 16px; top: 18px; padding: 2px 8px; border-radius: 8px 8px 8px 2px; background: var(--marker); border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }

@keyframes film-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes film-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes film-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes film-voice { from { height: 6px; } to { height: 30px; } }

/* ---------- Sections that hold a film ---------- */
.hero-film { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-film .hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center; margin-top: 0; }
.hero-film h1 { font-size: clamp(42px, 4.5vw, 62px); line-height: 1; }
.hero-film h1 span { display: block; }
.hero-film .lede { margin-top: 22px; max-width: 34ch; }
.hero-film .hero-for { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.hero-film .hero-cta { margin-top: 28px; }
.hero-film .hero-micro { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.hero-film .film { margin-top: 0; }
.hero-film .film-screen { aspect-ratio: 5 / 4; }
@media (max-width: 1080px) {
  .hero-film .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-film h1 { font-size: clamp(40px, 7vw, 64px); }
  .hero-film h1 span { display: inline; }
  .hero-film .lede { max-width: 56ch; }
  .hero-film .film-screen { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) { .hero-film .film-screen { aspect-ratio: 4 / 5; } }
.head-split { align-items: end; }
.head-split h2 { max-width: 14ch; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); }
.trio li { border-top: 3px solid var(--ink); padding-top: 14px; }
.trio p { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }


/* ---------- Player: poster, play button, label while Joe works ---------- */
.film-screen { cursor: pointer; }
.film-play { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; padding: 0; background: rgba(244, 245, 242, 0.62); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.film.is-idle .film-play, .film.is-paused .film-play { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.film-play-btn { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 999px; background: var(--marker); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform 140ms ease, box-shadow 140ms ease; }
.film-play-btn svg { width: 30px; height: 30px; margin-left: 5px; }
.film-play:hover .film-play-btn { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.film-play:active .film-play-btn { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.film-play-txt { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); font-size: 17px; font-weight: 800; }
@media (max-width: 700px) { .film-play-btn { width: 80px; height: 80px; } .film-play-btn svg { width: 26px; height: 26px; } }
.film-hud { display: none; }
@media (max-width: 700px) {
  /* Phones: the picture runs edge to edge and taller, and Joe's status sits under it instead of over it. */
  .film-screen, .hero-film .film-screen { aspect-ratio: 5 / 7; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .film-hud { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-size: 14px; font-weight: 700; visibility: hidden; }
  .film-hud.is-on { visibility: visible; }
  .film-hud.is-on .film-hud-txt { padding: 4px 12px 4px 0; }
  .film-bar { margin-top: 4px; }
  .film-ctl span { display: none; }
}
.film-hud .j { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: var(--sheet); border: 1.5px solid var(--ink); overflow: hidden; }
.film-hud .j svg { width: 30px; margin-top: 6px; }
.film-hud i { width: 12px; height: 12px; border: 2px solid var(--ink); border-top-color: transparent; border-radius: 999px; animation: spin 0.8s linear infinite; }
/* Things that appear in place: their room is kept from the start, so nothing around them moves. */
.app .hide, .sim .hide { opacity: 0; transform: translateY(6px); transition: opacity 420ms ease, transform 420ms cubic-bezier(0.25, 0.8, 0.25, 1); }
.app .hide.is-shown, .sim .hide.is-shown { opacity: 1; transform: none; }
.app .cand.hide { transform: translateY(10px); }


.film-bar { min-width: 0; }
.chat-head .j, .chat-head b, .chat-head .tag, .chat-tools, .chat-tools svg { flex: none; }
.chat-status { min-width: 0; overflow: hidden; }
.chat-status i { flex: none; }
.chat-status em { overflow: hidden; text-overflow: ellipsis; }

/* A demo the visitor started keeps moving even when the system asks for less motion; the still poster stays still. */
@media (prefers-reduced-motion: reduce) { .film.is-idle .film-cam * { animation-play-state: paused !important; } }

/* Shortlist page, the send window, and the page that tracks a send */
.back { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.sl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.sl-acts { display: flex; align-items: center; gap: 8px; }
.btn-g { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-k.sm { min-height: 40px; font-size: 14px; }
.modal-veil { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(21, 23, 28, 0.28); opacity: 0; transition: opacity 320ms ease; }
.modal-veil.is-on { opacity: 1; }
.modal { width: 440px; padding: 24px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--sheet); box-shadow: 6px 6px 0 var(--ink); transform: translateY(10px); transition: transform 380ms cubic-bezier(0.25, 0.8, 0.25, 1); }
.modal-veil.is-on .modal { transform: none; }
.modal h4 { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.modal label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.modal .field { position: relative; justify-content: space-between; color: var(--mute); background: var(--sheet); transition: border-color 200ms, background 200ms; }
.modal .field::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); flex: none; }
.modal .field.has-value { color: var(--ink); font-weight: 500; }
.modal .field.is-press { border-color: var(--ink); }
.modal .field.is-fixed { background: var(--paper); color: var(--ink); }
.m-drop { position: absolute; left: 24px; right: 24px; z-index: 2; margin-top: 4px; padding: 6px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--sheet); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(-6px); transition: opacity 240ms ease, transform 240ms ease; }
.m-drop.is-on { opacity: 1; transform: none; }
.m-drop p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; transition: background 150ms; }
.m-drop p.is-press { background: var(--marker-soft); }
.m-drop small { font-size: 12px; font-weight: 700; color: var(--done); }
.m-holder { position: relative; }
.m-sum { margin-top: 16px !important; padding: 10px 12px; border-radius: 10px; background: var(--marker-soft); border: 1px solid var(--ink); font-size: 15px; font-weight: 600; }
.m-note { margin-top: 10px !important; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.m-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px !important; }
.d-meta { margin-top: 6px !important; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.d-meta b { color: var(--ink); font-weight: 500; }
.d-bar { height: 10px; max-width: 420px; margin-top: 10px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--sheet); }
.d-bar i { display: block; height: 100%; width: 0; background: var(--marker); transition: width 300ms linear; }
.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 20px !important; }
.rows li { display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); transition: border-color 300ms; }
.r-name { width: 190px; flex: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.r-status { display: inline-flex; align-items: center; gap: 7px; min-width: 110px; font-size: 13px; font-weight: 600; color: var(--mute); }
.r-status i { width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid var(--stone); }
.rows li.is-sending .r-status { color: var(--ink); }
.rows li.is-sending .r-status i { border: 2px solid var(--ink); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.rows li.is-sent .r-status { color: var(--done); }
.rows li.is-sent .r-status i { border-color: var(--done); background: var(--done); }
.r-res { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.rows .btn-g { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* Simulation: make it read as a live call */
.sim-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--sheet); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sim-live i { width: 8px; height: 8px; border-radius: 999px; background: var(--alert); animation: film-pulse 1.1s ease-in-out infinite; }
.sim-live svg { width: 14px; height: 14px; }
.avatar { position: relative; }
.ai-badge { position: absolute; right: -8px; bottom: -6px; padding: 1px 6px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--marker); font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; }
.mic-badge { position: absolute; right: -7px; bottom: -6px; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--sheet); color: var(--ink); }
.mic-badge svg { width: 11px; height: 11px; }
.who-row small { display: flex; align-items: center; gap: 5px; }
.who-row small svg { width: 12px; height: 12px; flex: none; }
.ringing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; transition: opacity 300ms ease; }
.ringing.is-gone { opacity: 0; }
.ring-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 999px; background: var(--done); color: #fff; animation: film-ring 0.9s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.5); }
.ring-ico svg { width: 28px; height: 28px; }
.ringing b { font-size: 20px; }
.ringing span { font-size: 14px; color: var(--ink-2); }
.hang svg { transform: rotate(135deg); }
@keyframes film-ring { 0%, 100% { transform: rotate(0); box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.45); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(0); box-shadow: 0 0 0 14px rgba(46, 125, 79, 0); } }

.ringing .ring-ico { color: #fff; }
.hang svg { width: 20px; height: 20px; }
/* Joe's task card: every property stated here, so nothing leaks in from the rest of the site */
.plan li.step { border-radius: 0; font-weight: 500; background: transparent; transition: color 250ms, background 300ms; }
.plan li.is-doing { background: var(--marker-soft); font-weight: 600; }
.plan li.is-done, .plan li.step:not(.is-doing):not(.is-done) { font-weight: 500; }


/* ---------- Film 4: a branded simulation (Sahel Express, a made-up delivery company) ---------- */
.bg { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; overflow: hidden; background: #0e4d45; color: #10231f; --co: #ff6b3d; --gr: #0e4d45; --cr: #fff7ea; }
.bg h3, .bg h4, .bg h5, .bg p, .bg ul { margin: 0; padding: 0; }
.bg-top { position: absolute; left: 0; right: 0; top: 0; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 24px; color: #fff; }
.bg-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.bg-logo i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--co); }
.bg-logo svg { width: 20px; height: 20px; }
.bg-tag { padding: 4px 12px; font-size: 13px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 999px; }
.bg-who { margin-left: auto; font-size: 14px; font-weight: 600; }
.bg-clock { padding: 5px 13px; font-family: var(--mono); font-size: 18px; background: var(--cr); color: var(--gr); border-radius: 11px; }
.bg-side { position: absolute; left: 24px; top: 80px; bottom: 24px; width: 306px; display: flex; flex-direction: column; gap: 12px; }
.bg-card { padding: 15px 16px; background: var(--cr); border-radius: 18px; }
.bg-brief { background: var(--co); color: #fff; }
.bg-brief h4 { font-size: 21px; letter-spacing: -0.01em; }
.bg-brief p { margin-top: 6px; font-size: 15.5px; line-height: 1.4; }
.bg-card h5 { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #4d6660; }
.bg-order { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; background: #fff; border: 2px solid transparent; border-radius: 13px; transition: border-color 200ms; }
.bg-order.is-sel { border-color: var(--co); }
.bg-order b { display: block; font-size: 15px; }
.bg-order small { display: block; font-size: 12.5px; color: #4d6660; }
.bg-order small i { font-style: normal; font-weight: 700; color: #c53d14; margin-right: 6px; }
.bg-order em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef1ec; color: #4d6660; white-space: nowrap; }
.bg-order em.is-go { background: #ffe1d6; color: #a8330f; }
.bg-order em.is-done { background: var(--gr); color: #fff; }
.bg-dot, .bg-pin { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--gr); border-radius: 50%; }
.bg-dot { width: 32px; height: 32px; font-size: 15px; }
.bg-team p { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.bg-face { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 13px; font-weight: 800; color: #fff; border-radius: 50%; background: var(--co); }
.bg-face.l { background: #7a4be0; margin-left: 12px; }
.bg-pop .bg-face.l { margin-left: 0; }
.bg-map { position: absolute; left: 350px; top: 80px; width: 826px; height: 646px; border-radius: 22px; overflow: hidden; background: #fdf8ee; }
.bg-map::after { content: ''; position: absolute; inset: 0; z-index: 5; background: rgba(14, 77, 69, 0); transition: background 500ms; pointer-events: none; }
.bg-map.is-dim::after { background: rgba(14, 77, 69, 0.72); }
.bg-svg { position: absolute; inset: 0; width: 826px; height: 646px; display: block; }
.bg-r { fill: none; stroke: var(--co); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 900ms ease, opacity 200ms, stroke 300ms; }
.bg-r.is-on { stroke-dashoffset: 0; opacity: 1; }
.bg-r.is-bad { stroke: #9aa7a2; }
#bg-b { stroke: #7a4be0; }
.bg-depot { position: absolute; left: 110px; top: 470px; transform: translate(-50%, 30px); padding: 3px 10px; font-size: 13px; font-weight: 700; color: #fff; background: #10231f; border-radius: 8px; }
.bg-pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 19px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(16, 35, 31, 0.25); transition: transform 200ms, background 300ms; }
.bg-pin.is-sel, .bg-pin.is-press { transform: scale(1.18); background: var(--co); }
.bg-pin.is-done { background: #1f9d63; }
.bg-pin svg { width: 20px; height: 20px; }
.bg-bar { position: absolute; width: 56px; height: 30px; margin: -15px 0 0 -28px; border-radius: 7px; border: 3px solid #10231f; background: repeating-linear-gradient(-45deg, #ffd23d 0 9px, #10231f 9px 18px); opacity: 0; transform: scale(0.4); transition: opacity 250ms, transform 350ms cubic-bezier(0.3, 1.5, 0.5, 1); }
.bg-bar.is-in { opacity: 1; transform: none; }
.bg-alt { position: absolute; transform: translate(-50%, -50%) scale(0.6); padding: 6px 12px; font-size: 14px; font-weight: 700; color: #fff; background: #10231f; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 250ms, transform 300ms; }
.bg-alt.is-in { opacity: 1; transform: translate(-50%, -50%); }
.bg-alt.is-press { background: var(--co); }
.bg-sc { position: absolute; left: 0; top: 0; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: 16px; font-weight: 800; color: #fff; background: var(--co); border: 3px solid #fff; border-radius: 12px; box-shadow: 0 4px 0 rgba(16, 35, 31, 0.3); transition: transform 70ms linear; }
.bg-sc.l { background: #7a4be0; margin-left: 1px; margin-top: -1px; }
.bg-pop { position: absolute; z-index: 5; width: 196px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 10px 0 rgba(16, 35, 31, 0.18), 0 0 0 2px #10231f; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 200ms, transform 250ms; pointer-events: none; }
.bg-pop.is-in { opacity: 1; transform: none; }
.bg-pop b { display: block; margin-bottom: 8px; font-size: 14px; }
.bg-pop button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; margin-top: 6px; padding: 7px 9px; font: inherit; font-size: 15px; font-weight: 700; color: inherit; background: var(--cr); border: 2px solid transparent; border-radius: 11px; }
.bg-pop button small { margin-left: auto; font-size: 12px; font-weight: 600; color: #4d6660; }
.bg-pop button.is-press { border-color: var(--co); background: #ffe1d6; }
.bg-toast { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translate(-50%, 12px); padding: 10px 20px; font-size: 21px; font-weight: 800; color: #fff; background: #10231f; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 250ms, transform 300ms; }
.bg-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.bg-toast.bad { background: #c53d14; }
.bg-toast.ok { background: #1f9d63; }
.bg-end { position: absolute; left: 470px; top: 104px; width: 560px; display: flex; flex-direction: column; gap: 14px; z-index: 6; }
.bg-end > * { opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 350ms, transform 450ms cubic-bezier(0.3, 1.3, 0.5, 1); }
.bg-end > .is-in { opacity: 1; transform: none; }
.bg-win { position: relative; padding: 26px 28px 24px; background: var(--cr); border-radius: 24px; text-align: center; overflow: hidden; }
.bg-win h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--gr); }
.bg-win p { margin-top: 10px; font-size: 17px; line-height: 1.4; }
.bg-tell { margin-top: 16px; min-height: 0; padding: 11px 22px; font: inherit; font-size: 17px; font-weight: 800; color: #fff; background: var(--co); border: 0; border-radius: 999px; box-shadow: 0 5px 0 #a8330f; }
.bg-tell.is-press { transform: translateY(3px); box-shadow: 0 2px 0 #a8330f; }
.bg-conf i { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--co); }
.bg-conf i:nth-child(1) { left: 26px; top: 20px; transform: rotate(20deg); }
.bg-conf i:nth-child(2) { left: 70px; top: 58px; width: 10px; height: 10px; background: #7a4be0; border-radius: 50%; }
.bg-conf i:nth-child(3) { right: 30px; top: 24px; background: #1f9d63; transform: rotate(-18deg); }
.bg-conf i:nth-child(4) { right: 76px; top: 62px; width: 10px; height: 10px; background: #ffd23d; border-radius: 50%; }
.bg-conf i:nth-child(5) { left: 40px; bottom: 30px; background: #ffd23d; transform: rotate(40deg); }
.bg-conf i:nth-child(6) { right: 44px; bottom: 34px; background: #7a4be0; transform: rotate(12deg); }
.bg-win.is-in .bg-conf i { animation: bgpop 700ms cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes bgpop { from { scale: 0; } to { scale: 1; } }
.bg-share { align-self: flex-end; width: 400px; padding: 12px 16px 10px; background: #fff; border-radius: 20px 20px 4px 20px; }
.bg-share small { display: block; font-size: 12.5px; font-weight: 700; color: var(--co); }
.bg-share p { margin-top: 3px; font-size: 17px; line-height: 1.4; }
.bg-share span { display: block; margin-top: 4px; font-size: 12px; color: #4d6660; text-align: right; }
.bg-proof { padding: 14px 18px 12px; background: #f4f5f2; border: 2px solid #15171c; border-radius: 16px; box-shadow: 4px 4px 0 #15171c; color: #15171c; }
.bg-proof small { display: block; font-family: var(--mono); font-size: 12px; color: #5a5f66; }
.bg-proof b { display: block; margin-top: 2px; font-size: 18px; }
.bg-proof ul { margin-top: 8px; list-style: none; }
.bg-proof li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #d9dcd6; font-size: 16px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity 300ms, transform 300ms; }
.bg-proof li.is-shown { opacity: 1; transform: none; }
.bg-proof li svg { flex: none; width: 20px; height: 20px; padding: 4px; color: #15171c; background: #f5dc4a; border: 1.5px solid #15171c; border-radius: 50%; }
.bg-proof time { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #5a5f66; }

@media (max-width: 700px) { body { overflow-x: clip; } }
.bg.is-compact .bg-tag, .bg.is-compact .bg-who, .bg.is-compact .bg-clock { visibility: hidden; }
/* Phones: when the camera pulls back, the app sits in the frame like a screen, with a clear edge. */
@media (max-width: 700px) { .film-cam { border-radius: 26px; box-shadow: 0 0 0 5px var(--ink); overflow: hidden; } .film-screen { background: var(--side, #eceee9); } }
