/* Capoeira Vene — design system.
   Night sky, red earth and gold from the emblem; Cinzel for the ring
   lettering, Permanent Marker for the brush strokes, Nunito Sans to read.
   No inline styles anywhere: the CSP forbids them. */

@font-face {
  font-family: "Cinzel";
  src: url("/static/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("/static/fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/static/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/static/fonts/nunito-sans-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0f0905;
  --earth-900: #170e07;
  --earth-800: #20140b;
  --earth-700: #2b1b0f;
  --earth-600: #3b2615;
  --earth-500: #55371d;
  --line: rgba(241, 200, 106, 0.16);
  --line-strong: rgba(241, 200, 106, 0.32);
  --gold: #d4a03c;
  --gold-bright: #f1c86a;
  --gold-deep: #9c6c1c;
  --cream: #f6eedf;
  --cream-2: #ecdfc6;
  --ink: #23170e;
  --ink-2: #5a4632;
  --text: #f4ead9;
  --text-2: #cfc0a7;
  --text-3: #a08f76;
  --green: #1e8a4c;
  --green-deep: #0f5b3a;
  --blue: #1f4fa8;
  --clay: #b5532c;
  --purple: #6b3fa0;
  --teal: #2a7f8f;
  --danger: #e0674f;
  --success: #57c48b;
  --accent: var(--gold);
  --accent-2: #e07b24;
  --font-display: "Permanent Marker", "Segoe Print", "Comic Sans MS", cursive;
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212, 160, 60, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(181, 83, 44, 0.10), transparent 60%),
    var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: #ffe1a1; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.02em; }
h3 { font-weight: 800; font-size: 1.15rem; }
p { margin: 0 0 1em; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--gold-bright); color: var(--ink); border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.fine-print { color: var(--text-3); font-size: 0.875rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.kicker {
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.28em; font-size: 0.78rem; color: var(--gold); margin-bottom: 0.8rem;
}
.kicker-light { color: var(--gold-bright); }
.link-arrow { font-weight: 800; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ───────── Buttons ───────── */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 800 0.98rem/1 var(--font-body); letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  background: var(--btn-bg); color: var(--text); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, #f7d784, var(--gold) 55%, var(--gold-deep));
  color: #2a1906; box-shadow: 0 10px 30px rgba(212, 160, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { color: #1c1004; box-shadow: 0 14px 38px rgba(241, 200, 106, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-glass { background: rgba(255, 244, 222, 0.1); border-color: rgba(255, 236, 200, 0.35); color: #fff6e6; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 244, 222, 0.18); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--gold-bright); }
.btn-outline:hover { background: rgba(212, 160, 60, 0.12); color: #ffe1a1; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ───────── Notices ───────── */
.notice { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; margin: 0 0 1.2rem; border: 1px solid; }
.notice-success { background: rgba(87, 196, 139, 0.12); border-color: rgba(87, 196, 139, 0.4); color: #bff0d3; }
.notice-error { background: rgba(224, 103, 79, 0.12); border-color: rgba(224, 103, 79, 0.45); color: #ffd0c5; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(15, 9, 5, 0.92), rgba(15, 9, 5, 0.72));
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.page-home .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(15, 9, 5, 0.55), transparent); border-bottom-color: transparent; backdrop-filter: none; }
.header-inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(212, 160, 60, 0.55), 0 0 22px rgba(241, 200, 106, 0.25); transition: transform 0.6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 0.95; }
.brand-capoeira { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em; }
.brand-vene { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); letter-spacing: 0.12em; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.nav-link {
  position: relative; padding: 0.5rem 0.7rem; border-radius: 999px; text-decoration: none;
  color: var(--text-2); font-weight: 700; font-size: 0.95rem; transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link[aria-current="page"] { color: var(--gold-bright); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold-bright), var(--blue));
}
.nav-sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 0.45rem; }
.nav-tools { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-3); font: 800 0.78rem/1 var(--font-body);
  letter-spacing: 0.08em; padding: 0.45rem 0.7rem; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: #2a1906; }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }
.account-menu { position: relative; }
.account-menu summary {
  list-style: none; display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.25rem 0.8rem 0.25rem 0.25rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "▾"; color: var(--text-3); font-size: 0.8rem; }
.account-name { font-weight: 800; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-mini { width: 36px; height: 36px; }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 0.5rem;
  background: var(--earth-800); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; animation: drop 0.25s var(--ease);
}
.account-panel a, .account-panel button {
  display: block; width: 100%; text-align: left; padding: 0.6rem 0.8rem; border-radius: 9px;
  color: var(--text); text-decoration: none; font: 700 0.95rem/1.3 var(--font-body); background: none; border: 0; cursor: pointer;
}
.account-panel a:hover, .account-panel button:hover { background: rgba(212, 160, 60, 0.14); color: var(--gold-bright); }
.account-panel form { margin: 0; border-top: 1px solid var(--line); padding-top: 0.3rem; margin-top: 0.3rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05); cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--gold-bright); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { content: ""; left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch;
    padding: 1rem var(--gutter) 1.4rem; background: rgba(18, 11, 6, 0.98); border-bottom: 1px solid var(--line-strong);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; animation: drop 0.25s var(--ease); }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 0.75rem 0.9rem; font-size: 1.05rem; }
  .nav-link[aria-current="page"]::after { left: 0.9rem; right: auto; width: 40px; }
  .nav-sep { width: auto; height: 1px; margin: 0.5rem 0; }
  .nav-tools { flex-wrap: wrap; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid var(--line); }
  .account-panel { position: static; margin-top: 0.5rem; box-shadow: none; }
  .page-home .site-header:not(.is-scrolled) { background: rgba(15, 9, 5, 0.7); backdrop-filter: blur(10px); }
}

