.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: #667eea;
    font-size: 3em;
    text-shadow: 3px 3px 0px #ffd93d;
}

.score-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    margin-top: 10px;
}

/* Activity Selector */
.activity-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.activity-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: white;
    color: #667eea;
    border: 3px solid #667eea;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.activity-btn:hover {
    transform: scale(1.05);
}

.activity-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

/* Activity Content */
.activity-content {
    min-height: 500px;
}

.activity-content.hidden {
    display: none;
}

.activity-content h2 {
    text-align: center;
    color: #2d3561;
    font-size: 2.2em;
    margin-bottom: 30px;
}

/* Activity 1: Count */
.objects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    min-height: 300px;
    margin-bottom: 30px;
}

.object-item {
    font-size: 3em;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Activity 1b: Tens and Units */
.tens-units-area {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.objects-pool-section {
    flex: 1;
}

.objects-pool-section h3 {
    color: #2d3561;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.loose-objects {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: flex-start;
}

.draggable-star {
    font-size: 2.5em;
    cursor: grab;
    transition: transform 0.2s;
    user-select: none;
}

.draggable-star:hover {
    transform: scale(1.2);
}

.draggable-star.dragging {
    opacity: 0.5;
}

.grouping-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tens-section h3,
.units-section h3 {
    color: #2d3561;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.tens-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.ten-box {
    width: 120px;
    height: 150px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-content: flex-start;
    position: relative;
    transition: all 0.3s;
}

.ten-box.drag-over {
    background: #e8f4f8;
    border-color: #f093fb;
    transform: scale(1.05);
}

.ten-box.full {
    background: linear-gradient(135deg, #d4f1f4 0%, #e8f8f5 100%);
    border-color: #11998e;
}

.ten-box .star-in-box {
    font-size: 1.5em;
}

.ten-box-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9em;
    font-weight: bold;
    color: #667eea;
}

.units-box {
    background: white;
    border: 4px dashed #f093fb;
    border-radius: 15px;
    padding: 20px;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: flex-start;
    transition: all 0.3s;
}

.units-box.drag-over {
    background: #fef5ff;
    border-color: #f5576c;
    transform: scale(1.02);
}

.units-box .star-in-box {
    font-size: 2em;
}

.answer-display {
    text-align: center;
    margin-top: 30px;
}

.answer-equation {
    font-size: 2.5em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 20px;
}

.answer-equation span {
    color: #667eea;
}

.answer-section {
    text-align: center;
}

.answer-section h3 {
    color: #2d3561;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.number-input-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.num-btn {
    width: 60px;
    height: 60px;
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.num-btn:hover {
    transform: scale(1.1);
}

#count-input {
    width: 150px;
    height: 80px;
    font-size: 3em;
    text-align: center;
    border: 4px solid #667eea;
    border-radius: 15px;
    font-weight: bold;
    color: #2d3561;
}

.btn-verify {
    padding: 20px 60px;
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-verify:hover {
    transform: scale(1.05);
}

/* Activity 2: Recognize */
.audio-prompt {
    text-align: center;
    margin-bottom: 40px;
}

.btn-listen {
    padding: 20px 50px;
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.btn-listen:hover {
    transform: scale(1.05);
}

.number-display-large {
    font-size: 6em;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.number-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.choice-btn {
    width: 120px;
    height: 120px;
    padding: 0;
    font-size: 3em;
    font-weight: bold;
    background: white;
    color: #2d3561;
    border: 4px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.choice-btn:hover {
    transform: scale(1.1);
    background: #f8f9fa;
}

.choice-btn.correct {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-color: #11998e;
}

.choice-btn.incorrect {
    background: #ffcccc;
    border-color: #ff6b6b;
}

/* Activity 3: Quantity */
.target-number {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #2d3561;
}

.big-number {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    margin: 0 15px;
}

.drag-area {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.objects-pool {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: flex-start;
}

.draggable-object {
    font-size: 3em;
    cursor: grab;
    transition: transform 0.2s;
}

.draggable-object:hover {
    transform: scale(1.2);
}

.draggable-object.dragging {
    opacity: 0.5;
}

.drop-zone {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    background: white;
    border: 5px dashed #667eea;
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: flex-start;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: #e8f4f8;
    border-color: #f093fb;
    transform: scale(1.02);
}

.drop-zone p {
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 1.5em;
    margin-top: 100px;
}

.drop-zone.has-items p {
    display: none;
}

.current-count {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #2d3561;
}

/* Activity 4: Compare */
.comparison-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.character-box {
    flex: 1;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.character-box img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.character-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    margin: 10px 0;
}

.candies-display {
    min-height: 150px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin: 15px 0;
}

.candy-item {
    font-size: 2em;
}

.candy-count {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.comparison-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compare-btn {
    padding: 20px 40px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.compare-btn .symbol {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

.compare-btn .label {
    font-size: 1em;
}

.compare-btn:hover {
    transform: scale(1.05);
}

.btn-next {
    display: block;
    margin: 30px auto;
    padding: 20px 60px;
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-next:hover {
    transform: scale(1.05);
}

/* Feedback */
.feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 4px solid #667eea;
    border-radius: 25px;
    padding: 20px 40px;
    font-size: 1.8em;
    font-weight: bold;
    color: #2d3561;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
}

.feedback.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.feedback.success {
    border-color: #11998e;
    background: linear-gradient(135deg, #d4f1f4 0%, #e8f8f5 100%);
}

.feedback.error {
    border-color: #f5576c;
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd4d4 100%);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Celebration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    font-size: 2em;
    animation: fall 3s linear;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .activity-selector {
        flex-direction: column;
    }
    
    .comparison-area {
        flex-direction: column;
    }
    
    .drag-area {
        flex-direction: column;
    }
    
    .objects-pool, .drop-zone {
        max-width: 100%;
    }
}

/* Mode Selection */
.number-choice {
    margin-bottom: 30px;
}

.choice-mode {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mode-btn {
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: white;
    color: #667eea;
    border: 3px solid #667eea;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn:hover {
    transform: scale(1.05);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.manual-input {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.manual-input.hidden {
    display: none;
}

.manual-input label {
    font-size: 1.3em;
    font-weight: bold;
    color: #2d3561;
    margin-right: 15px;
}

.manual-input input {
    width: 120px;
    height: 60px;
    font-size: 2em;
    text-align: center;
    border: 3px solid #667eea;
    border-radius: 10px;
    margin-right: 15px;
}

.btn-start {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-start:hover {
    transform: scale(1.05);
}
/* Ranger les nombres Activity Styles */
.ordering-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.ordering-instructions {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #667eea;
    text-align: center;
    width: 100%;
}

.instruction-text {
    font-size: 1.6em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 15px;
    line-height: 1.3;
}

.btn-listen {
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-listen:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.numbers-pool {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #4facfe;
    width: 100%;
    text-align: center;
}

.numbers-pool h3 {
    color: #2d3561;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.draggable-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 80px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    border: 2px dashed #4facfe;
}

.draggable-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    user-select: none;
}

.draggable-number:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.draggable-number.selected {
    transform: scale(1.15);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.6);
    animation: pulse 1s infinite;
}

.draggable-number.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(5deg);
}

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

.ordering-zones {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #11998e;
    width: 100%;
    text-align: center;
}

.ordering-zones h3 {
    color: #2d3561;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.drop-zones {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 100px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px dashed #11998e;
}

.drop-zone {
    width: 70px;
    height: 70px;
    background: rgba(17, 153, 142, 0.1);
    border: 3px dashed #11998e;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #11998e;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone.available {
    background: rgba(17, 153, 142, 0.2);
    border-style: solid;
    animation: bounce 1s infinite;
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.4);
}

.drop-zone.drag-over {
    background: rgba(17, 153, 142, 0.3);
    border-style: solid;
    transform: scale(1.1);
}

.drop-zone.filled {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-style: solid;
    border-color: #11998e;
    cursor: default;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.ordering-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-verify {
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-action {
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Bonus Questions */
.number-questions {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #f093fb;
    width: 100%;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

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

.number-questions h3 {
    color: #2d3561;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #f093fb;
}

.question-choices {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.choice-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.choice-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.choice-btn.correct {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: correctAnswer 0.6s ease-out;
}

.choice-btn.incorrect {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 100%);
    animation: shake 0.5s ease-in-out;
}

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

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

/* Responsive design for ordering activity */
@media (max-width: 768px) {
    .draggable-numbers,
    .drop-zones {
        gap: 10px;
    }
    
    .draggable-number,
    .drop-zone {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
    
    .instruction-text {
        font-size: 1.4em;
    }
    
    .question-text {
        font-size: 1.3em;
    }
    
    .choice-btn {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
    
    .ordering-controls {
        flex-direction: column;
        align-items: center;
    }
}