@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

body {
    background: linear-gradient(135deg, #FFE4E1 0%, #E6E6FA 50%, #87CEEB 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Jua', sans-serif;
    margin: 0;
    padding: 10px;
    font-size: 18px;
}
@media (max-height: 700px) {
    /* 여기에 적용할 스타일을 작성 */
    body {
        margin-bottom: 80px;

    }

}


body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 200, 124, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 200, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 119, 255, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.game-container {
    max-width: 800px;
    width: 100%;
    animation: bounceIn 0.8s;
    padding: 0 15px;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.word-card {
    background: linear-gradient(135deg, #FF6B9D 0%, #FEC860 50%, #4ECDC4 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.word-card::before {
    content: "✨";
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    left: -20px;
    top: -20px;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

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

.choice-btn {
    margin: 8px;
    padding: 20px 30px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
}

.choice-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.choice-btn:hover::before {
    width: 300px;
    height: 300px;
}

.choice-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.correct {
    background: linear-gradient(135deg, #00C851 0%, #00ff00 100%) !important;
    animation: correctPulse 0.6s;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.incorrect {
    background: linear-gradient(135deg, #ff4444 0%, #CC0000 100%) !important;
    animation: wrongShake 0.6s;
}

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

#startScreen h1, #resultScreen h1, #gameOverScreen h1 {
    font-size: 3.2em;
    color: #FF6B9D;
    text-shadow: 3px 3px 0px #FEC860;
    animation: bounce 2s infinite;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

#startBtn, #restartBtn, #gameOverRestartBtn {
    font-size: 28px;
    padding: 20px 60px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FEC860 100%);
    border: none;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border-radius: 25px;
    min-width: 250px;
}

#startBtn:hover, #restartBtn:hover, #gameOverRestartBtn:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

#startScreen, #gameScreenV1, #gameScreenV2, #gameScreenV3, #resultScreen, #gameOverScreen {
    display: none;
}

#startScreen.active, #gameScreenV1.active, #gameScreenV2.active, #gameScreenV3.active, #resultScreen.active, #gameOverScreen.active {
    display: block;
}

.version-selection {
    margin-top: 30px;
}

.version-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 30px 20px;
    margin: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    min-height: 200px;
}

.version-card:hover {
    transform: translateY(-5px);
}

.version-card h3 {
    color: #FF6B9D;
    font-weight: bold;
    margin-bottom: 15px;
}

.version-card p {
    color: #666;
    margin-bottom: 10px;
}

.version-desc {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.word-display {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    letter-spacing: 8px;
    transition: background-color 0.3s ease;
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
}

.word-display.correct-flash {
    background: rgba(76, 175, 80, 0.8);
    animation: correctFlash 1s ease-in-out;
}

@keyframes correctFlash {
    0% { 
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }
    50% { 
        background: rgba(76, 175, 80, 0.9);
        transform: scale(1.05);
    }
    100% { 
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }
}

.letter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.letter-btn {
    width: 65px;
    height: 65px;
    font-size: 26px;
    font-weight: bold;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 65px;
}

.letter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.letter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.letter-btn.used {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    opacity: 0.3;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.backspace-btn {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.backspace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.backspace-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.keyboard-hint {
    font-size: 14px;
    color: #666;
    font-style: italic;
    opacity: 0.8;
}

.input-warning {
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    display: none;
    animation: warningPulse 1s infinite;
}

@keyframes warningPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
}

.progress {
    height: 35px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    font-size: 20px;
    line-height: 35px;
    background: linear-gradient(90deg, #FF6B9D 0%, #FEC860 50%, #4ECDC4 100%);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.lives-container {
    text-align: center;
    margin-bottom: 20px;
    font-size: 40px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.life {
    display: inline-block;
    margin: 0 5px;
    transition: all 0.3s;
}

.life.shake {
    animation: heartShake 0.5s;
}

@keyframes heartShake {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-15deg); }
    75% { transform: scale(1.2) rotate(15deg); }
}

#gameOverScreen {
    text-align: center;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    padding: 30px 20px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.poop-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.poop-rain {
    font-size: 80px;
    position: absolute;
    animation: poopFall 3s infinite linear;
}

.poop-bounce {
    font-size: 60px;
    position: absolute;
    animation: poopBounce 2s infinite ease-in-out;
}

.poop-spiral {
    font-size: 70px;
    position: absolute;
    animation: poopSpiral 4s infinite linear;
}

@keyframes poopFall {
    0% { 
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes poopBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: translateY(-200px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(0) rotate(180deg) scale(1);
        opacity: 1;
    }
    75% { 
        transform: translateY(-100px) rotate(270deg) scale(0.8);
        opacity: 0.9;
    }
}

@keyframes poopSpiral {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: translateY(-150px) translateX(100px) rotate(90deg) scale(1.3);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-300px) translateX(0) rotate(180deg) scale(1);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-150px) translateX(-100px) rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0) translateX(0) rotate(360deg) scale(1);
        opacity: 1;
    }
}

.youtube-container {
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.youtube-container iframe {
    width: 100%;
    height: 250px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: slideIn 0.8s;
}

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

#meaning {
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    word-wrap: break-word;
    line-height: 1.3;
}

.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* 태블릿 */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        justify-content: flex-start;
    }
    
    .game-container {
        padding: 0 10px;
    }
    
    .word-card {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .word-card::before {
        font-size: 50px;
    }
    
    .choice-btn {
        font-size: 20px;
        padding: 16px 25px;
        margin: 5px;
        max-width: 320px;
    }
    
    #startScreen h1, #resultScreen h1, #gameOverScreen h1 {
        font-size: 2.8em;
    }
    
    #startBtn, #restartBtn, #gameOverRestartBtn {
        font-size: 24px;
        padding: 16px 50px;
        min-width: 220px;
    }
    
    .lives-container {
        font-size: 35px;
        padding: 8px;
    }
    
    .life {
        margin: 0 3px;
    }
    
    .progress {
        height: 30px;
    }
    
    .progress-bar {
        font-size: 18px;
        line-height: 30px;
    }
    
    #meaning {
        font-size: 1.9em;
    }
    
    .youtube-container iframe {
        height: 200px;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    body {
        padding: 5px;
        overflow-y: auto;
        justify-content: flex-start;
        min-height: 100vh;
    }
    
    .game-container {
        padding: 0 5px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .word-card {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .word-card::before {
        font-size: 40px;
    }
    
    .choice-btn {
        font-size: 18px;
        padding: 14px 20px;
        margin: 3px;
        border-radius: 20px;
        max-width: 280px;
    }
    
    #startScreen h1, #resultScreen h1, #gameOverScreen h1 {
        font-size: 2.4em;
        margin-bottom: 15px;
    }
    
    #startBtn, #restartBtn, #gameOverRestartBtn {
        font-size: 22px;
        padding: 14px 40px;
        min-width: 200px;
    }
    
    .lives-container {
        font-size: 30px;
        padding: 5px;
        margin-bottom: 15px;
    }
    
    .life {
        margin: 0 2px;
    }
    
    .progress {
        height: 25px;
        margin-bottom: 15px;
    }
    
    .progress-bar {
        font-size: 16px;
        line-height: 25px;
    }
    
    #meaning {
        font-size: 1.7em;
        line-height: 1.2;
    }
    
    .youtube-container iframe {
        height: 150px;
    }
    
    .poop-rain {
        font-size: 60px;
    }
    
    #gameOverScreen {
        padding: 20px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* 작은 모바일 */
