:root {
    --key-bg: #ffffff;
    --key-border: #000000;
    --key-text: #000000;
    --key-radius: 8px;
    --keyboard-bg: #f5f5f5;
    --highlight-glow: #007bff;
}

/* सभी @font-face और कस्टम फ़ॉन्ट परिवार असाइनमेंट हटा दिए गए हैं */

/* Base Styling for Text Display and Input */
#wptt-text-display,
#wptt-input {
    font-size: 1.5rem;
    line-height: 2;
    letter-spacing: 1.5px;
}

/* Guest Notice */
.wptt-guest-notice {
    text-align: center;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

/* Container */
.wptt-container {
    background: var(--keyboard-bg);
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    max-width: 1000px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Header Structure */
.wptt-header {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    border: 2px dashed #007bff;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wptt-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wptt-user-greeting {
    font-weight: bold;
    display: flex;
    gap: 10px;
}

.wptt-stats {
    margin-left: auto;
    text-align: right;
}

.wptt-header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

/* Hide language/course/level bar */
.wptt-test-info {
    display: none !important;
}

.wptt-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.wptt-filter {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 90px;
    max-width: 110px;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.wptt-sound-btn {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.wptt-sound-btn:hover {
    background: #e3f2fd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Timer and Progress Bar */
.wptt-timer-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}
.wptt-timer {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d6efd;
    background: #fff;
    padding: 3px 7px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.wptt-timer::before {
    content: "\23F1";
    font-size: 1.2rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
}
.wptt-progress-container {
    width: 90%;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    height: 8px;
}
.wptt-progress-bar {
    height: 100%;
    background-color: #0d6efd;
    border-radius: 0.375rem;
    transition: width 0.5s ease-in-out;
}

/* Test Information (hidden now) */
.wptt-test-info {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
}
.wptt-language {
    font-weight: bold;
    color: #0d6efd;
}
.wptt-course {
    font-weight: bold;
    color: #198754;
}
.wptt-level {
    font-weight: bold;
    color: #dc3545;
}

/* Typing Text Display */
.wptt-text-display {
    margin-bottom: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    user-select: none;
    letter-spacing: 1.5px;
    max-height: 6000px;
    overflow-y: auto;
    font-size: 1.5rem;
    line-height: 2;
    color: #333;
    border: 1px solid #ddd;
}
@media (max-width:500px){
    .wptt-text-display{ max-height: calc(1.4rem * 2 * 3); }
}

.wptt-text-display span.correct {
    color: #90EE90;
}
.wptt-text-display span.incorrect {
    color: #d63638;
    background: #fdd;
    text-decoration: underline;
    animation: shakeError 0.4s ease-in-out;
}
.wptt-text-display span.current {
    background-color: #cfe2ff;
    border-radius: 3px;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* Hidden Input */
.wptt-input {
    opacity: 0;
    height: 1px;
    position: absolute;
    left: -9999px;
}

/* Results Section */
.wptt-results {
    text-align: center;
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    padding: 30px 20px;
    border-radius: 16px;
    border: 2px dashed #28a745;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
    margin-top: 30px;
}
.wptt-results ul {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    color: #333;
}
.wptt-results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}
.wptt-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s;
}
.wptt-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Keyboard Layout */
.wptt-keyboard-area {
    margin-top: 20px;
    user-select: none;
    display: flex;
    justify-content: center;
    width: 100%;
}
.wptt-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wptt-key-row {
    display: flex;
    gap: 8px;
    justify-content: stretch;
    width: 100%;
}
.wptt-key {
    font-weight: 500;
    color: var(--key-text);
    background: var(--key-bg);
    border: 2px solid var(--key-border);
    border-radius: var(--key-radius);
    flex: 1 1 auto;
    height: 52px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.07s ease;
    cursor: pointer;
    text-align: center;
    background-image: linear-gradient(to bottom, #ffffff, #eaeaea);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
}
.wptt-key:active,
.wptt-key.active {
    background-color: #ddd;
    transform: translateY(2px);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}
.wptt-key.next-key {
    border-color: var(--highlight-glow);
    box-shadow: 0 0 8px var(--highlight-glow);
}
.wptt-key .key-sub {
    font-size: 0.8em;
    line-height: 1;
}
.wptt-key .key-main {
    font-size: 1.1em;
    line-height: 1;
}
.wptt-key .key-icon {
    font-size: 1.2em;
    line-height: 1;
}
.wptt-key .key-text {
    font-size: 0.7em;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.key-mod-text .key-main {
    font-size: 0.8em;
    letter-spacing: 1px;
}
.key-mod-text .key-icon {
    font-size: 1em;
}

/* Key Sizes */
.key-size-1-25 { flex-grow: 1.25; }
.key-size-1-5 { flex-grow: 1.5; }
.key-size-1-75 { flex-grow: 1.75; }
.key-size-2 { flex-grow: 2; }
.key-size-2-25 { flex-grow: 2.25; }
.key-size-2-75 { flex-grow: 2.75; }
.key-size-space { flex-grow: 5.5; }

/* RTL Support for Keyboard */
.wptt-keyboard[style*="direction: rtl"] .wptt-key-row {
    flex-direction: row-reverse;
}
.wptt-keyboard[style*="direction: rtl"] .wptt-key {
    text-align: right;
}
.wptt-textarea[dir="rtl"] {
    direction: rtl;
    text-align: right;
    unicode-bidi: bidi-override;
}

/* Responsive Design */
@media (max-width: 960px) {
    .wptt-container { padding: 15px; }
    .wptt-keyboard-area { padding: 0; }
    .wptt-keyboard { padding: 5px; gap: 6px; }
    .wptt-key-row { gap: 6px; }
    .wptt-key { height: 40px; font-size: 0.9em; border-width: 1.5px; }
    .wptt-header-bottom-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .wptt-filter-bar { display: flex; gap: 8px; overflow-x: hidden; }
    .wptt-test-info { justify-content: center; }
    .wptt-timer-progress-container { flex-direction: row; align-items: center; justify-content: space-between; }
    .wptt-progress-container { width: 90%; }
}
@media (max-width: 500px) {
    .wptt-keyboard { gap: 4px; padding: 0; }
    .wptt-key-row { gap: 4px; }
    .wptt-key { height: 36px; border-radius: 6px; padding: 0; }
    .wptt-key .key-sub, .wptt-key .key-text { display: none; }
    .wptt-key .key-main, .wptt-key .key-icon { font-size: 0.95em; }
    .wptt-header-top-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .wptt-user-greeting { text-align: center; }
    .wptt-timer-progress-container { flex-direction: column; }
    .wptt-progress-container { width: 100%; }
    .wptt-filter-bar { gap: 6px; }
}

/* Triple-Layer Inner Layout */
.key-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3px 6px;
    display: block;
    box-sizing: border-box;
}
.key-physical {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #444;
    opacity: 0.75;
}
.key-sub {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
}
.key-main {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}
.wptt-key.next-key {
    box-shadow: 0 0 6px #2d8cff, inset 0 -3px 0 rgba(45, 140, 255, 0.4);
    border-color: #2d8cff;
}
.key-mod-text .key-icon { display: block; font-size: 1.3em; }
.key-mod-text .key-text { display: block; font-size: 0.8em; letter-spacing: 0.3px; font-weight: 600; margin-top: 2px; }

/* Blink keyboard */
.wptt-key.next-key {
    animation: wptt-blink 1.2s infinite;
    background-color: #ffeb3b !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
}
@keyframes wptt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 768px) {
    .wptt-filter-bar {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: linear-gradient(135deg, #f8f9fa, #e3f2fd) !important;
        padding: 12px !important;
        margin: -20px -20px 20px -20px !important;
        border-bottom: 2px solid #007bff !important;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 4px 12px rgba(0,123,255,0.2) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .wptt-filter {
        flex: 1 !important;
        min-width: 100px !important;
        padding: 10px !important;
        font-size: 16px !important;
        border: 1px solid #007bff !important;
        border-radius: 8px !important;
    }
}

/* Game Container Styling */
#wptt-game-container {
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    border: 4px solid #333;
    margin-bottom: 20px;
}
.wptt-mode-game #wptt-text-display { display: none !important; }
.wptt-mode-game #wptt-game-container { display: block !important; }
#wptt-game-ui { text-shadow: 1px 1px 2px black; z-index: 10; }

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.game-particle {
    position: absolute;
    pointer-events: none;
    animation: pop 0.5s ease-out forwards;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.wptt-next-level-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 10px;
}
.wptt-next-level-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.wptt-next-level-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.wptt-key.active-shift {
    background-color: #ffeb3b !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 8px #ff9800;
    transform: translateY(2px);
}/* Backspace Button – Rectangular Style Only */
#wptt-backspace-block-btn {
    background: #ffffff;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: auto;
    min-width: 90px;
    height: 42px;
    min-height: 42px;

    color: #2e7d32;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
    margin: 0 5px;
    outline: none !important;

    flex-direction: row !important;
}

#wptt-backspace-block-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

#wptt-backspace-block-btn:active {
    transform: scale(0.96);
}

#wptt-backspace-block-btn.backspace-blocked {
    background: #ffebee !important;
    border-color: #f44336 !important;
    color: #d32f2f !important;
}

#wptt-backspace-block-btn.backspace-allowed {
    background: #e8f5e9 !important;
    border-color: #4caf50 !important;
    color: #2e7d32 !important;
}

