body {
    font-family: 'Inter', sans-serif;
    background: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 160px;
    color: #ffffff;
    margin: 0;
    transition: all 0.3s ease;
}

body.keyboard-hidden {
    padding-bottom: 20px;
}

/* Class to prevent body scroll during animation */
.no-scroll {
    overflow: hidden;
}

/* Virtual keyboard styling is handled in HTML inline styles for better integration */

/* Secret word box in modal */
#cheat-word-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px auto;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
    display: none;
    max-width: 100%;
    word-break: break-word;
}

#cheat-word-box.show {
    display: block;
}

.game-container {
    background: #1e1e1e;
    padding: 32px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
}

.game-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.header-title {
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
}

/* Game Board Layout */
.game-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Current Input Area */
.current-input-area {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #262626;
    border-radius: 8px;
    border: 1px solid #404040;
}

.letter-input-box {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid #404040;
    border-radius: 6px;
    padding: 0;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.2s ease;
}

.letter-input-box:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.letter-input-box:not(:placeholder-shown) {
    border-color: #666666;
    background: #2a2a2a;
}



.letter-tile {
    width: 65px;
    height: 65px;
    border: 2px solid #3a3a3c;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.letter-tile.filled {
    border-color: #565758;
    background: #1a1a1a;
}

.letter-tile.current-row {
    border-color: #ffffff;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        border-color: #ffffff;
    }

    50% {
        border-color: #565758;
    }
}

.letter-tile.correct {
    background: #538d4e !important;
    border-color: #538d4e !important;
    color: #ffffff;
}

.letter-tile.present {
    background: #b59f3b !important;
    border-color: #b59f3b !important;
    color: #ffffff;
}

.letter-tile.absent {
    background: #3a3a3c !important;
    border-color: #3a3a3c !important;
    color: #ffffff;
}

/* Score Indicators */
.score-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.score-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    border: 3px solid;
}

.score-circle.green {
    background: #538d4e;
    border-color: #538d4e;
}

.score-circle.yellow {
    background: #b59f3b;
    border-color: #b59f3b;
}

.instructions-button {
    margin-bottom: 20px;
    background: transparent;
    border: 2px solid #404040;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.instructions-button:hover {
    background: #404040;
    color: #ffffff;
    border-color: #555555;
}

.new-game-button {
    background: #28a745 !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
    min-width: 160px !important;
    flex: none !important;
    /* Don't stretch like other buttons */
}

.new-game-button:hover {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

.current-level-display {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1.1rem;
    background: #2a2a2a;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #404040;
    display: inline-block;
}

.attempts-text {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 1rem;
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #404040;
    display: inline-block;
}

#attemptsLeft {
    color: #0078d4;
    font-weight: 600;
}

.message-area {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    min-height: 30px;
}

.message-area .alert {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1rem;
    background-color: #2d2d2d;
    border-color: #565758;
    color: #ffffff;
}

.guess-input-submission-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.guess-input-area {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.letter-input-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid #d1d8e0;
    border-radius: 10px;
    padding: 0;
    caret-color: #5e72e4;
    transition: all 0.2s ease;
    color: #32325d;
    background: #ffffff;
}

.letter-input-box:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
    transform: scale(1.05);
    background: #fafbfc;
}

.letter-input-box:not(:placeholder-shown) {
    border-color: #2dce89;
    background: #f0f9ff;
}

.arrow-submit-button {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
    border-radius: 10px;
    background-color: #5e72e4;
    border-color: #5e72e4;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-submit-button:hover {
    background-color: #4a5cc0;
    border-color: #4a5cc0;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(94, 114, 228, 0.4);
}

.guesses-history {
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.guess-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #262626;
    border-radius: 6px;
    border: 1px solid #333333;
    transition: all 0.2s ease;
}

.guess-row:hover {
    background: #2a2a2a;
    border-color: #404040;
}

.guess-row:last-child {
    margin-bottom: 0;
}

.guessed-word-display {
    display: flex;
    gap: 6px;
    align-items: center;
}

.guessed-word-display .letter-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid #404040;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.guess-row:hover .letter-box {
    border-color: #555555;
}

.scores {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    border: 2px solid;
    transition: all 0.2s ease;
}

.score-badge-green {
    background: #538d4e;
    border-color: #538d4e;
}

.score-badge-green:hover {
    background: #5d9b56;
}

.score-badge-yellow {
    background: #b59f3b;
    border-color: #b59f3b;
}

