* {
    box-sizing: border-box;
    user-select: none;
}

body {
    background: linear-gradient(145deg, #f9e7b3 0%, #f5c28e 100%);
    font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    max-width: 1300px;
    width: 100%;
    background: #fffaf0;
    border-radius: 70px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    padding: 20px 25px 35px;
}

h1 {
    text-align: center;
    font-size: 2.8rem;
    color: #d64b2c;
    text-shadow: 4px 4px 0 #ffd966;
    margin: 0 0 5px;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    background: #fee3b8;
    display: inline-block;
    width: 100%;
    padding: 8px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #6b4c3b;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffc491;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 5px 0 #b4622a;
    font-family: inherit;
}

.tab-btn.active {
    background: #ff9f4a;
    color: white;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b4622a;
}

.tab-content {
    display: none;
    animation: fade 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: scale(0.98);}
    to { opacity: 1; transform: scale(1);}
}

.game-area, .associate-area {
    background: #fffaec;
    border-radius: 60px;
    padding: 20px;
    box-shadow: inset 0 0 0 3px white, 0 10px 20px rgba(0,0,0,0.1);
}

.image-card {
    background: #ffe1b3;
    border-radius: 55px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.word-emoji {
    font-size: 5rem;
    background: white;
    border-radius: 70px;
    padding: 15px 30px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.word-hint {
    font-size: 1.8rem;
    font-weight: bold;
    background: #fdf4dc;
    padding: 8px 20px;
    border-radius: 50px;
    color: #aa5e2b;
}

.dropzone-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 15px;
    background: #eeddbb;
    border-radius: 60px;
}

.dropzone {
    background: #fff4e0;
    width: 110px;
    height: 110px;
    border-radius: 35px;
    border: 4px dashed #d49c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    transition: all 0.1s;
}

.dropzone.filled {
    background: #cbe5b4;
    border: 4px solid #5f8b3c;
    color: #2f4d1c;
}

.syllables-pool {
    background: #f7e5cf;
    border-radius: 65px;
    padding: 20px;
    margin-top: 15px;
}

.syllables-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.syllable {
    background: #ffc576;
    font-size: 2rem;
    font-weight: bold;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 45px;
    box-shadow: 0 8px 0 #aa6d32;
    cursor: grab;
    transition: 0.05s;
}

.syllable:active { cursor: grabbing; }
.syllable.hidden-syllable { display: none; }

.btn {
    background: #ffad60;
    border: none;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 0 #b45a2a;
    transition: 0.05s linear;
    font-family: inherit;
}

.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b45a2a; }

.message {
    text-align: center;
    font-size: 1.4rem;
    background: #f3d382;
    margin-top: 20px;
    padding: 12px;
    border-radius: 40px;
    font-weight: bold;
}

/* Pestaña 2 */
.associate-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.drag-word-card {
    background: #9bc48a;
    font-size: 2.6rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 70px;
    box-shadow: 0 8px 0 #567a36;
    color: white;
    cursor: grab;
    text-align: center;
}

.current-word-label {
    background: #ffd89a;
    padding: 15px 30px;
    border-radius: 70px;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 6px 0 #bc7a3a;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.img-option {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3e0;
    border-radius: 50px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    width: 170px;
    box-shadow: 0 6px 0 #bb884c;
    transition: 0.1s;
}

.img-option:hover { transform: scale(1.02); background: #ffe1b0; }

.img-emoji { font-size: 5rem;font-size: 4rem; display: block; }
.img-text { font-size: 1.4rem; font-weight: bold; margin-top: 10px; background: #e1c394; border-radius: 40px; padding: 5px; }

footer { font-size: 0.8rem; text-align: center; margin-top: 30px; color: #a86f3c; }

@media (max-width: 700px) {
    .syllable, .dropzone { width: 75px; height: 75px; font-size: 1.5rem; }
    .drag-word-card { font-size: 1.8rem; padding: 10px 25px; }
    .current-word-label { font-size: 1.4rem; }
    .img-option { width: 130px; }
    .img-emoji { font-size: 3rem; }
}