#wptt-backspace-block-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    display: inline;
}

/* ========== NEW / UPDATED STYLES ========== */

/* Desktop: keep filters & buttons in one row */
@media (min-width: 769px) {
    .wptt-header-bottom-row {
        flex-wrap: nowrap !important;
        gap: 15px;
    }
    .wptt-filter-bar {
        flex: 2;
        display: flex;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .wptt-sound-controls {
        flex-shrink: 0;
        display: flex;
        gap: 10px;
        margin-left: auto;
    }
}

/* Language filter larger */
#wptt-language-filter {
    min-width: 200px;
    font-size: 1rem;
    padding: 8px 12px;
}

/* Course/Level/Timer filters smaller */
#wptt-course-filter,
#wptt-level-filter,
#wptt-timer-filter {
    min-width: 110px;
    font-size: 0.85rem;
    padding: 6px 8px;
}

/* Mute button – perfect circle */
#wptt-mute-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #fff;
    border: 2px solid #ccc;
    transition: all 0.2s;
}
#wptt-mute-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Backspace button – rectangular (already styled above) */
/* (No additional rules needed, but ensure row direction) */

/* Adjust spacing inside the header on desktop */
.wptt-header-bottom-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile: center all header content */
@media (max-width: 768px) {
    /* Center top row */
    .wptt-header-top-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .wptt-user-greeting {
        text-align: center;
    }
    .wptt-stats {
        margin-left: 0;
        text-align: center;
    }

    /* Center bottom row */
    .wptt-header-bottom-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    .wptt-filter-bar {
        justify-content: center;
        width: 100%;
    }
    .wptt-sound-controls {
        justify-content: center;
        width: 100%;
        margin-top: 5px;
    }

    /* Ensure test info is centered if ever visible (but hidden) */
    .wptt-test-info {
        text-align: center;
        justify-content: center;
    }
}
/* ====================================================
   ✨ ANIMATED BACKGROUND & ENHANCED GAME STYLES
   ==================================================== */

