/* Wspólny wygląd animacji: te same kolory i fonty co aplikacja ViralCat (src/tokens.css), ale większe, żeby dało się je czytać na telefonie. */
:root {
  --paper: #fff; --surface: #f5f7f7; --ink: #1b252c; --muted: #53636a; --line: #dce5ed; --control: #8295a9;
  --brand: #eea04d; --brand-hover: #e59137; --on-brand: #1b252c; --accent: #9b4a04; --soft: #fff0dd; --teal: #136b68;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--surface); }
#root { position: relative; width: 1200px; height: 960px; overflow: hidden; font: 500 34px/1.3 var(--font); color: var(--ink); }
#bg { position: absolute; inset: 0; background: radial-gradient(900px 640px at 8% 6%, #e8f0ec, transparent 62%), radial-gradient(800px 620px at 98% 2%, #faead5, transparent 58%), linear-gradient(150deg, #f8f8f5, #f5f7f7 60%); }
#scene { position: absolute; inset: 0; opacity: 0; }
p, h3, h4 { margin: 0; }
.hide { opacity: 0; }

/* Na stronie: scena skalowana do ramki, bez przewijania, z dyskretnym przyciskiem pauzy. */
html.live, html.live body { overflow: hidden; }
html.live #root { transform-origin: 0 0; }
#pz { position: fixed; right: 8px; bottom: 8px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
#pz:focus-visible { opacity: 1; outline: 3px solid var(--accent); outline-offset: 2px; }
#pz.held { opacity: 1; }
@media (hover: hover) { html.live:hover #pz { opacity: 1; } }
#pz .i-play, #pz.held .i-pause { display: none; }
#pz.held .i-play { display: block; }

/* Znaki platform i ikony */
.pf { display: inline-flex; flex: none; color: #fff; }
.pf svg { width: 100%; height: 100%; display: block; }
.pf-instagram { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 80%, #4f5bd5); }
.pf-tiktok { background: #000; }
.pf-youtube { background: #f00; }
.ic { display: block; flex: none; }
.art { display: block; width: 100%; height: 100%; }

/* Kursor, kliknięcie i podpis kroku */
#cur { position: absolute; left: 0; top: 0; width: 66px; height: 66px; z-index: 50; transform-origin: 5px 3px; filter: drop-shadow(0 8px 10px rgb(27 37 44 / 0.35)); }
#rip { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 7px solid var(--accent); background: rgb(238 160 77 / 0.3); opacity: 0; z-index: 49; }
.steps { position: absolute; left: 40px; right: 40px; bottom: 34px; height: 84px; z-index: 40; }
.step { position: absolute; left: 0; top: 0; height: 84px; display: flex; align-items: center; gap: 20px; opacity: 0; font: 750 46px/1 var(--font); letter-spacing: -0.02em; white-space: nowrap; }
.step b { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 42px; font-weight: 800; letter-spacing: 0; }

/* Części interfejsu */
.glass { background: rgb(255 255 255 / 0.82); border: 2px solid #fff; border-radius: 34px; box-shadow: inset 0 1px 0 #fff, 0 18px 50px rgb(53 87 124 / 0.1); }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 6px 22px rgb(46 75 110 / 0.06); }
.btn { display: flex; align-items: center; justify-content: center; gap: 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 750; }

/* Pola formularza i powiadomienie */
.panel { position: absolute; left: 40px; right: 40px; top: 30px; z-index: 2; padding: 26px 34px 30px; }
.panel h3 { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 32px; font-weight: 650; }
.lbl span { color: var(--muted); font-size: 30px; font-weight: 500; }
.inp { position: relative; display: flex; align-items: center; height: 78px; padding: 0 24px; border: 2px solid var(--control); border-radius: 20px; background: var(--paper); font-size: 34px; font-weight: 500; white-space: nowrap; }
.inp .ph-t { position: absolute; left: 24px; color: var(--muted); }
.ghost { display: flex; align-items: center; justify-content: center; gap: 12px; border: 2px solid var(--control); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 650; }
.toast { position: absolute; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 20px 30px 20px 22px; border-radius: 26px; background: var(--paper); border: 2px solid var(--teal); box-shadow: 0 26px 60px rgb(28 52 83 / 0.26); font-size: 32px; font-weight: 700; opacity: 0; }
.tick { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: rgb(19 107 104 / 0.14); color: var(--teal); flex: none; }
.spin { color: var(--accent); }

/* Karta filmu */
.post { position: absolute; left: 40px; right: 40px; height: 222px; display: flex; align-items: center; gap: 24px; padding: 14px 20px 14px 14px; }
.th { position: relative; flex: none; width: 152px; height: 192px; border-radius: 16px; overflow: hidden; }
.pl { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(27 37 44 / 0.72); color: #fff; }
.bd { flex: 1; min-width: 0; }
.mt { display: flex; align-items: center; gap: 12px; font-size: 30px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.post h4 { margin: 8px 0 12px; font-size: 36px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.16; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg { display: flex; align-items: center; gap: 22px; font-size: 30px; white-space: nowrap; }
.vw { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-weight: 550; }
.vw b { color: var(--ink); font-weight: 800; }
.rk { display: flex; align-items: baseline; gap: 8px; padding: 4px 16px; border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 650; }
.rk b { font-weight: 800; margin-right: -8px; }
.sv { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.sv .on { position: absolute; inset: -2px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--accent); opacity: 0; }
.sv.is .on { opacity: 1; }

/* Pisanie po literze */
.typed { position: relative; }
.ch { opacity: 0; }
.caret { position: absolute; left: 0; top: 0; width: 4px; height: 1.2em; background: var(--accent); opacity: 0; }

/* Liczby przewijane jak na liczniku */
.roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.dg { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; }
.st { display: block; }
.st span { display: block; height: 1.2em; line-height: 1.2em; }
