/* Pretinho: um gato preto de olhos amarelos, à noite. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #14110e;        /* noite */
  --bg-2: #1b1713;
  --card: #231d17;
  --line: #3b3127;
  --fur: #060504;       /* o pelo do Pretinho */
  --text: #f6eddd;
  --muted: #ab9c88;
  --eye: #ffcb3d;       /* o olho */
  --eye-deep: #f29a0b;
  --moon: #fff1c2;
  --cream: #fbf2df;
  --ink: #241d16;
  --danger: #ff8a73;
  --ok: #8fd6a4;
  --radius: 20px;
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='21.5' rx='8' ry='6.5'/%3E%3Ccircle cx='5.5' cy='13.5' r='3.2'/%3E%3Ccircle cx='12.3' cy='7.5' r='3.5'/%3E%3Ccircle cx='19.7' cy='7.5' r='3.5'/%3E%3Ccircle cx='26.5' cy='13.5' r='3.2'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--eye); }
::selection { background: var(--eye); color: var(--fur); }
:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
.wrap { width: min(1140px, 100% - 36px); margin: 0 auto; }
.narrow { width: min(740px, 100% - 36px); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mt { margin-top: 4rem; }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- patinha (máscara reutilizável) ---------- */
.paw { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }

/* ---------- o gato ---------- */
.cat-face { display: block; overflow: visible; filter: drop-shadow(0 0 .6px rgba(255, 203, 61, .85)) drop-shadow(0 0 7px rgba(255, 203, 61, .18)); }
.cat-face .fur, .wcat .fur, .sleep-cat .fur { fill: var(--fur); }
.cat-face .eye, .wcat .eye, .sleep-cat .eye { fill: var(--eye); }
.cat-face .pupil { fill: var(--fur); }
.cat-face .glint { fill: #fff; opacity: .85; }
.cat-face .nose { fill: #4a3a2c; }
.cat-face .pupils { transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); transition: transform .18s ease-out; }
.cat-face .eyes-open { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.cat-face .eyes-happy { opacity: 0; fill: none; stroke: var(--eye); stroke-width: 2.6; stroke-linecap: round; }
.happy .cat-face .eyes-open { opacity: 0; }
.happy .cat-face .eyes-happy { opacity: 1; }
@keyframes blink { 0%, 43%, 47%, 86%, 89%, 92%, 100% { transform: scaleY(1); } 45%, 87.5%, 90.5% { transform: scaleY(.06); } }

.wcat { display: block; width: 100%; height: 100%; overflow: visible; }
.wcat .tail { fill: none; stroke: var(--fur); stroke-width: 3.2; stroke-linecap: round; transform-origin: 9px 17px; animation: tail 2.6s ease-in-out infinite alternate; }
.wcat .leg { transform-box: fill-box; transform-origin: 50% 0; }
@keyframes tail { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes leg { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }

/* ---------- topo e menu ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(20, 17, 14, .8); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 92px; flex-wrap: wrap; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.logo { width: 46px; height: 46px; display: block; transition: transform .4s var(--spring); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.08); }
.miau { position: absolute; left: 44px; top: -6px; background: var(--eye); color: var(--fur); font-family: var(--body); font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 12px 12px 12px 2px; white-space: nowrap; opacity: 0; transform: scale(.4) translateY(8px); transform-origin: 0 100%; pointer-events: none; }
.miau.pop { animation: miau 1.5s var(--spring) forwards; }
@keyframes miau { 0% { opacity: 0; transform: scale(.4) translateY(8px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

.menu { position: relative; display: flex; align-items: center; gap: 2px; padding-top: 46px; padding-bottom: 8px; }
.menu a { position: relative; z-index: 1; padding: 7px 15px; border-radius: 999px; color: #dccfbc; text-decoration: none; font-weight: 800; font-size: .96rem; transition: color .25s; }
.menu a.on { color: var(--fur); }
.nav-pill { position: absolute; left: 0; top: 0; width: var(--w, 0px); height: var(--h, 0px); transform: translate(var(--x, 0px), var(--y, 0px)); background: linear-gradient(180deg, #ffdd72, var(--eye-deep)); border-radius: 999px; opacity: var(--pill, 0); box-shadow: 0 0 22px rgba(255, 203, 61, .35); transition: transform .5s var(--out), width .5s var(--out), opacity .3s; }
.cat3d { position: fixed; left: 0; top: 0; width: 300px; height: 300px; pointer-events: none; z-index: 60; will-change: transform; }
.cat-float { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 61; color: var(--eye); font-family: var(--display); font-weight: 700; font-size: 1.2rem; animation: catfloat 1.6s ease-out forwards; }
@keyframes catfloat { from { opacity: 0; transform: translate(var(--x), var(--y)) scale(.5); } 20% { opacity: 1; } to { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - 46px)) scale(1.4); } }
.cat-toggle { margin-top: 14px; padding: 0; background: none; border: 0; color: var(--eye); font: inherit; font-size: .92rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.topbar nav:not(.menu) { display: flex; gap: 6px; align-items: center; }
.topbar nav:not(.menu) a, .linklike { color: #dccfbc; text-decoration: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 800; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.topbar nav:not(.menu) a:hover, .linklike:hover { background: var(--card); color: var(--eye); }
form.inline { display: inline; margin: 0; }
.scroll-progress { height: 3px; background: rgba(255, 203, 61, .1); }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--eye-deep), var(--eye)); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); box-shadow: 0 0 10px var(--eye); }

/* ---------- botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--spring), box-shadow .25s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn-big { padding: 16px 30px; font-size: 1.08rem; }
.btn-primary { background: linear-gradient(180deg, #ffdd72, var(--eye-deep)); color: var(--fur); box-shadow: 0 8px 26px rgba(242, 154, 11, .28); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(255, 203, 61, .45); }
/* orelhinhas que sobem quando o mouse chega */
.btn-primary::before, .btn-primary::after { content: ""; position: absolute; top: 3px; width: 17px; height: 15px; background: #ffdd72; clip-path: polygon(0 100%, 50% 0, 100% 100%); opacity: 0; transition: transform .35s var(--spring), opacity .15s; pointer-events: none; }
.btn-primary::before { left: 20px; }
.btn-primary::after { right: 20px; }
.btn-primary:hover::before, .btn-primary:hover::after { opacity: 1; }
.btn-primary:hover::before { transform: translateY(-13px) rotate(-10deg); }
.btn-primary:hover::after { transform: translateY(-13px) rotate(10deg); }
.btn-light { border-color: #5b4d3d; color: var(--text); }
.btn-light:hover { border-color: var(--eye); color: var(--eye); }
.btn-dark { background: var(--fur); color: var(--eye); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--eye); }
.btn-danger { background: transparent; border-color: #6b3a30; color: var(--danger); }
.btn.small { padding: 6px 14px; font-size: .85rem; }
.btn.loading::after { content: ""; position: static; opacity: 1; width: 1.1em; height: 1.1em; background: currentColor; clip-path: none; -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; animation: pawstep .5s ease-in-out infinite alternate; transform: none; }
@keyframes pawstep { from { transform: translateY(-3px) rotate(-18deg); } to { transform: translateY(3px) rotate(18deg); } }

/* ---------- animações de rolagem ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .9s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in-view { opacity: 1; transform: none; }

.section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-title { position: relative; font-size: clamp(1.9rem, 4.4vw, 3rem); padding-bottom: .35em; margin-bottom: .7em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 92px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--eye), var(--eye-deep)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--out) .35s; }
.section-title.in-view::after { transform: scaleX(1); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-top: -.4em; }

/* pegadas entre as seções */
.paw-trail { display: flex; justify-content: center; gap: clamp(14px, 4vw, 34px); padding: 26px 0; color: var(--eye); }
.js .paw-trail.reveal { opacity: 1; transform: none; }
.paw-trail .paw { width: 26px; height: 26px; transform: rotate(90deg) translateX(-7px); }
.paw-trail .paw:nth-child(even) { transform: rotate(90deg) translateX(7px); }
.js .paw-trail .paw { opacity: 0; scale: .2; transition: opacity .3s, scale .45s var(--spring); transition-delay: calc(var(--i) * 170ms); }
.js .paw-trail.in-view .paw { opacity: calc(.25 + var(--i) * .1); scale: 1; }

/* ---------- topo da página ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(120px, 15vw, 190px); background: radial-gradient(900px 620px at 78% 42%, #33271a 0%, transparent 62%), var(--bg); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--eye); font-weight: 800; margin: 0 0 1em; animation: rise .8s var(--out) both; }
.hero-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 0 0 rgba(255, 203, 61, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(255, 203, 61, 0); } }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.2rem); font-weight: 700; font-variation-settings: "SOFT" 100; margin-bottom: .3em; }
.hero h1 .word { display: inline-block; animation: word 1s var(--spring) both; animation-delay: calc(.15s + var(--i) * .12s); }
@keyframes word { from { opacity: 0; transform: translateY(.7em) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #dfd2be; max-width: 36ch; animation: rise .9s var(--out) .55s both; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; animation: rise .9s var(--out) .75s both; }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 480px); justify-self: center; animation: rise 1.2s var(--out) .2s both; }
.moon { position: absolute; inset: 3%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, var(--moon), var(--eye) 52%, var(--eye-deep)); box-shadow: 0 0 90px 24px rgba(255, 203, 61, .22), inset -18px -22px 60px rgba(160, 80, 0, .35); translate: 0 calc(var(--sy, 0) * .1px); }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(190, 110, 0, .18); }
.moon::before { width: 18%; height: 18%; left: 20%; top: 22%; }
.moon::after { width: 10%; height: 10%; left: 62%; top: 16%; }
.big-cat { position: absolute; left: 9%; bottom: -3%; width: 82%; height: auto; translate: 0 calc(var(--sy, 0) * -.04px); }
.big-cat .tail { fill: none; stroke: var(--fur); stroke-width: 17; stroke-linecap: round; transform-origin: 196px 298px; animation: sway 3.4s ease-in-out infinite alternate; }
.big-cat .whiskers { fill: none; stroke: rgba(255, 241, 194, .55); stroke-width: 1.4; stroke-linecap: round; }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(12deg); } }
.photo-cat { position: absolute; inset: 12% 10% 2%; }
.photo-cat img { width: 100%; height: 100%; object-fit: cover; border-radius: 44% 44% 36px 36px; border: 6px solid var(--fur); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.photo-cat .ear { position: absolute; top: -5%; width: 28%; aspect-ratio: 1; background: var(--fur); clip-path: polygon(8% 100%, 30% 0, 100% 62%); transform-origin: 50% 100%; animation: ear 5s ease-in-out infinite; }
.photo-cat .ear.l { left: 6%; }
.photo-cat .ear.r { right: 6%; transform: scaleX(-1); animation-name: ear-r; animation-delay: .15s; }
@keyframes ear { 0%, 90%, 100% { transform: rotate(0); } 94% { transform: rotate(-9deg); } }
@keyframes ear-r { 0%, 90%, 100% { transform: scaleX(-1) rotate(0); } 94% { transform: scaleX(-1) rotate(-9deg); } }

/* olhinhos no escuro */
.night { position: absolute; inset: 0; pointer-events: none; }
.night-eyes { position: absolute; display: flex; gap: calc(var(--s) * 1.1); animation: peek 9s ease-in-out infinite; animation-delay: var(--d); opacity: 0; }
.night-eyes i { width: var(--s); height: calc(var(--s) * 1.25); border-radius: 50%; background: var(--eye); box-shadow: 0 0 8px 1px rgba(255, 203, 61, .7); }
@keyframes peek { 0%, 100% { opacity: 0; transform: scaleY(.1); } 8%, 40% { opacity: .75; transform: scaleY(1); } 24% { opacity: .75; transform: scaleY(.1); } 48% { opacity: 0; transform: scaleY(.1); } }

.scroll-hint { position: absolute; left: 50%; bottom: clamp(84px, 10vw, 120px); display: flex; flex-direction: column; gap: 6px; color: var(--eye); translate: -50% 0; }
.scroll-hint .paw { width: 18px; height: 18px; transform: rotate(180deg); opacity: 0; animation: steps 2.1s infinite; }
.scroll-hint .paw:nth-child(2) { margin-left: 14px; animation-delay: .3s; }
.scroll-hint .paw:nth-child(3) { animation-delay: .6s; }
@keyframes steps { 0% { opacity: 0; } 25%, 55% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- vakinha: o cartão cor de lua ---------- */
.section.vakinha { padding-top: 0; margin-top: clamp(-90px, -8vw, -60px); z-index: 2; }
.vakinha-card { background: linear-gradient(160deg, var(--cream), #f6dfa9); color: var(--ink); border-radius: 32px; padding: clamp(26px, 4.5vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 203, 61, .4); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.card-label { margin: 0; font-weight: 800; color: #8a6a2b; }
.card-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--fur); color: var(--eye); font-size: .74rem; font-weight: 800; }
.live-badge[hidden] { display: none; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 0 0 rgba(255, 90, 60, .7); animation: live-dot 1.6s infinite; }
@keyframes live-dot { to { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); } }
.big-number.bump { animation: number-bump .7s var(--spring); }
@keyframes number-bump { 35% { scale: 1.12; color: #a86400; } }
[data-progress] .progress-bar, [data-progress] .progress-cat { transition: width 1.6s var(--out), left 1.6s var(--out); }
.big-number { font-family: var(--display); font-size: clamp(2.6rem, 7.5vw, 4.6rem); font-weight: 700; line-height: 1; margin: .1em 0 .2em; font-variant-numeric: tabular-nums; }
.progress-wrap { position: relative; padding-top: 34px; }
.progress { height: 16px; background: rgba(36, 29, 22, .13); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: var(--pct); min-width: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--eye-deep), var(--eye)); }
.progress-cat { position: absolute; top: 3px; left: var(--pct); width: 48px; height: 32px; margin-left: -40px; filter: none; }
.js .progress-bar { width: 0; min-width: 0; transition: width 2s var(--out) .3s; }
.js .in-view .progress-bar { width: var(--pct); min-width: 10px; }
.js .progress-cat { left: 0; margin-left: -6px; transition: left 2s var(--out) .3s, margin-left 2s var(--out) .3s; }
.js .in-view .progress-cat { left: var(--pct); margin-left: -40px; }
.js .in-view .progress-cat .leg.a { animation: leg .17s ease-in-out .3s 12 alternate; }
.js .in-view .progress-cat .leg.b { animation: leg .17s ease-in-out .3s 12 alternate-reverse; }
.progress-text { margin: 10px 0 0; }
.checked-at { color: #8a7755; font-size: .86rem; margin: 6px 0 0; }
.vakinha-actions { display: flex; flex-direction: column; gap: 20px; }
.vakinha-actions .btn-primary { box-shadow: 0 10px 30px rgba(242, 154, 11, .45); }
.pix-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.pix code { flex: 1; background: rgba(36, 29, 22, .08); padding: 11px 13px; border-radius: 12px; font-size: .9rem; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; }
.vakinha-frame { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.vakinha-frame summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 10px; list-style: none; }
.vakinha-frame summary::-webkit-details-marker { display: none; }
.vakinha-frame summary .paw { color: var(--eye); transition: transform .4s var(--spring); }
.vakinha-frame[open] summary .paw { transform: rotate(180deg); }
.vakinha-frame iframe { width: 100%; height: 720px; border: 0; border-radius: 14px; margin-top: 14px; background: var(--cream); }

/* ---------- história ---------- */
.story p { font-size: 1.14rem; color: #e6dac8; }
.story p:first-child::first-letter { font-family: var(--display); font-size: 4.4em; font-weight: 700; float: left; line-height: .82; padding: .06em .1em 0 0; color: var(--eye); }

/* ---------- notícias ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 30px; padding-left: 54px; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 16px); }
.update { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.update::before { content: ""; position: absolute; left: -54px; top: 22px; width: 34px; height: 34px; background: var(--eye); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; rotate: -18deg; scale: 0; transition: scale .6s var(--spring) .3s; }
.update.in-view::before { scale: 1; }
.update time { color: var(--eye); font-weight: 800; font-size: .88rem; }
.update h3 { font-size: 1.55rem; margin: 6px 0 10px; }
.update img, .update video { border-radius: 14px; margin-top: 18px; max-height: 520px; width: auto; }

/* ---------- galeria ---------- */
.chips { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 800; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: all .3s var(--spring); }
.chip:hover { border-color: var(--eye); transform: translateY(-2px); }
.chip.active { background: var(--eye); border-color: var(--eye); color: var(--fur); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.media-item { position: relative; margin: 0; background: var(--cream); color: var(--ink); padding: 10px 10px 4px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); rotate: var(--tilt, 0deg); transform: perspective(700px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: rotate .45s var(--spring), scale .45s var(--spring), transform .15s ease-out, opacity .5s, box-shadow .3s; }
.js .media-item.reveal { opacity: 0; scale: .8; rotate: calc(var(--tilt, 0deg) * 5); translate: 0 50px; transition: opacity .6s ease, scale .8s var(--spring), rotate .8s var(--spring), translate .8s var(--out), transform .15s ease-out, box-shadow .3s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.js .media-item.reveal.in-view { opacity: 1; scale: 1; rotate: var(--tilt, 0deg); translate: 0 0; }
.js .media-item.reveal.in-view.settled { transition-delay: 0s; }
.media-item:hover, .media-item:focus-within { rotate: 0deg !important; scale: 1.05 !important; z-index: 3; box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 0 3px var(--eye); }
.media-item.filtered { display: none; }
/* orelhas na foto, ao passar o mouse */
.media-item::before, .media-item::after { content: ""; position: absolute; top: 2px; width: 34px; height: 28px; background: var(--cream); clip-path: polygon(0 100%, 50% 0, 100% 100%); transition: transform .4s var(--spring); z-index: -1; }
.media-item::before { left: 16px; }
.media-item::after { right: 16px; }
.media-item:hover::before { transform: translateY(-20px) rotate(-12deg); }
.media-item:hover::after { transform: translateY(-20px) rotate(12deg); }
.media-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; font: inherit; color: inherit; }
.media-item .media-open img, .media-item .media-open video { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--fur); transition: transform .8s var(--out); }
.media-item:hover .media-open img, .media-item:hover .media-open video { transform: scale(1.07); }
.media-item figcaption { padding: 8px 6px 6px; font-family: var(--display); font-style: italic; font-size: 1rem; line-height: 1.3; }
.media-item .when { color: #8a7755; font-size: .82rem; font-style: normal; font-family: var(--body); }
.play-badge { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%; background: var(--fur); box-shadow: 0 0 0 0 rgba(255, 203, 61, .55); animation: pulse 2s infinite; transition: opacity .3s; }
.play-badge::after { content: ""; position: absolute; inset: 0; background: var(--eye); clip-path: polygon(40% 30%, 40% 70%, 72% 50%); }
.media-item:hover .play-badge { opacity: 0; }
.grid-docs .media-open img { object-fit: contain; background: #fff; }
.pdf-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1; text-decoration: none; color: var(--ink); font-weight: 800; background: #fff; border-radius: 8px; }
.pdf-icon { background: #c9442f; color: #fff; font-weight: 900; padding: 16px 18px; border-radius: 12px; transition: transform .4s var(--spring); }
.pdf-card:hover .pdf-icon { transform: rotate(-8deg) scale(1.12); }

/* visualizador */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; color: var(--text); }
.lightbox::backdrop { background: rgba(6, 5, 4, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; align-items: center; gap: 8px; padding: 18px; animation: fade .3s; }
.lb-stage { grid-column: 2; display: grid; place-items: center; min-width: 0; min-height: 0; height: 100%; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 16px; box-shadow: 0 0 0 5px var(--cream), 0 30px 90px #000; animation: zoom .45s var(--spring); }
.lb-caption { grid-column: 1 / -1; text-align: center; margin: 0; min-height: 1.6em; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--eye); color: var(--fur); font-size: 1.6rem; font-weight: 900; cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--spring); }
.lb-btn:hover { transform: scale(1.15); }
.lb-close { position: absolute; right: 18px; top: 18px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.82) rotate(-3deg); } }

/* ---------- mural ---------- */
.mural-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
.mural-side { position: sticky; top: 100px; }
.cat-form { position: relative; margin-top: 96px; }
.peek-cat { position: absolute; left: 50%; top: -84px; width: 118px; z-index: 0; transform: translate(-50%, 16px); transition: transform .5s var(--spring); }
.peek-cat .cat-face { width: 118px; height: 118px; }
.cat-form.awake .peek-cat { transform: translate(-50%, -4px); }
.cat-form.typing .peek-cat { animation: nod .28s ease-in-out infinite alternate; }
@keyframes nod { from { transform: translate(-50%, -4px) rotate(-2deg); } to { transform: translate(-50%, -7px) rotate(2deg); } }
.peek-paw { position: absolute; top: -10px; left: 50%; width: 30px; height: 20px; background: var(--fur); border-radius: 14px 14px 9px 9px; z-index: 2; box-shadow: 0 0 0 1px rgba(255, 203, 61, .5); transition: transform .35s var(--spring); }
.peek-paw.l { margin-left: -52px; }
.peek-paw.r { margin-left: 22px; }
.cat-form.typing .peek-paw.l { animation: tap .22s ease-in-out infinite alternate; }
.cat-form.typing .peek-paw.r { animation: tap .22s ease-in-out infinite alternate-reverse; }
@keyframes tap { from { transform: translateY(0); } to { transform: translateY(-9px); } }
/* senha: o gato tampa os olhos */
.cat-form.shy .peek-paw.l { transform: translate(13px, -38px) rotate(12deg) scale(1.15); }
.cat-form.shy .peek-paw.r { transform: translate(-13px, -38px) rotate(-12deg) scale(1.15); }

.mural-form, .login .card { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 30px); border-radius: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); transition: border-color .3s, box-shadow .3s; }
.cat-form.awake .mural-form, .cat-form.awake .card { border-color: rgba(255, 203, 61, .55); box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 40px rgba(255, 203, 61, .1); }
.mural-form h3 { margin: 0; font-size: 1.5rem; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 800; font-size: .95rem; }
.field-label { display: flex; align-items: center; gap: 8px; transition: color .25s, transform .3s var(--spring); }
.field-label::before { content: ""; width: 0; height: 15px; background: var(--eye); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; transition: width .3s var(--spring); }
.field:focus-within .field-label { color: var(--eye); }
.field:focus-within .field-label::before { width: 15px; animation: pawstep .5s ease-in-out infinite alternate; }
.counter { margin-left: auto; font-weight: 600; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=text], input[type=password], input[type=url], input:not([type]), textarea, select { font: inherit; font-weight: 500; padding: 13px 15px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); width: 100%; caret-color: var(--eye); transition: border-color .25s, box-shadow .25s, transform .3s var(--spring); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #7d705f; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--eye); box-shadow: 0 0 0 4px rgba(255, 203, 61, .16); transform: scale(1.012); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.file-drop { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border: 2px dashed var(--line); border-radius: 18px; cursor: pointer; transition: border-color .25s, transform .3s var(--spring), background .25s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--eye); transform: translateY(-3px) rotate(-1deg); background: rgba(255, 203, 61, .05); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-preview { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.file-preview.round { border-radius: 50%; }
.file-preview::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
.file-preview.has-img::before { display: none; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; animation: zoom .5s var(--spring); }
.file-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.file-text span { font-weight: 600; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.file { font-weight: 800; }
label.file input { font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 600; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border: 2px solid var(--line); border-radius: 9px; background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.check input::after { content: ""; width: 18px; height: 18px; background: var(--fur); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; transform: scale(0) rotate(-40deg); transition: transform .35s var(--spring); }
.check input:checked { background: var(--eye); border-color: var(--eye); transform: rotate(-6deg); }
.check input:checked::after { transform: scale(1) rotate(-10deg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.messages { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.message { background: var(--card); border: 1px solid var(--line); border-radius: 6px 24px 24px 24px; padding: 20px 22px; transition: border-color .3s, translate .4s var(--spring); }
.message:hover { border-color: rgba(255, 203, 61, .5); translate: 6px 0; }
.message header { display: flex; gap: 14px; align-items: center; }
.message header div { display: flex; flex-direction: column; line-height: 1.3; }
.message strong { font-size: 1.05rem; }
.message time { font-size: .8rem; color: var(--muted); }
.message p { margin: 14px 0 0; color: #eadfcd; }
.avatar-wrap { position: relative; flex: none; margin-top: 8px; }
/* todo apoiador ganha orelhinhas */
.avatar-wrap::before, .avatar-wrap::after { content: ""; position: absolute; top: -8px; width: 18px; height: 18px; background: var(--eye); clip-path: polygon(0 100%, 30% 0, 100% 70%); transition: transform .4s var(--spring); transform-origin: 50% 100%; }
.avatar-wrap::before { left: 1px; }
.avatar-wrap::after { right: 1px; transform: scaleX(-1); }
.message:hover .avatar-wrap::before { transform: rotate(-14deg); }
.message:hover .avatar-wrap::after { transform: scaleX(-1) rotate(-14deg); }
.avatar { position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid var(--eye); display: block; }
.avatar-letter { display: grid; place-items: center; background: var(--fur); color: var(--eye); font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.cat-photo { display: inline-block; width: auto; margin-top: 16px; background: var(--cream); color: var(--ink); padding: 8px 8px 6px; border-radius: 10px; rotate: -1.5deg; transition: rotate .4s var(--spring), scale .4s var(--spring); font-family: var(--display); font-style: italic; font-size: .92rem; text-align: left; }
.cat-photo:hover { rotate: 1deg; scale: 1.03; }
.cat-photo img { border-radius: 6px; max-height: 300px; width: auto; margin-bottom: 4px; }
.update-photo { width: auto; margin-top: 18px; border-radius: 14px; }
.update-photo img { margin: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }

.flash { padding: 12px 16px; border-radius: 14px; margin: 0; font-weight: 800; animation: zoom .5s var(--spring); }
.flash-ok { background: rgba(143, 214, 164, .13); color: var(--ok); border: 1px solid rgba(143, 214, 164, .35); }
.flash-err { background: rgba(255, 138, 115, .11); color: var(--danger); border: 1px solid rgba(255, 138, 115, .35); animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- efeitos de patinha ---------- */
.paw-fx { position: fixed; left: 0; top: 0; width: 18px; height: 18px; background: var(--eye); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; pointer-events: none; z-index: 999; animation: pawfly .8s var(--out) forwards; }
@keyframes pawfly { from { transform: translate(var(--x), var(--y)) scale(.3); opacity: 1; } to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1.1) rotate(var(--r)); opacity: 0; } }
.paw-stamp { animation: stamp 1.3s ease-out forwards; width: 22px; height: 22px; opacity: .5; }
@keyframes stamp { 0% { transform: translate(var(--x), var(--y)) scale(1.5) rotate(var(--r)); opacity: 0; } 12% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); opacity: .5; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); opacity: 0; } }
.paw-rain { animation: rain var(--t, 2.6s) ease-in forwards; width: 24px; height: 24px; }
@keyframes rain { from { transform: translate(var(--x), -40px) rotate(0); opacity: 1; } to { transform: translate(calc(var(--x) + var(--dx)), 105vh) rotate(var(--r)); opacity: .2; } }

/* ---------- rodapé ---------- */
.footer { background: #0c0a08; padding: 64px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; }
.footer-big { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 .3em; }
.footer p.muted { max-width: 60ch; font-size: .92rem; margin: 0; }
.sleeper { position: relative; width: 170px; flex: none; filter: drop-shadow(0 0 .6px rgba(255, 203, 61, .9)) drop-shadow(0 0 10px rgba(255, 203, 61, .15)); }
.sleeper::before { content: ""; position: absolute; inset: -30% -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 203, 61, .3), transparent); }
.sleep-cat { position: relative; display: block; width: 100%; overflow: visible; }
.sleep-cat .body { transform-origin: 60px 60px; animation: breathe 3.6s ease-in-out infinite; }
.sleep-cat .tail { fill: none; stroke: var(--fur); stroke-width: 7; stroke-linecap: round; }
.sleep-cat .closed { fill: none; stroke: var(--eye); stroke-width: 1.8; stroke-linecap: round; }
.sleep-cat .open { opacity: 0; }
.sleeper:hover .open { opacity: 1; }
.sleeper:hover .closed, .sleeper:hover .zzz { opacity: 0; }
@keyframes breathe { 50% { transform: scaleY(1.07); } }
.zzz { position: absolute; right: 8px; top: -34px; color: var(--eye); font-family: var(--display); font-weight: 700; transition: opacity .3s; }
.zzz span { position: absolute; opacity: 0; animation: zzz 3.6s infinite; }
.zzz span:nth-child(2) { animation-delay: 1.2s; }
.zzz span:nth-child(3) { animation-delay: 2.4s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(22px, -22px) scale(1.5); } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--eye); color: var(--fur); font-size: 26px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: translateY(90px) rotate(-90deg); transition: transform .5s var(--spring); }
.to-top.show { transform: none; }
.to-top.show:hover { transform: translateY(-5px) rotate(-12deg); }

/* ---------- painel ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(600px 420px at 50% 40%, #33271a, transparent 70%), var(--bg); }
.login .cat-form { width: min(390px, 100%); }
.login h1 { font-size: 1.8rem; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 4vw, 34px); }
.card h2 { font-size: 1.7rem; }
.card h3 { margin-top: 1.4em; }
.admin { padding: 28px 0 80px; display: flex; flex-direction: column; gap: 26px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-tabs a { background: var(--card); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 800; font-size: .92rem; transition: all .3s var(--spring); }
.admin-tabs a:hover { background: var(--eye); border-color: var(--eye); color: var(--fur); transform: translateY(-2px); }
.stack { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.stack .btn { align-self: flex-start; }
.grid-admin { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 22px; }
.admin-media { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.admin-media .media-item { width: 100%; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-message .row { display: flex; gap: 8px; align-items: center; padding: 10px 4px 0; }
.hidden-msg { opacity: .5; }
.badge { background: var(--line); padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }

/* ---------- telas pequenas ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar { top: -62px; }
  .topbar-inner { justify-content: center; padding: 8px 0 2px; gap: 0 20px; }
  .menu { padding-top: 40px; }
  .menu a { padding: 6px 11px; font-size: .9rem; }
  .hero-inner, .vakinha-card, .mural-layout { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(72%, 320px); }
  .hero { padding-top: 26px; }
  .scroll-hint { display: none; }
  .mural-side { position: static; }
  .vakinha-frame iframe { height: 560px; }
  .timeline { padding-left: 44px; }
  .update::before { left: -46px; width: 28px; height: 28px; }
  .timeline::before { left: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox[open] { padding: 10px; gap: 4px; }
  .lb-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .night-eyes { opacity: .6; }
  .zzz span, .scroll-hint .paw { opacity: .8; }
}

/* Os gatinhos do site respondem às visitas do Pretinho. */
[data-cat-visit] { transform-origin: 50% 80%; }
[data-cat-visit="curious"] { animation: friend-curious 1.1s ease-in-out infinite alternate; }
[data-cat-visit="happy"] { animation: friend-nuzzle .8s ease-in-out infinite alternate; }
[data-cat-visit="startled"] { animation: friend-startle .65s ease-out both; }
[data-cat-visit="playful"] { animation: friend-play .7s ease-in-out infinite alternate; }
[data-cat-visit="sleepy"] { animation: friend-nap 2s ease-in-out infinite alternate; }
.cat-face[data-cat-visit="happy"] .eyes-open { opacity: 0; }
.cat-face[data-cat-visit="happy"] .eyes-happy { opacity: 1; }
.sleep-cat[data-cat-visit]:not([data-cat-visit="sleepy"]) .open { opacity: 1; }
.sleep-cat[data-cat-visit]:not([data-cat-visit="sleepy"]) .closed { opacity: 0; }
.sleeper:has([data-cat-visit]:not([data-cat-visit="sleepy"])) .zzz { opacity: 0; }
@keyframes friend-curious { to { rotate: -7deg; } }
@keyframes friend-nuzzle { to { rotate: 5deg; scale: 1.035; } }
@keyframes friend-startle { 35% { translate: 0 -9px; rotate: -6deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes friend-play { to { rotate: -9deg; scale: 1.04 .97; } }
@keyframes friend-nap { to { scale: 1.025 .98; } }
@media (prefers-reduced-motion: reduce) { [data-cat-visit] { animation: none; } }

/* Salve o Pretinho — travessia infinita */
.runner-page { padding-top: 40px; padding-bottom: 70px; max-width: 1100px; }
.runner-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.runner-heading h1 { font-size: clamp(2rem,5vw,3.5rem); margin: 4px 0 8px; }
.runner-heading p { margin: 0; color: var(--muted); }
.game-eyebrow, .runner-heading .game-eyebrow { font: 800 .68rem var(--body); letter-spacing: .13em; color: var(--eye); }
.runner-hud { display: flex; gap: 24px; align-items: center; background: #23241e; border: 1px solid #4c4933; border-radius: 16px 16px 0 0; padding: 16px 24px; }
.runner-hud div { flex: 1; }
.runner-hud span { display: block; color: #b9bdab; font-size: .62rem; letter-spacing: .09em; }
.runner-hud strong { display: block; font-variant-numeric: tabular-nums; font-size: 1.6rem; color: #ffe59b; }
.runner-stage { position: relative; width: 100%; aspect-ratio: 900/620; overflow: hidden; border-radius: 0 0 18px 18px; background: #202f29; isolation: isolate; }
.runner-stage:focus-visible { outline: 3px solid var(--eye); outline-offset: 4px; }
.runner-world { position: absolute; left: 0; top: 0; width: 900px; height: 620px; transform-origin: top left; }
.runner-road { position: absolute; inset: 0; width: 900px; height: 620px; }
.runner-cat { position: absolute; top: 0; left: 0; width: 300px; height: 300px; pointer-events: none; }
.runner-overlay { position: absolute; inset: 0; z-index: 2; background: #101b23dd; backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; overflow: auto; }
.runner-overlay[hidden], .runner-share[hidden] { display: none; }
.runner-overlay h2 { font-size: clamp(1.3rem,3.6vw,2.8rem); max-width: 600px; margin: 12px 0; }
.runner-overlay p { max-width: 520px; font-size: .9rem; }
.runner-overlay .btn { margin-top: 8px; }
.runner-share { margin: 16px 0 0; max-width: 340px; }
.runner-share label { font-size: .8rem; }
.runner-share input { display: block; width: 100%; padding: 10px; margin: 8px 0; background: #14201d; color: white; border: 1px solid #77765d; border-radius: 8px; }
.runner-share .muted { font-size: .72rem; margin: 4px 0; }
.runner-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.runner-controls div { display: flex; flex-direction: column; gap: 6px; }
.runner-controls button { width: 64px; height: 44px; border: 1px solid #777252; border-radius: 10px; background: #292d23; color: var(--eye); font-size: 1.4rem; touch-action: none; cursor: pointer; }
.runner-controls button:active { background: #514b29; }
.runner-tip { max-width: 650px; margin: 16px auto 40px; text-align: center; font-size: .85rem; color: var(--muted); }
/* Placar do jogo: fica logo abaixo da partida, separado dos recados. */
.runner-records { max-width: 620px; margin: 34px auto 10px; }
.runner-records h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 .15em; }
.runner-records > .muted { margin: 0 0 18px; font-size: .92rem; }
.scoreboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.score-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; animation: score-in .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms); transition: translate .3s var(--spring), border-color .25s; }
.score-row:hover { translate: 6px 0; border-color: rgba(255, 203, 61, .5); }
.score-pos { font: 700 1.25rem var(--display); color: var(--muted); }
.score-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-points { font: 700 1.45rem var(--display); color: var(--eye); font-variant-numeric: tabular-nums; }
.score-unit { font-size: .78rem; color: var(--muted); }
.score-row.podium { border-color: #766035; background: linear-gradient(140deg, #302c1e, #1c211c); }
.score-row.podium .score-pos { color: var(--eye); }
.score-row:first-child { padding-block: 16px; background: linear-gradient(165deg, var(--cream), #f6dfa9); border-color: transparent; color: var(--ink); }
.score-row:first-child .score-pos, .score-row:first-child .score-points { color: #a86400; }
.score-row:first-child .score-points { font-size: 1.9rem; }
.score-row:first-child .score-unit { color: #8a7755; }
.score-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); font-style: italic; text-align: center; }
@keyframes score-in { from { opacity: 0; translate: -24px 0; } }
@media (prefers-reduced-motion: reduce) { .score-row { animation: none; } }
@media(max-width:650px){
 .runner-heading { display: block; }.runner-heading > a { display: inline-block; margin-top: 10px; padding-left: 0; }
 .runner-hud { padding: 12px; gap: 10px; flex-wrap: wrap; }.runner-hud strong { font-size: 1.2rem; }.runner-hud span { font-size: .5rem; }
 .runner-hud button { padding: 6px 12px; font-size: .75rem; }
 .runner-overlay { padding: 12px; justify-content: safe center; }.runner-overlay p { font-size: .7rem; margin: 4px 0; }.runner-overlay h2 { margin: 5px 0; }
 .runner-overlay .btn { font-size: .8rem; padding: 8px 12px; }.runner-overlay .game-eyebrow { font-size: .52rem; }
 .runner-stage:has(.runner-share:not([hidden])) { min-height: 440px; }
 .menu { flex-wrap: wrap; justify-content: center; }.menu a { padding: 6px 9px; }
}

.runner-page { max-width: min(1100px, max(360px, calc((100svh - 270px) * 1.4516))); }
.runner-hud { position: sticky; top: 94px; z-index: 4; scroll-margin-top: 94px; }
@media(max-width:650px) { .runner-page { max-width: 100%; } .runner-hud { position: relative; top: 0; scroll-margin-top: 170px; } }

.runner-page .btn { background: linear-gradient(#ffdf80,#efb73c); color: #171710; }
.runner-page .btn-light { background: #30392d; color: #ffe59b; }

/* Um mural de pequenas patinhas, com espaço para dezenas de apoiadores. */
[data-mural-board] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; align-items: start; padding: 16px 4px 8px; }
/* Bilhetinhos vivos: cada um flutua no seu ritmo, cresce perto do ponteiro e levanta as orelhas. */
[data-mural-board] .message {
  --tilt: -1.4deg; --tile-bg: linear-gradient(160deg, #2c251c, #1c1813); --tile-fg: var(--text); --tile-soft: #cdbfa9; --tile-ear: var(--eye); --tile-ring: var(--eye);
  position: relative; padding: 0; min-width: 0; border: 1px solid var(--line); border-radius: 20px 20px 20px 7px; background: var(--tile-bg); color: var(--tile-fg); box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  rotate: var(--tilt); scale: calc(1 + var(--near, 0) * .07);
  animation: tile-float 5.2s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.1s);
  transition: scale .35s var(--spring), rotate .4s var(--spring), translate .4s var(--spring), border-color .25s, box-shadow .3s, opacity .7s ease, transform .9s var(--out);
}
[data-mural-board] .message:nth-child(3n+2) { --tilt: 1.3deg; animation-duration: 6.1s; }
[data-mural-board] .message:nth-child(4n+3) { --tilt: -.5deg; animation-duration: 4.6s; }
[data-mural-board] .message:nth-child(5n) { --tilt: 2deg; }
[data-mural-board] .message:nth-child(5n+2) { --tile-bg: linear-gradient(170deg, #ffdd72, var(--eye-deep)); --tile-fg: var(--fur); --tile-soft: #4a3508; --tile-ear: #ffdd72; --tile-ring: var(--fur); border-color: transparent; }
[data-mural-board] .message:nth-child(7n+4) { --tile-bg: linear-gradient(165deg, var(--cream), #f6dfa9); --tile-fg: var(--ink); --tile-soft: #6b5a3e; --tile-ear: var(--cream); --tile-ring: var(--eye-deep); border-color: transparent; }
@keyframes tile-float { from { translate: 0 -3px; rotate: calc(var(--tilt) - .7deg); } to { translate: 0 4px; rotate: calc(var(--tilt) + .7deg); } }
@keyframes tile-hop { 0% { translate: 0 0; } 40% { translate: 0 -10px; rotate: calc(var(--tilt) * -1.2); } 100% { translate: 0 0; } }
/* orelhinhas */
[data-mural-board] .message::before, [data-mural-board] .message::after { content: ""; position: absolute; top: 3px; left: 18px; width: 24px; height: 20px; background: var(--tile-ear); clip-path: polygon(0 100%, 50% 0, 100% 100%); opacity: 0; z-index: -1; transition: transform .4s var(--spring), opacity .15s; pointer-events: none; }
[data-mural-board] .message::after { left: auto; right: 18px; }
[data-mural-board] .message:hover::before, [data-mural-board] .message:focus-within::before, [data-mural-board] .message.peek::before { opacity: 1; transform: translateY(-15px) rotate(-10deg); }
[data-mural-board] .message:hover::after, [data-mural-board] .message:focus-within::after, [data-mural-board] .message.peek::after { opacity: 1; transform: translateY(-15px) rotate(10deg); }
[data-mural-board] .message.peek { animation: tile-hop .7s var(--spring); }
[data-mural-board] .message:hover, [data-mural-board] .message:focus-within { animation: none; rotate: 0deg; translate: 0 -7px; scale: 1.1; z-index: 3; border-color: var(--eye); box-shadow: 0 18px 36px rgba(0, 0, 0, .55), 0 0 0 2px var(--eye); }
.message-preview { display: none; }
.mural-ready .message-content { display: none; }
.mural-ready .message-preview { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; height: 134px; padding: 13px 14px 12px; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, -60%), rgba(255, 255, 255, .16), transparent 70%); }
.tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--tile-ring); background: var(--fur); color: var(--eye); display: grid; place-items: center; font: 700 .9rem var(--display); overflow: hidden; transition: rotate .4s var(--spring); }
.tile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message:hover .tile-avatar { rotate: -10deg; }
.message-preview .tile-head strong { font: 700 .98rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile-text { font-size: .82rem; line-height: 1.42; color: var(--tile-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.message-preview small { margin-top: auto; font-size: .74rem; font-weight: 800; color: var(--tile-ring); }
.message-preview::after { content: ""; position: absolute; right: 10px; bottom: 9px; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; opacity: .16; rotate: -18deg; transition: opacity .3s, rotate .4s var(--spring), scale .4s var(--spring); }
.message:hover .message-preview::after { opacity: .5; rotate: 8deg; scale: 1.25; }
.message-preview:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { [data-mural-board] .message, [data-mural-board] .message.peek { animation: none; } }
/* Recado aberto: um bilhete cor de lua, com orelhinhas. O Pretinho sobe na borda de cima para ler junto. */
.paw-detail { position: fixed; z-index: 58; width: min(420px, calc(100vw - 24px)); padding-top: 26px; filter: drop-shadow(0 24px 46px rgba(0, 0, 0, .62)); }
.paw-detail[hidden] { display: none; }
.paw-toes { position: absolute; inset: 0 0 auto; height: 60px; pointer-events: none; }
.paw-toes i { position: absolute; top: 0; left: 16px; width: 62px; height: 58px; background: var(--cream); clip-path: polygon(6% 100%, 26% 0, 100% 72%); transform-origin: 50% 100%; animation: note-ear .55s var(--spring) .14s both; }
.paw-toes i:last-child { left: auto; right: 16px; background: #f8e6b6; transform: scaleX(-1); }
.paw-toes i:nth-child(2), .paw-toes i:nth-child(3) { display: none; }
.paw-pad { position: relative; background: linear-gradient(165deg, var(--cream), #f6dfa9); color: var(--ink); border-radius: 30px 30px 26px 26px; padding: 30px 28px 28px; max-height: calc(100svh - 240px); overflow: auto; scrollbar-width: thin; scrollbar-color: #c9a85a transparent; transform-origin: var(--ox, 50%) var(--oy, 50%); animation: note-in .5s var(--spring) both; }
.paw-pad::after { content: ""; position: absolute; right: 20px; bottom: 16px; width: 46px; height: 46px; background: var(--eye-deep); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; rotate: -18deg; opacity: .2; pointer-events: none; animation: note-seal .5s var(--spring) .38s both; }
@keyframes note-in { from { opacity: 0; scale: .5; rotate: -6deg; } }
@keyframes note-ear { from { translate: 0 34px; } }
@keyframes note-seal { from { scale: 2.4; opacity: 0; } }
.paw-pad header { display: flex; align-items: center; gap: 14px; padding-right: 46px; }
.paw-pad header div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.paw-pad header strong { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.paw-pad time { font-size: .8rem; color: #8a7755; }
.paw-pad .prose { font-size: 1.06rem; line-height: 1.6; color: #3a2f24; margin: 18px 0 0; overflow-wrap: anywhere; }
.paw-pad .avatar { width: 56px; height: 56px; border-color: var(--eye-deep); }
.paw-pad .avatar-wrap::before, .paw-pad .avatar-wrap::after { background: var(--eye-deep); }
.paw-pad .cat-photo { margin-top: 18px; background: #fff; box-shadow: 0 6px 18px rgba(36, 29, 22, .22); }
.paw-pad .cat-photo img { max-height: 170px; }
.paw-pad .donation-display { border-top: 1px dashed #c9a85a; margin-top: 18px; padding-top: 14px; }
.paw-pad .donation-display > strong { color: #a86400; font-family: var(--display); font-size: 1.35rem; }
.paw-pad .donation-display p { color: #8a7755; font-size: .76rem; margin: 4px 0; }
.paw-pad .donation-kittens { background: rgba(36, 29, 22, .07); }
.paw-close { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fur); color: var(--eye); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--spring); }
.paw-close:hover { transform: rotate(90deg) scale(1.12); }
/* o bilhete balança pendurado pelo topo, onde o gato pisa, conforme o que ele faz lá em cima */
.paw-detail[data-cat-visit] { transform-origin: 50% 26px; }
.paw-detail[data-cat-visit="landed"] { animation: note-landed .55s var(--spring) both; }
.paw-detail[data-cat-visit="curious"] { animation: note-sway 1.3s ease-in-out infinite alternate; }
.paw-detail[data-cat-visit="happy"] { animation: note-purr .09s linear infinite alternate; }
.paw-detail[data-cat-visit="playful"] { animation: note-tap .36s ease-in-out infinite alternate; }
.paw-detail[data-cat-visit="startled"] { animation: note-jolt .5s ease-out both; }
.paw-detail[data-cat-visit="sleepy"] { animation: note-breathe 2.4s ease-in-out infinite alternate; }
@keyframes note-landed { 0% { translate: 0 0; } 28% { translate: 0 11px; scale: 1.02 .975; } 100% { translate: 0 0; } }
@keyframes note-sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
@keyframes note-purr { from { translate: -.7px 0; } to { translate: .7px 0; } }
@keyframes note-tap { from { translate: 0 0; rotate: -.5deg; } to { translate: 0 4px; rotate: .7deg; } }
@keyframes note-jolt { 30% { translate: 0 7px; rotate: 2.2deg; } 60% { rotate: -1.4deg; } }
@keyframes note-breathe { to { scale: 1.012 .992; } }
[data-mural-board] .message:has([aria-expanded="true"]) { border-color: var(--eye); box-shadow: 0 0 0 3px rgba(255, 203, 61, .22); }
.donation-field {border:1px solid var(--line);border-radius:16px;padding:16px;margin:20px 0;}.donation-field legend {font-size:.85rem;font-weight:800;}.donation-field .small {font-size:.75rem;color:var(--muted);}.donation-promise {transition:background .3s,scale .3s;border-radius:12px;padding:8px;}.donation-field.has-donation .donation-promise {background:#ffcc3d12;}.donation-field.promised .donation-promise {background:#8ccf9b22;scale:1.015;}.donation-display {border-top:1px solid var(--line);margin-top:16px;padding-top:12px;}.donation-display>strong {color:var(--eye);}.donation-display p {font-size:.7rem;color:var(--muted);}.donation-kittens {display:block;width:100%;height:auto;background:#d7b56312;border-radius:20px;}
@media(max-width:650px){[data-mural-board]{grid-template-columns:repeat(2,minmax(0,1fr));}.paw-detail{width:calc(100vw - 24px);}.paw-pad{padding:28px 20px 24px;}.paw-pad header strong{font-size:1.2rem;}}
@media(prefers-reduced-motion:reduce){.paw-pad,.paw-pad::after,.paw-toes i,.paw-detail[data-cat-visit]{animation:none;}}
@media(prefers-reduced-motion:reduce){.donation-promise{transition:none;}}
.donation-kittens.live { height: 210px; cursor: pointer; touch-action: manipulation; border-radius: 18px; }
.overflowing .donation-kittens { box-shadow: inset 0 0 0 2px rgba(168, 100, 0, .35); animation: kitten-crowd 1.6s ease-in-out infinite; }
.paw-pad .kitten-crowd-note { color: #a86400 !important; font-weight: 800; }
.kitten-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 59; }
.crowded .donation-kittens { animation: kitten-crowd 2.4s ease-in-out infinite; }.kitten-crowd-note {color:var(--eye)!important;}
@keyframes kitten-crowd { 25% {rotate:-1deg;scale:1.02;} 65%{rotate:1deg;} }
@media(prefers-reduced-motion:reduce){.crowded .donation-kittens{animation:none;}}

.live-ago { opacity: .75; }