/* Main container: subtle animated gradient background */
.wptt-container {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 50%, #f0fff4 100%) !important;
    background-size: 400% 400% !important;
    animation: wptt-bg-shift 12s ease infinite !important;
    border: 1px solid #d0e4ff !important;
}
@keyframes wptt-bg-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header: glassy animated look */
.wptt-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(230,244,255,0.85)) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0,123,255,0.25) !important;
    box-shadow: 0 4px 20px rgba(0,123,255,0.12), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Timer: neon pulse */
.wptt-timer {
    animation: timer-pulse 2s ease-in-out infinite;
    position: relative;
}
@keyframes timer-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(13,110,253,0.4); }
    50%       { box-shadow: 0 0 20px rgba(13,110,253,0.8), 0 0 40px rgba(13,110,253,0.2); }
}

/* Game container: full animated border */
#wptt-game-container {
    border: 3px solid transparent !important;
    background-clip: padding-box !important;
    animation: game-border-glow 3s linear infinite !important;
    border-radius: 12px !important;
    position: relative;
}
#wptt-game-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b);
    background-size: 300% 100%;
    animation: border-slide 4s linear infinite;
    z-index: -1;
}
@keyframes border-slide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Game UI: floating HUD */
#wptt-game-ui {
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    backdrop-filter: blur(8px);
    font-size: 16px !important;
    letter-spacing: 1px;
}

