body {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #ff6b9d 0%, #c44569 25%, #f8b500 50%, #ff6b9d 75%, #c44569 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            min-height: 100%;
            color: #333;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Body Abstract Shapes */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(253, 121, 168, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(116, 185, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 184, 148, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 20%, rgba(162, 155, 254, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(253, 203, 110, 0.1) 0%, transparent 50%);
            animation: bodyShapesFloat 25s ease-in-out infinite;
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            background-image: 
                radial-gradient(ellipse at 60% 10%, rgba(253, 121, 168, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 30% 60%, rgba(116, 185, 255, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 90%, rgba(0, 184, 148, 0.08) 0%, transparent 40%);
            animation: bodyShapesFloat 30s ease-in-out infinite reverse;
        }

        @keyframes bodyShapesFloat {
            0%, 100% { 
                transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
                opacity: 0.6;
            }
            25% { 
                transform: translateX(20px) translateY(-30px) rotate(90deg) scale(1.1);
                opacity: 0.8;
            }
            50% { 
                transform: translateX(-15px) translateY(-20px) rotate(180deg) scale(0.9);
                opacity: 0.4;
            }
            75% { 
                transform: translateX(25px) translateY(-40px) rotate(270deg) scale(1.05);
                opacity: 0.7;
            }
        }

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

        .intro-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
            background-size: 400% 400%;
            animation: gradientShift 8s ease infinite, fadeOut 4s ease-in-out 2s forwards;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            overflow: hidden;
        }

        .intro-logo {
            font-size: 5rem;
            animation: logoFloat 2s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
            margin-bottom: 30px;
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
            filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
        }

        .intro-text {
            color: white;
            font-size: 2.5rem;
            font-weight: 800;
            text-align: center;
            animation: slideUp 1.5s ease-out 0.8s both;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            letter-spacing: 2px;
            margin-bottom: 40px;
        }

        .intro-loader {
            margin-top: 20px;
            animation: slideUp 1.5s ease-out 1.2s both;
        }

        .loader-container {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto;
        }

        .loader-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 4px solid transparent;
            border-radius: 50%;
            animation: spin 2s linear infinite;
        }

        .loader-ring:nth-child(1) {
            border-top: 4px solid #ffffff;
            border-right: 4px solid #ffffff;
            animation-duration: 1.5s;
        }

        .loader-ring:nth-child(2) {
            border-bottom: 4px solid #f093fb;
            border-left: 4px solid #f093fb;
            animation-duration: 2s;
            animation-direction: reverse;
        }

        .loader-ring:nth-child(3) {
            border-top: 4px solid #4facfe;
            border-right: 4px solid #4facfe;
            animation-duration: 1.8s;
            width: 60px;
            height: 60px;
            top: 10px;
            left: 10px;
        }

        .loader-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .loader-dot {
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            animation: dotPulse 1.5s ease-in-out infinite;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .loader-dot:nth-child(1) { animation-delay: 0s; }
        .loader-dot:nth-child(2) { animation-delay: 0.2s; }
        .loader-dot:nth-child(3) { animation-delay: 0.4s; }
        .loader-dot:nth-child(4) { animation-delay: 0.6s; }
        .loader-dot:nth-child(5) { animation-delay: 0.8s; }

        .loading-text {
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            margin-top: 25px;
            animation: textPulse 2s ease-in-out infinite;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            letter-spacing: 1px;
        }

        .intro-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            animation: particleFloat 6s linear infinite;
            opacity: 0.7;
        }

        @keyframes fadeOut {
            0%, 70% { opacity: 1; transform: scale(1); }
            100% { opacity: 0; visibility: hidden; transform: scale(1.1); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-15px) scale(1.05); }
        }

        @keyframes logoGlow {
            0%, 100% { 
                text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
                filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
            }
            50% { 
                text-shadow: 0 0 50px rgba(255, 255, 255, 1);
                filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
            }
        }

        @keyframes slideUp {
            from { transform: translateY(80px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

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

        @keyframes dotPulse {
            0%, 100% { 
                transform: scale(1); 
                opacity: 0.7;
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
            }
            50% { 
                transform: scale(1.3); 
                opacity: 1;
                box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
            }
        }

        @keyframes textPulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }

        @keyframes particleFloat {
            0% {
                transform: translateY(100vh) translateX(0px) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.7;
            }
            90% {
                opacity: 0.7;
            }
            100% {
                transform: translateY(-100px) translateX(100px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Header Styles */
        .game-header {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 10px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .logo-section:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .logo-icon {
            font-size: 2.5rem;
            animation: bounce 2s ease-in-out infinite;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .logo-title {
            font-size: 1.8rem;
            font-weight: 800;
            margin: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .logo-subtitle {
            font-size: 0.9rem;
            color: #666;
            margin: 0;
            font-weight: 500;
            line-height: 1.2;
        }

        .header-controls {
            display: flex;
            gap: 10px;
        }

        .header-btn {
            background: linear-gradient(135deg, #fd79a8, #e84393);
            color: white;
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            font-size: 1.3rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
            position: relative;
            overflow: hidden;
        }

        .header-btn:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
        }

        .header-btn.theme-btn {
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
        }

        .header-btn.theme-btn:hover {
            box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
        }

        .game-container {
            flex: 1;
            max-width: 900px;
            margin: 20px auto;
            background: #ffffff;
            border-radius: 25px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            position: relative;
            overflow: hidden;
        }

        .game-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 15% 25%, rgba(116, 185, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, rgba(253, 121, 168, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 45% 15%, rgba(0, 184, 148, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 45%, rgba(162, 155, 254, 0.05) 0%, transparent 50%);
            animation: containerParticles 20s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }

        .game-container > * {
            position: relative;
            z-index: 1;
        }

        @keyframes containerParticles {
            0%, 100% { 
                transform: translateX(0px) translateY(0px) rotate(0deg);
                opacity: 0.3;
            }
            25% { 
                transform: translateX(10px) translateY(-15px) rotate(90deg);
                opacity: 0.5;
            }
            50% { 
                transform: translateX(-8px) translateY(-10px) rotate(180deg);
                opacity: 0.2;
            }
            75% { 
                transform: translateX(12px) translateY(-20px) rotate(270deg);
                opacity: 0.4;
            }
        }

        .developer-btn, .theme-btn {
            background: linear-gradient(135deg, #fd79a8, #e84393);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
            position: relative;
            overflow: hidden;
        }

        .developer-btn:hover, .theme-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
        }



        .theme-btn {
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
        }

        .theme-btn:hover {
            box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
        }

        .developer-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            padding: 20px;
            box-sizing: border-box;
        }

        .developer-content {
            background: #ffffff;
            border-radius: 25px;
            padding: 35px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            border: 1px solid #e2e8f0;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }

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

        .game-title {
            font-size: 2.2rem;
            font-weight: bold;
            color: #4a5568;
            margin-bottom: 10px;
        }

        .welcome-message {
            font-size: 1rem;
            color: #718096;
            margin-bottom: 20px;
        }

        .player-setup {
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            color: white;
            box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
        }

        .setup-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .setup-group {
            flex: 1;
            min-width: 120px;
        }

        .setup-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .setup-select, .setup-input {
            width: 100%;
            padding: 8px 12px;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
        }

        .players-list {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .player-tag {
            background: rgba(255,255,255,0.2);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .remove-player {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 1rem;
        }

        .current-player {
            text-align: center;
            background: linear-gradient(135deg, #00b894, #00a085);
            color: white;
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            font-size: 1.2rem;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
        }

        .game-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat {
            text-align: center;
            padding: 12px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
        }

        .stat-value {
            font-size: 1.3rem;
            display: block;
            font-weight: bold;
        }

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

        .leaderboard {
            background: linear-gradient(135deg, #fdcb6e, #e17055);
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 20px;
            color: white;
            box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
        }

        .leaderboard h3 {
            margin: 0 0 10px 0;
            text-align: center;
        }

        .player-score {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .player-score:last-child {
            border-bottom: none;
        }

        .level-info {
            text-align: center;
            background: linear-gradient(135deg, #a29bfe, #6c5ce7);
            color: white;
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(162, 155, 254, 0.3);
        }

        .game-board {
            display: grid;
            gap: 8px;
            margin-bottom: 20px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 10px;
        }

        .board-easy { grid-template-columns: repeat(3, 1fr); }
        .board-medium { grid-template-columns: repeat(4, 1fr); }
        .board-hard { grid-template-columns: repeat(5, 1fr); }
        .board-expert { grid-template-columns: repeat(6, 1fr); }

        .card {
            aspect-ratio: 1;
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 6px 20px rgba(116, 185, 255, 0.3);
            position: relative;
            overflow: hidden;
            user-select: none;
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .card:hover::before {
            left: 100%;
        }

        .card:hover {
            transform: translateY(-8px) scale(1.05) rotate(2deg);
            box-shadow: 0 15px 35px rgba(116, 185, 255, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .card:active {
            transform: scale(0.92) translateY(-3px) rotate(1deg);
            transition: transform 0.15s ease;
        }

        .card.flipped {
            background: linear-gradient(135deg, #00b894, #00a085);
            box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
        }

        .card.matched {
            background: linear-gradient(135deg, #fdcb6e, #e17055);
            box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
            cursor: default;
            animation: matchPulse 0.6s ease-in-out;
        }

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

        .card-back {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #74b9ff, #0984e3);
            border-radius: 12px;
            transition: transform 0.4s ease;
            backface-visibility: hidden;
        }

        .card-front {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            transform: rotateY(180deg);
            transition: transform 0.4s ease;
            backface-visibility: hidden;
        }

        .card.flipped .card-back {
            transform: rotateY(180deg);
        }

        .card.flipped .card-front {
            transform: rotateY(0deg);
        }

        .question-section {
            background: linear-gradient(135deg, #a29bfe, #6c5ce7);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            color: white;
            text-align: center;
            box-shadow: 0 4px 15px rgba(162, 155, 254, 0.3);
        }

        .question-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .question-text {
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .power-ups {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .power-up {
            background: linear-gradient(135deg, #fd79a8, #fdcb6e);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 15px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
        }

        .power-up:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
        }

        .power-up:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

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

        .btn {
            padding: 15px 35px;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, #00b894, #00a085, #00b894);
            background-size: 200% 200%;
            color: white;
            box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
            animation: gradientShift 3s ease infinite;
        }

        .btn-primary:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 30px rgba(0, 184, 148, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .btn-primary:active {
            transform: translateY(-2px) scale(0.98);
            transition: transform 0.1s ease;
        }

        .btn-secondary {
            background: linear-gradient(135deg, #fd79a8, #e84393, #fd79a8);
            background-size: 200% 200%;
            color: white;
            box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
            animation: gradientShift 3s ease infinite;
        }

        .btn-secondary:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 30px rgba(253, 121, 168, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:active {
            transform: translateY(-2px) scale(0.98);
            transition: transform 0.1s ease;
        }

        .celebration {
            text-align: center;
            padding: 30px;
            background: linear-gradient(135deg, #fd79a8, #e84393);
            border-radius: 15px;
            margin-bottom: 20px;
            color: white;
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
        }

        .celebration h2 {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .hidden {
            display: none;
        }

        /* Tablet Styles */
        @media (max-width: 1024px) {
            .header-content {
                padding: 0 20px;
            }
            
            .game-container {
                margin: 20px;
                padding: 20px;
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }
            
            .developer-content {
                margin: 20px;
                padding: 25px;
            }
            
            .social-links {
                gap: 12px;
            }
            
            .social-link {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
        }

        /* Mobile Landscape */
        @media (max-width: 768px) {
            .header-content {
                padding: 0 15px;
            }
            
            .logo-section {
                gap: 10px;
                padding: 8px;
            }
            
            .logo-icon {
                font-size: 2rem;
            }
            
            .logo-title {
                font-size: 1.4rem;
            }
            
            .logo-subtitle {
                font-size: 0.8rem;
            }
            
            .header-btn {
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }
            
            .game-container {
                padding: 15px;
                margin: 15px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 15px;
            }
            
            .footer-section h4 {
                font-size: 1rem;
            }
            
            .quick-stats {
                flex-direction: row;
                gap: 10px;
            }
            
            .stat-item {
                padding: 10px;
                flex: 1;
            }
            
            .stat-number {
                font-size: 1.2rem;
            }
            
            .game-title {
                font-size: 1.8rem;
            }
            
            .setup-row {
                flex-direction: column;
                gap: 10px;
            }
            
            .setup-group {
                min-width: auto;
            }
            
            .board-hard { grid-template-columns: repeat(4, 1fr); }
            .board-expert { grid-template-columns: repeat(4, 1fr); }
            
            .card {
                font-size: 1.5rem;
            }
            
            .game-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .controls {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
                max-width: 250px;
                margin: 0 auto;
            }
            
            .developer-content {
                margin: 10px;
                padding: 20px;
                max-height: 85vh;
            }
            
            .developer-info-glass {
                padding: 15px;
                margin-top: 10px;
            }
            
            .developer-name {
                font-size: 1.2rem;
            }
            
            .developer-title {
                font-size: 0.9rem;
            }
            
            .social-links {
                gap: 8px;
                flex-wrap: wrap;
            }
            
            .social-link {
                padding: 8px 10px;
                font-size: 0.8rem;
                flex: 1;
                min-width: 120px;
                justify-content: center;
            }
            
            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .skill-tag {
                padding: 6px 8px;
                font-size: 0.8rem;
            }
            
            .intro-logo {
                font-size: 3rem;
            }
            
            .intro-text {
                font-size: 1.5rem;
                padding: 0 20px;
            }
        }

        /* Mobile Portrait */
        @media (max-width: 480px) {
            .header-content {
                padding: 0 10px;
            }
            
            .logo-section {
                gap: 8px;
                padding: 6px;
            }
            
            .logo-icon {
                font-size: 1.8rem;
            }
            
            .logo-title {
                font-size: 1.2rem;
            }
            
            .logo-subtitle {
                font-size: 0.75rem;
            }
            
            .header-btn {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }
            
            .game-container {
                padding: 10px;
                margin: 10px;
            }
            
            .game-title {
                font-size: 1.5rem;
            }
            
            .welcome-message {
                font-size: 0.9rem;
            }
            
            .card {
                font-size: 1.2rem;
                border-radius: 8px;
            }
            
            .game-board {
                gap: 4px;
                padding: 0 5px;
            }
            
            .board-medium { grid-template-columns: repeat(3, 1fr); }
            .board-hard { grid-template-columns: repeat(3, 1fr); }
            .board-expert { grid-template-columns: repeat(3, 1fr); }
            
            .game-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .stat {
                padding: 8px;
            }
            
            .stat-value {
                font-size: 1.1rem;
            }
            
            .stat-label {
                font-size: 0.75rem;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
                max-width: 200px;
            }
            
            .developer-content {
                margin: 5px;
                padding: 15px;
                max-height: 90vh;
            }
            
            .developer-avatar {
                width: 60px;
                height: 60px;
            }
            
            .developer-info-glass {
                padding: 12px;
                margin-top: 8px;
            }
            
            .developer-name {
                font-size: 1.1rem;
            }
            
            .developer-title {
                font-size: 0.85rem;
            }
            
            .dev-badge {
                padding: 4px 8px;
                font-size: 0.7rem;
            }
            
            .social-links {
                gap: 6px;
                flex-direction: column;
            }
            
            .social-link {
                padding: 10px;
                font-size: 0.85rem;
                width: 100%;
                justify-content: center;
            }
            
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 6px;
            }
            
            .skill-tag {
                padding: 6px 10px;
                font-size: 0.75rem;
            }
            
            .footer-content {
                padding: 0 10px;
            }
            
            .footer-section {
                text-align: center;
            }
            
            .footer-social {
                justify-content: center;
            }
            
            .intro-logo {
                font-size: 2.5rem;
            }
            
            .intro-text {
                font-size: 1.2rem;
                padding: 0 15px;
            }
            
            .power-ups {
                flex-direction: column;
                gap: 8px;
            }
            
            .power-up {
                width: 100%;
                max-width: 200px;
                margin: 0 auto;
            }
        }

        /* Extra Small Devices */
        @media (max-width: 360px) {
            .game-container {
                padding: 8px;
                margin: 8px;
            }
            
            .game-title {
                font-size: 1.3rem;
            }
            
            .card {
                font-size: 1rem;
            }
            
            .game-board {
                gap: 3px;
            }
            
            .board-easy { grid-template-columns: repeat(2, 1fr); }
            .board-medium { grid-template-columns: repeat(2, 1fr); }
            .board-hard { grid-template-columns: repeat(2, 1fr); }
            .board-expert { grid-template-columns: repeat(2, 1fr); }
            
            .developer-content {
                margin: 2px;
                padding: 10px;
            }
            
            .developer-avatar {
                width: 50px;
                height: 50px;
            }
            
            .intro-logo {
                font-size: 2rem;
            }
            
            .intro-text {
                font-size: 1rem;
                padding: 0 10px;
            }
        }

        /* Footer Styles */
        .game-footer {
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            margin-top: 40px;
            padding: 40px 0 20px;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            padding: 0 20px;
        }

        .footer-section h4 {
            color: #4a5568;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .footer-icon {
            font-size: 2rem;
            animation: bounce 2s ease-in-out infinite;
        }

        .footer-text h3 {
            font-size: 1.3rem;
            font-weight: 700;
            margin: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-text p {
            font-size: 0.9rem;
            color: #666;
            margin: 5px 0 0 0;
        }

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

        .footer-section li {
            padding: 5px 0;
            color: #666;
            font-size: 0.9rem;
        }

        .footer-social {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .footer-social a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }

        .footer-social a:hover {
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .quick-stats {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            background: linear-gradient(135deg, #fd79a8, #fdcb6e);
            border-radius: 12px;
            color: white;
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
        }

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

        .footer-bottom {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .footer-bottom p {
            color: #666;
            font-size: 0.9rem;
            margin: 0;
        }

        /* Dark Theme Styles */
        body.dark-theme {
            background: linear-gradient(135deg, #2c1810 0%, #8b2635 25%, #4a1810 50%, #2c1810 75%, #8b2635 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
        }

        .dark-theme .game-header {
            background: #2c3e50;
            border-bottom: 1px solid #34495e;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .dark-theme .logo-subtitle {
            color: #bdc3c7;
        }

        .dark-theme .game-footer {
            background: #2c3e50;
            border-top: 1px solid #34495e;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
        }

        .dark-theme .footer-section h4 {
            color: #ecf0f1;
        }

        .dark-theme .footer-text p,
        .dark-theme .footer-section li,
        .dark-theme .footer-bottom p {
            color: #bdc3c7;
        }

        .dark-theme .game-container {
            background: #34495e;
            border: 1px solid #2c3e50;
            color: #ecf0f1;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .dark-theme .game-title {
            color: #ecf0f1;
        }

        .dark-theme .welcome-message {
            color: #bdc3c7;
        }

        .dark-theme .setup-label {
            color: #ecf0f1;
        }

        .dark-theme .setup-select, 
        .dark-theme .setup-input {
            background: #34495e;
            color: #ecf0f1;
            border: 1px solid #7f8c8d;
        }

        .dark-theme .developer-content {
            background: #34495e;
            border: 1px solid #2c3e50;
            color: #ecf0f1;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .dark-theme .close-btn {
            color: #bdc3c7;
        }

        .dark-theme .intro-animation {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        }

        .dark-theme .intro-text {
            color: #ecf0f1;
        }

        /* Light Theme Specific Styles */
        body:not(.dark-theme) .game-container {
            background: white;
            color: #333;
        }

        body:not(.dark-theme) .game-title {
            color: #4a5568;
        }

        body:not(.dark-theme) .welcome-message {
            color: #718096;
        }

        body:not(.dark-theme) .setup-label {
            color: white;
        }

        body:not(.dark-theme) .setup-select, 
        body:not(.dark-theme) .setup-input {
            background: white;
            color: #333;
            border: 1px solid #ddd;
        }

        body:not(.dark-theme) .developer-content {
            background: white;
            color: #333;
        }

        body:not(.dark-theme) .close-btn {
            color: #666;
        }

        body:not(.dark-theme) .intro-animation {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        body:not(.dark-theme) .intro-text {
            color: white;
        }

        /* Social Links Styles */
        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .social-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .social-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            text-decoration: none;
            color: white;
        }

        .social-link.github {
            background: linear-gradient(135deg, #333, #24292e);
            box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
        }

        .social-link.github:hover {
            box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
        }

        .social-link.linkedin {
            background: linear-gradient(135deg, #0077b5, #005885);
            box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
        }

        .social-link.linkedin:hover {
            box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
        }

        .social-link.twitter {
            background: linear-gradient(135deg, #1da1f2, #0d8bd9);
            box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
        }

        .social-link.twitter:hover {
            box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
        }

        .social-link.instagram {
            background: linear-gradient(135deg, #e4405f, #833ab4, #fd1d1d, #fcb045);
            box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
        }

        .social-link.instagram:hover {
            box-shadow: 0 6px 20px rgba(228, 64, 95, 0.4);
        }

        .social-link.email {
            background: linear-gradient(135deg, #ea4335, #d33b2c);
            box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
        }

        .social-link.email:hover {
            box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
        }

        .social-icon {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin: 15px 0;
        }

        .skill-tag {
            background: linear-gradient(135deg, #fd79a8, #fdcb6e);
            color: white;
            padding: 8px 12px;
            border-radius: 20px;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba(253, 121, 168, 0.3);
        }

        .dark-theme .social-links .social-link {
            color: white;
        }

        .dark-theme .social-links .social-link:hover {
            color: white;
        }

        /* Developer Avatar Styles */
        .developer-avatar-container {
            position: relative;
            display: inline-block;
            cursor: pointer;
            border-radius: 50%;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .developer-avatar-container:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 10px 30px rgba(253, 121, 168, 0.5);
        }

        .developer-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid #fd79a8;
            transition: all 0.3s ease;
            display: block;
        }

        .developer-avatar-container:hover .developer-avatar {
            filter: brightness(0.7);
        }

        .github-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            border-radius: 50%;
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .developer-avatar-container:hover .github-overlay {
            opacity: 1;
        }

        .github-icon {
            width: 24px;
            height: 24px;
            fill: white;
            margin-bottom: 4px;
        }

        /* Enhanced Abstract Shapes */
        .abstract-shapes {
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 300px;
            pointer-events: none;
            z-index: -1;
            animation: shapeContainerRotate 25s linear infinite;
        }

        .shape {
            position: absolute;
            animation: floatShape 6s ease-in-out infinite;
            filter: blur(0.3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        /* Organic Blob Shapes */
        .shape-1 {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
            background-size: 300% 300%;
            top: 5px;
            left: 15px;
            animation: floatShape 5s ease-in-out infinite, gradientShift 8s ease infinite, morphShape1 12s ease-in-out infinite;
            animation-delay: 0s;
            opacity: 0.5;
            border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        }

        .shape-2 {
            width: 65px;
            height: 65px;
            background: linear-gradient(135deg, #74b9ff, #0984e3, #a29bfe, #6c5ce7);
            background-size: 300% 300%;
            top: 85px;
            right: 20px;
            animation: floatShape 7s ease-in-out infinite, gradientShift 10s ease infinite, morphShape2 15s ease-in-out infinite;
            animation-delay: 1.5s;
            opacity: 0.55;
            border-radius: 38% 62% 63% 37% / 70% 33% 67% 30%;
        }

        .shape-3 {
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, #00b894, #00a085, #fd79a8, #e84393);
            background-size: 300% 300%;
            bottom: 75px;
            left: 25px;
            animation: floatShape 6.5s ease-in-out infinite, gradientShift 12s ease infinite, morphShape3 18s ease-in-out infinite;
            animation-delay: 3s;
            opacity: 0.48;
            border-radius: 49% 51% 52% 48% / 68% 34% 66% 32%;
        }

        .shape-4 {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #a29bfe, #6c5ce7, #fdcb6e, #e17055);
            background-size: 300% 300%;
            bottom: 10px;
            right: 10px;
            animation: floatShape 8s ease-in-out infinite, gradientShift 9s ease infinite, morphShape4 14s ease-in-out infinite;
            animation-delay: 4.5s;
            opacity: 0.45;
            border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        }

        .shape-5 {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #fdcb6e, #fd79a8, #74b9ff, #00b894);
            background-size: 300% 300%;
            top: 45px;
            left: 50%;
            transform: translateX(-50%);
            animation: floatShape 4.5s ease-in-out infinite, gradientShift 7s ease infinite, morphShape5 16s ease-in-out infinite;
            animation-delay: 2.5s;
            opacity: 0.4;
            border-radius: 73% 27% 47% 53% / 68% 46% 54% 32%;
        }

        .shape-6 {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #00b894, #74b9ff, #a29bfe, #fd79a8);
            background-size: 300% 300%;
            bottom: 35px;
            left: 50%;
            transform: translateX(-50%);
            animation: floatShape 5.5s ease-in-out infinite, gradientShift 11s ease infinite, morphShape6 13s ease-in-out infinite;
            animation-delay: 1s;
            opacity: 0.35;
            border-radius: 83% 17% 45% 55% / 72% 28% 72% 28%;
        }

        /* New Additional Shapes */
        .shape-7 {
            width: 25px;
            height: 25px;
            background: linear-gradient(135deg, #e17055, #fdcb6e, #74b9ff);
            background-size: 300% 300%;
            top: 120px;
            left: 80px;
            animation: floatShape 6s ease-in-out infinite, gradientShift 13s ease infinite, morphShape7 11s ease-in-out infinite;
            animation-delay: 6s;
            opacity: 0.3;
            border-radius: 67% 33% 70% 30% / 30% 54% 46% 70%;
        }

        .shape-8 {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #6c5ce7, #a29bfe, #00b894);
            background-size: 300% 300%;
            top: 160px;
            right: 60px;
            animation: floatShape 7.5s ease-in-out infinite, gradientShift 14s ease infinite, morphShape8 17s ease-in-out infinite;
            animation-delay: 7.5s;
            opacity: 0.42;
            border-radius: 45% 55% 68% 32% / 68% 55% 45% 32%;
        }

        .shape-9 {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #ff6b9d, #74b9ff, #fdcb6e);
            background-size: 300% 300%;
            top: 200px;
            left: 120px;
            animation: floatShape 5.8s ease-in-out infinite, gradientShift 15s ease infinite, morphShape9 19s ease-in-out infinite;
            animation-delay: 9s;
            opacity: 0.38;
            border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%;
        }

        /* Morphing Animations for Organic Movement */
        @keyframes morphShape1 {
            0%, 100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
            25% { border-radius: 54% 46% 38% 62% / 49% 56% 44% 51%; }
            50% { border-radius: 41% 59% 47% 53% / 68% 32% 68% 32%; }
            75% { border-radius: 58% 42% 63% 37% / 41% 59% 41% 59%; }
        }

        @keyframes morphShape2 {
            0%, 100% { border-radius: 38% 62% 63% 37% / 70% 33% 67% 30%; }
            33% { border-radius: 47% 53% 42% 58% / 45% 67% 33% 55%; }
            66% { border-radius: 62% 38% 55% 45% / 58% 42% 58% 42%; }
        }

        @keyframes morphShape3 {
            0%, 100% { border-radius: 49% 51% 52% 48% / 68% 34% 66% 32%; }
            20% { border-radius: 35% 65% 47% 53% / 52% 48% 52% 48%; }
            40% { border-radius: 58% 42% 39% 61% / 43% 57% 43% 57%; }
            60% { border-radius: 44% 56% 61% 39% / 67% 33% 67% 33%; }
            80% { border-radius: 52% 48% 33% 67% / 54% 46% 54% 46%; }
        }

        @keyframes morphShape4 {
            0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
            50% { border-radius: 30% 70% 60% 40% / 40% 60% 40% 60%; }
        }

        @keyframes morphShape5 {
            0%, 100% { border-radius: 73% 27% 47% 53% / 68% 46% 54% 32%; }
            25% { border-radius: 47% 53% 73% 27% / 32% 68% 46% 54%; }
            50% { border-radius: 27% 73% 53% 47% / 54% 32% 68% 46%; }
            75% { border-radius: 53% 47% 27% 73% / 46% 54% 32% 68%; }
        }

        @keyframes morphShape6 {
            0%, 100% { border-radius: 83% 17% 45% 55% / 72% 28% 72% 28%; }
            33% { border-radius: 45% 55% 83% 17% / 28% 72% 28% 72%; }
            66% { border-radius: 17% 83% 55% 45% / 72% 28% 72% 28%; }
        }

        @keyframes morphShape7 {
            0%, 100% { border-radius: 67% 33% 70% 30% / 30% 54% 46% 70%; }
            50% { border-radius: 30% 70% 33% 67% / 70% 30% 54% 46%; }
        }

        @keyframes morphShape8 {
            0%, 100% { border-radius: 45% 55% 68% 32% / 68% 55% 45% 32%; }
            25% { border-radius: 68% 32% 45% 55% / 32% 68% 55% 45%; }
            50% { border-radius: 32% 68% 55% 45% / 45% 32% 68% 55%; }
            75% { border-radius: 55% 45% 32% 68% / 55% 45% 32% 68%; }
        }

        @keyframes morphShape9 {
            0%, 100% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; }
            33% { border-radius: 45% 55% 58% 42% / 58% 42% 58% 42%; }
            66% { border-radius: 42% 58% 55% 45% / 45% 55% 45% 55%; }
        }

        @keyframes shapeContainerRotate {
            0% { transform: translateX(-50%) rotate(0deg); }
            100% { transform: translateX(-50%) rotate(360deg); }
        }

        @keyframes floatShape {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg) scale(1);
                filter: blur(0.5px) brightness(1);
            }
            25% { 
                transform: translateY(-20px) rotate(90deg) scale(1.15);
                filter: blur(0.3px) brightness(1.1);
            }
            50% { 
                transform: translateY(-12px) rotate(180deg) scale(0.85);
                filter: blur(0.8px) brightness(0.9);
            }
            75% { 
                transform: translateY(-25px) rotate(270deg) scale(1.08);
                filter: blur(0.4px) brightness(1.05);
            }
        }

        /* Developer Profile Glass Styles */
        .developer-profile-section {
            text-align: center;
            margin-bottom: 20px;
            position: relative;
        }

        .developer-info-glass {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 20px;
            padding: 20px;
            margin-top: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .developer-info-glass:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            background: #ffffff;
        }

        .developer-name {
            margin: 0 0 8px 0;
            color: #fd79a8;
            font-size: 1.3rem;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(253, 121, 168, 0.3);
        }

        .developer-title {
            margin: 0 0 15px 0;
            font-size: 0.95rem;
            color: #666;
            font-weight: 500;
        }

        /* Developer Badges */
        .developer-badges {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .dev-badge {
            background: rgba(102, 126, 234, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(102, 126, 234, 0.3);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.75rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
            transition: all 0.3s ease;
        }

        .dev-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
            background: rgba(102, 126, 234, 0.3);
        }

        /* Dark theme adjustments for developer profile */
        .dark-theme .developer-info-glass {
            background: #2c3e50;
            border: 1px solid #34495e;
        }

        .dark-theme .developer-info-glass:hover {
            background: #34495e;
        }

        .dark-theme .developer-name {
            color: #fd79a8;
        }

        .dark-theme .developer-title {
            color: #bdc3c7;
        }



        /* Enhanced Avatar Effects */
        .developer-avatar-container {
            position: relative;
            display: inline-block;
            cursor: pointer;
            border-radius: 50%;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1;
            animation: avatarFloat 4s ease-in-out infinite;
        }

        .developer-avatar-container:hover {
            transform: scale(1.15) rotate(8deg);
            box-shadow: 0 15px 40px rgba(253, 121, 168, 0.6);
            animation-play-state: paused;
        }

        @keyframes avatarFloat {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg) scale(1);
                box-shadow: 0 8px 25px rgba(253, 121, 168, 0.4);
            }
            25% { 
                transform: translateY(-8px) rotate(2deg) scale(1.02);
                box-shadow: 0 12px 30px rgba(253, 121, 168, 0.5);
            }
            50% { 
                transform: translateY(-15px) rotate(-1deg) scale(1.05);
                box-shadow: 0 20px 40px rgba(253, 121, 168, 0.6);
            }
            75% { 
                transform: translateY(-8px) rotate(1deg) scale(1.02);
                box-shadow: 0 12px 30px rgba(253, 121, 168, 0.5);
            }
        }

        .developer-avatar-container::before {
            content: '';
            position: absolute;
            top: -6px;
            left: -6px;
            right: -6px;
            bottom: -6px;
            background: linear-gradient(45deg, #fd79a8, #fdcb6e, #74b9ff, #00b894, #a29bfe, #fd79a8);
            border-radius: 50%;
            z-index: -1;
            animation: rotateBorder 2.5s linear infinite;
            opacity: 0;
            transition: opacity 0.4s ease;
            filter: blur(1px);
        }

        .developer-avatar-container:hover::before {
            opacity: 1;
        }

        @keyframes rotateBorder {
            0% { 
                transform: rotate(0deg) scale(1); 
                filter: blur(1px) brightness(1);
            }
            50% { 
                transform: rotate(180deg) scale(1.05); 
                filter: blur(0.5px) brightness(1.2);
            }
            100% { 
                transform: rotate(360deg) scale(1); 
                filter: blur(1px) brightness(1);
            }
        }
        /* Responsive Design Enhancements */
        @media (max-width: 768px) {
            .game-container {
                padding: 12px;
                margin: 12px;
            }
            
            .game-title {
                font-size: 1.5rem;
            }
            
            .card {
                font-size: 1.2rem;
            }
            
            .game-board {
                gap: 5px;
            }
            
            .board-easy { grid-template-columns: repeat(3, 1fr); }
            .board-medium { grid-template-columns: repeat(3, 1fr); }
            .board-hard { grid-template-columns: repeat(4, 1fr); }
            .board-expert { grid-template-columns: repeat(4, 1fr); }
            
            .developer-content {
                margin: 5px;
                padding: 15px;
            }
            
            .developer-avatar {
                width: 60px;
                height: 60px;
            }
            
            .developer-badges .dev-badge {
                font-size: 0.7rem;
                padding: 5px 10px;
            }
            .intro-logo {
                font-size: 1.5rem;
            } 
        }