/* ============================================================
   BARALHO CIGANO ONLINE — style.css
   ============================================================ */

/* ============================================================
   CSS VARIABLES — TEMA ESCURO (padrão)
   ============================================================ */
:root {
    --bg-deep: #0d0818;
    --bg-mid: #1a0a2e;
    --bg-card: #2d1b4e;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --gold: #ffd700;
    --gold-dim: #c9a86c;
    --gold-light: #ffe66d;
    --text-main: #f0dfc0;
    --text-sub: #c9a86c;
    --text-muted: #b09878;
    --text-dim: #8a7a66;
    --border: rgba(201, 168, 108, 0.22);
    --border-hover: rgba(255, 215, 0, 0.5);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    /* Inputs / areas */
    --input-bg: rgba(255,255,255,0.05);
    --input-border: rgba(201,168,108,0.22);
    --modal-bg: #1f1030;
    --card-bg-a: #2a1a40;
    --card-bg-b: #3d2a5c;
}

/* ============================================================
   TEMA CLARO (data-theme="light")
   ============================================================ */
[data-theme="light"] {
    --bg-deep: #f5f0e8;
    --bg-mid: #ece4d4;
    --bg-card: #fff8ee;
    --bg-glass: rgba(0, 0, 0, 0.04);
    --gold: #8b6914;
    --gold-dim: #a07830;
    --gold-light: #c89a40;
    --text-main: #2a1a0a;
    --text-sub: #6b4c1e;
    --text-muted: #7a5a30;
    --text-dim: #9a7a50;
    --border: rgba(139, 105, 20, 0.25);
    --border-hover: rgba(139, 105, 20, 0.6);
    --shadow-gold: 0 8px 32px rgba(139, 105, 20, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0,0,0,0.04);
    --input-border: rgba(139,105,20,0.3);
    --modal-bg: #f0e8d8;
    --card-bg-a: #e8dcc8;
    --card-bg-b: #ddd0b8;
}

[data-theme="light"] body {
    background: var(--bg-deep);
    color: var(--text-main);
}
[data-theme="light"] .card {
    background: linear-gradient(145deg, var(--card-bg-a), var(--card-bg-b));
    border-color: rgba(139,105,20,0.35);
}
[data-theme="light"] .card.flipped {
    background: #fff8ee;
    border-color: var(--gold-dim);
}
[data-theme="light"] .combination-item,
[data-theme="light"] .story-step,
[data-theme="light"] .reading-block {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .combo-tab {
    border-color: rgba(139,105,20,0.3);
    color: var(--text-muted);
}
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.45); }
[data-theme="light"] .modal { background: var(--modal-bg); }
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #8b6914, #c9a86c);
    color: #fff;
}
[data-theme="light"] .btn-secondary {
    border-color: rgba(139,105,20,0.4);
    color: var(--text-muted);
}
[data-theme="light"] .site-header { background: rgba(245,240,232,0.95); }
[data-theme="light"] .area-option { background: rgba(0,0,0,0.04); }
[data-theme="light"] .spread-slot { background: rgba(0,0,0,0.06); }
[data-theme="light"] .spread-slot.filled { background: #fff8ee; }
[data-theme="light"] .loading-box { background: var(--modal-bg); }
[data-theme="light"] .tag { background: rgba(139,105,20,0.12); color: var(--text-muted); }
[data-theme="light"] .form-group input { background: var(--input-bg); border-color: var(--input-border); color: var(--text-main); }

/* Botão de tema */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.theme-toggle-btn:hover {
    border-color: var(--gold-dim);
    color: var(--gold-dim);
    background: rgba(201,168,108,0.08);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-deep);
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 18px;
}

/* === SCREEN SYSTEM === */
.screen {
    display: none;
    min-height: 100vh;
    animation: screenIn 0.35s ease;
}
.screen.active { display: block; }

@keyframes screenIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === TYPOGRAPHY === */
.gold-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.screen-title {
    font-size: 1.65rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 10px;
    margin-top: 24px;
}

