body {
            font-family: 'Outfit', sans-serif;
            /* Dark grey/blue mesh-like gradient background */
            background: linear-gradient(-45deg, #0f172a, #1e293b, #172554, #111827);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            color: #ffffff;
            min-height: 100vh;
            margin: 0;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }

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

        /* Glassmorphism Panel Utility */
        .glass-panel {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }

        /* Game Board Grid */
        .guess-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(2.5rem, 4.5rem));
            grid-template-rows: repeat(5, minmax(2.5rem, 4.5rem));
            gap: 0.5rem;
            justify-content: center;
        }

        /* Tile Base Styles */
        .tile {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            font-weight: 700;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 0.5rem;
            background: rgba(0, 0, 0, 0.2);
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            user-select: none;
            transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s;
        }

        @media (max-width: 400px) {
            .tile { font-size: 1.5rem; }
            .guess-grid { gap: 0.3rem; }
        }

        /* Tile States */
        .tile[data-state="active"] {
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
        }

        .tile[data-state="wrong"] {
            border-color: transparent;
            background: rgba(31, 41, 55, 0.7); /* Dark gray, glassy */
            color: rgba(255, 255, 255, 0.5);
        }

        .tile[data-state="wrong-location"] {
            border-color: transparent;
            background: rgba(246, 190, 18, 1); /* Amber */
            box-shadow: 0 0 15px rgba(246, 190, 18, 0.4);
        }

        .tile[data-state="correct"] {
            border-color: transparent;
            background: rgba(16, 185, 129, 1); /* Emerald */
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
        }

        /* Keyboard Keys Base Styles */
        .key {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 0.5rem;
            font-weight: 600;
            font-size: 1.25rem;
            transition: all 0.1s ease;
            cursor: pointer;
            user-select: none;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .key:active {
            transform: scale(0.95);
            background: rgba(255, 255, 255, 0.3);
        }

        .key:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        /* Keyboard Key States */
        .key.wrong { background: rgba(31, 41, 55, 1); color: #9ca3af; }
        .key.wrong-location { background: rgba(246, 190, 18, 1); border-color: rgba(255,255,255,0.4); }
        .key.correct { background: rgba(16, 185, 129, 0.9); border-color: rgba(255,255,255,0.4); }

        /* Animations */
        .tile.flip {
            animation: flip 500ms ease-in-out forwards;
        }

        @keyframes flip {
            0% { transform: rotateX(0deg); }
            50% { transform: rotateX(90deg); }
            100% { transform: rotateX(0deg); }
        }

        .tile.shake {
            animation: shake 400ms ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5%); }
            40%, 80% { transform: translateX(5%); }
        }

        .tile.dance {
            animation: dance 500ms ease-in-out;
        }

        @keyframes dance {
            0%, 100% { transform: translateY(0); }
            20% { transform: translateY(-20%); }
            40% { transform: translateY(5%); }
            60% { transform: translateY(-10%); }
            80% { transform: translateY(2%); }
        }

        /* Toast Alert Container */
        .alert-container {
            position: fixed;
            top: 5vh;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 50;
            pointer-events: none;
            gap: 0.5rem;
        }

        .alert {
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 2rem;
            font-weight: 600;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            opacity: 1;
            transition: opacity 300ms ease-in-out, transform 300ms ease-out;
            transform: translateY(0);
        }

        .alert.hide {
            opacity: 0;
            transform: translateY(-20px);
        }

        /* Hide scrollbar for clean look */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
