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

body {
    background: #0a0612;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', serif;
}

:root {
    --gold: #c9a84c;
    --gold-light: #f0d98d;
    --purple-deep: #1a0b2e;
    --purple-mid: #2d1b4e;
    --purple-glow: #7b2ff7;
    --void: #0a0612;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.2), 0 0 40px rgba(123, 47, 247, 0.1); }
    50% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 60px rgba(123, 47, 247, 0.2); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes letter-reveal {
    0% { opacity: 0; transform: translateY(20px) scale(0.5); filter: blur(8px); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.05); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes thinking-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes slash-appear {
    0% { opacity: 0; transform: scaleY(0); }
    100% { opacity: 1; transform: scaleY(1); }
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.oracle-input {
    background: rgba(26, 11, 46, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.3);
    transition: all 0.4s ease;
    font-family: 'Cormorant Garamond', serif;
}

.oracle-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3), 0 0 40px rgba(123, 47, 247, 0.15), inset 0 0 20px rgba(201, 168, 76, 0.05);
    outline: none;
}

.oracle-btn {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(123, 47, 247, 0.3));
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
    font-family: 'Cinzel Decorative', cursive;
    position: relative;
    overflow: hidden;
}

.oracle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    transition: left 0.5s ease;
}

.oracle-btn:hover::before {
    left: 100%;
}

.oracle-btn:hover {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.5), 0 0 50px rgba(123, 47, 247, 0.2);
    transform: translateY(-2px);
    border-color: var(--gold-light);
}

.oracle-btn:active {
    transform: translateY(0px);
}

.result-card {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.4), rgba(10, 6, 18, 0.8));
    border: 1px solid rgba(201, 168, 76, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

.letter-box {
    font-family: 'Cinzel Decorative', cursive;
    animation: letter-reveal 0.6s ease forwards;
    opacity: 0;
}

.slash-effect {
    animation: slash-appear 0.3s ease forwards;
    background: linear-gradient(180deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.thinking {
    animation: thinking-pulse 1.2s ease-in-out infinite;
}

.history-item {
    background: rgba(26, 11, 46, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(45, 27, 78, 0.5);
}

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
    opacity: 0;
}

.bg-pattern {
    background-image: radial-gradient(ellipse at 50% 0%, rgba(123, 47, 247, 0.15) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 40%),
                      radial-gradient(ellipse at 20% 90%, rgba(123, 47, 247, 0.08) 0%, transparent 40%);
}

.text-shimmer {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.scroll-fade {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}