* {
    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, #d2691e 0%, #cd853f 50%, #daa520 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: #d2691e;
    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: #d2691e;
    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: #b8860b;
    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, #fff8dc 0%, #ffe4b5 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 3px solid #d2691e;
}

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

.turkey-body {
    font-size: 4em;
    z-index: 10;
    position: relative;
}

.feathers-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.feather {
    font-size: 1.5em;
    animation: featherPop 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

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

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

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

.word-display {
    font-size: 3em;
    font-weight: bold;
    color: #d2691e;
    margin-bottom: 10px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.1em;
}

.word-hint {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
}

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

.spelling-area h2 {
    color: #d2691e;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.letter-buttons {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.letter-btn {
    padding: 12px 8px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #d2691e 0%, #cd853f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(210, 105, 30, 0.3);
}

.letter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(210, 105, 30, 0.4);
}

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

.letter-btn.used,
.letter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.spelling-display {
    background: white;
    border: 3px solid #d2691e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.spelling-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.spelling-word {
    font-size: 2em;
    font-weight: bold;
    color: #d2691e;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2em;
}

.spelling-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 10px 24px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #d2691e 0%, #cd853f 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(210, 105, 30, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.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: #d2691e;
    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: #d2691e;
    font-weight: bold;
    font-size: 1.1em;
}

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

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

.food-items {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.food-item {
    font-size: 3em;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 3px solid #d2691e;
    transition: all 0.3s ease;
    cursor: pointer;
}

.food-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.food-item.unlocked {
    animation: foodUnlock 0.5s ease;
    box-shadow: 0 4px 10px rgba(210, 105, 30, 0.3);
}

@keyframes foodUnlock {
    0% { transform: scale(0.5) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.food-progress {
    text-align: center;
}

.food-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.food-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d2691e 0%, #cd853f 100%);
    transition: width 0.5s ease;
    width: 0%;
}

.food-progress-text {
    color: #666;
    font-size: 0.9em;
    font-weight: bold;
}

.win-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    display: none;
    border: 4px solid #d2691e;
}

.win-message.show {
    display: block;
    animation: popIn 0.5s ease;
}

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

.win-message h2 {
    font-size: 2.5em;
    color: #d2691e;
    margin-bottom: 15px;
}

.win-message p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.win-message .btn-primary,
.win-message .btn-secondary {
    margin: 5px;
}

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

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

@media (max-width: 768px) {
    .letter-buttons {
        grid-template-columns: repeat(6, 1fr);
    }

    .word-display {
        font-size: 2em;
    }

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

