* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a1a;
    --bg-navy: #1a1a2e;
    --gold: #d4af37;
    --champagne: #f7e7ce;
    --lilac: #c8b3e6;
    --mint: #b4f8c8;
    --cyan: #a0e7e5;
    --rose: #ffc6d9;
    --silver: #c0c0c0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--champagne), var(--lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 120px);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--lilac));
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--gold);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-home .hero {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
        url('../images/bg1.jpg');
}

.page-collections .hero {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
        url('../images/bg2.jpg');
}

.page-about .hero {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
        url('../images/bg3.jpg');
}

.page-contacts .hero {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
        url('../images/bg4.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 179, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(180, 248, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 26, 0.3) 100%);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--champagne), var(--lilac), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--champagne);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--champagne));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

section {
    padding: 80px 20px;
    position: relative;
}

section#collections {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.92) 0%, rgba(26, 26, 46, 0.95) 100%),
        url('../images/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section#signature-collection,
section#seasonal-collection,
section#limited-edition {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.93) 0%, rgba(26, 26, 46, 0.96) 100%),
        url('../images/bg4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section#features::before,
section#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 198, 217, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(160, 231, 229, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid > .glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card p {
    flex-grow: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--lilac));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    color: var(--bg-dark);
    font-weight: 700;
}

.feature-icon::before {
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-info .btn {
    margin-top: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--champagne);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

footer {
    background: var(--bg-navy);
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.96) 0%, rgba(10, 10, 26, 0.98) 100%),
        url('../images/bg4.jpg');
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0;
}

.footer-links a:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-navy);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup.active {
    display: block;
}

.popup h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.popup p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
}

.popup-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.88) 0%, rgba(26, 26, 46, 0.92) 100%),
        url('../images/thank-you\ bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.success-content {
    max-width: 600px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: successPop 0.5s ease;
    color: var(--bg-dark);
    font-weight: 700;
}

.success-icon::before {
    content: '✓';
    font-size: 4rem;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.info-item-compact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.info-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--lilac));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--bg-dark);
    font-weight: 700;
}

.info-item p,
.info-item-compact p {
    color: var(--champagne);
    margin: 0;
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 50px;
    position: relative;
    z-index: 1;
}

.page-policy body {
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(26, 26, 46, 0.97) 100%),
        url('../images/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.policy-content h1 {
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.policy-content h2 {
    color: var(--lilac);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.policy-content p,
.policy-content ul {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-content ul {
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cookies-table thead tr {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid var(--gold);
}

.cookies-table th {
    padding: 1rem;
    text-align: left;
    color: var(--gold);
    font-weight: 600;
}

.cookies-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.cookies-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.cookies-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cookies-table td:first-child {
    color: var(--champagne);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cookies-table {
        min-width: 500px;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .cookies-table {
        min-width: 100%;
        display: block;
    }

    .cookies-table thead {
        display: none;
    }

    .cookies-table tbody,
    .cookies-table tr,
    .cookies-table td {
        display: block;
        width: 100%;
    }

    .cookies-table tr {
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        padding: 1rem;
        border: 1px solid var(--glass-border);
    }

    .cookies-table td {
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .cookies-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--gold);
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 900px) {
    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.6rem 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
        max-width: calc(100vw - 100px);
    }

    .nav-toggle {
        display: block;
        padding: 0.4rem 0.9rem;
        font-size: 0.9rem;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.active {
        max-height: 500px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    nav li:last-child a {
        border-bottom: none;
    }

    nav a::after {
        display: none;
    }

    nav a:hover,
    nav a.active {
        background: rgba(212, 175, 55, 0.15);
        padding-left: 2rem;
        color: var(--gold);
        border-left: 3px solid var(--gold);
    }

    .hero,
    section#collections,
    section#signature-collection,
    section#seasonal-collection,
    section#limited-edition,
    .success-page {
        background-attachment: scroll;
    }

    .page-policy body {
        background-attachment: scroll;
    }

    .grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .popup {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 30px;
        background-attachment: scroll;
    }

    section#collections,
    section#featured-collections {
        background-attachment: scroll;
    }

    section {
        padding: 50px 15px;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .info-item,
    .info-item-compact {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }
}

.game-stats {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2rem;
}

.game-stats p {
    margin: 0.5rem;
}

.distance-hint {
    color: var(--champagne);
    font-size: 1.1rem;
    transition: all 0.2s ease-out;
}

.distance-hint.hot {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.distance-hint.warm {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

.distance-hint.cold {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.4);
}

.game-area {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.6), rgba(26, 26, 46, 0.8));
    border: 2px solid var(--gold);
    border-radius: 20px;
    overflow: hidden;
    cursor: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(212, 175, 55, 0.1);
    --cursor-x: -100px;
    --cursor-y: -100px;
    will-change: transform;
    transform: translateZ(0);
}

.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 150px at var(--cursor-x) var(--cursor-y), rgba(255, 215, 0, 0.15) 0%, rgba(212, 175, 55, 0.1) 30%, transparent 60%),
        radial-gradient(circle at 20% 30%, rgba(196, 179, 230, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(180, 248, 200, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.game-area::after {
    content: '▲';
    position: absolute;
    left: var(--cursor-x);
    top: var(--cursor-y);
    font-size: 2rem;
    pointer-events: none;
    z-index: 1000;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
    transform: translate(-50%, -50%);
    animation: flicker 1s infinite;
    transition: left 0.01s linear, top 0.01s linear;
    color: var(--gold);
}

@keyframes flicker {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
        opacity: 1;
    }
    25% { 
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.9));
        opacity: 0.85;
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 50px rgba(212, 175, 55, 0.7));
        opacity: 1;
    }
    75% { 
        filter: drop-shadow(0 0 28px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 55px rgba(212, 175, 55, 0.8));
        opacity: 0.9;
    }
}

.hidden-candle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.hidden-candle::before {
    content: '▲';
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.9));
    color: var(--gold);
    font-size: 3rem;
}

.hidden-candle.nearby {
    animation: shake 0.3s ease-in-out infinite, pulse 0.8s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-3deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(5px) rotate(3deg); }
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 1));
    }
}

