/* Chegada do Grifados: apresentação antes da conta (aprovada em 26/11, docs/login-prototipo/).
   Fundo claro, palco em cima, título em serifa de duas cores, botões embaixo. A cena do palco é
   desenhada em 390 x 486 e escalada para caber na tela (ver chegada.js). */
#chegada { position: fixed; inset: 0; z-index: 21; display: none; flex-direction: column; overflow: hidden;
  --c-papel: #F8F4E9; --c-creme: #FDFBF4; --c-cafe: #2F1B1A; --c-tinta: #2F1B1A; --c-tinta-2: #6A5248; --c-linha: rgba(47,27,26,.14);
  --c-destaque: var(--vermelho, #640017); --c-dourado: #FAE871; --c-oliva: #5A5E27; --c-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--c-papel) url(/grao.png); background-size: 180px; color: var(--c-tinta); font-family: 'Hanken Grotesk', system-ui, sans-serif; }
#chegada.on { display: flex; }
html:has(#chegada.on), html:has(#chegada.on) body { background: #F8F4E9; }
#chegada .ch-coluna { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%; margin: 0 auto; padding-bottom: var(--safe-b, 0px); }
#chegada mark { background: linear-gradient(var(--c-dourado), var(--c-dourado)) no-repeat 0 64% / 100% 62%; color: inherit; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* palco: cada cartão é uma cena; só a atual aparece */
#chegada .ch-palco { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; }
#chegada .ch-cena { position: absolute; left: 50%; bottom: 0; width: 390px; height: 486px; transform-origin: 50% 100%; translate: -50% 0; scale: var(--esc, 1); opacity: 0; pointer-events: none; transition: opacity .45s var(--c-ease); }
#chegada .ch-cena.on { opacity: 1; }
#chegada .ch-fundo { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--c-ease); }
#chegada .ch-fundo.on { opacity: 1; }
#chegada .ch-topo { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--safe-t, 0px) + 14px); display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 22px; }
#chegada .ch-marca { display: inline-flex; align-items: center; gap: 8px; font: 400 21px/1 'IM Fell English', Georgia, serif; color: var(--c-tinta); transition: color .4s; }
#chegada .ch-marca img { width: 22px; height: 22px; }
#chegada[data-i="3"] .ch-marca { color: #FAF7EC; }
#chegada .ch-pular { padding: 9px 13px; border: 0; border-radius: 16px; background: rgba(253,251,244,.78); font: 600 13px/1 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); cursor: pointer; }
#chegada .ch-pular[hidden] { display: none; }

/* entrada das peças: sobem em sequência quando o cartão chega */
#chegada .ch-cena .sobe { opacity: 0; translate: 0 18px; transition: opacity .6s var(--c-ease), translate .7s var(--c-ease); }
#chegada .ch-cena.on .sobe { opacity: 1; translate: 0 0; transition-delay: calc(var(--d, 0) * 90ms + 120ms); }

/* texto e botões */
#chegada .ch-texto { flex: none; padding: 8px 28px 0; text-align: center; }
#chegada .ch-texto h1 { margin: 0; font: 400 clamp(30px, 8.6vw, 36px)/1.06 'IM Fell English', Georgia, serif; letter-spacing: -.01em; text-wrap: balance; color: var(--c-tinta); }
#chegada .ch-texto h1 em { font-style: normal; color: var(--c-tinta-2); }
#chegada .ch-texto p { margin: 12px auto 0; max-width: 32ch; min-height: 4.35em; font-size: 15px; line-height: 1.45; color: var(--c-tinta-2); text-wrap: pretty; }
#chegada .ch-texto .troca { animation: ch-troca .5s var(--c-ease); }
@keyframes ch-troca { from { opacity: 0; translate: 0 8px; } }
#chegada .ch-pontos { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
#chegada .ch-pontos i { width: 6px; height: 6px; border-radius: 3px; background: rgba(47,27,26,.2); transition: width .4s var(--c-ease), background .4s; }
#chegada .ch-pontos i.on { width: 20px; background: var(--c-cafe); }
#chegada .ch-pe { flex: none; padding: 18px 22px 12px; }
#chegada .ch-bt { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border: 0; border-radius: 27px; background: var(--c-destaque); color: #FAF7EC; font: 700 16px/1 'Hanken Grotesk', sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 20px -12px rgba(100,0,23,.8); transition: transform .2s var(--c-ease); }
#chegada .ch-bt:active { transform: scale(.985); }
#chegada .ch-link { display: block; width: 100%; margin-top: 4px; padding: 14px 0; border: 0; background: none; font: 600 15px/1 'Hanken Grotesk', sans-serif; color: var(--c-tinta); cursor: pointer; }
#chegada .ch-link b { color: var(--c-destaque); }
#chegada button:focus-visible { outline: 2px solid var(--c-destaque); outline-offset: 3px; }

/* peças reutilizadas */
#chegada .ch-capa { display: block; border-radius: 2px 5px 5px 2px; background: var(--c-cafe) center/cover; box-shadow: inset 3px 0 4px -2px rgba(255,255,255,.35), inset -1px 0 2px rgba(0,0,0,.25), 0 12px 18px -10px rgba(20,10,8,.7); }
#chegada .ch-folha { position: absolute; padding: 16px 18px 14px; border-radius: 3px; background: var(--c-creme) url(/grao.png); background-size: 180px; box-shadow: 0 22px 40px -22px rgba(20,10,8,.8), 0 2px 6px -2px rgba(20,10,8,.2); }
#chegada .ch-folha p { margin: 0; font: italic 400 19px/1.3 'IM Fell English', Georgia, serif; text-wrap: pretty; color: var(--c-tinta); }
#chegada .ch-folha .de { display: flex; align-items: center; gap: 9px; margin-top: 12px; font: 500 12px/1.25 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }
#chegada .ch-folha .de .ch-capa { flex: none; width: 22px; height: 33px; box-shadow: 0 3px 6px -3px rgba(0,0,0,.6); }
#chegada .ch-folha .de b { display: block; color: var(--c-tinta); font-weight: 600; }
@keyframes ch-boia { 50% { translate: 0 -6px; } }

/* 1 · grifos chegam */
#chegada .c1 .ch-fontes { z-index: 2; position: absolute; left: 16px; right: 16px; top: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
#chegada .pilula { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 20px; background: #fff; box-shadow: 0 10px 20px -12px rgba(20,10,8,.5), inset 0 0 0 1px rgba(47,27,26,.08); font: 700 12.5px/1 'Hanken Grotesk', sans-serif; color: var(--c-tinta); }
#chegada .pilula img.wm { height: 17px; width: auto; }
#chegada .pilula img.kd { height: 19px; }
#chegada .pilula img.ic { height: 22px; width: 22px; border-radius: 6px; }
#chegada .pilula.ch-mais { padding: 0 12px 0 8px; white-space: nowrap; flex-shrink: 0; }
#chegada .pilula img.pl { object-fit: contain; }
/* os outros apps: logos lado a lado */
#chegada .ch-pilha { display: inline-flex; gap: 4px; }
#chegada .ch-pilha > * { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
#chegada .ch-pilha b { display: grid; place-items: center; color: #fff; font: 800 8.5px/1 'Hanken Grotesk', sans-serif; }
#chegada .pilula svg { width: 17px; height: 17px; color: var(--c-cafe); }
#chegada .fio { position: absolute; left: 50%; top: 164px; width: 2px; height: 50px; margin-left: -1px; background: repeating-linear-gradient(var(--c-tinta-2) 0 4px, transparent 4px 9px); opacity: .45; }
#chegada .c1 .ch-folha.a { left: 34px; right: 34px; top: 228px; rotate: -1.5deg; }
#chegada .c1 .ch-folha.b { left: 56px; right: 24px; top: 362px; rotate: 1.8deg; }
#chegada .c1.on .ch-folha.a { animation: ch-boia 7s ease-in-out 1s infinite; }
#chegada .c1.on .ch-folha.b { animation: ch-boia 8s ease-in-out 1.6s infinite; }
#chegada .chega { position: absolute; right: 26px; top: 214px; z-index: 2; padding: 6px 10px; border-radius: 12px; background: var(--c-cafe); color: #FAF7EC; font: 700 11.5px/1 'Hanken Grotesk', sans-serif; box-shadow: 0 8px 14px -8px rgba(0,0,0,.6); }

/* 2 · card */
#chegada .f2 { background: linear-gradient(180deg, #EFE6D3, transparent); }
#chegada .story { position: absolute; left: 34px; top: 66px; width: 188px; height: 334px; border-radius: 14px; overflow: hidden; background: #1B100E url(/perfil/fundo-1.jpg) center/cover; rotate: -6deg; box-shadow: 0 30px 40px -24px rgba(20,10,8,.9); }
#chegada .story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,10,8,.25), rgba(20,10,8,.7)); }
#chegada .story p { position: absolute; left: 16px; right: 16px; top: 96px; margin: 0; color: #FAF7EC; font: italic 400 19px/1.3 'IM Fell English', Georgia, serif; }
#chegada .story small { position: absolute; left: 16px; bottom: 16px; color: rgba(250,247,236,.85); font: 600 10.5px/1 'Hanken Grotesk', sans-serif; }
#chegada .post { position: absolute; right: 28px; top: 120px; width: 232px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: url(/perfil/fundo-4.jpg) center/cover; rotate: 3deg; box-shadow: 0 30px 44px -22px rgba(20,10,8,.95); }
#chegada .post::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,10,8,.08), rgba(20,10,8,.6)); }
#chegada .post .ch-folha { left: 14px; right: 14px; top: 26%; padding: 13px 14px 12px; rotate: -1.4deg; }
#chegada .post .ch-folha p { font-size: 16px; }
#chegada .post .assina { position: absolute; left: 14px; bottom: 12px; color: #FAF7EC; font: 600 10.5px/1 'Hanken Grotesk', sans-serif; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#chegada .redes { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
#chegada .redes span { height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(253,251,244,.92); box-shadow: inset 0 0 0 1px var(--c-linha); font: 600 12px/28px 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }

/* 3 · estante */
#chegada .f3 { background: radial-gradient(120% 70% at 50% 0%, #FBF3DC, transparent 70%); }
#chegada .ch-prat { position: absolute; left: 18px; right: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
#chegada .ch-prat .ch-capa { position: relative; width: 62px; height: 93px; }
#chegada .ch-prat .ch-capa.g { width: 70px; height: 105px; }
#chegada .ch-prat .lomb { width: 16px; height: 96px; border-radius: 2px; background: var(--c); box-shadow: inset 2px 0 3px rgba(255,255,255,.2), inset -2px 0 3px rgba(0,0,0,.3); }
#chegada .tabua { position: absolute; left: 10px; right: 10px; height: 10px; border-radius: 2px; background: linear-gradient(#6A4630, #3A2316); box-shadow: 0 14px 18px -8px rgba(40,22,12,.55); }
#chegada .p1 { top: 84px; } #chegada .t1 { top: 189px; }
#chegada .p2 { top: 230px; } #chegada .t2 { top: 335px; }
#chegada .selo-lido { position: absolute; right: -8px; top: -8px; width: 30px; rotate: -11deg; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
#chegada .marc { position: absolute; right: 8px; top: -20px; height: 62px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
#chegada .rotulos { position: absolute; left: 0; right: 0; top: 380px; display: flex; justify-content: center; gap: 8px; }
#chegada .rotulos span { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--c-creme); box-shadow: inset 0 0 0 1px var(--c-linha); font: 600 12.5px/30px 'Hanken Grotesk', sans-serif; }
#chegada .rotulos b { margin-left: 4px; color: var(--c-tinta-2); font-weight: 600; }
#chegada .lupa { position: absolute; right: 30px; top: 40px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--c-cafe); color: #FAF7EC; font: 700 11.5px/30px 'Hanken Grotesk', sans-serif; box-shadow: 0 8px 14px -8px rgba(0,0,0,.6); }
#chegada .lupa svg { width: 14px; height: 14px; }

/* 4 · frase do dia */
#chegada .f4 { background: #1B100E url(/perfil/fundo-3.jpg) 30% 40% / 260%; }
#chegada .f4::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,8,.35), rgba(20,10,8,.1) 55%, var(--c-papel) 100%); }
#chegada .hora { position: absolute; z-index: 1; left: 0; right: 0; top: 64px; text-align: center; color: #FAF7EC; }
#chegada .hora b { display: block; font: 300 76px/1 'Hanken Grotesk', sans-serif; letter-spacing: -.03em; }
#chegada .hora span { font: 500 14px/1 'Hanken Grotesk', sans-serif; opacity: .85; }
#chegada .widget { position: absolute; z-index: 1; left: 30px; right: 30px; top: 212px; padding: 18px 18px 16px; border-radius: 22px; background: rgba(253,251,244,.94); box-shadow: 0 24px 40px -22px rgba(0,0,0,.8); }
#chegada .widget .top { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font: 700 11px/1 'Hanken Grotesk', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--c-destaque); }
#chegada .widget .top img { width: 14px; height: 14px; }
#chegada .widget p { margin: 0; font: italic 400 21px/1.28 'IM Fell English', Georgia, serif; }
#chegada .widget .de { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 12px; color: var(--c-tinta-2); }
#chegada .widget .de .ch-capa { width: 20px; height: 30px; }
#chegada .widget .quando { margin-left: auto; }
#chegada .reenc { position: absolute; z-index: 1; left: 0; right: 0; top: 388px; width: max-content; margin: 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--c-creme); box-shadow: inset 0 0 0 1px var(--c-linha), 0 10px 18px -12px rgba(20,10,8,.6); font: 600 12.5px/34px 'Hanken Grotesk', sans-serif; color: var(--c-tinta); }
#chegada .reenc i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-destaque); }

/* 5 · sortear pelo humor */
#chegada .f5 { background: radial-gradient(90% 60% at 50% 30%, #F3E6C4, transparent 70%); }
#chegada .moods { position: absolute; left: 0; right: 0; top: 54px; display: flex; justify-content: center; gap: 7px; }
#chegada .moods span { height: 32px; padding: 0 13px; border-radius: 16px; background: var(--c-creme); box-shadow: inset 0 0 0 1px var(--c-linha); font: 600 12.5px/32px 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }
#chegada .moods span.on { background: var(--c-cafe); color: #FAF7EC; box-shadow: none; }
#chegada .ch-leque { position: absolute; left: 50%; top: 128px; width: 0; height: 0; }
#chegada .carta { position: absolute; left: -62px; top: 0; width: 124px; height: 180px; border-radius: 10px; background: var(--c-destaque); box-shadow: inset 0 0 0 4px var(--c-destaque), inset 0 0 0 5px #C9A94A, 0 16px 24px -16px rgba(20,10,8,.8); transform-origin: 50% 130%; rotate: var(--r); transition: rotate .9s var(--c-ease); }
#chegada .carta::after { content: ""; position: absolute; inset: 0; background: url(/marca-ouro.svg) center / 40px no-repeat; opacity: .9; }
#chegada .f5:not(.on) .carta, #chegada .c5:not(.on) .carta { rotate: 0deg; }
#chegada .sorteada { position: absolute; left: 50%; top: 196px; width: 250px; margin-left: -125px; rotate: -2deg; padding: 20px 20px 16px; border-radius: 10px; background: #FBF6E6 url(/grao.png); background-size: 180px; box-shadow: inset 0 0 0 1px #D8BE6A, inset 0 0 0 5px #FBF6E6, inset 0 0 0 6px #D8BE6A, 0 26px 40px -22px rgba(20,10,8,.9); }
#chegada .sorteada p { margin: 0; font: italic 400 19px/1.3 'IM Fell English', Georgia, serif; }
#chegada .sorteada small { display: block; margin-top: 10px; font: 600 11.5px/1 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }

/* 6 · suas leituras: lombadas numa prateleira e marca-página no lugar do player (aprovado 27/11) */
#chegada .ch-cab { position: absolute; left: 34px; right: 34px; top: 42px; }
#chegada .ch-cab small { display: block; font: italic 400 17px/1 'IM Fell English', Georgia, serif; color: var(--c-tinta-2); }
#chegada .ch-cab b { display: block; margin-top: 6px; font: 400 28px/1 'Young Serif', Georgia, serif; }
#chegada .ch-cab b span { font: 400 17px/1 'IM Fell English', Georgia, serif; color: var(--c-tinta-2); }
#chegada .ch-estante { position: absolute; left: 30px; right: 30px; top: 112px; height: 210px; }
#chegada .ch-lombadas { position: absolute; left: 6px; right: 6px; bottom: 12px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
#chegada .ch-lb { position: relative; width: var(--w, 36px); height: var(--h); border-radius: 2px 2px 1px 1px; background: var(--c);
  box-shadow: inset 3px 0 4px -1px rgba(255,255,255,.22), inset -3px 0 5px rgba(0,0,0,.35), 0 -1px 0 rgba(0,0,0,.15);
  transform-origin: bottom; scale: 1 0; transition: scale .9s var(--c-ease); }
#chegada .c6.on .ch-lb { scale: 1 1; transition-delay: calc(var(--d) * 80ms + 200ms); }
#chegada .ch-lb::before { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 7px; border-top: 1.5px solid #C9A94A; border-bottom: 1.5px solid #C9A94A; opacity: .85; }
#chegada .ch-lb::after { content: ""; position: absolute; left: 50%; top: 26px; bottom: 26px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(rgba(250,232,113,.55) 0 3px, transparent 3px 7px); }
#chegada .ch-lb.fino::before, #chegada .ch-lb.fino::after { display: none; }
#chegada .ch-lb.fino { box-shadow: inset 2px 0 2px rgba(255,255,255,.3), inset -2px 0 3px rgba(0,0,0,.2); }
#chegada .ch-lb > span { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; font: 400 15px/1 'Young Serif', Georgia, serif; color: #FAF7EC; opacity: .92; }
#chegada .ch-lb.fino > span { color: var(--c-tinta); bottom: auto; top: -22px; opacity: .7; }
#chegada .ch-selo { position: absolute; left: 50%; top: -26px; width: 34px; margin-left: -17px; rotate: -9deg; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); opacity: 0; scale: .4; transition: opacity .3s, scale .5s cubic-bezier(.3, 1.6, .5, 1); }
#chegada .c6.on .ch-selo { opacity: 1; scale: 1; transition-delay: 1.3s; }
#chegada .ch-tabua { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 2px; background: linear-gradient(#6A4630, #3A2316); box-shadow: 0 14px 18px -8px rgba(40,22,12,.55); }
#chegada .ch-etiq { position: absolute; left: 36px; right: 36px; top: 332px; display: flex; justify-content: center; gap: 5px; }
#chegada .ch-etiq span { width: var(--w, 36px); text-align: center; font: italic 400 16px/1 'IM Fell English', Georgia, serif; color: var(--c-tinta-2); }
#chegada .ch-pagina { position: absolute; left: 34px; right: 34px; top: 376px; display: flex; align-items: flex-start; gap: 16px; text-align: left; }
#chegada .ch-pagina .ch-capa { position: relative; z-index: 0; flex: none; width: 66px; height: 99px; rotate: -2deg; }
#chegada .ch-fita { position: absolute; left: 48px; top: -3px; width: 7px; height: 114px; background: var(--c-destaque); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 94%, 0 100%); z-index: -1; }
#chegada .ch-pagina small { display: block; font: italic 400 16px/1 'IM Fell English', Georgia, serif; color: var(--c-tinta-2); }
#chegada .ch-pagina b { display: block; margin-top: 4px; font: 700 15px/1.2 'Hanken Grotesk', sans-serif; }
#chegada .ch-pagina p { margin: 6px 0 0; font-size: 15px; line-height: 1.3; font-family: "Hanken Grotesk", sans-serif; color: var(--c-tinta-2); }
#chegada .ch-pagina .ch-tempo { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#chegada .ch-tempo span { font: 400 30px/1 'Young Serif', Georgia, serif; color: var(--c-destaque); font-variant-numeric: tabular-nums; }
#chegada .ch-tempo i { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--c-destaque); border-radius: 50%; color: var(--c-destaque); }
#chegada .ch-tempo svg { width: 12px; height: 12px; }

/* 7 · grifriends */
#chegada .c7 .ch-folha.a { left: 26px; right: 26px; top: 62px; padding: 20px 20px 16px; rotate: -1deg; }
#chegada .c7 .ch-folha.a p { font-size: 22px; }
#chegada .gente { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-linha); font-size: 13px; color: var(--c-tinta-2); }
#chegada .gente b { color: var(--c-tinta); }
#chegada .avs { display: flex; }
#chegada .avs i, #chegada .amg i { display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #FAF7EC; font: italic 400 14px/1 'IM Fell English', serif; }
#chegada .avs i { width: 28px; height: 28px; margin-left: -8px; box-shadow: 0 0 0 2px var(--c-creme); }
#chegada .avs i:first-child { margin-left: 0; }
#chegada .ch-lendo { position: absolute; left: 26px; right: 26px; top: 270px; }
#chegada .ch-lendo > p { margin: 0 0 10px; font: 700 11px/1 'Hanken Grotesk', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--c-tinta-2); }
#chegada .amg { display: flex; gap: 14px; }
#chegada .amg div { position: relative; }
#chegada .amg .ch-capa { width: 64px; height: 96px; }
#chegada .amg i { position: absolute; left: -8px; bottom: -8px; width: 30px; height: 30px; font-size: 15px; box-shadow: 0 0 0 2px var(--c-papel); }
#chegada .perfil-url { position: absolute; left: 0; right: 0; top: 412px; width: max-content; margin: 0 auto; white-space: nowrap; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--c-cafe); color: #FAF7EC; font: 600 12px/30px 'Hanken Grotesk', sans-serif; }

@media (prefers-reduced-motion: reduce) {
  #chegada *, #chegada *::before, #chegada *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- criar conta e entrar (#entrada), no mesmo papel claro ---------- */
#entrada.login { background: #F8F4E9 url(/grao.png); background-size: 180px; color: #2F1B1A; justify-content: flex-start; padding-top: calc(var(--safe-t, 0px) + 14px); }
html:has(#entrada.login.on), html:has(#entrada.login.on) body { background: #F8F4E9; }
#entrada .en-topo { display: flex; align-items: center; min-height: 44px; margin: 0 0 14px -10px; }
#entrada .en-volta { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 22px; background: none; color: #2F1B1A; }
#entrada .en-volta svg { width: 22px; height: 22px; }
#entrada .en-volta[hidden] { display: none; }
#entrada .marca { margin-bottom: 22px; color: #2F1B1A; }
#entrada .marca i { background: none; width: 30px; height: 30px; }
#entrada .marca img { width: 26px; height: 26px; }
#entrada h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.06; color: #2F1B1A; margin-bottom: 8px; }
#entrada h1 em { font-style: normal; color: #6A5248; }
#entrada p { color: #6A5248; margin-bottom: 0; font-size: 15px; }
#entrada p b { color: #2F1B1A; }
#entrada .social { display: grid; gap: 10px; margin-top: 22px; }
#entrada .social[hidden] { display: none; }
#entrada .soc { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-weight: 700; font-size: 15.5px; }
#entrada .soc svg { width: 20px; height: 20px; }
#entrada .soc.apple { background: #141010; color: #fff; }
#entrada .soc.google { background: #FDFBF4; color: #2F1B1A; box-shadow: inset 0 0 0 1px rgba(47,27,26,.22); }
#entrada .ou { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 13px; color: #6A5248; }
#entrada .ou::before, #entrada .ou::after { content: ""; flex: 1; height: 1px; background: rgba(47,27,26,.14); }
#entrada .ou[hidden] { display: none; }
#entrada input { border: 0; background: #FDFBF4; color: #2F1B1A; box-shadow: inset 0 0 0 1px rgba(47,27,26,.18); }
#entrada input::placeholder { color: rgba(106,82,72,.7); }
#entrada input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vermelho, #640017), 0 0 0 4px rgba(100,0,23,.08); }
#entrada .nasc span { color: #6A5248; }
#entrada #entrada-ir { background: var(--vermelho, #640017); color: #FAF7EC; font-weight: 700; margin-top: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 20px -12px rgba(100,0,23,.8); }
#entrada .sec { color: #2F1B1A; border-color: rgba(47,27,26,.2); }
#entrada .msg { color: var(--vermelho, #640017); }
#entrada .legal, #entrada .legal a { color: #6A5248; }
#entrada .arroba-msg { color: #6A5248; }

/* cards de verdade (js/cartao.js, 1080 x 1350) reduzidos num quadro: o iframe tem o tamanho real e encolhe */
#chegada .ch-cardreal { position: absolute; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--c-creme); box-shadow: 0 24px 40px -22px rgba(20,10,8,.7), 0 2px 6px -2px rgba(20,10,8,.2); }
#chegada .ch-cardreal iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1350px; border: 0; transform: scale(var(--k, .2)); transform-origin: 0 0; pointer-events: none; }

/* 2 · card: três modelos de verdade em leque */
#chegada .ch-cards { position: absolute; inset: 0; }
#chegada .ch-cards .c { left: 50%; top: 88px; width: 216px; margin-left: -108px; z-index: 2; rotate: -1deg; --o: 0s; }
#chegada .ch-cards .l { left: 28px; top: 72px; width: 160px; rotate: -9deg; --o: -1.6s; }
#chegada .ch-cards .r { right: 28px; top: 72px; width: 160px; rotate: 8deg; --o: -3.1s; }
/* movimento: o leque abre ao entrar (os de fora saem de trás do centro) e depois cada card flutua no seu ritmo */
#chegada .ch-cena.on .ch-cards .ch-cardreal { animation: ch-flutua 5.5s ease-in-out var(--o) infinite; }
#chegada .ch-cena.on .ch-cards .l, #chegada .ch-cena.on .ch-cards .r { animation: ch-abre .9s cubic-bezier(.2, .9, .25, 1.15) .25s both, ch-flutua 5.5s ease-in-out var(--o) infinite; }
#chegada .ch-cena.on .ch-cards .l { --de: 70px; } #chegada .ch-cena.on .ch-cards .r { --de: -70px; }
@keyframes ch-abre { from { rotate: 0deg; transform: translateX(var(--de)); } }
@keyframes ch-flutua { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { #chegada .ch-cena.on .ch-cards .ch-cardreal { animation: none; } }
/* onde o card vai: as logos das redes em tinta, num círculo de papel (Simple Icons, CC0), numa linha só; com nome ficou poluído (27/11) */
#chegada .ch-redes { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 6px; }
#chegada .ch-redes i { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--c-creme); box-shadow: inset 0 0 0 1px var(--c-linha), 0 10px 18px -12px rgba(20,10,8,.45); }
#chegada .ch-redes i::after { content: ""; position: absolute; inset: 10px; background: var(--c-cafe); -webkit-mask: var(--l) center / contain no-repeat; mask: var(--l) center / contain no-repeat; }

/* 7 · comunidade: um post do Grifeed com o card de verdade */
#chegada .f7 { background: #EFE7D6 url(/grao.png); background-size: 180px; }
#chegada .ch-tropes { position: absolute; left: 0; right: 0; top: 22px; display: flex; justify-content: center; gap: 7px; }
#chegada .ch-tropes span { height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(253,251,244,.9); box-shadow: inset 0 0 0 1px var(--c-linha); font: 600 12.5px/30px 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); white-space: nowrap; }
#chegada .ch-tropes .on { background: var(--c-cafe); color: #FAF7EC; box-shadow: none; }
#chegada .ch-post { position: absolute; left: 50%; top: 70px; width: 272px; margin-left: -136px; padding: 12px 14px; border-radius: 4px; background: var(--c-creme) url(/grao.png); background-size: 180px; box-shadow: 0 26px 44px -24px rgba(20,10,8,.65), 0 2px 6px -2px rgba(20,10,8,.15); rotate: -1deg; }
#chegada .ch-post .quem { display: flex; align-items: center; gap: 9px; font: 500 13px/1.25 'Hanken Grotesk', sans-serif; color: var(--c-tinta); }
#chegada .ch-post .quem small { display: block; font: italic 400 13px/1.2 'IM Fell English', Georgia, serif; color: var(--c-tinta-2); }
#chegada .ch-post .quem > i, #chegada .ch-perfil .av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #FAF7EC; font: italic 400 15px/1 'IM Fell English', serif; }
#chegada .ch-post .ch-cardreal { position: relative; width: 196px; margin: 10px auto; box-shadow: 0 2px 6px -2px rgba(20,10,8,.25); border-radius: 3px; }
#chegada .ch-post .acoes { display: flex; align-items: center; gap: 12px; font: 600 12px/1 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }
#chegada .ch-post .cur { color: var(--c-destaque); }
#chegada .ch-post .mesma { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
#chegada .ch-post .avs i { width: 20px; height: 20px; margin-left: -6px; font-size: 11px; }

/* 8 · perfil público: a página dela, com o link para compartilhar */
#chegada .ch-perfil { position: absolute; left: 50%; top: 24px; width: 290px; margin-left: -145px; overflow: hidden; border-radius: 6px; background: var(--c-creme) url(/grao.png); background-size: 180px; box-shadow: 0 26px 44px -24px rgba(20,10,8,.65), 0 2px 6px -2px rgba(20,10,8,.15); }
#chegada .ch-perfil .capa-p { height: 74px; background: url(/card-assets/tex-xadrez.jpg) center/cover; }
#chegada .ch-perfil .av { position: absolute; left: 16px; top: 46px; width: 56px; height: 56px; font-size: 26px; --c: #640017; box-shadow: 0 0 0 3px var(--c-creme); }
#chegada .ch-perfil .nome { padding: 34px 16px 0; }
#chegada .ch-perfil .nome b { display: block; font: 400 22px/1.1 'IM Fell English', Georgia, serif; color: var(--c-tinta); }
#chegada .ch-perfil .nome small { display: block; margin-top: 3px; font: 500 12.5px/1.3 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }
#chegada .ch-perfil .nums { display: flex; gap: 18px; padding: 12px 16px 0; font: 500 12px/1.2 'Hanken Grotesk', sans-serif; color: var(--c-tinta-2); }
#chegada .ch-perfil .nums b { display: block; font: 400 21px/1 'Young Serif', Georgia, serif; color: var(--c-tinta); }
#chegada .ch-perfil .vitrine { display: flex; gap: 8px; padding: 14px 16px 0; }
#chegada .ch-perfil .vitrine .ch-capa { width: 44px; height: 66px; }
#chegada .ch-perfil .fav { margin: 12px 16px 16px; padding-top: 10px; border-top: 1px solid var(--c-linha); font: italic 400 16px/1.3 'IM Fell English', Georgia, serif; color: var(--c-tinta); }
#chegada .ch-link-perfil { position: absolute; left: 0; right: 0; bottom: 18px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 22px; background: var(--c-cafe); white-space: nowrap; font: 600 13px/1 'Hanken Grotesk', sans-serif; color: #FAF7EC; }
#chegada .ch-link-perfil b { padding: 9px 13px; border-radius: 16px; background: #FAF7EC; color: var(--c-destaque); }