/* ───────── Footer ───────── */
.site-footer { position: relative; margin-top: 5rem; background: linear-gradient(180deg, var(--earth-900), #0a0603); border-top: 1px solid var(--line); }
.footer-berimbau { position: absolute; left: 0; right: 0; top: -30px; height: 60px; color: var(--gold-deep); opacity: 0.8; pointer-events: none; }
.footer-berimbau svg { width: 100%; height: 100%; }
.berimbau-string { transform-origin: center; animation: string-hum 3.2s ease-in-out infinite; }
@keyframes string-hum { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }
.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding: 4rem 0 2rem;
  display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; gap: 2.5rem; align-items: start;
}
.footer-brand img { width: 96px; border-radius: 50%; box-shadow: 0 0 30px rgba(241, 200, 106, 0.2); margin-bottom: 1rem; }
.footer-motto { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.16em; color: var(--gold); font-size: 0.85rem; text-transform: uppercase; }
.footer-tagline { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
.footer-verses { display: grid; gap: 1.2rem; }
.footer-verses blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--gold-deep); }
.footer-verses p { font-style: italic; color: var(--text-2); margin-bottom: 0.2rem; }
.footer-verses cite { font-style: normal; font-size: 0.85rem; color: var(--gold); font-weight: 700; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-legal { text-align: center; color: var(--text-3); font-size: 0.85rem; padding: 1.2rem var(--gutter) 2rem; border-top: 1px solid var(--line); margin: 0; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ───────── Home: hero ───────── */
.hero {
  position: relative; min-height: max(680px, 100svh); margin-top: -72px; padding-top: 72px; overflow: hidden;
  display: grid; align-items: center; isolation: isolate;
  background: linear-gradient(180deg, #2b1a3a 0%, #6d3a3f 26%, #c8643a 48%, #f2a43f 62%, #f8c86c 70%, #6b3a1c 71%, #1a0e06 100%);
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.sun-rays { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.sun-rays g { transform-origin: 0 0; }
.sun-glow { animation: glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.shimmer line { animation: shimmer 4s ease-in-out infinite; }
.shimmer line:nth-child(2n) { animation-delay: -1.3s; }
.shimmer line:nth-child(3n) { animation-delay: -2.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shimmer { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 9, 5, 0.78) 0%, rgba(15, 9, 5, 0.35) 45%, transparent 70%), linear-gradient(0deg, rgba(15, 9, 5, 0.9), transparent 35%);
}
.hero-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c4, rgba(241, 200, 106, 0.6) 45%, transparent 70%);
  animation: rise linear infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, 30px), -95vh, 0) scale(1.2); opacity: 0; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; padding-block: 4rem 9rem; }
.hero-copy { max-width: 640px; }
.hero-title { margin: 0 0 0.6rem; display: flex; flex-direction: column; line-height: 0.88; font-weight: 400; }
.brush { font-family: var(--font-display); display: inline-block; }
.brush-ink {
  font-size: clamp(3.4rem, 10vw, 7.6rem); color: #fff8ec;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: brush-in 1.1s var(--ease) both;
}
.brush-gold {
  font-size: clamp(3rem, 8.4vw, 6.4rem); margin-left: 0.8em; letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffe7a6, var(--gold) 55%, #8b5a12); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  animation: brush-in 1.1s 0.25s var(--ease) both;
}
@keyframes brush-in { from { opacity: 0; transform: translateX(-30px) skewX(-8deg); clip-path: inset(-40% 100% -60% -10%); } to { opacity: 1; transform: none; clip-path: inset(-40% -20% -60% -10%); } }
.hero-tagline { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); font-size: clamp(0.85rem, 1.4vw, 1rem); margin-bottom: 1.2rem; animation: fade-up 1s 0.5s var(--ease) both; }
.hero-lead { color: #f3e6d0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 52ch; animation: fade-up 1s 0.65s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; animation: fade-up 1s 0.8s var(--ease) both; }
.hero-actions.center { justify-content: center; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.hero-medallion { position: relative; justify-self: center; width: min(420px, 80vw); aspect-ratio: 1; transition: transform 0.4s var(--ease); animation: float 7s ease-in-out infinite; }
.hero-medallion img { position: relative; width: 100%; border-radius: 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(241, 200, 106, 0.55); }
.medallion-halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, 0.55), rgba(241, 160, 60, 0.18) 45%, transparent 68%); animation: glow 5s ease-in-out infinite; }
.medallion-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 226, 160, 0.55); }
.medallion-ring-outer { inset: -9%; animation: spin 60s linear infinite; }
.medallion-ring-inner { inset: -4.5%; border-style: dotted; border-width: 3px; border-color: rgba(241, 200, 106, 0.6); animation: spin 40s linear infinite reverse; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.jogo { overflow: visible; }
.jogo [data-fighter] line, .jogo [data-fighter] polyline { stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hero-jogo { position: absolute; left: 50%; bottom: 3%; width: min(560px, 92vw); transform: translateX(-50%); filter: drop-shadow(0 0 10px rgba(255, 200, 110, 0.45)); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 236, 200, 0.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-bright); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-block: 2rem 11rem; gap: 2rem; }
  .hero-medallion { order: -1; width: min(280px, 70vw); }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .brush-gold { margin-left: 0; }
  .hero::after { background: linear-gradient(0deg, rgba(15, 9, 5, 0.92), rgba(15, 9, 5, 0.45) 55%, rgba(15, 9, 5, 0.25)); }
}