.screen-subtitle {
    text-align: center;
    color: var(--text-sub);
    font-style: italic;
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    color: #1a0a2e;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-hero {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    color: #1a0a2e;
    padding: 18px 44px;
    font-size: 1.1rem;
    font-weight: 700;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,215,0,0.4); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold-dim);
    color: var(--gold-dim);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(201,168,108,0.14);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-shuffle {
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    color: #fff;
}
.btn-shuffle:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(155,89,182,0.4); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold-dim); }

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 4px;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-back:hover { color: var(--gold-dim); }

.btn-premium {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(155,89,182,0.4); }

/* === PROGRESS BAR === */
.screen-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0 8px;
}

.progress-bar {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.progress-bar::-webkit-scrollbar { display: none; }

.progress-step {
    flex: 1;
    min-width: 52px;
    text-align: center;
    font-size: 0.72rem;
    padding: 6px 3px;
    border-radius: 20px;
    border: 1px solid rgba(100,80,60,0.3);
    color: rgba(100,80,60,0.7);
    white-space: nowrap;
    font-family: inherit;
}
.progress-step.active { background: rgba(255,215,0,0.14); border-color: var(--gold-dim); color: var(--gold-dim); font-weight: 600; }
.progress-step.done   { background: rgba(255,215,0,0.06); border-color: rgba(201,168,108,0.35); color: var(--text-muted); }

/* === LANDING — HERO === */
.landing-hero {
    background: linear-gradient(160deg, #0d0818 0%, #1a0a2e 40%, #2d1b4e 70%, #1a0a2e 100%);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 82vh;
    display: flex;
    align-items: center;
}

.stars-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,215,0,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 18%, rgba(255,215,0,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 55%, rgba(255,215,0,0.55) 0%, transparent 100%),
        radial-gradient(1px 1px at 8% 68%, rgba(255,215,0,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 78%, rgba(255,215,0,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 88%, rgba(255,215,0,0.25) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 65% 38%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 42% 8%, rgba(255,255,255,0.18) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 45%, rgba(255,215,0,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 92%, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.landing-hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.28);
    color: var(--gold-dim);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    margin-bottom: 26px;
}

.landing-hero h1 {
    font-size: 3.6rem;
    color: var(--text-main);
    line-height: 1.08;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}

.hero-subtitle {
    font-size: 1.14rem;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 38px;
    line-height: 1.72;
}

.hero-disclaimer {
    margin-top: 22px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* === LANDING — HOW IT WORKS === */
.landing-how {
    background: rgba(0,0,0,0.28);
    padding: 64px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px 22px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-card:hover { border-color: var(--border-hover); }

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { color: var(--gold-dim); font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* === LANDING — AREAS PREVIEW === */
.landing-areas { padding: 60px 0; }

.areas-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.area-preview-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.area-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-hover); }

.area-preview-icon { font-size: 1.8rem; margin-bottom: 8px; }
.area-preview-label { font-size: 0.78rem; color: var(--text-sub); font-weight: 600; line-height: 1.3; }

/* === LANDING — FOOTER AREA === */
.landing-disclaimer {
    background: rgba(255,140,0,0.05);
    border-top: 1px solid rgba(255,140,0,0.12);
    border-bottom: 1px solid rgba(255,140,0,0.12);
    padding: 22px 0;
    text-align: center;
}
.landing-disclaimer p {
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-history { padding: 22px 0; text-align: center; }

.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.82rem;
}
.footer-sub { margin-top: 4px; font-size: 0.78rem; font-style: italic; }

/* === SCREEN: AREA SELECTION === */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.area-option {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}
.area-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.area-option.selected { border-width: 2px; }

.area-option-icon { font-size: 2rem; flex-shrink: 0; }
.area-option-text h3 { font-size: 0.98rem; margin-bottom: 4px; }
.area-option-text p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* === SCREEN: QUESTION === */
.area-selected-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--text-sub);
    width: fit-content;
    margin: 8px auto 6px;
}
.area-selected-badge.small { font-size: 0.78rem; padding: 5px 12px; margin: 0; }

.question-box {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 22px;
}
.question-box label { display: block; color: var(--gold-dim); font-size: 0.88rem; margin-bottom: 10px; }

.question-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    padding: 14px;
    resize: none;
    transition: var(--transition);
    line-height: 1.55;
}
.question-input:focus { outline: none; border-color: var(--gold-dim); }
.question-input::placeholder { color: rgba(100,80,50,0.5); font-style: italic; }

.char-count { text-align: right; font-size: 0.72rem; color: var(--text-dim); margin-top: 6px; }

.suggestions-section { margin-bottom: 28px; }
.suggestions-label { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }

.suggestions-grid { display: flex; flex-direction: column; gap: 8px; }

.suggestion-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-sub);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    line-height: 1.4;
}
.suggestion-btn:hover { background: rgba(201,168,108,0.1); border-color: var(--gold-dim); color: var(--text-main); }

