:root {
    --bg-color-1: #030208;
    --bg-color-2: #120722;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(15, 12, 28, 0.85);
    --border-color: rgba(212, 175, 55, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 15px;
    overflow-x: hidden;
    transition: background 1.5s ease;
}

#sky-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulsar 3s infinite alternate;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    user-select: none;
    animation: queda linear infinite;
}

@keyframes pulsar {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

@keyframes queda {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.2; }
}

#fog-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60vh;
    pointer-events: none;
    z-index: 1;
}

.celestial-body {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.7;
    background: radial-gradient(circle, #f3e5ab 0%, #a1a1aa 100%);
    box-shadow: 0 0 30px rgba(243, 229, 171, 0.4);
}

.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-card, .hero-card, .quiz-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-card h1 {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin: 8px 0;
    font-weight: 700;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
}

.brand-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b38f27);
    color: #030208;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 12px 0 18px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

.question-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 500;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 2, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.reveal-notes {
    font-size: 0.72rem;
    color: var(--gold-light);
    margin-top: 8px;
    line-height: 1.35;
}

.btn-small {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
}
