@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Crimson+Text:ital@0;1&display=swap');

/* CSS Custom Properties for Theming */
:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f4e4bc;
    --dark-brown: #8b4513;
    --darker-brown: #3a2f2a;
    --blood-red: rgba(138, 43, 43, 0.3);
    --mystic-purple: rgba(75, 0, 130, 0.2);
    --ancient-brown: #1a1612;
    --shadow-black: #0a0a0a;
    --parchment: #c9a961;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', 'Garamond', serif;
    background: var(--shadow-black);
    background-image: 
        radial-gradient(circle at 20% 50%, var(--blood-red) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--mystic-purple) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Mystical Particle Effect Container */
#mystical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 15s infinite linear;
    box-shadow: 0 0 6px var(--primary-gold);
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
        transform: translateY(50vh) translateX(30px) scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) translateX(-30px) scale(0);
    }
}

/* Mystical Fog Effect */
.fog-overlay {
    position: fixed;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.1) 0%, transparent 100%);
    animation: fogDrift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.fog-overlay::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: inherit;
    animation: fogWave 15s linear infinite;
}

@keyframes fogDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes fogWave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Candle Flame Effects */
.candle-left, .candle-right {
    position: fixed;
    width: 30px;
    height: 40px;
    z-index: 2;
}

.candle-left {
    left: 10%;
    top: 40%;
}

.candle-right {
    right: 10%;
    top: 40%;
}

.flame {
    width: 20px;
    height: 30px;
    background: radial-gradient(ellipse at bottom, #fff 0%, #ff9800 20%, #ff5722 60%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: flicker 3s ease-in-out infinite;
    filter: blur(1px);
}

.flame::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: flameDance 2s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { 
        transform: scale(1) rotate(-2deg);
        filter: blur(1px) brightness(1);
    }
    25% { 
        transform: scale(0.98) rotate(2deg);
        filter: blur(1.2px) brightness(0.95);
    }
    50% { 
        transform: scale(1.02) rotate(-1deg);
        filter: blur(0.8px) brightness(1.05);
    }
    75% { 
        transform: scale(0.97) rotate(1deg);
        filter: blur(1.1px) brightness(0.98);
    }
}

@keyframes flameDance {
    0%, 100% { transform: rotate(-2deg) scaleY(1); }
    50% { transform: rotate(2deg) scaleY(1.1); }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23000" opacity="0.03"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23666" stroke-width="0.5" opacity="0.1"/></svg>');
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

/* Mystical Cursor Trail */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="8" fill="%23d4af37" opacity="0.6"/><circle cx="12" cy="12" r="3" fill="%23fff"/></svg>') 12 12, auto;
}

.container {
    background: var(--ancient-brown);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 69, 19, 0.03) 10px,
            rgba(139, 69, 19, 0.03) 20px
        );
    border: 3px solid var(--darker-brown);
    border-image: linear-gradient(45deg, var(--dark-brown), #2f1f1a, var(--dark-brown)) 1;
    padding: 40px;
    box-shadow: 
        0 0 50px rgba(139, 69, 19, 0.3),
        inset 0 0 100px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 10;
    margin: 20px auto;
}

/* Enhanced Corner Decorations */
.container::before,
.container::after,
.corner-decoration-tl,
.corner-decoration-tr,
.corner-decoration-bl,
.corner-decoration-br {
    position: absolute;
    font-size: 2em;
    color: var(--dark-brown);
    opacity: 0.4;
    font-family: 'Cinzel', serif;
}

.container::before {
    content: '✦';
    top: 20px;
    left: 20px;
    animation: pulse 4s ease-in-out infinite;
}

.container::after {
    content: '✦';
    bottom: 20px;
    right: 20px;
    animation: pulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

.corner-decoration-tl {
    content: '☿';
    top: 20px;
    right: 20px;
}

.corner-decoration-tr {
    content: '♄';
    bottom: 20px;
    left: 20px;
}

/* Alchemical Symbols Border */
.alchemical-border {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: var(--dark-brown);
    opacity: 0.3;
    letter-spacing: 20px;
}

.alchemical-border::before {
    content: '☉ ♀ ☽ ♂ ♃ ♄ ☿';
}

/* Mystical Seal Watermark */
.mystical-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.03;
    pointer-events: none;
    background: radial-gradient(circle, transparent 30%, var(--primary-gold) 31%, transparent 32%, transparent 48%, var(--primary-gold) 49%, transparent 50%);
    border-radius: 50%;
    animation: rotateSeal 60s linear infinite;
}

.mystical-seal::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px solid var(--primary-gold);
    transform: rotate(45deg);
}

@keyframes rotateSeal {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

h1 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
}

