/* DDTank Prime — portal (site novo). Escuro com dourado. */
:root {
    --bg: #0a0c12;
    --bg-2: #10131c;
    --card: #151925;
    --card-2: #1b2030;
    --line: rgba(255, 214, 120, 0.14);
    --line-strong: rgba(255, 214, 120, 0.32);
    --gold: #f2c14e;
    --gold-2: #d99a1e;
    --gold-soft: rgba(242, 193, 78, 0.12);
    --text: #e9e6df;
    --muted: #a3a7b5;
    --ok: #3ddc84;
    --danger: #ff6b6b;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --font-title: 'Cinzel', Georgia, serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd77a; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
    color: #1a1204;
    background: linear-gradient(180deg, #ffd977 0%, var(--gold) 45%, var(--gold-2) 100%);
    box-shadow: 0 8px 22px rgba(242, 193, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { color: #1a1204; box-shadow: 0 10px 30px rgba(242, 193, 78, 0.42), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- topo ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 12, 18, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--gold); }
.topbar .actions { margin-left: auto; display: flex; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* ---------- destaque (hero) ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 720px; display: flex; align-items: center;
    background: var(--bg);
}
/* arte da batalha ocupando todo o topo */
.hero::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2;
    background: url('../img/batalha.jpg?v=2') 65% center / cover no-repeat;
}
.hero::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 12, 18, .94) 0%, rgba(10, 12, 18, .78) 34%, rgba(10, 12, 18, .15) 62%, rgba(10, 12, 18, 0) 100%),
        linear-gradient(180deg, rgba(10, 12, 18, .35) 0%, rgba(10, 12, 18, 0) 25%, rgba(10, 12, 18, 0) 72%, var(--bg) 100%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 600px); align-items: center; padding: 60px 0 90px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 12, 18, .6); border: 1px solid var(--line-strong); color: #d6d3cc; backdrop-filter: blur(6px); }
.hero-text { position: relative; }
.hero-logo { width: min(480px, 88vw); margin: 0 0 6px -14px; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .65)) drop-shadow(0 0 24px rgba(80, 170, 255, .18)); animation: float 6s ease-in-out infinite; }
.hero h1 {
    font-family: var(--font-title); font-weight: 700; letter-spacing: .5px;
    font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin: 4px 0 12px;
    background: linear-gradient(180deg, #fff4d6, var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: #d6d3cc; max-width: 540px; margin: 0 0 28px; font-size: 17px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; justify-self: end; width: min(440px, 100%); }
.hero-art .frame {
    position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 640 / 860;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 6px rgba(242, 193, 78, .06), 0 0 60px rgba(242, 140, 40, .18);
    transform: rotate(1.5deg);
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .frame::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10,12,18,0) 60%, rgba(10,12,18,.75)); }
.hero-art .badge {
    position: absolute; left: -26px; bottom: 34px; z-index: 2;
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
    background: rgba(16, 19, 28, .92); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.hero-art .badge b { display: block; font-family: var(--font-title); color: var(--gold); font-size: 20px; line-height: 1; }
.hero-art .badge span { font-size: 12px; color: var(--muted); }
.hero-art .badge .ico { font-size: 26px; }

/* faixa de destaques */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.perks .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; align-items: center; gap: 12px; padding: 22px 18px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .ico { font-size: 26px; }
.perk b { display: block; font-size: 15px; }
.perk span { font-size: 13px; color: var(--muted); }

/* vitrine (fortalecimento) */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.spotlight .shot {
    position: relative; border-radius: 18px; padding: 10px;
    background: linear-gradient(145deg, rgba(242,193,78,.5), rgba(242,193,78,.05) 40%, rgba(242,193,78,.35));
    box-shadow: var(--shadow), 0 0 60px rgba(242, 160, 60, .15);
}
.spotlight .shot img { border-radius: 12px; width: 100%; }
.spotlight.reverse .shot { order: 2; }
.spotlight .shot .pin { position: absolute; top: -14px; right: -14px; background: var(--gold); color: #1a1204; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.spotlight h2 { font-family: var(--font-title); font-size: clamp(24px, 3vw, 34px); margin: 8px 0 12px; }
.spotlight .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; }
.spotlight p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #d6d3cc; }
.checks li::before { content: '\2714'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #1a1204; background: var(--gold); }
.status {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 8px 16px; border-radius: 999px; font-size: 14px;
    background: rgba(16, 19, 28, 0.75); border: 1px solid var(--line-strong);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.status.off .dot { background: var(--danger); animation: none; }
.status b { color: var(--gold); }

/* ---------- seções ---------- */
section { padding: 84px 0; }
section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; }
.section-head h2 { font-family: var(--font-title); font-size: clamp(24px, 3vw, 34px); margin: 8px 0 10px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.divider { width: 80px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    position: relative; padding: 26px; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card), var(--bg-2));
    border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature .ico {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    font-size: 26px; margin-bottom: 14px;
    background: var(--gold-soft); border: 1px solid var(--line-strong);
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #1a1204; background: var(--gold); padding: 3px 9px; border-radius: 999px; }

/* download */
.downloads { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.dl-card { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.dl-card h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.dl-card .meta { color: var(--muted); font-size: 14px; margin: 0; }
.dl-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; color: #cfccc4; font-size: 14px; }
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; color: #1a1204; background: var(--gold);
}
.art-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); position: relative; min-height: 320px; background: url('../img/ceu.jpg?v=2') 30% center / cover no-repeat; box-shadow: var(--shadow); }
.art-card::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10,12,18,0) 55%, rgba(10,12,18,.8)); }
.art-card .caption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; font-family: var(--font-title); font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
section.sky { position: relative; isolation: isolate; }
section.sky::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: url('../img/ceu.jpg?v=2') center / cover no-repeat; opacity: .12; filter: blur(2px); }

