/*
 * Visual "cara de app" (igual ao protótipo aprovado): fundo escuro, vermelho #E3142D nos destaques,
 * cartões arredondados e barra de abas embaixo. Mobile-first. Sem build: é só CSS.
 */
:root {
  --red: #E3142D;
  --red-2: #FF3B4F;
  --red-dark: #B80F24;
  --red-deep: #8E0A1B;
  --black: #0D0D0F;
  --bg: #0D0D0F;
  --card: #17171C;
  --card-2: #212128;
  --line: #2C2C35;
  --ink: #F6F6F8;
  --text-2: #C9C9D2;
  --muted: #9C9CA8;
  --gold: #FFC83D;
  --ok: #2BD17E;
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; background: var(--bg); color: var(--ink); line-height: 1.5; }
body.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--red-2); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(13, 13, 15, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--ink); text-decoration: none; }
.brand .dot { width: 30px; height: 30px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-size: 15px; }
.topbar form { margin: 0; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.me-link { display: block; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); }
.me-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Barra de abas de baixo */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; height: 68px; border-radius: 24px; background: rgba(23, 23, 28, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 8px; min-width: 56px; border-radius: 14px; }
.tabbar svg { width: 23px; height: 23px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on svg { color: var(--red); }
.tabbar a.on::before { content: ""; position: absolute; top: -9px; width: 22px; height: 3px; border-radius: 3px; background: var(--red); }

/* Página */
.container { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.narrow { max-width: 440px; }
.wide { max-width: 1040px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card > h2:first-child { margin-top: 0; }
.danger-zone { border-color: rgba(227, 20, 45, .45); }
.sec { margin-top: 22px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-h h2, .sec-h h3 { margin: 0; font-size: 16px; }
.sec-h a { font-size: 13px; font-weight: 600; text-decoration: none; }
.hello small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.hello h1 { font-size: 24px; margin: 0; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }

/* Formulários */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
input[type=email], input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=month], input[type=url], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; background: var(--card-2); color: var(--ink); font-family: inherit;
}
input::placeholder, textarea::placeholder { color: #6b6b76; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 18px; height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.form-grid .btn { margin-top: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-2); font-size: 14px; }
.check input { margin-top: 2px; flex: 0 0 auto; }
details summary { cursor: pointer; font-weight: 600; }
details.new summary { font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.new summary::-webkit-details-marker { display: none; }
details.new summary::before { content: "+"; width: 28px; height: 28px; border-radius: 9px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 18px; }
details.new[open] summary::before { content: "–"; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: 14px; padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 14px; font-family: inherit; }
.btn:hover { background: var(--red-2); border-color: var(--red-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { width: auto; margin: 0; padding: 9px 14px; font-size: 13.5px; border-radius: 11px; }
.btn-ghost, .btn-line { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; }
.btn-ghost:hover, .btn-line:hover { background: #2a2a33; border-color: #3a3a44; }
.btn-danger { background: transparent; color: #FF6B7B; border: 1px solid rgba(227, 20, 45, .45); }
.btn-danger:hover { background: rgba(227, 20, 45, .12); border-color: var(--red); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #06140c; }
.btn-ok:hover { background: #3ee08f; border-color: #3ee08f; }
.linkish { background: none; border: 0; color: var(--red-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Mensagens */
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert-ok { background: rgba(43, 209, 126, .1); color: #7ff0b6; border-color: rgba(43, 209, 126, .35); }
.alert-err { background: rgba(227, 20, 45, .12); color: #FF8A96; border-color: rgba(227, 20, 45, .45); }

/* Etiquetas */
.tag, .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(227, 20, 45, .16); color: #FF6B7B; white-space: nowrap; text-decoration: none; }
.tag-dark, .pill { background: var(--card-2); color: var(--muted); }
.pill.red { background: rgba(227, 20, 45, .16); color: #FF6B7B; }
.pill.gold { background: rgba(255, 200, 61, .14); color: var(--gold); }
.pill.ok { background: rgba(43, 209, 126, .14); color: var(--ok); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.count { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 4px; }

/* Tela de boas-vindas e login */
.hero { padding: 56px 16px 40px; text-align: center; background: radial-gradient(90% 60% at 50% 0%, rgba(227, 20, 45, .35), transparent 70%); }
.hero h1 { font-size: 34px; }
.hero h1 span { color: var(--red-2); }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.hero .btn { width: auto; padding: 13px 28px; }
.auth-glow { background: radial-gradient(90% 45% at 50% 0%, rgba(227, 20, 45, .3), transparent 70%); }

/* Listas */
.roles { list-style: none; padding: 0; margin: 0; }
.roles li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.roles li:first-child { border-top: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; }
.list form { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > input, .row > select { flex: 1 1 200px; width: auto; }
.who { min-width: 0; }
.who strong { display: block; }
.who small { color: var(--muted); word-break: break-all; }
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); text-decoration: none; width: 100%; text-align: left; font: inherit; }
a.tile:hover { border-color: #3a3a44; }
.tile .grow { flex: 1; min-width: 0; }
.tile .t { font-weight: 600; display: block; }
.tile .s { color: var(--muted); font-size: 13px; margin-top: 2px; display: block; }
.tile > svg { width: 18px; height: 18px; color: #55555f; flex: none; }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.tile .ico svg { width: 20px; height: 20px; }
.tile.hot { border-color: rgba(227, 20, 45, .55); background: linear-gradient(160deg, rgba(227, 20, 45, .22), var(--card) 70%); }
.tile.hot .ico { background: var(--red); }

/* Avatar (foto de perfil da galeria) */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); display: block; }
.avatar-lg { width: 120px; height: 120px; box-shadow: 0 18px 40px -12px rgba(227, 20, 45, .55); }
.prof-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 6px; }
.prof-hero h1 { font-size: 22px; margin: 14px 0 0; }
.prof-hero .u { color: var(--muted); font-size: 13.5px; }
.avatar-edit { position: relative; display: block; border-radius: 50%; }
.avatar-edit .cam { position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; border: 3px solid var(--bg); }
.avatar-edit .cam svg { width: 14px; height: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { background: none; border: 3px solid transparent; border-radius: 50%; padding: 0; cursor: pointer; aspect-ratio: 1; overflow: hidden; transition: transform .15s, border-color .15s; }
.gallery button:hover, .gallery button:focus-visible { transform: scale(1.04); border-color: var(--ink); }
.gallery button.on { border-color: var(--red); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Área da diretoria */
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.crumb a { color: var(--muted); text-decoration: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 18px; padding: 0 16px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; min-height: 38px; display: inline-flex; align-items: center; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--black); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); }
.stat strong { font-family: var(--display); font-size: 26px; font-weight: 800; display: block; line-height: 1.2; }
.stat:first-child { background: linear-gradient(160deg, rgba(227, 20, 45, .25), var(--card) 70%); border-color: rgba(227, 20, 45, .5); }

/* Início: próxima atividade em destaque e atalhos */
.hero-ev { display: block; border-radius: 24px; padding: 18px; background: radial-gradient(120% 120% at 100% 0%, #ff2a46 0%, var(--red) 35%, var(--red-deep) 100%); position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.hero-ev::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 12px); border-radius: 50%; }
.hero-ev .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; position: relative; z-index: 1; }
.hero-ev h2, .hero-ev h3 { font-size: 22px; margin: 6px 0 4px; position: relative; z-index: 1; }
.hero-ev .m { font-size: 13.5px; opacity: .92; position: relative; z-index: 1; }
.hero-ev .countdown { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-ev .countdown div { background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 8px 10px; min-width: 58px; text-align: center; }
.hero-ev .countdown b { font-family: var(--display); font-size: 20px; display: block; line-height: 1; }
.hero-ev .countdown span { font-size: 10.5px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; text-align: center; }
.quick i { width: 56px; height: 56px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.quick i svg { width: 24px; height: 24px; }
.quick a:first-child i { background: var(--red); border-color: var(--red); }
.club-switch { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.club-switch a { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.club-switch a.on { border-color: var(--red); color: var(--ink); background: rgba(227, 20, 45, .12); }
.next-event { margin: 0 0 12px; font-size: 14px; }

/* Pontos */
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .pos { width: 38px; height: 38px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: 0 0 auto; }
.rank li:first-child .pos { background: var(--red); color: #fff; }
.rank li:first-child .total { color: var(--gold); }
.rank .name { flex: 1 1 auto; min-width: 0; }
.rank .name small { display: block; color: var(--muted); font-size: 13px; }
.rank .total { font-family: var(--display); font-size: 22px; font-weight: 800; }
.meter { height: 6px; border-radius: 6px; background: var(--card-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--red); border-radius: 6px; }
.meter.ok i { background: var(--ok); }
.pts-plus { color: var(--ok); font-family: var(--display); font-weight: 800; white-space: nowrap; }
.pts-minus { color: #FF6B7B; font-family: var(--display); font-weight: 800; white-space: nowrap; }

/* Agenda */
.event { display: flex; gap: 14px; align-items: flex-start; }
.event .day { flex: 0 0 54px; height: 58px; text-align: center; background: var(--card-2); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event .day strong { display: block; font-family: var(--display); font-size: 21px; }
.event .day span { font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.list > li:first-child .event .day, .event .day.red { background: var(--red); }
.list > li:first-child .event .day span, .event .day.red span { color: #fff; opacity: .85; }
.event .info { flex: 1 1 auto; min-width: 0; }
.event .info a { color: var(--ink); text-decoration: none; }
.event .info p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--text-2); }

/* Checklist das atividades: o item inteiro é um botão que marca/desmarca. */
.check-item { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.check-item .box { flex: 0 0 24px; height: 24px; border: 2px solid #45454f; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.check-item.done .box { background: var(--red); border-color: var(--red); }
.check-item.done .label { text-decoration: line-through; color: var(--muted); }

/* Materiais e vídeos */
.filter { margin: 0 0 16px; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--black); }
.kinds { gap: 16px; }
.materials > li { align-items: flex-start; }
.material-link, .video summary { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); flex: 1 1 320px; min-width: 0; cursor: pointer; }
.video { flex: 1 1 320px; min-width: 0; }
.video summary { list-style: none; }
.video summary::-webkit-details-marker { display: none; }
.video img { width: 120px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; flex: 0 0 auto; }
.material .icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #2a1a1d; color: #FF6B7B; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.material .info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.material .info small { overflow-wrap: anywhere; color: var(--muted); }
.material .info .tag { align-self: flex-start; }
.player { margin-top: 12px; position: relative; aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }

/* Central do app: avisos gerais, banners e parceiros (o dono controla no painel). */
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.notice p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; white-space: pre-line; }
.notice-important { background: linear-gradient(160deg, rgba(227, 20, 45, .3), var(--card) 80%); border-color: rgba(227, 20, 45, .6); }
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 0 16px; border-radius: var(--radius); scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 1; border-radius: var(--radius); overflow: hidden; background: var(--card); display: block; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.partners a { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-height: 64px; }
.partners a:hover { border-color: var(--red); }
.partners img, .partners .logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.partners .logo { background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.partners .info { min-width: 0; }
.partners small { display: block; color: var(--muted); font-size: 13px; }

/* Avisos */
.announcement-body { white-space: pre-line; margin: 6px 0; color: var(--text-2); }
.aviso { padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: block; color: var(--ink); text-decoration: none; }
.aviso.new { border-color: rgba(227, 20, 45, .55); }
.aviso h4 { font-family: var(--display); font-size: 15.5px; margin: 8px 0 4px; }
.aviso p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.aviso .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.aviso .when { font-size: 12px; color: var(--muted); margin-left: auto; }

/* Financeiro */
.child-sw { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.child-sw a { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.child-sw a.on { border-color: var(--red); background: rgba(227, 20, 45, .12); }
.child-sw img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.money { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.charge { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; flex-wrap: wrap; }
.charge .grow { flex: 1 1 180px; min-width: 0; }
.charge .t { font-weight: 600; }
.charge .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.charge form { margin: 0; }
.steps { color: var(--text-2); font-size: 14px; line-height: 1.6; padding-left: 20px; margin: 0 0 4px; }
.pay-box[hidden] { display: none; }
.pay-box { margin-top: 10px; width: 100%; background: var(--card-2); border-radius: 12px; padding: 12px 14px; }

@media (min-width: 900px) {
  .container { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Diretoria > Funções */
fieldset.card legend { padding: 0 6px; }
fieldset.card .check { margin: 10px 0; }
/* Personagem 3D, skins e cartas (Eu > Ver o Char) */
.stage3d { position: relative; height: 380px; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, rgba(227, 20, 45, .35), transparent 70%), linear-gradient(180deg, #1a0a0e, #0D0D0F); border: 1px solid var(--line); }
#char3d { position: absolute; inset: 0; }
#char3d canvas { display: block; }
.stage3d .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); background: rgba(0, 0, 0, .5); padding: 4px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 24px 10px; font-size: 14px; }
.anims, .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.anims { margin-top: 12px; }
.anims[hidden] { display: none; }
.anims button, .chips button, .chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 13px Inter, system-ui, sans-serif; color: var(--text-2); cursor: pointer; text-decoration: none; }
.anims button { border-radius: 14px; color: var(--ink); }
.anims button:active { transform: scale(.95); }
.chips form { margin: 0; flex: none; }
.chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a.locked { color: var(--muted); }
.chips svg { width: 14px; height: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tcard { --rar: #6d6d78; aspect-ratio: 5 / 7; border-radius: 14px; padding: 3px; background: var(--rar); display: block; text-align: center; color: var(--ink); text-decoration: none; }
.tcard.rara { --rar: linear-gradient(150deg, #E3142D, #ff7a8a 50%, #8c0a1a); }
.tcard.lendaria { --rar: linear-gradient(135deg, #FFC83D, #fff2b3 30%, #e0a20f 55%, #fff2b3 80%, #FFC83D); background-size: 200% 200%; animation: holo 3s linear infinite; }
@keyframes holo { to { background-position: 200% 200%; } }
.tcard .in { height: 100%; border-radius: 11px; background: radial-gradient(90% 60% at 50% 35%, rgba(227, 20, 45, .28), transparent 70%), #111114; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 6px 7px; overflow: hidden; }
.tcard .no { font: 600 10px var(--display); color: var(--muted); letter-spacing: .06em; align-self: flex-start; }
.tcard .art { width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.tcard .art svg { width: 46%; height: 46%; }
.tcard .nm { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.tcard .rr { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tcard.rara .rr { color: #ff7a8a; }
.tcard.lendaria .rr { color: var(--gold); }
.tcard.off { --rar: #26262c; animation: none; }
.tcard.off .in { background: repeating-linear-gradient(135deg, #141418 0 8px, #18181d 8px 16px); }
.tcard.off .art { color: #3a3a44; font: 800 26px var(--display); }
.tcard.off .nm { color: var(--muted); }
.tcard.big { width: 190px; margin: 4px auto 14px; }
.tcard.big .nm { font-size: 16px; }
.tcard.big .no { font-size: 12px; }
.tcard.big .rr { font-size: 11px; }
.tcard.reveal { animation: reveal .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.tcard.lendaria.reveal { animation: reveal .9s cubic-bezier(.2, .9, .3, 1.2) both, holo 3s linear .9s infinite; }
@keyframes reveal { from { transform: rotateY(180deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.code-box { margin-top: 14px; }
.code-box p.muted { margin: 0 0 10px; }
.code-box input { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; }
.center { text-align: center; }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.sheet-wrap .sheet { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow-y: auto; }
.sheet-wrap .sheet form { margin: 0; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet-wrap .sheet { border-radius: 24px; } }

/* Procurar desbravadores (perfil público: só usuário, foto, char e cartas) */
.search-row { display: flex; gap: 8px; margin: 10px 0 8px; }
.search-row input { flex: 1; min-width: 0; }
.dbv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dbv-head .avatar { width: 56px; height: 56px; }
.dbv-head h1 { margin: 0; font-size: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
