/* ========================================
   BIDCRAFT - Survival Stock Market Game
   Professional UI Styles
   ======================================== */

:root {
    /* Color Palette - Professional White Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-gold: #f59e0b;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --neutral: #6b7280;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   PAGE LOAD ANIMATIONS
   ======================================== */

/* Page loader overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Staggered entrance animations */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: loadIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
.animate-delay-7 { animation-delay: 0.7s; }
.animate-delay-8 { animation-delay: 0.8s; }
.animate-delay-9 { animation-delay: 0.9s; }
.animate-delay-10 { animation-delay: 1.0s; }

@keyframes loadIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    animation: slideFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(100px);
    animation: slideFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-down {
    opacity: 0;
    transform: translateY(-100px);
    animation: slideFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFromLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromBottom {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromTop {
    to { opacity: 1; transform: translateY(0); }
}

/* Scale animations */
.scale-in {
    opacity: 0;
    transform: scale(0.5);
    animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.scale-in-bounce {
    opacity: 0;
    transform: scale(0);
    animation: scaleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleBounce {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Flip animation */
.flip-in {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
    animation: flipIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flipIn {
    to { opacity: 1; transform: perspective(1000px) rotateY(0); }
}

/* Rotate animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
    animation: rotateInAnim 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rotateInAnim {
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* Blur fade in */
.blur-in {
    opacity: 0;
    filter: blur(20px);
    animation: blurFadeIn 0.8s ease forwards;
}

@keyframes blurFadeIn {
    to { opacity: 1; filter: blur(0); }
}

/* Typewriter effect class */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 2s steps(30) forwards, cursorBlink 0.8s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Continuous animations for page elements */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.pulse-animation {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 10px rgba(37, 99, 235, 0.2); }
}

.wiggle-animation {
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* NEW REAL-TIME MOTION ANIMATIONS */

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes wave {
    0%, 100% { transform: translateY(0) scaleY(1); }
    25% { transform: translateY(-20px) scaleY(1.1); }
    50% { transform: translateY(0) scaleY(0.95); }
    75% { transform: translateY(10px) scaleY(1.05); }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

@keyframes electricPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5),
                    0 0 10px rgba(37, 99, 235, 0.3),
                    0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% { 
        box-shadow: 0 0 10px rgba(124, 58, 237, 0.8),
                    0 0 30px rgba(124, 58, 237, 0.5),
                    0 0 60px rgba(124, 58, 237, 0.3);
    }
}

@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes slideWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--accent-primary),
            0 0 40px var(--accent-primary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@keyframes spin3D {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes tiltHover {
    0%, 100% { transform: perspective(500px) rotateX(0deg) rotateY(0deg); }
    25% { transform: perspective(500px) rotateX(5deg) rotateY(-5deg); }
    50% { transform: perspective(500px) rotateX(0deg) rotateY(5deg); }
    75% { transform: perspective(500px) rotateX(-5deg) rotateY(0deg); }
}

@keyframes rainbowBorder {
    0% { border-color: #ff6b6b; }
    16% { border-color: #feca57; }
    33% { border-color: #48dbfb; }
    50% { border-color: #ff9ff3; }
    66% { border-color: #54a0ff; }
    83% { border-color: #5f27cd; }
    100% { border-color: #ff6b6b; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: var(--accent-primary); }
}

@keyframes slideUpReveal {
    from { 
        clip-path: inset(100% 0 0 0);
        transform: translateY(50px);
    }
    to { 
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}

@keyframes magneticHover {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -3px); }
    50% { transform: translate(-3px, 3px); }
    75% { transform: translate(3px, 3px); }
}

@keyframes liquidFill {
    0% { 
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }
    100% { 
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    30% { transform: translateX(-8px) rotate(-0.5deg); }
    40% { transform: translateX(8px) rotate(0.5deg); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    90% { transform: translateX(-1px); }
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes fireworkParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

@keyframes coinFall {
    0% { transform: translateY(0) rotateY(0deg); opacity: 0.7; }
    100% { transform: translateY(100vh) rotateY(1080deg); opacity: 0; }
}

.screen-shake {
    animation: screenShake 0.6s ease-in-out;
}

/* Confetti particle styles */
.confetti {
    will-change: transform;
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Particle Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0) 0%, var(--bg-primary) 100%);
    animation: gradientMove 15s ease infinite;
    background-size: 200% 200%;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   LANDING SCREEN
   ======================================== */

#landing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-bottom: 80px;
}

.logo-container {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 120px;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.3;
    animation: morphBlob 8s ease-in-out infinite, breathe 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #10b981, #f59e0b, #2563eb);
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: shimmer 4s linear infinite, floatRotate 6s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
    filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.2));
}

.logo span {
    color: var(--accent-gold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.landing-content {
    width: 100%;
    max-width: 900px;
}

/* Feature Cards */
.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease both;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    animation: tiltHover 2s ease-in-out infinite;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: var(--accent-primary);
}

.feature-card:hover i {
    animation: bounce 0.6s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Player Setup */
.player-setup {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.player-setup h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-elevated);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1),
                0 10px 30px rgba(37, 99, 235, 0.15);
    background: #ffffff;
    transform: scale(1.02);
    animation: electricPulse 2s ease-in-out infinite;
}

.input-group input::placeholder {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder {
    opacity: 0;
    transform: translateY(-10px);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.input-group input:focus + .input-line {
    width: 100%;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: electricPulse 2s ease-in-out infinite, gradientMove 3s ease infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    background-position: right center;
}

.btn-primary:hover i {
    animation: bounce 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Warning Banner */
.warning-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 50%, #fef2f2 100%);
    background-size: 200% 100%;
    border-top: 2px solid var(--danger);
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--danger);
    letter-spacing: 1px;
    z-index: 50;
    animation: slideUpReveal 0.8s ease, gradientMove 4s ease infinite;
}

.warning-banner i {
    animation: shake 0.5s ease-in-out infinite;
    font-size: 1.2rem;
}

.warning-banner span {
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   GAME SCREEN
   ======================================== */

#game-screen {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 200%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    animation: slideInLeft 0.5s ease, gradientMove 3s ease infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

.avatar:hover {
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.avatar:hover i {
    animation: bounce 0.6s ease;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.player-status {
    font-size: 0.85rem;
    color: var(--success);
    letter-spacing: 2px;
}

.round-info {
    text-align: center;
}

.round-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.round-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.capital-display {
    text-align: right;
    min-width: 200px;
}

.capital-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.capital-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    transition: all 0.3s ease;
}

.capital-amount:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.currency {
    font-size: 1.2rem;
    opacity: 0.8;
}

.capital-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.capital-fill {
    height: 100%;
    width: 100%;
    background: var(--gradient-success);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.capital-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: slideWave 2s linear infinite;
}

.capital-fill::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: rgba(255,255,255,0.8);
    filter: blur(5px);
    animation: blink 1s ease-in-out infinite;
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 40px;
}

/* Event Card */
.event-card-container {
    perspective: 1000px;
}

.event-card {
    width: 400px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: breathe 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.event-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    animation: none;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: rotateY(-20deg) translateY(30px);
    }
    to {
        opacity: 1;
        transform: rotateY(0) translateY(0);
    }
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.event-card.bull-run::before { background: var(--gradient-success); }
.event-card.market-crash::before { background: var(--gradient-danger); }
.event-card.insider-tip::before { background: var(--gradient-gold); }
.event-card.interest-rate::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.event-card.fake-news::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.event-icon {
    font-size: 1.8rem;
    padding: 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    color: var(--accent-primary);
    animation: rotateIn 0.6s ease;
    transition: transform 0.3s ease;
}

.event-card:hover .event-icon {
    transform: scale(1.1) rotate(5deg);
}

.event-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.event-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.event-hints {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease both;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hint::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s ease;
}

.hint:hover::before {
    left: 100%;
}

.hint:nth-child(1) { animation-delay: 0.1s; }
.hint:nth-child(2) { animation-delay: 0.2s; }
.hint:nth-child(3) { animation-delay: 0.3s; }

.hint:hover {
    transform: translateX(10px) scale(1.02);
    background: #ffffff;
}

.buy-hint:hover {
    border-color: var(--success);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.2);
}

.hold-hint:hover {
    border-color: var(--warning);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.2);
}

.sell-hint:hover {
    border-color: var(--danger);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.2);
}

.action-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.buy-hint .action-label { color: var(--success); }
.hold-hint .action-label { color: var(--warning); }
.sell-hint .action-label { color: var(--danger); }

.hint-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Action Panel */
.action-panel {
    text-align: center;
}

.action-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: var(--bg-card);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 130px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease both;
    transform-style: preserve-3d;
}

.action-btn:nth-child(1) { animation-delay: 0.1s; }
.action-btn:nth-child(2) { animation-delay: 0.2s; }
.action-btn:nth-child(3) { animation-delay: 0.3s; }

.action-btn:not(:disabled):hover {
    transform: translateY(-5px) scale(1.05);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 1.8rem;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.action-btn:hover .btn-glow {
    width: 200px;
    height: 200px;
}

.buy-btn {
    border-color: var(--success);
}

.buy-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25),
                0 0 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-8px) scale(1.05);
}

.buy-btn:hover i {
    animation: bounce 0.5s ease infinite;
}

.buy-btn i { color: var(--success); }

.hold-btn {
    border-color: var(--warning);
}

.hold-btn:hover {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25),
                0 0 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-8px) scale(1.05);
}

.hold-btn:hover i {
    animation: float 1s ease-in-out infinite;
}

.hold-btn i { color: var(--warning); }

.sell-btn {
    border-color: var(--danger);
}

.sell-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25),
                0 0 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-8px) scale(1.05);
}

.sell-btn:hover i {
    animation: heartbeat 0.6s ease infinite;
}

.sell-btn i { color: var(--danger); }

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Timer Bar */
.timer-bar {
    width: 300px;
    max-width: 80%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin: 0 auto 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.timer-bar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    border-radius: 7px;
    z-index: -1;
    animation: gradientMove 2s linear infinite;
    opacity: 0.5;
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #10b981);
    background-size: 300% 100%;
    border-radius: 5px;
    transition: width 0.05s linear;
    position: relative;
    animation: gradientMove 3s linear infinite;
}

.timer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    filter: blur(2px);
    animation: blink 0.5s ease-in-out infinite;
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Result Overlay */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.result-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.result-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: breathe 3s ease-in-out infinite;
    pointer-events: none;
}

.result-content {
    text-align: center;
    padding: 40px;
    animation: slideUpReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.result-content {
    text-align: center;
    padding: 40px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 25px;
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.result-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: electricPulse 1.5s ease-in-out infinite;
    z-index: -1;
}

.result-icon.profit {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
    color: var(--success);
    box-shadow: 0 10px 50px rgba(16, 185, 129, 0.4),
                0 0 30px rgba(16, 185, 129, 0.2);
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
               breathe 2s ease-in-out infinite 0.6s;
}

.result-icon.profit i {
    animation: bounce 1s ease infinite;
}

.result-icon.loss {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    color: var(--danger);
    box-shadow: 0 10px 50px rgba(239, 68, 68, 0.4),
                0 0 30px rgba(239, 68, 68, 0.2);
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
               shake 0.8s ease infinite 0.6s;
}

.result-icon.neutral {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    color: var(--warning);
    box-shadow: 0 10px 50px rgba(245, 158, 11, 0.3),
                0 0 20px rgba(245, 158, 11, 0.2);
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
               float 3s ease-in-out infinite 0.6s;
}

.result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.result-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: countUp 0.5s ease 0.3s both;
}

.result-amount.profit { color: var(--success); }
.result-amount.loss { color: var(--danger); }
.result-amount.neutral { color: var(--warning); }

.result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeInDown 0.4s ease 0.2s both;
}

.result-message {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 400px;
}

/* History Panel */
.history-panel {
    position: fixed;
    right: 0;
    top: 100px;
    width: 280px;
    max-height: calc(100vh - 150px);
    background: var(--bg-card);
    border-left: 1px solid #e2e8f0;
    border-radius: 16px 0 0 16px;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--transition-normal);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 20;
}

