/* AC Hub — estilos
   Celular (até 899px): feed vertical em tela cheia.
   Computador (900px ou mais): perfil com stories e grade. */

:root {
  --ink: #17171E;
  --muted: #4B4857;
  --line: #E9E5EC;
  --soft: #EFEDF2;
  --hub: #7C3AED;
  --hub-dark: #6D28D9;
  --hub-tint: #F3EEFE;
  --hub-light: #C4B5FD;
  --blue: #1D4ED8;
  --pink: #EC4899;
  --ring: linear-gradient(135deg, #5B8DEF, #8B5CF6, #EC4899);
  --nav-h: 58px;
  --display: "Jost", "Century Gothic", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: #FFFFFF; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; stroke-width: 2.25; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.center { text-align: center; }
.b { font-weight: 700; }
.link-blue { color: var(--blue); font-weight: 600; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--hub); color: #FFFFFF; }
.btn-primary:hover { background: var(--hub-dark); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: #E4E1EA; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--ink); border-radius: 999px; }
.btn-ghost-light { border: 1.5px solid #FFFFFF; color: #FFFFFF; border-radius: 999px; }
.btn-outline { border: 1.5px solid var(--ink); background: transparent; }
.btn-wide { width: 100%; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; border-radius: 50%; color: var(--ink); text-decoration: none; }
.icon-btn.light { color: #FFFFFF; }
.icon-btn .ic { width: 26px; height: 26px; }

.checks { display: flex; flex-direction: column; gap: 9px; }
.checks li { display: flex; gap: 10px; line-height: 1.45; }
.checks .ic { color: var(--hub-light); margin-top: 2px; }
.checks-dark .ic { color: var(--hub); }

.avatar { display: inline-block; flex: none; border-radius: 50%; padding: 2px; background: var(--ring); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 34px; height: 34px; }
.avatar-xl { width: 150px; height: 150px; padding: 4px; }
.avatar-xl img { border-width: 4px; }

/* Curtir */
.js-like[aria-pressed="true"] .heart { fill: var(--pink); stroke: var(--pink); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.js-save[aria-pressed="true"] .ic { fill: var(--ink); }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* =========================================================
   CELULAR
   ========================================================= */
.d-app { display: none; }
.m-app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #000000; color: #FFFFFF; }

.m-tabs { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 0 8px; pointer-events: none; }
.m-tab { pointer-events: auto; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: rgba(255, 255, 255, .72); font-weight: 700; font-size: 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); cursor: pointer; }
.m-tab.is-on { color: #FFFFFF; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.feed { height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed:focus { outline: none; }
.clip { position: relative; height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); min-height: 560px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #000000; }
.clip-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
.clip-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .82) 100%); }

.clip-rail { position: absolute; z-index: 2; right: 8px; bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail-avatar { position: relative; width: 50px; height: 50px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rail-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; }
.rail-avatar span { position: absolute; left: 50%; bottom: -9px; margin-left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--hub); color: #FFFFFF; font: 700 16px/22px var(--text); }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 0; border: 0; background: transparent; color: #FFFFFF; text-decoration: none; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); cursor: pointer; }
.rail-btn .ic { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.disc { width: 46px; height: 46px; border-radius: 50%; border: 7px solid #26242F; background: #26242F; overflow: hidden; animation: spin 6s linear infinite; }
.disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.clip-text { position: absolute; z-index: 2; left: 14px; right: 82px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.handle { font-weight: 700; font-size: 16px; }
.handle span { font-weight: 500; font-size: 13px; opacity: .85; }
.clip-text h2 { font-size: 23px; line-height: 1.15; }
.clip-text p { font-size: 14px; line-height: 1.45; }
.tags { font-weight: 600; }
.music { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow: hidden; }
.music > span { flex: 1; overflow: hidden; white-space: nowrap; }
.mq { display: inline-block; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clip-cta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--hub); color: #FFFFFF; font-weight: 600; font-size: 15px; text-shadow: none; cursor: pointer; }

.swipe-hint { position: absolute; z-index: 3; left: 50%; top: 42%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); animation: bob 1.6s ease-in-out 4 both; pointer-events: none; transition: opacity .3s; }
.swipe-hint.is-gone { opacity: 0; }
@keyframes bob { 50% { transform: translate(-50%, -10px); } }

.fx-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fx-confetti i { position: absolute; top: -20px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear infinite; }
.fx-confetti i:nth-child(1) { left: 8%; background: #EC4899; animation-duration: 6s; }
.fx-confetti i:nth-child(2) { left: 20%; background: #FACC15; animation-duration: 7s; animation-delay: 1.4s; }
.fx-confetti i:nth-child(3) { left: 33%; background: #5B8DEF; animation-duration: 6.5s; animation-delay: 2.6s; border-radius: 50%; }
.fx-confetti i:nth-child(4) { left: 47%; background: #8B5CF6; animation-duration: 7.5s; animation-delay: .6s; }
.fx-confetti i:nth-child(5) { left: 61%; background: #EC4899; animation-duration: 6s; animation-delay: 3.2s; border-radius: 50%; }
.fx-confetti i:nth-child(6) { left: 74%; background: #FACC15; animation-duration: 7s; animation-delay: 2s; }
.fx-confetti i:nth-child(7) { left: 86%; background: #5B8DEF; animation-duration: 6.5s; animation-delay: 4s; }
.fx-confetti i:nth-child(8) { left: 93%; background: #8B5CF6; animation-duration: 7.2s; animation-delay: 1s; border-radius: 50%; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.fx-layers { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 6px); pointer-events: none; }
.fx-laser { position: absolute; left: 0; right: 0; height: 2px; background: var(--hub-light); box-shadow: 0 0 18px 3px rgba(139, 92, 246, .85); animation: laser 4s cubic-bezier(.45, 0, .55, 1) infinite; pointer-events: none; }
@keyframes laser { from { top: 88%; } to { top: 12%; } }

.clip-final { display: flex; align-items: center; background: var(--ink); }
.final-glow { position: absolute; width: 520px; height: 520px; right: -260px; top: -200px; border-radius: 50%; background: var(--ring); opacity: .35; filter: blur(30px); }
.final-body { position: relative; width: 100%; padding: 72px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--hub-light); }
.final-body h2 { font-size: 36px; line-height: 1.05; }
.final-body .muted { color: #CFCBDA; }
.final-body .checks li { font-size: 15px; }
.final-foot { font-size: 12px; line-height: 1.5; color: #CFCBDA; margin-top: 4px; }

.m-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #000000; display: flex; justify-content: space-around; align-items: center; }
.m-nav > button, .m-nav > a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 48px; justify-content: center; border: 0; background: transparent; color: #FFFFFF; font-size: 10px; text-decoration: none; cursor: pointer; }
.m-nav .m-plus { min-width: 0; width: 50px; height: 34px; min-height: 0; padding: 0 3px; border-radius: 10px; background: linear-gradient(90deg, #5B8DEF, #EC4899); }
.m-plus span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 8px; background: #FFFFFF; color: var(--ink); font: 700 22px var(--text); }

/* =========================================================
   COMPUTADOR
   ========================================================= */
@media (min-width: 900px) {
  .m-app { display: none; }
  .d-app { display: flex; min-height: 100vh; }

  .d-side { position: sticky; top: 0; height: 100vh; flex: none; width: 244px; padding: 28px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
  .d-brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 26px; font-family: var(--display); font-size: 27px; font-weight: 600; text-decoration: none; }
  .ring-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--ring); padding: 3px; }
  .ring-dot::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #FFFFFF; }
  .d-nav { display: flex; flex-direction: column; gap: 4px; }
  .d-nav a, .d-nav button, .d-side-wa { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; text-decoration: none; font-size: 16px; cursor: pointer; text-align: left; }
  .d-nav a:hover, .d-nav button:hover, .d-side-wa:hover { background: var(--soft); }
  .d-nav a.is-on { font-weight: 700; }
  .d-nav .ic, .d-side-wa .ic { width: 26px; height: 26px; }
  .d-nav-cta { color: var(--hub); font-weight: 600 !important; }
  .d-side-wa { margin-top: auto; }

  .d-center { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 56px; padding: 0 32px; }
  .d-col { flex: 0 1 630px; min-width: 0; padding: 24px 0 48px; display: flex; flex-direction: column; gap: 24px; }

  .stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
  .story { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; padding: 0; background: transparent; cursor: pointer; }
  .story-ring { position: relative; display: block; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: var(--ring); }
  .story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #FFFFFF; }
  .story-new b { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--hub); border: 3px solid #FFFFFF; color: #FFFFFF; font: 700 16px/18px var(--text); text-align: center; }
  .story-label { font-size: 12px; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .story:hover .story-ring { transform: scale(1.04); transition: transform .2s; }

  .profile { display: flex; align-items: center; gap: 32px; }
  .profile-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .profile-name { font-family: var(--text); font-size: 22px; font-weight: 700; }
  .profile-stats { display: flex; gap: 22px; font-size: 15px; }
  .profile-bio { font-size: 14px; line-height: 1.5; }
  .profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 380px; }
  .profile-actions .btn { min-height: 40px; font-size: 14px; border-radius: 10px; }

  .post { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .post-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
  .carousel { position: relative; aspect-ratio: 4 / 5; background: #F3F2F5; overflow: hidden; }
  .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .4s; }
  .slide.is-on { opacity: 1; }
  .slide img { width: 100%; height: 100%; object-fit: cover; }
  .slide figcaption { position: absolute; left: 12px; top: 12px; background: rgba(23, 23, 30, .8); color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
  .car-btn { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
  .car-btn[disabled] { opacity: 0; pointer-events: none; }
  .car-prev { left: 10px; }
  .car-next { right: 10px; }
  .post-cta { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border: 0; background: var(--hub); color: #FFFFFF; font-weight: 600; font-size: 15px; cursor: pointer; }
  .post-cta:hover { background: var(--hub-dark); }
  .post-actions { display: flex; align-items: center; padding: 4px 6px; }
  .car-dots { flex: 1; display: flex; justify-content: center; gap: 5px; padding-right: 88px; }
  .car-dots i { width: 7px; height: 7px; border-radius: 50%; background: #D9D3DE; }
  .car-dots i.is-on { background: var(--hub); }
  .post-body { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }

  .grid-tabs { display: flex; justify-content: center; border-top: 1px solid var(--line); }
  .grid-tabs span { padding: 12px 24px; border-top: 1.5px solid var(--ink); margin-top: -1px; }
  .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .grid-item { position: relative; padding: 0; border: 0; background: #F3F2F5; cursor: pointer; overflow: hidden; aspect-ratio: 1; }
  .grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
  .grid-item span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; background: rgba(23, 23, 30, .55); color: #FFFFFF; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; }
  .grid-item:hover span, .grid-item:focus-visible span { opacity: 1; }
  .grid-item:hover img { transform: scale(1.04); }

  .faq h2 { font-family: var(--text); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
  .faq-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
  .faq-item .q, .faq-item .a { display: flex; gap: 10px; }
  .faq-item .a { margin-left: 42px; }
  .q-badge { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #F3F2F5; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }

  .d-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
  .d-foot-links { display: flex; gap: 18px; }
  .d-foot-links a { color: var(--ink); font-weight: 600; }

  .d-right { display: none; flex: none; width: 330px; padding-top: 36px; }
  .close-card { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
  .close-title { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.15; }
  .close-card .checks { font-size: 15px; }
}
@media (min-width: 1200px) {
  .d-right { display: block; }
}

/* =========================================================
   JANELAS
   ========================================================= */
.dlg { border: 0; padding: 0; color: var(--ink); background: #FFFFFF; max-width: 100vw; }
.dlg::backdrop { background: rgba(23, 23, 30, .6); }
.sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.sheet[open] { animation: sheet-up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #D9D3DE; margin: 0 auto 10px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dlg-head h2 { font-size: 27px; }
.dlg-head .muted { font-size: 15px; line-height: 1.5; margin-top: 6px; }

#faq details { border-top: 1px solid var(--line); }
#faq details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
#faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--hub); }
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.orc-form { display: flex; flex-direction: column; gap: 14px; }
.chips-field { border: 0; padding: 0; margin: 0; }
.chips-field legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #D9D3DE; font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s; }
.chip input:checked + span { border-color: var(--hub); background: var(--hub-tint); color: var(--hub-dark); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--hub); outline-offset: 2px; }
.tip { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; min-height: 20px; }
.tip.is-good { color: #15803D; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; padding: 10px 14px; border: 1px solid #8E8A99; border-radius: 12px; font: 16px var(--text); color: var(--ink); background: #FFFFFF; width: 100%; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border: 2px solid #B91C1C; }
.err { font-size: 13px; font-weight: 500; color: #B91C1C; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.orc-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 4px; }
.orc-sent h2 { font-size: 28px; outline: none; }
.ok-badge { width: 56px; height: 56px; border-radius: 50%; background: #DCFCE7; color: #15803D; display: flex; align-items: center; justify-content: center; }
.ok-badge .ic { width: 28px; height: 28px; stroke-width: 2.25; }

.story-view { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #000000; }
.story-view::backdrop { background: rgba(10, 10, 14, .94); }
.sv-frame { position: relative; width: 100%; height: 100%; overflow: hidden; color: #FFFFFF; }
.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .82) 100%); }
.sv-bars { position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; }
.sv-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars span i { display: block; height: 100%; width: 0; background: #FFFFFF; }
.sv-bars span.done i { width: 100%; }
.sv-bars span.now i { animation: fillbar 5s linear forwards; }
@keyframes fillbar { to { width: 100%; } }
.sv-top { position: absolute; z-index: 3; left: 12px; right: 4px; top: 22px; display: flex; align-items: center; gap: 10px; }
.sv-top p { flex: 1; font-size: 14px; }
.sv-count { opacity: .8; }
.sv-prev, .sv-next { position: absolute; z-index: 1; top: 80px; bottom: 210px; border: 0; background: transparent; cursor: pointer; }
.sv-prev { left: 0; width: 35%; }
.sv-next { right: 0; width: 65%; }
.sv-text { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.sv-title { font-size: 28px; line-height: 1.1; }
.sv-caption { font-size: 15px; line-height: 1.5; opacity: .92; }

@media (min-width: 900px) {
  .sheet { width: 540px; max-height: 88vh; margin: auto; border-radius: 24px; padding: 30px; }
  .sheet .grab { display: none; }
  .story-view { width: 420px; height: min(746px, 92vh); border-radius: 16px; margin: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-confetti, .fx-laser, .swipe-hint { display: none; }
}
