/*
 * Identidade visual "Pastel": fundo creme, azul e amarelo em tons pastéis, Fraunces nos títulos
 * e Nunito no resto. Guia completo em docs/identidade-visual.md. Só estilo aqui; nenhuma regra de negócio.
 */
:root {
    color-scheme: light;
    /* Base */
    --bg: #FBF8F1;            /* creme */
    --surface: #FFFFFF;
    --surface-soft: #F4F7FC;  /* painel azulado bem claro */
    --border: #E8E2D5;
    --border-strong: #CBD4E4;
    --text: #1B2540;
    --muted: #5B6680;
    /* Azul */
    --navy: #1F3561;          /* títulos, logotipo, texto sobre pastel */
    --blue-50: #EAF1FB;
    --blue-pastel: #BFD5F2;   /* seleção */
    --blue-bar: #7FA3D9;      /* barras (preenchimento, não texto) */
    --blue-text: #3E6BB3;     /* azul pra texto: DECK do logotipo, contador */
    /* Amarelo */
    --yellow-50: #FDF5D9;     /* faixa de aviso, chips */
    --yellow-pastel: #F7DD8A; /* ação principal */
    --yellow-hover: #F2CF62;
    /* Estados */
    --ok: #2E7D5B;
    --warn: #8A5F00;
    --danger: #A8433A;
    --danger-bar: #E8A397;
    --overlay: rgba(27, 37, 64, .6); /* fundo escurecido atrás da carta aberta */
    /* Forma */
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(27, 37, 64, .05), 0 8px 24px rgba(27, 37, 64, .06);
    --container: 1180px;
    --font-display: Fraunces, Georgia, "Times New Roman", serif;
    --font-body: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--text); }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 20;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--navy); color: #fff; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.view[hidden], [hidden] { display: none !important; }
main:focus { outline: none; }

/* ---------- Tipografia ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin: 0 0 20px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 20px;
}
.eyebrow {
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; }
h2 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--navy); }

/* ---------- Faixa e cabeçalho ---------- */
.announcement {
    background: var(--yellow-50);
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: .88rem;
    font-weight: 700;
}
.announcement a { display: block; padding: 9px 16px; color: var(--navy); text-decoration: none; }
.announcement a::after { content: " →"; }
.announcement a:hover { text-decoration: underline; }

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 248, 241, .94);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.wordmark {
    font-family: var(--font-body);
    font-size: 1.55rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--navy);
    text-decoration: none;
}
.wordmark span { color: var(--blue-text); margin-left: 2px; }
.wordmark:hover { color: var(--navy); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}
.site-nav a:hover { color: var(--navy); background: var(--blue-50); }
.site-nav a.active { color: var(--navy); background: var(--blue-pastel); }

/* ---------- Botões e links ---------- */
.button, button {
    display: inline-flex; align-items: center; justify-content: center;
    font: inherit; font-weight: 800;
    min-height: 44px; padding: 0 20px;
    border: 0; border-radius: 999px;
    background: var(--yellow-pastel); color: var(--navy);
    text-decoration: none; cursor: pointer;
    transition: background .15s, transform .15s, border-color .15s;
}
.button:hover, button:hover { background: var(--yellow-hover); color: var(--navy); }
button:disabled { opacity: .5; cursor: default; }
button.ghost {
    background: transparent; color: var(--navy);
    border: 1.5px solid var(--border-strong);
}
button.ghost:hover { background: var(--blue-50); border-color: var(--blue-bar); }

.link-arrow {
    font-weight: 800; font-size: .85rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--navy); text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.header-cta { white-space: nowrap; }