.question-actions { text-align: center; padding-bottom: 44px; }

/* === SCREEN: SPREAD SELECTION === */
.spread-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.spread-option {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}
.spread-option:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: var(--shadow-card); }
.spread-option.selected { border-color: var(--gold); background: rgba(255,215,0,0.05); }

.spread-num { font-size: 2.8rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.spread-name { font-size: 0.98rem; color: var(--text-main); font-weight: 600; margin-bottom: 7px; }
.spread-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.spread-positions { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.spread-pos-tag { background: rgba(255,215,0,0.08); color: rgba(200,168,108,0.7); padding: 3px 9px; border-radius: 10px; font-size: 0.7rem; }

/* === SCREEN: MODO (FÍSICO / VIRTUAL) === */
.mode-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    cursor: pointer;
    transition: var(--transition);
}
.mode-option:hover {
    transform: translateY(-3px);
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-card);
}
.mode-option--highlight {
    border-color: var(--gold-dim);
    background: rgba(255,215,0,0.04);
}
.mode-option--highlight:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
}
.mode-option-icon {
    font-size: 2.6rem;
    flex-shrink: 0;
    line-height: 1;
}
.mode-option-body h3 {
    font-size: 1.05rem;
    color: var(--gold);
    margin: 0 0 6px;
    font-family: 'Cinzel', serif;
}
.mode-option-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* === SCREEN: BARALHO FÍSICO === */
.physical-grid-wrap {
    padding: 12px 16px 24px;
    overflow-x: auto;
}

.physical-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.physical-card {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 4px 8px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.physical-card img {
    width: 100%;
    max-width: 60px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}
.physical-card-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.physical-card-name {
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.2;
    word-break: break-word;
}
.physical-card:hover:not(.disabled):not(.selected) {
    border-color: var(--gold-dim);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.physical-card.selected {
    border-color: var(--gold);
    background: rgba(255,215,0,0.08);
    box-shadow: 0 0 12px rgba(255,215,0,0.2);
}
.physical-card.selected .physical-card-num,
.physical-card.selected .physical-card-name {
    color: var(--gold);
}
.physical-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 480px) {
    .physical-deck-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 7px; }
    .mode-option { padding: 16px 14px; }
    .mode-option-icon { font-size: 2rem; }
}

/* === SCREEN: RITUAL === */
.ritual-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 18px;
}

.ritual-content { max-width: 500px; margin-bottom: 40px; }

.ritual-symbol {
    font-size: 4.2rem;
    margin-bottom: 26px;
    animation: ritualPulse 2.4s ease-in-out infinite;
    display: block;
}
@keyframes ritualPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.25); }
}

.ritual-content h2 { font-size: 1.8rem; color: var(--gold); margin-bottom: 16px; }
.ritual-content p { font-size: 1.05rem; color: var(--text-sub); line-height: 1.72; font-style: italic; }

.ritual-question {
    margin-top: 22px;
    padding: 16px 20px;
    background: rgba(255,215,0,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
}
.ritual-question.show { display: block; }

.ritual-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-7px); }
    30%, 60%, 90% { transform: translateX(7px); }
}
.shaking { animation: shake 0.5s ease-in-out; }

/* === SCREEN: GAME === */
.screen-header.compact { padding: 14px 0 6px; }

.game-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.game-question-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-header { text-align: center; margin: 10px 0 16px; }
.selection-info { font-size: 1.1rem; color: var(--gold); margin-bottom: 4px; }
.selection-hint { font-size: 0.84rem; color: var(--text-muted); font-style: italic; }

/* Spread area */
.spread-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 18px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-lg);
    min-height: 130px;
    border: 1px solid var(--border);
}

