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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    min-height: 100vh;
    padding: 20px;
}

.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: #ff6b6b;
    font-size: 3em;
    text-shadow: 3px 3px 0px #ffd93d;
}

.btn-back {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Number Selection */
.number-selection {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 20px;
}

.number-selection h2 {
    color: #2d3561;
    font-size: 2em;
    margin-bottom: 20px;
}

.number-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-num {
    width: 70px;
    height: 70px;
    font-size: 2.5em;
    font-weight: bold;
    background: white;
    border: 4px solid #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-num:hover {
    transform: scale(1.1);
    border-color: #f093fb;
}

.btn-num.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f5576c;
    transform: scale(1.15);
}

/* Game Area */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.side-by-side {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Tree Section */
.tree-section {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
}

.tree-section h3 {
    text-align: center;
    color: #2d3561;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.tree-diagram {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.tree-top {
    text-align: center;
    margin-bottom: 20px;
}

.tree-number {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.total-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.part-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 80px;
    height: 80px;
    font-size: 2.5em;
}

.tree-candies {
    font-size: 1.5em;
    margin-top: 8px;
    min-height: 30px;
}

.tree-branches {
    position: relative;
    height: 100px;
}

.branch-lines {
    width: 100%;
    height: 100%;
}

.tree-bottom {
    display: flex;
    justify-content: space-around;
}

.tree-part {
    text-align: center;
}

/* Candy Interaction */
.candy-interaction {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
}

.candy-interaction h3 {
    text-align: center;
    color: #2d3561;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.candy-pool {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 15px;
    min-height: 100px;
    margin-bottom: 20px;
}

.candy {
    font-size: 3em;
    cursor: grab;
    transition: transform 0.2s;
    animation: wiggle 2s infinite;
}

.candy:hover {
    transform: scale(1.2);
}

.candy.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.boxes-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.candy-box {
    flex: 1;
    max-width: 200px;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.left-box {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.right-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.box-label {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.drop-zone {
    min-height: 120px;
    background: rgba(255,255,255,0.3);
    border: 4px dashed rgba(255,255,255,0.6);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-content: flex-start;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.candy-in-box {
    font-size: 2.5em;
    animation: popIn 0.4s ease-out;
}

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

.box-count {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Equation Section */
.equation-section {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.equation-display {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.equation-display span {
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.plus, .equals {
    font-size: 2.5em;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.btn-control {
    padding: 20px 50px;
    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-control:hover {
    transform: scale(1.05);
}

/* Discoveries */
.discoveries {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
}

.discoveries h3 {
    text-align: center;
    color: #2d3561;
    font-size: 2em;
    margin-bottom: 25px;
}

.discoveries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.discovery-card {
    padding: 20px;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: cardPop 0.5s ease-out;
}

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

.discovery-equation {
    font-size: 2em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 10px;
}

.discovery-visual {
    font-size: 1.5em;
}

/* Speech Bubble */
.speech-bubble {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 4px solid #ff6b6b;
    border-radius: 25px;
    padding: 20px 40px;
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
}

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

@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: 1024px) {
    .side-by-side {
        flex-direction: column;
    }
    
    .boxes-row {
        flex-direction: column;
        align-items: center;
    }
    
    .candy-box {
        width: 100%;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .btn-back {
        position: static;
        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 {
    min-height: 500px;
}

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

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

.score-display {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    margin-top: 10px;
}
/* Additional styles for Ajouter and Enlever activities */

.subtitle {
    text-align: center;
    font-size: 1.5em;
    color: #667eea;
    margin-bottom: 30px;
    font-weight: normal;
}

/* Addition Activity - Enhanced Visual Learning */
.addition-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.visual-problem {
    width: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    border: 4px solid #667eea;
}

.problem-text {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 30px;
}

.addition-visual {
    width: 100%;
}

.group-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.objects-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    border: 3px solid #667eea;
    min-width: 150px;
    position: relative;
}

.first-group {
    border-color: #4facfe;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
}

.second-group {
    border-color: #11998e;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f8f5 100%);
}

.total-group {
    border-color: #f093fb;
    background: linear-gradient(135deg, #fff8ff 0%, #fef5ff 100%);
    border-style: dashed;
}

.group-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d3561;
    text-align: center;
}

.objects-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 80px;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    align-items: center;
}

.object-item {
    font-size: 2.5em;
    animation: popIn 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.object-item.counting {
    animation: bounce 0.6s ease-in-out;
    transform: scale(1.3);
}

@keyframes bounce {
    0%, 100% { transform: scale(1.3) translateY(0); }
    50% { transform: scale(1.5) translateY(-10px); }
}

.count-bubble {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.plus-sign, .equals-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.big-plus, .big-equals {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.plus-label, .equals-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d3561;
}

.total-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 80px;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    align-items: center;
}

.answer-input {
    margin-top: 10px;
}

.answer-input input {
    width: 80px;
    height: 60px;
    font-size: 2.5em;
    text-align: center;
    border: 4px solid #f093fb;
    border-radius: 15px;
    font-weight: bold;
    color: #2d3561;
    background: white;
}

.answer-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Interactive Counting Buttons */
.counting-help {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-count {
    padding: 15px 25px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 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-count:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-count:active {
    transform: scale(0.95);
}

/* Answer Section */
.answer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #667eea;
}

.equation-display {
    font-size: 3em;
    font-weight: bold;
    color: #2d3561;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
    border-radius: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Visual Feedback */
.visual-feedback {
    min-height: 60px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #2d3561;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-feedback.success {
    color: #11998e;
}

.visual-feedback.error {
    color: #f5576c;
}

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

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

.btn-action {
    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);
}

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

/* Subtraction Activity */
.subtraction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.subtraction-problem {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    border: 4px solid #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .addition-problem,
    .subtraction-problem {
        flex-direction: column;
        gap: 20px;
    }
    
    .operator,
    .equals {
        font-size: 3em;
    }
    
    .number-display {
        font-size: 2em;
        padding: 10px 20px;
    }
    
    .answer-area input {
        width: 80px;
        height: 60px;
        font-size: 2em;
    }
}
/* Enhanced Subtraction Activity Styles */
.subtraction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.subtraction-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.subtraction-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #667eea;
}

.step-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.step-label {
    font-size: 1.4em;
    font-weight: bold;
    color: #2d3561;
    min-width: 150px;
    text-align: right;
}

.objects-display.crossed-out .object-item {
    position: relative;
    opacity: 0.6;
}

.objects-display.crossed-out .object-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #f5576c;
    transform: translateY(-50%) rotate(-15deg);
    border-radius: 2px;
}

.count-bubble.remove-count {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 100%);
}

.count-bubble.result {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: pulse 2s infinite;
}

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

.demonstration-area {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px dashed #667eea;
    text-align: center;
}

.demo-label {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3561;
    margin-bottom: 20px;
}

.demo-objects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

.demo-object {
    font-size: 2.5em;
    transition: all 0.3s;
}

.demo-object.crossed-out {
    opacity: 0.4;
    position: relative;
}

.demo-object.crossed-out::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #f5576c;
    transform: translateY(-50%) rotate(-15deg);
    border-radius: 3px;
    animation: strikeThrough 0.5s ease-out;
}

@keyframes strikeThrough {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.demo-object.removing {
    animation: shake 0.5s ease-in-out;
}

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

.demo-object.remaining-highlight {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
    padding: 5px;
    animation: glow 1s ease-in-out;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 rgba(17, 153, 142, 0.5); }
    50% { box-shadow: 0 0 20px rgba(17, 153, 142, 0.8); }
}

.btn-demo {
    padding: 15px 30px;
    font-size: 1.4em;
    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-demo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.answer-input-area {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.answer-input-area input {
    width: 100px;
    height: 70px;
    font-size: 2.5em;
    text-align: center;
    border: 4px solid #667eea;
    border-radius: 15px;
    font-weight: bold;
    color: #2d3561;
    background: white;
}

.answer-input-area input:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.3);
}

/* Responsive for subtraction */
@media (max-width: 768px) {
    .step-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-label {
        min-width: auto;
        text-align: center;
    }
    
    .demo-objects {
        gap: 8px;
    }
    
    .demo-object {
        font-size: 2em;
    }
    
    .answer-input-area {
        flex-direction: column;
        gap: 20px;
    }
}
/* Histoires de calcul Activity Styles */
.story-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.story-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #2d3561;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 6px solid #667eea;
}

.btn-listen {
    padding: 15px 30px;
    font-size: 1.4em;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 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-listen:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.story-visual {
    width: 100%;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #667eea;
}

.story-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.character {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    border: 3px solid #4facfe;
}

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

.character-avatar {
    font-size: 4em;
}

.story-objects {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.story-objects .objects-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    border: 3px solid #667eea;
    min-width: 150px;
}

.story-objects .objects-group.result-group {
    border-color: #11998e;
    border-style: dashed;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f8f5 100%);
}

.story-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

.action-symbol {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d3561;
    text-align: center;
}

.story-equals {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    padding: 10px;
}

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

/* Responsive for story activity */
@media (max-width: 768px) {
    .story-objects {
        flex-direction: column;
        gap: 15px;
    }
    
    .story-text {
        font-size: 1.5em;
    }
    
    .character-avatar {
        font-size: 3em;
    }
    
    .action-symbol {
        font-size: 2.5em;
        width: 50px;
        height: 50px;
    }
    
    .story-controls {
        flex-direction: column;
        align-items: center;
    }
}