    :root {
        --bg-color: #0a0a1a;
        --grid-bg: rgba(20, 20, 40, 0.7);
        --tile-bg: rgba(30, 30, 60, 0.6);
        --text-color: #ffffff;
        --border-radius: 8px;
        --transition-speed: 0.15s;
        --glow-color: rgba(120, 120, 255, 0.5);
        --grid-border: 1px solid rgba(100, 100, 255, 0.3);
    }

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

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

    @keyframes starTwinkle {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }

    @keyframes floatEffect {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        background-color: var(--bg-color);
        background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=1200');
        background-size: 120% 120%;
        background-position: center;
        background-attachment: fixed;
        animation: backgroundPulse 60s ease-in-out infinite;
        color: var(--text-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        padding-bottom: 130px; /* Add space for the fixed banner */
    }

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at center, rgba(10, 10, 26, 0.4) 0%, rgba(10, 10, 26, 0.8) 100%);
        z-index: -1;
    }

    /* Star field effect */
    .stars {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
        pointer-events: none;
    }

    .star {
        position: absolute;
        background-color: white;
        border-radius: 50%;
    }

    .header {
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        animation: floatEffect 6s ease-in-out infinite;
    }

    .score-container {
        background: rgba(30, 30, 60, 0.6);
        padding: 8px 15px;
        border-radius: var(--border-radius);
        text-align: center;
        border: 1px solid rgba(100, 100, 255, 0.2);
        box-shadow: 0 0 10px rgba(120, 120, 255, 0.3);
        backdrop-filter: blur(5px);
        min-width: 90px;
    }

    .score-title {
        font-size: 12px;
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .score-value {
        font-size: 22px;
        font-weight: bold;
        text-shadow: 0 0 10px var(--glow-color);
    }

    .controls {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        animation: floatEffect 4s ease-in-out infinite;
        animation-delay: 0.5s;
        padding: 10px 0;
        width: 100%;
        max-width: 500px;
        justify-content: space-between;
    }

    .control-group {
        display: flex;
        gap: 10px;
    }

    .btn {
        background: rgba(30, 30, 60, 0.6);
        border: none;
        color: var(--text-color);
        padding: 8px 15px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-speed);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
        font-size: 14px;
        position: relative;
        overflow: hidden;
    }

    .btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, rgba(100, 100, 255, 0.5), rgba(200, 100, 255, 0.5));
        transition: all var(--transition-speed);
    }

    .btn:hover {
        background: rgba(60, 60, 120, 0.7);
        transform: translateY(-2px);
    }

    .btn:hover::after {
        height: 3px;
        box-shadow: 0 0 10px rgba(120, 120, 255, 0.8);
    }

    .grid {
        width: 100%;
        max-width: 500px;
        aspect-ratio: 1;
        background: var(--grid-bg);
        border-radius: var(--border-radius);
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        position: relative;
        margin-bottom: 20px;
    }

    .grid::after {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: calc(var(--border-radius) + 5px);
        background: linear-gradient(45deg, rgba(100, 100, 255, 0.2), rgba(200, 100, 255, 0.2), rgba(255, 100, 100, 0.2));
        z-index: -1;
        animation: borderGlow 8s linear infinite;
    }

    @keyframes borderGlow {
        0% { filter: hue-rotate(0deg); }
        100% { filter: hue-rotate(360deg); }
    }

    .tile {
        background: var(--tile-bg);
        border-radius: var(--border-radius);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 32px;
        font-weight: bold;
        color: var(--text-color);
        transition: all var(--transition-speed);
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 80px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(3px);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .tile.new {
        animation: appear 0.2s ease-in-out;
    }

    .tile.merged {
        animation: pop 0.3s ease-in-out;
    }

    @keyframes appear {
        0% {
            opacity: 0;
            transform: scale(0);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes pop {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }

    .tile[data-value="2"] { background: rgba(80, 210, 255, 0.3); box-shadow: 0 0 10px rgba(80, 210, 255, 0.5); font-size: 32px; }
    .tile[data-value="4"] { background: rgba(120, 180, 255, 0.3); box-shadow: 0 0 10px rgba(120, 180, 255, 0.5); font-size: 32px; }
    .tile[data-value="8"] { background: rgba(160, 140, 255, 0.3); box-shadow: 0 0 10px rgba(160, 140, 255, 0.5); font-size: 32px; }
    .tile[data-value="16"] { background: rgba(200, 100, 255, 0.3); box-shadow: 0 0 10px rgba(200, 100, 255, 0.5); font-size: 28px; }
    .tile[data-value="32"] { background: rgba(255, 80, 200, 0.3); box-shadow: 0 0 10px rgba(255, 80, 200, 0.5); font-size: 28px; }
    .tile[data-value="64"] { background: rgba(255, 100, 100, 0.3); box-shadow: 0 0 10px rgba(255, 100, 100, 0.5); font-size: 28px; }
    .tile[data-value="128"] { background: rgba(255, 160, 80, 0.3); box-shadow: 0 0 15px rgba(255, 160, 80, 0.5); font-size: 24px; }
    .tile[data-value="256"] { background: rgba(255, 200, 60, 0.3); box-shadow: 0 0 15px rgba(255, 200, 60, 0.5); font-size: 24px; }
    .tile[data-value="512"] { background: rgba(200, 255, 60, 0.3); box-shadow: 0 0 15px rgba(200, 255, 60, 0.5); font-size: 24px; }
    .tile[data-value="1024"] { background: rgba(100, 255, 100, 0.3); box-shadow: 0 0 20px rgba(100, 255, 100, 0.5); font-size: 20px; }
    .tile[data-value="2048"] { background: rgba(60, 255, 200, 0.3); box-shadow: 0 0 20px rgba(60, 255, 200, 0.5); font-size: 20px; }

    .empty {
        background: rgba(40, 40, 80, 0.2);
        border: 1px solid rgba(100, 100, 255, 0.1);
    }

    .game-over {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 30, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 20px;
        backdrop-filter: blur(10px);
        z-index: 100;
    }

    .game-over.show {
        display: flex;
    }

    .confirmation-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 30, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 20px;
        backdrop-filter: blur(10px);
        z-index: 100;
    }

    .confirmation-dialog.show {
        display: flex;
    }

    .confirmation-dialog p {
        font-size: 20px;
        text-align: center;
        margin-bottom: 10px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .confirmation-buttons {
        display: flex;
        gap: 20px;
        margin-top: 20px;
    }

    .confirmation-buttons .btn {
        min-width: 120px;
        padding: 15px 30px;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: rgba(60, 60, 120, 0.7);
        border: 2px solid rgba(100, 100, 255, 0.3);
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.3);
        transition: all 0.3s ease;
    }

    .confirmation-buttons .btn:hover {
        background: rgba(80, 80, 160, 0.8);
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    }

    .confirmation-buttons #confirm-new-game {
        background: rgba(100, 100, 255, 0.7);
        border-color: rgba(120, 120, 255, 0.5);
    }

    .confirmation-buttons #confirm-new-game:hover {
        background: rgba(120, 120, 255, 0.8);
    }

    .confirmation-buttons #cancel-new-game {
        background: rgba(60, 60, 120, 0.7);
        border-color: rgba(100, 100, 255, 0.3);
    }

    .confirmation-buttons #cancel-new-game:hover {
        background: rgba(80, 80, 160, 0.8);
    }

    .game-over h2 {
        font-size: 36px;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        letter-spacing: 2px;
        animation: glowText 2s ease-in-out infinite;
    }

    @keyframes glowText {
        0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
        50% { text-shadow: 0 0 30px rgba(120, 120, 255, 0.8); }
    }

    .stars-info {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--grid-bg);
        padding: 10px 20px;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        gap: 10px;
        border: var(--grid-border);
        box-shadow: 0 0 15px var(--glow-color);
        backdrop-filter: blur(5px);
        animation: floatEffect 5s ease-in-out infinite;
        animation-delay: 1s;
    }

    .stars-count {
        font-weight: bold;
        color: #ffdd44;
        text-shadow: 0 0 10px rgba(255, 221, 68, 0.8);
    }

    .share-container {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        animation: floatEffect 7s ease-in-out infinite;
        animation-delay: 1.5s;
    }

    .share-btn {
        background: var(--grid-bg);
        border: var(--grid-border);
        color: var(--text-color);
        padding: 10px 20px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-speed);
        display: flex;
        align-items: center;
        gap: 5px;
        box-shadow: 0 0 10px var(--glow-color);
        backdrop-filter: blur(5px);
    }

    .share-btn:hover {
        background: rgba(60, 60, 120, 0.7);
        box-shadow: 0 0 20px var(--glow-color);
        transform: translateY(-2px);
    }

    /* Shop styles */
    .shop-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 30, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 20px;
        backdrop-filter: blur(10px);
        z-index: 100;
        overflow: auto;
    }

    .shop-dialog.show {
        display: flex;
    }

    .shop-title {
        font-size: 32px;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        letter-spacing: 2px;
        margin-top: 20px;
    }

    .shop-tabs {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
    }

    .shop-tab {
        background: rgba(30, 30, 60, 0.6);
        border: none;
        color: var(--text-color);
        padding: 8px 20px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-speed);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
        font-size: 14px;
        position: relative;
        overflow: hidden;
        opacity: 0.7;
    }

    .shop-tab.active {
        background: rgba(60, 60, 120, 0.7);
        opacity: 1;
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.3);
    }

    .shop-tab::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, rgba(100, 100, 255, 0.5), rgba(200, 100, 255, 0.5));
        transition: all var(--transition-speed);
    }

    .shop-tab:hover {
        opacity: 1;
    }

    .shop-tab.active::after {
        height: 3px;
        box-shadow: 0 0 10px rgba(120, 120, 255, 0.8);
    }

    .shop-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
        width: 100%;
        padding: 20px;
    }

    .shop-content {
        display: none;
        max-height: 60vh;
        overflow-y: auto;
        margin: 0 10px;
        padding-right: 5px;
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 100, 255, 0.5) rgba(30, 30, 60, 0.3);
    }

    .shop-content::-webkit-scrollbar {
        width: 8px;
    }

    .shop-content::-webkit-scrollbar-track {
        background: rgba(30, 30, 60, 0.3);
        border-radius: 10px;
    }

    .shop-content::-webkit-scrollbar-thumb {
        background: rgba(100, 100, 255, 0.5);
        border-radius: 10px;
    }

    .shop-content::-webkit-scrollbar-thumb:hover {
        background: rgba(120, 120, 255, 0.7);
    }

    .shop-content.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 500px;
    }

    .shop-item {
        background: var(--grid-bg);
        border: var(--grid-border);
        border-radius: var(--border-radius);
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        box-shadow: 0 0 15px var(--glow-color);
        backdrop-filter: blur(5px);
        transition: all var(--transition-speed);
    }

    .shop-item:hover {
        background-color: rgba(60, 60, 120, 0.8);
    }

    .shop-item-disabled:not([data-owned="true"]) {
        opacity: 0.7;
    }

    .shop-item-disabled[data-owned="true"] {
        opacity: 1;
        background-color: rgba(60, 60, 120, 0.8) !important;
        cursor: pointer;
    }

    .shop-item-disabled[data-owned="true"]:hover {
        background-color: rgba(80, 80, 160, 0.9) !important;
        transform: translateY(-2px);
    }

    .shop-item-disabled .shop-item-price:not([data-owned="true"]) {
        color: #ff4444;
    }

    .shop-item-disabled .shop-item-price[data-owned="true"] {
        color: #88ccff;
        font-weight: bold;
    }

    .shop-item[data-active="true"] {
        background-color: rgba(100, 100, 255, 0.8) !important;
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.5) !important;
    }

    .shop-item[data-active="true"] .shop-item-price {
        color: #ffffff;
        font-weight: bold;
    }

    .shop-item-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .shop-item-name {
        font-weight: bold;
        font-size: 18px;
    }

    .shop-item-desc {
        font-size: 12px;
        text-align: center;
        opacity: 0.8;
        width: 100%;
    }

    .shop-item-price {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 5px;
    }

    .shop-item-price span {
        color: #ffdd44;
        text-shadow: 0 0 10px rgba(255, 221, 68, 0.8);
        font-weight: bold;
    }

    .shop-close {
        margin-top: 20px;
        background: rgba(30, 30, 60, 0.6);
        border: none;
        color: var(--text-color);
        padding: 10px 25px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-speed);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
        position: relative;
        overflow: hidden;
    }

    .shop-close::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, rgba(100, 100, 255, 0.5), rgba(200, 100, 255, 0.5));
        transition: all var(--transition-speed);
    }

    .shop-close:hover {
        background: rgba(60, 60, 120, 0.7);
        transform: translateY(-2px);
    }

    .shop-close:hover::after {
        height: 3px;
        box-shadow: 0 0 10px rgba(120, 120, 255, 0.8);
    }

    .power-up-active .grid {
        cursor: pointer;
    }

    .power-up-active .tile:not(.empty) {
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

    .power-up-active .tile:not(.empty):hover {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

    .power-up-active .tile.empty {
        pointer-events: none;
    }

    .power-up-indicator {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(20, 20, 60, 0.9);
        border: 2px solid rgba(100, 100, 255, 0.8);
        border-radius: 10px;
        padding: 15px 25px;
        color: white;
        display: none;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.6);
        text-align: center;
        animation: glowText 2s ease-in-out infinite;
        backdrop-filter: blur(5px);
    }

    #power-up-indicator.show {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #power-up-indicator-text {
        font-size: 18px;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .banner {
        width: 100%;
        max-width: 500px;
        height: 90px;
        background: linear-gradient(45deg, rgba(60, 60, 120, 0.7), rgba(100, 100, 255, 0.7));
        margin-top: 20px;
        border-radius: var(--border-radius);
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 20px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        border: var(--grid-border);
        box-shadow: 0 0 15px var(--glow-color);
        backdrop-filter: blur(5px);
        animation: borderGlow 8s linear infinite;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .recommended-bot {
        text-align: center;
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        letter-spacing: 1px;
        animation: floatEffect 5s ease-in-out infinite;
        animation-delay: 1s;
        padding: 0 10px;
    }

    .recommended-bot a {
        color: #aabbff;
        text-decoration: none;
        transition: all 0.3s ease;
        text-shadow: 0 0 5px rgba(120, 120, 255, 0.5);
    }

    .recommended-bot a:hover {
        color: #ccddff;
        text-shadow: 0 0 8px rgba(120, 120, 255, 0.8);
    }

    .stars-container {
        display: flex;
        align-items: center;
        background-color: rgba(30, 30, 60, 0.6);
        border-radius: var(--border-radius);
        padding: 8px 15px;
        box-shadow: 0 0 10px rgba(120, 120, 255, 0.3);
        min-width: 80px;
        justify-content: center;
        border: 1px solid rgba(100, 100, 255, 0.2);
    }

    .star {
        color: #ffdd44;
        font-size: 18px;
        margin-left: 15px;
        margin-right: 0;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    }

    #stars-count {
        font-size: 18px;
        font-weight: bold;
        color: white;
        display: inline-block;
        min-width: 40px;
        text-align: right;
        background: rgba(30, 30, 60, 0.6);
        padding: 8px 15px;
        border-radius: var(--border-radius);
    }

    #stars-count::after {
        content: ' ★';
        color: #ffdd44;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    }

    .game-over-buttons {
        display: flex;
        gap: 15px;
        margin-top: 10px;
    }

    .reset-progress-container {
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0.5;
        padding-top: 20px;
        border-top: 1px solid rgba(100, 100, 255, 0.2);
    }

    .reset-btn {
        background-color: rgba(255, 80, 80, 0.2);
        border-color: rgba(255, 80, 80, 0.3);
        font-size: 12px;
        padding: 8px 15px;
    }

    .reset-btn:hover {
        background-color: rgba(255, 80, 80, 0.4);
    }

    .reset-note {
        font-size: 11px;
        margin-top: 5px;
        opacity: 0.7;
    }

    @keyframes shootingStar {
        0% {
            transform: translate(0, 0) rotate(315deg) scale(0);
            opacity: 0;
        }
        10% {
            transform: translate(-10%, 10%) rotate(315deg) scale(1);
            opacity: 1;
        }
        100% {
            transform: translate(-100%, 100%) rotate(315deg) scale(0.2);
            opacity: 0;
        }
    }

    .shooting-star {
        position: absolute;
        width: 100px;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0));
        border-radius: 50%;
        filter: drop-shadow(0 0 6px white);
        z-index: -1;
        opacity: 0;
    }

    .shooting-star::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 15px;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
        transform: translateX(50%);
        border-radius: 50%;
        filter: drop-shadow(0 0 6px white);
    }

    .space-object {
        position: absolute;
        pointer-events: none;
        z-index: -1;
        opacity: 0.8;
        transition: opacity 1s ease;
    }

    .planet {
        border-radius: 50%;
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    }

    .nebula {
        filter: blur(5px);
        mix-blend-mode: screen;
        background: radial-gradient(ellipse at center, rgba(180, 100, 255, 0.8) 10%, rgba(100, 150, 255, 0.6) 30%, rgba(50, 100, 200, 0.4) 60%, transparent 80%);
        box-shadow: 0 0 30px rgba(150, 100, 255, 0.6);
        animation: pulseNebula 8s ease-in-out infinite alternate;
    }

    .nebula-special {
        filter: blur(4px);
        mix-blend-mode: screen;
        background: radial-gradient(ellipse at center, rgba(255, 150, 100, 0.8) 10%, rgba(255, 100, 150, 0.6) 30%, rgba(200, 50, 100, 0.4) 60%, transparent 80%);
        box-shadow: 0 0 30px rgba(255, 100, 150, 0.6);
        animation: pulseNebula 8s ease-in-out infinite alternate;
    }

    @keyframes pulseNebula {
        0% { opacity: 0.7; filter: blur(5px); }
        50% { opacity: 0.9; filter: blur(4px); }
        100% { opacity: 0.7; filter: blur(5px); }
    }

    .blackhole {
        border-radius: 50%;
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 30%, rgba(30, 0, 60, 0.5) 70%, transparent 100%);
        box-shadow: 0 0 30px rgba(100, 0, 150, 0.5);
        animation: pulseBlackhole 10s infinite alternate;
    }

    .galaxy {
        border-radius: 50%;
        background: conic-gradient(
            rgba(255, 100, 255, 0.5),
            rgba(100, 100, 255, 0.5),
            rgba(100, 255, 255, 0.5),
            rgba(100, 255, 100, 0.5),
            rgba(255, 255, 100, 0.5),
            rgba(255, 100, 100, 0.5),
            rgba(255, 100, 255, 0.5)
        );
        filter: blur(3px);
        box-shadow: 0 0 30px rgba(200, 100, 255, 0.5);
        animation: rotateGalaxy 60s linear infinite;
    }

    .comet {
        width: 80px !important;
        height: 3px !important;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8) 50%, rgba(100, 200, 255, 0.6));
        border-radius: 50%;
        filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.8));
        transform: rotate(45deg);
    }

    .comet::before {
        content: '';
        position: absolute;
        top: -3px;
        right: 0;
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        box-shadow: 0 0 15px 5px rgba(100, 200, 255, 0.8);
    }

    .asteroid-belt {
        border-radius: 50%;
        border: 8px dotted rgba(180, 180, 180, 0.3);
        box-shadow: 0 0 20px rgba(180, 180, 180, 0.2);
        animation: rotateAsteroidBelt 80s linear infinite;
    }

    .star-cluster {
        background: radial-gradient(circle at center, rgba(255, 255, 200, 0.8) 5%, rgba(255, 200, 100, 0.4) 30%, transparent 70%);
        filter: blur(2px);
        box-shadow: 0 0 30px rgba(255, 200, 100, 0.5);
    }

    .supernova {
        border-radius: 50%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 10%, rgba(255, 200, 100, 0.8) 20%, rgba(255, 100, 50, 0.6) 40%, rgba(255, 50, 50, 0.4) 60%, transparent 80%);
        box-shadow: 0 0 50px rgba(255, 200, 100, 0.8);
        animation: pulsateSupernova 4s ease-in-out infinite alternate;
        overflow: hidden;
    }

    .planet-green {
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(100, 255, 150, 0.9), rgba(50, 200, 100, 0.7) 40%, rgba(30, 150, 80, 0.5) 60%);
        box-shadow: 0 0 20px rgba(100, 255, 150, 0.5);
    }

    .planet-purple {
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(200, 100, 255, 0.9), rgba(150, 50, 200, 0.7) 40%, rgba(100, 30, 150, 0.5) 60%);
        box-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
    }

    .planet-gold {
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 220, 100, 0.9), rgba(230, 180, 50, 0.7) 40%, rgba(200, 150, 30, 0.5) 60%);
        box-shadow: 0 0 20px rgba(255, 220, 100, 0.5);
    }

    .planet-ice {
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(200, 240, 255, 0.9), rgba(150, 200, 255, 0.7) 40%, rgba(100, 150, 200, 0.5) 60%);
        box-shadow: 0 0 20px rgba(150, 200, 255, 0.5);
    }

    .wormhole {
        border-radius: 50%;
        background: conic-gradient(
            rgba(0, 0, 0, 1),
            rgba(50, 0, 100, 0.8),
            rgba(100, 0, 200, 0.6),
            rgba(150, 50, 255, 0.4),
            rgba(200, 100, 255, 0.6),
            rgba(100, 0, 200, 0.8),
            rgba(50, 0, 100, 1),
            rgba(0, 0, 0, 1)
        );
        box-shadow: 0 0 40px rgba(150, 50, 255, 0.6);
        animation: rotateWormhole 20s linear infinite;
    }

    @keyframes rotateGalaxy {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes rotateAsteroidBelt {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes pulsateSupernova {
        0% { transform: scale(0.9); opacity: 0.7; }
        100% { transform: scale(1.1); opacity: 1; }
    }

    @keyframes rotateWormhole {
        0% { transform: rotate(0deg) scale(1); }
        50% { transform: rotate(180deg) scale(0.8); }
        100% { transform: rotate(360deg) scale(1); }
    }

    @keyframes pulseBlackhole {
        0% { box-shadow: 0 0 30px rgba(100, 0, 150, 0.5); }
        100% { box-shadow: 0 0 50px rgba(150, 50, 200, 0.7); }
    }

    /* Theme styles */
    .tile.neon {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .tile.pastel {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    .tile.greyshades {
        background: rgba(40, 40, 40, 0.8);
        border: 2px solid rgba(100, 100, 100, 0.3);
        box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    .tile.cyberpunk {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(0, 255, 255, 0.5);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    }

    .tile.retro {
        background: rgba(40, 40, 40, 0.8);
        border: 2px solid rgba(255, 100, 0, 0.5);
        box-shadow: 0 0 15px rgba(255, 100, 0, 0.3);
        text-shadow: 0 0 10px rgba(255, 100, 0, 0.8);
    }

    .tile.crystal {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
    }

    /* Theme-specific tile colors */
    .tile.neon[data-value="2"] { background: rgba(0, 255, 255, 0.3); box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); }
    .tile.neon[data-value="4"] { background: rgba(255, 0, 255, 0.3); box-shadow: 0 0 15px rgba(255, 0, 255, 0.5); }
    .tile.neon[data-value="8"] { background: rgba(0, 255, 0, 0.3); box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    .tile.neon[data-value="16"] { background: rgba(255, 255, 0, 0.3); box-shadow: 0 0 15px rgba(255, 255, 0, 0.5); }
    .tile.neon[data-value="32"] { background: rgba(255, 0, 0, 0.3); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
    .tile.neon[data-value="64"] { background: rgba(0, 0, 255, 0.3); box-shadow: 0 0 15px rgba(0, 0, 255, 0.5); }
    .tile.neon[data-value="128"] { background: rgba(255, 165, 0, 0.3); box-shadow: 0 0 15px rgba(255, 165, 0, 0.5); }
    .tile.neon[data-value="256"] { background: rgba(255, 192, 203, 0.3); box-shadow: 0 0 15px rgba(255, 192, 203, 0.5); }
    .tile.neon[data-value="512"] { background: rgba(128, 0, 128, 0.3); box-shadow: 0 0 15px rgba(128, 0, 128, 0.5); }
    .tile.neon[data-value="1024"] { background: rgba(0, 255, 0, 0.3); box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    .tile.neon[data-value="2048"] { background: rgba(255, 0, 0, 0.3); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }

    .tile.pastel[data-value="2"] { background: rgba(255, 182, 193, 0.3); box-shadow: 0 0 10px rgba(255, 182, 193, 0.5); }
    .tile.pastel[data-value="4"] { background: rgba(176, 224, 230, 0.3); box-shadow: 0 0 10px rgba(176, 224, 230, 0.5); }
    .tile.pastel[data-value="8"] { background: rgba(221, 160, 221, 0.3); box-shadow: 0 0 10px rgba(221, 160, 221, 0.5); }
    .tile.pastel[data-value="16"] { background: rgba(176, 196, 222, 0.3); box-shadow: 0 0 10px rgba(176, 196, 222, 0.5); }
    .tile.pastel[data-value="32"] { background: rgba(255, 218, 185, 0.3); box-shadow: 0 0 10px rgba(255, 218, 185, 0.5); }
    .tile.pastel[data-value="64"] { background: rgba(230, 230, 250, 0.3); box-shadow: 0 0 10px rgba(230, 230, 250, 0.5); }
    .tile.pastel[data-value="128"] { background: rgba(255, 192, 203, 0.3); box-shadow: 0 0 10px rgba(255, 192, 203, 0.5); }
    .tile.pastel[data-value="256"] { background: rgba(176, 224, 230, 0.3); box-shadow: 0 0 10px rgba(176, 224, 230, 0.5); }
    .tile.pastel[data-value="512"] { background: rgba(221, 160, 221, 0.3); box-shadow: 0 0 10px rgba(221, 160, 221, 0.5); }
    .tile.pastel[data-value="1024"] { background: rgba(176, 196, 222, 0.3); box-shadow: 0 0 10px rgba(176, 196, 222, 0.5); }
    .tile.pastel[data-value="2048"] { background: rgba(255, 218, 185, 0.3); box-shadow: 0 0 10px rgba(255, 218, 185, 0.5); }

    .tile.greyshades[data-value="2"] { background: rgba(60, 60, 60, 0.3); box-shadow: 0 0 10px rgba(60, 60, 60, 0.5); }
    .tile.greyshades[data-value="4"] { background: rgba(80, 80, 80, 0.3); box-shadow: 0 0 10px rgba(80, 80, 80, 0.5); }
    .tile.greyshades[data-value="8"] { background: rgba(100, 100, 100, 0.3); box-shadow: 0 0 10px rgba(100, 100, 100, 0.5); }
    .tile.greyshades[data-value="16"] { background: rgba(120, 120, 120, 0.3); box-shadow: 0 0 10px rgba(120, 120, 120, 0.5); }
    .tile.greyshades[data-value="32"] { background: rgba(140, 140, 140, 0.3); box-shadow: 0 0 10px rgba(140, 140, 140, 0.5); }
    .tile.greyshades[data-value="64"] { background: rgba(160, 160, 160, 0.3); box-shadow: 0 0 10px rgba(160, 160, 160, 0.5); }
    .tile.greyshades[data-value="128"] { background: rgba(180, 180, 180, 0.3); box-shadow: 0 0 10px rgba(180, 180, 180, 0.5); }
    .tile.greyshades[data-value="256"] { background: rgba(200, 200, 200, 0.3); box-shadow: 0 0 10px rgba(200, 200, 200, 0.5); }
    .tile.greyshades[data-value="512"] { background: rgba(220, 220, 220, 0.3); box-shadow: 0 0 10px rgba(220, 220, 220, 0.5); }
    .tile.greyshades[data-value="1024"] { background: rgba(240, 240, 240, 0.3); box-shadow: 0 0 10px rgba(240, 240, 240, 0.5); }
    .tile.greyshades[data-value="2048"] { background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }

    .tile.cyberpunk[data-value="2"] { background: rgba(0, 255, 255, 0.3); box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); }
    .tile.cyberpunk[data-value="4"] { background: rgba(255, 0, 255, 0.3); box-shadow: 0 0 15px rgba(255, 0, 255, 0.5); }
    .tile.cyberpunk[data-value="8"] { background: rgba(0, 255, 0, 0.3); box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    .tile.cyberpunk[data-value="16"] { background: rgba(255, 255, 0, 0.3); box-shadow: 0 0 15px rgba(255, 255, 0, 0.5); }
    .tile.cyberpunk[data-value="32"] { background: rgba(255, 0, 0, 0.3); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
    .tile.cyberpunk[data-value="64"] { background: rgba(0, 0, 255, 0.3); box-shadow: 0 0 15px rgba(0, 0, 255, 0.5); }
    .tile.cyberpunk[data-value="128"] { background: rgba(255, 165, 0, 0.3); box-shadow: 0 0 15px rgba(255, 165, 0, 0.5); }
    .tile.cyberpunk[data-value="256"] { background: rgba(255, 192, 203, 0.3); box-shadow: 0 0 15px rgba(255, 192, 203, 0.5); }
    .tile.cyberpunk[data-value="512"] { background: rgba(128, 0, 128, 0.3); box-shadow: 0 0 15px rgba(128, 0, 128, 0.5); }
    .tile.cyberpunk[data-value="1024"] { background: rgba(0, 255, 0, 0.3); box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    .tile.cyberpunk[data-value="2048"] { background: rgba(255, 0, 0, 0.3); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }

    .tile.retro[data-value="2"] { background: rgba(255, 100, 0, 0.3); box-shadow: 0 0 15px rgba(255, 100, 0, 0.5); }
    .tile.retro[data-value="4"] { background: rgba(255, 150, 0, 0.3); box-shadow: 0 0 15px rgba(255, 150, 0, 0.5); }
    .tile.retro[data-value="8"] { background: rgba(255, 200, 0, 0.3); box-shadow: 0 0 15px rgba(255, 200, 0, 0.5); }
    .tile.retro[data-value="16"] { background: rgba(255, 250, 0, 0.3); box-shadow: 0 0 15px rgba(255, 250, 0, 0.5); }
    .tile.retro[data-value="32"] { background: rgba(255, 100, 0, 0.3); box-shadow: 0 0 15px rgba(255, 100, 0, 0.5); }
    .tile.retro[data-value="64"] { background: rgba(255, 150, 0, 0.3); box-shadow: 0 0 15px rgba(255, 150, 0, 0.5); }
    .tile.retro[data-value="128"] { background: rgba(255, 200, 0, 0.3); box-shadow: 0 0 15px rgba(255, 200, 0, 0.5); }
    .tile.retro[data-value="256"] { background: rgba(255, 250, 0, 0.3); box-shadow: 0 0 15px rgba(255, 250, 0, 0.5); }
    .tile.retro[data-value="512"] { background: rgba(255, 100, 0, 0.3); box-shadow: 0 0 15px rgba(255, 100, 0, 0.5); }
    .tile.retro[data-value="1024"] { background: rgba(255, 150, 0, 0.3); box-shadow: 0 0 15px rgba(255, 150, 0, 0.5); }
    .tile.retro[data-value="2048"] { background: rgba(255, 200, 0, 0.3); box-shadow: 0 0 15px rgba(255, 200, 0, 0.5); }

    .tile.crystal[data-value="2"] { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
    .tile.crystal[data-value="4"] { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    .tile.crystal[data-value="8"] { background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
    .tile.crystal[data-value="16"] { background: rgba(255, 255, 255, 0.25); box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }
    .tile.crystal[data-value="32"] { background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
    .tile.crystal[data-value="64"] { background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 20px rgba(255, 255, 255, 0.9); }
    .tile.crystal[data-value="128"] { background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 20px rgba(255, 255, 255, 1); }
    .tile.crystal[data-value="256"] { background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 20px rgba(255, 255, 255, 1); }
    .tile.crystal[data-value="512"] { background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 20px rgba(255, 255, 255, 1); }
    .tile.crystal[data-value="1024"] { background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 20px rgba(255, 255, 255, 1); }
    .tile.crystal[data-value="2048"] { background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 20px rgba(255, 255, 255, 1); }

    .star-notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 215, 0, 0.2);
        color: #ffd700;
        padding: 15px 30px;
        border-radius: var(--border-radius);
        font-size: 24px;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        animation: starNotification 2s ease-in-out forwards;
        z-index: 1000;
        backdrop-filter: blur(5px);
        border: 2px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    @keyframes starNotification {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }
        20% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.2);
        }
        40% {
            transform: translate(-50%, -50%) scale(1);
        }
        80% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
    }

    .grid.selecting-tile .tile:not(.empty) {
        cursor: pointer;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        }
        70% {
            transform: scale(1.05);
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        }
    }

    /* High Scores Dialog */
    .high-scores-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 30, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 20px;
        backdrop-filter: blur(10px);
        z-index: 100;
        overflow: auto;
    }

    .high-scores-dialog.show {
        display: flex;
    }

    .high-scores-title {
        font-size: 32px;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        letter-spacing: 2px;
        margin-top: 20px;
    }

    .high-scores-tabs {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
    }

    .high-scores-tab {
        background: rgba(30, 30, 60, 0.6);
        border: none;
        color: var(--text-color);
        padding: 8px 20px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-speed);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
        font-size: 14px;
        position: relative;
        overflow: hidden;
        opacity: 0.7;
    }

    .high-scores-tab.active {
        background: rgba(60, 60, 120, 0.7);
        opacity: 1;
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.3);
    }

    .high-scores-content {
        display: none;
        max-height: 60vh;
        overflow-y: auto;
        margin: 0 10px;
        padding-right: 5px;
        width: 100%;
        max-width: 500px;
    }

    .high-scores-content.active {
        display: block;
    }

    .high-scores-list {
        list-style: none;
        padding: 0;
    }

    .high-score-item {
        background: rgba(30, 30, 60, 0.6);
        border: 1px solid rgba(100, 100, 255, 0.2);
        border-radius: var(--border-radius);
        padding: 15px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all var(--transition-speed);
    }

    .high-score-item:hover {
        background: rgba(60, 60, 120, 0.7);
        transform: translateX(5px);
    }

    .high-score-rank {
        font-weight: bold;
        color: #ffdd44;
        margin-right: 15px;
    }

    .high-score-name {
        flex-grow: 1;
    }

    .high-score-value {
        font-weight: bold;
        color: #88ccff;
    }

    .high-score-date {
        font-size: 12px;
        opacity: 0.7;
        margin-left: 15px;
    }

    /* Starting Game Popup */
    .start-game-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(30, 30, 60, 0.95);
        padding: 30px;
        border-radius: var(--border-radius);
        text-align: center;
        z-index: 1000;
        box-shadow: 0 0 30px rgba(100, 100, 255, 0.5);
        border: 2px solid rgba(100, 100, 255, 0.3);
        animation: popupAppear 0.5s ease-out, popupDisappear 0.5s ease-in 2s forwards;
    }

    @keyframes popupAppear {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    @keyframes popupDisappear {
        0% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
    }

    .start-game-popup h2 {
        font-size: 24px;
        margin-bottom: 15px;
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .start-game-popup p {
        font-size: 16px;
        color: #88ccff;
    }

    .start-game-button {
        background: rgba(100, 100, 255, 0.3);
        border: 2px solid rgba(100, 100, 255, 0.5);
        color: #ffffff;
        padding: 10px 25px;
        border-radius: var(--border-radius);
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: all var(--transition-speed);
    }

    .start-game-button:hover {
        background: rgba(100, 100, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.5);
    }

    .bottom-menu {
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .menu-button {
        background: rgba(30, 30, 60, 0.6);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        transition: all var(--transition-speed);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.3);
        backdrop-filter: blur(5px);
    }

    .menu-button:hover {
        transform: translateY(-2px);
        background: rgba(60, 60, 120, 0.7);
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    }

    .menu-icon {
        font-size: 24px;
        line-height: 1;
    }

    /* Options Dialog */
    .options-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(20, 20, 35, 0.95);
        border-radius: 20px;
        padding: 25px;
        width: 90%;
        max-width: 400px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        display: none;
    }

    .options-dialog.show {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

    .options-title {
        color: #fff;
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .options-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .option-group {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .option-group h3 {
        color: #fff;
        font-size: 18px;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .option-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .option-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }

    .option-label {
        color: #fff;
        font-size: 16px;
    }

    /* Toggle Switch Styles */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.2);
        transition: .4s;
        border-radius: 24px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .toggle-slider {
        background-color: #4CAF50;
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }

    input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

    /* Volume Slider Styles */
    .volume-slider {
        -webkit-appearance: none;
        width: 120px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        outline: none;
    }

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: #4CAF50;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .volume-slider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }

    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        background: #4CAF50;
        border-radius: 50%;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
    }

    .volume-slider::-moz-range-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    .language-select {
        background: rgba(30, 30, 60, 0.8);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 10px 15px;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        max-width: 300px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        box-shadow: 0 0 15px rgba(100, 100, 255, 0.2);
    }

    .language-select:hover {
        background: rgba(40, 40, 80, 0.9);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.3);
    }

    .language-select:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 25px rgba(100, 100, 255, 0.4);
    }

    .language-select option {
        background: rgba(20, 20, 35, 0.95);
        color: #fff;
        padding: 10px;
        font-size: 16px;
    }

    .language-select option:hover {
        background: rgba(40, 40, 80, 0.9);
    }