/* In-app animated posters / pamphlets (js/posters.js). Slides are compact phone cards; content animates in on activation. */

.deck { display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; }
.deck-track {
  position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 28px; padding: 6px 28px 14px; scrollbar-width: none;
}
.deck-track::-webkit-scrollbar { display: none; }
.deck-track:focus-visible { outline: none; }
.deck-track:focus-visible .slide.on { box-shadow: 0 0 0 3px #7C5CF0, var(--shadow); }

.slide {
  position: relative; flex: 0 0 calc(100% - 56px); max-width: 420px; min-height: 400px; scroll-snap-align: center;
  border-radius: 28px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  background:
    radial-gradient(180px 180px at 100% 0%, #FFE6F2 0%, transparent 70%),
    radial-gradient(200px 200px at 0% 100%, #E3EFFF 0%, transparent 70%), #fff;
  box-shadow: 0 10px 30px rgba(47, 111, 228, .12); border: 1px solid #EEF2FA;
  transform: scale(.94); opacity: .6; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.slide.on { transform: none; opacity: 1; }
.slide > * { position: relative; z-index: 1; }

/* staggered reveal */
.rv { opacity: 0; transform: translateY(14px); }
.slide.on .rv { animation: pv-in .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* headings & text */
.sh { display: flex; align-items: center; gap: 10px; }
.sn { width: 36px; height: 36px; border-radius: 12px; color: #fff; display: grid; place-items: center; font: 400 20px/1 var(--font-display); flex-shrink: 0; box-shadow: 0 6px 14px rgba(30, 42, 68, .15); }
.st { margin: 0; font: 400 22px/1.4 var(--font-display); color: var(--ink); }
.sb { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--body); }
.sb.strong { font-weight: 800; color: var(--ink); }
.sb.muted { font-size: 13px; color: var(--ter); }
.pi { display: inline-grid; place-items: center; flex-shrink: 0; }

/* cover & finale */
.slide.cover { background: var(--bg); color: #fff; border: 0; justify-content: center; gap: 14px; box-shadow: 0 14px 34px rgba(124, 92, 240, .3); }
.slide.cover::before {
  content: ""; position: absolute; inset: -40%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 25%, rgba(255, 255, 255, .14) 35%, transparent 50% 75%, rgba(255, 255, 255, .1) 85%, transparent);
  animation: pv-spin 16s linear infinite;
}
.kk { align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.ct { margin: 0; font: 400 26px/1.4 var(--font-display); text-shadow: 0 3px 14px rgba(0, 0, 0, .18); }
.ct.center { text-align: center; font-size: 28px; }
.cs { margin: 0; font-size: 15px; line-height: 1.8; font-weight: 700; opacity: .95; }
.cf { font-size: 12.5px; font-weight: 700; opacity: .85; }
.cart { display: grid; place-items: center; margin-top: 4px; }
.swipe { margin-top: auto; align-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; opacity: .9; }
.slide.on .swipe .pi { animation: pv-nudge 1.6s ease-in-out infinite 1.2s; }
@keyframes pv-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
.finale { align-items: center; text-align: center; }
.glow { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
.slide.on .glow { animation: pv-in .6s var(--ease) both, pv-pulse 2.4s ease-out infinite .6s; }
@keyframes pv-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }

/* rising bubbles */
.fx-bub { position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.fx-bub span { position: absolute; bottom: -40px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35);
  animation: pv-rise calc(7s + var(--i) * 1.3s) linear infinite; animation-delay: calc(var(--i) * -1.7s); }
@keyframes pv-rise { from { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-520px) translateX(18px); opacity: 0; } }

/* orbit hero */
.orbit-wrap { position: relative; width: 196px; height: 196px; margin: 6px 0; }
.orbit-wrap .ring { position: absolute; inset: 20px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); }
.orbit-wrap .core { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 10px 30px rgba(0, 0, 0, .12); }
.orbit { position: absolute; inset: 0; animation: pv-spin 36s linear infinite; }
.orb { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateY(-78px) rotate(calc(-1 * var(--a))); }
.orb .oi { position: absolute; transform: translate(-50%, -50%); }
.orb .oc { display: flex; flex-direction: column; align-items: center; gap: 3px; animation: pv-spin 36s linear infinite reverse; }
.orb .ob { width: 36px; height: 36px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); border: 2px solid rgba(255, 255, 255, .7); }
.orb .ol { font-size: 12px; font-weight: 800; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.core .puffs circle { transform-box: fill-box; transform-origin: center; animation: pv-puff 3s ease-in-out infinite; }
.core .puffs circle:nth-child(2) { animation-delay: .5s; } .core .puffs circle:nth-child(3) { animation-delay: 1s; } .core .puffs circle:nth-child(4) { animation-delay: 1.5s; }
@keyframes pv-puff { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.18) translateY(-3px); opacity: .7; } }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* illustrations */
.art-box { border-radius: 20px; background: linear-gradient(160deg, #F3F7FF, #FFF3F9); padding: 10px; display: grid; place-items: center; }
.art-box.warm { background: linear-gradient(160deg, #FFF7E8, #FFF0F6); }
.art-box.glass { background: rgba(255, 255, 255, .9); width: 100%; }
.art { width: 100%; height: auto; display: block; }
.art.chain { max-width: 190px; }
.art.route { max-width: 260px; }
.aero .pt { transform-box: fill-box; transform-origin: center; opacity: 0; animation: pv-drift 4.8s ease-in infinite; animation-delay: var(--t); }
@keyframes pv-drift {
  0% { transform: translate(0, 0) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(calc(var(--x) * .5), calc(var(--y) * .3 - 26px)) scale(1); }
  90% { opacity: .9; }
  100% { transform: translate(var(--x), var(--y)) scale(.7); opacity: 0; }
}
.aero .cloud { animation: pv-float 5s ease-in-out infinite; }
.aero .lungs { transform-box: fill-box; transform-origin: center; animation: pv-breathe 3.6s ease-in-out infinite; }
.aero .led, .core .led { animation: pv-blink 1.4s ease-in-out infinite; }
@keyframes pv-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pv-blink { 50% { opacity: .35; } }
@keyframes pv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chain .lk { transform-box: fill-box; transform-origin: center; }
.slide.on .chain .lk.a { animation: pv-tug-a 2.4s ease-in-out infinite; }
.slide.on .chain .lk.b { animation: pv-tug-b 2.4s ease-in-out infinite; }
@keyframes pv-tug-a { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px) rotate(-4deg); } }
@keyframes pv-tug-b { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px) rotate(4deg); } }
.route .rd { animation: pv-dash 1.6s linear infinite; }
@keyframes pv-dash { to { stroke-dashoffset: -32; } }
.route .pin { transform-box: fill-box; transform-origin: center bottom; animation: pv-bob 1.8s ease-in-out infinite; }
@keyframes pv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* "خیر." stamp */
.stamp-row { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 96px; }
.cloud-x { position: relative; }
.cloud-x::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 4px; border-radius: 4px; background: #E5484D; transform: rotate(-30deg) scaleX(0); }
.slide.on .cloud-x::after { animation: pv-strike .4s var(--ease) forwards .9s; }
@keyframes pv-strike { to { transform: rotate(-30deg) scaleX(1); } }
.stamp { font: 400 40px/1 var(--font-display); color: #E5484D; border: 4px solid #E5484D; border-radius: 18px; padding: 12px 22px 6px; transform: rotate(-10deg); opacity: 0; background: #FFF4F5; }
.slide.on .stamp { animation: pv-stamp .5s cubic-bezier(.3, 1.6, .5, 1) forwards .4s; }
@keyframes pv-stamp { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 800; background: #E2F6FA; color: #0E6E83; }
.chip.pink { background: var(--tint-pink); color: #B0236A; }
.slide.on .chip.float { animation: pv-in .6s var(--ease) both, pv-float 3.2s ease-in-out infinite; animation-delay: var(--d), calc(var(--i) * .4s + 1s); }
.into-lungs { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.into-lungs .chips { justify-content: center; }
.lung-big svg { overflow: visible; }
.slide.on .lung-big svg { animation: pv-breathe 3.6s ease-in-out infinite 1.4s; }

/* ≠ boxes */
.neq-box { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; text-align: center; padding: 12px 14px; border-radius: 18px;
  background: var(--tint); color: var(--ink); font: 400 19px/1.5 var(--font-display); }
.neq-box.pink { background: var(--tint-pink); color: #B0236A; }
.neq-box.small { font-size: 16px; }
.neq-box .ne, .vrow .ne { font: 900 28px/1 var(--font); color: #E5484D; display: inline-block; }
.slide.on .neq-box .ne { animation: pv-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d) + .35s); }
@keyframes pv-pop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

/* myth / fact */
.mf { border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.mf .lbl { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 800; }
.mf .q { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.mf.myth { background: #FDECEF; } .mf.myth .lbl { color: #C8303A; }
.mf.fact { background: #E3F7EF; } .mf.fact .lbl { color: #127A55; }
.mf.myth .q { text-decoration: line-through 2px rgba(200, 48, 58, 0); }
.slide.on .mf.myth .q { animation: pv-cross .5s forwards calc(var(--d) + .9s); }
@keyframes pv-cross { to { text-decoration-color: rgba(200, 48, 58, .7); } }

.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dots li { position: relative; padding-right: 18px; font-size: 14.5px; line-height: 1.85; color: var(--body); }
.dots li::before { content: ""; position: absolute; right: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; }
.src { font-size: 13px; line-height: 1.8; color: var(--body); background: #F4F7FC; border-radius: 14px; padding: 9px 12px; }
.src b { color: #1D4FC4; margin-left: 4px; }

.three { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.three li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.three .n { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-soft); color: #fff; display: grid; place-items: center; font: 400 18px/1 var(--font-display); flex-shrink: 0; }
.tipbar { margin-top: auto; border-radius: 18px; padding: 14px 16px; color: #fff; background: var(--grad); background-size: 200% 200%; font: 400 19px/1.55 var(--font-display); animation: pv-shift 6s ease infinite; }
@keyframes pv-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* attitude poster: claim ≠ truth rows */
.vs-slide { justify-content: center; }
.vs { display: flex; flex-direction: column; gap: 10px; }
.vrow { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; }
.vrow .side { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 12px 6px; min-height: 84px; border-radius: 16px; font: 400 15px/1.35 var(--font-display); color: var(--ink); box-shadow: 0 4px 14px rgba(30, 42, 68, .08); opacity: 0; }
.vrow .side .pi { width: 30px; height: 30px; border-radius: 10px; }
.vrow .claim { background: #FFF6E6; } .vrow .claim .pi { background: #F59E0B; }
.vrow .truth { background: #E6F8F1; } .vrow .truth .pi { background: #22B07D; }
.vrow .ne { text-align: center; transform: scale(0); }
.slide.on .vrow .claim { animation: pv-from-r .5s var(--ease) forwards var(--d); }
.slide.on .vrow .truth { animation: pv-from-l .5s var(--ease) forwards calc(var(--d) + .15s); }
.slide.on .vrow .ne { animation: pv-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards calc(var(--d) + .3s); }
@keyframes pv-from-r { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes pv-from-l { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

.big-neq span { font: 900 120px/1 var(--font); color: rgba(255, 255, 255, .9); display: block; text-shadow: 0 8px 30px rgba(0, 0, 0, .2); animation: pv-wobble 3s ease-in-out infinite; }
@keyframes pv-wobble { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
.but { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.but span { font-size: 15px; color: var(--ter); font-weight: 700; }
.but .hl { font: 400 21px/1.4 var(--font-display); color: #B0236A; background: linear-gradient(transparent 60%, #FFD3E6 60%) no-repeat; background-size: 0% 100%; }
.slide.on .but .hl { animation: pv-mark .7s var(--ease) forwards 1.3s; }
@keyframes pv-mark { to { background-size: 100% 100%; } }

.q-slide { justify-content: center; align-items: center; background: linear-gradient(170deg, #FFF0F7 0%, #EEF3FF 100%); }
.qmark { font: 400 120px/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pv-bob 2.2s ease-in-out infinite; }
.speech { position: relative; background: #fff; border-radius: 22px; padding: 18px; font-size: 16px; line-height: 1.95; font-weight: 800; color: var(--ink); text-align: center; box-shadow: 0 10px 26px rgba(124, 92, 240, .15); }
.speech::before { content: ""; position: absolute; top: -12px; left: 50%; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom-color: #fff; }

.qbubbles { position: relative; width: 200px; height: 130px; }
.qbubbles span { position: absolute; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .4); animation: pv-bob 2.6s ease-in-out infinite; }
.qbubbles span:nth-child(1) { width: 90px; height: 90px; font-size: 52px; right: 10px; top: 20px; }
.qbubbles span:nth-child(2) { width: 56px; height: 56px; font-size: 30px; left: 30px; top: 0; animation-delay: .6s; }
.qbubbles span:nth-child(3) { width: 42px; height: 42px; font-size: 22px; left: 60px; top: 80px; animation-delay: 1.2s; }

/* attitude pamphlet */
.mega { align-self: flex-start; position: absolute !important; left: 18px; top: 18px; opacity: .9; }
.slide.on .mega svg { animation: pv-shout 1.8s ease-in-out infinite 1s; transform-origin: 80% 50%; }
@keyframes pv-shout { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg) scale(1.1); } 40% { transform: rotate(6deg); } 60% { transform: rotate(0); } }
.bf { position: relative; text-align: right; font: inherit; border: 1.5px dashed #D5DCEA; border-radius: 16px; background: #fff; padding: 11px 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-height: 48px; }
.bf q { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.75; }
.bf .ans { align-self: flex-start; display: none; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.bf .ans.no { background: #FDECEF; color: #C8303A; } .bf .ans.yes { background: #E3F7EF; color: #127A55; }
.bf .hint { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #7C5CF0; background: #F1EDFF; padding: 2px 8px; border-radius: 99px; }
.bf.open { border-style: solid; border-color: transparent; box-shadow: 0 4px 14px rgba(30, 42, 68, .08); }
.bf.open .ans { display: inline-flex; animation: pv-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.bf.open .hint { display: none; }
.bf:active { transform: scale(.98); }
.quotes { display: flex; flex-direction: column; gap: 8px; }
.quotes q { align-self: flex-start; font-size: 14.5px; font-weight: 700; color: #B0236A; background: var(--tint-pink); border-radius: 16px 16px 16px 4px; padding: 7px 14px; }
.quotes q.alt { align-self: flex-end; color: #1D4FC4; background: var(--tint); border-radius: 16px 16px 4px 16px; }
.ck { display: flex; gap: 10px; align-items: flex-start; text-align: right; font: inherit; background: #F6F9FF; border: 0; border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: background .25s; }
.ck .bx { width: 26px; height: 26px; border-radius: 8px; border: 2.5px solid #7C5CF0; flex-shrink: 0; display: grid; place-items: center; transition: background .2s; }
.ck .bx svg { transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ck b { font: 400 19px/1.3 var(--font-display); color: #7C5CF0; }
.ck > span:last-child { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.ck.on { background: #EFEAFF; }
.ck.on .bx { background: #7C5CF0; }
.ck.on .bx svg { transform: scale(1); }
.must { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.must li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.must li .pi { margin-top: 4px; }
.slide.on .must .pi svg { animation: pv-twinkle 2.4s ease-in-out infinite; }
@keyframes pv-twinkle { 50% { transform: scale(1.3) rotate(20deg); } }
.flow { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow .fa svg { transform: rotate(-90deg); }
.flow .chip { background: var(--tint); color: #1D4FC4; }
.flow .chip.last { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }

/* nav */
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; }
.deck-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.deck-btn:disabled { opacity: .35; cursor: default; }
.deck-dots { display: flex; gap: 6px; align-items: center; }
.deck-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #C9D3E6; cursor: pointer; transition: width .3s var(--ease), background .3s; position: relative; }
.deck-dots button::after { content: ""; position: absolute; inset: -12px -4px; } /* larger touch target */
.deck-dots button.on { width: 24px; background: var(--grad); }
.deck-count { font-size: 12px; color: var(--ter); font-weight: 700; min-width: 34px; text-align: center; }

.poster-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.poster-head .tagp { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide *, .slide *::before, .slide *::after { animation: none !important; transition: none !important; }
  .rv, .vrow .side, .stamp { opacity: 1 !important; transform: none !important; }
  .stamp { transform: rotate(-10deg) !important; }
  .vrow .ne { transform: none !important; }
  .aero .pt { opacity: .8; }
  .but .hl { background-size: 100% 100%; }
}
