/* CriaTank 14.7 - contraste e acabamento das artes (Pacote VM 06/10 - Janela 9)
   Carregado por ultimo em todas as paginas (normal e launcher).
   Regra: fundo escuro = texto claro; fundo claro = texto escuro. Nada de texto claro em fundo creme. */

:root {
    --muted: #d0d3e0;               /* era #b8bbca: cinza claro mais forte em fundo escuro */
    --ct-card: #141a33;
    --ct-card-2: #0d1126;
    --ct-borda: rgba(244, 197, 66, 0.55);
    --ct-ouro: #ffd45c;
}

/* ---------- tipografia geral mais legivel ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.section-heading p,
.weapon-card p,
.event-card p,
.news-item p,
.steps-list p { color: #d6d9e6; }
.hero__text h1, .hero__text h2, .hero__text p, .hero__eyebrow,
.login-hero h1, .login-hero p, .login-hero .section-kicker {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.55);
}
.hero__shade { background: linear-gradient(90deg, rgba(5, 6, 16, 0.86) 0%, rgba(5, 6, 16, 0.55) 45%, rgba(5, 6, 16, 0.12) 100%) !important; }
.event-status { font-size: 11px !important; padding: 5px 9px !important; letter-spacing: 0.04em; }
.event-card p { font-size: 14px; }
.event-card a, .news-item span { font-size: 12px !important; }

/* ---------- SELECAO DE SERVIDOR / CRIAR PERSONAGEM (era texto claro em fundo creme) ---------- */
html body .login-panel .ct-server-wrap {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
html body .login-panel .ct-server-wrap .ct-server-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 22px 20px !important;
    border: 2px solid var(--ct-borda) !important;
    border-radius: 14px !important;
    background: linear-gradient(170deg, var(--ct-card), var(--ct-card-2)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 220, 140, 0.08) inset !important;
    color: #f4f5fb !important;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
}
html body .login-panel .ct-server-wrap .ct-server-card h3,
html body .login-panel .ct-server-wrap .ct-server-card .ct-server-name {
    margin: 0 !important;
    color: var(--ct-ouro) !important;
    font-family: Oswald, Mulish, sans-serif;
    font-size: 26px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
html body .login-panel .ct-server-wrap .ct-server-card img {
    width: auto !important;
    max-width: 70% !important;
    max-height: 120px !important;
    margin: 4px auto !important;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
html body .login-panel .ct-server-wrap .ct-server-card p,
html body .login-panel .ct-server-wrap .ct-server-card p strong,
html body .login-panel .ct-server-wrap .ct-server-card .ct-server-sub {
    margin: 0 !important;
    color: #e8eaf4 !important;
    font-size: 14px !important;
}
html body .login-panel .ct-server-wrap .ct-server-card p strong { color: #ffffff !important; }

/* formulario de personagem */
html body .login-panel .ct-server-wrap .ct-character-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; text-align: left; }
html body .login-panel .ct-server-wrap .ct-character-alert {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #f0b43c !important;
    background: #ffe9b0 !important;
    color: #3a2400 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
html body .login-panel .ct-server-wrap .ct-character-form .form-group { margin: 0 !important; }
html body .login-panel .ct-server-wrap .ct-character-name-input {
    width: 100% !important;
    height: 50px !important;
    padding: 0 14px !important;
    border: 2px solid rgba(244, 197, 66, 0.6) !important;
    border-radius: 10px !important;
    background: #070a18 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    box-shadow: none !important;
}
html body .login-panel .ct-server-wrap .ct-character-name-input::placeholder { color: #9ea3bb !important; opacity: 1; }
html body .login-panel .ct-server-wrap .ct-character-name-input:focus { border-color: var(--ct-ouro) !important; outline: 3px solid rgba(255, 212, 92, 0.25) !important; }
html body .login-panel .ct-server-wrap .ct-character-gender-group { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
html body .login-panel .ct-server-wrap .zt-character-gender-title {
    width: 100%;
    color: var(--ct-ouro) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
html body .login-panel .ct-server-wrap .ct-character-gender-option {
    display: inline-flex !important;
    flex: 1 1 120px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
    background: #1d2446 !important;
    cursor: pointer;
}
html body .login-panel .ct-server-wrap .ct-character-gender-option span { color: #ffffff !important; font-weight: 700 !important; font-size: 15px !important; }
html body .login-panel .ct-server-wrap .ct-character-gender-option input { accent-color: #f4c542; width: 18px; height: 18px; margin: 0; }
html body .login-panel .ct-server-wrap .ct-character-gender-option:has(input:checked) { border-color: var(--ct-ouro) !important; background: #2a2a1a !important; }

/* botoes dentro do cartao: texto escuro no dourado */
html body .login-panel .ct-server-wrap .ct-server-card .cta-button--play,
html body .login-panel .ct-server-wrap .ct-server-card .cta-button--play span,
html body .login-panel .ct-server-wrap .ct-server-card .cta-button--play i {
    color: #1a1000 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}
html body .login-panel .ct-server-wrap .ct-server-card .cta-button--play {
    min-height: 52px;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #ffd96a, #f0a91f) !important;
    box-shadow: 0 6px 0 #a86a0c, 0 10px 22px rgba(0, 0, 0, 0.45) !important;
}
html body .login-panel .ct-server-wrap .ct-server-card .cta-button--play:hover { filter: brightness(1.08); }

/* painel creme do launcher: titulos e textos fora dos cartoes em marrom escuro */
html.ct-launcher-html body .login-panel .section-heading h2,
body.ct-launcher .login-panel .section-heading h2 { color: #1c140c !important; }
html.ct-launcher-html body .login-panel .section-heading .section-kicker,
body.ct-launcher .login-panel .section-heading .section-kicker { color: #8a4f00 !important; }

/* ---------- ARTES: armas, roupas, avatares ---------- */
.weapon-card__media {
    background:
        radial-gradient(circle at 50% 55%, rgba(255, 212, 92, 0.22), rgba(255, 212, 92, 0) 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.35)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.weapon-card__media img {
    max-width: 88%;
    max-height: 150px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.65)) saturate(1.12) contrast(1.06);
    transition: transform 180ms ease;
}
.weapon-card:hover .weapon-card__media img { transform: scale(1.06); }
.weapon-card__stats .stat-label,
.weapon-card__stats strong { color: #eef0f8 !important; }
.weapon-card h3 { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.weapon-card__meta { color: var(--ct-ouro) !important; font-weight: 800; }
.podium-card__avatar img { image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.event-card__image, .news-item__image, .hero__items { image-rendering: high-quality; background-size: cover; }
.event-card:not(.event-card--large) .event-card__image { position: relative; }
.event-card:not(.event-card--large) .event-card__image::after {
    position: absolute; inset: 0; content: "";
    background: linear-gradient(90deg, rgba(14, 16, 36, 0) 55%, rgba(14, 16, 36, 0.95));
}

/* ---------- launcher (CefSharp): mantem a regra fundo escuro = texto claro ---------- */
html.ct-launcher-html .event-card p,
html.ct-launcher-html .news-item p,
html.ct-launcher-html .section-heading p { color: #dfe2ee !important; }
html.ct-launcher-html .event-card .event-status { color: #0f1a10 !important; background: #8ff0b8 !important; }
html.ct-launcher-html .event-card .event-status--gold { background: #ffd45c !important; color: #2a1a00 !important; }
html.ct-launcher-html .event-card .event-status--violet { background: #c8b6ff !important; color: #1d1040 !important; }
html.ct-launcher-html .event-card .event-status--red { background: #ff9aa2 !important; color: #3a0008 !important; }

@media (max-width: 600px) {
    html body .login-panel .ct-server-wrap { grid-template-columns: 1fr; }
    html body .login-panel .ct-server-wrap .ct-server-card h3 { font-size: 22px !important; }
}