.score-badge-yellow:hover {
    background: #c7ae45;
}

.message-area {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    min-height: 30px;
}

.message-area .alert {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1rem;
}

.attempts-text {
    color: #525f7f;
    font-weight: 500;
}

.new-game-button {
    background-color: #f5365c;
    border-color: #f5365c;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.new-game-button:hover {
    background-color: #ec0c38;
    border-color: #ec0c38;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 54, 92, 0.3);
}

/* Action buttons group */
.action-buttons-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.action-buttons-group .btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

#toggleKeyboardButton {
    background-color: #565758;
    border-color: #565758;
    color: #ffffff;
}

#toggleKeyboardButton:hover {
    background-color: #6e6e6e;
    border-color: #6e6e6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(86, 87, 88, 0.3);
}

#toggleLeaderboardButton {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #ffffff;
}

#toggleLeaderboardButton:hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

/* Modal dark theme - consolidated and fixed */
.modal-content {
    background-color: #1a1a1a;
    border: 2px solid #565758;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, #5e72e4, #4c63d2);
    color: #ffffff;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom: 1px solid #3a3a3c;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
    color: #ffffff;
}

.modal-body {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1.5rem;
    font-size: 1rem;
}

.modal-body hr {
    margin: 1.25rem 0;
    border-color: #3a3a3c;
}

.modal-body h6 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.modal-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #3a3a3c;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    padding: 1rem 1.5rem;
}

/* Leaderboard dark theme */
#leaderboard table {
    background-color: #2d2d2d;
    color: #ffffff;
}

#leaderboard th {
    background-color: #565758;
    color: #ffffff;
    border-color: #3a3a3c;
}

#leaderboard td {
    border-color: #3a3a3c;
}

#leaderboard tr:nth-child(even) {
    background-color: #3a3a3c;
}

/* Graffiti Animation Styles */
#graffiti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker overlay */
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    /* Higher than Bootstrap modals (usually 1040-1050) */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#graffiti-overlay.show {
    display: flex;
    opacity: 1;
}

#graffiti-text {
    font-family: 'Permanent Marker', cursive;
    /* Graffiti-style font from Google Fonts */
    font-size: clamp(2rem, 12vw, 8rem);
    /* Responsive font size: min, preferred, max */
    color: #fff;
    text-align: center;
    padding: 20px;
    opacity: 0;
    /* Start fully transparent for animation */
    transform: scale(0.3) rotate(-15deg);
    /* Start smaller and rotated */
    /* Multiple text shadows for depth and spray effect */
    text-shadow:
        2px 2px 0px #ef3550,
        /* Offset color 1 */
        4px 4px 0px #f48fb1,
        /* Offset color 2 */
        6px 6px 0px #7e57c2,
        /* Offset color 3 */
        8px 8px 0px #2196f3,
        /* Offset color 4 */
        10px 10px 15px rgba(0, 0, 0, 0.5);
    /* Main drop shadow */
    animation: graffitiReveal 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards 0.2s;
    /* Delayed start */
}

@keyframes graffitiReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg) translateY(50px);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(-2deg) translateY(0);
        /* Final resting state with slight tilt */
    }
}

/* Example elements in modal */

/* Example elements in modal */
.example-word .example-letter-box {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #565758;
    background-color: #2d2d2d;
    border-radius: 8px;
    margin-right: 4px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.example-score-g,
.example-score-y {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.example-score-g {
    background-color: #538d4e;
    color: #ffffff;
    border: 2px solid #538d4e;
}

.example-score-y {
    background-color: #b59f3b;
    color: #ffffff;
    border: 2px solid #b59f3b;
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    font-weight: 500;
    padding: 10px 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scrollbar styling */
.guesses-history::-webkit-scrollbar {
    width: 8px;
}

.guesses-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.guesses-history::-webkit-scrollbar-thumb {
    background: #c5cde2;
    border-radius: 10px;
}

.guesses-history::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* ========================= */
/* 1) Professional Splash Screen CSS */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#splash-screen h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 400;
}

#splash-screen button {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 24px;
    width: 70%;
    max-width: 200px;
    background: #0078d4;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    transition: all 0.2s ease;
}

#splash-screen button:hover {
    background: #106ebe;
}

/* ========================= */
/* 2) Leaderboard Table Styles */
#leaderboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    /* Adjusted for better fit on small screens */
}

#leaderboard th,
#leaderboard td {
    border: 1px solid #e0e6ed;
    padding: 6px 4px;
    /* Adjusted padding */
    text-align: center;
    word-break: break-word;
    /* Allow long words to break */
}

