@font-face { font-family: "Lexend"; src: url("/Lexend-var.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root { --bg: #02020E; --text: #F1EEFF; --soft: #B9B4DC; --violet: #8C7BFF; --gold: #FFC56B; --panel: rgba(10, 10, 34, .62); --line: rgba(140, 123, 255, .28); --error: #FF9C9C; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 3D layer. Without WebGL (.no-3d) the still image takes its place. */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--bg) url("/fundo.jpg") center / cover no-repeat; opacity: 0; transition: opacity .6s; }
.no-3d #scene { display: none; }
.no-3d .backdrop { opacity: .55; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2,2,14,.25) 0%, rgba(2,2,14,0) 30%, rgba(2,2,14,.35) 100%); }

.top { position: fixed; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(2,2,14,.78), rgba(2,2,14,0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 50%; box-shadow: 0 0 18px rgba(140,123,255,.5); }
.brand b, h1 b, .goal-value { font-weight: 600; background: linear-gradient(90deg, #B7ABFF, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-nav { display: flex; gap: 8px; align-items: center; }
.top-cta[hidden] { display: none; }
.top-cta { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,10,34,.5); }

main { position: relative; z-index: 1; }
section { max-width: 1080px; margin: 0 auto; padding: 72px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); }
h2 { margin: 0 0 20px; font-weight: 600; font-size: clamp(26px, 5vw, 38px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 24px rgba(2,2,14,.9); }
h3 { margin: 0 0 6px; font-weight: 600; font-size: 21px; }
p { margin: 0 0 12px; }

.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: 14px; padding-top: 110px; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: 7px 16px 7px calc(16px + .22em); border-radius: 999px;
  background: rgba(2, 2, 14, .62); border: 1px solid rgba(255, 197, 107, .4); text-shadow: 0 1px 10px rgba(2, 2, 14, .9); }
h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 11vw, 96px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(2,2,14,.9); }
.title-link { color: inherit; text-decoration: none; cursor: pointer; }
.title-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 8px; }
h1 b { filter: drop-shadow(0 0 14px rgba(255,197,107,.35)); }
.lede { margin: 0; font-size: clamp(18px, 4.4vw, 23px); text-wrap: balance; text-shadow: 0 1px 18px rgba(2,2,14,.95); }
.counter { margin: 6px 0 0; font-size: 16px; color: var(--soft); }
.counter b { color: var(--gold); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.deadline { margin: 0; font-size: 14px; color: var(--soft); }
.deadline b { color: var(--text); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 17px; color: #0B0D24; background: linear-gradient(90deg, #A99BFF, var(--gold)); box-shadow: 0 8px 34px rgba(140,123,255,.35); transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { color: var(--text); background: transparent; border: 1px solid var(--line); box-shadow: none; }

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li, .card, form, .done { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps li.is-open { border-color: rgba(255,197,107,.6); box-shadow: 0 0 40px rgba(255,197,107,.12); }
.when { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.is-open .when { color: var(--gold); }
.steps p { margin: 0; color: var(--soft); }

.rules { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.card h2 { font-size: clamp(22px, 4vw, 28px); margin-bottom: 14px; }
.card ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
blockquote { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
blockquote p { font-size: 18px; margin-bottom: 6px; }
cite { font-style: normal; font-size: 14px; color: var(--soft); }
.goal-value { font-size: clamp(40px, 8vw, 56px); line-height: 1.1; margin: 0 0 10px; width: fit-content; font-variant-numeric: tabular-nums; }
.goal p:last-child { margin: 0; color: var(--soft); }

.suggest { max-width: 720px; padding-bottom: 96px; }
form { display: grid; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.kind { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kind legend { grid-column: 1 / -1; }
.kind label { position: relative; display: block; cursor: pointer; }
.kind input { position: absolute; opacity: 0; inset: 0; }
.kind span { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 15px; background: rgba(2,2,14,.4); }
.kind input:checked + span { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 24px rgba(255,197,107,.15); }
.kind input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.note { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,197,107,.09); border: 1px solid rgba(255,197,107,.35); font-size: 15px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; min-width: 0; }
.anon-fields { display: grid; gap: 18px; }
.anon-login .link { font-size: 13px; padding: 0; }
.grow { flex: 1 1 220px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--soft); font-size: 13px; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(2,2,14,.55); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { color: #111; }
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.hint { font-size: 13px; color: var(--soft); justify-self: end; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--violet); flex: none; }
.turnstile { min-height: 65px; }
.msg { margin: 0; min-height: 1.5em; color: var(--error); font-weight: 600; font-size: 15px; }
.msg:empty { min-height: 0; }
form .btn { margin-top: 0; width: 100%; }
.done { text-align: center; }
.done h3 { font-size: 26px; color: var(--gold); }
[hidden] { display: none !important; }

footer { position: relative; z-index: 1; text-align: center; padding: 40px 20px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--soft); background: linear-gradient(180deg, rgba(2,2,14,0), rgba(2,2,14,.85) 40%); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--gold); }
.fine { font-size: 13px; }
.fine a { color: var(--soft); }

/* Privacy page */
.doc { max-width: 760px; padding-top: 110px; }
.doc h1 { font-size: clamp(32px, 7vw, 48px); margin-bottom: 18px; }
.doc h2 { font-size: 22px; margin: 28px 0 10px; }
.doc .card { background: var(--panel); }
.doc li { margin-bottom: 6px; }

@media (max-width: 820px) {
  .steps ol, .rules { grid-template-columns: minmax(0, 1fr); }
  section { padding-top: 48px; padding-bottom: 48px; }
  .kind { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .backdrop { transition: none; } }

section, input, select, textarea, .done { scroll-margin-top: 96px; }

/* Sign-in and account */
.auth, .who, .account { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 16px; }
.auth h3 { font-size: 22px; }
.auth > p { color: var(--soft); }
.auth-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 18px 0 8px; max-width: 360px; }
#inapp-note { display: grid; gap: 10px; }
#inapp-note p { margin: 0; }
#inapp-note .link { display: block; margin-top: 6px; }
/* Sign-in buttons: same size, glass with a violet-to-gold edge and a sheen that crosses on hover or touch. */
.btn-auth { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 14px 22px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; color: var(--text); -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
  background: linear-gradient(rgba(10, 10, 34, .82), rgba(10, 10, 34, .82)) padding-box, linear-gradient(135deg, rgba(169, 155, 255, .85), rgba(255, 197, 107, .65) 55%, rgba(169, 155, 255, .3)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .14s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, filter .22s ease; }
.btn-auth svg { flex: none; }
.btn-auth::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .btn-auth:hover:not(:disabled) { transform: translateY(-1px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(169, 155, 255, .45), 0 0 26px rgba(169, 155, 255, .35), 0 12px 30px rgba(0, 0, 0, .3); }
  .btn-auth:hover:not(:disabled)::after { transform: translateX(130%); }
}
.btn-auth:active:not(:disabled) { transform: scale(.965); filter: brightness(.97); box-shadow: inset 0 0 0 1px rgba(255, 197, 107, .55), 0 0 22px rgba(255, 197, 107, .3); }
.btn-auth:active:not(:disabled)::after { transform: translateX(130%); transition-duration: .4s; }
.btn-auth:disabled { opacity: .6; cursor: progress; }
.email-form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2,2,14,.35); }
.email-form .row .btn { margin-top: 0; flex: 1 1 140px; }
.hint-left { font-size: 13px; color: var(--soft); }
#e-code { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.btn-auth:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn-auth, .btn-auth::after { transition: none; } }
.fine-note { font-size: 13px; color: var(--soft); margin: 8px 0 0; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 20px; font-size: 15px; }
.who b { color: var(--gold); font-weight: 600; }
.who span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--error); justify-self: start; margin-top: 4px; }
.account { display: grid; gap: 16px; }
.account h3 { margin: 0; }
.account .row .btn { margin-top: 0; flex: 1 1 140px; }

/* Second campaign ("Apoiando os seguidores") */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; width: min(720px, 100%); margin-top: 6px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 18px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(2,2,14,.62); color: var(--text); text-decoration: none; backdrop-filter: blur(6px); }
.choice[hidden] { display: none; }
.choice:hover, .choice:focus-visible { border-color: rgba(255,197,107,.55); outline: none; }
.choice-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.choice-title { font-size: 20px; font-weight: 600; }
.choice-text { font-size: 14px; color: var(--soft); max-width: 32ch; }
.choice .btn { width: 100%; margin-top: 6px; padding: 13px 18px; }
.choice .counter { font-size: 13px; color: var(--soft); }
.campaign2 { border-top: 1px solid var(--line); padding-top: 48px; }
.campaign2 .eyebrow { margin-bottom: 10px; }
.campaign2 .lede { max-width: 62ch; }
.c2-rules { margin: 20px 0; }
.c2-rules h3 { margin-top: 0; }
.c2-rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.c2-auth { display: grid; gap: 8px; justify-items: start; margin: 8px 0 20px; }
.campaign2 > .lede, .campaign2 > .deadline, .campaign2 > h2 { text-shadow: 0 2px 18px rgba(2,2,14,.95), 0 0 2px rgba(2,2,14,.9); }
.campaign2 > .lede { background: rgba(2,2,14,.55); border-radius: 16px; padding: 14px 16px; }
@media (max-width: 480px) {
  .choices { gap: 10px; }
  .choice { padding: 12px 14px; gap: 4px; }
  .choice .choice-text, .choice .counter { display: none; }
  .choice-title { font-size: 18px; }
  .choice .btn { margin-top: 4px; padding: 12px 16px; }
}
/* Field brought into view by a CTA on a phone: a soft golden pulse instead of opening the keyboard. */
@keyframes attention { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,197,107,0); } 30% { box-shadow: 0 0 0 4px rgba(255,197,107,.55); } }
.attention { animation: attention 1.2s ease-in-out 2; border-color: var(--gold) !important; }
@media (prefers-reduced-motion: reduce) { .attention { animation: none; box-shadow: 0 0 0 3px rgba(255,197,107,.55); } }
/* Account in the top bar: avatar with a small menu */
.me { position: relative; }
.me[hidden] { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,197,107,.55); cursor: pointer; color: #1a1033; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--violet), var(--gold)); display: grid; place-items: center; }
.avatar:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.me-menu { position: absolute; right: 0; top: 48px; min-width: 220px; padding: 10px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(8,8,28,.97); box-shadow: 0 18px 40px rgba(0,0,0,.5); display: grid; gap: 2px; z-index: 30; }
.me-menu[hidden] { display: none; }
.me-name { margin: 4px 8px 0; font-weight: 600; }
.me-id { margin: 0 8px 8px; font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }
.me-item { text-align: left; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; }
.me-item:hover, .me-item:focus-visible { background: rgba(140,123,255,.16); outline: none; }
.me-item[hidden] { display: none; }
button.top-cta { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
/* Voting (spec 05) */
.vote-block { display: grid; gap: 12px; margin: 0 0 28px; padding: 18px; border-radius: 22px; border: 1px solid rgba(255,197,107,.45); background: rgba(2,2,14,.62); }
.vote-block[hidden] { display: none; }
.vote-block h3 { margin: 0; }
.finalist { display: grid; gap: 6px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10,10,34,.5); }
.finalist h4 { margin: 0; font-size: 18px; }
.finalist p { margin: 0; }
.finalist.mine { border-color: rgba(140,123,255,.7); }
.finalist.winner { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,197,107,.4); }
.finalist .result { font-weight: 600; color: var(--gold); }
.vbar { height: 8px; border-radius: 99px; background: rgba(140,123,255,.18); overflow: hidden; }
.vbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); }

