/* Word Search Game Styles */

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

body {
    font-family: 'Arial', sans-serif;
    background: var(--bg-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    padding: 20px;
    transition: background 0.5s ease;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Force hide when display none is set by JS */
#loading-screen[style*="display: none"] {
    display: none !important;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color, #e0e0e0);
    border-top-color: var(--accent-primary, #667eea);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: var(--text-primary, #333);
    font-size: 18px;
}

/* Category Selection Screen */
.category-screen {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.category-container {
    background: var(--bg-secondary, white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* Hero Logo */
.hero-logo {
    text-align: center;
    margin-bottom: 30px;
}

.game-logo {
    max-width: 250px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-container h1 {
    text-align: center;
    color: var(--accent-primary, #667eea);
    margin-bottom: 20px;
    font-size: 2.5em;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--text-primary, #333);
    line-height: 1.7;
}

.intro-text p {
    margin-bottom: 12px;
    font-size: 1.05em;
}

.category-container h2 {
    text-align: center;
    color: var(--text-secondary, #666);
    margin-bottom: 40px;
    font-size: 1.5em;
    font-weight: normal;
}

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

.section-title {
    color: var(--accent-primary, #667eea);
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    font-weight: 600;
}

/* Category Group Card Container */
.category-section {
    background: var(--bg-secondary, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.category-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.section-title {
    color: var(--accent-primary, #667eea);
    font-size: 1.4em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-card {
    background: var(--bg-secondary, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary, #333);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    border-color: var(--accent-primary, #667eea);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 2.2em;
    flex-shrink: 0;
}

.category-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.category-count {
    font-size: 0.8em;
    color: var(--text-secondary, #666);
    opacity: 0.8;
}

.category-author {
    font-size: 0.75em;
    color: var(--text-secondary, #666);
    opacity: 0.7;
    margin-left: auto;
    font-style: italic;
}

/* How to Play Button */
.btn-how-to-play {
    padding: 10px 24px;
    background: var(--accent-primary, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-how-to-play:hover {
    background: var(--accent-hover, #5568d3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Instructions Panel */
.instructions-panel {
    background: var(--bg-primary, #f5f5f5);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    color: var(--text-primary, #333);
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.6;
}

.instructions-panel h3 {
    color: var(--accent-primary, #667eea);
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.4em;
}

.instructions-panel h4 {
    color: var(--accent-primary, #667eea);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.instructions-panel p {
    margin-bottom: 15px;
}

.instructions-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.instructions-panel li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
}

.instructions-panel li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary, #667eea);
    font-weight: bold;
}

/* Game Container */
.container {
    background: var(--bg-secondary, white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    transition: all 0.5s ease;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-header h1 {
    margin: 0;
    color: var(--text-primary, #333);
}

.btn-back {
    padding: 8px 16px;
    background: transparent;
    color: var(--accent-primary, #667eea);
    border: 2px solid var(--accent-primary, #667eea);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--accent-primary, #667eea);
    color: white;
}

/* Game Area Layout */
.game-area {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Word List (Above Grid) */
.word-list-top {
    background: var(--bg-primary, #f5f5f5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #ddd);
}

.word-list-top h3 {
    color: var(--accent-primary, #667eea);
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: bold;
}

#wordListTop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.word-item-top {
    padding: 4px 12px;
    background: var(--bg-secondary, white);
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--border-color, #ddd);
    color: var(--text-primary, #333);
}

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

/* Grid Container */
.grid-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.grid {
    display: grid;
    gap: 2px;
    background: var(--border-color, #e0e0e0);
    padding: 10px;
    border-radius: 10px;
    user-select: none;
    max-width: 100%;
    width: fit-content;
}

/* Grid Cells */
.cell {
    aspect-ratio: 1;
    background: var(--bg-secondary, white);
    border: 2px solid var(--border-color, #ddd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    min-width: 25px;
    font-size: clamp(12px, 2vw, 18px);
    color: var(--text-primary, #333);
}

.cell:hover {
    background: var(--bg-primary, #f0f0f0);
    transform: scale(1.05);
}

.cell.selecting {
    opacity: 0.8;
}

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

/* Colorful highlights for found words */
.cell.found.color-0 { background: #FF6B6B !important; border-color: #EE5A52; }
.cell.found.color-1 { background: #4ECDC4 !important; border-color: #45B7AF; }
.cell.found.color-2 { background: #FFE66D !important; border-color: #F4D03F; color: #333 !important; }
.cell.found.color-3 { background: #95E1D3 !important; border-color: #81CFC1; color: #333 !important; }
.cell.found.color-4 { background: #F38181 !important; border-color: #E16B6B; }
.cell.found.color-5 { background: #AA96DA !important; border-color: #9883C7; }
.cell.found.color-6 { background: #FCBAD3 !important; border-color: #FAA4C0; color: #333 !important; }
.cell.found.color-7 { background: #A8D8EA !important; border-color: #8FC5D7; color: #333 !important; }
.cell.found.color-8 { background: #FFAAA5 !important; border-color: #FF9490; color: #333 !important; }
.cell.found.color-9 { background: #C7CEEA !important; border-color: #B4BDD7; color: #333 !important; }
.cell.found.color-10 { background: #FFDAC1 !important; border-color: #FFC9A8; color: #333 !important; }
.cell.found.color-11 { background: #B5EAD7 !important; border-color: #A0D7C4; color: #333 !important; }

/* Colorful highlights for selecting cells (preview) */
.cell.selecting.color-0 { background: #FF6B6B !important; border-color: #EE5A52; color: white !important; }
.cell.selecting.color-1 { background: #4ECDC4 !important; border-color: #45B7AF; color: white !important; }
.cell.selecting.color-2 { background: #FFE66D !important; border-color: #F4D03F; color: #333 !important; }
.cell.selecting.color-3 { background: #95E1D3 !important; border-color: #81CFC1; color: #333 !important; }
.cell.selecting.color-4 { background: #F38181 !important; border-color: #E16B6B; color: white !important; }
.cell.selecting.color-5 { background: #AA96DA !important; border-color: #9883C7; color: white !important; }
.cell.selecting.color-6 { background: #FCBAD3 !important; border-color: #FAA4C0; color: #333 !important; }
.cell.selecting.color-7 { background: #A8D8EA !important; border-color: #8FC5D7; color: #333 !important; }
.cell.selecting.color-8 { background: #FFAAA5 !important; border-color: #FF9490; color: #333 !important; }
.cell.selecting.color-9 { background: #C7CEEA !important; border-color: #B4BDD7; color: #333 !important; }
.cell.selecting.color-10 { background: #FFDAC1 !important; border-color: #FFC9A8; color: #333 !important; }
.cell.selecting.color-11 { background: #B5EAD7 !important; border-color: #A0D7C4; color: #333 !important; }

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

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats Panel */
.stats {
    margin-top: 20px;
    padding: 15px;
    background: var(--accent-primary, #667eea);
    color: white;
    border-radius: 10px;
    text-align: center;
}

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

/* Controls */
.controls {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 12px 30px;
    background: var(--accent-primary, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn:hover {
    background: var(--accent-hover, #5568d3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 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-print {
    background: #26a69a;
}

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

/* Message/Notification */
.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;
}

/* Completion Modal */
.completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.completion-content {
    background: var(--bg-secondary, white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.completion-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

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

.completion-title {
    color: var(--accent-primary, #667eea);
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.completion-stats {
    color: var(--text-primary, #333);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.completion-message {
    color: var(--text-secondary, #666);
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 500;
}

.completion-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-completion {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.btn-yes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.btn-back {
    background: var(--text-secondary, #666);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Share Options */
.share-options {
    margin-top: 20px;
    animation: slideUp 0.3s ease;
}

.share-message {
    color: var(--text-primary, #333);
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-share {
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.btn-twitter {
    background: #1DA1F2;
    box-shadow: 0 3px 10px rgba(29, 161, 242, 0.4);
}

.btn-twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.6);
}

.btn-facebook {
    background: #4267B2;
    box-shadow: 0 3px 10px rgba(66, 103, 178, 0.4);
}

.btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 103, 178, 0.6);
}

.btn-copy {
    background: #34A853;
    box-shadow: 0 3px 10px rgba(52, 168, 83, 0.4);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 168, 83, 0.6);
}

.message.error {
    background: #f44336;
}

/* 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;
}

/* SEO Content Section */
.seo-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-secondary, white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.seo-container {
    color: var(--text-primary, #333);
    line-height: 1.8;
}

.seo-container h2 {
    color: var(--accent-primary, #667eea);
    margin-bottom: 20px;
    font-size: 2em;
}

.seo-container h3 {
    color: var(--accent-primary, #667eea);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.seo-container p {
    margin-bottom: 15px;
}

.seo-container ul,
.seo-container ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.seo-container li {
    margin-bottom: 10px;
}

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

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

    .print-title {
        display: block !important;
        text-align: center;
        font-size: 1.8em;
        font-weight: bold;
        color: #000;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 3px solid #333;
    }

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

    .game-area {
        display: block;
    }

    .main-content {
        width: 100%;
    }

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

    .word-list-top h3 {
        display: block !important;
        color: #000;
        font-size: 1.2em;
        font-weight: bold;
        margin-bottom: 10px;
    }

    #wordListTop {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .word-item-top {
        display: inline-block !important;
        background: white;
        border: 2px solid #333;
        color: #000;
        padding: 5px 10px;
        margin: 2px;
    }

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

    .grid-container {
        display: flex !important;
        justify-content: center;
    }

    .grid {
        display: grid !important;
        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;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .category-container {
        padding: 20px;
    }

    .game-logo {
        max-width: 180px;
    }

    .intro-text {
        font-size: 0.95em;
    }

    .intro-text p {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .category-container h1 {
        font-size: 1.8em;
    }

    .category-container h2 {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .category-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .category-card {
        padding: 12px;
    }

    .category-icon {
        font-size: 2em;
    }

    .category-name {
        font-size: 0.95em;
    }

    .category-count {
        font-size: 0.8em;
    }

    .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%;
    }

    .seo-content {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .game-logo {
        max-width: 150px;
    }

    .intro-text {
        font-size: 0.9em;
        padding: 0 10px;
    }

    .intro-text p {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 12px;
    }

    .category-icon {
        font-size: 2em;
    }

    .category-name {
        font-size: 0.9em;
    }

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

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

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

    /* Completion Modal Mobile */
    .completion-content {
        padding: 25px;
        width: 95%;
    }

    .completion-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }

    .completion-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .completion-stats {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .completion-message {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .btn-completion {
        padding: 12px 20px;
        font-size: 1em;
    }

    .btn-share {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

/* ============================================
   WORD SEEKER GAME (Future Implementation)
   The following hexagon/bee theme styles will be moved
   to word-seeker/css/word-seeker.css
   ============================================ */

/*
COMMENTED OUT FOR FUTURE WORD SEEKER GAME:

Hexagon Grid Styles:
- .cell.hexagon
- .grid.hexagon-grid
- Hexagon color gradients
- Bee theme styles (body.bee-theme)

These will be extracted and enhanced for the
separate "Word Seeker" game with honeycomb layout.
*/