h1::before,
h1::after {
    content: '⸸';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: var(--dark-brown);
    animation: fadeInOut 3s ease-in-out infinite;
}

h1::before {
    left: -40px;
}

h1::after {
    right: -40px;
    animation-delay: 1.5s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Decorative Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--dark-brown);
    font-size: 1.5em;
    opacity: 0.5;
}

.divider::before {
    content: '⟨◈⟩ ⟨✦⟩ ⟨⬟⟩';
}

.draw-button {
    display: block;
    margin: 0 auto 40px;
    padding: 15px 40px;
    font-size: 1.2em;
    font-family: 'Cinzel', serif;
    background: #2a1810;
    background-image: linear-gradient(135deg, #3a2418 0%, #1a0e08 100%);
    color: var(--primary-gold);
    border: 2px solid var(--dark-brown);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.draw-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
}

.draw-button::after {
    content: '⟨ ⟩';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.draw-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(139, 69, 19, 0.4),
        inset 0 -2px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
    color: var(--secondary-gold);
}

.draw-button:hover::before {
    left: 100%;
}

.draw-button:hover::after {
    opacity: 0.1;
    font-size: 3em;
}

.draw-button:active {
    transform: translateY(0);
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 300px;
    align-items: center;
    position: relative;
}

/* Ritual Circle Animation */
.ritual-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: ritualAppear 2s ease-out;
}

@keyframes ritualAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    }
}

/* Countdown Styling */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.meditation-message {
    text-align: center;
    font-size: 1.5em;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    margin: 40px 0 0;
    opacity: 0;
    animation: fadeInMessage 1s ease-in forwards;
    text-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3);
}

.countdown-number {
    text-align: center;
    font-size: 8em;
    color: var(--secondary-gold);
    font-family: 'Cinzel', serif;
    font-weight: bold;
    margin: 0;
    text-shadow: 
        0 4px 20px rgba(184, 134, 11, 0.8),
        0 0 40px rgba(184, 134, 11, 0.5);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.countdown-pulse {
    transform: scale(1.3);
    color: var(--primary-gold);
    text-shadow: 
        0 6px 30px rgba(212, 175, 55, 1),
        0 0 60px rgba(212, 175, 55, 0.8),
        0 0 100px rgba(212, 175, 55, 0.4),
        0 0 150px rgba(212, 175, 55, 0.2);
    animation: countdownBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes countdownBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1.3);
    }
}

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

.card {
    background: #0f0d0a;
    background-image: 
        radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(212, 175, 55, 0.02) 1px,
            rgba(212, 175, 55, 0.02) 2px
        );
    border: 2px solid var(--dark-brown);
    border-radius: 0;
    padding: 25px;
    width: 300px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(139, 69, 19, 0.1),
        0 0 50px rgba(139, 69, 19, 0.1);
    animation: cardMaterialize 0.8s ease;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card Materialization with Smoke Effect */
@keyframes cardMaterialize {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(10px);
    }
    50% {
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: mysticalGlow 4s ease-in-out infinite alternate;
}

/* Tarot-style Corner Decorations */
.card-corner-tl,
.card-corner-tr,
.card-corner-bl,
.card-corner-br {
    position: absolute;
    font-size: 1em;
    color: var(--dark-brown);
    opacity: 0.3;
}

.card-corner-tl {
    content: '※';
    top: 5px;
    left: 5px;
}

.card-corner-tr {
    content: '※';
    top: 5px;
    right: 5px;
}

.card-corner-bl {
    content: '※';
    bottom: 5px;
    left: 5px;
}

.card-corner-br {
    content: '※';
    bottom: 5px;
    right: 5px;
}

.card::after {
    content: '☾ ☽';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8em;
    color: var(--dark-brown);
    opacity: 0.2;
}

/* Breathing Glow Effect */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-gold), transparent, var(--primary-gold));
    opacity: 0;
    z-index: -1;
    animation: breathingGlow 3s ease-in-out infinite;
}

@keyframes breathingGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(139, 69, 19, 0.2),
        0 0 80px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
}

.card:hover .hidden-symbol {
    opacity: 0.3;
}

