/* Cápsula do Tempo 2027 · Claro */
.topbar .icon-btn { grid-column: 3; }
/* cápsula: metade branca, metade vermelha Claro, com brilho passando */
.cap { --w: 176px; --h: 66px; position: relative; width: var(--w); height: var(--h); transform: rotate(-16deg); filter: drop-shadow(0 18px 30px rgba(30, 0, 1, .5)); animation: bob 4.5s ease-in-out infinite; }
.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(180deg, #fff, #F1E4E4); }
.cap .half.r { right: 0; border-radius: 0 var(--h) var(--h) 0; background: linear-gradient(180deg, #FF5A4A, #DA291C 60%, #A8000A); }
.cap .glint { position: absolute; inset: 0; border-radius: var(--h); overflow: hidden; }
.cap .glint::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: glint 3.2s ease-in-out infinite 1s; }
@keyframes glint { 0% { left: -40%; } 40%, 100% { left: 130%; } }
@keyframes bob { 50% { transform: rotate(-12deg) translateY(-6px); } }
.hero-cap { height: 112px; display: flex; align-items: center; padding-left: 8px; margin-top: 2px; }
.s-inicio h1 { margin-top: 4px; }
.pick-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.mine { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 18px; background: rgba(255, 201, 77, .14); border: 1px solid rgba(255, 201, 77, .4); font-size: 13.5px; animation: rise .4s var(--ease) both; }
.mine svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.mine p { margin: 0; color: var(--soft); }
.mine b { display: block; color: #fff; font-size: 15px; }
.mine a { color: var(--gold); font-weight: 800; text-decoration: none; }

.themes { display: flex; flex-direction: column; gap: 8px; }
.th { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 12px 10px 10px; border-radius: 18px; text-align: left; color: #fff;
  background: var(--glass); border: 1px solid var(--line); transition: transform .12s var(--ease), background .15s, border-color .15s; position: relative; overflow: hidden; }
.th .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex-shrink: 0; transition: background .15s, color .15s; }
.th .ic svg { width: 22px; height: 22px; }
.th .tx { flex: 1; min-width: 0; }
.th b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.th small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.th .go { width: 20px; height: 20px; opacity: .55; transition: transform .2s var(--ease), opacity .2s; }
.th .go svg { width: 20px; height: 20px; }
.th.on { background: #fff; color: var(--deep); border-color: #fff; }
.th.on .ic { background: var(--red); color: #fff; }
.th.on small { color: rgba(138, 0, 6, .7); }
.th.on .go { opacity: 1; transform: translateX(4px); }
@media (min-height: 760px) { .th { min-height: 68px; } }

/* recado */
.prompt { padding: 14px 16px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); margin: 6px 0 10px; cursor: pointer; }
.pr-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.pr-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; }
.pr-bars i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.pr-bars i.done::after { transform: scaleX(1); }
.pr-bars i.on::after { animation: fill var(--dur, 7s) linear forwards; }
.pr-bars.paused i.on::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.pr-q { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; min-height: 2.6em; animation: rise .3s var(--ease) both; }
.mode-link { appearance: none; border: 0; background: none; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: background .15s, transform .12s; }
.mode-link svg { width: 17px; height: 17px; }
.mode-link.press { background: var(--glass); }
.letter { padding: 16px 16px 10px; border-radius: 20px; background: #fff; color: #2A0002; animation: rise .35s var(--ease) both; }
.letter-head { margin: 0 0 6px; font-weight: 800; font-size: 16px; color: var(--red); }
.letter textarea { width: 100%; min-height: 150px; border: 0; outline: none; resize: none; background: transparent; color: #2A0002; font-size: 16px; line-height: 1.5; padding: 0; }
.letter textarea::placeholder { color: rgba(42, 0, 2, .45); }
.count { text-align: right; font-size: 12px; color: rgba(42, 0, 2, .5); font-weight: 700; }
.seal-box { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; transition: opacity .25s, transform .3s var(--ease); }
.seal-box .btn { width: 100%; }
.seal-box .fine { margin: 0; }
.sign { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; min-height: 50px; border-radius: 16px; background: rgba(42, 0, 2, .3); border: 1.5px solid rgba(255, 255, 255, .18); font-size: 14px; color: var(--muted); font-weight: 600; transition: border-color .15s; }
.sign:focus-within { border-color: var(--gold); }
.sign input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #fff; font-size: 16px; font-weight: 700; height: 46px; }
.sign input::placeholder { color: rgba(255, 255, 255, .42); font-weight: 500; }
.ready .btn-primary { animation: nudge .5s var(--ease); }
@keyframes nudge { 30% { transform: scale(1.04); } }

/* lacrando */
.s-lacrando { align-items: center; justify-content: center; text-align: center; }
.seal-stage { position: relative; width: 240px; height: 200px; display: grid; place-items: center; }
.cap.big { --w: 220px; --h: 84px; animation: closeCap 1s var(--ease) both; }
.cap.big .half.l { animation: slideL .7s var(--ease) both; }
.cap.big .half.r { animation: slideR .7s var(--ease) both; }
@keyframes slideL { from { transform: translateX(-40px); } to { transform: none; } }
@keyframes slideR { from { transform: translateX(40px); } to { transform: none; } }
@keyframes closeCap { 0% { transform: rotate(-30deg) scale(.9); } 100% { transform: rotate(-16deg) scale(1); } }
.seal-check { position: absolute; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #3A0003; display: grid; place-items: center; transform: scale(0); animation: pop .4s var(--ease) .65s forwards; box-shadow: 0 10px 24px rgba(30, 0, 1, .4); }
.seal-check svg { width: 28px; height: 28px; stroke-width: 3; }
@keyframes pop { to { transform: scale(1); } }
.seal-msg { font-size: 20px; font-weight: 900; letter-spacing: -.01em; margin: 18px 0 14px; min-height: 26px; }
.seal-bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.seal-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; animation: fill 1.1s var(--ease) forwards; transform: scaleX(0); }

/* pronta */
.s-pronta .card-preview { width: 76%; margin: 6px auto 0; }
.s-pronta .actions { margin-top: 18px; }
.timeline { padding: 6px 16px; margin-top: 14px; }
.tl { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 13.5px; color: var(--muted); position: relative; }
.tl + .tl { box-shadow: inset 0 1px 0 var(--line); }
.tl b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.tl::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); flex-shrink: 0; }
.tl.done::before { background: var(--gold); border-color: var(--gold); }
.tl span { flex: 1; }
.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 .18s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.tl-toggle input:checked + .sw { background: var(--gold); }
.tl-toggle input:checked + .sw::after { transform: translateX(18px); }