/* ───────── Sections ───────── */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar-card {
  position: relative; padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(59, 38, 21, 0.85), rgba(23, 14, 7, 0.9)); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.pillar-card::before { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(circle, rgba(241, 200, 106, 0.18), transparent 70%); transition: transform 0.6s var(--ease); }
.pillar-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.pillar-card:hover::before { transform: translateY(-25%); }
.pillar-icon-wrap { width: 92px; height: 92px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(241, 200, 106, 0.2), rgba(241, 200, 106, 0.04)); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pillar-icon { width: 58px; height: 58px; }
.pillar-card h3 { font-family: var(--font-title); font-size: 1.35rem; letter-spacing: 0.06em; color: var(--gold-bright); }
.pillar-card p { color: var(--text-2); margin: 0; }
.pillar-card[data-delay="1"] { transition-delay: 0.08s; }
.pillar-card[data-delay="2"] { transition-delay: 0.16s; }
.pillar-card[data-delay="3"] { transition-delay: 0.24s; }
@media (max-width: 960px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

.about-capoeira { background: linear-gradient(180deg, transparent, rgba(43, 27, 15, 0.6), transparent); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-copy p { color: var(--text-2); font-size: 1.1rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.fact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.fact-list strong { font-family: var(--font-display); font-size: 2rem; color: var(--gold-bright); font-weight: 400; }
.fact-list span { color: var(--text-2); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.berimbau-section { overflow: hidden; }
.berimbau-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 3rem; align-items: center; }
.berimbau-art { display: grid; place-items: center; position: relative; }
.berimbau-art::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 200, 106, 0.22), transparent 70%); }
.berimbau-svg { position: relative; width: min(220px, 50vw); height: auto; transform: rotate(-8deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
.berimbau-svg .string { transform-box: fill-box; transform-origin: center; }
.berimbau-svg.is-playing .string { animation: pluck 0.35s ease-out; }
.berimbau-svg.is-playing .cabaca { animation: thump 0.35s ease-out; transform-box: fill-box; transform-origin: center; }
.berimbau-svg.is-chi .caxixi { animation: shake 0.3s ease-out; transform-box: fill-box; transform-origin: center; }
.berimbau-svg.is-dim .dobrao { animation: press 0.3s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes pluck { 0% { transform: translateX(0); } 20% { transform: translateX(3px); } 40% { transform: translateX(-3px); } 60% { transform: translateX(2px); } 80% { transform: translateX(-1px); } }
@keyframes thump { 30% { transform: scale(1.05); } }
@keyframes shake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes press { 40% { transform: translateX(6px); } }
.berimbau-copy p { color: var(--text-2); }
.berimbau-pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.6rem 0 1rem; }
.pad {
  display: grid; gap: 0.2rem; padding: 1.2rem 0.6rem; border-radius: var(--radius); cursor: pointer; text-align: center;
  background: linear-gradient(160deg, var(--earth-600), var(--earth-800)); color: var(--text); border: 1px solid var(--line-strong);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; font-family: var(--font-body);
}
.pad strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; color: var(--gold-bright); }
.pad span { color: var(--text-3); font-size: 0.85rem; }
.pad:hover { border-color: var(--gold); }
.pad.is-hit { transform: scale(0.95); box-shadow: 0 0 0 4px rgba(241, 200, 106, 0.25), 0 0 40px rgba(241, 200, 106, 0.35); }
.toque-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.toque-buttons .is-active { background: var(--gold); color: #2a1906; }
@media (max-width: 760px) { .berimbau-grid { grid-template-columns: 1fr; } .berimbau-svg { width: 150px; } }

.mini-timeline { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.mini-timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 1.4rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--gold-bright), var(--blue)); opacity: 0.6; }
.mini-timeline li { position: relative; padding: 3.2rem 1.2rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.mini-timeline li::before { content: ""; position: absolute; left: 1.2rem; top: 0.95rem; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 5px rgba(241, 200, 106, 0.2); }
.mini-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-bright); display: block; margin-bottom: 0.4rem; }
.mini-timeline p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .mini-timeline { grid-template-columns: 1fr 1fr; } .mini-timeline::before { display: none; } }
@media (max-width: 520px) { .mini-timeline { grid-template-columns: 1fr; } }

