* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
    min-height: 100vh;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

.game-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

header {
    text-align: center;
    margin-bottom: 20px;
}

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

.subtitle {
    color: #666;
    font-size: 0.88em;
    margin-bottom: 10px;
}

.btn-back {
    padding: 8px 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

.right-panel {
    width: 250px;
    flex-shrink: 0;
}

.turkey-container {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 3px solid #2c3e50;
    position: relative;
}

.robotic-turkey {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.turkey-body {
    font-size: 4em;
    z-index: 10;
    position: relative;
    animation: robotPulse 2s ease-in-out infinite;
}

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

.turkey-speech {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #34495e;
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.turkey-speech.show {
    opacity: 1;
}

.turkey-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #34495e;
}

.turkey-label {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
}

.audio-controls {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-audio {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 15px;
}

.btn-audio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

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

.btn-audio.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: audioPulse 0.5s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
}

.audio-icon {
    font-size: 1.3em;
}

.current-word-display {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: bold;
    min-height: 30px;
    margin-top: 10px;
}

.word-options-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.word-options-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.word-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.word-option {
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 3px solid #2c3e50;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.word-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

.word-option:active {
    transform: translateY(-1px);
}

.word-option.correct {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    animation: correctPulse 0.5s ease;
}

.word-option.incorrect {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: shake 0.5s ease;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.word-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.feedback {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    min-height: 40px;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.feedback.hidden {
    opacity: 0;
    visibility: hidden;
}

.progress-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px;
    background: white;
    border-radius: 8px;
}

.progress-label {
    color: #666;
    font-size: 0.9em;
}

.progress-value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
}

.grade-levels-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.grade-levels-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.grade-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.grade-badge {
    padding: 8px 16px;
    background: #95a5a6;
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.grade-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.grade-badge.active {
    background: #27ae60;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
    opacity: 1;
}

.grade-note {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.word-count-display {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    color: #27ae60;
}

.turkey-status {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.turkey-status h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.status-display {
    text-align: center;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.status-icon {
    font-size: 1.5em;
}

.status-text {
    color: #2c3e50;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .right-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .word-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .turkey-body {
        font-size: 3em;
    }
}