.c1-intro { margin: -6px 0 18px; font-size: 17px; max-width: 60ch; }
.auth { margin-top: 16px; }

/* Book library (/livros): shelf of covers with a filter by tradition, and the book page. Mobile first. */
.books-page .backdrop { opacity: .28; }
/* Solid top bar on the book pages: the shelf scrolls under it, so the text must not show through. */
.books-page .top { padding-bottom: 10px; background: rgba(2,2,14,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(140,123,255,.14); }
.library { max-width: 1180px; padding-top: 92px; }
@media (max-width: 640px) { .library .eyebrow { font-size: 12px; padding: 5px 12px 5px calc(12px + .22em); margin-bottom: 12px; } .library-lede { font-size: 16px; } }
.library .eyebrow { display: inline-block; margin-bottom: 16px; }
.library h1 { font-size: clamp(38px, 9vw, 64px); margin-bottom: 14px; }
.library-lede { max-width: 640px; color: var(--soft); font-size: clamp(16px, 3.8vw, 19px); text-wrap: pretty; }
.shelf-filter { display: flex; gap: 8px; margin: 22px -20px 26px; padding: 2px 20px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf-filter::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,10,34,.55); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: rgba(255,197,107,.55); }
.chip[aria-pressed="true"] { color: #0B0D24; border-color: transparent; background: linear-gradient(90deg, #A99BFF, var(--gold)); }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(140,123,255,.22); }
.shelf-card .cover { transition: transform .2s, box-shadow .2s; }
.shelf-card:hover .cover, .shelf-card:focus-visible .cover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(255,197,107,.6), 0 0 36px rgba(255,197,107,.18); }
.shelf-card:focus-visible { outline: none; }
.shelf-master { margin-top: 12px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.shelf-title { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-author { margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.shelf-empty { margin-top: 18px; color: var(--soft); }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shelf-filter { flex-wrap: wrap; overflow: visible; margin: 26px 0 32px; padding: 0; } }
@media (min-width: 1120px) { .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; } }

.master { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.meta { margin: 0 0 4px; font-size: 16px; color: var(--soft); }
.sign { font-size: 14px; color: var(--soft); margin: 18px 0 0; }
.back { display: inline-block; margin-top: 22px; font-size: 15px; }
.book { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr);
  padding: 96px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px)); }