.verses-band { background: radial-gradient(800px 300px at 50% 50%, rgba(212, 160, 60, 0.14), transparent 70%), linear-gradient(180deg, var(--earth-900), var(--night)); border-block: 1px solid var(--line); }
.verses-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.verse { margin: 0; text-align: center; }
.verse blockquote { margin: 0 0 0.8rem; font-family: var(--font-title); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--cream); }
.verse figcaption { color: var(--gold); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.verses-cross { width: 90px; color: var(--gold-bright); filter: drop-shadow(0 0 20px rgba(241, 200, 106, 0.5)); animation: glow 5s ease-in-out infinite; }
@media (max-width: 760px) { .verses-grid { grid-template-columns: 1fr; } .verses-cross { margin: 0 auto; width: 64px; } }

.join-band { text-align: center; }
.join-inner { max-width: 760px; padding: 3rem 2rem; border-radius: 28px; background: linear-gradient(160deg, rgba(212, 160, 60, 0.16), rgba(59, 38, 21, 0.5)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.join-inner p { color: var(--text-2); }
.join-jogo { width: min(360px, 80%); margin: -1rem auto 0.5rem; display: block; }

/* ───────── Inner page hero ───────── */
.page-hero { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #2a1a2e 0%, #5a2f2a 45%, #8c4a26 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 9, 5, 0.85), rgba(15, 9, 5, 0.2)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-sun { position: absolute; right: 8%; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, #fff1c4, #f6b44b 40%, rgba(224, 123, 36, 0.4) 62%, transparent 70%); animation: glow 6s ease-in-out infinite; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); color: var(--cream); text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.page-hero .lead { color: #f0dfc4; }

/* ───────── Reading pages (history, philosophy) ───────── */
.reading-layout { display: grid; grid-template-columns: 270px 1fr; gap: 3rem; padding-top: 3rem; align-items: start; }
.reading-aside { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
.toc { padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.toc-title { font-family: var(--font-title); font-weight: 700; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.toc a { color: var(--text-2); text-decoration: none; font-weight: 700; }
.toc a:hover, .toc a.is-active { color: var(--gold-bright); }
.source-note { padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.source-note h2 { font-size: 1rem; color: var(--gold-bright); }
.source-note p { color: var(--text-3); font-size: 0.92rem; }
.reading { min-width: 0; }
.reading-section {
  position: relative; margin-bottom: 2.2rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 22px;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(212, 160, 60, 0.16), transparent 70%),
    linear-gradient(180deg, #f8f1e3, #efe2c8);
  color: var(--ink); box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}
.reading-section h2 { color: #2c1b0d; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.reading-section h3 { color: #3a2410; }
.reading-section p { font-size: 1.08rem; line-height: 1.75; }
.reading-section a { color: #8a4f0c; }
.reading-section a:hover { color: #5a3005; }
.reading-section em { color: #4b2f17; }
.reading-section strong { color: #2c1b0d; }
.section-number { position: absolute; top: 1.2rem; right: 1.6rem; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: rgba(156, 108, 28, 0.25); margin: 0; }
sup.cite { font-size: 0.7em; font-weight: 800; margin-left: 0.15em; line-height: 0; white-space: nowrap; }
sup.cite a { text-decoration: none; padding: 0 0.15em; border-radius: 4px; background: rgba(156, 108, 28, 0.14); }
sup.cite a:hover { background: rgba(156, 108, 28, 0.3); }
.plate { margin: 0 0 1.6rem; }
.plate img { width: 100%; border-radius: 14px; box-shadow: 0 14px 30px rgba(60, 35, 10, 0.35); }
.plate figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.6rem; }
.word-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; border-radius: 14px; background: #2c1b0d; color: var(--cream); }
.word-main { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-bright); }
.word-root { display: grid; font-family: var(--font-title); font-weight: 700; letter-spacing: 0.04em; }
.word-root small { font-family: var(--font-body); font-weight: 700; color: var(--text-3); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.section-intro { font-weight: 700; color: var(--ink-2); }
.influence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.influence { padding: 1.4rem; border-radius: 16px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(156, 108, 28, 0.2); }
.influence p { font-size: 1rem; }
.influence-african { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(212, 160, 60, 0.25), rgba(255, 255, 255, 0.6)); border-color: rgba(156, 108, 28, 0.45); }
.influence-icon { width: 56px; height: 56px; color: #8a4f0c; margin-bottom: 0.6rem; }
.influence-icon svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .influence-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--green), var(--gold), var(--blue)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.8rem 0 0.8rem 1rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.38rem; top: 1.3rem; width: 14px; height: 14px; border-radius: 50%; background: #f8f1e3; border: 3px solid var(--gold-deep); }
.timeline-year { font-family: var(--font-display); font-size: 1.3rem; color: #8a4f0c; }
.timeline-text { font-size: 1.02rem; }
@media (max-width: 600px) { .timeline-item { grid-template-columns: 1fr; gap: 0.1rem; } }
.reference-list { padding-left: 2.2rem; display: grid; gap: 0.7rem; font-size: 0.95rem; }
.reference-list li { scroll-margin-top: 100px; overflow-wrap: anywhere; }
.reference-list li:target { background: rgba(212, 160, 60, 0.25); border-radius: 8px; outline: 2px solid rgba(156, 108, 28, 0.4); outline-offset: 4px; }
.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.6rem; }
.concept { display: grid; gap: 0.2rem; padding: 1rem; border-radius: 14px; background: #2c1b0d; color: var(--cream); text-align: center; }
.concept strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--gold-bright); }
.concept span { font-size: 0.85rem; color: var(--text-2); }
@media (max-width: 760px) { .concept-grid { grid-template-columns: repeat(2, 1fr); } }
.lens-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; align-items: start; }
.lens-card img { border-radius: 50%; box-shadow: 0 10px 30px rgba(60, 35, 10, 0.35); }
@media (max-width: 600px) { .lens-card { grid-template-columns: 1fr; } .lens-card img { width: 96px; } }
.instrument-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.instrument-card { padding: 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(156, 108, 28, 0.2); }
.instrument-card .instrument-icon { width: 64px; height: 64px; color: #8a4f0c; margin-bottom: 0.4rem; }
.instrument-card p { font-size: 0.96rem; margin: 0; }
.subhead { font-family: var(--font-title); margin-top: 1.6rem; }
.cord-ladder { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; counter-reset: cord; }
.cord-ladder li { counter-increment: cord; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: rgba(255, 255, 255, 0.55); font-weight: 800; }
.cord-ladder li::before { content: counter(cord); font-family: var(--font-display); color: #8a4f0c; width: 1.4rem; text-align: right; }
.glossary-filter { display: grid; gap: 0.4rem; max-width: 420px; margin: 0 0 1.4rem; font-weight: 800; }
.glossary-filter input { padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.07); color: inherit; font: inherit; }
.reading-section .glossary-filter input { background: #fff; border-color: rgba(156, 108, 28, 0.4); color: var(--ink); }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 0; }
.glossary-entry { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(156, 108, 28, 0.18); }
.glossary-entry[hidden] { display: none; }
.glossary dt { font-family: var(--font-display); font-size: 1.3rem; color: #8a4f0c; }
.glossary dd { margin: 0.2rem 0 0; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .reading-layout { grid-template-columns: 1fr; }
  .reading-aside { position: static; }
}
.reading-narrow { max-width: 860px; padding-top: 2.5rem; }
.paper { padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: 22px; background: linear-gradient(180deg, #f8f1e3, #efe2c8); color: var(--ink); box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.paper .fine-print { color: var(--ink-2); }
.material-body p { font-size: 1.08rem; line-height: 1.8; }

/* ───────── Account pages ───────── */
.account-section { position: relative; display: grid; place-items: center; min-height: calc(100vh - 72px); padding: 3rem var(--gutter); overflow: hidden; }
.account-backdrop { position: absolute; inset: 0; background: radial-gradient(700px 400px at 50% 110%, rgba(241, 160, 60, 0.35), transparent 70%), linear-gradient(180deg, #24152c, #5a2f2a 60%, #1a0e06); z-index: -1; }
.account-jogo { position: absolute; left: 50%; bottom: 0; width: min(900px, 140vw); transform: translateX(-50%); opacity: 0.35; }
.account-card { position: relative; width: min(100%, 460px); padding: 2.4rem 2rem 2rem; border-radius: 26px; background: rgba(23, 14, 7, 0.88); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(12px); text-align: center; }
.account-logo { width: 96px; margin: -5rem auto 1rem; border-radius: 50%; box-shadow: 0 0 0 3px rgba(212, 160, 60, 0.6), 0 10px 30px rgba(0, 0, 0, 0.6); }
.account-card h1 { font-size: 1.8rem; color: var(--cream); }
.account-lead { color: var(--text-2); }
.account-links { color: var(--text-3); margin: 0.6rem 0 0; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.4rem; }
.account-actions form { margin: 0; }
.steps { text-align: left; color: var(--text-2); padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.form { display: grid; gap: 1rem; text-align: left; margin-top: 1rem; }
.form-inline-danger { margin-top: 0.8rem; }
.field { display: grid; gap: 0.4rem; font-weight: 800; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06); color: var(--text); font: 600 1rem/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 160, 60, 0.18); }
.field select option { background: var(--earth-800); }
.field-hint { font-weight: 600; color: var(--text-3); font-size: 0.85rem; }

/* ───────── Member area ───────── */
.member-hero { --accent: var(--gold); --accent-2: #e07b24; position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 15% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(135deg, #2a1a2e, color-mix(in srgb, var(--accent-2) 55%, #3b2615) 120%); }
.member-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); animation: spin 70s linear infinite; }
.member-hero-compact { padding: clamp(2rem, 5vw, 3.2rem) 0; }
.accent-gold { --accent: #f1c86a; --accent-2: #e07b24; }
.accent-green { --accent: #3fc77d; --accent-2: #0f5b3a; }
.accent-blue { --accent: #6d9cff; --accent-2: #1f4fa8; }
.accent-clay { --accent: #ff9a6b; --accent-2: #b5532c; }
.accent-purple { --accent: #c49bff; --accent-2: #6b3fa0; }
.accent-teal { --accent: #6fe0e6; --accent-2: #2a7f8f; }
.member-hero-inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.member-avatar-frame { position: relative; border-radius: 50%; padding: 6px; background: conic-gradient(from 0deg, var(--accent), transparent 30%, var(--accent) 60%, transparent 80%, var(--accent)); animation: spin 18s linear infinite; }
.member-avatar-frame > .avatar { animation: spin 18s linear infinite reverse; }
.avatar { display: block; border-radius: 50%; }
.avatar-xl { width: clamp(140px, 22vw, 200px); height: clamp(140px, 22vw, 200px); }
.avatar-lg { width: 130px; height: 130px; }
.avatar-md { width: 96px; height: 96px; }
.member-greeting { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--cream); margin-bottom: 0.4rem; }
.member-nickname { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin: 0 0 0.8rem; }
.member-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.4rem; }
.meta-chip { padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 700; font-size: 0.9rem; }
.meta-chip-gold { background: rgba(241, 200, 106, 0.2); border-color: rgba(241, 200, 106, 0.5); color: var(--gold-bright); }
.lead-light { color: #f0dfc4; font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 640px) { .member-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } .member-meta, .member-hero .hero-actions { justify-content: center; } }
.member-body { padding-top: 2.4rem; display: grid; gap: 1.6rem; }
.pending-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1rem; padding: 1rem 1.4rem; border-radius: var(--radius); background: linear-gradient(90deg, rgba(212, 160, 60, 0.25), rgba(212, 160, 60, 0.08)); border: 1px solid var(--line-strong); color: var(--gold-bright); text-decoration: none; }
.pending-banner span { color: var(--text); font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 1.3rem 1.2rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--earth-700), var(--earth-900)); border: 1px solid var(--line); display: grid; gap: 0.2rem; }
.stat-value { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--gold-bright); line-height: 1.1; }
.stat-label { color: var(--text-3); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 900px) { .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 860px) { .two-columns { grid-template-columns: 1fr; } }
.panel { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 20px; background: linear-gradient(170deg, rgba(43, 27, 15, 0.92), rgba(23, 14, 7, 0.92)); border: 1px solid var(--line); min-width: 0; }
.panel-title { font-family: var(--font-title); font-size: 1.25rem; color: var(--cream); display: flex; align-items: center; gap: 0.6rem; }
.with-icon svg { width: 34px; height: 34px; color: var(--gold); }
.agenda { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: 0.7rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.agenda-date { display: grid; place-items: center; padding: 0.4rem; border-radius: 12px; background: rgba(212, 160, 60, 0.15); line-height: 1.1; }
.agenda-date strong { font-family: var(--font-title); color: var(--gold-bright); }
.agenda-date span { font-size: 0.8rem; color: var(--text-2); }
.agenda-body { display: grid; }
.agenda-body span { color: var(--text-3); font-size: 0.92rem; }
.agenda .event-no_class .agenda-date { background: rgba(224, 103, 79, 0.18); }
.agenda .event-batizado .agenda-date { background: rgba(241, 200, 106, 0.3); }
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.journey-step { display: grid; gap: 0.4rem; }
.journey-label { color: var(--text-3); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.journey-arrow { font-size: 1.6rem; color: var(--gold); }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { display: grid; gap: 0.3rem; padding: 1.3rem; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(160deg, var(--earth-600), var(--earth-800)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-5px); border-color: var(--gold); color: var(--text); }
.tile .instrument-icon { width: 44px; height: 44px; color: var(--gold-bright); }
.tile strong { font-size: 1.1rem; }
.tile span { color: var(--text-3); font-size: 0.92rem; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.cord-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem 0.3rem 0.4rem; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 800; font-size: 0.9rem; }
.cord-swatch { width: 48px; height: 18px; flex-shrink: 0; }
.cord-none { color: var(--text-3); }
.chart-figure { margin: 0; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(241, 200, 106, 0.1); stroke-width: 1; }
.chart .baseline { stroke: rgba(241, 200, 106, 0.4); stroke-width: 1.5; }
.chart .axis { fill: var(--text-3); font: 600 11px var(--font-body); }
.chart .value { fill: var(--text); font: 800 12px var(--font-body); }
.chart .bar { fill: var(--gold); transition: fill 0.2s; cursor: default; }
.chart .bar:hover, .chart .bar:focus { fill: var(--gold-bright); outline: none; }
.chart .bar-empty { fill: rgba(241, 200, 106, 0.25); }
.chart-table { margin-top: 0.8rem; color: var(--text-2); }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--text-3); }
.chart-table table { margin-top: 0.6rem; border-collapse: collapse; width: 100%; max-width: 360px; }
.chart-table th, .chart-table td { text-align: left; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--line); }
.hbars { display: grid; gap: 0.55rem; }
.hbar { display: grid; grid-template-columns: 3rem 1fr 2.5rem; gap: 0.8rem; align-items: center; }
.hbar-label { color: var(--text-2); font-weight: 800; }
.hbar-track { width: 100%; height: 14px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.hbar-track rect { fill: var(--gold); }
.hbar:hover .hbar-track rect { fill: var(--gold-bright); }
.hbar-value { text-align: right; font-weight: 800; }
.cord-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.cord-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cord-history-date { font-family: var(--font-title); font-weight: 700; color: var(--gold); min-width: 6.5rem; }
.chart-tooltip { position: fixed; z-index: 90; pointer-events: none; padding: 0.4rem 0.7rem; border-radius: 8px; background: #fff3dc; color: var(--ink); font: 800 0.85rem/1.3 var(--font-body); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); transform: translate(-50%, calc(-100% - 10px)); }

/* Settings */
.settings-form { display: grid; gap: 1.6rem; }
.avatar-builder-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.avatar-preview { position: sticky; top: 96px; display: grid; justify-items: center; gap: 0.8rem; text-align: center; }
.avatar-preview .avatar, .avatar-preview img { width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(241, 200, 106, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5); }
.avatar-preview.is-bumping [data-avatar-preview] { animation: bump 0.35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06) rotate(-3deg); } }
.avatar-controls { display: grid; gap: 1.1rem; }
.swatches, .chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatches legend, .chips legend { width: 100%; font-weight: 800; color: var(--text-2); margin-bottom: 0.4rem; padding: 0; }
.swatch { position: relative; cursor: pointer; }
.swatch input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch svg { width: 38px; height: 38px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); transition: transform 0.2s, box-shadow 0.2s; }
.swatch input:checked + svg { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold-bright); transform: scale(1.08); }
.swatch input:focus-visible + svg { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.chip { position: relative; cursor: pointer; }
.chip span, a.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text-2); font-weight: 800; font-size: 0.92rem; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip input:checked + span { background: var(--gold); color: #2a1906; border-color: var(--gold); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
a.chip:hover { color: var(--gold-bright); border-color: var(--gold); }
a.chip small { opacity: 0.7; }
.chip-accent span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.field-wide { grid-column: 1 / -1; }
.check { display: flex; gap: 0.7rem; align-items: center; margin-top: 1.2rem; font-weight: 800; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (max-width: 760px) {
  .avatar-builder-grid { grid-template-columns: 1fr; }
  .avatar-preview { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Directory */
.directory-section { display: grid; gap: 0.6rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.member-card { display: grid; justify-items: center; gap: 0.35rem; padding: 1.4rem 1rem; border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--text); background: linear-gradient(170deg, var(--earth-700), var(--earth-900)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
a.member-card:hover { transform: translateY(-6px) rotate(-0.5deg); border-color: var(--gold); color: var(--text); }
.member-card[hidden] { display: none; }
.member-card-name { font-weight: 900; font-size: 1.1rem; margin-top: 0.4rem; }
.member-card-nick { font-family: var(--font-display); color: var(--gold-bright); }
.member-card .cord-badge { font-size: 0.78rem; }
.bio p { color: var(--text-2); }
.facts { display: grid; gap: 0.8rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; }
.facts dt { color: var(--text-3); font-weight: 800; }
.facts dd { margin: 0; }
.profile-body { grid-template-columns: 1.4fr 1fr; align-items: start; }
.profile-body > p { grid-column: 1 / -1; }
@media (max-width: 860px) { .profile-body { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: 0; } }

/* Library */
.chip-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.material-group { display: grid; gap: 0.8rem; scroll-margin-top: 96px; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.material-card { display: grid; align-content: start; gap: 0.4rem; padding: 1.4rem; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(170deg, var(--earth-700), var(--earth-900)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
.material-card:hover { transform: translateY(-5px); border-color: var(--gold); color: var(--text); }
.material-card h3 { margin: 0.3rem 0 0; color: var(--cream); }
.material-card p { color: var(--text-3); margin: 0 0 0.6rem; font-size: 0.95rem; }
.kind-badge { justify-self: start; display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(212, 160, 60, 0.18); color: var(--gold-bright); }
.kind-pdf { background: rgba(224, 103, 79, 0.2); color: #ffb9a6; }
.kind-video { background: rgba(109, 156, 255, 0.2); color: #b8cdff; }
.kind-link { background: rgba(63, 199, 125, 0.18); color: #a8ecc6; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.playlist-card { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: 20px; text-decoration: none; color: var(--text); background: linear-gradient(160deg, var(--earth-600), var(--earth-900)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
.playlist-card:hover { transform: translateY(-5px); border-color: var(--gold); color: var(--text); }
.playlist-art { width: 110px; height: 110px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #ffd77a, #c8643a 60%, #4a2410); color: #2a1906; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.playlist-video .playlist-art { background: radial-gradient(circle at 30% 30%, #9fd0ff, #1f4fa8 60%, #0d1f45); color: #e9f2ff; }
.playlist-art svg { width: 64px; height: 64px; }
.playlist-copy h2 { font-size: 1.25rem; margin: 0.4rem 0 0.3rem; color: var(--cream); }
.playlist-copy p { color: var(--text-3); margin: 0 0 0.3rem; font-size: 0.95rem; }
.track-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.4rem; }
.track { padding: 1.2rem; border-radius: 20px; background: linear-gradient(170deg, var(--earth-700), var(--earth-900)); border: 1px solid var(--line); display: grid; gap: 0.9rem; align-content: start; }
.track-head { display: flex; gap: 1rem; align-items: center; }
.track-head h2 { font-size: 1.1rem; margin: 0; font-family: var(--font-body); font-weight: 900; color: var(--cream); }
.track-head p { margin: 0; }
.track-number { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.track-notes summary { cursor: pointer; font-weight: 800; color: var(--text-3); }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle, var(--earth-600), #000); }
.yt-placeholder svg { width: 90px; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #f7d784, var(--gold)); color: #2a1906; font-size: 1.6rem; box-shadow: 0 0 0 8px rgba(241, 200, 106, 0.25), 0 12px 30px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease); }
.yt-play span { margin-left: 5px; }
.yt-play:hover { transform: scale(1.1); }
.yt-watch { position: absolute; right: 10px; bottom: 10px; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.yt.is-playing .yt-watch, .yt.is-playing .yt-play { display: none; }
.empty-state { text-align: center; padding: 3rem 1.5rem; border-radius: 20px; border: 1px dashed var(--line-strong); }
.empty-berimbau { width: 80px; margin: 0 auto 1rem; color: var(--gold); }
.empty-state p { color: var(--text-3); max-width: 50ch; margin-inline: auto; }

/* Calendar */
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--cream); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-weekdays span { text-align: center; color: var(--text-3); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 0.3rem; }
.day { min-height: 108px; padding: 0.45rem; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.day-outside { background: transparent; border-color: transparent; }
.day-past { opacity: 0.55; }
.day-today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(241, 200, 106, 0.25); }
.day-number { font-family: var(--font-title); font-weight: 800; color: var(--text-2); }
.day-today .day-number { color: var(--gold-bright); }
.day-weekday { display: none; }
.day-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.day-items li { display: flex; gap: 0.3rem; align-items: baseline; padding: 0.15rem 0.35rem; border-radius: 6px; font-size: 0.72rem; line-height: 1.25; overflow: hidden; }
.item-time { font-weight: 900; flex-shrink: 0; }
.item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-class { background: rgba(30, 138, 76, 0.28); color: #c9f3dc; }
.item-event { background: rgba(212, 160, 60, 0.3); color: #ffe7b0; }
.item-event.event-no_class { background: rgba(224, 103, 79, 0.28); color: #ffd0c5; }
.item-event.event-batizado { background: linear-gradient(90deg, rgba(30, 138, 76, 0.5), rgba(212, 160, 60, 0.5), rgba(31, 79, 168, 0.5)); color: #fff; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 0; color: var(--text-3); font-size: 0.85rem; font-weight: 700; }
.calendar-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.4rem; vertical-align: -1px; }
.legend-class::before { background: rgba(30, 138, 76, 0.7); }
.legend-event::before { background: rgba(212, 160, 60, 0.8); }
.legend-off::before { background: rgba(224, 103, 79, 0.7); }
@media (max-width: 760px) {
  .calendar-weekdays { display: none; }
  .calendar-grid { grid-template-columns: 1fr; }
  .day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .day-outside, .day:not(.day-busy):not(.day-today) { display: none; }
  .day-weekday { display: inline; color: var(--text-3); font-weight: 700; }
  .day-items { flex-basis: 100%; }
  .day-items li { font-size: 0.85rem; }
}
.timetable { margin: 0; display: grid; gap: 1rem; }
.timetable-day dt { font-family: var(--font-title); font-weight: 800; color: var(--gold-bright); margin-bottom: 0.3rem; }
.timetable-day dd { margin: 0 0 0.4rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.timetable-day dd small { grid-column: 2; color: var(--text-3); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.event-list li { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border-left: 4px solid var(--gold); }
.event-list .event-no_class { border-left-color: var(--danger); }
.event-list .event-batizado { border-left-color: var(--green); }
.event-list .kind-badge { margin: 0.2rem 0; }
.event-date { color: var(--gold); font-weight: 800; font-size: 0.9rem; }
.event-list p { margin: 0.3rem 0 0; color: var(--text-2); }

/* Instructor */
.approval-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.approval-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.approval-list li > div:first-child { display: grid; }
.approval-actions { display: flex; gap: 0.5rem; }
.approval-actions form { margin: 0; }
.attendance-picker { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.attendance-picker .field { min-width: 220px; }
.roll-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.roll-tools [data-roll-count] { font-weight: 900; color: var(--gold-bright); margin-right: auto; }
.roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; margin: 0.8rem 0 1.2rem; }
.roll-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); cursor: pointer; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.roll-item input { width: 20px; height: 20px; accent-color: var(--green); }
.roll-item:has(input:checked) { background: rgba(30, 138, 76, 0.22); border-color: rgba(63, 199, 125, 0.5); }

/* Errors */
.error-page { text-align: center; padding: 5rem var(--gutter) 2rem; max-width: 720px; margin: 0 auto; }
.error-jogo { width: min(420px, 90vw); margin: 0 auto 1rem; display: block; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .particle { display: none; }
}

/* Sign in with Google (Google's branding: white button, multicolour G) */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 800; gap: 0.7rem; }
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.google-logo { width: 20px; height: 20px; flex-shrink: 0; }
.or-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0 0.2rem; color: var(--text-3); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Administrator: temporary passwords */
.account-list li[hidden] { display: none; }
.account-list form { margin: 0; }
.temp-password-panel { max-width: 640px; }
.temp-password { font: 800 clamp(1.6rem, 6vw, 2.4rem)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; color: var(--gold-bright); padding: 1rem 1.2rem; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px dashed var(--line-strong); text-align: center; user-select: all; overflow-wrap: anywhere; }
.temp-password-panel .btn { margin-bottom: 1rem; }
