/* Darpana — "Encosta e descobre" (/app/combina/). Prefixo .cb- */
.cb-hero { text-align: center; padding: 6px 0 16px; position: relative; }
.cb-hero::before { content: ""; position: absolute; inset: -10px 10% auto; height: 120px; background: radial-gradient(closest-side, rgba(216,181,106,.16), transparent); pointer-events: none; }
.cb-titulo { font-family: var(--display); font-size: clamp(30px, 8vw, 40px); line-height: 1.08; margin: 6px 0 10px; }
.cb-quem { color: var(--gold); }
.cb-lede { margin-inline: auto; }
.cb-h2 { font-family: var(--display); font-size: 28px; margin: 4px 0 6px; }
.cb-h3 { font-family: var(--display); font-size: 23px; margin: 4px 0 6px; }

.cb-form { display: grid; gap: 12px; }
.cb-linha { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.cb-campo { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.cb-campo i { font-style: normal; opacity: .75; }
.cb-campo input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: 500 16px var(--body); color-scheme: dark; }
.cb-campo input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,181,106,.18); }
.cb-msg { color: var(--hot); min-height: 1em; margin: 0; }
.cb-btn-full { width: 100%; }
.cb-priv { margin: 0; text-align: center; }

/* convite */
.cb-convite, .cb-resultado, .cb-lista { margin-top: 18px; scroll-margin-top: 16px; }
.cb-conv { text-align: center; animation: cb-sobe .5s ease both; }
.cb-qr-moldura { margin: 16px auto 12px; width: min(240px, 72vw); padding: 12px; border-radius: 20px; background: linear-gradient(145deg, #f3dc9c, #b8913f 55%, #9b84f2); box-shadow: 0 10px 40px rgba(216,181,106,.25); position: relative; }
.cb-qr { background: #fff; border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 4px; }
.cb-qr svg { width: 100%; height: 100%; display: block; }
.cb-qr p { padding: 10px; color: #333; }
.cb-qr-pronto { animation: cb-revela .6s ease both; }
.cb-qr-carrega { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e6dcc2; border-top-color: #b8913f; animation: cb-gira 1s linear infinite; }
.cb-qr-sig { margin-top: 8px; color: #1a1440; font-weight: 700; font-size: 14px; }
.cb-link input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: 13px var(--body); text-align: center; }
.cb-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.cb-acoes .btn { flex: 1 1 150px; }
.cb-ok { border-color: var(--ok) !important; color: var(--ok) !important; }
.cb-dica { margin: 14px 0 0; }

/* resultado */
.cb-res { position: relative; overflow: hidden; text-align: center; padding-top: 22px; }
.cb-confete { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cb-encontro { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 34px; height: 104px; }
.cb-astro { display: grid; justify-items: center; gap: 2px; width: 110px; opacity: 0; }
.cb-astro b { font-size: 15px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-astro small { color: var(--muted); font-size: 12px; }
.cb-glifo { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--gold); background: radial-gradient(circle at 35% 30%, rgba(216,181,106,.22), rgba(155,132,242,.12)); border: 1px solid rgba(216,181,106,.5); }
.cb-dir .cb-glifo { color: var(--violet-soft); border-color: rgba(155,132,242,.55); }
.cb-brilho { position: absolute; left: 50%; top: 27px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 18px 8px rgba(243,220,156,.8), 0 0 60px 24px rgba(216,181,106,.35); opacity: 0; transform: scale(.2); }
.cb-on .cb-esq { animation: cb-da-esq .9s cubic-bezier(.2,.8,.2,1) both; }
.cb-on .cb-dir { animation: cb-da-dir .9s cubic-bezier(.2,.8,.2,1) both; }
.cb-on .cb-brilho { animation: cb-flash 1.1s .7s ease-out both; }

.cb-anel { position: relative; width: 184px; height: 184px; margin: 10px auto 4px; }
.cb-anel svg { width: 100%; height: 100%; overflow: visible; }
.cb-anel-fundo { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.cb-anel-ouro { fill: none; stroke: url(#cb-ouro); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.5s cubic-bezier(.25,.8,.25,1); filter: drop-shadow(0 0 6px rgba(216,181,106,.55)); }
.cb-num { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.cb-num b { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.cb-num span { position: absolute; top: 50%; right: 34px; margin-top: -26px; color: var(--gold-soft); font-size: 18px; }
.cb-num small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.cb-fim .cb-anel { animation: cb-pulsa 1.4s ease; }
.cb-veredito { font-family: var(--display); font-size: 22px; margin: 4px 0 14px; }

.cb-barras { display: grid; gap: 14px; text-align: left; margin: 6px 0 16px; }
.cb-barra { opacity: 0; }
.cb-on .cb-barra { animation: cb-sobe .5s calc(1.4s + var(--i) * .22s) ease both; }
.cb-barra-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.cb-barra-top b { color: var(--gold); font-variant-numeric: tabular-nums; }
.cb-trilho { height: 9px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.cb-trilho i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--gold)); box-shadow: 0 0 10px rgba(216,181,106,.45); transition: width 1s cubic-bezier(.25,.8,.25,1); }
.cb-barra small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.cb-frase { font-size: 16px; line-height: 1.55; text-align: left; padding: 14px 16px; border-radius: 14px; background: rgba(216,181,106,.07); border-left: 3px solid var(--gold); }
.cb-como { text-align: left; }
.cb-aviso { text-align: left; color: var(--violet-soft); margin: 6px 0 0; }
.cb-acoes-res { margin: 16px 0 0; }
.cb-trava { display: block; text-decoration: none; color: inherit; }
.cb-trava .btn { margin-top: 6px; }
.cb-mail { margin-top: 18px; }

/* ranking */
.cb-rank-lista { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 8px; }
.cb-rank-lista li { display: grid; grid-template-columns: 30px 1fr 70px 44px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); animation: cb-sobe .45s calc(var(--i) * .06s) ease both; }
.cb-rank-lista li:first-child { border: 1px solid rgba(216,181,106,.45); box-shadow: 0 0 22px rgba(216,181,106,.12); }
.cb-rank-pos { text-align: center; font-weight: 700; color: var(--muted); }
.cb-rank-nome { display: grid; min-width: 0; }
.cb-rank-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-rank-nome small { color: var(--muted); font-size: 12px; }
.cb-rank-barra { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.cb-rank-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); }
.cb-rank-num { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }

@keyframes cb-da-esq { from { opacity: 0; transform: translateX(-46vw) rotate(-25deg); } 70% { opacity: 1; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes cb-da-dir { from { opacity: 0; transform: translateX(46vw) rotate(25deg); } 70% { opacity: 1; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes cb-flash { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; transform: scale(2.6); } 100% { opacity: .55; transform: scale(1); } }
@keyframes cb-sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cb-revela { from { opacity: 0; transform: scale(.92); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cb-pulsa { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.05); } }
@keyframes cb-gira { to { transform: rotate(360deg); } }

@media (max-width: 380px) { .cb-linha { grid-template-columns: 1fr; } .cb-encontro { gap: 14px; } .cb-rank-lista li { grid-template-columns: 26px 1fr 40px; } .cb-rank-barra { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .cb-app *, .cb-app *::before { animation: none !important; transition: none !important; }
  .cb-astro, .cb-barra { opacity: 1; }
  .cb-brilho { opacity: .55; transform: none; }
}
.cb-calmo .cb-astro, .cb-calmo .cb-barra { opacity: 1; }

/* Travas: a frase da dupla, o porquê de cada barra e o ranking depois do 3º (Sinastria do Casal) */
.cb-borra { filter: blur(5px); user-select: none; pointer-events: none; opacity: .85; }
.cb-barra small.cb-borra { white-space: nowrap; overflow: hidden; }
.cb-lock { position: relative; overflow: hidden; border-radius: 14px; }
.cb-lock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,34,0) 20%, rgba(15,12,34,.7)); pointer-events: none; }
.cb-lock-frase { margin-top: 16px; }
.cb-lock-frase .cb-frase { margin: 0; }
.cb-lock-frase::after { display: none; }
.cb-trava-in { position: relative; z-index: 1; margin-top: -34px; padding: 18px 16px 16px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgba(31,25,66,.9), rgba(15,12,34,.95)); backdrop-filter: blur(2px); }
.cb-trava-in h3 { font-family: var(--display); font-size: 23px; margin: 4px 0 8px; }
.cb-trava-in p { color: var(--muted); font-size: 14.5px; text-align: left; }
.cb-cadeado { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; background: radial-gradient(circle at 35% 30%, #fbe9b6, #d8b56a 55%, #8f6c2c); box-shadow: 0 0 14px rgba(216,181,106,.45); }
.cb-cadeado-g { width: 48px; height: 48px; font-size: 21px; margin: 0 auto 6px; display: grid; box-shadow: 0 0 0 4px rgba(216,181,106,.14), 0 0 26px rgba(216,181,106,.45); animation: cb-cad 3.2s ease-in-out infinite; }
@keyframes cb-cad { 50% { box-shadow: 0 0 0 6px rgba(216,181,106,.08), 0 0 38px rgba(216,181,106,.6); } }
.cb-lock-rank { margin-top: 6px; min-height: 120px; }
.cb-lock-selo { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(15,12,34,.85); border: 1px solid rgba(216,181,106,.6); color: var(--gold-soft); font: 600 13px var(--body); text-decoration: none; white-space: nowrap; }
.cb-rank-nota { margin: 10px 0 12px; }
@media (prefers-reduced-motion: reduce) { .cb-cadeado-g { animation: none; } }

/* Leitura completa da dupla (paga) */
.cb-h4 { font-family: var(--display); font-size: 19px; margin: 18px 0 2px; color: var(--gold-soft); }
.cb-leitura:empty { display: none; }
.cb-leitura { margin-top: 18px; text-align: left; }
.cb-item { padding: 4px 0 10px; border-bottom: 1px solid rgba(216,181,106,.18); }
.cb-item:last-of-type { border-bottom: 0; }
.cb-item p { margin: 8px 0 0; line-height: 1.6; }
.cb-destrava { margin-top: 6px; }
.cb-destrava .btn { min-width: 220px; }
.cb-pdf { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(216,181,106,.35); color: var(--muted); font-size: 14px; text-align: left; text-decoration: none; }
.cb-pdf b { color: var(--gold-soft); }
.cb-pdf:hover { border-color: rgba(216,181,106,.7); }
.cb-erro { color: var(--hot, #ff8a8a); margin: 6px 0 0; }