/* ---------- Início ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 56px;
}
.hero.no-art { grid-template-columns: minmax(0, 1fr); }
.hero.no-art .hero-art { display: none; }
.hero-art {
    display: flex; align-items: center; justify-content: center;
    min-height: 280px; padding: 40px;
    border-radius: 28px;
    background: var(--blue-50);
}
.hero-art img { max-height: 200px; width: auto; object-fit: contain; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }

.collection-facts {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 20px; padding: 0;
}
.collection-facts div {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .9rem;
}
.collection-facts dt { display: inline; color: var(--muted); font-weight: 700; }
.collection-facts dt::after { content: ": "; }
.collection-facts dd { display: inline; margin: 0; font-weight: 800; color: var(--navy); }

.home-section { padding: 48px 0; border-top: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }

.highlights {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}
.highlight {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    min-height: 0; padding: 0;
    background: none; border-radius: var(--radius-sm);
    color: var(--text); text-align: left; font-weight: 700;
}
.highlight:hover { background: none; transform: translateY(-4px); }
.highlight img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); aspect-ratio: 63 / 88; object-fit: cover; background: var(--blue-50); }
.highlight span { font-size: .88rem; padding: 0 2px; }

.features {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.features li {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.features li:nth-child(2) { background: var(--yellow-50); }
.features li:nth-child(3) { background: var(--blue-50); }
.features p { margin: 0; color: var(--muted); }

.news { padding-bottom: 72px; }

/* ---------- Sobre nós ---------- */
#view-sobre .container { padding-top: 72px; padding-bottom: 80px; }
#view-sobre p { font-size: 1.05rem; }
#view-sobre .section-title { margin-top: 40px; }
.principles { padding-left: 20px; }
.principles li { margin-bottom: 8px; }
.principles strong { color: var(--navy); }

/* ---------- Monte seu deck ---------- */
.page-head { padding: 48px 0 24px; }
.page-head .display { margin-bottom: 20px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs a {
    display: inline-flex; align-items: center;
    min-height: 40px; padding: 0 18px;
    border-radius: 999px;
    color: var(--muted); font-weight: 700; text-decoration: none;
}
.tabs a:hover { color: var(--navy); }
.tabs a.active { background: var(--blue-pastel); color: var(--navy); }

.deck-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    padding-bottom: 72px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
#deck-panel { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }

form { display: flex; gap: 10px; flex-wrap: wrap; }

.search-mode {
    display: inline-flex;
    margin-bottom: 12px; padding: 4px;
    border-radius: 999px;
    background: var(--surface-soft);
}
.search-mode label {
    display: flex; align-items: center;
    min-height: 38px; padding: 0 16px;
    border-radius: 999px;
    cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--muted);
}
.search-mode label:has(input:checked) { background: var(--blue-pastel); color: var(--navy); font-weight: 800; }
.search-mode label:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: -2px; }
.search-mode input { position: absolute; opacity: 0; pointer-events: none; }

