* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --bg-primary: linear-gradient(135deg, #1a472a 0%, #0e2a18 100%);
            --card-bg: rgba(0, 0, 0, 0.3);
            --hole-bg: radial-gradient(circle at 30% 30%, #4a2a0a, #2a1505);
            --hole-border: #5a3a1a;
            --text-light: #ffffff;
            --text-gold: #ffd89b;
            --mole-bg: radial-gradient(circle at 35% 35%, #c98a3e, #8b5a2b);
            --bomb-bg: radial-gradient(circle at 35% 35%, #333, #1a1a1a);
            --btn-start: #4ecdc4;
            --btn-pause: #ffb347;
            --btn-reset: #ff6b6b;
            --sidebar-bg: rgba(0, 0, 0, 0.35);
            --footer-bg: rgba(0, 0, 0, 0.4);
            --header-bg: rgba(0, 0, 0, 0.4);
        }

        body.light {
            --bg-primary: linear-gradient(135deg, #f5f0e8 0%, #e8e0d0 100%);
            --card-bg: rgba(0, 0, 0, 0.06);
            --hole-bg: radial-gradient(circle at 30% 30%, #c9a87e, #a0784a);
            --hole-border: #8b6946;
            --text-light: #2d3e50;
            --text-gold: #c44536;
            --mole-bg: radial-gradient(circle at 35% 35%, #e8a84c, #c47a2a);
            --bomb-bg: radial-gradient(circle at 35% 35%, #777, #555);
            --btn-start: #2c7a6e;
            --btn-pause: #d48a2a;
            --btn-reset: #c44536;
            --sidebar-bg: rgba(0, 0, 0, 0.08);
            --footer-bg: rgba(0, 0, 0, 0.1);
            --header-bg: rgba(0, 0, 0, 0.1);
        }

        body {
            background: #2e5e5a;
            min-height: 100vh;
            font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
            padding: 20px;
            transition: background 0.3s ease;
        }

        .game-wrapper {
            max-width: 1050px;
            width: 100%;
            margin: 0 auto;
        }

        /* ========== SEPARATE HEADER ========== */
        .main-header {
            background: #6b9080;
            backdrop-filter: blur(10px);
            border-radius: 50px;
            padding: 16px 30px;
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }
        .header-logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .header-logo .logo-icon {
            font-size: 2.2rem;
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .header-logo h1 {
            font-size: 1.8rem;
            background: linear-gradient(135deg, #ffd89b, #ffb347);
            background-clip: text;
            -webkit-background-clip: text;
            color: white;
        }
        .header-logo p {
            font-size: 0.7rem;
            color: black;
            opacity: 0.8;
        }
        .header-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        .theme-btn-header {
            background: #004e64;
            border: none;
            padding: 10px 20px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        .theme-btn-header:hover {
            transform: scale(1.02);
            background: rgba(0,0,0,0.5);
        }
        .sound-btn-header {
            background: #004e64;
            border: none;
            padding: 10px 20px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        .sound-btn-header:hover {
            transform: scale(1.02);
            background: rgba(0,0,0,0.5);
        }

        /* TWO COLUMN LAYOUT */
        .two-columns {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            margin-bottom: 30px;
        }

        /* LEFT SIDE - GAME AREA */
        .game-area {
            flex: 1.2;
            min-width: 300px;
            background: #a4c3b2;
            backdrop-filter: blur(8px);
            border-radius: 40px;
            padding: 20px;
            box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .score-panel {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            background: #25a18e;
            border-radius: 50px;
            padding: 8px 16px;
            margin-bottom: 20px;
        }
        .score-card {
            background: #626d58;
            padding: 6px 12px;
            border-radius: 40px;
            text-align: center;
            flex: 1;
        }
        .score-label { font-size: 0.65rem; color: var(--text-gold); }
        .score-value { font-size: 1.8rem; font-weight: 800; color: var(--text-light); line-height: 1; }

        .game-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            background: #626d58;
            padding: 16px;
            border-radius: 36px;
        }
        .hole {
            aspect-ratio: 1 / 1;
            background: #56282d;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: inset 0 5px 8px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--hole-border);
            position: relative;
            transition: all 0.08s linear;
            -webkit-tap-highlight-color: transparent;
        }
        .hole:active { transform: scale(0.95); }
        
        .mole, .bomb {
            width: 90%;
            height: 90%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            animation: popUp 0.1s ease-out;
            pointer-events: none;
        }
        .mole { background: var(--mole-bg); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
        .bomb { background: var(--bomb-bg); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
        
        @keyframes popUp {
            0% { transform: scale(0); opacity: 0; }
            80% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .hit-effect { animation: hitFlash 0.12s ease-in-out; }
        .shake-effect { animation: shake 0.25s ease-in-out; }
        
        @keyframes hitFlash {
            0%,100% { transform: scale(1); filter: brightness(1); }
            50% { transform: scale(1.1); filter: brightness(1.3); }
        }
        @keyframes shake {
            0%,100% { transform: translateX(0); }
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }

        /* ✅ CORRECT SIGN & ❌ WRONG SIGN - SHOWING ABOVE THE BOX */
        .sign-above {
            position: absolute;
            top: -45px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 2rem;
            font-weight: bold;
            animation: floatUpSign 0.6s forwards;
            z-index: 200;
            pointer-events: none;
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
            white-space: nowrap;
        }
        .sign-above.correct { color: #2ecc71; filter: drop-shadow(0 0 5px #2ecc71); }
        .sign-above.wrong { color: #e74c3c; filter: drop-shadow(0 0 5px #e74c3c); }
        
        .point-above {
            position: absolute;
            top: -75px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.1rem;
            font-weight: bold;
            background: rgba(0,0,0,0.6);
            padding: 2px 10px;
            border-radius: 20px;
            animation: floatUpPoint 0.6s forwards;
            z-index: 200;
            pointer-events: none;
            white-space: nowrap;
        }
        .point-above.positive { color: #2ecc71; background: rgba(0,0,0,0.6); }
        .point-above.negative { color: #e74c3c; background: rgba(0,0,0,0.6); }
        
        @keyframes floatUpSign {
            0% { opacity: 1; transform: translateX(-50%) translateY(0); }
            100% { opacity: 0; transform: translateX(-50%) translateY(-50px); }
        }
        @keyframes floatUpPoint {
            0% { opacity: 1; transform: translateX(-50%) translateY(0); }
            100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
        }

        /* RIGHT SIDE - CONTROLS PANEL */
        .controls-area {
            flex: 0.8;
            min-width: 280px;
            background: #a4c3b2;
            backdrop-filter: blur(8px);
            border-radius: 40px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .control-box {
            background: #626d58;
            border-radius: 28px;
            padding: 16px;
        }
        .control-title {
            font-size: 0.8rem;
            color: black;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            padding-bottom: 6px;
        }

        .lang-select {
            width: 100%;
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 10px 14px;
            border-radius: 40px;
            color: white;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .difficulty-buttons {
            display: flex;
            gap: 10px;
        }
        .diff-btn {
            flex: 1;
            background: rgba(0,0,0,0.35);
            border: none;
            padding: 10px 0;
            border-radius: 40px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.85rem;
        }
        .diff-btn.active {
            background: #004b23;
            box-shadow: 0 0 10px rgba(255, 139, 66, 0.4);
        }
        .diff-btn:hover { transform: translateY(-2px); }

        .score-stats {
            text-align: center;
        }
        .current-score-large {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--text-light);
        }
        .high-score-box {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.15);
        }
        .high-item {
            text-align: center;
            flex: 1;
        }
        .high-label {
            font-size: 0.7rem;
            color: var(--text-gold);
        }
        .high-value {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--text-light);
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .action-btn {
            flex: 1;
            border: none;
            padding: 10px 0;
            border-radius: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.85rem;
            color: white;
        }
        .btn-start { background: var(--btn-start); }
        .btn-pause { background: var(--btn-pause); }
        .btn-reset { background: var(--btn-reset); }
        .action-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
        .action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        /* HOW TO PLAY - FULL WIDTH */
        .how-to-play {
            width: 100%;
            background: #224a4e;
            backdrop-filter: blur(8px);
            border-radius: 32px;
            padding: 28px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .rules-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        .rule-card {
            background: #6b9080;
            border-radius: 24px;
            padding: 20px;
            text-align: center;
            transition: transform 0.2s;
        }
        .rule-card:hover { transform: translateY(-5px); }
        .rule-icon { font-size: 2.5rem; margin-bottom: 12px; }
        .rule-title { font-size: 1.1rem; font-weight: 700; color: black; margin-bottom: 8px; }
        .rule-desc { font-size: 0.85rem; color: black; line-height: 1.4; }

        /* FAQS SECTION - FULL WIDTH */
        .faq-section {
            width: 100%;
            background: #6b9080;
            backdrop-filter: blur(8px);
            border-radius: 32px;
            padding: 28px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .faq-item {
            margin-bottom: 18px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 15px;
        }
        .faq-question {
            font-weight: 700;
            color: white;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.05rem;
        }
        .faq-answer {
            color: black;
            font-size: 0.9rem;
            margin-top: 10px;
            padding-left: 20px;
            display: none;
            line-height: 1.5;
        }
        .faq-answer.show { display: block; }
        .faq-toggle { font-size: 1.2rem; transition: transform 0.2s; }

        /* STYLISH FOOTER */
        .stylish-footer {
            background: #224a4e;
            backdrop-filter: blur(8px);
            border-radius: 32px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 25px;
        }
        .footer-logo h3 {
            font-size: 1.3rem;
            background: linear-gradient(135deg, #ffd89b, #ffb347);
            background-clip: text;
            -webkit-background-clip: text;
            color: white;
        }
        .footer-links {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
        }
        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        .footer-links a:hover { color: white; transform: translateY(-2px); }
        .social-icons {
            display: flex;
            gap: 15px;
        }
        .social-icons button {
            background: white;
            border: none;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.2s;
        }
        .social-icons button:hover {
            background: #ffb347;
            color: white;
            transform: translateY(-3px);
        }
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.75rem;
            color: white;
            opacity: 0.7;
        }

        /* Modal */
        .message-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: 0.3s;
        }
        .message-modal.active { visibility: visible; opacity: 1; }
        .message-card {
            background: #1e2f3a;
            border-radius: 40px;
            padding: 32px;
            text-align: center;
            max-width: 320px;
            width: 85%;
            border: 2px solid #ffb347;
        }
        .message-card h2 { color: #ffd89b; margin-bottom: 12px; font-size: 1.6rem; }
        .message-card .final-score { font-size: 2rem; font-weight: bold; color: #ffb347; margin: 15px 0; }
        .message-card button {
            background: linear-gradient(135deg, #ffb347, #ff8c42);
            border: none;
            padding: 10px 28px;
            border-radius: 40px;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }

        @media (max-width: 900px) {
            .two-columns { flex-direction: column; }
            .rules-grid { grid-template-columns: 1fr; }
            .footer-content { flex-direction: column; text-align: center; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .main-header { flex-direction: column; text-align: center; }
        }
        @media (max-width: 500px) {
            body { padding: 12px; }
            .game-grid { gap: 8px; padding: 12px; }
            .mole, .bomb { font-size: 1.5rem; }
            .header-logo h1 { font-size: 1.3rem; }
            .sign-above { font-size: 1.5rem; top: -35px; }
            .point-above { font-size: 0.9rem; top: -60px; }
        }