.history-panel:hover,
.history-panel.show {
    transform: translateX(0);
}

.history-panel h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
    font-size: 0.9rem;
}

.history-item.profit { border-color: var(--success); }
.history-item.loss { border-color: var(--danger); }
.history-item.neutral { border-color: var(--warning); }

.history-item .round {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.history-item .event {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.history-item .result {
    font-weight: 600;
}

.history-item .result.profit { color: var(--success); }
.history-item .result.loss { color: var(--danger); }
.history-item .result.neutral { color: var(--warning); }

/* ========================================
   GAME OVER SCREEN
   ======================================== */

#gameover-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameover-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    animation: fadeIn 0.8s ease;
}

.gameover-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 30px;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), heartbeat 2s ease-in-out infinite 0.6s;
}

.gameover-icon.eliminated {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    box-shadow: 0 15px 50px rgba(239, 68, 68, 0.3);
}

.gameover-icon.winner {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.3);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), glow 2s ease-in-out infinite 0.6s;
}

.gameover-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 5px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.gameover-title.eliminated { color: var(--danger); }
.gameover-title.winner { 
    color: var(--accent-gold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gameover-subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease both;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lesson-card {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    animation: fadeInUp 0.6s ease 0.5s both;
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.05);
}

.lesson-card i {
    font-size: 2rem;
    color: var(--accent-gold);
    animation: float 3s ease-in-out infinite;
}

.lesson-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .logo {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .capital-display {
        text-align: center;
    }
    
    .capital-amount {
        justify-content: center;
    }
    
    .event-card {
        padding: 25px;
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .final-stats {
        grid-template-columns: 1fr;
    }
    
    .history-panel {
        display: none;
    }
    
    .gameover-title {
        font-size: 2.5rem;
    }
    
    .lesson-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .player-setup {
        padding: 25px;
    }
    
    .btn-primary {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection Styling */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
}

/* ========================================
   SECONDARY BUTTONS
   ======================================== */

.landing-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease 0.5s both;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.btn-secondary:hover i {
    animation: bounce 0.5s ease;
}

.btn-secondary i {
    font-size: 1.1rem;
}

/* ========================================
   PAGE HEADER & BACK BUTTON
   ======================================== */

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-back:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.info-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.info-icon.danger-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.info-icon.warning-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.info-icon.success-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.info-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 18px;
}

.info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

ol.info-list {
    counter-reset: step;
}

ol.info-list li {
    padding-left: 30px;
}

ol.info-list li::before {
    content: counter(step);
    counter-increment: step;
    width: 22px;
    height: 22px;
    background: var(--accent-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

kbd {
    background: var(--bg-elevated);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* ========================================
   EVENTS SECTION
   ======================================== */

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.event-info-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.event-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event-info-card i {
    font-size: 2rem;
    margin-bottom: 12px;
}

.event-info-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.event-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.event-info-card.bull {
    border-top: 3px solid var(--success);
}
.event-info-card.bull i { color: var(--success); }

.event-info-card.crash {
    border-top: 3px solid var(--danger);
}
.event-info-card.crash i { color: var(--danger); }

.event-info-card.tip {
    border-top: 3px solid var(--accent-gold);
}
.event-info-card.tip i { color: var(--accent-gold); }

.event-info-card.rate {
    border-top: 3px solid var(--accent-secondary);
}
.event-info-card.rate i { color: var(--accent-secondary); }

.event-info-card.news {
    border-top: 3px solid #ec4899;
}
.event-info-card.news i { color: #ec4899; }

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-hero {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.quote-section {
    margin-top: 40px;
}

.quote-section blockquote {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-left: 4px solid var(--accent-primary);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.quote-section blockquote i {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.quote-section blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Center Button */
.center-btn {
    text-align: center;
    margin-top: 40px;
}

.center-btn .btn-primary {
    text-decoration: none;
}