input, select, textarea {
    font: inherit; font-weight: 600;
    min-height: 44px; padding: 8px 14px;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
input::placeholder, textarea::placeholder { color: #8A93A8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--blue-50); }
#search-name { flex: 1; min-width: 180px; }
textarea { width: 100%; resize: vertical; }

/* ---------- Busca avançada ---------- */
.advanced { margin-top: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.advanced-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.advanced-active { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.advanced-bar .ghost { min-height: 36px; padding: 0 14px; font-size: .85rem; background: var(--surface); }
.adv-chip {
    min-height: 32px; padding: 0 12px;
    background: var(--navy); color: #fff;
    font-size: .8rem; font-weight: 700;
    white-space: nowrap;
}
.adv-chip:hover { background: var(--text); color: #fff; }
.adv-chip span { font-size: 1rem; line-height: 1; opacity: .8; }

.advanced-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.adv-group { border-top: 1px solid var(--border); padding: 4px 0 8px; }
.adv-group summary {
    display: flex; align-items: center; gap: 8px;
    min-height: 40px; cursor: pointer; list-style: none;
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.adv-group summary::-webkit-details-marker { display: none; }
.adv-group summary::after { content: "+"; margin-left: auto; font-size: 1rem; color: var(--navy); }
.adv-group[open] summary::after { content: "−"; }
.adv-count:not(:empty) {
    padding: 1px 8px; border-radius: 999px;
    background: var(--blue-pastel); color: var(--navy); letter-spacing: 0;
}
.adv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-pills-scroll { max-height: 180px; overflow-y: auto; padding-right: 4px; }
.adv-pill { position: relative; cursor: pointer; }
.adv-pill input { position: absolute; opacity: 0; pointer-events: none; }
.adv-pill span {
    display: inline-flex; align-items: center;
    min-height: 34px; padding: 0 12px;
    border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--border-strong);
    font-size: .85rem; font-weight: 700; color: var(--text);
}
.adv-pill:hover span { border-color: var(--blue-bar); }
.adv-pill input:checked + span { background: var(--blue-pastel); border-color: var(--blue-pastel); color: var(--navy); font-weight: 800; }
.adv-pill input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.adv-numbers { display: grid; gap: 8px; }
.adv-number { display: grid; grid-template-columns: minmax(0, 1fr) 64px 96px; gap: 8px; align-items: center; }
.adv-number label { font-size: .88rem; font-weight: 700; }
.adv-number select, .adv-number input { min-height: 38px; padding: 4px 8px; }
.adv-number input { text-align: right; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.card-tile {
    display: block;
    min-height: 0; padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); text-align: left; font-weight: 700;
}
.card-tile:hover { background: var(--yellow-50); border-color: var(--yellow-pastel); transform: translateY(-3px); }
.card-tile img { width: 100%; border-radius: 8px; display: block; }
.card-tile span { display: block; font-size: .8rem; margin: 8px 2px 2px; color: var(--muted); }

.deck-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deck-head h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; }
#deck-count { color: var(--blue-text); font-weight: 900; font-variant-numeric: tabular-nums; font-size: 1.1rem; }

.badge-new {
    display: inline-block;
    margin: 6px 2px 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--yellow-pastel);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
#deck-list .badge-new { margin: 0; vertical-align: middle; }
.card-tile .badge-new { display: inline-block; margin: 4px 2px 2px; color: var(--navy); font-size: .7rem; }

.decklist-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.decklist-actions button { flex: 1; min-height: 40px; padding: 0 14px; font-size: .9rem; }
.decklist {
    margin-top: 14px; padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}
.decklist h3 { margin-bottom: 4px; }
.decklist .hint { margin: 0 0 10px; }
.decklist textarea { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85rem; font-weight: 500; line-height: 1.5; }
.decklist textarea[readonly] { background: var(--surface); }
.decklist-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.decklist-progress p { margin: 12px 0 6px; font-size: .92rem; font-weight: 800; color: var(--navy); }
.decklist-progress p.hint { margin: 6px 0 0; font-weight: 600; color: var(--muted); }
.decklist-progress progress {
    width: 100%; height: 10px;
    appearance: none; border: 0; border-radius: 999px;
    background: var(--blue-50); overflow: hidden;
}
.decklist-progress progress::-webkit-progress-bar { background: var(--blue-50); border-radius: 999px; }
.decklist-progress progress::-webkit-progress-value { background: var(--blue-bar); border-radius: 999px; transition: width .2s; }
.decklist-progress progress::-moz-progress-bar { background: var(--blue-bar); border-radius: 999px; }
.decklist-status p { margin: 10px 0 4px; font-size: .9rem; }
.decklist-status ul { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--muted); }
.warn-text { color: var(--warn); font-weight: 700; }

.stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; font-size: .8rem; }
.chip { padding: 5px 10px; border-radius: 999px; background: var(--yellow-50); color: var(--muted); font-weight: 700; }
.chip strong { color: var(--navy); font-weight: 900; font-variant-numeric: tabular-nums; }
.chip.empty { background: var(--surface-soft); opacity: .7; }

#deck-list { list-style: none; padding: 0; margin: 0 0 12px; }
#deck-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
}
#deck-list li .name { flex: 1; font-weight: 700; }
#deck-list li .set { color: var(--muted); font-size: .75rem; }
#deck-list li button {
    min-height: 32px; min-width: 32px; padding: 0 8px;
    background: transparent; color: var(--navy);
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
}
#deck-list li button:hover { background: var(--yellow-50); border-color: var(--yellow-hover); }
/* Nome da carta no deck: abre a prévia (parece texto, não botão) */
#deck-list li .card-name {
    min-height: 0; min-width: 0; padding: 0;
    background: none; border: 0; border-radius: 4px;
    color: var(--text); font: inherit; font-weight: 700; text-align: left;
    cursor: zoom-in;
    text-decoration: underline dotted var(--border-strong);
    text-underline-offset: 4px;
}
#deck-list li .card-name:hover { background: none; color: var(--navy); text-decoration-color: var(--navy); }

#deck-list .group { font-weight: 800; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 0; padding-top: 16px; }

#validation .ok { color: var(--ok); font-weight: 800; }
#validation .err { color: var(--danger); font-weight: 800; }
#validation .warn { color: var(--warn); }
#validation ul { margin: 4px 0; padding-left: 18px; font-size: .85rem; }

