
```
/* Bee Memory Match Game Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
}

/* Header Styles */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    color: #8B4513;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    color: #8B4513;
}

.stat-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B4513;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
    transform: translateY(0);
}

.difficulty-select {
    background: #FFD700;
    color: #8B4513;
    border: 2px solid #FFA500;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.sound-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #FFD700;
}

.sound-control label {
    color: #8B4513;
    font-weight: bold;
    font-size: 14px;
}

.sound-control input[type="range"] {
    width: 80px;
    height: 6px;
    background: #FFD700;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.sound-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #8B4513;
    border-radius: 50%;
    cursor: pointer;
}

.sound-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #8B4513;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Game Board */
.game-board {
    display: grid;
    gap: 10px;
    margin: 0 auto 30px;
    justify-content: center;
}

.game-board.easy {
    grid-template-columns: repeat(4, 1fr);
}

.game-board.medium {
    grid-template-columns: repeat(6, 1fr);
}

.game-board.hard {
    grid-template-columns: repeat(8, 1fr);
}

.card {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: 3px solid #8B4513;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card.flipped {
    background: linear-gradient(45deg, #98FB98, #90EE90);
    transform: rotateY(180deg);
}

.card.matched {
    background: linear-gradient(45deg, #87CEEB, #98FB98);
    border-color: #4CAF50;
    animation: matchPulse 0.6s ease-in-out;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.card-back {
    transform: rotateY(180deg);
}

.card.flipped .card-back {
    transform: rotateY(0deg);
}

.card.flipped .card-front {
    transform: rotateY(180deg);
}

/* Card Icons */
.card-icon {
    font-size: 2em;
    color: #8B4513;
}

/* Animations */
@keyframes matchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

/* Modal Styles */
.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: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 2em;
}

.final-stats {
    margin: 20px 0;
    line-height: 1.6;
}

.final-stats p {
    color: #666;
    font-size: 1.1em;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Instructions */
.instructions {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #FFD700;
}

.instructions h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

.instructions p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 20px;
        margin: 10px;
    }

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

    .game-stats {
        flex-direction: column;
        gap: 10px;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
    }

    .sound-control {
        flex-direction: column;
        gap: 8px;
    }

    .card {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .modal-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .card {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .game-board {
        gap: 5px;
    }
}

/* Mobile Support - Add at the end of the file */

/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FFD700;
    z-index: 1000;
    padding: 10px 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:active {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.mobile-nav-btn .icon {
    font-size: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #FFD700;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #FFC125;
    transform: scale(1.1);
}

/* Mobile Home Button */
.mobile-home-button {
    display: none;
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: #FFD700;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-home-button:hover {
    background: #FFC125;
    transform: translateX(-50%) scale(1.05);
}

/* Mobile Game Controls */
.mobile-game-controls {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
}

.mobile-control-btn {
    width: 60px;
    height: 60px;
    background: rgba(139, 69, 19, 0.9);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-control-btn:hover,
.mobile-control-btn:active {
    background: rgba(255, 215, 0, 0.9);
    color: #8B4513;
    transform: scale(1.1);
}

/* Mobile Difficulty Selector */
.mobile-difficulty {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.mobile-difficulty.active {
    display: block;
}

.mobile-difficulty h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.mobile-difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mobile-diff-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B4513;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-diff-btn.active {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: #FFD700;
    transform: scale(1.05);
}

/* Mobile Sound Control */
.mobile-sound-control {
    display: none;
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 997;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.mobile-sound-control.active {
    display: block;
}

.mobile-sound-control h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.mobile-sound-slider {
    width: 120px;
    height: 8px;
    background: #FFD700;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 10px 0;
}

.mobile-sound-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #8B4513;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-sound-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #8B4513;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Mobile Instructions */
.mobile-instructions {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 25px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-instructions.active {
    display: block;
}

.mobile-instructions h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.mobile-instructions p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.close-mobile-instructions {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-mobile-instructions:hover {
    background: #FF8E8E;
    transform: scale(1.1);
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1200px) {
    .game-container {
        max-width: 90%;
        padding: 25px;
    }

    .game-board {
        gap: 8px;
    }

    .card {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
}

@media (max-width: 992px) {
    .game-container {
        max-width: 95%;
        padding: 20px;
    }

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

    .game-stats {
        padding: 12px;
        border-radius: 12px;
    }

    .game-controls {
        gap: 12px;
        margin-bottom: 25px;
    }

    .control-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 20px;
    }

    .difficulty-select {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 18px;
    }

    .sound-control {
        padding: 8px 12px;
        border-radius: 18px;
    }

    .sound-control label {
        font-size: 13px;
    }

    .sound-control input[type="range"] {
        width: 70px;
        height: 5px;
    }

    .sound-control input[type="range"]::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .sound-control input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    .game-board {
        gap: 8px;
        margin-bottom: 25px;
    }

    .card {
        width: 65px;
        height: 65px;
        font-size: 1.6em;
        border-radius: 12px;
        border-width: 2px;
    }

    .instructions {
        padding: 18px;
        border-radius: 12px;
    }

    .instructions h3 {
        font-size: 1.1em;
    }

    .instructions p {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    .game-container {
        padding: 15px;
        margin: 5px;
        border-radius: 15px;
    }

    .game-header {
        margin-bottom: 20px;
    }

    .game-header h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .game-stats {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
    }

    .stat {
        padding: 5px 0;
    }

    .stat-label {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .control-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 18px;
        min-width: 120px;
    }

    .difficulty-select {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 15px;
        min-width: 100px;
    }

    .sound-control {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 15px;
        min-width: 120px;
    }

    .sound-control label {
        font-size: 12px;
    }

    .sound-control input[type="range"] {
        width: 80px;
        height: 6px;
    }

    .sound-control input[type="range"]::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .sound-control input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    .game-board {
        gap: 6px;
        margin-bottom: 20px;
    }

    .card {
        width: 55px;
        height: 55px;
        font-size: 1.4em;
        border-radius: 10px;
        border-width: 2px;
    }

    .instructions {
        padding: 15px;
        border-radius: 12px;
        margin-top: 15px;
    }

    .instructions h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .instructions p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
        border-radius: 15px;
    }

    .modal-content h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .final-stats p {
        font-size: 1em;
    }

    .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-home-button {
        display: block;
    }

    .mobile-game-controls {
        display: block;
    }

    .mobile-difficulty {
        display: block;
    }

    .mobile-sound-control {
        display: block;
    }

    /* Hide desktop controls on mobile */
    .game-controls {
        display: none;
    }
}

@media (max-width: 600px) {
    .mobile-difficulty {
        top: 70px;
    }
    .mobile-sound-control {
        top: 140px;
    }
}

@media (max-width: 480px) {
    .mobile-difficulty {
        top: 65px;
    }
    .mobile-sound-control {
        top: 130px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .control-btn:hover {
        transform: none;
    }

    .control-btn:active {
        transform: scale(0.95);
    }

    .card:hover {
        transform: none;
    }

    .card:active {
        transform: scale(0.95);
    }

    .mobile-nav-btn:hover,
    .mobile-control-btn:hover {
        transform: none;
    }

    .mobile-nav-btn:active,
    .mobile-control-btn:active {
        transform: scale(1.05);
    }

    .mobile-home-button:hover {
        transform: translateX(-50%);
    }

    .mobile-home-button:active {
        transform: translateX(-50%) scale(0.95);
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav {
        bottom: 5px;
        padding: 5px 0;
    }

    .mobile-nav-btn {
        padding: 4px;
        font-size: 10px;
    }

    .mobile-nav-btn .icon {
        font-size: 16px;
    }

    .mobile-home-button {
        bottom: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .mobile-game-controls {
        bottom: 80px;
        right: 15px;
    }

    .mobile-control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 5px 0;
    }

    .mobile-difficulty {
        bottom: 160px;
        padding: 8px;
    }

    .mobile-sound-control {
        bottom: 240px;
        padding: 8px;
    }

    .game-container {
        padding: 15px;
        margin: 5px;
    }

    .game-header h1 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .game-stats {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
    }

    .game-board {
        gap: 6px;
        margin-bottom: 15px;
    }

    .card {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
}

/* Mobile accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }

    .card:hover {
        transform: none;
    }

    .control-btn {
        transition: none;
    }

    .control-btn:hover {
        transform: none;
    }

    .mobile-nav-btn:hover,
    .mobile-control-btn:hover {
        transform: none;
    }

    .mobile-home-button:hover {
        transform: translateX(-50%);
    }
}

/* Mobile dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-nav {
        background: rgba(0, 0, 0, 0.95);
        border-top-color: #FFD700;
    }

    .mobile-nav-btn {
        color: #FFD700;
    }

    .mobile-nav-btn:hover,
    .mobile-nav-btn:active {
        background: rgba(255, 215, 0, 0.3);
    }

    .mobile-menu-toggle {
        background: #FFD700;
        color: #000;
        border-color: #000;
    }

    .mobile-menu-toggle:hover {
        background: #FFC125;
    }
}

/* Mobile high contrast mode */
@media (prefers-contrast: high) {
    .mobile-nav {
        background: #000;
        border-top-color: #fff;
    }

    .mobile-nav-btn {
        color: #fff;
        border: 1px solid #fff;
    }

    .mobile-nav-btn:hover,
    .mobile-nav-btn:active {
        background: #fff;
        color: #000;
    }

    .mobile-control-btn {
        background: #000;
        color: #fff;
        border-color: #fff;
    }

    .mobile-control-btn:hover,
    .mobile-control-btn:active {
        background: #fff;
        color: #000;
    }
}