* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}
html {
    scroll-behavior: smooth;
    height: 100%;
}
.start-btn, #startGameBtn, #multiplayerBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14px !important;
    white-space: nowrap;
    min-height: 44px;
}
body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    padding-bottom: 20px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

body.dark-theme {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}
.floating-words-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.floating-word {
    position: absolute;
    font-size: clamp(18px, 5vw, 45px);
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    animation: floatWord linear forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1;
}
@keyframes floatWord {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% {
        transform: translateX(calc(100vw * var(--dx, 1))) translateY(calc(100vh * var(--dy, -1))) rotate(360deg);
        opacity: 0;
    }
}
.main-layout {
    display: flex;
    gap: 15px;
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    align-items: stretch;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
}
.game-wrapper { 
    flex: 4; 
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.leaderboard-wrapper {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    height: 100%;
}
.game-container {
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.98) 0%, 
        rgba(255,248,245,0.95) 30%,
        rgba(250,245,240,0.92) 60%,
        rgba(248,242,235,0.9) 100%);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 18px 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
                0 8px 24px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}


.leaderboard-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}
.leaderboard-container h3 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.score-list { 
    flex: 1;
    overflow-y: auto; 
    min-height: 150px;
    border-radius: 12px;
    scroll-behavior: smooth;
    margin-bottom: 8px;
}
.score-list::-webkit-scrollbar {
    width: 4px;
}
.score-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.score-list::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.3);
    border-radius: 10px;
}
.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #2c3e50;
    font-size: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.score-rank { font-weight: bold; color: #e67e22; width: 30px; font-size: 11px; }
.score-name { flex: 1; margin: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.score-point { font-weight: bold; color: #2ecc71; font-size: 12px; }
.current-user { 
    background: rgba(46,204,113,0.12); 
    border-radius: 8px;
    border-left: 3px solid #2ecc71;
    font-weight: 600;
}
.leaderboard-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 10px;
    flex-shrink: 0;
}
.selector-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.lb-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    max-width: 60px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.lb-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1c40f, #e67e22, #f39c12);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.lb-btn:hover::before {
    opacity: 1;
}
.lb-btn:hover {
    color: white;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}
.lb-btn:active {
    transform: scale(0.95);
}
.lb-btn.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(46,204,113,0.3);
    transform: none;
}
.lb-btn.active::before {
    display: none;
}
.lb-btn span {
    position: relative;
    z-index: 1;
}
.login-screen {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    overflow-y: auto;
}
.menu-left {
    flex: 1.2;
    min-width: 240px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 28px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.menu-center {
    flex: 2.5;
    min-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 28px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.menu-right {
    flex: 1.3;
    min-width: 240px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 28px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    overflow-y: auto;
}
body.dark-theme .game-container {
    background: linear-gradient(180deg, 
        rgba(30,35,50,0.98) 0%, 
        rgba(28,33,48,0.95) 100%);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
body.dark-theme .leaderboard-container {
    background: rgba(30, 35, 50, 0.92);
    border-color: rgba(255,255,255,0.1);
}
body.dark-theme .menu-left,
body.dark-theme .menu-center,
body.dark-theme .menu-right {
    background: rgba(30, 35, 50, 0.6);
}
body.dark-theme .score-item {
    color: #ecf0f1;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.dark-theme .lb-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #ecf0f1;
}
body.dark-theme .lb-btn.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}
body.dark-theme .leaderboard-selector {
    border-top: 1px solid rgba(255,255,255,0.1);
}
body.dark-theme .pokemon-card {
    background: linear-gradient(135deg, 
        rgba(40,45,60,0.95) 0%, 
        rgba(35,40,55,0.9) 100%);
    border-color: rgba(255,255,255,0.08);
}
body.dark-theme .option-btn {
    background: linear-gradient(135deg, #2d2d3f 0%, #252538 100%);
    color: #ecf0f1;
    border-color: rgba(255,255,255,0.08);
}
body.dark-theme .right-stats {
    background: linear-gradient(135deg, 
        rgba(40,45,60,0.8) 0%, 
        rgba(35,40,55,0.7) 100%);
    border-color: rgba(255,255,255,0.08);
}
body.dark-theme .timer-container-simple {
    background: linear-gradient(135deg, 
        rgba(52,152,219,0.15) 0%, 
        rgba(41,128,185,0.2) 100%);
    border-color: rgba(52,152,219,0.2);
}
body.dark-theme .english-word {
    background: linear-gradient(135deg, #f39c12, #e74c3c, #9b59b6, #3498db, #2ecc71);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wordGradient 4s ease infinite, wordPulse 2s ease-in-out infinite;
}
.login-title {
    font-size: 78px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #F9D423, #FF8C00, #FFB347, #F4A460, #E67E22, #F39C12);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldGradientShift 4s ease infinite, gentlePulse 2s ease-in-out infinite;
    letter-spacing: 2px;
    display: block;
    width: 100%;
    text-align: center;    
}
@keyframes goldGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gentlePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}
.level-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    flex: 1;
}
.level-btn {
    border: none;
    border-radius: 60px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}
.level-btn.kolay { border-left: 5px solid #2ecc71; background: rgba(46, 204, 113, 0.12); }
.level-btn.orta { border-left: 5px solid #3498db; background: rgba(52, 152, 219, 0.12); }
.level-btn.zor { border-left: 5px solid #e67e22; background: rgba(230, 126, 34, 0.12); }
.level-btn.sinav { border-left: 5px solid #9b59b6; background: rgba(155, 89, 182, 0.12); }
.level-btn.active {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}
.level-btn.active.kolay { border-left: 5px solid #2ecc71; background: rgba(46, 204, 113, 0.25); }
.level-btn.active.orta { border-left: 5px solid #3498db; background: rgba(52, 152, 219, 0.25); }
.level-btn.active.zor { border-left: 5px solid #e67e22; background: rgba(230, 126, 34, 0.25); }
.level-btn.active.sinav { border-left: 5px solid #9b59b6; background: rgba(155, 89, 182, 0.25); }
.level-btn:active {
    transform: translateX(2px);
    transition: all 0.1s ease;
}
.level-icon {
    font-size: 22px;
    min-width: 32px;
    text-align: center;
}
.level-info {
    flex: 1;
    text-align: left;
}
.level-name {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 3px;
    display: block;
}
.level-desc {
    font-size: 11px;
    opacity: 0.7;
    display: block;
    line-height: 1.3;
}
.selected-badge {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(4px);
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.username-area {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}
.username-area input {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 60px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    min-height: 44px;
}
.username-area input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
    transform: scale(1.02);
}
.start-btn, #startGameBtn, #multiplayerBtn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    max-width: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}
.start-btn:active, #startGameBtn:active, #multiplayerBtn:active {
    transform: scale(0.98);
}
#multiplayerBtn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}
.control-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}
.theme-btn, .sound-btn, .howto-btn, .multiplayer-btn {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 60px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    backdrop-filter: blur(4px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:active, .sound-btn:active, .howto-btn:active, .multiplayer-btn:active {
    transform: translateY(-1px);
}
.multiplayer-btn {
    background: rgba(155, 89, 182, 0.12);
    border-color: #9b59b6;
    color: #9b59b6;
}
.footer-text {
    font-size: 11px;
    color: rgba(44,62,80,0.7);
    margin-top: 15px;
    text-align: center;
}
.footer-text a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.2s ease;
}
.game-title-main {
    font-size: clamp(24px, 6vw, 42px);
    font-weight: 900;
    margin-bottom: 0px;
    margin-top: -8px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #F9D423, #FF8C00, #FFB347, #F4A460, #E67E22, #F39C12);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldGradientShift 4s ease infinite, gentlePulse 2s ease-in-out infinite;
}
.game-title-sub {
    font-size: clamp(10px, 2.5vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #e67e22;
    margin-top: -2px;
}
.mobile-difficulty-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mobile-difficulty-content {
    background: white;
    border-radius: 32px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
body.dark-theme .mobile-difficulty-content {
    background: #1a1a2e;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-difficulty-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 10px 0;
    border-radius: 60px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}
body.dark-theme .mobile-difficulty-item {
    background: #2d2d44;
    color: white;
}
.mobile-difficulty-item.active {
    background: rgba(0,0,0,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: scale(1.02);
}
.mobile-difficulty-item.kolay { border-left-color: #2ecc71; }
.mobile-difficulty-item.orta { border-left-color: #3498db; }
.mobile-difficulty-item.zor { border-left-color: #e67e22; }
.mobile-difficulty-item.sinav { border-left-color: #9b59b6; }
.mobile-difficulty-close {
    width: 100%;
    padding: 14px;
    border-radius: 60px;
    background: #e74c3c;
    color: white;
    border: none;
    margin-top: 16px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}
.game-area { display: none; }

.game-area.active { 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    padding-top: 0px; 
    gap: 4px; 
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable; }
.game-area h1 {
    text-align: center;
    color: #e67e22;
    margin-bottom: 0px;
    margin-top: 0px;
    font-weight: 800;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.right-stats {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.8) 0%, 
        rgba(248,248,248,0.7) 100%);
    padding: 4px 10px;
    border-radius: 60px;
    border: 1px solid rgba(0,0,0,0.06);
    flex: 1;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
}
.combo-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    padding: 3px 6px;
    border-radius: 40px;
    transition: all 0.3s ease;
}
.combo-badge.combo-high {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
    animation: comboPulse 0.8s infinite;
}
@keyframes comboPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.combo-icon { font-size: 12px; }
.combo-text { color: white; font-size: 9px; font-weight: bold; }
.combo-number {
    font-size: 11px;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.3);
    padding: 0 4px;
    border-radius: 30px;
    min-width: 18px;
    text-align: center;
}
.hearts {
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1px;
}
.score {
    font-size: 12px;
    color: #e67e22;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}
.hp-bar-container { 
    background: linear-gradient(135deg, 
        rgba(0,0,0,0.06) 0%, 
        rgba(0,0,0,0.04) 100%); 
    border-radius: 20px; 
    padding: 2px; 
    margin-bottom: 2px; 
    flex-shrink: 0;
}
.hp-bar { 
    background: linear-gradient(90deg, #e74c3c, #c0392b, #e67e22); 
    height: 8px; 
    border-radius: 15px; 
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    padding-right: 8px; 
    color: white; 
    font-weight: bold; 
    font-size: 7px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.pokemon-card {
    background: linear-gradient(217deg, 
         rgba(255,255,255,0.8), rgba(250,240,245,0.6), rgba(245,240,250,0.6), 
         rgba(240,248,255,0.6), rgba(240,255,245,0.6), rgba(255,245,235,0.6),
         rgba(255,240,240,0.6), rgba(255,245,250,0.6), rgba(245,240,255,0.6),
         rgba(240,245,255,0.6), rgba(240,255,250,0.6), rgba(255,250,240,0.6),
         rgba(255,235,235,0.6), rgba(250,235,245,0.6), rgba(235,235,250,0.6),
         rgba(235,245,250,0.6), rgba(235,250,240,0.6), rgba(250,245,235,0.6),
         rgba(255,255,255,0.9)),
        linear-gradient(127deg,
         rgba(255,235,238,0.5), rgba(232,245,233,0.5), rgba(227,242,253,0.5),
         rgba(243,229,245,0.5), rgba(255,243,224,0.5), rgba(252,228,236,0.5),
         rgba(232,234,246,0.5), rgba(224,247,250,0.5), rgba(241,248,233,0.5),
         rgba(255,250,205,0.5), rgba(255,205,210,0.5), rgba(209,196,233,0.5),
         rgba(187,222,251,0.5), rgba(200,230,201,0.5), rgba(255,224,178,0.5),
         rgba(248,187,208,0.5), rgba(179,229,252,0.5), rgba(255,249,196,0.5),
         rgba(255,235,238,0.5)),
        linear-gradient(336deg,
         rgba(255,245,245,0.5), rgba(245,245,255,0.5), rgba(245,255,250,0.5),
         rgba(255,250,245,0.5), rgba(250,240,250,0.5), rgba(240,250,255,0.5),
         rgba(255,240,245,0.5), rgba(245,250,240,0.5), rgba(250,245,240,0.5),
         rgba(255,245,240,0.5), rgba(240,245,250,0.5), rgba(245,255,245,0.5),
         rgba(255,250,250,0.5), rgba(250,250,255,0.5), rgba(250,255,250,0.5),
         rgba(255,245,250,0.5), rgba(245,250,255,0.5), rgba(255,250,245,0.5));
    background-size: 400% 400%;
    animation: cardGradient 25s ease infinite;
    border-radius: 24px;
    padding: 10px 14px;
    margin: 4px 0;
    transition: all 0.4s ease;
    flex-shrink: 0;
    border: 1px solid rgba(230,126,34,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}


@keyframes cardGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}
.english-word {
    font-size: clamp(18px, 8vw, 44px);
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22, #d35400, #f39c12, #e74c3c, #9b59b6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.1;
    max-width: 100%;
    animation: wordGradient 4s ease infinite, wordPulse 2s ease-in-out infinite;
}
@keyframes wordGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wordPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.025); }
    100% { transform: scale(1); } 
}
.timer-container-simple {
    background: linear-gradient(135deg, 
        rgba(52,152,219,0.08) 0%, 
        rgba(41,128,185,0.12) 100%);
    border-radius: 12px;
    padding: 6px 10px;
    margin-top: 2px;
    border: 1px solid rgba(52,152,219,0.15);
}
.timer-info { display: flex; justify-content: space-between; margin-bottom: 2px; }
.timer-label-simple { 
    color: #2980b9; 
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.5px;
}
.timer-value { 
    font-size: 18px; 
    font-weight: bold; 
    background: linear-gradient(135deg, #e74c3c, #f39c12, #e67e22);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: monospace;
    animation: timerGradient 2s ease infinite;
}
@keyframes timerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.timer-bar-long { width: 100%; height: 6px; background: rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; }
.timer-progress-long { 
    height: 100%; 
    width: 100%; 
    background: linear-gradient(90deg, #2ecc71, #27ae60); 
    transition: width 0.15s linear, background 0.3s ease; 
    border-radius: 10px; 
}
.timer-progress-long.warning { background: linear-gradient(90deg, #f39c12, #e67e22); }
.timer-progress-long.danger { background: linear-gradient(90deg, #e74c3c, #c0392b); animation: pulse 0.5s infinite; }
@keyframes pulse { 
    0%,100%{opacity:1;} 
    50%{opacity:0.6;} 
}
.options-wrapper {
    display: flex;
    gap: 6px;
    margin: 4px 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.options-grid { 
    flex: 4; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    min-width: 0;
}
.options-row { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.option-btn {
    background: linear-gradient(135deg, 
        #f8f9fa, #e8f4f8, #f0e6ff, #ffe8ec, #e8f8e8);
    background-size: 300% 300%;
    animation: optionGradient 8s ease infinite;
    color: #2c3e50;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    flex: 1 1 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    min-height: 44px;
    position: relative;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.3;
    height: auto;
}
@keyframes optionGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.option-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    width: 300px;
    height: 300px;
}
.option-btn.correct { 
    background: linear-gradient(135deg, #2ecc71, #27ae60, #229954) !important; 
    color: white;
    animation: bounce 0.5s ease !important;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
    border-color: transparent !important;
}
.option-btn.wrong { 
    background: linear-gradient(135deg, #e74c3c, #c0392b, #a93226) !important; 
    color: white;
    animation: shake 0.4s ease !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    border-color: transparent !important;
}
.option-btn.eliminated { 
    background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; 
    text-decoration: line-through; 
    opacity: 0.5;
    cursor: not-allowed;
}
@keyframes bounce { 
    0%,100%{transform:scale(1);} 
    30%{transform:scale(1.06);} 
    50%{transform:scale(1.02);} 
    70%{transform:scale(1.04);} 
}
@keyframes shake { 
    0%,100%{transform:translateX(0);} 
    20%{transform:translateX(-6px);} 
    40%{transform:translateX(6px);} 
    60%{transform:translateX(-4px);} 
    80%{transform:translateX(4px);} 
}
.option-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    transform: none !important; 
}
.joker-wrapper { 
    flex: 1; 
    min-width: 70px; 
    max-width: 120px; 
    display: flex; 
    align-items: stretch; 
}
.joker-main-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 6px 6px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(155,89,182,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}
.joker-main-btn:active:not(:disabled) { 
    transform: scale(0.95); 
    transition: all 0.1s ease;
}
.joker-main-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.joker-icon { font-size: clamp(20px, 5vw, 24px); }
.joker-text { font-size: clamp(7px, 2vw, 9px); font-weight: 600; }
.joker-count-badge {
    background: #f1c40f;
    color: #2c3e50;
    border-radius: 40px;
    padding: 2px 8px;
    font-size: clamp(9px, 2.5vw, 11px);
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}
.game-status { 
    text-align: center; 
    font-size: 11px; 
    margin-top: 2px; 
    color: #2c3e50; 
    font-weight: 500; 
    min-height: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.button-group {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 4px 2px;
    flex-shrink: 0;
}
.pause-btn, .reset-btn, .logout-btn {
    flex: 1;
    min-width: 60px;
    max-width: 130px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    color: white;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}
.pause-btn:active::after, .reset-btn:active::after, .logout-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    width: 300px;
    height: 300px;
}
.pause-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}
.pause-btn.paused {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 2px 12px rgba(46, 204, 113, 0.35);
    animation: softPulse 2s infinite;
}
@keyframes softPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 2px 20px rgba(46, 204, 113, 0.6); }
}
.reset-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}
.logout-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 2px 10px rgba(127, 140, 141, 0.3);
}
.pause-btn:active, .reset-btn:active, .logout-btn:active {
    transform: scale(0.96);
    transition: all 0.1s ease;
}
.word-counter { 
    text-align: center; 
    color: #7f8c8d; 
    font-size: 10px; 
    margin-top: 8px; 
    margin-bottom: 2px;
    background: rgba(0,0,0,0.04); 
    display: inline-block; 
    width: auto; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 3px 10px; 
    border-radius: 40px; 
    flex-shrink: 0;
}
.username-display { 
    text-align: center; 
    color: #e67e22; 
    margin-bottom: 8px; 
    font-weight: bold; 
    background: rgba(0,0,0,0.04); 
    display: inline-block; 
    width: auto; 
    padding: 4px 14px; 
    border-radius: 60px; 
    margin-left: auto; 
    margin-right: auto; 
    font-size: 12px;
}
.random-badge { 
    background: linear-gradient(135deg, #e67e22, #f39c12); 
    color: white; 
    padding: 3px 8px; 
    border-radius: 30px; 
    font-size: 12px; 
    display: inline-block; 
}
.wrong-words-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 60px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 40px;
    flex-shrink: 0;
}
.selected-level-info {
    background: rgba(0,0,0,0.04);
    border-radius: 24px;
    padding: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #2c3e50;
    text-align: center;
}
.char-limit-warning {
    font-size: 10px;
    color: #e74c3c;
    margin-top: 3px;
    display: none;
    min-height: 16px;
}
.info-cards {
    margin-bottom: 12px;
    flex-shrink: 0;
}
.greeting-card {
    background: rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 8px 12px;
    margin-bottom: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.greeting-text {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}
.word-of-day-card {
    background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(255,202,87,0.08), rgba(72,219,251,0.08), rgba(255,159,243,0.08));
    border-radius: 16px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.word-of-day-title {
    font-size: 10px;
    color: #7f8c8d;
    letter-spacing: 2px;
    font-weight: bold;
}
.word-of-day-word {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #2ecc71);
    background-size: 200% 200%;
    animation: textGradient 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 4px 0;
}
@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.word-of-day-meaning {
    font-size: 11px;
    color: #e67e22;
    font-weight: bold;
    background: rgba(0,0,0,0.04);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}
body.dark-theme .modal-content {
    background: #1a1a2e;
    color: white;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-content h3 { color: #e67e22; text-align: center; margin-bottom: 20px; font-size: 26px; }
.modal-content h4 { color: #2ecc71; margin: 15px 0 8px 0; font-size: 18px; }
.modal-content p { color: inherit; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.modal-content ul { color: inherit; font-size: 14px; margin-left: 20px; margin-bottom: 15px; }
.modal-content li { margin: 8px 0; line-height: 1.5; }
.modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 44px;
}
.highlight { color: #f39c12; font-weight: bold; }
@media (min-width: 901px) {
    .game-area.active {
        justify-content: center;
        padding-top: 0;
        gap: 6px;
    }
    .game-area.active h1 {
        margin-bottom: 16px !important;
        margin-top: -20px !important;
    }
    .game-title-main {
        font-size: clamp(80px, 82vw, 56px) !important;
        margin-bottom: 50px !important;
    }
    .game-title-sub {
        font-size: 25px !important;
        gap: 8px !important;
        margin-top: -6px !important;
    }
    .game-area.active .random-badge {
        font-size: 15px !important;
        padding: 6px 15px !important;
    }
    .top-info {
        gap: 10px !important;
        margin-bottom: 4px !important;
        margin-top: 4px !important;
    }
    .right-stats {
        padding: 8px 16px !important;
        gap: 14px !important;
    }
    .combo-badge { padding: 4px 10px !important; gap: 4px !important; }
    .combo-icon { font-size: 16px !important; }
    .combo-text { font-size: 12px !important; }
    .combo-number { font-size: 14px !important; min-width: 24px !important; }
    .hearts { font-size: 18px !important; letter-spacing: 2px !important; }
    .score { font-size: 15px !important; }
    .hp-bar-container { padding: 4px !important; margin-bottom: 4px !important; }
    .hp-bar { height: 14px !important; font-size: 10px !important; }
    .pokemon-card {
        padding: 16px 20px !important;
        margin: 6px 0 !important;
        border-radius: 36px !important;
    }
   .english-word {
    font-size: clamp(18px, 8vw, 44px);
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22, #d35400, #f39c12, #e74c3c, #9b59b6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.1;
    max-width: 100%;
    animation: wordGradient 4s ease infinite, wordPulse 2s ease-in-out infinite;
    display: block;
    overflow: hidden;
    padding: 2px 0;
}
    .timer-container-simple { padding: 10px 16px !important; }
    .timer-info { margin-bottom: 4px !important; }
    .timer-label-simple { font-size: 12px !important; }
    .timer-value { font-size: 24px !important; }
    .timer-bar-long { height: 10px !important; }
    .game-status { font-size: 13px !important; margin-top: 4px !important; }
    .word-counter { font-size: 11px !important; padding: 4px 12px !important; margin-top: 6px !important; }
    .options-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        margin: 8px auto !important;
        align-items: stretch !important;
        justify-content: center !important;
        max-width: 900px !important;
    }
    .options-grid { flex: 0 1 auto !important; gap: 14px !important; order: 1 !important; }
    .options-row { gap: 16px !important; justify-content: center !important; }
    .joker-wrapper { 
        flex: 0 0 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        order: 2 !important;
        align-self: stretch !important;
    }
    .joker-main-btn {
        padding: 12px !important;
        min-height: 100% !important;
        flex-direction: column !important;
        border-radius: 25px !important;
        gap: 5px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .joker-icon { font-size: 30px !important; }
    .joker-text { font-size: 11px !important; }
    .joker-count-badge { font-size: 12px !important; padding: 4px 10px !important; }
    .option-btn {
        padding: 16px 28px !important;
        font-size: 20px !important;
        min-width: 100px !important;
        max-width: none !important;
        min-height: 50px !important;
        flex: 0 0 auto !important;
        border-radius: 25px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        height: auto !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    .pause-btn, .reset-btn, .logout-btn {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-width: 80px !important;
        min-height: 38px !important;
    }
    .button-group { gap: 8px !important; margin-top: 4px !important; }
}
@media (max-width: 900px) {
    body { padding: 5px; padding-bottom: 8px; height: 100vh; height: 100dvh; overflow-y: auto; align-items: stretch; }
    .leaderboard-wrapper { width: 100%; height: auto; max-height: 45vh; margin-top: 0; }
    .leaderboard-container { border-radius: 16px; padding: 12px; max-height: 45vh; overflow-y: auto; }
    .main-layout { flex-direction: column; gap: 8px; padding: 0; height: auto; max-height: none; width: 100%; margin-top: 0; margin-bottom: 0; }
    .game-wrapper { width: 100%; margin-top: 0; order: -1; flex: 1; min-height: 0; }

    .game-container { 
        padding: 10px; 
        border-radius: 20px; 
        height: calc(100vh - 13px); 
        height: calc(100dvh - 13px); 
        max-height: none; 
        margin-top: 0; 
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
        display: flex; 
        flex-direction: column; 
        justify-content: flex-start; 
    }
    
    .leaderboard-wrapper { width: 100%; height: auto; max-height: 300px; margin-top: 0; }
    .leaderboard-container { border-radius: 16px; padding: 12px; max-height: 300px; overflow-y: auto; }
    .login-screen { flex-direction: column; gap: 10px; height: auto; max-height: none; }
    .menu-left { display: none !important; }
    .menu-center, .menu-right { width: 100%; min-width: unset; padding: 16px; border-radius: 20px; height: auto; }
    .login-title { font-size: 36px; margin-bottom: 12px; }
    .game-title-main { font-size: clamp(18px, 6vw, 26px) !important; margin-bottom: 0px !important; margin-top: 0px !important; }
    .game-title-sub { font-size: 10px !important; gap: 4px !important; }
    .info-cards { margin-bottom: 10px; }
    .greeting-card, .word-of-day-card { padding: 10px; }
    .greeting-text { font-size: 12px; }
    .word-of-day-word { font-size: 20px; }
    .word-of-day-meaning { font-size: 11px; }
    .username-area input { padding: 10px 16px; font-size: 13px; max-width: 220px; }
    .level-btn { padding: 10px 14px; min-height: 50px; }
    .level-icon { font-size: 18px; min-width: 26px; }
    .level-name { font-size: 12px; }
    .level-desc { font-size: 9px; }
    .control-buttons { gap: 6px; margin: 8px 0; }
    .theme-btn, .sound-btn, .howto-btn, .multiplayer-btn { padding: 8px 12px; font-size: 11px; }
    .footer-text { margin-top: 10px; font-size: 9px; }
    .game-area.active { justify-content: flex-start; gap: 0px; }
    .game-area h1 { margin-bottom: 2px !important; margin-top: 0px !important; flex-shrink: 0; }
    .top-info { gap: 6px; margin-bottom: 4px; flex-shrink: 0; }
    .right-stats { padding: 6px 10px; gap: 8px; }
    .combo-badge { padding: 4px 8px; }
    .combo-icon { font-size: 14px; }
    .combo-text { font-size: 11px; }
    .combo-number { font-size: 13px; min-width: 22px; }
    .hearts { font-size: 16px; }
    .score { font-size: 14px; }
    .hp-bar-container { padding: 3px; margin-bottom: 4px; flex-shrink: 0; }
    .hp-bar { height: 10px; font-size: 8px; }
    .pokemon-card { padding: 12px 12px; margin: 4px 0; border-radius: 24px; flex-shrink: 0; }
    .english-word {
        font-size: clamp(18px, 10vw, 42px) !important;
        margin-bottom: 10px;
        line-height: 1.1;
        word-break: break-all;
        overflow-wrap: break-word;
        padding: 0 4px;
    }
    .timer-container-simple { padding: 8px 12px; }
    .timer-label-simple { font-size: 11px; }
    .timer-value { font-size: 22px; }
    .timer-bar-long { height: 8px; }
    .options-wrapper {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        gap: 0px;
        margin: 6px 0;
        justify-content: space-evenly !important;
        min-height: 0;
    }
    .options-grid {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0px;
        justify-content: space-evenly;
        min-height: 0;
    }
    .options-row { gap: 12px; justify-content: center; flex: 1; align-items: center; }
    .option-btn {
        padding: 14px 10px !important;
        font-size: clamp(18px, 5vw, 26px) !important;
        min-width: 0;
        border-radius: 20px;
        min-height: 50px;
        max-height: none !important;
        height: auto !important;
        flex: 1 1 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        text-align: center;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    .joker-wrapper { 
        width: 100% !important; 
        max-width: 100% !important;
        min-width: unset !important;
        flex: none !important;
        order: 2;
        margin-top: 4px;
    }
    .joker-main-btn { 
        flex-direction: row !important; 
        padding: 12px 18px !important; 
        border-radius: 60px !important;
        gap: 12px !important;
        min-height: 46px !important;
        justify-content: center !important;
    }
    .joker-icon { font-size: 24px !important; }
    .joker-text { font-size: 15px !important; font-weight: 700 !important; }
    .joker-count-badge { font-size: 13px !important; padding: 4px 10px !important; min-width: 26px !important; }
    .game-status { font-size: 12px; margin-top: 2px; margin-bottom: 2px; flex-shrink: 0; order: 3; }
    .button-group { gap: 8px; margin-top: 4px; padding-bottom: 2px; flex-shrink: 0; order: 4; }
    .pause-btn, .reset-btn, .logout-btn {
        padding: 12px 10px; font-size: 13px; min-width: 70px;
        border-radius: 60px; min-height: 46px; flex: 1;
    }
    .word-counter { font-size: 10px; padding: 4px 12px; margin-top: 4px; margin-bottom: 2px; flex-shrink: 0; order: 5; }
    .username-display { font-size: 12px; padding: 4px 12px; margin-bottom: 6px; }
    .game-area.active .random-badge { font-size: 11px !important; padding: 4px 10px !important; }
    .selected-level-info { font-size: 11px; padding: 6px; }
}
@media (max-width: 600px) {
    .option-btn {
        padding: 14px 10px !important;
        font-size: clamp(16px, 5vw, 26px) !important;
        min-height: 52px;
        flex: 1 1 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    .options-row { gap: 12px; }
    .english-word { font-size: clamp(18px, 11vw, 38px) !important; }
    .joker-main-btn { padding: 12px 16px !important; min-height: 44px !important; }
    .joker-icon { font-size: 22px !important; }
    .joker-text { font-size: 14px !important; }
    .pause-btn, .reset-btn, .logout-btn { padding: 12px 10px; font-size: 12px; min-height: 44px; }
}
@media (max-width: 480px) {
    body { padding: 3px; padding-bottom: 6px; height: 100vh; height: 100dvh; overflow-y: auto; align-items: stretch; }
    .game-container { padding: 8px; border-radius: 16px; height: calc(100vh - 10px); height: calc(100dvh - 10px); }
    .leaderboard-container { padding: 10px; border-radius: 12px; max-height: 250px; }
    .login-screen { gap: 8px; }
    .menu-center, .menu-right { padding: 12px; border-radius: 16px; }
    .login-title { font-size: 30px; margin-bottom: 10px; }
    .game-title-main { font-size: 16px !important; margin-top: 0px !important; }
    .game-title-sub { font-size: 9px !important; }
    .username-area input { padding: 10px 14px; font-size: 12px; max-width: 200px; }
    .level-btn { padding: 8px 12px; min-height: 45px; }
    .level-icon { font-size: 16px; min-width: 24px; }
    .level-name { font-size: 11px; }
    .level-desc { font-size: 8px; }
    .control-buttons { gap: 5px; }
    .theme-btn, .sound-btn, .howto-btn, .multiplayer-btn { padding: 7px 10px; font-size: 10px; }
    .footer-text { font-size: 8px; margin-top: 8px; }
    .english-word { font-size: clamp(16px, 9vw, 36px) !important; margin-bottom: 8px; }
    .timer-value { font-size: 20px; }
    .option-btn {
        padding: 14px 10px !important;
        font-size: clamp(14px, 4.5vw, 24px) !important;
        min-height: 50px;
        flex: 1 1 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }
    .options-row { gap: 10px; }
    .joker-main-btn { padding: 10px 14px !important; min-height: 42px !important; gap: 8px !important; }
    .joker-icon { font-size: 20px !important; }
    .joker-text { font-size: 13px !important; }
    .joker-count-badge { font-size: 12px !important; }
    .pause-btn, .reset-btn, .logout-btn { padding: 11px 8px; font-size: 12px; min-width: 55px; min-height: 44px; }
    .button-group { gap: 6px; }
    .game-status { font-size: 11px; }
    .word-counter { font-size: 10px; margin-top: 6px; }
}
@media (max-width: 380px) {
    body { padding: 2px; padding-bottom: 5px; height: 100vh; height: 100dvh; overflow-y: auto; align-items: stretch; }
    .game-container { height: calc(100vh - 8px); height: calc(100dvh - 8px); padding: 6px; }
    .login-title { font-size: 24px; }
    .english-word { font-size: clamp(14px, 8vw, 30px) !important; }
    .option-btn {
        padding: 12px 8px !important;
        font-size: clamp(13px, 4vw, 20px) !important;
        min-height: 46px;
        flex: 1 1 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    .options-row { gap: 8px; }
    .joker-main-btn { padding: 8px 12px !important; min-height: 40px !important; gap: 6px !important; }
    .joker-icon { font-size: 18px !important; }
    .joker-text { font-size: 12px !important; }
    .pause-btn, .reset-btn, .logout-btn { padding: 10px 6px; font-size: 11px; min-width: 50px; min-height: 40px; }
    .word-counter { font-size: 9px; margin-top: 5px; }
}
@media (max-width: 420px) {
    .start-btn, #startGameBtn, #multiplayerBtn { font-size: 11px !important; padding: 8px 14px !important; min-width: 100px !important; max-width: 180px !important; width: 100% !important; }
}