.ai { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.ai button { margin-top: 10px; width: 100%; }
#suggestion { white-space: pre-wrap; font-size: .92rem; line-height: 1.55; margin-top: 10px; }

.error-text { color: var(--danger); font-weight: 700; font-size: .92rem; }

/* ---------- Probabilidade de abertura ---------- */
.calc { max-width: 900px; margin-bottom: 72px; }
.calc-top { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin: 18px 0; }
.calc-form { display: grid; grid-template-columns: auto 110px; gap: 10px 16px; align-items: center; }
.calc-form label { font-size: .95rem; font-weight: 700; }
.calc-form input { text-align: right; font-size: 1.05rem; font-weight: 800; width: 110px; font-variant-numeric: tabular-nums; }
.calc-form input[readonly] { background: var(--surface-soft); color: var(--muted); }
.calc-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.hint-inline {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-pastel); color: var(--navy); font-size: .7rem; font-weight: 800; cursor: help;
}
.calc-starters {
    flex: 1; min-width: 220px; padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    font-size: .9rem;
}
.calc-starters .starters-title { margin: 0 0 8px; font-weight: 800; }
.calc-starters .starter { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.calc-starters .starter input { min-height: 0; accent-color: var(--navy); width: 18px; height: 18px; }
.calc-starters .hint { margin: 8px 0 0; }

.calc-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.calc-table th { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; border-bottom: 2px solid var(--border-strong); }
.calc-table th:last-child, .calc-table td.pct { text-align: right; }
.calc-table td { padding: 12px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.calc-table td.pct { font-weight: 900; font-size: 1.25rem; color: var(--navy); white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.calc-table .event { display: block; font-weight: 800; }
.calc-table .event-help { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.bar { height: 6px; border-radius: 3px; background: var(--blue-50); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue-bar); border-radius: 3px; }
.bar.bad span { background: var(--danger-bar); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 24px 48px;
    padding-top: 40px; padding-bottom: 40px;
}
.footer-inner p { margin: 8px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { font-weight: 700; text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--navy); }
.disclaimer { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Prévia da carta ---------- */
.card-preview-float {
    position: fixed; z-index: 50;
    width: 280px;
    pointer-events: none;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.card-preview-float img, .card-preview-image img { display: block; width: 100%; border-radius: 14px; }
.card-preview-modal {
    position: fixed; inset: 0; z-index: 60;
    display: grid; place-items: center;
    padding: 16px;
    background: var(--overlay);
}
.card-preview-modal[hidden] { display: none; }
.card-preview-box { display: grid; gap: 14px; justify-items: center; width: min(380px, 100%); }
.card-preview-image { width: 100%; max-height: calc(100vh - 110px); aspect-ratio: 245 / 342; max-width: calc((100vh - 110px) * 245 / 342); }
.card-preview-modal .card-preview-close { background: var(--surface); border-color: var(--surface); min-width: 140px; }
.card-preview-modal .card-preview-close:hover { background: var(--blue-50); }
body.no-scroll { overflow: hidden; }

/* Carta sem imagem na API (algumas promos): carta genérica com o nome */
.card-placeholder {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    aspect-ratio: 245 / 342; width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px dashed var(--border-strong);
    background: var(--surface-soft);
    text-align: center;
}
.card-placeholder strong { color: var(--navy); font-size: 1rem; font-weight: 800; line-height: 1.2; }
.card-placeholder span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.card-placeholder small { color: var(--muted); font-size: .7rem; }
.card-tile .card-placeholder span { margin: 0; }
.card-preview-float .card-placeholder, .card-preview-image .card-placeholder { border-radius: 14px; background: var(--surface); }
.card-preview-image .card-placeholder strong, .card-preview-float .card-placeholder strong { font-size: 1.3rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .deck-layout { grid-template-columns: 1fr; }
    #deck-panel { position: static; max-height: none; }
}

@media (max-width: 760px) {
    .advanced-groups { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .header-inner { flex-wrap: wrap; gap: 4px 12px; min-height: 0; padding-top: 12px; padding-bottom: 8px; }
    .header-cta { display: none; }
    .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
    .site-nav a { padding: 0 12px; white-space: nowrap; }
    .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
    .hero-art { order: -1; min-height: 160px; padding: 24px; }
    .hero-art img { max-height: 110px; }
    .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .features { grid-template-columns: 1fr; }
    .home-section { padding: 36px 0; }
    .page-head { padding-top: 32px; }
    .tabs { display: flex; width: 100%; }
    .tabs a { flex: 1; justify-content: center; padding: 0 10px; text-align: center; }
    .panel { padding: 18px; }
    .footer-inner { grid-template-columns: 1fr; }
}
