.topbar .brand { margin-right: auto; }
#back + .brand { margin-left: 4px; }
.stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 20% 18%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 70% 28%, rgba(255,255,255,.6), transparent), radial-gradient(1.5px 1.5px at 85% 52%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 12% 62%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 40% 8%, rgba(255,255,255,.6), transparent), radial-gradient(1.5px 1.5px at 55% 42%, rgba(255,255,255,.35), transparent); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }

/* cápsula */
.cap { --w: 190px; --h: 86px; position: relative; width: var(--w); height: var(--h); }
.cap .half { position: absolute; top: 0; height: 100%; width: 50%; }
.cap .half.l { left: 0; border-radius: var(--h) 0 0 var(--h); background: linear-gradient(160deg, #FFFFFF 0%, #DDF4FF 55%, #A9DDF5 100%); box-shadow: inset -6px -8px 14px rgba(0,60,120,.18); }
.cap .half.r { right: 0; border-radius: 0 var(--h) var(--h) 0; background: linear-gradient(160deg, #6FD6F5 0%, var(--cyan) 45%, var(--deep) 100%); box-shadow: inset -8px -10px 16px rgba(0,30,80,.3); }
.cap .half::after { content: ""; position: absolute; left: 14%; right: 14%; top: 14%; height: 18%; border-radius: 20px; background: rgba(255,255,255,.55); filter: blur(1px); }
.cap .band { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 46px; transform: translateX(-50%); border-radius: 12px; background: linear-gradient(180deg, #0B3A6B, #012A4F); box-shadow: 0 6px 16px rgba(0,10,30,.45), inset 0 0 0 2px rgba(255,255,255,.22); display: grid; place-items: center; }
.cap .band b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #fff; }
.cap.float { animation: float 4.5s ease-in-out infinite; transform: rotate(-14deg); }
@keyframes float { 0%,100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-10px); } }
.hero-cap { position: relative; height: 150px; display: grid; place-items: center; margin: 4px 0 10px; }
.hero-cap .glow { position: absolute; width: 240px; height: 60px; bottom: 6px; border-radius: 50%; background: radial-gradient(ellipse, rgba(2,177,223,.45), transparent 70%); filter: blur(6px); }
.mine { padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.mine svg { width: 26px; height: 26px; flex-shrink: 0; color: #7FD4F3; }
.mine p { margin: 0; font-size: 14px; line-height: 1.4; }
.mine b { display: block; font-size: 15px; }
.mine a { color: #fff; font-weight: 700; font-size: 13.5px; }

.themes { display: flex; flex-direction: column; gap: 10px; }
.th { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 12px 16px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; text-align: left; transition: all .25s var(--ease); animation: enter .4s var(--ease) both; }
.th .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--acc); color: #012A4F; flex-shrink: 0; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.th .ic svg { width: 24px; height: 24px; }
.th b { display: block; font-size: 16px; font-weight: 800; }
.th small { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.th.on { background: #fff; color: var(--deep); border-color: #fff; transform: scale(1.01); box-shadow: 0 16px 34px rgba(0,20,60,.3); }
.th.on small { color: #32628f; }
.th .tick { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; flex-shrink: 0; }
.th .tick svg { width: 16px; height: 16px; opacity: 0; }
.th.on .tick { background: var(--deep); border-color: var(--deep); color: #fff; }
.th.on .tick svg { opacity: 1; }

.prompts { padding: 14px 16px 12px; margin-bottom: 4px; }
.pr-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #BFEAFF; }
.pr-next { appearance: none; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; min-height: 36px; }
.pr-q { margin: 8px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.3; min-height: 2.6em; animation: enter .35s var(--ease) both; }
.pr-dots { display: flex; gap: 5px; }
.pr-dots i { height: 4px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.2); }
.pr-dots i.on { background: #fff; }
.s-recado .rec { padding-top: 6px; }
.s-recado .rec-btn { width: 116px; height: 116px; }
.letter { background: linear-gradient(180deg, #FFFDF7, #F4EFE3); color: #183453; border-radius: 20px; padding: 18px 18px 10px; box-shadow: 0 18px 40px rgba(0,10,30,.35); position: relative; }
.letter::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(2,103,177,.10) 31px 32px); background-position: 0 58px; pointer-events: none; }
.letter-head { margin: 0 0 6px; font-weight: 700; font-size: 17px; font-style: italic; }
.letter textarea { width: 100%; min-height: 200px; border: 0; outline: none; background: transparent; resize: none; color: #183453; font-size: 16px; line-height: 32px; font-weight: 500; position: relative; }
.letter textarea::placeholder { color: rgba(24,52,83,.45); }
.letter .count { text-align: right; font-size: 11.5px; opacity: .6; font-variant-numeric: tabular-nums; }
#qchips { margin-top: 12px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.88); margin-top: 16px; cursor: pointer; }
.consent input { appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgba(255,255,255,.6); flex-shrink: 0; margin: 0; display: grid; place-items: center; transition: all .2s; }
.consent input:checked { background: #fff; border-color: #fff; }
.consent input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--deep); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
#redo { align-self: center; }

/* lacrando */
.s-lacrando { justify-content: center; align-items: center; }
.seal-stage { position: relative; width: 300px; height: 320px; display: grid; place-items: center; }
.seal-stage .cap { --w: 230px; --h: 104px; }
.seal-stage .half.l { animation: closeL 1.1s cubic-bezier(.5,0,.2,1.3) .9s both; }
.seal-stage .half.r { animation: closeR 1.1s cubic-bezier(.5,0,.2,1.3) .9s both; }
.seal-stage .band { animation: bandIn .5s var(--ease) 1.9s both; }
@keyframes closeL { from { transform: translateX(-46px) rotate(-8deg); } to { transform: none; } }
@keyframes closeR { from { transform: translateX(46px) rotate(8deg); } to { transform: none; } }
@keyframes bandIn { from { opacity: 0; transform: translateX(-50%) scaleY(.2); } to { opacity: 1; transform: translateX(-50%) scaleY(1); } }
.seal-stage .cap.big { animation: lift 1.4s var(--ease) 2.2s both; }
@keyframes lift { 0% { transform: none; } 40% { transform: scale(1.06); } 100% { transform: translateY(-16px) rotate(-12deg); } }
.drop { position: absolute; top: 8px; left: 50%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, #fff 0%, #7FD4F3 40%, var(--cyan) 75%); box-shadow: 0 0 40px rgba(127,212,243,.9); animation: drop 1s cubic-bezier(.6,0,.4,1) both; z-index: 2; }
.drop svg { width: 28px; height: 28px; color: var(--deep); }
@keyframes drop { 0% { transform: translateY(-30px) scale(.6); opacity: 0; } 30% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(120px) scale(.2); opacity: 0; } }
.ring-flash { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 3px solid #fff; opacity: 0; animation: flash .9s ease-out 1.95s both; }
@keyframes flash { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.sparks i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0; animation: spark 1.2s ease-out 2s both; }
@keyframes spark { 0% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.4); } }
.stamp { position: absolute; bottom: 6px; padding: 10px 18px; border: 3px solid #FFD27A; color: #FFD27A; border-radius: 14px; font-weight: 800; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.1; transform: rotate(-8deg) scale(2.2); opacity: 0; animation: stamp .45s cubic-bezier(.3,1.6,.5,1) 2.7s both; }
.stamp small { font-size: 11px; letter-spacing: .18em; }
@keyframes stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.seal-msg { margin-top: 18px; font-weight: 700; font-size: 16px; text-align: center; min-height: 1.4em; animation: enter .4s var(--ease) both; }

/* pronta */
.s-pronta .card-preview { margin: 6px 0 2px; }
.timeline { margin-top: 18px; padding: 6px 14px; }
.tl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13.5px; line-height: 1.35; }
.tl:last-child { border: 0; }
.tl > svg { width: 22px; height: 22px; flex-shrink: 0; color: #7FD4F3; }
.tl.done > svg { color: #3BE08A; }
.tl b { display: block; font-size: 14.5px; }
.tl span { flex: 1; color: var(--soft); }
.tl span b { color: #fff; }
.tl-toggle { cursor: pointer; }
.tl-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.22); position: relative; flex-shrink: 0; transition: background .25s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.tl-toggle input:checked + .sw { background: #3BE08A; }
.tl-toggle input:checked + .sw::after { transform: translateX(18px); }