.hidden-candle[data-candle="1"] { top: 15%; left: 20%; }
.hidden-candle[data-candle="2"] { top: 25%; right: 15%; }
.hidden-candle[data-candle="3"] { bottom: 30%; left: 30%; }
.hidden-candle[data-candle="4"] { top: 60%; right: 25%; }
.hidden-candle[data-candle="5"] { bottom: 15%; left: 50%; transform: translateX(-50%); }

.game-area .start-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--champagne);
    text-align: center;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

.game-area:hover .start-hint {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.temperature-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    z-index: 5;
}

.temp-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ecdc4, #ffa500, #ff6b6b);
    transition: width 0.15s ease-out, background 0.2s ease;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.temp-bar::after {
    content: '◇';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #4ecdc4;
}

.temp-bar::before {
    content: '▲';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ff6b6b;
}

.temp-bar.hot::before {
    opacity: 1;
}

.ripple {
    position: absolute;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: rippleEffect 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
    will-change: transform, opacity;
}

@keyframes rippleEffect {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
        border-width: 3px;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
        border-width: 1px;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hidden-candle.found {
    opacity: 1;
    animation: candleFound 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), candleGlow 1.5s ease-in-out infinite 0.4s;
}

@keyframes candleFound {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }
    60% {
        transform: scale(1.4) rotate(360deg);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(212, 175, 55, 1));
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
    }
}

@keyframes candleGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 45px rgba(212, 175, 55, 1));
    }
}

.hidden-candle.found::after {
    content: '★';
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 1s ease-out;
    pointer-events: none;
    color: var(--gold);
}

@keyframes sparkle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(0, -30px) scale(2);
        opacity: 0;
    }
}

.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    z-index: 10;
    padding: 2rem;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid var(--gold);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    max-width: 90%;
}

.game-message.show {
    opacity: 1;
    animation: messageAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes messageAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(-5deg);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .game-area {
        height: 400px;
        cursor: pointer;
        touch-action: none;
    }

    .game-area::after {
        font-size: 1.5rem;
    }

    .hidden-candle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .game-message {
        font-size: 1.2rem;
        padding: 1.5rem;
    }

    .start-hint {
        font-size: 0.95rem;
    }

    .temperature-indicator {
        width: 150px;
        height: 25px;
        top: 10px;
    }

    .game-stats {
        font-size: 1.1rem;
    }

    .game-stats > div {
        gap: 1rem;
    }

    .distance-hint {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-area {
        height: 350px;
        touch-action: none;
    }

    .game-area::after {
        font-size: 1.3rem;
    }

    .hidden-candle {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .game-message {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .temperature-indicator {
        width: 120px;
        height: 20px;
        top: 10px;
    }

    .temp-bar::after,
    .temp-bar::before {
        font-size: 0.8rem;
    }

    .game-stats {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .game-stats > div {
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .distance-hint {
        font-size: 0.9rem;
    }

    #candle-game p {
        font-size: 0.95rem !important;
    }

    #candle-game .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.2rem;
        max-width: calc(100vw - 90px);
    }

    .nav-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    nav a {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    nav a:hover,
    nav a.active {
        padding-left: 1.8rem;
        border-left-width: 3px;
    }

    .footer-links {
        gap: 0.8rem;
    }

    .footer-links a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .logo {
        font-size: 1.1rem;
        max-width: calc(100vw - 85px);
    }

    .nav-toggle {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    nav a:hover,
    nav a.active {
        padding-left: 1.6rem;
    }
}

@media (max-width: 320px) {
    header {
        padding: 0.4rem 0;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
        max-width: calc(100vw - 80px);
        line-height: 1.2;
    }

    .nav-toggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-width: 1.5px;
    }

    nav a {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    nav a:hover,
    nav a.active {
        padding-left: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .game-area {
        height: 280px;
    }

    .game-area::after {
        font-size: 1.2rem;
    }

    .hidden-candle {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .temperature-indicator {
        width: 100px;
        height: 18px;
    }

    .game-stats {
        font-size: 0.9rem;
    }

    .game-stats > div {
        flex-direction: column;
        gap: 0.3rem;
    }

    .game-message {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    #candle-game p {
        font-size: 0.85rem !important;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }
}