/* ranking */
.ranking { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ranking .item { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ranking .item:last-child { border-bottom: 0; }
.ranking .pos { font-family: var(--font-title); font-weight: 700; font-size: 20px; color: var(--muted); text-align: center; }
.ranking .item:nth-child(1) .pos { color: #ffd34d; }
.ranking .item:nth-child(2) .pos { color: #d8dde6; }
.ranking .item:nth-child(3) .pos { color: #e09a5b; }
.ranking .nick { font-weight: 600; }
.ranking .lvl { color: var(--muted); font-size: 13px; }
.ranking .power { color: var(--gold); font-weight: 700; }
.ranking .empty { padding: 26px; text-align: center; color: var(--muted); }

/* novidades */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.post .cover { aspect-ratio: 16/9; background: var(--card-2) center / cover no-repeat; }
.post .body { padding: 18px; }
.post h3 { margin: 0 0 6px; font-size: 17px; }
.post p { margin: 0; color: var(--muted); font-size: 14px; }
.post .date { font-size: 12px; color: var(--gold); margin-bottom: 6px; display: block; }

/* comunidade */
.community { text-align: center; padding: 50px 30px; border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse at top, rgba(242, 193, 78, .12), transparent 60%), var(--card); }
.community h2 { font-family: var(--font-title); margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.community p { color: var(--muted); margin: 0 auto 22px; max-width: 560px; }
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* rodapé */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13px; }
footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .brand img { height: 36px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--gold); }

/* ---------- telas de entrar/cadastrar ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 50px;
    background: var(--bg) url('../img/personagens.jpg?v=2') center 25% / cover no-repeat;
}
.auth-art::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10,12,18,.05) 30%, rgba(10,12,18,.92)); }
.auth-art > * { position: relative; }
.auth-art img { width: 300px; margin: 0 0 14px -10px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.auth-art h2 { font-family: var(--font-title); margin: 0 0 8px; font-size: 28px; }
.auth-art p { color: #cfccc4; margin: 0; max-width: 460px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg-2); }
.auth-card { width: min(420px, 100%); }
.auth-card .back { display: inline-flex; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.auth-card .back:hover { color: var(--gold); }
.auth-card h1 { font-family: var(--font-title); font-size: 30px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #d6d3cc; }
.field input {
    width: 100%; padding: 13px 14px; border-radius: 10px; font: inherit; color: var(--text);
    background: var(--card); border: 1px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 13px; }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.auth-card .btn { width: 100%; }
.auth-card .alt-link { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.err { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); color: #ffb3b3; }
.alert.ok { background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); color: #a5f0c5; }
.notice { padding: 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--line-strong); color: #f0dfb4; font-size: 14px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(26,18,4,.35); border-top-color: #1a1204; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }

/* ---------- animações ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- celular / tablet ---------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; padding: 40px 0 70px; }
    .hero-logo { margin: 0 auto 6px; }
    .hero p.lead { margin-inline: auto; }
    .hero .cta, .hero-chips { justify-content: center; }
    .hero::before { background-position: 30% center; }
    .spotlight.reverse .shot { order: 0; }
    .hero-art { justify-self: center; width: min(360px, 86%); }
    .hero-art .badge { left: -12px; }
    .hero::after { background: linear-gradient(180deg, rgba(10,12,18,.55), rgba(10,12,18,.85) 60%, var(--bg)); }
    .perks .container { grid-template-columns: repeat(2, 1fr); }
    .perk:nth-child(3) { border-left: 0; }
    .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
    .spotlight { grid-template-columns: 1fr; gap: 36px; }
    .features, .posts { grid-template-columns: repeat(2, 1fr); }
    .downloads { grid-template-columns: 1fr; }
    .art-card { min-height: 240px; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { min-height: 260px; padding: 30px; }
    .auth-art img { width: 200px; }
}
@media (max-width: 760px) {
    .nav, .topbar .actions { display: none; }
    .menu-toggle { display: inline-flex; }
    .topbar.open .nav, .topbar.open .actions {
        display: flex; flex-direction: column; position: absolute; left: 0; right: 0; background: var(--bg-2);
        padding: 16px 20px; border-bottom: 1px solid var(--line);
    }
    .topbar.open .nav { top: 68px; gap: 14px; }
    .topbar.open .actions { top: calc(68px + 150px); }
    .features, .posts { grid-template-columns: 1fr; }
    .hero { min-height: 540px; }
    section { padding: 64px 0; }
    .ranking .item { grid-template-columns: 40px 1fr auto; }
    .ranking .lvl { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
}