@media (max-width: 320px),(max-height: 700px) {
    body {
        overflow-y: auto;
        justify-content: flex-start;
        min-height: 100vh;
    }
    
    .choice-btn {
        font-size: 16px;
        padding: 12px 16px;
        margin: 2px;
        max-width: 250px;
    }
    
    #startScreen h1, #resultScreen h1, #gameOverScreen h1 {
        font-size: 2em;
    }
    
    #startBtn, #restartBtn, #gameOverRestartBtn {
        font-size: 20px;
        padding: 12px 35px;
        min-width: 180px;
    }
    
    .lives-container {
        font-size: 25px;
    }
    
    #meaning {
        font-size: 1.5em;
    }
    
    .youtube-container iframe {
        height: 120px;
    }
    
    .letter-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    .letter-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        min-width: 45px;
        border-radius: 10px;
    }
    
    .word-display {
        font-size: 1.8em;
        margin: 15px 0;
        min-height: 50px;
        padding: 10px;
        letter-spacing: 3px;
    }
    
    .backspace-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .keyboard-hint {
        display: none;
    }
    
    .lead {
        font-size: 1.3em !important;
    }
    
    .version-selection {
        margin-top: 10px;
    }
    
    .version-card {
        padding: 15px 10px;
        margin: 5px;
        min-height: 130px;
        border-radius: 15px;
    }
    
    .version-card h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
    }
    
    .version-card p {
        font-size: 0.8em;
        margin-bottom: 4px;
    }
    
    .version-desc {
        font-size: 0.7em !important;
        margin-bottom: 10px !important;
    }
    
    .version-card button {
        font-size: 0.8em;
        padding: 8px 16px;
    }
    
    #startScreen h1 {
        font-size: 1.9em;
        margin-bottom: 10px;
    }
    
    #startScreen {
        padding: 15px 0 80px 0;
        min-height: auto;
    }
    
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.1);
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
    z-index: 1000;
}

