:root {
    --bg-dark: #08070e;
    --bg-surface: rgba(18, 16, 28, 0.75);
    --bg-card: rgba(26, 23, 42, 0.65);
    --primary: #e2b755; /* Metallic Gold */
    --primary-glow: rgba(226, 183, 85, 0.4);
    --accent: #a855f7; /* Mystic Purple */
    --accent-glow: rgba(168, 85, 247, 0.4);
    --cyan: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(226, 183, 85, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --glass: blur(14px) saturate(180%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, .roman-num, .card-title, .logo span, .vip-title {
    font-family: 'Cinzel', 'Outfit', serif;
    letter-spacing: 0.5px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(226, 183, 85, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 60%);
    overflow-x: hidden;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* App Container */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.header-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(226, 183, 85, 0.1);
    border-color: var(--border);
}

/* Navigation Tabs */
.app-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex: 0 1 auto;
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(226, 183, 85, 0.08);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(226, 183, 85, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(226, 183, 85, 0.2);
}

@media (max-width: 600px) {
    .app-tabs {
        gap: 0.35rem;
    }
    .tab-btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
}

/* Tab Contents */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

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

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 2.2rem;
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.08rem;
    font-weight: 300;
}

/* Config Panels / Cards */
.config-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.config-panel h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-align: center;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.55rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-select:focus, .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Mode Options Grid */
.mode-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.mode-option {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.25s ease;
    position: relative;
}

.mode-option input {
    position: absolute;
    opacity: 0;
}

.mode-option:hover {
    border-color: var(--primary);
    background: rgba(226, 183, 85, 0.05);
}

.mode-option.selected {
    border-color: var(--primary);
    background: rgba(226, 183, 85, 0.15);
    box-shadow: 0 0 15px rgba(226, 183, 85, 0.2);
}

.mode-option-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mode-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #e2b755 0%, #b8860b 100%);
    color: #08070e;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(226, 183, 85, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(226, 183, 85, 0.5);
}

.btn-vip {
    background: linear-gradient(135deg, #009ee3 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(0, 158, 227, 0.45);
    transition: all 0.25s ease;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 158, 227, 0.6);
    filter: brightness(1.05);
}

.btn-mystic-temple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(226, 183, 85, 0.2) 100%);
    border: 1px solid var(--accent);
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-mystic-temple:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(226, 183, 85, 0.3) 100%);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* VIP Conversion Panel & Locked Rows */
.vip-panel-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 18px;
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, rgba(226, 183, 85, 0.14) 0%, rgba(15, 13, 26, 0.96) 100%);
    box-shadow: 0 8px 32px rgba(226, 183, 85, 0.2);
    position: relative;
}

.vip-badge {
    background: linear-gradient(90deg, #e2b755, #f59e0b);
    color: #08070e;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.vip-locked-row {
    background: rgba(0, 0, 0, 0.55);
    border: 1px dashed rgba(226, 183, 85, 0.35);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 0.5rem;
    filter: saturate(0.8);
}

.vip-result-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(226, 183, 85, 0.16) 0%, rgba(12, 10, 20, 0.98) 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 35px rgba(226, 183, 85, 0.25);
}

/* Tarot Cards Display Grid */
.cards-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem 0;
}

.cards-display-grid.single-card {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.cards-display-grid-celtic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0 2.5rem 0;
}

/* 3D Flip Tarot Card */
.tarot-card-flip-wrap {
    perspective: 1000px;
    width: 100%;
    min-height: 490px;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 490px;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.tarot-card-flip-wrap.flipped .tarot-card-inner {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 0.95rem 0.9rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Reverso (Back) de la Carta */
.tarot-card-front {
    background: linear-gradient(145deg, #161226 0%, #0a0815 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(226, 183, 85, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-ornament {
    width: 90%;
    height: 90%;
    border: 1px dashed rgba(226, 183, 85, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.card-back-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(226, 183, 85, 0.3)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
}

.card-back-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.card-back-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Anverso (Front) de la Carta Revelada */
.tarot-card-back {
    background: linear-gradient(145deg, #1b1730 0%, #0e0c1a 100%);
    border: 2px solid var(--primary);
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(226, 183, 85, 0.2);
    text-align: left;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 183, 85, 0.35) transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
}

.tarot-card-back::-webkit-scrollbar {
    width: 4px;
}

.tarot-card-back::-webkit-scrollbar-thumb {
    background: rgba(226, 183, 85, 0.35);
    border-radius: 4px;
}

.card-header-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 183, 85, 0.3);
    padding-bottom: 0.3rem;
    margin-bottom: 0.15rem;
}

.card-position-name {
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
}

.card-roman {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.card-center-icon {
    text-align: center;
    font-size: 2rem;
    margin: 0.1rem 0;
}

.card-title-wrap {
    text-align: center;
    margin-bottom: 0.25rem;
}

.card-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.card-archetype {
    font-size: 0.78rem;
    color: var(--primary);
    font-style: italic;
    margin-top: 0.1rem;
}

.card-pills-row {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.card-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.card-text-body {
    font-size: 0.78rem;
    color: #e2e8f0;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.card-duality-box {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.15rem 0;
}

.card-duality-item {
    font-size: 0.75rem;
    line-height: 1.32;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
}

.card-duality-item.light {
    background: rgba(253, 224, 71, 0.08);
    border-left: 2px solid #fde047;
    color: #fef9c3;
}

.card-duality-item.shadow {
    background: rgba(168, 85, 247, 0.08);
    border-left: 2px solid #a855f7;
    color: #e9d5ff;
}

.duality-label {
    font-weight: 700;
}

.card-advice-box {
    background: rgba(226, 183, 85, 0.08);
    border-left: 3px solid var(--primary);
    padding: 0.45rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #fef08a;
    border-radius: 0 8px 8px 0;
    margin-top: auto;
}

/* Synthesis Card Box (Suma teosófica) */
.synthesis-card-box {
    background: linear-gradient(135deg, rgba(226, 183, 85, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2.5rem 0 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(226, 183, 85, 0.15);
    position: relative;
    z-index: 2;
    clear: both;
}

.synthesis-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.synthesis-formula {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.88rem;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Result Actions Row */
.result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* History */
.history-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    font-size: 1.15rem;
    color: var(--primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-text:hover {
    color: #ef4444;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.history-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Modal Altar de Cristales / Minijuego Místico */
.mystic-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mystic-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.mystic-modal-card {
    position: relative;
    background: linear-gradient(150deg, #131024 0%, #090714 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.25);
    text-align: center;
}

.mystic-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.mystic-close-btn:hover {
    color: #ffffff;
}

.crystals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.crystal-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 183, 85, 0.3);
    border-radius: 16px;
    padding: 1.2rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.crystal-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    background: rgba(226, 183, 85, 0.15);
    box-shadow: 0 8px 20px rgba(226, 183, 85, 0.3);
}

.crystal-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.crystal-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Chips Grid for Symbols / Mirror Hours */
.chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.55rem;
    margin: 1rem 0;
}

.chip-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.chip-btn:hover, .chip-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(226, 183, 85, 0.12);
}

/* FAQ & Educational Section */
.faq-section {
    margin-top: 3.5rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.app-footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-disclaimer {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .app-container { padding: 1.2rem 0.9rem; }
    .config-panel { padding: 1.2rem; }
    .tarot-card-flip-wrap { min-height: 480px; }
}