#leaderboard th {
    background-color: #5e72e4;
    color: #ffffff;
    font-weight: 600;
}

#leaderboard tr:nth-child(even) {
    background-color: #f8f9fc;
}

#leaderboard p {
    margin: 0;
    color: #525f7f;
    font-style: italic;
}

/* Added media query for smaller screens */
@media (max-width: 400px) {
    #leaderboard table {
        font-size: 0.8rem;
        /* Further reduce font size */
    }

    #leaderboard th,
    #leaderboard td {
        padding: 4px 2px;
        /* Further reduce padding */
    }

    /* Hide the Date column on small screens */
    #leaderboard th:nth-child(5),
    #leaderboard td:nth-child(5) {
        display: none;
    }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 160px;
        /* Reduced for mobile keyboard */
    }

    body.keyboard-hidden {
        padding-bottom: 10px;
    }

    .game-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        border-radius: 12px;
    }

    .header-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .instructions-button {
        margin-bottom: 15px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .current-level-display {
        font-size: 1rem;
        margin-bottom: 10px !important;
        padding: 4px 12px;
    }

    .guess-input-submission-area {
        width: 100%;
        gap: 5px;
        margin-bottom: 15px;
    }

    .guess-input-area {
        gap: 5px;
    }

    .letter-input-box {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .arrow-submit-button {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .message-area {
        width: 100%;
        text-align: center;
        min-height: 20px;
        margin-top: 10px;
    }

    .message-area .alert {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .guesses-history {
        width: 100%;
        max-height: 35vh;
    }

    .guess-row {
        padding: 8px 5px;
        margin-bottom: 6px;
    }

    .guessed-word-display .letter-box {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .score-badge {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .attempts-text {
        font-size: 0.9rem;
    }

    .new-game-button,
    .action-buttons-group .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
        min-width: 120px;
    }

    .new-game-button {
        min-width: 140px !important;
    }

    .action-buttons-group {
        gap: 10px;
        margin-top: 15px;
    }

    /* Modal adjustments */
    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .example-word .example-letter-box {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    /* New game board styles for mobile */
    .game-board {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .guess-grid {
        max-width: 260px;
    }

    .letter-tile {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .score-indicators {
        flex-direction: row;
        gap: 15px;
        margin-top: 0;
    }

    .score-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* For very small screens */
@media (max-width: 375px) {
    body {
        padding-bottom: 140px;
    }

    body.keyboard-hidden {
        padding-bottom: 5px;
    }

    .game-container {
        padding: 10px;
    }

    .header-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .letter-input-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .arrow-submit-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .guessed-word-display .letter-box {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .score-badge {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    /* Hide Time column too on very small screens */
    #leaderboard th:nth-child(4),
    #leaderboard td:nth-child(4) {
        display: none;
    }

    .new-game-button,
    .action-buttons-group .btn,
    .instructions-button {
        font-size: 0.85rem;
        padding: 8px 14px;
        min-width: 100px;
    }

    .new-game-button {
        min-width: 120px !important;
        padding: 10px 16px !important;
    }

    .action-buttons-group {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons-group .btn {
        width: 100%;
        max-width: none;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    body {
        padding-bottom: 140px;
    }

    .game-container {
        padding: 20px 24px;
        max-width: 95%;
    }

    .header-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .current-input-area {
        gap: 8px;
        padding: 12px;
    }

    .letter-input-box {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .guesses-history {
        max-height: 250px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    body {
        padding-bottom: 130px;
        padding: 15px;
    }

    .game-container {
        padding: 16px 20px;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .letter-input-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .current-input-area {
        gap: 6px;
        padding: 10px;
    }
}

/* Keyboard hidden indicator */
body.keyboard-hidden::after {
    content: "⌨️ Keyboard Hidden - Ctrl/Cmd+K to toggle";
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 500;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Difficulty Selection */
.difficulty-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #404040;
}

.difficulty-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

.difficulty-select {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.9rem;
    min-width: 80px;
}

.difficulty-select:focus {
    outline: none;
    border-color: #0078d4;
}

/* Keyboard feedback states */
.key-correct {
    background-color: #538d4e !important;
    color: #ffffff !important;
}

.key-present {
    background-color: #b59f3b !important;
    color: #ffffff !important;
}

.key-absent {
    background-color: #3a3a3c !important;
    color: #6e6e6e !important;
    opacity: 0.6;
}