/* Score flash when points earned */
@keyframes score-pop {
    0%   { transform: scale(1); color: #ffffff; }
    50%  { transform: scale(1.3); color: #ffd700; text-shadow: 0 0 10px #ffd700; }
    100% { transform: scale(1); color: #ffffff; }
}
#game-score.score-pop {
    animation: score-pop 0.4s ease;
}

/* Language dropdown: richer look */
#wptt-language-filter {
    background: linear-gradient(135deg, #fff, #f0f8ff) !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    min-width: 210px !important;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15) !important;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#wptt-language-filter:hover {
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0,86,179,0.25) !important;
}
#wptt-language-filter:focus {
    outline: none !important;
    border-color: #004090 !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2) !important;
}

/* Filter selects: consistent pill style */
.wptt-filter {
    border-radius: 8px !important;
    border: 1.5px solid #b0c4de !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff !important;
}
.wptt-filter:hover  { border-color: #007bff !important; }
.wptt-filter:focus  { outline: none !important; box-shadow: 0 0 0 2px rgba(0,123,255,0.18) !important; }

/* Text display: subtle shimmer border */
.wptt-text-display {
    border: 2px solid #d0e4ff !important;
    box-shadow: 0 2px 12px rgba(0,123,255,0.06) !important;
    transition: border-color 0.3s;
}
.wptt-text-display:hover { border-color: #aac4ff !important; }

/* Current character highlight: animated */
.wptt-text-display span.current {
    background-color: #cfe2ff !important;
    border-bottom: 2px solid #0d6efd !important;
    animation: cursor-blink 0.9s ease-in-out infinite;
    border-radius: 3px;
}
@keyframes cursor-blink {
    0%, 100% { background-color: #cfe2ff; }
    50%       { background-color: #a8c7fa; }
}

/* Correct char: subtle green */
.wptt-text-display span.correct {
    color: #1a8a4a !important;
    background: rgba(40,167,69,0.07);
    border-radius: 2px;
}

/* Next key highlight: stronger pulse */
.wptt-key.next-key {
    animation: key-pulse 0.9s ease-in-out infinite !important;
    background: linear-gradient(135deg, #fff9c4, #ffeb3b) !important;
    border-color: #ff9800 !important;
}
@keyframes key-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255,152,0,0.5); transform: scale(1); }
    50%       { box-shadow: 0 0 18px rgba(255,152,0,0.9), 0 0 32px rgba(255,200,0,0.4); transform: scale(1.06); }
}

/* WPM/Accuracy live stats: badge style */
#wptt-wpm, #wptt-accuracy {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4ff, #d0e8ff);
    border: 1px solid #aac4ff;
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0050aa;
    transition: background 0.3s;
}

/* Results section: celebration gradient */
.wptt-results {
    background: linear-gradient(135deg, #f0fff4, #e8f4fd, #fff0f6) !important;
    background-size: 200% 200% !important;
    animation: wptt-bg-shift 8s ease infinite !important;
    border: 2px dashed #28a745 !important;
}

/* Game overlay: blurred backdrop */
#wptt-game-overlay {
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.75) !important;
}
#wptt-game-overlay h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
}

/* Canvas responsive sizing */
#wptt-game-canvas {
    width: 100% !important;
    height: 500px !important;
    display: block;
}

/* Restart / action buttons: glow */
.wptt-btn, #game-restart-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3) !important;
    transition: all 0.2s !important;
}
.wptt-btn:hover, #game-restart-btn:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 6px 22px rgba(40,167,69,0.45) !important;
}

/* 🌐 Language flags in dropdown (via pseudo, works with option groups) */
select#wptt-language-filter option { padding: 6px; }