.gif-container {
    margin: 20px 0;
    text-align: center;
}

.success-gif {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: bounceIn 0.8s;
}

.csv-upload-section {
    margin-bottom: 30px;
}

.csv-upload-section .card {
    transition: transform 0.3s ease;
}

.csv-upload-section .card:hover {
    transform: translateY(-2px);
}

.csv-upload-section input[type="file"] {
    border: 2px dashed #ddd;
    padding: 10px;
    transition: border-color 0.3s ease;
}

.csv-upload-section input[type="file"]:focus {
    border-color: #FF6B9D;
    outline: none;
}

.csv-upload-section button {
    transition: all 0.3s ease;
}

.csv-upload-section button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quiz-editor-section {
    margin-bottom: 30px;
}

.quiz-editor-section .card {
    transition: transform 0.3s ease;
}

.quiz-editor-section .card:hover {
    transform: translateY(-2px);
}

.quiz-editor-section textarea {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.quiz-editor-section textarea:focus {
    border-color: #FF6B9D;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

.quiz-editor-section button {
    transition: all 0.3s ease;
}

.quiz-editor-section button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.start-screen-footer {
    margin-top: 30px;
    padding: 20px 0;
}

.start-screen-footer button {
    margin: 0 10px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
}

.start-screen-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-header-controls {
    text-align: right;
    margin-bottom: 20px;
}

.game-header-controls button {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.game-header-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #6c757d;
    color: white;
}

@media (max-width: 768px) {
    .success-gif {
        max-width: 250px;
    }
    
    .csv-upload-section .card {
        margin: 10px auto;
        padding: 12px;
        max-width: 500px;
    }
    
    .csv-upload-section h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .csv-upload-section p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .csv-upload-section button {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .start-screen-footer {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .start-screen-footer button {
        margin: 0 8px;
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .lead {
        font-size: 1.8em !important;
    }
    
    .version-selection {
        margin-top: 20px;
    }
    
    .version-card {
        padding: 25px 15px;
        margin: 10px;
        min-height: 180px;
    }
    
    .version-card h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .version-card p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .version-desc {
        font-size: 0.8em !important;
        margin-bottom: 15px !important;
    }
    
    .quiz-editor-section .card {
        margin: 15px auto;
        padding: 15px;
    }
    
    .quiz-editor-section h4 {
        font-size: 1.2em;
    }
    
    .quiz-editor-section textarea {
        font-size: 13px;
        rows: 10;
    }
    
    .quiz-editor-section button {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .game-header-controls {
        margin-bottom: 15px;
    }
    
    .game-header-controls button {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .letter-buttons {
        gap: 10px;
        margin-top: 15px;
    }
    
    .letter-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
        min-width: 55px;
    }
    
    .word-display {
        font-size: 2.5em;
        margin: 25px 0;
        min-height: 70px;
        padding: 15px;
        letter-spacing: 6px;
    }
    
    .backspace-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px),(max-height: 700px) {
    .success-gif {
        max-width: 200px;
    }
    
    .csv-upload-section .card {
        margin: 8px auto;
        padding: 10px;
        max-width: 450px;
    }
    
    .csv-upload-section h4 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .csv-upload-section p {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .csv-upload-section button {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 5px;
    }
    
    .start-screen-footer {
        margin-top: 15px;
        padding: 10px 0;
    }
    
    .start-screen-footer button {
        margin: 0 5px;
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .lead {
        font-size: 1.5em !important;
    }
    
    .version-selection {
        margin-top: 15px;
    }
    
    .version-card {
        padding: 20px 12px;
        margin: 8px;
        min-height: 150px;
        border-radius: 20px;
    }
    
    .version-card h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .version-card p {
        font-size: 0.85em;
        margin-bottom: 6px;
    }
    
    .version-desc {
        font-size: 0.75em !important;
        margin-bottom: 12px !important;
    }
    
    .version-card button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
    
    #startScreen h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    
    #startScreen {
        padding: 20px 0 80px 0;
        min-height: auto;
    }
    
    .quiz-editor-section .card {
        margin: 10px auto;
        padding: 12px;
    }
    
    .quiz-editor-section h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .quiz-editor-section p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .quiz-editor-section textarea {
        font-size: 12px;
        rows: 8;
    }
    
    .quiz-editor-section button {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 5px;
    }
    
    .game-header-controls {
        margin-bottom: 10px;
    }
    
    .game-header-controls button {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .letter-buttons {
        gap: 8px;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .letter-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        min-width: 50px;
        border-radius: 12px;
    }
    
    .word-display {
        font-size: 2em;
        margin: 20px 0;
        min-height: 60px;
        padding: 12px;
        letter-spacing: 4px;
    }
    
    .backspace-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .keyboard-hint {
        display: none;
    }
}