:root {
    --gold: #d4af37;
    --gold-bright: #ffd700;
    --gold-dark: #b8860b;
    --gold-pale: #f5e6c8;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --black: #000000;
    --rich-black: #0a0a0a;
    --dark-gray: #111111;
    --darker-gray: #1a1a1a;
    --chrome-black: linear-gradient(135deg, #2a2a2a, #0a0a0a, #1a1a1a, #000000);
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(212, 175, 55, 0.3);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    --text-light: #f0e6d3;
    --text-muted: #a89880;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--black);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 4px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--rich-black);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
}

/* Gold Particles Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gold-divider {
    width: 120px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: var(--gold-glow);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 10px 0;
}
#navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}
.nav-logo svg {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
.nav-logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s;
    border-radius: 1px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--gold-bright);
}
.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn {
    padding: 10px 22px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    color: var(--gold);
}
.btn:hover {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: var(--gold-glow);
    border-color: transparent;
}
.btn-gold {
    background: var(--gold-gradient);
    color: var(--black);
    border-color: transparent;
    box-shadow: var(--gold-shadow);
}
.btn-gold:hover {
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
.btn-outline {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: var(--gold-glow);
}
.cart-badge {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gold);
    transition: all 0.3s;
}
.cart-badge:hover {
    color: var(--gold-bright);
    transform: scale(1.1);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-gradient);
    color: var(--black);
    font-size: 0.6rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
}
.user-badge .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 900;
    font-size: 0.9rem;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px 60px;
    background: radial-gradient(ellipse at center, rgba(20, 15, 5, 0.9) 0%, rgba(10, 10, 10, 0.98) 70%, #000000 100%);
}
.hero-content {
    max-width: 800px;
}
.hero-crown {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
.hero-title {
    font-size: 5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: 3px;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.hero-tagline {
    font-size: 1.1rem;
    color: var(--gold-pale);
    font-style: italic;
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: 1px;
}
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Marquee */
.marquee {
    background: var(--gold-gradient);
    color: var(--black);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
.marquee-inner span {
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0 30px;
    font-family: 'Playfair Display', serif;
}
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
section:nth-child(even) {
    background: rgba(5, 5, 5, 0.5);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.product-card:hover::before {
    opacity: 1;
}
.product-card:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-8px);
}
.product-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}
.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}
.product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 300;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
.product-rating {
    color: var(--gold-bright);
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    position: relative;
    transition: all 0.4s;
    background: var(--darker-gray);
}
.gallery-item:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: scale(1.03);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 10px 8px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}
.upload-area {
    border: 2px dashed var(--gold-dark);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(10, 10, 10, 0.5);
}
.upload-area:hover {
    border-color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: var(--gold-glow);
}
.upload-area .upload-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.upload-area p {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Game Section */
.game-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}
.game-container {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}
.game-canvas-wrapper {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}
.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
}
.game-score {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-bright);
}
.game-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.game-over-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}
.game-over-overlay.active {
    display: flex;
}
.game-over-overlay h3 {
    font-size: 2rem;
    color: var(--gold-bright);
}
.game-over-overlay p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Leaderboard */
.leaderboard-container {
    flex: 0 0 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
}
.leaderboard-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    text-align: center;
    margin-bottom: 15px;
}
.leaderboard-list {
    list-style: none;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
    border-radius: 8px;
}
.leaderboard-item:hover {
    background: rgba(212, 175, 55, 0.08);
}
.leaderboard-rank {
    font-weight: 900;
    font-size: 1.1rem;
    width: 30px;
    text-align: center;
    color: var(--gold-bright);
}
.leaderboard-rank.top {
    font-size: 1.4rem;
}
.leaderboard-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}
.leaderboard-score {
    font-weight: 900;
    color: var(--gold);
    font-size: 1rem;
}
.leaderboard-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-style: italic;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--dark-gray);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.modal-close:hover {
    color: var(--gold-bright);
    transform: rotate(90deg);
}
.modal-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold);
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--glass-border);
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Montserrat', sans-serif;
}
.auth-tab.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}
.auth-tab:hover {
    color: var(--gold);
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.form-group input::placeholder {
    color: #555;
}
.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}
.form-error.active {
    display: block;
}
.form-success {
    color: #51cf66;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}
.form-success.active {
    display: block;
}
.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: var(--gold-gradient);
    color: var(--black);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    box-shadow: var(--gold-shadow);
}
.auth-submit:hover {
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--dark-gray);
    border-left: 2px solid var(--glass-border);
    z-index: 1500;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    right: 0;
}
.cart-drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
}
.cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.cart-drawer-close:hover {
    color: var(--gold-bright);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}
.cart-item:hover {
    background: rgba(212, 175, 55, 0.05);
}
.cart-item-icon {
    font-size: 2rem;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
}
.cart-item-price {
    color: var(--gold);
    font-weight: 900;
    font-size: 0.85rem;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 5px;
}
.cart-item-remove:hover {
    transform: scale(1.2);
}
.cart-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--glass-border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--gold-bright);
    margin-bottom: 15px;
}
.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
footer {
    background: #000000;
    border-top: 2px solid var(--glass-border);
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-crown {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}
.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.footer-gold {
    color: var(--gold);
    font-weight: 700;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px 25px;
    color: var(--text-light);
    font-weight: 600;
    z-index: 3000;
    transition: all 0.5s ease;
    box-shadow: var(--gold-glow);
    opacity: 0;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Crown SVG styling */
.crown-svg {
    width: 100%;
    height: 100%;
}
.crown-gold {
    fill: url(#goldGradient);
}
.crown-chrome {
    fill: url(#chromeGradient);
}
.crown-gem {
    fill: url(#gemGradient);
    stroke: rgba(255, 215, 0, 0.6);
    stroke-width: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
    .nav-inner {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .game-wrapper {
        flex-direction: column;
    }
    .leaderboard-container {
        flex: 1;
        width: 100%;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .hero-crown {
        width: 80px;
        height: 80px;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
}