.book-cover { width: min(62vw, 280px); margin: 0 auto; }
.book-head h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.08; margin: 0 0 8px; }
.book-tag { letter-spacing: .14em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 20px 0 0; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.facts div { min-width: 0; }
.facts div:first-child { grid-column: 1 / -1; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.facts dd { margin: 2px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.book-body .card h2 { font-size: 20px; margin: 0 0 12px; text-shadow: none; }
.action { margin-top: 22px; padding: 22px 20px; border-radius: 18px; text-align: center; border: 1px solid rgba(255,197,107,.35); background: rgba(255,197,107,.06); }
.action p { font-size: 15px; color: var(--soft); margin: 0 0 6px; }
.action p:last-child { margin: 12px 0 0; }
.btn-wide { width: 100%; max-width: 520px; line-height: 1.3; text-align: center; }
@media (min-width: 860px) {
  .book { grid-template-columns: 320px minmax(0, 1fr); column-gap: 52px; padding-top: 120px; align-items: start; }
  .book-cover { grid-row: 1 / span 2; width: 100%; margin: 0; position: sticky; top: 100px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .shelf-card .cover, .chip { transition: none; } }
@media (max-width: 420px) { .top-nav { gap: 6px; } .top-cta, button.top-cta { padding: 7px 11px; font-size: 13px; } }
/* Home top bar with three buttons (Livros, Indicar, Entrar): on a phone the logo stands alone so they fit. */
@media (max-width: 480px) { .top:has(.top-nav) .brand span { display: none; } }
.action .donation-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; }
.action .donation-note a { color: var(--soft); text-decoration-color: rgba(185,180,220,.45); text-underline-offset: 3px; }
.action .donation-note a:hover { color: var(--gold); }
