/* ACAISAN PLAN — página de links do Caisan (/thecaisan). Mesmo padrão visual do app (preto neutro + lime).
   Vitrine de vídeos (tv-) e Natal (html.tc-natal) são montados por thecaisan.js; sem ele, a vitrine vira uma fila que rola de lado. */
:root {
  --bg: #0b0b0c; --card: #141416; --raise: #1a1a1d;
  --line: rgba(255, 255, 255, .09); --text: #f4f4f5; --mute: #a1a1aa;
  --lime: #a3e635; --lime-2: #b5f04a; --lime-soft: rgba(163, 230, 53, .1); --lime-line: rgba(163, 230, 53, .36);
  --head: "Manrope", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; background: radial-gradient(620px 420px at 50% 0, rgba(163, 230, 53, .13), transparent 70%) no-repeat, var(--bg); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tc { width: 100%; max-width: 480px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); }
.tc-top { text-align: center; }
.tc-photo { display: block; width: 116px; height: 116px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--lime); }
.tc h1 { margin: 0; font: 800 30px/1.1 var(--head); letter-spacing: -.03em; }
.tc-user { margin: 6px 0 0; color: var(--lime); font-size: 14px; font-weight: 600; }
.tc-bio { margin: 12px auto 0; max-width: 340px; color: #d4d4d8; font-size: 15px; }

.tc-social { display: flex; justify-content: center; gap: clamp(8px, 3vw, 14px); margin: 22px 0 28px; padding: 0; list-style: none; }
.tc-social a { width: min(52px, 15vw); height: min(52px, 15vw); }

.tc-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-link { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: background .15s, border-color .15s, transform .15s; }
.tc-link:active { transform: scale(.985); }
.tc-ico { flex: none; width: 48px; height: 48px; }

/* Ícones no estilo de aplicativo: cor da marca, luz vindo de cima e símbolo sólido */
.ic { position: relative; display: grid; place-items: center; border-radius: 27%; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 16px -7px rgba(0, 0, 0, .8); transition: transform .2s cubic-bezier(.2, .8, .2, 1), filter .2s; }
.ic svg { width: 54%; height: 54%; fill: #fff; stroke: none; overflow: visible; }
.ic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ic--insta { background: radial-gradient(circle at 28% 108%, #fdf497 0, #fdd35c 8%, #fd5949 44%, #d6249f 62%, #4f5bd5 100%); }
.ic--yt { --a: #ff3b3b; --b: #e00000; }
.ic--yt svg { width: 60%; height: 60%; }
.ic--tt { --a: #26262b; --b: #050506; }
.ic--wa { --a: #5ff57f; --b: #0fb83a; }
.ic--wa svg, .tc-ico svg { width: 60%; height: 60%; }
.ic--mail { --a: #60b1ff; --b: #2563eb; }
.ic--doc { --a: #2b3617; --b: #0d1206; }
.ic--plan { --a: #0b0b0b; --b: #0b0b0b; }
.ic--plan::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ic--film { --a: #a78bfa; --b: #6d28d9; }
.ic--rings { --a: #fb8ba5; --b: #d13a63; }
.ic--globe { --a: #4cc3fa; --b: #0369a1; }
.tc-txt { flex: 1; min-width: 0; }
.tc-txt b { display: block; font: 700 16px/1.25 var(--head); }
.tc-txt small { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; line-height: 1.35; }
.tc-go { flex: none; width: 18px; height: 18px; opacity: .5; }
.tc-link--main { background: var(--lime); border-color: var(--lime); color: #10150a; }
.tc-link--main .tc-ico { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(0, 0, 0, .6); }
.tc-link--main .tc-txt small { color: #2c3a10; }
.tc-link--main .tc-go { opacity: .8; }

.tc-foot { margin: 30px 0 0; text-align: center; color: var(--mute); font-size: 12.5px; }
.tc-foot a { display: inline-block; padding: 8px; }

@media (hover: hover) {
  .tc-social a:hover { transform: translateY(-4px) scale(1.06); filter: brightness(1.08); }
  .tc-link:hover .tc-ico { transform: scale(1.06) rotate(-3deg); }
  .tc-link:hover { background: var(--raise); border-color: var(--lime-line); }
  .tc-link--main:hover { background: var(--lime-2); }
}
@media (prefers-reduced-motion: reduce) { .tc-link, .ic { transition: none; } .tc-link:active { transform: none; } }

/* ───────── Vitrine de vídeos ───────── */
html { overflow-x: hidden; }
body { position: relative; overflow-x: hidden; overflow-x: clip; }
.tc { position: relative; z-index: 1; }
.tc-face { position: relative; width: 116px; margin: 0 auto 16px; }
.tc-face .tc-photo { margin: 0; }
.tc-cta { margin: 0; }
.tv { --w: min(76vw, 460px); width: 100vw; margin: 30px 0 26px calc(50% - 50vw); }
.tv-head { padding: 0 20px; text-align: center; }
.tv-head h2 { margin: 0; font: 800 21px/1.2 var(--head); letter-spacing: -.02em; }
.tv-track { display: flex; gap: 14px; margin: 0; padding: 26px 20px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.tv-item { flex: none; width: var(--w); scroll-snap-align: center; }
.tv-card { position: relative; display: block; border-radius: 18px; }
.tv-frame { position: relative; display: block; padding: 2px; border-radius: 18px; background: #3f3f46; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .85); }
.tv-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; }
.tv-frame video { position: absolute; left: 2px; top: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; border-radius: 16px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.tv-frame.is-live video { opacity: 1; transition-duration: .6s; }
.tv-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #10150a; background: var(--lime); box-shadow: 0 0 0 6px rgba(163, 230, 53, .22); transition: opacity .3s, transform .2s; }
.tv-play svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

.tv.is-3d .tv-stage { position: relative; height: calc(var(--w) * .5625 + 56px); perspective: 1000px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.tv.is-3d .tv-stage.is-drag { cursor: grabbing; }
.tv.is-3d .tv-track { display: block; position: absolute; inset: 0; padding: 0; overflow: visible; transform-style: preserve-3d; pointer-events: none; } /* no 3D, a lista ficaria na frente das capas e engoliria o clique */
.tv.is-3d .tv-card { pointer-events: auto; }
.tv.is-3d .tv-item { position: absolute; left: 50%; top: 30px; margin-left: calc(var(--w) / -2); will-change: transform; }
.tv.is-3d .tv-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0b0b0c; opacity: var(--veil, 0); pointer-events: none; }
.tv.is-3d .tv-item:not(.is-on) .tv-play { opacity: 0; transform: scale(.6); }
.tv-item.is-on .tv-frame { background: linear-gradient(120deg, var(--lime), #e8ffc2, var(--lime)) 0 0 / 300% 100%; animation: tv-edge 5s linear infinite; }
@keyframes tv-edge { to { background-position: 300% 0; } }
.tv-card:focus-visible { outline-offset: 5px; }

.tv-bar { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; margin: 2px auto 0; padding: 0 20px; }
.tv-btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; color: var(--text); background: rgba(20, 20, 22, .8); border: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tv-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.tv-now { flex: 1; min-width: 0; margin: 0; text-align: center; }
.tv-now b { display: block; font: 700 16px/1.25 var(--head); text-wrap: balance; }
.tv-now small { display: block; margin-top: 2px; color: #c4c4cc; font-size: 13px; }
.tv-now.is-new b, .tv-now.is-new small { animation: tv-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes tv-in { from { opacity: 0; transform: translateY(8px); } }
.tv-time { display: block; width: 88px; height: 3px; margin: 9px auto 0; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.tv-time i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.tv-time i.is-run { animation: tv-time 4.6s linear forwards; }
@keyframes tv-time { to { transform: scaleX(1); } }
.tv.is-hold .tv-time i, .tv.is-away .tv-time i, .tv:has(:focus-visible) .tv-time i { animation-play-state: paused; }
@media (hover: hover) { .tv-btn:hover { border-color: var(--lime); } .tv-item.is-on .tv-card:hover .tv-play { transform: scale(1.1); } .tv-stage:hover ~ .tv-bar .tv-time i { animation-play-state: paused; } }

/* Luz de cinema: as cores da capa da frente iluminam o fundo */
.tv-glow { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 900px; overflow: hidden; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 35%, #000 60%, transparent); mask: linear-gradient(transparent, #000 35%, #000 60%, transparent); }
.tv-glow i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; }

/* ───────── Natal (de 15/11 a 6/1) ───────── */
.tc-natal { --red: #e5484d; --gold: #f5c451; --blue: #60a5fa; }
.tc-natal body { background: radial-gradient(420px 340px at 100% 0, rgba(229, 72, 77, .2), transparent 70%) no-repeat, radial-gradient(420px 340px at 0 0, rgba(245, 196, 81, .13), transparent 70%) no-repeat, var(--bg); }
.tc-natal .tc-photo { box-shadow: 0 0 0 2px var(--gold), 0 0 34px rgba(245, 196, 81, .3); }
.tc-natal .tc { padding-top: calc(62px + env(safe-area-inset-top)); }
.xc-snow { position: fixed; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.xc-hat { position: absolute; z-index: 2; left: 34px; top: -33px; width: 82px; height: 62px; transform: rotate(9deg); transform-origin: 30% 90%; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); animation: xc-hat 4.5s ease-in-out infinite; }
@keyframes xc-hat { 0%, 70%, 100% { transform: rotate(9deg); } 78% { transform: rotate(3deg); } 87% { transform: rotate(13deg); } }
.xc-lights { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 44px; display: flex; overflow: hidden; pointer-events: none; }
.xc-lights svg { flex: none; width: 130px; height: 44px; stroke: none; overflow: visible; }
.xc-lights path { fill: none; stroke: #4b5563; stroke-width: 1.4; }
.xc-l { animation: xc-blink 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.53s); }
@keyframes xc-blink { 0%, 40%, 100% { opacity: 1; } 65%, 78% { opacity: .22; } }
.xc-balls { position: absolute; z-index: 0; left: 50%; top: 0; width: min(100vw, 900px); transform: translateX(-50%); pointer-events: none; }
.xc-ball { position: absolute; top: 0; left: var(--x); width: 1px; height: var(--len); background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .4)); transform-origin: top; animation: xc-swing 4.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
.xc-ball i { position: absolute; left: -12px; top: 100%; width: 25px; height: 25px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9) 0 2px, transparent 5px), radial-gradient(circle at 40% 35%, var(--c), #16080a 125%); box-shadow: 0 8px 20px -4px var(--c); }
.xc-ball i::before { content: ""; position: absolute; left: 8px; top: -4px; width: 9px; height: 6px; border-radius: 2px; background: #e2bd68; }
@keyframes xc-swing { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }
.xc-count svg { flex: none; width: 15px; height: 18px; stroke: none; }
.xc-count { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 14px; border-radius: 999px; color: #fde68a; background: rgba(58, 15, 18, .85); border: 1px solid rgba(245, 196, 81, .38); font-size: 13px; font-weight: 600; line-height: 1.3; }
/* cada capa é um presente: neve em cima e laço no canto */
.tc-natal .tv-card::before { content: ""; position: absolute; z-index: 2; left: 5px; right: 5px; top: -8px; height: 22px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 13C10 5 26 8 40 5 70 0 92 5 120 3c34-3 56 2 88 0 34-2 60 3 92 1 30-2 52 1 74 3 12 1 22 2 26 6-2 4-10 3-14 1-6 0-7 7-12 7s-6-7-13-7c-14 0-18 3-27 2-7 0-8 5-13 5s-6-6-14-6c-22-1-40 2-62 1-8 0-9 6-15 6s-7-7-15-7c-24 0-44 2-66 1-7 0-8 4-13 4s-6-5-13-5c-18 0-34 2-50 2-7 0-8 7-14 7s-7-8-14-8c-12 0-20 1-28 1-6 0-6 4-11 4S6 15 0 13z' fill='%23f8fafc'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.tc-natal .tv-card::after { content: ""; position: absolute; z-index: 3; right: 12px; top: -21px; width: 58px; height: 42px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M32 22C20 4 4 6 6 18c2 10 16 8 26 4zM32 22C44 4 60 6 58 18c-2 10-16 8-26 4z' fill='%23e5484d'/%3E%3Cpath d='M30 24 20 44l6-2 4 4 2-20zM34 24l10 20-6-2-4 4-2-20z' fill='%23b91c1c'/%3E%3Ccircle cx='32' cy='22' r='6' fill='%23f5c451'/%3E%3C/svg%3E") center / contain no-repeat; }
.tc-natal .tv-item.is-on .tv-card::after { animation: xc-bow 3.6s ease-in-out infinite; }
@keyframes xc-bow { 0%, 74%, 100% { transform: rotate(0); } 80% { transform: rotate(-9deg); } 87% { transform: rotate(7deg); } 94% { transform: rotate(-3deg); } }
.tc-natal .tv-item.is-on .tv-frame { background-image: linear-gradient(120deg, var(--red), var(--gold), var(--lime), var(--red)); }
@media (min-width: 760px) { .xc-ball { height: calc(var(--len) * 1.9); } }

/* ───────── Apresentação do ACAISAN PLAN, colada no botão ───────── */
.tc-plan { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.tc-plan .tc-link { border: 0; border-radius: 0; background: none; padding-bottom: 10px; }
.pv { position: relative; margin: 0 12px 12px; border-radius: 14px; overflow: hidden; background: #0b0b0c; border: 1px solid var(--line); }
.pv-open { display: flex; align-items: center; gap: 14px; padding: 8px; }
.pv-thumb { position: relative; flex: none; width: min(136px, 31vw); aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; }
.pv-thumb img, .pv-thumb video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-thumb video { opacity: 0; transition: opacity .6s; }
.pv-thumb.is-live video { opacity: 1; }
.pv-play { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #10150a; background: var(--lime); box-shadow: 0 0 0 4px rgba(163, 230, 53, .25); }
.pv-play svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.pv-txt { min-width: 0; }
.pv-txt b { display: block; font: 700 14.5px/1.25 var(--head); }
.pv-txt small { display: block; margin-top: 3px; color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.pv-open:focus-visible { outline-offset: -3px; border-radius: 13px; }
.pv.is-open .pv-open { display: none; }
.pv > video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; outline: none; animation: pv-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes pv-in { from { opacity: 0; transform: scale(.94); } }
.pv-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(5, 5, 6, .84); }
.pv-go { padding: 13px 20px; border-radius: 999px; color: #10150a; background: var(--lime); font: 700 15px/1.2 var(--head); }
.pv-again { min-height: 44px; padding: 0 14px; border: 0; color: var(--text); background: none; font: 600 14px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (hover: hover) { .tc-plan:hover { border-color: var(--lime-line); } .tc-plan .tc-link:hover { background: none; } .pv-open:hover { background: var(--raise); } }

/* ───────── Música (verde o ano todo, vermelha no Natal) ───────── */
.tm { position: fixed; z-index: 6; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .25); color: #10150a; background: linear-gradient(160deg, #b5f04a, #84cc16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -6px rgba(0, 0, 0, .85); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tm svg { flex: none; width: 20px; height: 20px; fill: currentColor; stroke: none; }
.tm:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.tm-t { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 14px/1.4 var(--head); transition: max-width .45s ease, margin .45s ease; }
.tm.is-new .tm-t { max-width: 140px; margin-left: 9px; }
.tm.is-new { animation: tm-call 2.2s ease-in-out infinite; }
@keyframes tm-call { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -6px rgba(0, 0, 0, .85), 0 0 0 8px rgba(163, 230, 53, .18); } }
.tm-eq { display: none; align-items: flex-end; gap: 3px; width: 20px; height: 18px; }
.tm-eq i { flex: 1; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: tm-eq .9s ease-in-out infinite alternate; }
.tm-eq i:nth-child(1) { animation-delay: -.2s; } .tm-eq i:nth-child(2) { animation-delay: -.75s; } .tm-eq i:nth-child(3) { animation-delay: -.45s; } .tm-eq i:nth-child(4) { animation-delay: -1.1s; }
@keyframes tm-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.tm.is-on .tm-eq { display: flex; } .tm.is-on svg { display: none; }
@media (hover: hover) { .tm:hover { filter: brightness(1.1); } }
.tc { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.tc-natal .tm { border-color: rgba(245, 196, 81, .55); color: #fff; background: linear-gradient(160deg, #e5484d, #9f1d22); }

/* ?movimento=0 para tudo, como na página inicial */
.is-soft *, .is-soft *::before, .is-soft *::after { animation: none !important; transition: none !important; }
@media print { .tm, .xc-snow, .xc-lights, .xc-balls, .tv-glow { display: none !important; } }

/* Espera curta pelo conteúdo publicado na conta (thecaisan-conta.js), para não piscar texto antigo */
.tc-wait .tc { opacity: 0; }
.tc { transition: opacity .2s; }
