﻿/* ==========================================================================
   Racing Star — portal da comunidade
   Estilo "portal de jogo": azul-marinho, destaques amarelo/ciano,
   títulos condensados em itálico e painéis com imagens do jogo.
   ========================================================================== */

:root {
  --navy: #03132f;
  --panel: #071d42;
  --panel-2: #0b2755;
  --line: rgba(119, 189, 255, .18);
  --line-soft: rgba(111, 164, 220, .11);
  --text: #f4f8ff;
  --muted: #86a6d0;
  --muted-2: #6f91bb;
  --cyan: #24ddff;
  --yellow: #ffe52a;
  --green: #39e58a;
  --red: #ff6c5c;
  --pink: #ff6fc8;
  --purple: #b98bff;
  --orange: #ffa84a;
  --blue: #4ea4ff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --topbar-h: 76px;
  --radius: 14px;
  --card-bg: linear-gradient(145deg, rgba(11, 42, 88, .84), rgba(4, 23, 56, .82));
  --card-border: 1px solid rgba(95, 169, 234, .17);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(circle at 76% 4%, rgba(12, 79, 160, .25), transparent 30%), var(--navy);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--navy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yellow-text { color: var(--yellow) !important; }
.cyan-text { color: var(--cyan) !important; }
.muted { color: var(--muted); }

/* títulos no estilo da referência */
.display { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; line-height: .92; }
.display span, h1 span { color: var(--yellow); }
.eyebrow { display: inline-block; color: #69b4e9; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- Botões ---------- */
.btn {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap;
  transition: filter .18s, transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  text-decoration: none;
}
.btn .icon { width: 17px; height: 17px; }
.btn-yellow { background: var(--yellow); color: #071a3a; box-shadow: 0 6px 18px rgba(255, 221, 32, .12); }
.btn-cyan { background: var(--cyan); color: #05204b; }
.btn-yellow:hover, .btn-cyan:hover { color: #071a3a; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 9px 24px rgba(255, 218, 0, .22); }
.btn-outline { background: rgba(8, 37, 80, .65); border: 1px solid rgba(107, 184, 255, .36); color: #c4ddff; }
.btn-outline:hover { background: rgba(24, 118, 202, .22); border-color: var(--cyan); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #a9c5eb; }
.btn-ghost:hover { background: rgba(47, 211, 255, .11); color: #fff; }
.btn-lg { min-height: 50px; padding: 0 24px; border-radius: 12px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; filter: none; }
.text-action { display: inline-flex; align-items: center; gap: 4px; padding: 4px; color: var(--cyan); font-size: 12px; font-weight: 800; }
.text-action .icon { width: 15px; height: 15px; }
.text-action:hover { color: #fff; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; color: #a9c5eb; transition: .18s; }
.icon-button:hover { background: rgba(47, 211, 255, .11); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(3, 17, 43, .94); border-bottom: 1px solid rgba(75, 165, 255, .17);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16); backdrop-filter: blur(18px);
}
.topbar-left { display: flex; align-items: center; gap: 10px; margin-right: 24px; }

.brand { display: flex; align-items: center; gap: 10px; user-select: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(36, 221, 255, .35)); }
.brand-copy { line-height: .8; transform: skew(-8deg); font-family: var(--font-display); font-style: italic; font-weight: 900; letter-spacing: -.5px; }
.brand-copy strong, .brand-copy em { white-space: nowrap; }
.brand-copy strong { display: block; font-size: 25px; color: #eff8ff; }
.brand-copy em { display: block; margin-left: 26px; font-size: 20px; font-style: italic; color: var(--yellow); }

.topnav { height: 100%; display: flex; align-items: center; gap: 4px; flex: 1; }
.topnav a {
  height: 100%; position: relative; display: flex; align-items: center; gap: 9px; padding: 0 16px;
  color: #9eb9df; font-size: 14px; font-weight: 700;
}
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }
.topnav a[aria-current="page"] .icon { color: var(--yellow); }
.topnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  background: var(--yellow); box-shadow: 0 0 15px rgba(255, 229, 42, .75); border-radius: 9px 9px 0 0;
}
.topnav a.nav-support { color: var(--yellow); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Bandeiras EN / PT (layout.js), no mesmo desenho das da tela de surpresa. */
.lang-switch { display: flex; gap: 6px; margin-right: 4px; }
.lang-flag {
  width: 34px; height: 24px; padding: 0; border: 2px solid rgba(255, 255, 255, .28); border-radius: 6px;
  background: none; cursor: pointer; overflow: hidden; line-height: 0; opacity: .55;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.lang-flag:hover { opacity: .9; transform: translateY(-1px); }
.lang-flag[aria-pressed="true"] { opacity: 1; border-color: var(--yellow); }
.lang-flag:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lang-flag svg { width: 100%; height: 100%; display: block; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid transparent; border-radius: 12px; }
.profile-chip:hover { border-color: var(--line); background: rgba(7, 38, 83, .75); }
.profile-chip span { display: grid; gap: 1px; text-align: left; }
.profile-chip strong { font-size: 13px; }
.profile-chip small { font-size: 11px; color: #8badda; }

/* ---------- Avatar (rostos dos personagens) ---------- */
.avatar {
  width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  border-radius: 50%; border: 2px solid rgba(255, 229, 42, .7);
  background: radial-gradient(circle at 50% 35%, #ffd36b, #ef7a3a 55%, #6c239d);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
}
.avatar img { width: 108%; height: 108%; max-width: none; object-fit: cover; margin-top: 8%; }
.avatar.sm { width: 34px; height: 34px; border-width: 1px; }
.avatar.lg { width: 76px; height: 76px; }
.avatar.c1 { background: radial-gradient(circle at 50% 35%, #7ee7ff, #1f7fe0 60%, #1a2f7a); }
.avatar.c2 { background: radial-gradient(circle at 50% 35%, #ffb1e0, #e2479e 60%, #5c1c75); }
.avatar.c3 { background: radial-gradient(circle at 50% 35%, #b6ffa8, #2fb86a 60%, #0f4b5c); }
.avatar.c4 { background: radial-gradient(circle at 50% 35%, #d7c2ff, #8a5cf0 60%, #2e1f78); }

/* ---------- Estrutura ---------- */
.portal-body { display: flex; min-height: calc(100vh - var(--topbar-h)); }


.page-content { flex: 1; min-width: 0; padding: 26px 30px 48px; }

/* ---------- Painéis ---------- */
.card { border: var(--card-border); border-radius: var(--radius); background: var(--card-bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .09); }
.card-pad { padding: 18px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(33, 208, 255, .11); color: var(--cyan); }
.section-header h2 { margin-top: 1px; font-size: 19px; letter-spacing: -.3px; }
.card .section-header { margin: 0 0 12px; }

.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 14px 0 22px; }
.page-title-row h1 { margin: 8px 0 6px; font-size: clamp(38px, 4.2vw, 58px); }
.page-title-row p { color: #86a8d3; font-size: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row button, .chip-row a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px;
  border: 1px solid rgba(101, 172, 233, .2); border-radius: 9px; background: rgba(7, 38, 79, .55);
  color: #84a8d4; font-size: 13px; font-weight: 700;
}
.chip-row button:hover, .chip-row button[aria-selected="true"], .chip-row button[aria-pressed="true"] {
  border-color: var(--cyan); background: rgba(20, 159, 219, .16); color: var(--cyan);
}

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; background: rgba(67, 182, 255, .14); color: #5fc7ff; vertical-align: middle; }
.tag.yellow { background: rgba(255, 222, 25, .16); color: var(--yellow); }
.tag.green { background: rgba(61, 230, 153, .14); color: #69e6a3; }
.tag.red { background: rgba(255, 108, 92, .16); color: #ff8f82; }
.tag.pink { background: rgba(236, 95, 199, .15); color: #ef88d9; }
.tag.muted { background: rgba(134, 166, 208, .14); color: var(--muted); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.live-dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }

.progress-bar { height: 8px; overflow: hidden; border-radius: 6px; background: #14365f; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--yellow)); box-shadow: 0 0 13px rgba(255, 229, 42, .35); transition: width .8s ease; }

.empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border: 1px dashed rgba(107, 176, 234, .28); border-radius: 12px; color: #8baad0; text-align: center; }
.empty-state .icon { width: 28px; height: 28px; color: var(--cyan); }
.empty-state strong { color: #fff; font-size: 15px; }

.skeleton { border-radius: 10px; min-height: 16px; background: linear-gradient(90deg, rgba(20, 60, 110, .5), rgba(40, 90, 150, .5), rgba(20, 60, 110, .5)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { color: #d5e8ff; font-size: 13px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid rgba(80, 177, 255, .2); border-radius: 10px;
  background: rgba(9, 65, 126, .45); color: #fff; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select option { background: var(--panel); }
.input::placeholder, .textarea::placeholder { color: #7295c1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 221, 255, .1); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select, .field.has-error .password-field { border-color: var(--red); }
.field-error { color: #ff9c90; font-size: 12px; font-weight: 700; }
.field-error:empty { display: none; }
.hint { color: #7e9fc9; font-size: 12px; }
.password-field { display: flex; align-items: center; border: 1px solid rgba(80, 177, 255, .2); border-radius: 10px; background: rgba(9, 65, 126, .45); }
.password-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 221, 255, .1); }
.password-field .input { border: 0; background: transparent; box-shadow: none; }
.password-field button { padding: 8px 12px; color: #72b8e7; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.field-label { font-weight: 700; font-size: 14px; }
/* escolha do personagem no cadastro: 6 bebês, 3 por linha no celular */
.char-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.char-option { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 5px; border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.char-option:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.char-option input { position: absolute; opacity: 0; pointer-events: none; }
.char-option img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.char-option span { font-size: 12px; font-weight: 700; color: #b2cdeb; }
.char-option:has(input:checked) { border-color: var(--yellow, #ffd23f); background: rgba(255, 210, 63, .14); }
.char-option:has(input:checked) span { color: #fff; }
.char-option:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field.has-error .char-picker { outline: 2px solid #ff5a6a; outline-offset: 4px; border-radius: 12px; }
@media (max-width: 480px) { .char-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check { display: flex; align-items: flex-start; gap: 9px; color: #b2cdeb; font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--cyan); flex: 0 0 auto; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-alert { padding: 11px 14px; border: 1px solid rgba(255, 108, 92, .45); border-radius: 10px; background: rgba(255, 108, 92, .12); color: #ffb3aa; font-size: 13px; font-weight: 700; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength i { height: 5px; border-radius: 5px; background: #173963; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--orange); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--yellow); }
.strength[data-score="4"] i:nth-child(-n+4) { background: var(--green); }

.search-box { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 460px; padding: 0 14px; border: 1px solid rgba(106, 178, 236, .2); border-radius: 10px; background: rgba(7, 37, 79, .67); color: #72a1d1; }
.search-box:focus-within { border-color: var(--cyan); }
.search-box input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.search-box input::placeholder { color: #6f91bb; }

/* ---------- Toast / Dialog / Paginação ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; left: 24px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 9px; max-width: 390px; padding: 12px 16px;
  border: 1px solid rgba(48, 221, 255, .35); border-radius: 10px; background: #0d3b69; color: #fff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .3); font-size: 13px; font-weight: 600; animation: toast-in .2s ease-out;
}
.toast .icon { color: var(--cyan); }
.toast.success .icon { color: #61efab; }
.toast.error { border-color: rgba(255, 108, 92, .5); }
.toast.error .icon { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }

dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(38, 208, 255, .5); border-radius: 16px; background: #072858; color: var(--text); box-shadow: 0 25px 90px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(0, 7, 24, .8); backdrop-filter: blur(8px); }
.dialog-body { position: relative; padding: 28px; }
.dialog-body h2 { margin: 6px 0 6px; font-size: 32px; }
.dialog-body > p { color: #9bbade; font-size: 13px; margin-bottom: 14px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #a9c7e7; }
.dialog-close:hover { color: #fff; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pagination button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid rgba(101, 172, 233, .2); border-radius: 9px; background: rgba(7, 38, 79, .55); color: #84a8d4; font-size: 13px; font-weight: 800; }
.pagination button:hover:not([disabled]) { border-color: var(--cyan); color: var(--cyan); }
.pagination button[aria-current="page"] { border-color: var(--yellow); background: var(--yellow); color: #071a3a; }
.pagination button[disabled] { opacity: .4; cursor: default; }

/* ---------- Rodapé ---------- */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 22px 30px 26px; border-top: 1px solid rgba(111, 168, 222, .11); color: #6384af; font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #82a3ca; }
.site-footer a:hover { color: var(--cyan); }

/* ==========================================================================
   Início
   ========================================================================== */
.hero-panel {
  min-height: 360px; position: relative; display: flex; align-items: center; padding: 44px 46px; overflow: hidden;
  border: 1px solid rgba(44, 187, 255, .28); border-radius: 18px; background-size: cover; background-position: right center;
  box-shadow: 0 15px 44px rgba(0, 0, 0, .17);
}
.hero-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(transparent, rgba(3, 19, 45, .45)); pointer-events: none; }
.hero-swoosh { position: absolute; z-index: 1; width: 380px; height: 380px; left: 30%; top: -190px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255, 255, 255, .04), 0 0 0 48px rgba(255, 255, 255, .03); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 76px); }
.hero-copy p { margin: 18px 0 24px; color: #b9d0ee; font-size: 16px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dashboard-grid { margin-top: 24px; }
.dashboard-main { min-width: 0; }

.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mode-card { overflow: hidden; display: flex; flex-direction: column; }
.mode-image { height: 120px; position: relative; background-size: cover; background-position: center; }
.mode-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 23, 56, .85)); }
.mode-image .tag { position: absolute; z-index: 1; left: 10px; top: 10px; backdrop-filter: blur(6px); background: rgba(3, 26, 66, .75); }
.mode-image .tag.green { color: #69e6a3; } .mode-image .tag.yellow { color: var(--yellow); } .mode-image .tag.muted { color: #a8c4e6; }
.mode-body { padding: 13px 14px 15px; }
.mode-body h3 { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 24px; font-style: italic; font-weight: 800; text-transform: uppercase; }
.mode-body h3 .icon { color: var(--yellow); width: 18px; height: 18px; }
.mode-body p { margin-top: 4px; color: #8caad1; font-size: 13px; line-height: 1.45; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 14px; margin: 24px 0; }
.news-list { display: grid; gap: 4px; }
.news-item { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 14px; padding: 8px; border-radius: 10px; }
.news-item:hover { background: rgba(48, 171, 242, .08); }
.news-thumb { width: 104px; height: 66px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.news-type { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.news-item h3 { margin: 2px 0; font-size: 15px; }
.news-item p { color: #88a7cd; font-size: 13px; line-height: 1.4; }
.news-item small { color: #648bbd; font-size: 11px; }

.rank-list { display: grid; gap: 2px; }
.rank-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; border-radius: 8px; color: var(--text); }
.rank-row:hover { background: rgba(48, 171, 242, .1); color: var(--text); }
.rank-number { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #194276; color: #bfd8fa; font-size: 12px; font-weight: 900; }
.rank-number.gold { background: rgba(255, 220, 28, .17); color: var(--yellow); }
.rank-number.silver { background: rgba(164, 205, 236, .16); color: #b9daf3; }
.rank-number.copper { background: rgba(236, 145, 79, .18); color: #efa46f; }
.rank-name { display: grid; flex: 1; min-width: 0; gap: 1px; }
.rank-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { color: #789bc9; font-size: 11px; }
.card .btn-block { margin-top: 10px; }

.roster-strip {
  min-height: 170px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 24px 0; padding: 26px 28px; overflow: hidden; border: 1px solid rgba(40, 202, 255, .28); border-radius: 14px;
  background-size: cover; background-position: center;
}
.roster-strip h2 { margin: 6px 0 4px; font-size: 34px; }
.roster-strip p { color: #a9c8e8; font-size: 14px; }
.roster { display: flex; align-items: flex-end; }
.roster figure { margin: 0 -10px 0 0; text-align: center; transition: transform .2s; }
.roster figure:hover { transform: translateY(-6px); }
.roster img { width: 86px; height: 86px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.roster figcaption { margin-top: -4px; font-family: var(--font-display); font-size: 15px; font-weight: 800; font-style: italic; text-transform: uppercase; color: #cfe3fa; }

.topic-mini { display: grid; gap: 8px; }
.topic-mini a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.topic-mini a:hover { border-color: rgba(34, 217, 255, .5); transform: translateX(2px); color: var(--text); }
.topic-mini strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-mini small { color: #7798c1; font-size: 12px; }
.topic-mini .icon { color: #7196c5; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; padding: 18px 18px 18px 72px; }
.step b { position: absolute; left: 18px; top: 14px; font-family: var(--font-display); font-size: 40px; font-style: italic; font-weight: 800; color: var(--yellow); line-height: 1; }
.step h3 { font-size: 15px; margin-bottom: 3px; }
.step p { color: #8caad1; font-size: 13px; }


/* ==========================================================================
   Ranking
   ========================================================================== */
.ranking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; margin-top: 18px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
/* palco do ranking (visual do jogo) */
.game-font { font-family: "Lilita One", var(--font-display); font-weight: 400; letter-spacing: .5px; }
.rank-stage {
  position: relative; overflow: hidden; margin-top: 6px; padding: 26px 20px 0; border-radius: 18px;
  border: 1px solid rgba(39, 193, 255, .3);
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(70, 150, 255, .45), transparent 70%),
    linear-gradient(180deg, #0a2a78 0%, #0b1f5c 45%, #06143d 100%);
}
.rank-stage::before {   /* estádio ao fundo */
  content: ""; position: absolute; inset: 0; background: url(../img/race.jpg) center 30% / cover; opacity: .16; filter: blur(3px); pointer-events: none;
}
.rank-stage::after {    /* holofotes */
  content: ""; position: absolute; inset: -20% -10% 30%; pointer-events: none;
  background:
    conic-gradient(from 160deg at 18% 0%, transparent 0 8deg, rgba(160, 220, 255, .18) 12deg 20deg, transparent 26deg),
    conic-gradient(from 180deg at 82% 0%, transparent 0 14deg, rgba(160, 220, 255, .18) 18deg 26deg, transparent 32deg);
}
.rank-stage > * { position: relative; z-index: 1; }
.rank-logo { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 50px; line-height: 1; color: #fff; -webkit-text-stroke: 8px #262a63; paint-order: stroke fill; text-shadow: 0 5px 0 #262a63; }
.rank-logo .r { color: #ff8a1f; }
.rank-medal {
  width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff39a, #ffc21a 55%, #d88a00); border: 4px solid #262a63;
  color: #ff5a2a; font-size: 30px; -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 -10px 0 -2px #2f7bff;
}
.rank-stage-sub { margin: 6px 0 0 70px; color: #a9c8f0; font-size: 13px; }

/* seletor de modos */
.mode-select { position: relative; height: 250px; margin: 8px auto 0; max-width: 760px; }
.ms-ring {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 14px solid rgba(255, 214, 0, .55); box-shadow: 0 0 40px rgba(255, 214, 0, .35), inset 0 0 30px rgba(255, 214, 0, .25);
}
.ms-ring span { position: absolute; left: 50%; transform: translateX(-50%); color: #3a2a00; font-size: 12px; letter-spacing: 3px; }
.ms-ring span:first-child { top: -13px; }
.ms-ring span:last-child { bottom: -13px; }
.ms-card {
  --x: 0px; --s: 1; position: absolute; left: 50%; top: 50%; width: 220px; height: 150px; padding: 0; overflow: hidden;
  border: 4px solid #fff; border-radius: 16px; background: #fff; cursor: pointer;
  transform: translate(calc(-50% + var(--x)), -50%) scale(var(--s));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .35s ease, opacity .35s ease, filter .35s ease;
}
.ms-card .ms-art {
  position: absolute; inset: 0;
  background-position: center 38%, 0 0; background-size: 125% auto, 28px 28px; background-repeat: no-repeat, repeat;
}
.ms-card .ms-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 40%); }
.ms-card .ms-title {
  position: absolute; z-index: 1; top: 8px; left: 0; right: 0; text-align: center; font-size: 26px; line-height: 1;
  color: var(--c, #ffe12e); -webkit-text-stroke: 6px #3b1f00; paint-order: stroke fill; text-transform: none;
}
.ms-card.is-center { --s: 1.12; z-index: 3; }
.ms-card.is-left { --x: -240px; --s: .78; z-index: 2; opacity: .75; filter: saturate(.7) brightness(.85); }
.ms-card.is-right { --x: 240px; --s: .78; z-index: 2; opacity: .75; filter: saturate(.7) brightness(.85); }
.ms-card.is-back { --s: .5; z-index: 1; opacity: 0; pointer-events: none; }
.ms-card.is-left:hover, .ms-card.is-right:hover { opacity: 1; filter: none; }
.ms-arrow {
  position: absolute; z-index: 4; bottom: 0; width: 64px; height: 64px; display: grid; place-items: center; color: #ffd400;
  filter: drop-shadow(0 3px 0 #7a4a00) drop-shadow(0 0 10px rgba(255, 212, 0, .4)); transition: transform .15s;
}
.ms-arrow svg { width: 56px; height: 56px; }
.ms-arrow.prev { left: calc(50% - 250px); }
.ms-arrow.next { right: calc(50% - 250px); }
.ms-arrow:hover { transform: scale(1.12); }
.ms-arrow:active { transform: scale(.95); }

/* pódio 3D */
.podium3d { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; max-width: 640px; margin: 10px auto 0; padding-top: 170px; }
.p3 { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.p3-player { position: absolute; z-index: 2; bottom: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; margin-bottom: -2px; }
.p3-tag { display: flex; align-items: center; gap: 5px; max-width: 100%; margin-bottom: 2px; color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 0 #000, 0 0 4px #000; white-space: nowrap; }
.p3-tag img { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: #f7e6c8; border: 1px solid rgba(0, 0, 0, .3); }
.p3-tag span { overflow: hidden; text-overflow: ellipsis; }
/* "Andando" no pódio: a imagem é só um frame (não há sprite de caminhada no cliente do
   jogo - ver website/README.md), então a ilusão de movimento vem do CSS: balanço de lado a
   lado como um passo de bebê + a sombra embaixo encolhendo e crescendo fora de fase. */
.p3-char { width: 118px; height: 118px; transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .5)); animation: p3-walk 1.1s ease-in-out infinite; }
.p3.first .p3-char { width: 140px; height: 140px; animation-delay: -.25s; }
.p3.second .p3-char { animation-delay: -.55s; }
.p3.third .p3-char { animation-delay: -.85s; }
@keyframes p3-walk {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-7px); }
}
.p3-player::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -2px; width: 44px; height: 12px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .5), transparent 72%);
  transform: translateX(-50%); animation: p3-shadow 1.1s ease-in-out infinite;
}
.p3.first .p3-player::after { width: 54px; animation-delay: -.25s; }
.p3.second .p3-player::after { animation-delay: -.55s; }
.p3.third .p3-player::after { animation-delay: -.85s; }
@keyframes p3-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .6; }
  50% { transform: translateX(-50%) scale(.65); opacity: .3; }
}
.p3-value { margin-top: 2px; color: #ffe36b; font-size: 12px; font-weight: 800; text-shadow: 0 1px 0 #000, 0 0 4px #000; }

.p3-block { position: relative; width: 100%; display: grid; place-items: center; }
.p3-block::before {  /* tampo */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 32px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #ffffff, #cfe3fb 70%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.p3.second .p3-block, .p3.third .p3-block {
  height: 92px; border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, #7fb0ea, #e6f1ff 30%, #f6fbff 55%, #9fc3ef); border-bottom: 12px solid #2b5fc4;
}
.p3.first .p3-block {
  z-index: 1; height: 176px; width: 86%; border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, #c98900, #ffe14d 30%, #ffd31a 55%, #d99a00);
}
.p3.first .p3-block::before { background: radial-gradient(ellipse at 50% 40%, #fff3a6, #ffd21f 70%); }
.p3.first .p3-block::after { /* faixa azul com estrelas */
  content: "★ ★ ★"; position: absolute; left: 50%; bottom: 0; top: 96px; width: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; writing-mode: vertical-lr;
  background: linear-gradient(90deg, #1d4fb8, #3f7cf0, #1d4fb8); color: #cfe2ff; font-size: 13px; letter-spacing: 4px;
}
.p3-disc {
  position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(circle, #3a3f4a, #15181f 70%); border: 5px solid #c7ccd6; box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.p3.first .p3-disc { width: 78px; height: 78px; margin-bottom: 70px; border-color: #b77a00; }
.p3.second .p3-disc, .p3.third .p3-disc { align-self: center; }
.p3-disc img { height: 70%; width: auto; }
.p3.second { z-index: 0; margin-right: -18px; }
.p3.third { z-index: 0; margin-left: -18px; }
.p3-floor { position: relative; height: 54px; margin: 0 -20px; overflow: hidden; }
.p3-floor::before { /* degraus laranja */
  content: ""; position: absolute; left: 50%; top: 0; width: 180px; height: 100%; transform: translateX(-50%);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(180deg, #ff9d2e 0 16px, #ffc15a 16px 18px);
}
.p3-floor::after { /* bandeirolas */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background:
    radial-gradient(circle at 50% 0, transparent 13px, #0000 13px) 0 0 / 44px 22px,
    repeating-linear-gradient(90deg, #d8322f 0 14px, #fff 14px 22px, #d8322f 22px 36px, #2350b8 36px 44px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 22px 22px, #000 20px, transparent 21px) 0 0 / 44px 22px repeat-x;
          mask: radial-gradient(circle at 22px 22px, #000 20px, transparent 21px) 0 0 / 44px 22px repeat-x;
}

.rank-table-card { margin-top: 16px; padding: 14px; }
.rank-table-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 4px 12px; }
.table-scroll { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rank-table th { padding: 0 10px 10px; color: #6489ba; font-size: 10px; font-weight: 900; letter-spacing: .8px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.rank-table td { height: 54px; padding: 0 10px; border-top: 1px solid var(--line-soft); color: #a7c2e2; font-size: 14px; white-space: nowrap; }
.rank-table tr.me td { background: rgba(255, 225, 30, .08); color: #fff; }
.rank-table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table .strong { color: #fff; font-weight: 800; }
.pilot-cell { display: flex; align-items: center; gap: 10px; }
.pilot-cell strong { color: #eaf3ff; font-size: 14px; }
.level-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(67, 182, 255, .14); color: #5ec4ff; font-size: 12px; font-weight: 800; }
.big-num { color: #76dfff; font-family: var(--font-display); font-size: 19px; font-weight: 700; }

.rank-side { display: grid; align-content: start; gap: 16px; }
.rank-side .card { padding: 20px; }
.my-rank { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.my-rank > strong { color: var(--yellow); font-family: var(--font-display); font-size: 44px; font-style: italic; line-height: 1; }
.my-rank div { display: grid; gap: 2px; }
.my-rank b { font-size: 14px; }
.my-rank small { color: #8dacd2; font-size: 12px; }
.rank-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rank-mini-stats span { display: grid; gap: 3px; text-align: center; }
.rank-mini-stats b { color: var(--cyan); font-size: 15px; }
.rank-mini-stats small { color: #7899c2; font-size: 11px; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.track-grid img { width: 100%; aspect-ratio: 144 / 92; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.track-grid img:hover { transform: scale(1.04); border-color: var(--yellow); }

/* ==========================================================================
   Fórum
   ========================================================================== */
.forum-hero {
  min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 38px;
  border: 1px solid rgba(50, 192, 255, .26); border-radius: 15px; background-size: cover; background-position: center 30%;
}
.forum-hero h1 { margin: 8px 0 8px; font-size: clamp(38px, 4.2vw, 58px); }
.forum-hero p { max-width: 520px; color: #9ab8dc; font-size: 14px; }
.forum-stat { display: grid; justify-items: end; gap: 2px; }
.forum-stat strong { color: var(--cyan); font-family: var(--font-display); font-size: 42px; line-height: 1; }
.forum-stat span { color: #8caed6; font-size: 12px; }
.online-stack { display: flex; align-items: center; margin-top: 10px; }
.online-stack .avatar { margin-left: -8px; }
.online-stack i { margin-left: 8px; color: #8faed4; font-size: 12px; font-style: normal; }

.forum-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 22px 0 14px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
.forum-layout .chip-row { margin-bottom: 14px; }
.forum-layout .chip-row button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.topic-list { display: grid; gap: 8px; }
.topic-row {
  min-height: 84px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 80px 80px 20px; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid rgba(104, 169, 226, .15); border-radius: 11px;
  background: linear-gradient(145deg, rgba(10, 42, 86, .76), rgba(4, 23, 53, .8)); color: var(--text); transition: .2s;
}
.topic-row:hover { border-color: rgba(34, 217, 255, .5); transform: translateX(2px); color: var(--text); }
.topic-row > .icon { color: #7196c5; }
.topic-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(33, 209, 255, .14); color: var(--cyan); }
.accent-yellow { background: rgba(255, 224, 33, .14); color: var(--yellow); }
.accent-purple { background: rgba(174, 91, 255, .15); color: #cb8cff; }
.accent-green { background: rgba(61, 230, 153, .13); color: #69e6a3; }
.accent-red { background: rgba(255, 108, 92, .15); color: #ff8f82; }
.accent-pink { background: rgba(236, 95, 199, .14); color: #ef88d9; }
.accent-orange { background: rgba(255, 168, 74, .15); color: var(--orange); }
.topic-main { min-width: 0; }
.topic-main > span { color: #65add9; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.topic-main h3 { margin: 3px 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: #e9f3ff; font-size: 15px; }
.topic-main h3 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-main h3 .icon { width: 14px; height: 14px; color: var(--yellow); }
.topic-main p { color: #7798c1; font-size: 12px; }
.topic-main p b { color: #b9d5f3; }
.topic-metric { display: grid; justify-items: center; gap: 1px; }
.topic-metric strong { font-size: 15px; }
.topic-metric small { color: #789bc4; font-size: 11px; }

.forum-side { display: grid; align-content: start; gap: 16px; }
.side-widget { padding: 16px; }
.side-widget .section-icon { width: 30px; height: 30px; }
.side-widget .section-header h2 { font-size: 16px; }
.hot-topic { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.hot-topic:hover { color: var(--cyan); }
.hot-topic span { grid-row: span 2; color: var(--cyan); font-family: var(--font-display); font-size: 24px; font-style: italic; line-height: 1; }
.hot-topic b { font-size: 13px; line-height: 1.3; }
.hot-topic small { color: #7397c0; font-size: 11px; }
.cat-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: #b9d5f3; font-size: 13px; font-weight: 700; }
.cat-link:hover { color: #fff; }
.cat-link .topic-icon { width: 30px; height: 30px; border-radius: 8px; }
.cat-link .topic-icon .icon { width: 15px; height: 15px; }
.cat-link small { margin-left: auto; color: #7397c0; font-weight: 600; }
.rules { margin: 0; padding-left: 18px; color: #8fb0d6; font-size: 13px; display: grid; gap: 6px; }

/* tópico */
.topic-head { padding: 12px 0 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #6f91bb; font-size: 12px; font-weight: 700; }
.breadcrumb a { color: #86a8d3; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .icon { width: 13px; height: 13px; }
.topic-head h1 { margin: 12px 0 8px; font-size: clamp(32px, 3.6vw, 48px); }
.topic-head .meta { display: flex; flex-wrap: wrap; gap: 16px; color: #86a8d3; font-size: 13px; }
.topic-head .meta span { display: flex; align-items: center; gap: 6px; }
.topic-head .meta .icon { width: 15px; height: 15px; color: var(--cyan); }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); overflow: hidden; }
.post + .post { margin-top: 12px; }
.post-author { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 14px; border-right: 1px solid var(--line-soft); background: rgba(3, 20, 50, .35); text-align: center; }
.post-author b { font-size: 14px; word-break: break-word; }
.post-author small { color: #7397c0; font-size: 11px; }
.post-main { padding: 18px 22px; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); color: #7397c0; font-size: 12px; }
.post-meta a { color: #7397c0; }
.post-body { color: #cfe0f5; font-size: 15px; overflow-wrap: anywhere; }
.post-body p + p { margin-top: 12px; }
.post.op { border-color: rgba(255, 222, 27, .35); }
.reply-card { margin-top: 18px; padding: 20px; }

/* ==========================================================================
   Doações (campanha)
   ========================================================================== */
.campaign { max-width: 1240px; margin: 0 auto; padding: 0 24px 60px; }
.donation-hero { min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.donation-hero-copy { padding: 50px 0 30px; }
.donation-hero h1 { margin: 12px 0 18px; font-size: clamp(56px, 7vw, 92px); line-height: .84; }
.donation-hero p { max-width: 520px; color: #a8c6e8; font-size: 16px; line-height: 1.7; }
.donation-hero p strong { color: #fff; }
.donation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.ghost-link { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan); font-size: 14px; font-weight: 800; }
.trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: #7599c3; font-size: 12px; }
.trust-line .icon { width: 15px; height: 15px; color: #61e7a1; }
.trust-line i { width: 1px; height: 13px; margin: 0 6px; background: #42678d; }
.donation-hero-art {
  min-height: 420px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 25px;
  border: 1px solid rgba(39, 209, 255, .32); background-size: cover; background-position: center; box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
}
.donation-hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 22, 59, .1), rgba(3, 22, 59, .92)), repeating-linear-gradient(128deg, transparent 0 40px, rgba(47, 221, 255, .05) 42px 44px); }
.art-ring { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(48, 218, 255, .42); border-radius: 50%; box-shadow: 0 0 0 26px rgba(48, 218, 255, .07), 0 0 0 53px rgba(48, 218, 255, .04); }
.art-kart { position: relative; z-index: 1; width: 250px; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .5)); transform: rotate(-6deg); }
.art-face { position: absolute; z-index: 2; width: 110px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.art-face.f1 { right: 12%; top: 12%; transform: rotate(8deg); }
.art-face.f2 { left: 10%; top: 18%; width: 90px; transform: rotate(-10deg); }
.art-caption { position: absolute; z-index: 2; left: 26px; bottom: 24px; color: #c5ddf5; font-size: 24px; }

.campaign-progress { padding: 26px 30px; border: 1px solid rgba(54, 207, 255, .25); border-radius: 15px; background: linear-gradient(145deg, rgba(7, 47, 94, .82), rgba(4, 25, 60, .85)); }
.progress-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; }
.progress-head h2 { margin-top: 4px; font-size: 34px; }
.progress-head > strong { color: var(--yellow); font-family: var(--font-display); font-size: 40px; line-height: 1; }
.progress-head > strong small { color: #99b9df; font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.campaign-track { height: 14px; margin: 18px 0 10px; }
.progress-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #86a7cf; font-size: 13px; }
.progress-foot span:first-child { color: var(--yellow); font-weight: 800; }

.donation-content { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 60px; padding: 72px 10px 44px; }
.story-column h2, .section-title { max-width: 560px; margin: 10px 0 16px; font-size: 46px; }
.story-column > p { max-width: 600px; color: #9dbbdf; font-size: 15px; line-height: 1.75; }
.story-column > p + p { margin-top: 12px; }
.story-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.story-points > div { display: grid; gap: 5px; padding: 15px; border-left: 2px solid var(--cyan); background: rgba(9, 52, 99, .34); }
.story-points span { color: var(--yellow); font-family: var(--font-display); font-size: 26px; font-style: italic; line-height: 1; }
.story-points b { font-size: 14px; }
.story-points small { color: #86a7cd; font-size: 12px; line-height: 1.45; }
.story-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.story-screens img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.support-card { align-self: start; position: sticky; top: calc(var(--topbar-h) + 20px); padding: 24px; border: 1px solid rgba(255, 220, 40, .38); border-radius: 15px; background: linear-gradient(145deg, rgba(15, 57, 105, .92), rgba(5, 26, 62, .95)); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.support-card h3 { margin: 6px 0 16px; font-size: 22px; }
.support-levels { display: grid; gap: 8px; margin-bottom: 14px; }
.support-levels button { display: grid; grid-template-columns: 78px 1fr; gap: 2px 10px; padding: 12px; border: 1px solid rgba(111, 175, 229, .2); border-radius: 10px; background: rgba(6, 31, 70, .63); text-align: left; transition: .18s; }
.support-levels button:hover, .support-levels button[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 223, 35, .09); }
.support-levels strong { grid-row: span 2; align-self: center; color: var(--yellow); font-family: var(--font-display); font-size: 30px; font-style: italic; line-height: 1; }
.support-levels span { font-size: 14px; font-weight: 800; }
.support-levels small { color: #88a8ce; font-size: 12px; }
.custom-amount { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 0 12px; border: 1px solid rgba(111, 175, 229, .2); border-radius: 10px; background: rgba(6, 31, 70, .63); }
.custom-amount:focus-within { border-color: var(--cyan); }
.custom-amount b { color: var(--muted); font-size: 14px; }
.custom-amount input { width: 100%; min-height: 46px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 800; }
.support-note { display: block; margin-top: 12px; color: #789ac1; font-size: 11px; text-align: center; }

.transparency-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 36px; padding: 36px 10px; border-top: 1px solid var(--line); }
.transparency-section h2 { margin: 8px 0 8px; font-size: 36px; }
.transparency-section > div > p { color: #85a7d1; font-size: 14px; }
.transparency-list { display: grid; gap: 10px; margin-top: 18px; color: #afd0ef; font-size: 14px; }
.transparency-list span { display: flex; align-items: center; gap: 8px; }
.transparency-list .icon { color: #62eaa1; }
.costs { display: grid; gap: 14px; padding: 20px; }
.cost { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; font-weight: 700; }
.cost b { color: var(--yellow); }
.cost .progress-bar { grid-column: 1 / -1; height: 6px; }
.cost-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; }

.campaign-community { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 10px 20px; border-top: 1px solid var(--line); }
.campaign-community h2 { margin: 8px 0 6px; font-size: 34px; }
.campaign-community .lead { margin-bottom: 20px; color: #86a8d0; font-size: 14px; }
.update-timeline { position: relative; display: grid; gap: 18px; padding-left: 4px; }
.update-timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--cyan), rgba(115, 159, 207, .18)); }
.update-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.update-marker { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(116, 174, 226, .32); border-radius: 50%; background: #092a59; color: #7598c3; }
.update-marker .icon { width: 13px; height: 13px; }
.update-item.current .update-marker { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(36, 221, 255, .35); }
.update-item > div:last-child { padding-bottom: 14px; border-bottom: 1px solid rgba(111, 171, 225, .12); }
.update-item > div:last-child > span { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .8px; }
.update-item h3 { margin: 3px 0; font-size: 15px; }
.update-item p { color: #8baacd; font-size: 13px; line-height: 1.5; }
.wall-posts { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding-right: 4px; }
.wall-post { display: flex; gap: 10px; padding: 11px; border: 1px solid rgba(107, 175, 227, .14); border-radius: 10px; background: rgba(8, 42, 84, .52); }
.wall-post > div { min-width: 0; flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.wall-post strong { font-size: 13px; }
.wall-post .amt { color: var(--yellow); font-size: 13px; font-weight: 800; }
.wall-post small { grid-column: 1 / -1; color: #7698c1; font-size: 11px; }
.wall-post p { grid-column: 1 / -1; margin-top: 2px; color: #a4c3e2; font-size: 13px; line-height: 1.45; }

.faq { max-width: 860px; margin: 0 auto; padding: 40px 10px 0; border-top: 1px solid var(--line); }
.faq h2 { margin: 8px 0 18px; font-size: 34px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: #8fb0d6; font-size: 14px; }

.method-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.method-tabs button { min-height: 42px; border: 1px solid rgba(101, 172, 233, .2); border-radius: 9px; background: rgba(7, 38, 79, .55); color: #84a8d4; font-size: 13px; font-weight: 800; }
.method-tabs button[aria-selected="true"] { border-color: var(--cyan); background: rgba(20, 159, 219, .16); color: var(--cyan); }
.pay-panel { padding: 14px; border: 1px dashed rgba(107, 176, 234, .28); border-radius: 10px; color: #9bbade; font-size: 13px; }
.pix-box { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.qr-placeholder { width: 96px; height: 96px; display: grid; place-items: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .25); color: #86a6d0; font-size: 11px; text-align: center; }
.copy-row { display: flex; gap: 6px; margin-top: 6px; }
.copy-row .input { min-height: 38px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.success-state { display: grid; justify-items: center; gap: 8px; padding: 12px 0; text-align: center; }
.success-state .ok { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(72, 234, 161, .13); color: #6aeca7; }
.success-state .ok .icon { width: 28px; height: 28px; }
.success-state p { color: #9bbade; font-size: 14px; }

/* ==========================================================================
   Login / Cadastro
   ========================================================================== */
.auth-screen {
  min-height: calc(100vh - var(--topbar-h)); position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; background-size: cover; background-position: center; overflow: hidden;
}
.auth-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(4, 26, 70, .35), rgba(3, 12, 37, .88) 75%); }
.login-card {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 32px 36px 28px;
  border: 1px solid rgba(40, 190, 255, .7); border-radius: 20px; background: linear-gradient(150deg, rgba(6, 38, 85, .94), rgba(3, 25, 62, .96));
  box-shadow: 0 0 0 1px rgba(0, 100, 255, .12), 0 24px 70px rgba(0, 0, 0, .45), 0 0 35px rgba(0, 161, 255, .13); backdrop-filter: blur(15px);
}
.login-faces { display: flex; justify-content: center; margin: -78px 0 10px; }
.login-faces img { width: 84px; height: 84px; margin: 0 -8px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.login-faces img:nth-child(2) { width: 100px; height: 100px; margin-top: -12px; }
.login-card h1 { font-size: 42px; text-align: center; }
.login-subtitle { margin: 8px 0 22px; color: #95b8e5; font-size: 14px; text-align: center; }
.create-account { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 1px solid rgba(33, 186, 255, .72); border-radius: 10px; color: var(--cyan); font-size: 14px; font-weight: 800; }
.create-account:hover { background: rgba(31, 198, 255, .1); color: var(--cyan); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #7e9fc9; font-size: 12px; }
.secure-note .icon { width: 14px; height: 14px; color: #6db7e8; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .topnav a { padding: 0 10px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .topbar-left { min-width: 0; flex: 1; }
  .site-footer { padding: 20px 16px; }
  .page-content { padding: 18px 16px 36px; }
  .ranking-layout, .forum-layout { grid-template-columns: 1fr; }
  .rank-side, .forum-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .donation-hero, .donation-content, .transparency-section, .campaign-community { grid-template-columns: 1fr; }
  .donation-hero { min-height: 0; padding-top: 24px; }
  .donation-hero-copy { padding: 0; }
  .donation-hero-art { min-height: 320px; }
  .donation-content { gap: 36px; padding-top: 50px; }
  .support-card { position: static; }
  .campaign { padding: 0 16px 50px; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 64px; }
  .topbar-left { margin-right: 8px; }
  .topnav a { padding: 0 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy em { font-size: 17px; margin-left: 20px; }
  .topbar-actions .btn-outline { display: none; }
  .profile-chip span { display: none; }
  .lang-flag { width: 28px; height: 20px; }
  .lang-switch { gap: 4px; margin-right: 0; }
  .hero-panel { min-height: 420px; padding: 28px 22px; align-items: flex-start; background-position: 70% center; }
  .hero-panel { background-image: linear-gradient(180deg, rgba(3, 18, 47, .96) 0%, rgba(5, 27, 70, .8) 55%, rgba(5, 27, 70, .2) 100%), url(../img/title.jpg) !important; }
  .rank-table-tools .search-box { flex-basis: 100%; max-width: none; }
  .mode-grid, .steps, .story-points, .story-screens { grid-template-columns: 1fr; }
  .roster-strip { flex-direction: column; align-items: flex-start; }
  .roster img { width: 64px; height: 64px; }
  .page-title-row { flex-direction: column; align-items: stretch; }
  .forum-hero { padding: 24px; }
  .forum-stat { display: none; }
  .forum-tools { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .topic-row { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 10px; padding: 12px; }
  .topic-metric { display: none; }
  .rank-stage { padding: 18px 10px 0; }
  .rank-logo { font-size: 36px; -webkit-text-stroke-width: 6px; }
  .rank-medal { width: 44px; height: 44px; font-size: 22px; }
  .rank-stage-sub { margin-left: 0; }
  .mode-select { height: 190px; }
  .ms-ring { width: 180px; height: 180px; border-width: 10px; }
  .ms-card { width: 160px; height: 110px; border-width: 3px; }
  .ms-card .ms-title { font-size: 19px; -webkit-text-stroke-width: 5px; }
  .ms-card.is-left { --x: -118px; --s: .62; }
  .ms-card.is-right { --x: 118px; --s: .62; }
  .ms-arrow { width: 48px; height: 48px; }
  .ms-arrow svg { width: 40px; height: 40px; }
  .ms-arrow.prev { left: 4px; }
  .ms-arrow.next { right: 4px; }
  .podium3d { padding-top: 120px; }
  .p3-char { width: 76px; height: 76px; }
  .p3.first .p3-char { width: 96px; height: 96px; }
  .p3-tag { font-size: 11px; }
  .p3-tag img { width: 18px; height: 18px; }
  .p3-value { font-size: 10px; }
  .p3.second .p3-block, .p3.third .p3-block { height: 72px; }
  .p3.first .p3-block { height: 140px; }
  .p3-disc { width: 48px; height: 48px; border-width: 4px; }
  .p3.first .p3-disc { width: 58px; height: 58px; margin-bottom: 52px; }
  .p3.first .p3-block::after { top: 78px; }
  .post { grid-template-columns: 1fr; }
  .post-author { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
  .post-author .avatar.lg { width: 42px; height: 42px; }
  .post-main { padding: 14px 16px; }
  .login-card { padding: 26px 22px 22px; }
  .pix-box { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ======================================================================
   Preços da loja (loja.html) - ferramenta interna da equipe.
   Tabela larga e densa: são 1500 produtos, e quem edita precisa ver
   muitos de uma vez. Não tem topo nem rodapé do site de propósito.
   ====================================================================== */
.shop-admin { background: var(--navy); }
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 18px 60px; }
.shop-login { max-width: 420px; margin: 8vh auto 0; padding: 26px 22px 22px; }
.shop-login .display { margin: 2px 0 6px; }
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-head .display { margin: 2px 0 4px; }
.shop-head p { margin: 0; font-size: 13px; }
.shop-head-actions { display: flex; align-items: center; gap: 10px; }

.shop-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.shop-total { padding: 12px 14px; border: var(--card-border); border-radius: var(--radius); background: var(--card-bg); }
.shop-total strong { display: block; font-family: var(--font-display); font-size: 26px; font-style: italic; line-height: 1; }
.shop-total span { font-size: 12px; color: var(--muted); }
.shop-total-corn strong { color: var(--yellow); }
.shop-total-ap strong { color: var(--pink); }
.shop-total-ambas strong { color: var(--cyan); }
.shop-total-medalha strong { color: var(--muted); }

.shop-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; padding: 14px; }
.shop-filters .field { margin: 0; }
.shop-filters label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; flex-wrap: wrap; }
.shop-bar-actions { display: flex; align-items: center; gap: 12px; }
.shop-pending { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--yellow); }

.shop-table-wrap { overflow-x: auto; padding: 0; }
.shop-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shop-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; text-align: left; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }
.shop-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.shop-table tr:hover td { background: rgba(36, 221, 255, .04); }
.shop-table tr.is-pendente td { background: rgba(255, 229, 42, .06); }
.shop-table strong { display: block; font-weight: 700; }
.shop-sub { display: block; font-size: 11px; color: var(--muted-2); }
.shop-cat { color: var(--muted); font-size: 12px; }
.shop-preco { white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; color: var(--muted); background: rgba(119, 189, 255, .1); }
.shop-tag-on { color: var(--green); background: rgba(57, 229, 138, .12); }
.shop-moeda { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.shop-moeda-CORN { color: var(--yellow); background: rgba(255, 229, 42, .12); }
.shop-moeda-AP { color: var(--pink); background: rgba(255, 111, 200, .12); }
.shop-moeda-CORNAP { color: var(--cyan); background: rgba(36, 221, 255, .12); }
.shop-moeda-medalha, .shop-moeda-grátis { color: var(--muted); background: rgba(119, 189, 255, .1); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.shop-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

.shop-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-price-col h3 { margin: 0 0 8px; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.shop-price-col label { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.shop-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.shop-log { max-height: 240px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }

@media (max-width: 900px) {
  .shop-totals { grid-template-columns: repeat(2, 1fr); }
  .shop-filters { grid-template-columns: 1fr 1fr; }
  .shop-prices { grid-template-columns: 1fr; }
}
