/*
 * Kenoz (كنوز) - Ramadan Quiz Theme
 * Islamic-inspired design with animated stars & gold accents
 */

/* ============================================
   Font Faces
   ============================================ */
@font-face {
    font-family: 'Gulzar';
    src: url("../fonts/Gulzar-Regular.d848347ce66e.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tufuli';
    src: url("../fonts/TufuliArabicDEMO-Regular.043005481de9.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tufuli';
    src: url("../fonts/TufuliArabicDEMO-Bold.65930b1a148e.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'KAF';
    src: url("../fonts/KAF-Regular.5cc3ee00af09.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-purple: #5C2D91;
    --primary-white: #FFFFFF;
    --secondary-1: #BCDED3;
    --secondary-2: #FFDD00;
    --secondary-3: #00C7DF;
    --secondary-4: #9C2799;
    --secondary-5: #E9BDD2;
    --dark-purple: #3e1e63;
    --accent-gold: #D4AF37;
    --accent-teal: #00C2CB;
    --light-gold: #F4D03F;
    --white: #FFFFFF;
    --bg-dark: #1a0f2e;
    --bg-gradient: linear-gradient(100deg, var(--primary-purple) 0%, var(--bg-dark) 20%, var(--primary-purple) 100%);
    --glass-bg: rgba(92, 45, 145, 0.3);
    --glass-border: rgba(212, 175, 55, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.4);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(rgba(156, 39, 153, 0.85), rgba(26, 15, 46, 0.95)), url("../images/background2.394ff3bb148d.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Islamic Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(212, 175, 55, 0.03) 35px,
            rgba(212, 175, 55, 0.03) 70px);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Animated Stars Background
   ============================================ */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ============================================
   Animated Lanterns and Treasures Background
   ============================================ */
.lantern {
    position: absolute;
    font-size: 48px;
    color: var(--secondary-2);
    animation: float 6s ease-in-out infinite;
    opacity: 0.95;
}

.lantern img {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 221, 0, 0.7));
}

.helal {
    position: absolute;
    animation: float-helal 8s ease-in-out infinite;
    opacity: 0.6;
}

.helal img {
    width: 28px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 221, 0, 0.7));
}

@keyframes float-helal {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(-5deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.treasure {
    position: absolute;
    font-size: 20px;
    color: var(--secondary-4);
    animation: sparkle 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(100, 20, 100, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-2) 0%, var(--secondary-3) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-family: 'Gulzar', serif;
    font-weight: bold;
    color: var(--dark-purple);
    box-shadow: 0 0 25px rgba(255, 221, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(255, 221, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 221, 0, 0.8);
    }
}

.logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--secondary-4), var(--secondary-5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-3);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-badge {
    background: rgba(188, 222, 211, 0.2);
    border: 1px solid var(--secondary-1);
    color: var(--secondary-1);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Ensure the badge fits on small screens without wrapping */
.points-badge a {
    white-space: nowrap;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .points-badge {
        padding: 6px 10px;
        font-size: 0.95rem;
        border-radius: 16px;
    }
    .points-badge a {
        max-width: 80px;
    }
}

.btn-login,
.btn-logout {
    background: linear-gradient(135deg, var(--secondary-4), var(--secondary-5));
    color: var(--dark-purple);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-login:hover,
.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* ============================================
   Main Content
   ============================================ */
main {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 60px;
    position: relative;
}

.floating-lanterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.lantern {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: float-lantern 15s ease-in-out infinite;
}

@keyframes float-lantern {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-content {
    flex: 1;
    z-index: 3;
}

.ramadan-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
    font-family: 'Tufuli', serif;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-content h1 {
    font-family: 'Gulzar', serif;
    /* font-family: 'Cairo', sans-serif; */
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-3) 0%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 550px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    color: var(--dark-purple);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.treasure-container {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.main-treasure {
    font-size: 12rem;
    filter: drop-shadow(0 0 50px var(--accent-gold));
}

.orbiting-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit {
    position: absolute;
    animation: orbit 10s linear infinite;
    font-size: 2rem;
}

.orbit:nth-child(1) {
    top: -60px;
    left: -60px;
    animation-delay: 0s;
}

.orbit:nth-child(2) {
    top: -60px;
    right: -60px;
    animation-delay: -3s;
}

.orbit:nth-child(3) {
    bottom: -60px;
    left: -60px;
    animation-delay: -6s;
}

@keyframes orbit {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 1;
    }
}

/* ============================================
   Glass Card Component
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 5%;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2,
.section-header h1 {
    font-family: 'KAF', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: 'KAF', serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.feature-card p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(92, 45, 145, 0.2) 0%, rgba(62, 30, 99, 0.3) 100%);
    position: relative;
    z-index: 2;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-purple);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-gold);
}

.step-card h3 {
    font-family: 'Gulzar', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.step-card p {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 208, 63, 0.05) 100%);
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: 'KAF', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   Auth Section
   ============================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    text-align: center;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-family: 'Gulzar', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.auth-header p {
    opacity: 0.8;
}

.auth-form {
    text-align: right;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-gold);
}

.form-group label i {
    margin-left: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 199, 223, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.bonus-badge {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    color: var(--dark-purple);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.auth-footer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.link-gold {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link-gold:hover {
    text-decoration: underline;
}

/* ============================================
   Game Section
   ============================================ */
.game-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 60px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.score-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid var(--secondary-3);
    text-align: center;
    backdrop-filter: blur(10px);
}

.score-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.progress-container {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    border-radius: 10px;
    transition: width 0.3s;
}

.question-card {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.question-text {
    font-family: 'Gulzar', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.option-letter {
    width: 35px;
    height: 35px;
    background: var(--accent-gold);
    color: var(--dark-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Result Section
   ============================================ */
.result-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.result-container {
    width: 100%;
    max-width: 500px;
}

.result-card {
    text-align: center;
}

.result-header {
    margin-bottom: 30px;
}

.result-trophy {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.result-header h1 {
    font-family: 'Gulzar', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.result-score-display {
    margin-bottom: 30px;
}

.result-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.result-score {
    font-size: 3rem;
    font-weight: 800;
}

.score-main {
    color: var(--accent-gold);
}

.score-divider {
    opacity: 0.5;
    margin: 0 5px;
}

.score-total {
    opacity: 0.7;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.stat-box i {
    font-size: 1.3rem;
}

.stat-box .fa-check-circle {
    color: #4caf50;
}

.stat-box .fa-times-circle {
    color: #f44336;
}

.result-message {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
}

.result-message.excellent {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.result-message.good {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffd54f;
}

.result-message.try-again {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef9a9a;
}

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

/* ============================================
   Leaderboard Section
   ============================================ */
.leaderboard-section {
    padding: 120px 5% 60px;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-card {
    margin-top: 40px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: center;
}

.leaderboard-table th {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-weight: 700;
}

.leaderboard-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table .top-three {
    background: rgba(212, 175, 55, 0.1);
}

.rank-medal {
    font-size: 1.5rem;
}

.rank-number {
    font-weight: 700;
    opacity: 0.7;
}

.player-name {
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.user-rank-card {
    margin-top: 30px;
    text-align: center;
    padding: 25px;
}

.user-rank-card h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.user-rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.user-score {
    font-size: 1.5rem;
    font-weight: 600;
}

.leaderboard-actions {
    text-align: center;
    margin-top: 30px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 50px 5% 30px;
    /* background: rgba(255, 255, 255, 0.9); */
    /* border-top: 1px solid var(--primary-purple); */
    background: rgba(100, 20, 100, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Gulzar', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--dark-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    opacity: 0.7;
}

/* ============================================
   Messages / Alerts
   ============================================ */
.messages-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef9a9a;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffd54f;
}

.alert-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196f3;
    color: #90caf9;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(62, 30, 99, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.mobile-open {
        display: flex;
        animation: slideDownNav 0.3s ease;
    }

    @keyframes slideDownNav {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content .subtitle {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
    }

    .hero-illustration {
        margin-top: 40px;
    }

    .main-treasure {
        font-size: 8rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .stats-row {
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2,
    .section-header h1 {
        font-size: 2rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .game-header {
        flex-direction: column;
        align-items: stretch;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn-primary,
    .result-actions .btn-secondary {
        width: 100%;
    }
}