 /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        :root {
            --primary-orange: #ff6a00;
            --primary-pink: #ee0979;
            --primary-purple: #6a11cb;
            --primary-blue: #2575fc;
            --primary-green: #00b09b;
            --primary-cyan: #00c4cc;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --white: #ffffff;
        }

        html,
        body {
            max-width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: "Segoe UI", Arial, sans-serif;
            background: #f4f7fb;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ===== HEADER ===== */
        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 30px;
            background: var(--white);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
        }

        header img {
            height: 55px;
            max-width: 100%;
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 20px;
        }

        nav ul li a {
            text-decoration: none;
            font-weight: bold;
            color: #444;
            position: relative;
            transition: color 0.3s ease, transform 0.3s ease;
            padding: 5px 10px;
        }

        nav ul li a:hover {
            color: var(--primary-orange);
            transform: translateY(-2px);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--primary-orange);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        .menu-toggle {
            display: none;
            font-size: 24px;
            background: none;
            border: none;
            color: #444;
            cursor: pointer;
            z-index: 1001;
            transition: color 0.3s ease, transform 0.3s ease;
            padding: 5px;
        }

        .menu-toggle:hover {
            color: var(--primary-orange);
            transform: rotate(90deg);
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1 0 auto;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        /* ===== HERO ===== */
        .hero {
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
            text-align: center;
            padding: 70px 20px;
            width: 100%;
        }

        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 12px;
            animation: fadeInDown 1s ease;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
            line-height: 1.3;
            padding: 0 10px;
        }

        .hero p {
            font-size: 1.2rem;
            animation: fadeInUp 1.2s ease;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
            padding: 0 15px;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== TOOLS HEADING ===== */
        .tools-heading {
            text-align: center;
            margin: 30px auto;
            width: 100%;
            max-width: 1000px;
            padding: 0 20px;
        }

        .tools-heading h2 {
            font-size: 2.4rem;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .tools-heading h2::after {
            content: "";
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            border-radius: 2px;
            transition: width 0.4s ease;
        }

        .tools-heading h2:hover::after {
            width: 140px;
        }

        .tools-heading p {
            font-size: 1rem;
            color: var(--gray);
            max-width: 650px;
            margin: 15px auto 0;
            line-height: 1.6;
            padding: 0 10px;
        }

        .brand-highlight {
            color: var(--primary-orange);
            font-weight: 700;
        }

        /* ===== CONTAINER ===== */
        .container {
            width: 100%;
            max-width: 1100px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            margin: 20px auto;
            box-sizing: border-box;
        }

        .tool-container {
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 25px;
            box-sizing: border-box;
        }

        /* ===== GAME CARD ===== */
        .game-card {
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            border-radius: 20px;
            padding: 30px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 2px solid rgba(255, 106, 0, 0.1);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
            opacity: 0;
            transform: translateY(20px);
        }

        .game-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(255, 106, 0, 0.1);
        }

        .game-card h2 {
            font-size: 1.8rem;
            color: var(--primary-orange);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            text-align: center;
            line-height: 1.3;
        }

        .game-card h2 i {
            font-size: 1.8rem;
        }

        .game-subtitle {
            color: var(--gray);
            margin-bottom: 25px;
            font-size: 1rem;
            text-align: center;
            line-height: 1.5;
            padding: 0 10px;
        }

        /* ===== GAME CONTAINER LAYOUT ===== */
        .game-container {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 30px;
            margin-top: 20px;
        }

        @media (max-width: 900px) {
            .game-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        /* ===== BOARD ===== */
        .game-board-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            touch-action: none;
        }

        .board-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 500px;
            margin-bottom: 15px;
            gap: 10px;
            flex-wrap: wrap;
        }

        .score-boxes {
            display: flex;
            gap: 10px;
        }

        .score-box {
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
            border-radius: 10px;
            padding: 10px 18px;
            text-align: center;
            min-width: 90px;
            box-shadow: 0 4px 10px rgba(255, 106, 0, 0.25);
            transition: transform 0.2s;
        }

        .score-box:hover {
            transform: translateY(-3px);
        }

        .score-box .label {
            font-size: 0.72rem;
            text-transform: uppercase;
            opacity: 0.85;
            letter-spacing: 0.5px;
        }

        .score-box .value {
            font-size: 1.4rem;
            font-weight: 800;
        }

        .game-board {
            position: relative;
            display: grid;
            gap: 12px;
            width: 100%;
            max-width: 500px;
            aspect-ratio: 1 / 1;
            padding: 15px;
            border-radius: 15px;
            background: linear-gradient(135deg, #fef5e7, #fff0d9);
            box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.1);
            border: 2px solid rgba(255, 106, 0, 0.15);
            box-sizing: border-box;
        }

        .cell {
            background: rgba(255, 255, 255, 0.55);
            border-radius: 8px;
        }

        .tile {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-weight: 800;
            color: #5b4636;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
            transition: top 0.12s ease, left 0.12s ease, transform 0.12s ease;
            animation: tileAppear 0.15s ease;
            user-select: none;
        }

        @keyframes tileAppear {
            0% {
                transform: scale(0);
            }
            80% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }

        .tile.merged {
            animation: tileMerge 0.2s ease;
        }

        @keyframes tileMerge {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.18);
            }
            100% {
                transform: scale(1);
            }
        }

        .tile-2 {
            background: linear-gradient(135deg, #fef8f0, #fceedb);
        }
        .tile-4 {
            background: linear-gradient(135deg, #fdefc7, #fbe4a5);
        }
        .tile-8 {
            background: linear-gradient(135deg, #ffb37b, #ff9a52);
            color: #fff;
        }
        .tile-16 {
            background: linear-gradient(135deg, #ff9364, #ff6a00);
            color: #fff;
        }
        .tile-32 {
            background: linear-gradient(135deg, #ff7a7a, #ee5a52);
            color: #fff;
        }
        .tile-64 {
            background: linear-gradient(135deg, #ff4f4f, #ee0979);
            color: #fff;
        }
        .tile-128 {
            background: linear-gradient(135deg, #ffe066, #ffd93d);
            color: #7a5c00;
            font-size: 0.9em;
        }
        .tile-256 {
            background: linear-gradient(135deg, #ffd23d, #ff9a00);
            color: #fff;
            font-size: 0.9em;
        }
        .tile-512 {
            background: linear-gradient(135deg, #b98cf2, #6a11cb);
            color: #fff;
            font-size: 0.85em;
        }
        .tile-1024 {
            background: linear-gradient(135deg, #7a9cff, #2575fc);
            color: #fff;
            font-size: 0.8em;
        }
        .tile-2048 {
            background: linear-gradient(135deg, #00d4b8, #00b09b);
            color: #fff;
            font-size: 0.8em;
            box-shadow: 0 0 20px rgba(0, 176, 155, 0.7);
        }
        .tile-super {
            background: linear-gradient(135deg, #212529, #495057);
            color: #ffd700;
            font-size: 0.7em;
        }

        .game-status {
            text-align: center;
            margin-top: 20px;
            padding: 15px;
            background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(238, 9, 121, 0.08));
            border-radius: 12px;
            border-left: 4px solid var(--primary-orange);
            width: 100%;
            max-width: 500px;
            box-sizing: border-box;
        }

        .status-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.4;
        }

        /* ===== CONTROLS PANEL ===== */
        .game-controls-panel {
            background: linear-gradient(135deg, #f8f9fa, #fff8f0);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(255, 106, 0, 0.1);
            box-sizing: border-box;
        }

        .game-mode,
        .game-info,
        .score-board {
            margin-bottom: 20px;
        }

        .game-controls-panel h3 {
            color: var(--primary-orange);
            margin-bottom: 12px;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
            text-align: center;
        }

        .game-controls-panel h3 i {
            font-size: 1.1rem;
        }

        .mode-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }

        .mode-btn {
            padding: 10px 12px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-align: center;
            background: var(--light);
            color: var(--dark);
            border: 1px solid #dee2e6;
        }

        .mode-btn.active {
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
            border-color: var(--primary-orange);
            box-shadow: 0 3px 8px rgba(255, 106, 0, 0.25);
        }

        .mode-btn:hover:not(.active) {
            border-color: var(--primary-orange);
            color: var(--primary-orange);
            transform: translateY(-2px);
        }

        .mode-btn.hard-btn {
            border-color: #dc3545;
        }

        .mode-btn.hard-btn.active {
            background: linear-gradient(135deg, #dc3545, #c82333);
            border-color: #dc3545;
            box-shadow: 0 3px 8px rgba(220, 53, 69, 0.25);
        }

        .mode-btn.hard-btn:hover:not(.active) {
            border-color: #dc3545;
            color: #dc3545;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .action-btn {
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 12px rgba(255, 106, 0, 0.3);
        }

        .action-btn.reset {
            background: linear-gradient(135deg, #6c757d, #495057);
        }

        .action-btn.reset:hover {
            box-shadow: 0 5px 12px rgba(108, 117, 125, 0.3);
        }

        .action-btn.undo {
            background: linear-gradient(135deg, #00b09b, #00c4cc);
        }

        .action-btn.undo:hover {
            box-shadow: 0 5px 12px rgba(0, 176, 155, 0.3);
        }

        .score-board {
            background: var(--white);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
        }

        .score-display {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            text-align: center;
        }

        .score-item {
            padding: 12px;
            border-radius: 10px;
            background: var(--light);
            transition: transform 0.2s;
        }

        .score-item:hover {
            transform: translateY(-2px);
        }

        .score-item.active {
            background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 106, 0, 0.03));
            border: 1px solid var(--primary-orange);
        }

        .score-label {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 5px;
        }

        .score-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-orange);
        }

        .game-info-display {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            text-align: center;
        }

        .info-item {
            background: var(--white);
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 106, 0, 0.2);
            transition: transform 0.2s;
        }

        .info-item:hover {
            transform: translateY(-2px);
        }

        .info-label {
            font-size: 0.8rem;
            color: var(--gray);
            margin-bottom: 5px;
        }

        .info-value {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-orange);
        }

        /* ===== INSTRUCTIONS ===== */
        .game-instructions {
            background: linear-gradient(135deg, #f8f9fa, #fff8f0);
            border-radius: 15px;
            padding: 20px;
            margin-top: 25px;
            border: 1px solid rgba(255, 106, 0, 0.1);
            box-sizing: border-box;
        }

        .game-instructions h3 {
            color: var(--primary-orange);
            margin-bottom: 15px;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
            text-align: center;
        }

        .instructions-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .instruction-item {
            background: var(--white);
            padding: 12px;
            border-radius: 10px;
            border-left: 3px solid var(--primary-orange);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
            font-size: 0.9rem;
            text-align: center;
            line-height: 1.4;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .instruction-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 12px rgba(255, 106, 0, 0.1);
        }

        .instruction-item i {
            color: var(--primary-orange);
            margin-right: 8px;
            font-size: 1rem;
        }

        @keyframes celebrate {
            0% {
                transform: scale(1);
            }
            25% {
                transform: scale(1.05);
            }
            50% {
                transform: scale(1);
            }
            75% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }
        .winning {
            animation: celebrate 2s ease infinite;
        }

        /* ===== TOOL INFO ===== */
        .tool-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background: #f0f8ff;
            border-radius: 10px;
            text-align: center;
            flex-wrap: wrap;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .tool-info:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.1);
        }

        .tool-info h3 {
            color: var(--primary-orange);
            margin-bottom: 5px;
            font-size: 1.2rem;
            text-align: center;
            width: 100%;
        }

        .tool-info p {
            color: var(--gray);
            font-size: 0.9rem;
            text-align: center;
            width: 100%;
            margin-bottom: 15px;
        }

        .tool-stats {
            display: flex;
            gap: 20px;
            justify-content: center;
            width: 100%;
            flex-wrap: wrap;
        }

        .stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-orange);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--gray);
        }

        /* ===== SECTIONS ===== */
        .section-wrap {
            width: 100%;
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .info-card {
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 35px 30px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
        }

        .info-card-title {
            font-size: 1.8rem;
            color: var(--primary-orange);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            padding-bottom: 12px;
        }

        .info-card-title::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
            bottom: 0;
            left: 0;
            border-radius: 2px;
            transition: width 0.4s;
        }

        .info-card:hover .info-card-title::after {
            width: 130px;
        }

        .info-card>p {
            color: var(--gray);
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1rem;
        }

        .info-card>p:last-child {
            margin-bottom: 0;
        }

        .why-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 10px;
        }

        .why-item {
            background: var(--light);
            border-radius: 15px;
            padding: 22px 18px;
            text-align: center;
            transition: all 0.3s;
            border-bottom: 4px solid transparent;
        }

        .why-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.12);
            border-bottom-color: var(--primary-orange);
        }

        .why-item-icon {
            font-size: 2.2rem;
            margin-bottom: 12px;
            display: block;
        }

        .why-item h3 {
            font-size: 1.05rem;
            color: var(--dark);
            margin-bottom: 8px;
            font-weight: 700;
        }

        .why-item p {
            color: var(--gray);
            font-size: 0.88rem;
            line-height: 1.5;
            margin: 0;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 10px;
        }

        .feature-item {
            background: var(--light);
            border-radius: 15px;
            padding: 22px 18px;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            transition: all 0.3s;
            border-left: 4px solid var(--primary-orange);
        }

        .feature-item:hover {
            transform: translateX(6px);
            box-shadow: 0 5px 18px rgba(255, 106, 0, 0.12);
        }

        .feature-item-icon {
            font-size: 1.8rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .feature-item-content h3 {
            font-size: 1rem;
            color: var(--dark);
            margin-bottom: 6px;
            font-weight: 700;
        }

        .feature-item-content p {
            color: var(--gray);
            font-size: 0.88rem;
            line-height: 1.5;
            margin: 0;
        }

        .use-cases-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 10px;
        }

        .use-case-item {
            background: var(--light);
            border-radius: 15px;
            padding: 24px 18px;
            text-align: center;
            transition: all 0.3s;
            cursor: default;
        }

        .use-case-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(238, 9, 121, 0.1);
            background: linear-gradient(135deg, rgba(255, 106, 0, 0.06), rgba(238, 9, 121, 0.06));
        }

        .use-case-icon {
            font-size: 2.4rem;
            margin-bottom: 12px;
            display: block;
        }

        .use-case-item h3 {
            font-size: 1.05rem;
            color: var(--dark);
            margin-bottom: 8px;
            font-weight: 700;
        }

        .use-case-item p {
            color: var(--gray);
            font-size: 0.86rem;
            line-height: 1.5;
            margin: 0;
        }

        .related-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .related-tool-item {
            background: var(--light);
            border-radius: 15px;
            padding: 20px 15px;
            text-align: center;
            transition: all 0.3s;
            text-decoration: none;
            color: inherit;
            border: 2px solid transparent;
            display: block;
        }

        .related-tool-item:hover {
            transform: translateY(-5px);
            border-color: var(--primary-orange);
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.12);
            background: var(--white);
        }

        .related-tool-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            display: block;
        }

        .related-tool-item h3 {
            font-size: 0.92rem;
            color: var(--dark);
            font-weight: 700;
        }

        /* ===== TRUST STRIP ===== */
        .trust-strip {
            width: 100%;
            max-width: 1100px;
            margin: 10px auto 20px;
            padding: 0 20px;
        }

        .tool-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            list-style: none;
            background: var(--white);
            border-radius: 16px;
            padding: 20px 25px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }

        .tool-features li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--dark);
            background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(238, 9, 121, 0.08));
            border: 1px solid rgba(255, 106, 0, 0.2);
            border-radius: 50px;
            padding: 8px 18px;
            transition: all 0.3s;
            cursor: default;
        }

        .tool-features li:hover {
            background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(238, 9, 121, 0.15));
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 106, 0, 0.15);
        }

        /* ===== FAQ ===== */
        .faq-list {
            margin-top: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-item {
            background: var(--light);
            border-radius: 14px;
            border-left: 4px solid var(--primary-orange);
            overflow: hidden;
            transition: box-shadow 0.3s;
        }

        .faq-item:hover {
            box-shadow: 0 5px 18px rgba(255, 106, 0, 0.1);
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            padding: 18px 20px;
            text-align: left;
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--dark);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.3s;
            font-family: "Segoe UI", Arial, sans-serif;
        }

        .faq-question:hover {
            color: var(--primary-orange);
        }

        .faq-question .faq-icon {
            font-size: 1.1rem;
            color: var(--primary-orange);
            transition: transform 0.35s;
            flex-shrink: 0;
        }

        .faq-item.open .faq-question .faq-icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s;
            padding: 0 20px;
        }

        .faq-item.open .faq-answer {
            max-height: 300px;
            padding: 0 20px 18px;
        }

        .faq-answer p {
            color: var(--gray);
            line-height: 1.7;
            font-size: 0.94rem;
        }

        .page-footer {
            text-align: center;
            margin-top: 30px;
            padding: 20px;
            color: var(--gray);
            font-size: 0.9rem;
            border-top: 1px solid #eee;
        }

        /* ===== HOW TO USE ===== */
        .how-to-use {
            width: 100%;
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 15px;
            box-sizing: border-box;
        }

        .how-to-use-card {
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 30px;
            transition: transform 0.3s ease;
            box-sizing: border-box;
        }

        .how-to-use-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
        }

        .how-to-use-card h2 {
            font-size: 1.8rem;
            color: var(--primary-orange);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            text-align: center;
            line-height: 1.3;
        }

        .how-to-use-card h2 i {
            font-size: 1.8rem;
        }

        .how-to-use-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .step {
            background: var(--light);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s;
            border-left: 4px solid var(--primary-orange);
            box-sizing: border-box;
        }

        .step:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .step-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
            border-radius: 50%;
            font-weight: bold;
            margin: 0 auto 15px;
        }

        .step h3 {
            font-size: 1rem;
            margin-bottom: 8px;
            color: var(--dark);
            position: relative;
            padding-bottom: 8px;
        }

        .step h3::after {
            content: '';
            position: absolute;
            width: 30px;
            height: 2px;
            background: var(--primary-orange);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 1px;
        }

        .step p {
            color: var(--gray);
            line-height: 1.5;
            font-size: 0.88rem;
        }

        /* ===== FOOTER ===== */
        footer {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            color: var(--white);
            padding: 20px 15px;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            width: 100%;
            margin-top: auto;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink), #00c4cc);
            z-index: 1;
        }

        .footer-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .footer-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0 10px;
        }

        .footer-logo {
            margin-bottom: 15px;
            transition: transform 0.5s;
        }

        .footer-logo:hover {
            transform: translateY(-5px);
        }

        .footer-logo img {
            height: 50px;
            border-radius: 8px;
            background: var(--white);
            padding: 5px;
            max-width: 100%;
            transition: transform 0.3s;
        }

        .footer-logo img:hover {
            transform: scale(1.05);
        }

        .footer-description {
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .footer-heading {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 8px;
            display: inline-block;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
            transition: width 0.4s;
        }

        .footer-heading:hover::after {
            width: 50px;
        }

        .footer-tools ul,
        .footer-quick-links ul {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        .footer-tools ul li a,
        .footer-quick-links ul li a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.9;
            transition: opacity 0.3s, color 0.3s;
            font-size: 0.9rem;
            display: block;
            padding: 5px;
        }

        .footer-tools ul li a:hover,
        .footer-quick-links ul li a:hover {
            opacity: 1;
            color: #ffcc00;
        }

        .footer-social {
            display: flex;
            gap: 12px;
            margin-top: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .footer-social a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .footer-social a::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.3s;
            z-index: -1;
        }

        .footer-social a:hover {
            transform: translateY(-3px);
        }

        .footer-social a:hover::after {
            transform: scale(1);
        }

        .footer-contact {
            margin-top: 15px;
            width: 100%;
        }

        .footer-contact p {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            opacity: 0.9;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        .footer-contact i {
            margin-right: 8px;
            color: #ffcc00;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 20px;
            font-size: 0.85rem;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            grid-column: 1/-1;
        }

        .footer-bottom p {
            margin-bottom: 12px;
            opacity: 0.9;
            width: 100%;
        }

        .footer-legal {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
        }

        .footer-legal a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.3s, color 0.3s;
            font-size: 0.85rem;
            position: relative;
            white-space: nowrap;
            padding-bottom: 3px;
        }

        .footer-legal a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: #ffcc00;
            bottom: 0;
            left: 0;
            transition: width 0.3s;
        }

        .footer-legal a:hover {
            opacity: 1;
            color: #ffcc00;
        }

        .footer-legal a:hover::after {
            width: 100%;
        }

        .footer-bubble {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            animation: float 8s infinite ease-in-out;
        }

        .footer-bubble:nth-child(1) {
            width: 60px;
            height: 60px;
            top: 20%;
            left: 5%;
            animation-delay: 0s;
        }
        .footer-bubble:nth-child(2) {
            width: 40px;
            height: 40px;
            top: 60%;
            left: 8%;
            animation-delay: 1s;
        }
        .footer-bubble:nth-child(3) {
            width: 50px;
            height: 50px;
            top: 30%;
            right: 5%;
            animation-delay: 2s;
        }
        .footer-bubble:nth-child(4) {
            width: 30px;
            height: 30px;
            top: 70%;
            right: 10%;
            animation-delay: 3s;
        }

        @keyframes float {
            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-15px) rotate(10deg);
            }
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
            margin-top: 10px;
        }

        .newsletter-input {
            padding: 10px 15px;
            border: none;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.12);
            color: var(--white);
            font-size: 14px;
            transition: background 0.3s, box-shadow 0.3s;
            width: 100%;
            max-width: 250px;
        }

        .newsletter-input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.18);
            box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .newsletter-btn {
            padding: 10px 15px;
            border: none;
            border-radius: 6px;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: var(--white);
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            width: 100%;
            max-width: 250px;
        }

        .newsletter-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
        }

        /* ===== WINNER / GAME OVER POPUP ===== */
        .winner-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(6px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .winner-popup.show {
            display: flex;
        }

        .popup-content {
            background: linear-gradient(145deg, #ffffff, #f8f9fa);
            border-radius: 30px;
            padding: 40px 35px;
            max-width: 420px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.7);
            animation: popIn 0.5s ease forwards;
            border: 3px solid transparent;
            background-clip: padding-box;
        }

        .popup-content::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink), var(--primary-blue));
            border-radius: 32px;
            z-index: -1;
            animation: borderGlow 2s infinite;
        }

        .popup-header {
            margin-bottom: 20px;
        }

        .popup-header i {
            font-size: 4rem;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            animation: bounce 2s infinite;
            display: block;
        }

        .popup-header h2 {
            font-size: 2.2rem;
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin: 0;
        }

        .popup-body {
            margin-bottom: 25px;
        }

        .winner-message {
            font-size: 1.4rem;
            margin-bottom: 15px;
            padding: 15px;
            border-radius: 15px;
            background: rgba(255, 106, 0, 0.08);
            color: var(--dark);
            font-weight: 700;
        }

        .winner-message .highlight {
            color: var(--primary-orange);
        }

        .score-summary {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            padding: 15px;
            background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
            border-radius: 15px;
        }

        .score-summary-item {
            text-align: center;
        }

        .score-summary-item .score-label {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 4px;
        }

        .score-summary-item .score-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-orange);
        }

        .popup-footer {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .popup-btn {
            padding: 12px 25px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1 1 auto;
            justify-content: center;
            min-width: 120px;
        }

        .popup-btn.next-level {
            background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
            color: white;
            box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
        }

        .popup-btn.next-level:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4);
        }

        .popup-btn.reset-level {
            background: linear-gradient(135deg, #6c757d, #495057);
            color: white;
            box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
        }

        .popup-btn.reset-level:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            opacity: 0;
            animation: confettiFall 3s ease-in-out infinite;
        }
        .confetti:nth-child(1) {
            left: 10%;
            animation-delay: 0s;
            background: #ff6a00;
        }
        .confetti:nth-child(2) {
            left: 20%;
            animation-delay: 0.2s;
            background: #ee0979;
        }
        .confetti:nth-child(3) {
            left: 30%;
            animation-delay: 0.4s;
            background: #6a11cb;
        }
        .confetti:nth-child(4) {
            left: 40%;
            animation-delay: 0.6s;
            background: #2575fc;
        }
        .confetti:nth-child(5) {
            left: 50%;
            animation-delay: 0.8s;
            background: #ffd700;
        }
        .confetti:nth-child(6) {
            left: 60%;
            animation-delay: 1.0s;
            background: #ff6a00;
        }
        .confetti:nth-child(7) {
            left: 70%;
            animation-delay: 1.2s;
            background: #ee0979;
        }
        .confetti:nth-child(8) {
            left: 80%;
            animation-delay: 1.4s;
            background: #6a11cb;
        }
        .confetti:nth-child(9) {
            left: 90%;
            animation-delay: 1.6s;
            background: #2575fc;
        }
        .confetti:nth-child(10) {
            left: 95%;
            animation-delay: 1.8s;
            background: #ffd700;
        }

        @keyframes confettiFall {
            0% {
                transform: translateY(-100%) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(500px) rotate(720deg);
                opacity: 0;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes popIn {
            0% {
                transform: scale(0.7);
                opacity: 0;
            }
            80% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes bounce {
            0%,
            100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        @keyframes borderGlow {
            0%,
            100% {
                opacity: 0.5;
            }
            50% {
                opacity: 1;
            }
        }

        /* ===== RESPONSIVE ===== */
        @media (min-width: 769px) {
            .footer-container {
                grid-template-columns: repeat(4, 1fr);
            }
            .footer-bottom {
                grid-column: 1/span 4;
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 40px 10px;
            }
            .hero h1 {
                font-size: 2.2rem;
            }
            .hero p {
                font-size: 1rem;
            }
            .tools-heading h2 {
                font-size: 1.8rem;
            }
            .tools-heading p {
                font-size: 0.9rem;
            }
            .container {
                margin: 15px;
                width: calc(100% - 30px);
                border-radius: 15px;
            }
            .tool-container {
                padding: 15px;
            }
            .game-card {
                padding: 20px 15px;
            }
            .game-card h2 {
                font-size: 1.5rem;
                flex-direction: column;
            }
            .game-board {
                padding: 10px;
                gap: 8px;
            }
            .game-status {
                padding: 12px;
                margin: 15px auto;
                width: calc(100% - 30px);
            }
            .status-text {
                font-size: 1rem;
            }
            .game-controls-panel {
                padding: 15px;
            }
            .mode-buttons {
                grid-template-columns: 1fr;
            }
            .action-btn {
                font-size: 0.9rem;
            }
            .score-display {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .game-info-display {
                grid-template-columns: 1fr;
            }
            .instructions-list {
                grid-template-columns: 1fr;
            }
            .how-to-use {
                padding: 0 10px;
                margin: 20px auto;
            }
            .how-to-use-card {
                padding: 20px 15px;
            }
            .how-to-use-card h2 {
                font-size: 1.4rem;
                flex-direction: column;
            }
            .how-to-use-steps {
                grid-template-columns: 1fr;
            }
            .info-card {
                padding: 25px 20px;
            }
            .info-card-title {
                font-size: 1.5rem;
            }
            .section-wrap {
                padding: 0 15px;
            }
            .features-grid {
                grid-template-columns: 1fr;
            }
            .menu-toggle {
                display: block;
            }
            nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--white);
                box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
                transform: translateX(-100%);
                transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
                opacity: 0;
            }
            nav.active {
                display: block;
                transform: translateX(0);
                opacity: 1;
            }
            nav ul {
                flex-direction: column;
                padding: 20px;
                gap: 15px;
            }
            nav ul li {
                text-align: center;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.3s, transform 0.3s;
            }
            nav.active ul li {
                opacity: 1;
                transform: translateY(0);
            }
            .footer-container {
                grid-template-columns: 1fr;
            }
            .popup-content {
                padding: 30px 20px;
                max-width: 95%;
            }
            .popup-header h2 {
                font-size: 1.8rem;
            }
            .winner-message {
                font-size: 1.2rem;
            }
            .score-summary {
                flex-direction: column;
                gap: 8px;
            }
            .popup-btn {
                min-width: 100px;
                padding: 10px 18px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }
            .tools-heading h2 {
                font-size: 1.5rem;
            }
            .game-card h2 {
                font-size: 1.2rem;
            }
            .game-board {
                gap: 6px;
                padding: 8px;
            }
            header {
                padding: 15px 20px;
            }
            header img {
                height: 45px;
            }
            .hero {
                padding: 50px 15px;
            }
            .tools-heading {
                padding: 0 15px;
            }
            .container {
                margin: 10px;
                border-radius: 15px;
            }
            .tool-container {
                padding: 15px;
            }
            .game-card {
                padding: 20px 15px;
            }
            .footer-logo img {
                height: 40px;
            }
            .footer-heading {
                font-size: 1.1rem;
            }
            .footer-tools ul,
            .footer-quick-links ul {
                grid-template-columns: 1fr;
            }
            .footer-social a {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }
            .footer-contact p {
                font-size: 0.8rem;
            }
            .footer-legal a {
                font-size: 0.8rem;
            }
            .newsletter-input,
            .newsletter-btn {
                max-width: 200px;
            }
            .popup-content {
                padding: 25px 15px;
            }
            .popup-header i {
                font-size: 3rem;
            }
            .popup-header h2 {
                font-size: 1.5rem;
            }
            .winner-message {
                font-size: 1rem;
                padding: 12px;
            }
            .score-summary-item .score-value {
                font-size: 1.2rem;
            }
            .popup-btn {
                min-width: 80px;
                padding: 8px 14px;
                font-size: 0.8rem;
            }
            .popup-footer {
                gap: 10px;
            }
        }