/* Conta do Zovy (v1.157.0): entrar/criar conta (.za), perfil (.zp), montador do bichinho (.zav) e amigos (.zf).
   Só carrega nas páginas que pedem (View::$css). Cores de borda/sombra/cartão pelos tokens do zovy.css. */

/* ---------- Entrar e criar conta ---------- */
.za { padding: 22px 0 56px; display: flex; justify-content: center; }
.za-box { width: min(1120px, 100%); display: flex; flex-wrap: wrap; background: var(--card); border: 3px solid var(--line); border-radius: 28px; box-shadow: 0 8px 0 var(--shade); overflow: hidden; }
.za-side { flex: 1 1 460px; position: relative; overflow: hidden; padding: 36px 40px; min-height: 600px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #fff;
  background: radial-gradient(120% 90% at 100% 100%, #FF4FA3 0%, rgba(255,79,163,0) 55%), radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.6px) 0 0 / 22px 22px, var(--violet); border-right: 3px solid var(--line); }
.za-logo { width: 132px; height: auto; filter: drop-shadow(0 3px 0 var(--shade)); }
.za-art { position: relative; height: 240px; }
.za-cv { position: absolute; width: 104px; height: 104px; border-radius: 22px; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--shade); object-fit: cover; background: var(--soft); }
.za-cv0 { left: 0; top: 30px; transform: rotate(-9deg); width: 112px; height: 112px; }
.za-cv1 { left: 116px; top: 128px; transform: rotate(7deg); width: 92px; height: 92px; }
.za-cv2 { right: 18px; top: 0; transform: rotate(10deg); }
.za-cv3 { right: 116px; top: 150px; transform: rotate(-6deg); width: 82px; height: 82px; }
.za-masc { position: absolute; left: 50%; top: 34px; width: 170px; height: auto; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 6px 0 rgba(30,19,56,.35)); }
.za-chip { position: absolute; right: 0; bottom: 4px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--on-accent); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--shade); font-weight: 800; font-size: 14px; transform: rotate(4deg); }
.za-big { margin: 0; font: 800 48px/.98 var(--display); letter-spacing: -1.5px; text-shadow: 0 4px 0 var(--shade); }
.za-lead { margin: 12px 0 14px; font-size: 17px; line-height: 1.45; max-width: 400px; color: #F3EEFF; }
.za-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.za-feats li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); color: var(--ink); border: 2px solid var(--line); font-weight: 700; font-size: 14px; }
.za-feats li:nth-child(1) svg { color: var(--violet); } .za-feats li:nth-child(2) svg { color: var(--pink); } .za-feats li:nth-child(3) svg { color: #B45309; } .za-feats li:nth-child(4) svg { color: #0E7490; }
.za-main { flex: 1 1 420px; min-width: 0; padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.za-main h1 { font-size: 34px; letter-spacing: -.8px; }
.za-sub { margin: -8px 0 0; color: var(--muted); font-size: 16px; }
.za-tabs { display: flex; gap: 4px; padding: 5px; background: var(--soft); border: 3px solid var(--line); border-radius: 999px; }
.za-tabs a { flex: 1; min-height: 44px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 16px; color: var(--ink); text-align: center; padding: 0 10px; }
.za-tabs a.on { background: var(--inkbg); color: #fff; }
.za-tabs a:not(.on):hover { background: var(--card); }
.za-err { margin: 0; padding: 10px 14px; border-radius: 14px; background: #FFE4EC; border: 2px solid #E11D48; color: #9F1239; font-weight: 700; }
.za-g { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; border: 3px solid var(--line); background: var(--card); box-shadow: 0 4px 0 var(--shade); font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.za-g:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shade); }
.za-g:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
.za-or { display: flex; align-items: center; gap: 12px; margin: 0; color: #6B5F8A; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.za-or::before, .za-or::after { content: ""; flex: 1; height: 2px; background: #E2D9FF; }
.za-form { display: flex; flex-direction: column; gap: 14px; }
.za-f { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.za-f em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 4px; }
.za-f small { font-weight: 600; font-size: 13px; color: var(--muted); line-height: 1.35; }
.za-f small.ok { color: #15803D; font-weight: 800; } .za-f small.no { color: #BE123C; font-weight: 800; }
.za-safe { display: flex; gap: 6px; align-items: flex-start; }
.za-safe svg { flex: none; color: #B45309; margin-top: 1px; }
.za-row { display: flex; justify-content: space-between; align-items: baseline; }
.za-row a { font-weight: 700; font-size: 14px; color: #5B2FD9; }
.za-in { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 8px 0 14px; border-radius: 16px; border: 3px solid var(--line); background: #FBF9FF; transition: border-color .15s, box-shadow .15s; }
.za-in > svg { flex: none; color: var(--violet); }
.za-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 17px var(--ui); color: var(--ink); padding: 12px 0; }
input.za-in { width: 100%; padding: 0 14px; font: 600 17px var(--ui); color: var(--ink); outline: 0; }
.za-in:focus-within, input.za-in:focus { border-color: var(--violet); box-shadow: 0 0 0 4px #E2D9FF; background: var(--card); }
.za-at i { font-style: normal; font-weight: 800; color: #6B5F8A; }
.za-ok { display: none; color: #15803D; padding-right: 6px; }
.za-at.ok { border-color: #15803D; background: #F0FDF4; } .za-at.ok .za-ok { display: block; }
.za-at.no { border-color: #E11D48; background: #FFF1F4; }
.za-eye { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--soft); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.za-eye.on { background: var(--lime); color: var(--on-accent); }
.za-code { text-align: center; letter-spacing: .3em; font-size: 22px !important; }
.za-meter { display: flex; gap: 4px; }
.za-meter i { flex: 1; height: 8px; border-radius: 4px; background: #E2D9FF; transition: background .2s; }
.za-meter[data-s="1"] i:nth-child(-n+1) { background: #FF8A3D; }
.za-meter[data-s="2"] i:nth-child(-n+2) { background: #FFD23F; }
.za-meter[data-s="3"] i:nth-child(-n+3) { background: #22C55E; }
.za-meter[data-s="4"] i { background: #16A34A; }
.za-ava { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--bg); border: 2px dashed var(--violet); }
.za-ava img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px var(--line); background: var(--card); }
.za-ava img.spin { animation: zaSpin .5s var(--ease-pop); }
.za-ava span { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.3; }
.za-ava strong { font-size: 15px; color: var(--ink); }
.za-ava button { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--line); background: #FFD23F; color: var(--on-accent); box-shadow: 0 3px 0 var(--shade); display: grid; place-items: center; cursor: pointer; }
.za-ava button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shade); }
@keyframes zaSpin { 0% { transform: rotate(0) scale(.8); } 100% { transform: rotate(360deg) scale(1); } }
.za-go { min-height: 58px; margin-top: 4px; border-radius: 16px; border: 3px solid var(--line); background: var(--lime); color: var(--on-accent); box-shadow: 0 5px 0 var(--shade); font: 800 19px var(--ui); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.za-go:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--shade); }
.za-go:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--shade); }
.za-alt { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.za-alt a { font-weight: 800; color: #5B2FD9; }
.za-lock { width: 56px; height: 56px; border-radius: 18px; background: var(--soft); border: 3px solid var(--line); display: grid; place-items: center; color: var(--violet); }
.za-parents { margin: 4px 0 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #FFF6D6; border: 2px dashed #B45309; font-size: 14px; line-height: 1.4; color: #4A3A12; }
.za-parents svg { flex: none; color: #B45309; }
.za-parents a { color: #8A3B00; font-weight: 700; }
@media (max-width: 880px) {
  .za { padding: 12px 0 40px; }
  .za-side { display: none; }
  .za-main { padding: 22px 18px; gap: 14px; }
  .za-main h1 { font-size: 28px; }
  .za-box { border-radius: 24px; box-shadow: 0 6px 0 var(--shade); }
}
@media (prefers-reduced-motion: reduce) { .za-ava img.spin { animation: none; } }

/* ---------- Perfil ---------- */
.zp { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.zp > * { margin: 0; }
.zp-hero { position: relative; background: var(--card); border: 3px solid var(--line); border-radius: 28px; box-shadow: 0 7px 0 var(--shade); overflow: hidden; }
.zp-cover { position: relative; height: 160px; border-bottom: 3px solid var(--line); background-size: cover; }
.zp-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(30,19,56,.14) 1.4px, transparent 1.6px) 0 0 / 18px 18px; }
.zp-cover i { position: absolute; border: 3px solid var(--line); z-index: 1; }
.zp-cover .s1 { left: 32%; top: 40px; width: 26px; height: 26px; background: #FFD23F; border-radius: 6px; transform: rotate(18deg); }
.zp-cover .s2 { left: 74%; top: 26px; width: 42px; height: 14px; background: #fff; border-radius: 999px; transform: rotate(-12deg); }
.zp-cover .s3 { left: 56%; top: 92px; width: 20px; height: 20px; background: var(--lime); border-radius: 50%; }
.zp-cover .s4 { left: 88%; top: 96px; width: 0; height: 0; border: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid var(--pink); filter: drop-shadow(0 0 0 var(--line)); }
.zp-covbtn { position: absolute; right: 14px; top: 14px; z-index: 2; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; border: 3px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--shade); font: 800 14px var(--ui); cursor: pointer; }
.zp-covbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shade); }
.zp-main { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; padding: 0 28px 22px; }
.zp-ava { position: relative; margin-top: -70px; flex: none; }
.zp-ava > a { display: block; position: relative; text-decoration: none; }
.zp-ava .ava.xl { width: 148px; height: 148px; border-width: 3px; box-shadow: 0 5px 0 var(--shade); }
.zp-ava .ava.xl:not(.zfr) { background: var(--card); }
.zp-pen { position: absolute; left: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--on-accent); border: 3px solid var(--line); display: grid; place-items: center; }
.zp-lvl { position: absolute; right: -2px; bottom: 6px; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; border: 3px solid var(--line); display: grid; place-items: center; font: 800 18px var(--display); }
.zp-id { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 12px; }
.zp-title { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 2px solid var(--line); font-weight: 800; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; }
.zp-title.gold { background: #FFD23F; color: var(--on-accent); }
.zp-id h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1; letter-spacing: -1px; overflow-wrap: anywhere; }
.zp-handle { margin: 0; font-size: 15px; color: var(--muted); }
.zp-bio { margin: 2px 0 0; font-size: 16px; }
.zp-bio.add { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 2px dashed var(--violet); color: #5B2FD9; font-weight: 800; text-decoration: none; font-size: 15px; }
.zp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.zp-tags:empty { display: none; }
.zp-tag { --c: var(--violet); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: color-mix(in srgb, var(--c) 18%, var(--card)); font-weight: 700; font-size: 13px; text-decoration: none; color: var(--ink); }
.zp-tag.gold { --c: #FFD23F; } .zp-tag.fire { --c: #FF8A3D; }
.zp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zp-xp { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 18px; background: var(--bg); border: 2px solid #E2D9FF; }
.zp-xp b { font: 800 15px var(--display); white-space: nowrap; }
.zp-xpbar { flex: 1 1 200px; height: 16px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); overflow: hidden; }
.zp-xpbar i { display: block; height: 100%; background: repeating-linear-gradient(115deg, var(--violet) 0 12px, #946BFF 12px 24px); border-radius: inherit; }
.zp-xp small { font-weight: 700; font-size: 14px; color: var(--muted); }
.zp-xp small b { color: var(--ink); font: inherit; font-weight: 800; }
.zp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.zp-stats > * { --c: var(--violet); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; background: var(--card); border: 3px solid var(--line); border-radius: 20px; box-shadow: 0 4px 0 var(--shade); text-decoration: none; color: var(--ink); font: inherit; text-align: left; cursor: default; transition: transform .15s var(--ease-pop); }
.zp-stats > :nth-child(odd) { transform: rotate(-1deg); } .zp-stats > :nth-child(even) { transform: rotate(1deg); }
.zp-stats > a, .zp-stats > button { cursor: pointer; }
.zp-stats > a:hover, .zp-stats > button:hover { transform: translateY(-3px) rotate(0); }
.zp-stats svg { color: var(--c); filter: drop-shadow(0 1px 0 var(--line)); }
.zp-stats b { font: 800 26px var(--display); line-height: 1.1; }
.zp-stats b small { font-size: 15px; color: #6B5F8A; }
.zp-stats span { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.zp-stats .hot svg { animation: zpFlame 1.4s ease-in-out infinite; }
@keyframes zpFlame { 50% { transform: scale(1.15) rotate(-6deg); } }
.zp-tabs { margin: 0; }
.zp-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.zp-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.zp-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.zp-card { background: var(--card); border: 3px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--shade); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.zp-card > header, .zp-shelf > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zp-card h2, .zp-shelf h2 { font-size: 22px; }
.zp-link { border: 0; background: none; padding: 0; font: 800 14px var(--ui); color: #5B2FD9; text-decoration: underline; cursor: pointer; }
.zp-hint { margin: 0; font-size: 15px; color: var(--muted); }
.zp-shelf { background: var(--inkbg); color: #fff; border: 3px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--violet); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.6px); background-size: 18px 18px; }
.zp-shelf header button { min-height: 38px; padding: 0 14px; border-radius: 12px; border: 2px solid #fff; background: transparent; color: #fff; font: 800 14px var(--ui); cursor: pointer; }
.zp-shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zp-shelf-it { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.zp-shelf-it b { font-size: 16px; }
.zp-shelf-it small { font-size: 13px; color: #CFC3F5; line-height: 1.3; }
.zp-empty { margin: 0; color: #CFC3F5; }
.zp-stk { --c: var(--gold); flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; color: #fff; }
.zp-stk svg { filter: drop-shadow(0 2px 0 rgba(30,19,56,.55)); }
.zp-stk.off { background: #F3EEFF; border: 2px dashed #8A7FA8; box-shadow: none; color: #8A7FA8; }
.zp-stk.off svg { filter: none; }
.zp-stk.big { width: 100px; height: 100px; border-width: 5px; box-shadow: 0 0 0 3px var(--line), 0 6px 0 3px #000; }
.zp-stk.big svg { width: 46px; height: 46px; }
.zp-stk.r0 { transform: rotate(-6deg); } .zp-stk.r1 { transform: rotate(4deg); } .zp-stk.r2 { transform: rotate(-3deg); }
.zp-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zp-page { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 3px solid var(--line); border-radius: 20px; background: var(--card); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: transform .15s var(--ease-pop), box-shadow .15s; }
.zp-page:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--shade); }
.zp-page.done { background: linear-gradient(140deg, #FFF3B8, #FFD23F); }
.zp-pgh { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zp-pgh img, .zp-pgi { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); object-fit: cover; background: var(--soft); }
.zp-pgi { --c: var(--violet); display: grid; place-items: center; background: var(--c); color: #fff; }
.zp-pgh b { flex: 1; min-width: 0; font-size: 16px; line-height: 1.2; }
.zp-pgh em { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; }
.zp-pgh em.done { background: var(--inkbg); color: #FFD23F; }
/* v1.168.4: figurinhas da prévia com o ícone da conquista (eram bolas lisas que cresciam até 80 px) e no máximo 6 por linha, a 6ª vira "+N" */
.zp-dots { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; }
.zp-dots i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #B9AED6; background: var(--soft); display: grid; place-items: center; font: 800 12px var(--ui); font-style: normal; color: #8A7FA8; }
.zp-dots i svg { width: 46%; height: 46%; }
.zp-dots i.on { color: #fff; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .45), transparent 42%), var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line), 0 3px 0 2px var(--line); }
.zp-dots i.on svg { filter: drop-shadow(0 1px 0 rgb(0 0 0 / .35)); }
.zp-dots i.more { color: var(--ink); background: var(--card); border-style: solid; border-color: var(--line); }
.zp-page.done .zp-dots i.more { background: #FFF3B8; }
.zp-near { --c: var(--violet); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 2px dashed var(--violet); }
.zp-near > span { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; border: 2px solid var(--line); }
.zp-near p { flex: 1; margin: 0; font-size: 15px; line-height: 1.35; }
.zp-near strong { font: 800 20px var(--display); white-space: nowrap; }
.zp-near strong small { font-size: 14px; color: var(--muted); }
.zp-recent { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zp-recent a { display: block; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; transition: transform .15s var(--ease-pop); }
.zp-recent a:hover { transform: translateY(-3px) rotate(-2deg); }
.zp-recent img { width: 100%; height: 100%; object-fit: cover; }
.zp-recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zp-recs a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.zp-recs img { flex: none; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); object-fit: cover; }
.zp-recs span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zp-recs small { font-size: 13px; color: var(--muted); }
.zp-recs em { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 2px solid var(--line); font-style: normal; font-weight: 800; font-size: 13px; }
.zp-recs em.gold { background: #FFD23F; color: var(--on-accent); }
.zp-friends { display: flex; flex-wrap: wrap; gap: 8px; }
.zp-friends a { position: relative; display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--line); text-decoration: none; }
.zp-friends img { width: 100%; height: 100%; border-radius: 50%; }
.zp-friends i.on { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: #22C55E; border: 3px solid var(--card); }
.zp-friends a.more { display: grid; place-items: center; background: var(--soft); font-weight: 800; color: var(--ink); }
.zp-code { margin: 0; font-size: 14px; color: var(--muted); }
.zp-code b { color: var(--ink); letter-spacing: 1.5px; }
/* bichinho de estimação na coluna do lado: empilhado */
.zp-aside .pf-pet { grid-template-columns: 1fr; border-radius: 26px; box-shadow: 0 6px 0 var(--shade); }
.zp-aside .pet-home { min-height: 210px; border-right: 0; border-bottom: 3px solid var(--line); padding-top: 52px; }
.zp-aside .pet { width: 140px; height: 140px; }
.zp-aside .pet-info { padding: 14px 18px 18px; }
.zp-aside .pet-info h2 { font-size: 24px; }
.zp-aside .pet-bars { grid-template-columns: 1fr; }
/* álbum inteiro */
.zp-album { display: flex; flex-direction: column; gap: 14px; }
.zp-afilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zp-afilter button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font: 800 14px var(--ui); color: var(--ink); cursor: pointer; }
.zp-afilter button.on { background: var(--inkbg); color: #fff; }
.zp-afilter span { margin-left: auto; font-size: 15px; color: var(--muted); }
.zp-afilter span b { color: var(--ink); }
.zp-abar, .zp-ibar { display: block; height: 8px; border-radius: 999px; background: #EDE7FF; overflow: hidden; }
.zp-abar i, .zp-ibar i { display: block; height: 100%; background: #22C55E; border-radius: inherit; }
/* índice das páginas (v1.157.1): capinhas pequenas; no celular, 2 fileiras que rolam de lado */
.zp-idx { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--card); border: 3px solid var(--line); border-radius: 20px; box-shadow: 0 4px 0 var(--shade); }
.zp-ix { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px 4px; border: 2px solid transparent; border-radius: 14px; background: none; font: 800 11.5px var(--ui); color: var(--muted); cursor: pointer; transition: background .15s, transform .15s; }
.zp-ix:hover { background: var(--soft); transform: translateY(-2px); }
.zp-ix[aria-selected="true"] { border-color: var(--line); background: #F1EBFF; color: var(--ink); box-shadow: 0 3px 0 var(--shade); }
.zp-ix.hide { display: none; }
.zp-ixi { --c: var(--violet); position: relative; width: 50px; height: 50px; border-radius: 12px; border: 2px solid var(--line); background: var(--c); color: #fff; display: grid; place-items: center; }
.zp-ixi img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.zp-ix.none .zp-ixi { filter: grayscale(.75); opacity: .55; }
.zp-ix.none[aria-selected="true"] .zp-ixi { filter: none; opacity: 1; }
.zp-ix.done .zp-ixi { border-color: #E0A800; box-shadow: 0 0 0 2px #FFD23F; }
.zp-ixok { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: #FFD23F; border: 2px solid var(--line); color: var(--ink); display: grid; place-items: center; }
.zp-ixb { display: block; width: 44px; height: 5px; border-radius: 999px; background: #EDE7FF; overflow: hidden; }
.zp-ixb i { display: block; height: 100%; background: #22C55E; }
.zp-ix.done .zp-ixb i { background: #E0A800; }
.zp-ix small { font-size: 11.5px; line-height: 1; }
/* a página aberta */
.zp-leaf { background: var(--card); border: 3px solid var(--line); border-radius: 22px; box-shadow: 0 4px 0 var(--shade); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.zp-leaf.done { background: linear-gradient(160deg, #FFF8D6, var(--card) 45%); }
.zp-leaf > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.zp-leaf > header .zp-abar { grid-column: 1 / -1; grid-row: 2; }
.zp-leaf.done .zp-abar i { background: #E0A800; }
.zp-lnav { display: flex; gap: 6px; }
.zp-lnav button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 0 var(--shade); }
.zp-lnav button:active { transform: translateY(2px); box-shadow: none; }
.zp-sks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.zp-sk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border: 2px solid transparent; border-radius: 16px; background: none; font: inherit; color: var(--ink); text-align: center; cursor: pointer; }
.zp-sk:hover { background: var(--soft); }
.zp-sk[aria-pressed="true"] { border-color: var(--line); background: #F1EBFF; }
.zp-sk b { font-size: 12.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zp-sk em { font-style: normal; font-weight: 800; font-size: 11.5px; color: #6B5F8A; }
.zp-sk em.ok, .zp-skd em.ok { color: #15803D; }
.zp-sk em svg, .zp-skd em svg { vertical-align: -2px; margin-right: 2px; }
.zp-sk .zp-stk { width: 50px; height: 50px; }
.zp-skd { min-height: 54px; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--soft); border: 2px dashed #CFC4F2; }
.zp-skd:empty { display: none; }
.zp-skd b { font-size: 15px; }
.zp-skd > span:not(.zp-ibar) { font-size: 14px; color: var(--muted); line-height: 1.35; }
.zp-skd em { font-style: normal; font-weight: 700; font-size: 12.5px; color: #6B5F8A; }
.zp-skd .zp-ibar { margin-top: 2px; }
.zp-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--lime); color: var(--on-accent); font-weight: 800; font-size: 14px; text-decoration: none; }
@media (max-width: 640px) {
  .zp-idx { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 64px; overflow-x: auto; overscroll-behavior-x: contain; padding: 10px; gap: 6px; scroll-snap-type: x proximity; }
  .zp-ix { width: 64px; scroll-snap-align: start; }
  .zp-leaf { padding: 12px; border-radius: 20px; }
  .zp-leaf .zp-pgh b { font-size: 15px; }
  .zp-sks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .zp-sk { padding: 6px 2px; }
  .zp-sk .zp-stk { width: 44px; height: 44px; border-width: 2px; }
  .zp-sk .zp-stk svg { width: 19px; height: 19px; }
  .zp-sk b { font-size: 11.5px; }
  .zp-play { align-self: stretch; justify-content: center; }
}
/* janela Personalizar */
.zp-dlg { width: min(620px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 3px solid var(--line); border-radius: 26px; box-shadow: 0 8px 0 var(--shade); background: var(--card); color: var(--ink); }
.zp-dlg::backdrop { background: rgba(30,19,56,.55); }
.zp-dlg form { display: flex; flex-direction: column; max-height: inherit; }
.zp-dlg header, .zp-dlg footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; }
.zp-dlg header { border-bottom: 2px solid #E2D9FF; }
.zp-dlg footer { border-top: 2px solid #E2D9FF; justify-content: flex-end; }
.zp-dlg h2 { font-size: 22px; }
.zp-x { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.zp-dbody { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.zp-dbody fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zp-dbody legend { font: 800 17px var(--display); padding: 0; margin-bottom: 8px; }
.zp-dbody legend span { font: 700 13px var(--ui); color: var(--muted); margin-left: 6px; }
.zp-dbody small { font-size: 13px; color: var(--muted); }
.zp-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.zp-covers label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-size: 13px; text-align: center; }
.zp-covers input, .zp-pick input { position: absolute; opacity: 0; pointer-events: none; }
.zp-covers span { height: 54px; border-radius: 12px; border: 3px solid #E2D9FF; background-size: cover !important; }
.zp-covers input:checked + span { border-color: var(--line); box-shadow: 0 0 0 3px var(--lime); }
.zp-covers input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.zp-sel select { width: 100%; min-height: 50px; padding: 0 12px; border-radius: 14px; border: 3px solid var(--line); background: #FBF9FF; font: 600 16px var(--ui); color: var(--ink); }
.zp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.zp-pick label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 2px solid #E2D9FF; cursor: pointer; text-align: center; font-size: 13px; }
.zp-pick label:has(input:checked) { border-color: var(--line); background: #F2FCCF; box-shadow: 0 3px 0 var(--shade); }
.zp-pick label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.zp-pick label:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.zp-pick .zp-stk { width: 46px; height: 46px; }
@media (max-width: 900px) {
  .zp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zp-stats > :nth-child(n+4) { display: none; }
  .zp-pages { grid-template-columns: minmax(0, 1fr); }
  .zp-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zp { gap: 14px; }
  .zp-hero { border-radius: 24px; box-shadow: 0 5px 0 var(--shade); }
  .zp-cover { height: 104px; }
  .zp-covbtn { right: 10px; top: 10px; min-height: 36px; font-size: 13px; padding: 0 10px; }
  .zp-main { flex-direction: column; align-items: center; text-align: center; padding: 0 14px 16px; gap: 10px; }
  .zp-ava { margin-top: -58px; }
  .zp-ava .ava.xl { width: 112px; height: 112px; }
  .zp-lvl { min-width: 38px; height: 38px; font-size: 16px; }
  .zp-pen { width: 30px; height: 30px; }
  .zp-id { align-items: center; padding-top: 0; flex-basis: auto; width: 100%; }
  .zp-title { align-self: center; }
  .zp-bio.add { align-self: center; }
  .zp-tags { justify-content: center; }
  .zp-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-actions > * { justify-content: center; }
  .zp-xp { padding: 10px 12px; text-align: left; }
  .zp-stats { gap: 8px; }
  .zp-stats > * { align-items: center; text-align: center; padding: 10px 6px; border-radius: 16px; box-shadow: 0 3px 0 var(--shade); }
  .zp-stats svg { display: none; }
  .zp-stats b { font-size: 22px; }
  .zp-stats span { font-size: 12px; }
  .zp-shelf { padding: 16px; }
  .zp-stk.big { width: 72px; height: 72px; border-width: 4px; }
  .zp-stk.big svg { width: 34px; height: 34px; }
  .zp-shelf-it b { font-size: 13px; }
  .zp-shelf-it small { display: none; }
  .zp-card { padding: 14px 16px; border-radius: 22px; }
  .zp-card h2, .zp-shelf h2 { font-size: 19px; }
  .zp-shelf header button { padding: 0 10px; font-size: 13px; }
  .zp-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-afilter span { width: 100%; margin: 0; }
  .zp-dlg { max-height: 92vh; }
  .zp-tabs { width: 100%; }
  .zp-tabs button { flex: 1; justify-content: center; padding: 8px 8px; white-space: nowrap; font-size: 14px; gap: 5px; }
  .zp-tabs button > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zp-stats .hot svg { animation: none; } }

/* ---------- Monte seu bichinho ---------- */
.zav { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; margin: 8px 0 30px; }
.zav-stage { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 24px; border: 3px solid var(--line); border-radius: 28px; box-shadow: 0 7px 0 var(--shade); color: #fff;
  background: radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.6px) 0 0 / 20px 20px, var(--violet); }
.zav-ring { width: 236px; height: 236px; border-radius: 50%; padding: 10px; border: 4px solid var(--line); box-shadow: 0 7px 0 var(--shade); }
.zav-ring:not([class*="zf-"]) { background: rgba(255,255,255,.22); }
.zav .ave-prev { width: 100%; height: 100%; margin: 0; border: 4px solid var(--line); box-shadow: none; background: var(--card); }
.zav-fname { margin-top: -26px; position: relative; padding: 5px 14px; border-radius: 999px; background: var(--card); color: var(--ink); border: 3px solid var(--line); font-weight: 800; font-size: 14px; }
.zav-stage h1 { font-size: 30px; margin-top: 4px; text-shadow: 0 3px 0 var(--shade); }
.zav-stage p { margin: -4px 0 4px; font-size: 15px; line-height: 1.4; color: #F3EEFF; }
.zav-acts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zav-acts form { margin: 0; display: flex; }
.zav-b { flex: 1; width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--shade); font: 800 16px var(--ui); color: var(--on-accent); cursor: pointer; }
.zav-b.sun { background: #FFD23F; } .zav-b.lime { background: var(--lime); }
.zav-b:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
.zav-undo { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--inkbg); }
.zav-undo span { font-size: 13px; font-weight: 700; color: #CFC3F5; }
.zav-undo img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; }
.zav-undo img[data-zav-now] { border-color: var(--lime); }
.zav-undo svg { color: var(--lime); }
.zav-undo button { margin-left: auto; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; font: 800 13px var(--ui); cursor: pointer; }
.zav-undo button:disabled { opacity: .4; cursor: default; }
.zav-back { font-size: 14px; color: #fff; font-weight: 700; }
.zav-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.zav-parts { background: var(--card); border: 3px solid var(--line); border-radius: 28px; box-shadow: 0 7px 0 var(--shade); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.zav-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.zav-tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 3px solid var(--line); background: var(--card); font: 800 15px var(--ui); color: var(--ink); cursor: pointer; }
.zav-tabs button[aria-selected="true"] { background: var(--inkbg); color: #fff; box-shadow: 0 3px 0 var(--violet); }
.zav-opts { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.zav .ave-opt { padding: 12px 8px; border-width: 3px; border-color: #E2D9FF; border-radius: 20px; font-size: 14px; }
.zav .ave-opt img { width: 84px; height: 84px; }
.zav .ave-opt.on { border-color: var(--line); background: #F2FCCF; box-shadow: 0 4px 0 var(--shade); }
.zav .ave-opt.locked { border-style: dashed; border-color: #8A7FA8; background: var(--bg); }
.zav .ave-opt em { top: 8px; right: auto; left: 50%; transform: translateX(-50%); font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.zav-sw { gap: 14px; }
.zav-sw .ave-sw { width: 52px; height: 52px; }
.zav-note { margin: 0; font-size: 15px; color: var(--muted); }
.zav-frames { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.zav-frames > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: 20px; border: 3px solid #E2D9FF; }
.zav-frames > div.on { border-color: var(--line); background: #F2FCCF; box-shadow: 0 4px 0 var(--shade); }
.zav-frames > div.locked .zav-mini { filter: grayscale(.6) opacity(.6); }
.zav-frames small { font-size: 12px; font-weight: 700; color: var(--muted); }
.zav-frames small svg { vertical-align: -2px; }
.zav-mini { display: block; width: 92px; height: 92px; border-radius: 50%; padding: 7px; border: 3px solid var(--line); }
.zav-mini:not([class*="zf-"]) { background: var(--soft); }
.zav-mini img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--line); }
.zav-next { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 15px; }
.zav-trail { background: var(--inkbg); color: #fff; border: 3px solid var(--line); border-radius: 28px; box-shadow: 0 7px 0 var(--violet); padding: 20px 22px; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.6px); background-size: 18px 18px; }
.zav-trail h2 { font-size: 22px; margin-bottom: 16px; }
.zav-trail h2 small { font: 600 14px var(--ui); color: #CFC3F5; margin-left: 8px; }
.zav-trail ol { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 6px; overflow-x: auto; position: relative; }
.zav-trail li { flex: 1 0 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.zav-trail li::before { content: ""; position: absolute; top: 31px; left: -50%; width: 100%; height: 8px; background: #3B2F5C; z-index: 0; }
.zav-trail li:first-child::before { display: none; }
.zav-trail li.got::before, .zav-trail li.me::before { background: var(--lime); }
.zav-trail li > span { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); background: #3B2F5C; border: 3px dashed #CFC3F5; }
.zav-trail li.got > span { background: var(--lime); color: var(--on-accent); border: 3px solid #fff; }
.zav-trail li.me > span { background: var(--pink); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255,79,163,.35); }
.zav-trail li.me img { width: 50px; height: 50px; border-radius: 50%; }
.zav-trail li small { font-size: 12px; font-weight: 700; color: #CFC3F5; line-height: 1.3; }
.zav-trail li.got small { color: #fff; }
.zav-trail li.me small { color: #FF9ED0; font-weight: 800; }
@media (max-width: 900px) {
  .zav { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .zav-stage { position: relative; top: 0; padding: 18px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); text-align: left; align-items: center; gap: 10px 16px; }
  .zav-ring { width: 132px; height: 132px; padding: 6px; grid-row: span 3; }
  .zav-fname { display: none; }
  .zav-stage h1 { font-size: 22px; margin: 0; }
  .zav-stage p { display: none; }
  .zav-acts { grid-column: 2; }
  .zav-b { min-height: 44px; font-size: 15px; }
  .zav-undo { grid-column: 1 / -1; }
  .zav-back { display: none; }
  .zav-parts { padding: 14px; border-radius: 22px; }
  .zav-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
  .zav-tabs::-webkit-scrollbar { display: none; }
  .zav-tabs button { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .zav-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .zav .ave-opt img { width: 64px; height: 64px; }
  .zav .ave-opt { font-size: 12px; padding: 10px 4px; }
  .zav-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zav-mini { width: 72px; height: 72px; }
  .zav-trail { padding: 16px; border-radius: 22px; }
}

/* ---------- Amigos: cartão de amigo ---------- */
.am-code.zfc { padding: 16px; text-align: left; background: radial-gradient(rgba(255,255,255,.22) 1.4px, transparent 1.6px) 0 0 / 18px 18px, var(--pink); transform: rotate(-1deg); }
.zfc-card { background: var(--card); border: 3px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.zfc-top { display: flex; align-items: center; gap: 14px; }
.zfc-top .ava.xl { width: 76px; height: 76px; }
.zfc-top > span { display: flex; flex-direction: column; min-width: 0; }
.zfc-top small { font: 800 12px var(--ui); letter-spacing: 1.2px; color: #B4235F; }
.zfc-top b { font: 800 22px var(--display); line-height: 1.1; overflow-wrap: anywhere; }
.zfc-top em { font-style: normal; font-size: 14px; color: var(--muted); }
.zfc-mid { display: flex; align-items: center; gap: 14px; }
.zfc-code { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.zfc-code small { font-weight: 800; font-size: 14px; color: var(--ink); letter-spacing: 0; }
.zfc-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.zfc-boxes i { height: 50px; border-radius: 12px; border: 3px solid var(--line); background: #F2FCCF; display: grid; place-items: center; font: 800 26px var(--display); font-style: normal; color: var(--ink); }
.zfc-qr { flex: none; width: 96px; height: 96px; padding: 6px; border-radius: 14px; border: 3px solid var(--line); background: #fff; }
.zfc-qr svg { width: 100%; height: 100%; display: block; }
.zfc .am-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.zfc .am-act .btn { justify-content: center; }
.am-code.zfc > p { margin: 12px 4px 0; color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 520px) {
  .zfc-qr { width: 76px; height: 76px; }
  .zfc-boxes i { height: 42px; font-size: 21px; border-radius: 10px; }
  .zfc .am-act { grid-template-columns: minmax(0, 1fr); }
}