.spread-slot {
    width: 80px;
    height: 118px;
    border: 2px dashed rgba(201,168,108,0.35);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition);
    background: rgba(0,0,0,0.14);
    overflow: hidden;
}
.spread-slot.filled {
    border: 2px solid var(--gold-dim);
    background: #f5f0e8;
    box-shadow: 0 0 16px rgba(255,215,0,0.18);
}

.spread-slot .position {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0a2e;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    z-index: 3;
}

.spread-slot .slot-pos-name {
    font-size: 0.58rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 4px;
    margin-bottom: 3px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
/* Com imagem, número fica como overlay pequeno */
.spread-slot .slot-card-number {
    font-size: 0.68rem;
    font-weight: bold;
    color: var(--gold);
    position: absolute;
    bottom: 16px;
    left: 0; right: 0;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.spread-slot .slot-card-name {
    font-size: 0.56rem;
    color: #fff;
    position: absolute;
    bottom: 4px;
    left: 0; right: 0;
    text-align: center;
    padding: 0 2px;
    line-height: 1.1;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.spread-slot .empty-text { color: rgba(100,80,50,0.4); font-size: 1.4rem; }

/* Deck — grid direto no elemento pai das cartas */
.deck-container {
    max-width: 960px;
    margin: 0 auto 24px;
    padding: 0 8px;
}
#deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}

/* Card */
.card {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(201,168,108,0.28);
    background: linear-gradient(145deg, var(--card-bg-a, #2a1a40), var(--card-bg-b, #3d2a5c));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card:hover:not(.selected):not(.disabled) {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 32px rgba(255,215,0,0.28);
    border-color: var(--gold-dim);
    z-index: 2;
}
.card.selected { opacity: 0.32; cursor: not-allowed; transform: scale(0.94); }
.card.disabled { opacity: 0.18; cursor: not-allowed; }

/* Verso da carta: usa imagem WebP ou fallback com padrão CSS */
.card-back-pattern {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--card-back-img, none);
    background-size: cover;
    background-position: center;
    /* fallback geométrico caso a imagem não carregue */
    background-color: transparent;
}
.card-back-pattern.no-img {
    background:
        linear-gradient(45deg, rgba(201,168,108,0.07) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(201,168,108,0.07) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(201,168,108,0.07) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(201,168,108,0.07) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.card-back-symbol {
    position: relative;
    z-index: 1;
    font-size: 1.7rem;
    color: rgba(201,168,108,0.45);
}

/* Imagem da carta (frente) */
.card-face-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: inherit;
}
/* Overlay translúcido para número + nome sobre a imagem */
.card-face-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 4px 4px 5px;
    display: none;
    z-index: 2;
}
.card-number {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--gold);
    display: none;
    position: relative;
    z-index: 1;
}
.card-name {
    font-size: 0.6rem;
    color: #fff;
    display: none;
    text-align: center;
    padding: 0 2px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* Estado FLIPPED: esconde o verso e mostra a frente */
.card.flipped .card-back-pattern,
.card.flipped .card-back-symbol { display: none; }
.card.flipped .card-face-img { display: block; }
.card.flipped .card-face-overlay { display: block; }
.card.flipped .card-number,
.card.flipped .card-name { display: block; }
.card.flipped {
    background: #f5f0e8; /* fundo claro para as cartas antigas */
    border-color: var(--gold-dim);
}

/* Slots do spread com imagem */
.spread-slot.filled .slot-card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}
.spread-slot.filled .slot-card-img.hidden { display: none; }

@keyframes cardReveal {
    0%   { transform: scale(0.6) rotateY(90deg); opacity: 0; }
    65%  { transform: scale(1.05) rotateY(-4deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}
.card-reveal { animation: cardReveal 0.5s ease-out; }

.game-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 44px;
}

/* === SCREEN: READING === */
#screen-reading {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    padding: 0 0 64px;
}

#reading-report { padding: 0 16px; }

.reading-header { text-align: center; padding: 32px 0 22px; }

.reading-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.88rem;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.reading-title { font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; }

.reading-question {
    font-size: 0.98rem;
    color: var(--text-sub);
    font-style: italic;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Reading blocks */
.reading-block {
    background: rgba(45,27,78,0.38);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 18px;
}

.block-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.block-label.sub {
    font-size: 0.98rem;
    color: var(--gold-dim);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 14px;
    margin-top: 22px;
}
.block-icon { font-size: 1.15rem; }

/* Cards summary */
.selected-cards-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selected-card-item {
    background: linear-gradient(145deg, #4a2d6a, #3d2a5c);
    border: 2px solid var(--gold-dim);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    min-width: 88px;
    position: relative;
}
.selected-card-item .order {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0a2e;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.74rem;
}
.selected-card-item .card-num { font-size: 1.65rem; color: var(--gold); font-weight: bold; }
.selected-card-item .card-nm { font-size: 0.78rem; color: var(--text-main); margin-top: 4px; }
.selected-card-item .card-pos { font-size: 0.66rem; color: var(--text-muted); margin-top: 6px; line-height: 1.2; }

/* Individual readings */
.individual-card {
    background: rgba(0,0,0,0.18);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
    border-left: 4px solid var(--gold-dim);
}
.individual-card:last-child { margin-bottom: 0; }

.individual-card h4 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.position-label {
    background: rgba(255,215,0,0.14);
    color: var(--gold-dim);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.73rem;
    font-weight: normal;
}

.individual-card p {
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.93rem;
}
.individual-card p:last-of-type { margin-bottom: 0; }

.keywords { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.keyword {
    background: rgba(255,215,0,0.1);
    color: var(--gold-dim);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
}

/* Combinations */
.area-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.area-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: var(--transition);
}
.area-btn:hover { background: rgba(201,168,108,0.14); color: var(--text-main); }
.area-btn.active { background: rgba(201,168,108,0.28); border-color: var(--gold-dim); color: #fff; font-weight: 600; }

.area-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 9px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}
.area-geral    { background: rgba(100,180,255,0.2); color: #7ec8f7; border: 1px solid #7ec8f7; }
.area-amor     { background: rgba(255,100,150,0.2); color: #f78fb3; border: 1px solid #f78fb3; }
.area-trabalho { background: rgba(255,200,80,0.2);  color: #ffd700; border: 1px solid #ffd700; }
.area-saude    { background: rgba(80,220,120,0.2);  color: #6ddc8b; border: 1px solid #6ddc8b; }

.combination-item {
    background: rgba(0,0,0,0.18);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 4px solid var(--gold-dim);
}

/* Cabeçalho do card de combinação */
.combo-header { margin-bottom: 8px; }
.combo-header .positions-label { font-size: 0.78rem; color: var(--text-dim); display: block; margin-bottom: 4px; }
.combo-cards-title { color: var(--gold-dim); font-size: 0.92rem; margin: 0 0 6px; }

/* Aba de área única (sem tabs) */
.combo-single-area { margin-bottom: 8px; }

/* Tabs de área dentro do card */
.combo-area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.combo-tab {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.18s;
}
.combo-tab:hover { color: var(--text-muted); border-color: rgba(201,168,108,0.4); }
.combo-tab.active { background: rgba(201,168,108,0.12); border-color: var(--gold-dim); color: var(--gold-dim); font-weight: 500; }
.combo-tab.area-amor.active   { background: rgba(247,143,179,0.14); border-color: #f78fb3; color: #f78fb3; }
.combo-tab.area-trabalho.active { background: rgba(255,215,0,0.1); border-color: #ffd700; color: #ffd700; }
.combo-tab.area-saude.active  { background: rgba(109,220,139,0.12); border-color: #6ddc8b; color: #6ddc8b; }
.combo-tab.area-geral.active  { background: rgba(126,200,247,0.12); border-color: #7ec8f7; color: #7ec8f7; }

/* Conteúdo das abas */
.combo-content { display: none; }
.combo-content.active { display: block; }
.combo-content p { line-height: 1.62; color: var(--text-main); font-size: 0.92rem; margin: 0 0 6px; }

/* Separadores dos badges de área no header */
.combination-item h4 { color: var(--gold-dim); margin-bottom: 6px; font-size: 0.92rem; }
.combination-item .positions { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
.combination-item p { line-height: 1.62; color: var(--text-main); font-size: 0.92rem; }
.combination-item .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: rgba(201,168,108,0.14); color: var(--text-muted); padding: 2px 9px; border-radius: 12px; font-size: 0.72rem; }
.no-combination { text-align: center; color: var(--text-dim); font-style: italic; padding: 20px; }

/* Story section */
.story-section { margin-top: 0; padding-top: 6px; }

.story-step {
    background: rgba(0,0,0,0.18);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border-left: 4px solid var(--gold-dim);
    margin-bottom: 4px;
}
.story-cards { font-size: 0.8rem; color: var(--gold-dim); margin-bottom: 6px; font-weight: 600; }
.story-prefix { font-style: italic; color: var(--text-muted); margin-right: 4px; }
.story-text { color: var(--text-main); line-height: 1.65; font-size: 0.92rem; }
.story-arrow { text-align: center; color: rgba(201,168,108,0.38); font-size: 1.3rem; margin: 2px 0; }

/* Advice */
.advice-text {
    background: rgba(255,215,0,0.04);
    border: 1px solid rgba(255,215,0,0.14);
    border-radius: var(--radius-md);
    padding: 20px;
    color: var(--text-main);
    line-height: 1.72;
    font-size: 0.95rem;
}

/* Attention keywords */
.attention-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.attention-kw {
    background: rgba(255,215,0,0.09);
    border: 1px solid rgba(255,215,0,0.2);
    color: var(--gold-dim);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
}

/* Final phrase */
.final-phrase-block {
    text-align: center;
    background: linear-gradient(135deg, rgba(155,89,182,0.12), rgba(255,215,0,0.04));
    border-color: rgba(155,89,182,0.28);
}
.final-phrase {
    font-size: 1.08rem;
    color: var(--text-sub);
    font-style: italic;
    line-height: 1.72;
    max-width: 560px;
    margin: 0 auto;
}

/* Reading action buttons */
.reading-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 22px;
}

/* Premium block */
.premium-block {
    text-align: center;
    background: linear-gradient(135deg, rgba(155,89,182,0.1), rgba(0,0,0,0.18));
    border: 1px solid rgba(155,89,182,0.28);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    margin-top: 8px;
}
.premium-badge {
    display: inline-block;
    background: rgba(155,89,182,0.28);
    color: #c39bd3;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.premium-block h3 { color: #c39bd3; font-size: 1.08rem; margin-bottom: 8px; }
.premium-block p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5; }

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,8,24,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}
.loading-content { text-align: center; }
.loading-spinner {
    font-size: 3rem;
    color: var(--gold);
    animation: spinGlow 1.8s linear infinite;
    display: block;
    margin-bottom: 18px;
}
@keyframes spinGlow {
    from { transform: rotate(0deg); filter: brightness(1); }
    50%  { filter: brightness(1.5); }
    to   { transform: rotate(360deg); filter: brightness(1); }
}
.loading-content p { color: var(--text-sub); font-size: 1rem; font-style: italic; }

/* === MODALS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.modal {
    background: linear-gradient(145deg, #2d1b4e, #1a0a2e);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: screenIn 0.3s ease;
}
.modal-wide { max-width: 600px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    line-height: 1;
}
.modal-close:hover { color: var(--text-main); }

.modal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.modal h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 10px; }
.modal p, .modal-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.55; }
.modal-sub { font-size: 0.8rem; margin-bottom: 16px; }

.modal-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.94rem;
    padding: 12px 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.modal-input:focus { outline: none; border-color: var(--gold-dim); }
.modal-input::placeholder { color: rgba(100,80,50,0.5); }

.success-msg { color: #6ddc8b; font-size: 1rem; padding: 12px 0; }

/* History items */
.history-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    text-align: left;
}
.history-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.history-area { font-size: 0.84rem; color: var(--gold-dim); font-weight: 600; }
.history-date { font-size: 0.76rem; color: var(--text-dim); }
.history-question { font-size: 0.83rem; color: var(--text-muted); font-style: italic; margin-bottom: 8px; line-height: 1.4; }
.history-cards { display: flex; flex-wrap: wrap; gap: 5px; }
.history-card-tag { background: rgba(255,215,0,0.08); color: var(--text-muted); padding: 2px 9px; border-radius: 10px; font-size: 0.74rem; }
.no-history { text-align: center; color: var(--text-dim); font-style: italic; padding: 30px; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a2e1a;
    border: 1px solid #6ddc8b;
    color: #6ddc8b;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === UTILITIES === */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* === MISSING / SUPPLEMENT STYLES === */

/* Layout geral de telas */
.screen-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}
.screen-title-group { margin-bottom: 28px; }
.screen-title-group h2 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.6rem; margin-bottom: 8px; }

/* Header do site */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-symbol { font-size: 1.5rem; }
.logo-text { font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--gold-dim); letter-spacing: 0.5px; }
.header-nav { display: flex; gap: 10px; }

/* Hero */
.hero {
    text-align: center;
    padding: 70px 24px 60px;
    max-width: 700px;
    margin: 0 auto;
}
.hero-tag {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 22px;
    font-weight: 700;
}
.gold { color: var(--gold); }
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Disclaimer banner */
.disclaimer-banner {
    background: rgba(255,215,0,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.disclaimer-banner p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.8;
}
.footer-disclaimer { font-size: 0.73rem; color: var(--text-dim); opacity: 0.7; }
.footer-credits-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.73rem;
    cursor: pointer;
    padding: 2px 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.footer-credits-btn:hover { opacity: 1; text-decoration: underline; }

/* Card de créditos no modal */
.credits-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.credits-title { font-family: 'Cinzel', serif; color: var(--gold-dim); margin-bottom: 10px; font-size: 0.95rem; }
.credits-line { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; line-height: 1.5; }
.credits-line a { color: var(--gold-dim); text-decoration: underline; }

/* Progress fill */
.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Campo de pergunta */
.question-field { margin-bottom: 24px; }
.field-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.char-counter { text-align: right; font-size: 0.76rem; color: var(--text-dim); margin-top: 6px; }

/* Game header */
.game-header {
    text-align: center;
    padding: 20px 20px 10px;
    max-width: 720px;
    margin: 0 auto;
}
.game-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.game-title { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: 8px; }
.game-subtitle { font-size: 0.9rem; color: var(--text-muted); }
.game-question-preview { font-size: 0.85rem; font-style: italic; color: var(--text-dim); margin-bottom: 10px; max-width: 500px; margin: 0 auto 10px; }

/* Game controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    max-width: 720px;
    margin: 0 auto;
}

/* Block title (leitura) */
.block-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold-dim);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

/* Area filter bar */
.area-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* Reading CTA */
.reading-cta {
    text-align: center;
    padding: 28px 20px;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}
.reading-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

/* Form group (modal) */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold-dim);
    background: rgba(255,215,0,0.04);
}

/* Final advice */
.final-advice {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .landing-hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .areas-preview-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .area-preview-label { font-size: 0.72rem; }
    .areas-grid { grid-template-columns: 1fr; }
    .spread-options { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
    .screen-title { font-size: 1.4rem; }
    .deck-container { padding: 0 4px; }
    #deck { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 6px; }
    .game-buttons { flex-direction: column; align-items: center; }
    .game-buttons .btn { width: 100%; max-width: 340px; }
    .reading-actions { flex-direction: column; align-items: center; }
    .reading-actions .btn { width: 100%; max-width: 340px; }
    .spread-area { gap: 8px; padding: 12px 8px; }
    .spread-slot { width: 68px; height: 102px; }
    .progress-bar { gap: 3px; }
    .progress-step { font-size: 0.64rem; padding: 5px 2px; min-width: 48px; }
    .modal { padding: 24px 16px; }
    .reading-block { padding: 18px 14px; }
    .selected-cards-display { gap: 8px; }
    .selected-card-item { min-width: 74px; padding: 14px 10px; }
}

@media (max-width: 480px) {
    .landing-hero { padding: 50px 0 42px; min-height: 72vh; }
    .landing-hero h1 { font-size: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .areas-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .spread-slot { width: 56px; height: 86px; }
    .spread-slot .slot-pos-name { display: none; }
    .spread-slot .slot-card-number { font-size: 1.3rem; }
    .area-option { padding: 14px 12px; gap: 10px; }
    .area-option-icon { font-size: 1.7rem; }
    .ritual-content h2 { font-size: 1.5rem; }
    .landing-hero h1 { font-size: 1.9rem; }
    #deck { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; }
    .theme-toggle-btn { padding: 4px 8px; font-size: 0.75rem; }
    #themeLabel { display: none; }
}