/* Hidden Mystical Symbols */
.hidden-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: var(--primary-gold);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.card-number {
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    color: var(--dark-brown);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    color: var(--primary-gold);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Illuminated First Letter */
.card-name::first-letter {
    font-size: 1.3em;
    color: var(--secondary-gold);
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-meaning {
    font-family: 'Crimson Text', serif;
    font-size: 1.1em;
    color: var(--parchment);
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Constellation Connection Line */
.constellation-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: constellationAppear 2s ease-out 0.5s;
    pointer-events: none;
}

@keyframes constellationAppear {
    0% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 0.3;
        width: 200px;
    }
    100% {
        opacity: 0;
        width: 200px;
    }
}

.placeholder {
    color: var(--dark-brown);
    font-size: 1.3em;
    font-family: 'Crimson Text', serif;
    text-align: center;
    padding: 50px;
    font-style: italic;
    opacity: 0.6;
}

.combination-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--ancient-brown);
    background-image: 
        radial-gradient(ellipse at top, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.02) 10px,
            rgba(212, 175, 55, 0.02) 20px
        );
    border: 2px solid var(--dark-brown);
    border-radius: 0;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
    animation: fadeInMystical 0.8s ease;
    position: relative;
}

.combination-section::before,
.combination-section::after {
    content: '★';
    position: absolute;
    font-size: 1.5em;
    color: var(--dark-brown);
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

.combination-section::before {
    top: 15px;
    left: 15px;
}

.combination-section::after {
    bottom: 15px;
    right: 15px;
    animation-delay: 1.5s;
}

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

.combination-label {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.combination-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.4em;
    color: var(--parchment);
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.definition-label {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    color: var(--primary-gold);
    font-weight: 600;
    margin: 20px 0 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.definition-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.375em;
    color: var(--secondary-gold);
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
    text-align: left;
    font-weight: 500;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--dark-brown);
}

/* Moon Phase Indicator */
.moon-phase {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: var(--primary-gold);
    opacity: 0.3;
    animation: moonCycle 20s linear infinite;
    z-index: 1;
}

@keyframes moonCycle {
    0% { content: '●'; }
    25% { content: '◗'; }
    50% { content: '○'; }
    75% { content: '◖'; }
    100% { content: '●'; }
}

@keyframes fadeInMystical {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes mysticalGlow {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

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

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

/* Crystal Ball Reflection Effect */
.crystal-ball-reflection {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 10px;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 40px;
        min-height: auto;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding-bottom: 20px;
    }

    .card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2em;
    }
    
    h1::before,
    h1::after {
        content: '';
    }
    
    .candle-left,
    .candle-right {
        display: none;
    }
    
    .moon-phase {
        font-size: 1.5em;
        top: 10px;
        right: 10px;
    }
    
    .combination-section {
        margin-top: 20px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .combination-text,
    .definition-text {
        font-size: 1.2em;
        padding: 0 10px;
    }
    
    .draw-again-button {
        margin-bottom: 40px !important;
    }
}

/* Update Notification Styles */
.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.update-notification.fade-in {
    animation: fadeIn 0.5s forwards;
}

.update-notification.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.update-card {
    background: linear-gradient(135deg, 
        var(--ancient-brown) 0%, 
        rgba(26, 22, 18, 0.95) 50%, 
        var(--darker-brown) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 500px;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.3),
        inset 0 0 30px rgba(212, 175, 55, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    animation: mysticalPulse 3s ease-in-out infinite;
}

@keyframes mysticalPulse {
    0%, 100% { 
        box-shadow: 
            0 0 50px rgba(212, 175, 55, 0.3),
            inset 0 0 30px rgba(212, 175, 55, 0.1),
            0 20px 60px rgba(0, 0, 0, 0.8);
    }
    50% { 
        box-shadow: 
            0 0 70px rgba(212, 175, 55, 0.4),
            inset 0 0 40px rgba(212, 175, 55, 0.15),
            0 20px 60px rgba(0, 0, 0, 0.8);
    }
}

.update-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-gold), 
        transparent, 
        var(--primary-gold), 
        transparent);
    border-radius: 12px;
    opacity: 0.3;
    animation: borderRotate 6s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.update-header h3 {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin: 0;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.update-symbol {
    font-size: 1.5rem;
    animation: symbolGlow 2s ease-in-out infinite;
}

@keyframes symbolGlow {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px var(--primary-gold));
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1) rotate(10deg);
        filter: drop-shadow(0 0 15px var(--primary-gold));
    }
}

.update-message {
    color: var(--secondary-gold);
    text-align: center;
    margin: 20px 0 30px;
    line-height: 1.6;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.update-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.update-button, .dismiss-button {
    font-family: "Cinzel", serif;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--parchment));
    color: var(--ancient-brown);
    border: 2px solid var(--primary-gold);
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.update-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold));
}

.dismiss-button {
    background: transparent;
    color: var(--secondary-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dismiss-button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

/* PWA Install Prompt (if needed later) */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ancient-brown);
    border: 1px solid var(--primary-gold);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
}

.install-prompt button {
    font-family: "Cinzel", serif;
    background: var(--primary-gold);
    color: var(--ancient-brown);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.install-prompt button:hover {
    background: var(--secondary-gold);
    transform: scale(1.05);
}
