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

        html, body {
            width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0;
            margin: 0;
            transition: background 0.5s ease;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, auto;
        }

        body.bee-theme {
            background: linear-gradient(135deg, #fff59d 0%, #ffa726 50%, #8d6e63 100%);
        }

        .container {
            background: white;
            padding: 20px;
            width: 1200px;
            max-width: calc(100vw - 40px);
            margin: 20px auto;
            overflow-y: auto;
            overflow-x: hidden;
            transition: all 0.5s ease;
            box-sizing: border-box;
        }

        body.bee-theme .container {
            background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
            border: 4px solid #ff6f00;
            box-shadow: 0 20px 60px rgba(255, 111, 0, 0.3);
        }

        body.bee-theme .game-header h1 {
            color: #ff6f00;
            text-shadow: 2px 2px 4px rgba(255, 193, 7, 0.5);
        }

        body.bee-theme .game-header h1::before {
            content: '🐝 ';
        }

        body.bee-theme .game-header h1::after {
            content: ' 🍯';
        }

        body.bee-theme .word-list-top {
            background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%);
            border: 3px solid #ff8f00;
        }

        body.bee-theme .word-list-top h3 {
            color: #e65100;
        }

        body.bee-theme .word-item-top {
            background: #fff9c4;
            border: 2px solid #ff8f00;
            color: #5d4037;
        }

        body.bee-theme .stats {
            background: linear-gradient(135deg, #ffb74d 0%, #ff6f00 100%);
            border: 3px solid #e65100;
        }

        body.bee-theme .btn {
            background: #ff6f00;
            border: 2px solid #e65100;
        }

        body.bee-theme .btn:hover {
            background: #e65100;
        }

        body.bee-theme .btn-hint {
            background: #ffc107;
            border: 2px solid #ff8f00;
            color: #5d4037;
        }

        body.bee-theme .btn-hint:hover:not(:disabled) {
            background: #ffb300;
        }

        body.bee-theme .btn-print {
            background: #8d6e63;
            border: 2px solid #5d4037;
        }

        body.bee-theme .btn-print:hover {
            background: #6d4c41;
        }

        body.bee-theme .btn-back {
            background: transparent;
            border: 2px solid #ff6f00;
            color: #ff6f00;
        }

        body.bee-theme .btn-back:hover {
            background: #ff6f00;
            color: white;
        }

        /* Video Recording Styles */
        .btn-record-video {
            display: none; /* Hidden for now */
            background: #e91e63;
            font-weight: bold;
            border: 2px solid #c2185b;
        }

        .btn-record-video:hover {
            background: #c2185b;
        }

        .btn-record-video.recording {
            background: #f44336;
            border: 2px solid #d32f2f;
            animation: pulse-record 1.5s infinite;
        }

        @keyframes pulse-record {
            0%, 100% {
                opacity: 1;
                box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
            }
            50% {
                opacity: 0.9;
                box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
            }
        }

        .recording-indicator {
            display: none !important; /* Hidden for now */
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(244, 67, 54, 0.95);
            color: white;
            padding: 12px 24px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: bold;
            z-index: 10000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .rec-dot {
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .rec-text {
            font-size: 14px;
            letter-spacing: 1px;
        }

        body.bee-theme .btn-record-video {
            background: #e91e63;
            border: 2px solid #c2185b;
        }

        body.bee-theme .btn-record-video:hover {
            background: #c2185b;
        }

        .category-screen {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 80vh;
        }

        .category-container {
            background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 100%;
            border: 4px solid #ff6f00;
        }

        .category-container h1 {
            text-align: center;
            color: #ff6f00;
            margin-bottom: 10px;
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .category-container h2 {
            text-align: center;
            color: #5d4037;
            margin-bottom: 40px;
            font-size: 1.5em;
            font-weight: normal;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
        }

        .category-section {
            margin-bottom: 40px;
        }

        .section-title {
            color: #ff6f00;
            font-size: 1.8em;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid #ff6f00;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        }

        .category-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .category-card {
            width: 140px;
            height: 161px;
            background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            padding: 30px 20px;
            text-align: center;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.3s;
            color: #5d4037;
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                0 3px 6px rgba(0, 0, 0, 0.3);
            filter: drop-shadow(0 0 0 2px #8b4513) drop-shadow(0 0 0 3px #654321);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 5px;
        }

        .category-card:hover {
            transform: translateY(-5px) scale(1.05);
            background: linear-gradient(135deg, #ffe082 0%, #ffc107 100%);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 0, 0, 0.3),
                0 6px 12px rgba(0, 0, 0, 0.4);
        }

        .category-icon {
            font-size: 2.5em;
            margin-bottom: 8px;
        }

        .category-name {
            font-size: 0.9em;
            font-weight: bold;
            margin-bottom: 4px;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
            line-height: 1.2;
        }

        .category-count {
            font-size: 0.75em;
            color: #8d6e63;
            text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
        }

        .category-author {
            font-size: 0.65em;
            color: #6d4c41;
            margin-top: 4px;
            font-style: italic;
        }

        .game-header {
            background: white;
            padding: 20px 40px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            width: 100%;
            position: sticky;
            top: 0;
            z-index: 100;
            gap: 15px;
        }

        body.bee-theme .game-header {
            background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
            border-bottom: 4px solid #ff6f00;
        }

        .game-header h1 {
            margin: 0;
            color: #667eea;
            font-size: 2.5em;
        }

        body.bee-theme .game-header h1 {
            color: #ff6f00;
            text-shadow: 2px 2px 4px rgba(255, 193, 7, 0.5);
        }

        .header-stats {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .header-stat {
            color: #555;
            font-size: 1.1em;
        }

        .header-stat strong {
            color: #667eea;
            font-size: 1.2em;
        }

        body.bee-theme .header-stat {
            color: #5d4037;
        }

        body.bee-theme .header-stat strong {
            color: #ff6f00;
        }

        .btn-back {
            padding: 8px 16px;
            background: transparent;
            color: #667eea;
            border: 2px solid #667eea;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.3s;
        }

        .btn-back:hover {
            background: #667eea;
            color: white;
            transform: none;
        }

        .container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 900px;
            width: 100%;
            transition: background 0.5s ease, box-shadow 0.5s ease;
        }

        .container.bee-theme {
            background: linear-gradient(135deg, #fff9c4 0%, #ffe082 100%);
            box-shadow: 0 20px 60px rgba(255, 152, 0, 0.4);
        }

        h1 {
            text-align: center;
            color: #667eea;
            margin-bottom: 20px;
            font-size: 2em;
            transition: color 0.5s ease;
        }

        h1.bee-theme {
            color: #ff6f00;
            text-shadow: 2px 2px 4px rgba(255, 193, 7, 0.3);
        }

        .game-area {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }

        .main-content {
            flex: 1 1 0;
            min-width: 0;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow: hidden;
        }

        .word-list-top {
            background: #f5f5f5;
            padding: 15px;
            border-radius: 10px;
            transition: background 0.5s ease;
            max-width: 100%;
            overflow: hidden;
        }

        .word-list-top.bee-theme {
            background: rgba(255, 224, 130, 0.3);
            border: 2px solid #ffb300;
        }

        .word-list-top h3 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 1em;
            font-weight: bold;
            transition: color 0.5s ease;
        }

        .word-list-top.bee-theme h3 {
            color: #ff6f00;
        }

        #wordListTop {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }

        .word-item-top {
            padding: 4px 12px;
            background: white;
            border-radius: 5px;
            font-size: 0.85em;
            font-weight: 500;
            transition: all 0.3s;
            border: 2px solid #ddd;
        }

        .word-item-top.found {
            text-decoration: line-through;
            opacity: 0.6;
        }

        .grid-container {
            flex: 0 0 auto;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow: hidden;
        }

        .grid {
            display: grid;
            gap: 2px;
            background: #e0e0e0;
            padding: 10px;
            border-radius: 10px;
            user-select: none;
            max-width: 100%;
            width: fit-content;
            margin: 0 auto;
        }

        .grid.hexagon-grid {
            gap: 0;
            background: transparent;
            width: 100%;
            max-width: 100%;
            overflow: visible;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .grid.hexagon-grid .grid-row {
            display: flex;
            margin-bottom: 0;
            flex-wrap: nowrap;
            max-width: 100%;
            justify-content: center;
            height: calc(var(--hex-width) * 1.15);
        }

        .grid.hexagon-grid .grid-row:not(:first-child) {
            margin-top: calc(var(--hex-width) * 1.15 * -0.28);
        }

        .grid.hexagon-grid .grid-row:nth-child(odd) {
            margin-left: 0;
        }

        .grid.hexagon-grid .grid-row:nth-child(even) {
            margin-left: calc(var(--hex-width) * 1.0);
        }

        .cell {
            aspect-ratio: 1;
            background: white;
            border: 2px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.2s;
            border-radius: 5px;
            min-width: 25px;
            font-size: clamp(12px, 2vw, 18px);
        }

        .cell:hover {
            background: #f0f0f0;
            transform: scale(1.05);
        }

        .cell.selecting {
            background: #ffd700;
            border-color: #ffb700;
        }

        .cell.found {
            color: white;
            border-color: #45a049;
        }

        /* Colorful highlights for found words */
        .cell.color-0 { background: #FF6B6B; border-color: #EE5A52; } /* Red */
        .cell.color-1 { background: #4ECDC4; border-color: #45B7AF; } /* Teal */
        .cell.color-2 { background: #FFE66D; border-color: #F4D03F; } /* Yellow */
        .cell.color-3 { background: #95E1D3; border-color: #81CFC1; } /* Mint */
        .cell.color-4 { background: #F38181; border-color: #E16B6B; } /* Coral */
        .cell.color-5 { background: #AA96DA; border-color: #9883C7; } /* Purple */
        .cell.color-6 { background: #FCBAD3; border-color: #FAA4C0; } /* Pink */
        .cell.color-7 { background: #A8D8EA; border-color: #8FC5D7; } /* Sky Blue */
        .cell.color-8 { background: #FFAAA5; border-color: #FF9490; } /* Peach */
        .cell.color-9 { background: #C7CEEA; border-color: #B4BDD7; } /* Lavender */
        .cell.color-10 { background: #FFDAC1; border-color: #FFC9A8; } /* Orange */
        .cell.color-11 { background: #B5EAD7; border-color: #A0D7C4; } /* Seafoam */

        .word-item-top.color-0 { background: #FF6B6B; color: white; border-color: #EE5A52; }
        .word-item-top.color-1 { background: #4ECDC4; color: white; border-color: #45B7AF; }
        .word-item-top.color-2 { background: #FFE66D; color: #333; border-color: #F4D03F; }
        .word-item-top.color-3 { background: #95E1D3; color: #333; border-color: #81CFC1; }
        .word-item-top.color-4 { background: #F38181; color: white; border-color: #E16B6B; }
        .word-item-top.color-5 { background: #AA96DA; color: white; border-color: #9883C7; }
        .word-item-top.color-6 { background: #FCBAD3; color: #333; border-color: #FAA4C0; }
        .word-item-top.color-7 { background: #A8D8EA; color: #333; border-color: #8FC5D7; }
        .word-item-top.color-8 { background: #FFAAA5; color: #333; border-color: #FF9490; }
        .word-item-top.color-9 { background: #C7CEEA; color: #333; border-color: #B4BDD7; }
        .word-item-top.color-10 { background: #FFDAC1; color: #333; border-color: #FFC9A8; }
        .word-item-top.color-11 { background: #B5EAD7; color: #333; border-color: #A0D7C4; }

        .cell.found-highlight {
            background: #81c784;
            border-color: #66bb6a;
        }

        .sidebar {
            display: none;
        }

        /* Hexagon cell styling */
        .cell.hexagon {
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            border-radius: 0;
            margin: 0 -1px;
            position: relative;
            border: none;
            background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                0 3px 6px rgba(0, 0, 0, 0.3);
            font-weight: bold;
            color: #5d4037;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
            transform-style: preserve-3d;
            transition: all 0.2s;
            
            /* Add visible border using filter */
            filter: drop-shadow(0 0 0 2px #8b4513) drop-shadow(0 0 0 3px #654321);
            
            /* Center text in hexagon */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Empty cells (no letter) - completely transparent, no background */
        .cell.hexagon.empty {
            background: transparent;
            box-shadow: none;
            border: none;
            pointer-events: none;
            opacity: 0;
            filter: none;
        }

        /* Debug mode - show all grid positions even more clearly */
        body.debug-grid .cell.hexagon.empty {
            opacity: 1;
            background: rgba(150, 150, 200, 0.6);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.3),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                0 0 0 3px rgba(0, 0, 255, 0.8);
        }

        /* Debug mode - show row numbers */
        body.debug-grid .grid-row::before {
            content: 'Row ' attr(data-row-index);
            position: absolute;
            left: -80px;
            color: red;
            font-weight: bold;
            font-size: 14px;
        }

        body.debug-grid .grid-row {
            position: relative;
        }

        /* Highlight neighbors in debug mode */
        body.debug-grid .cell.hexagon:hover {
            background: yellow !important;
            z-index: 100;
        }
        
        /* Show which cell is being hovered */
        body.debug-grid .cell.hexagon:hover::before {
            content: 'HOVER: (' attr(data-row) ',' attr(data-col) ')';
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: yellow;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            white-space: nowrap;
            z-index: 101;
        }

        /* Show coordinates on each cell in debug mode */
        body.debug-grid .cell.hexagon::after {
            content: attr(data-row) ',' attr(data-col);
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 10px;
            color: blue;
            font-weight: bold;
            background: rgba(255, 255, 255, 0.9);
            padding: 2px 4px;
            border-radius: 2px;
        }

        /* Hide letters temporarily to see grid structure */
        body.debug-grid .cell.hexagon {
            font-size: 24px;
        }

        .cell.hexagon:hover {
            z-index: 2;
            transform: translateY(-2px);
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                0 5px 10px rgba(0, 0, 0, 0.4);
        }

        .cell.hexagon.selecting {
            background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
            box-shadow:
                inset 0 2px 4px rgba(255, 255, 255, 0.7),
                inset 0 -2px 4px rgba(0, 0, 0, 0.3),
                0 4px 8px rgba(255, 193, 7, 0.6);
        }

        /* Invalid selection - red highlight for wrong path */
        .cell.hexagon.invalid {
            background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
            box-shadow:
                inset 0 2px 4px rgba(255, 255, 255, 0.3),
                inset 0 -2px 4px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(244, 67, 54, 0.8) !important;
            animation: shake 0.3s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        /* Colorful honeycomb cells when found */
        .cell.hexagon.found {
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .cell.hexagon.color-0 { 
            background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(244, 67, 54, 0.4);
        }
        .cell.hexagon.color-1 { 
            background: linear-gradient(135deg, #80deea 0%, #26c6da 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 188, 212, 0.4);
        }
        .cell.hexagon.color-2 { 
            background: linear-gradient(135deg, #fff59d 0%, #ffeb3b 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(255, 235, 59, 0.4);
        }
        .cell.hexagon.color-3 { 
            background: linear-gradient(135deg, #b9f6ca 0%, #69f0ae 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 230, 118, 0.4);
        }
        .cell.hexagon.color-4 { 
            background: linear-gradient(135deg, #ff9e80 0%, #ff6e40 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(255, 87, 34, 0.4);
        }
        .cell.hexagon.color-5 { 
            background: linear-gradient(135deg, #ce93d8 0%, #ba68c8 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(156, 39, 176, 0.4);
        }
        .cell.hexagon.color-6 { 
            background: linear-gradient(135deg, #f8bbd0 0%, #f06292 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(233, 30, 99, 0.4);
        }
        .cell.hexagon.color-7 { 
            background: linear-gradient(135deg, #81d4fa 0%, #29b6f6 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(3, 169, 244, 0.4);
        }
        .cell.hexagon.color-8 { 
            background: linear-gradient(135deg, #ffccbc 0%, #ff8a65 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(255, 112, 67, 0.4);
        }
        .cell.hexagon.color-9 { 
            background: linear-gradient(135deg, #d1c4e9 0%, #9575cd 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(103, 58, 183, 0.4);
        }
        .cell.hexagon.color-10 { 
            background: linear-gradient(135deg, #ffe0b2 0%, #ffb74d 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(255, 152, 0, 0.4);
        }
        .cell.hexagon.color-11 { 
            background: linear-gradient(135deg, #c8e6c9 0%, #81c784 100%);
            box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(76, 175, 80, 0.4);
        }

        /* Hint animation for hexagons */
        @keyframes hintPulseHex {
            0%, 100% {
                transform: scale(1);
                box-shadow: 
                    inset 0 2px 4px rgba(255, 255, 255, 0.5),
                    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                    0 0 0 0 rgba(255, 193, 7, 0.7);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 
                    inset 0 2px 4px rgba(255, 255, 255, 0.5),
                    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                    0 0 20px 10px rgba(255, 193, 7, 0);
            }
        }

        .cell.hexagon.hint {
            animation: hintPulseHex 1.5s ease-in-out 3;
            background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%) !important;
            box-shadow: 
                inset 0 2px 4px rgba(255, 255, 255, 0.7),
                inset 0 -2px 4px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 193, 7, 0.8) !important;
        }

        /* Hexagon grid background - honeycomb pattern */
        .grid.hexagon-grid {
            background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
            padding: 15px;
            border-radius: 15px;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .stats {
            margin-top: 20px;
            padding: 15px;
            background: #667eea;
            color: white;
            border-radius: 10px;
            text-align: center;
            transition: background 0.5s ease;
        }

        .stats.bee-theme {
            background: linear-gradient(135deg, #ffb300 0%, #ff6f00 100%);
            box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
        }

        .stats-item {
            margin: 5px 0;
            font-size: 1.1em;
            text-align: center;
        }

        .message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 15px 30px;
            background: #4caf50;
            color: white;
            border-radius: 10px;
            font-weight: bold;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .message.show {
            opacity: 1;
        }

        .message.error {
            background: #f44336;
        }

        .controls {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 10px;
            margin-top: 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }

        body.bee-theme .controls {
            background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%);
            border: 2px solid #ff8f00;
        }

        .btn-icon {
            width: 60px;
            height: 60px;
            font-size: 20px;
            background: white;
            border: 2px solid #ddd;
            border-radius: 12px;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .btn-icon:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            background: #f0f0f0;
        }

        .btn-icon:active {
            transform: translateY(0) scale(0.98);
        }

        body.bee-theme .btn-icon {
            background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
            border: 2px solid #ff8f00;
        }

        body.bee-theme .btn-icon:hover {
            background: linear-gradient(135deg, #ffe082 0%, #ffc107 100%);
        }

        #recordVideoBtn.recording {
            background: #f44336;
            border-color: #d32f2f;
            animation: pulse-record 1.5s infinite;
        }

        .level-selector {
            margin-top: 20px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 10px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .level-selector h3 {
            margin: 0 0 5px 0;
            color: #667eea;
            font-size: 1em;
        }

        body.bee-theme .level-selector {
            background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%);
            border: 2px solid #ff8f00;
        }

        body.bee-theme .level-selector h3 {
            color: #e65100;
        }

        .level-list-container {
            background: #f5f5f5;
            border-radius: 10px;
            padding: 20px;
            width: 100%;
            margin-top: 20px;
        }

        .level-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            gap: 20px;
        }

        .level-list-container h2 {
            color: #667eea;
            margin: 0;
            font-size: 1.3em;
        }

        .btn-random {
            padding: 10px 20px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .btn-random:hover {
            background: #5568d3;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
        }

        body.bee-theme .level-list-container {
            background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%);
            border: 2px solid #ff8f00;
        }

        body.bee-theme .level-list-container h2 {
            color: #e65100;
        }

        body.bee-theme .btn-random {
            background: #ff8f00;
            border: 2px solid #e65100;
        }

        body.bee-theme .btn-random:hover {
            background: #ff6f00;
            box-shadow: 0 4px 10px rgba(255, 111, 0, 0.4);
        }

        .level-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 8px;
            background: white;
        }

        body.bee-theme .level-grid {
            border-color: #ff8f00;
            background: #fff9c4;
        }

        .level-btn {
            padding: 8px 6px;
            background: #667eea;
            color: white;
            border: 1px solid #5568d3;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.2s;
            text-align: center;
        }

        .level-btn:hover {
            background: #5568d3;
            transform: scale(1.05);
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
        }

        .level-btn:active {
            transform: scale(0.98);
        }

        body.bee-theme .level-btn {
            background: #ff8f00;
            border: 1px solid #e65100;
        }

        body.bee-theme .level-btn:hover {
            background: #ff6f00;
            box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
        }

        .btn {
            padding: 12px 30px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🐝</text></svg>') 16 16, pointer;
            transition: all 0.3s;
            width: 100%;
        }

        .btn:hover {
            background: #5568d3;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn.bee-theme {
            background: linear-gradient(135deg, #ffb300 0%, #ff6f00 100%);
        }

        .btn.bee-theme:hover {
            background: linear-gradient(135deg, #ffa000 0%, #e65100 100%);
            box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
        }

        .btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .btn-hint {
            background: #ffa726;
        }

        .btn-hint:hover:not(:disabled) {
            background: #fb8c00;
            box-shadow: 0 5px 15px rgba(255, 167, 38, 0.4);
        }

        .btn-how-to {
            background: #42a5f5;
        }

        .btn-how-to:hover {
            background: #1e88e5;
            box-shadow: 0 5px 15px rgba(66, 165, 245, 0.4);
        }

        .btn-shuffle {
            background: #ab47bc;
        }

        .btn-shuffle:hover {
            background: #8e24aa;
            box-shadow: 0 5px 15px rgba(171, 71, 188, 0.4);
        }

        .btn-reveal {
            background: #26a69a;
        }

        .btn-reveal:hover {
            background: #00897b;
            box-shadow: 0 5px 15px rgba(38, 166, 154, 0.4);
        }

        body.bee-theme .btn-how-to {
            background: #42a5f5;
            border: 2px solid #1976d2;
        }

        body.bee-theme .btn-how-to:hover {
            background: #1e88e5;
        }

        body.bee-theme .btn-shuffle {
            background: #ab47bc;
            border: 2px solid #7b1fa2;
        }

        body.bee-theme .btn-shuffle:hover {
            background: #8e24aa;
        }

        body.bee-theme .btn-reveal {
            background: #26a69a;
            border: 2px solid #00796b;
        }

        body.bee-theme .btn-reveal:hover {
            background: #00897b;
        }

        .btn-print {
            background: #26a69a;
        }

        .btn-print:hover {
            background: #00897b;
            box-shadow: 0 5px 15px rgba(38, 166, 154, 0.4);
        }

        .btn-record-video {
            background: #e91e63;
            font-weight: bold;
        }

        .btn-record-video.recording {
            background: #f44336;
            animation: pulse-record 1.5s infinite;
        }

        @keyframes pulse-record {
            0%, 100% {
                opacity: 1;
                box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
            }
            50% {
                opacity: 0.9;
                box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
            }
        }

        .recording-indicator {
            display: none !important; /* Hidden for now */
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(244, 67, 54, 0.95);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: bold;
            z-index: 10000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .rec-dot {
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        body.bee-theme .btn-record-video {
            background: #e91e63;
        }

        body.bee-theme .btn-record-video.recording {
            background: #f44336;
        }

        /* Print styles */
        @media print {
            body {
                background: white;
                padding: 20px;
            }

            .category-screen,
            .game-header,
            .controls,
            .stats,
            .message,
            .btn,
            .sidebar {
                display: none !important;
            }

            .container {
                box-shadow: none;
                max-width: 100%;
            }

            .game-area {
                display: block;
            }

            .main-content {
                width: 100%;
            }

            .word-list-top {
                background: white;
                border: 2px solid #333;
                page-break-inside: avoid;
                margin-bottom: 20px;
            }

            .word-list-top h3 {
                color: #000;
            }

            .word-item-top {
                background: white;
                border: 2px solid #333;
                color: #000;
            }

            .word-item-top.found {
                display: none;
            }

            .grid {
                background: white;
                border: 2px solid #333;
                page-break-inside: avoid;
            }

            .cell {
                border: 1px solid #333;
                background: white;
                color: #000;
            }

            .cell.found,
            .cell.selecting {
                background: white !important;
                color: #000 !important;
                border-color: #333 !important;
            }

            /* Remove all color classes for printing */
            .cell[class*="color-"] {
                background: white !important;
                color: #000 !important;
            }
        }

        /* Hint animation */
        @keyframes hintPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
            }
        }

        .cell.hint {
            animation: hintPulse 1.5s ease-in-out 3;
            background: #ffc107 !important;
            border-color: #ffa000 !important;
        }

        @media (max-width: 768px) {
            body {
                padding: 0;
            }

            .container {
                padding: 10px;
                max-width: 100vw;
                width: 100%;
            }

            .game-header {
                padding: 15px 20px;
                flex-direction: column;
                gap: 10px;
            }

            .game-header h1 {
                font-size: 1.8em;
            }

            .header-stats {
                flex-wrap: wrap;
                gap: 15px;
                justify-content: center;
            }

            .header-stat {
                font-size: 0.9em;
            }

            .game-area {
                flex-direction: column;
            }

            .main-content {
                min-width: 0;
                width: 100%;
                flex: 1 1 auto;
            }

            .word-list-top {
                padding: 10px;
            }

            .word-list-top h3 {
                font-size: 1em;
                margin-bottom: 8px;
            }

            .word-item-top {
                padding: 6px 10px;
                font-size: 0.85em;
            }

            .grid-container {
                width: 100%;
                padding: 5px;
                overflow-x: hidden;
                overflow-y: visible;
            }

            .grid.hexagon-grid {
                transform: scale(0.75);
                transform-origin: center center;
                width: 120%;
                margin: 0 -10%;
            }

            .cell.hexagon {
                font-size: clamp(11px, 3.5vw, 16px);
            }

            .controls {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                padding: 10px;
                margin-top: 15px;
            }

            .level-header {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .btn-random {
                width: 100%;
            }

            .btn-icon {
                width: 50px;
                height: 50px;
                font-size: 24px;
            }

            .level-list-container {
                padding: 15px;
                margin-top: 15px;
            }

            .level-list-container h2 {
                font-size: 1.1em;
            }

            .level-grid {
                grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
                gap: 6px;
                max-height: 250px;
            }

            .level-btn {
                padding: 8px 4px;
                font-size: 11px;
            }

            .sidebar {
                display: none;
            }

            .category-container {
                padding: 20px;
            }
            
            .category-container h1 {
                font-size: 1.8em;
            }
            
            .category-container h2 {
                font-size: 1.2em;
                margin-bottom: 30px;
            }
            
            .category-section {
                margin-bottom: 30px;
            }
            
            .section-title {
                font-size: 1.4em;
            }
            
            .category-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 12px;
            }
            
            .category-card {
                padding: 20px 15px;
            }
            
            .category-icon {
                font-size: 2.5em;
            }
            
            .game-header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            
            h1 {
                font-size: 1.5em;
            }
            
            .game-area {
                flex-direction: column;
                gap: 20px;
            }
            
            .main-content {
                width: 100%;
            }
            
            .word-list-top {
                padding: 12px;
            }
            
            .word-list-top h3 {
                font-size: 0.9em;
            }
            
            #wordListTop {
                gap: 6px;
            }
            
            .word-item-top {
                font-size: 0.75em;
                padding: 3px 8px;
            }
            
            .grid {
                padding: 5px;
                gap: 1px;
            }
            
            .cell {
                font-size: clamp(10px, 3vw, 16px);
                border-width: 1px;
            }
            
            .sidebar {
                flex: 1;
                min-width: 100%;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0;
            }

            .container {
                padding: 5px;
            }

            .game-header {
                padding: 10px 15px;
            }

            .game-header h1 {
                font-size: 1.5em;
            }

            .header-stats {
                gap: 10px;
            }

            .header-stat {
                font-size: 0.8em;
            }

            .word-list-top {
                padding: 8px;
            }

            .word-item-top {
                font-size: 0.7em;
                padding: 2px 6px;
            }

            .grid-container {
                min-height: 300px;
                padding: 15px 5px;
            }

            .cell {
                font-size: clamp(8px, 4vw, 14px);
                min-width: 20px;
            }

            .grid {
                gap: 0;
                padding: 3px;
            }

            .controls {
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
                padding: 8px;
            }

            .level-header {
                flex-direction: column;
                gap: 8px;
            }

            .btn-random {
                padding: 8px 15px;
                font-size: 13px;
            }

            .btn-icon {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }

            .level-grid {
                grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
                gap: 5px;
                max-height: 200px;
            }

            .level-btn {
                padding: 6px 3px;
                font-size: 10px;
            }
        }
