.mascot {
    position: relative;
    width: 50px;
    height: 50px;
}

.mascot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.mascot::after {
    content: '🐻';
    position: absolute;
    font-size: 30px;
    top: 10px;
    left: 10px;
}

.mascot-large {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.mascot-large::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    border-radius: 50%;
    top: 15px;
    left: 15px;
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.mascot-large::after {
    content: '🐻';
    position: absolute;
    font-size: 80px;
    top: 35px;
    left: 35px;
}

.character {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.character:hover {
    transform: scale(1.1);
}

.rabbit {
    width: 60px;
    height: 80px;
}

.rabbit::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #FFB6C1;
    border-radius: 50%;
    top: 20px;
    left: 5px;
}

.rabbit::after {
    content: '🐰';
    position: absolute;
    font-size: 40px;
    top: 25px;
    left: 10px;
}

.bear {
    width: 60px;
    height: 60px;
}

.bear::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #D2691E;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.bear::after {
    content: '🐻';
    position: absolute;
    font-size: 35px;
    top: 10px;
    left: 10px;
}

.cat {
    width: 60px;
    height: 60px;
}

.cat::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #FFA500;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.cat::after {
    content: '🐱';
    position: absolute;
    font-size: 35px;
    top: 10px;
    left: 10px;
}

.dog {
    width: 60px;
    height: 60px;
}

.dog::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #DEB887;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.dog::after {
    content: '🐶';
    position: absolute;
    font-size: 35px;
    top: 10px;
    left: 10px;
}

.monkey {
    width: 60px;
    height: 60px;
}

.monkey::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #8B4513;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.monkey::after {
    content: '🐵';
    position: absolute;
    font-size: 35px;
    top: 10px;
    left: 10px;
}

.tiger {
    width: 60px;
    height: 60px;
}

.tiger::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #FF8C00;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.tiger::after {
    content: '🐯';
    position: absolute;
    font-size: 35px;
    top: 10px;
    left: 10px;
}

.elephant {
    width: 70px;
    height: 70px;
}

.elephant::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: #A0A0A0;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.elephant::after {
    content: '🐘';
    position: absolute;
    font-size: 40px;
    top: 10px;
    left: 15px;
}

.lion {
    width: 70px;
    height: 70px;
}

.lion::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: #DAA520;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}

.lion::after {
    content: '🦁';
    position: absolute;
    font-size: 40px;
    top: 10px;
    left: 15px;
}

.character-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.character-large {
    transform: scale(1.5);
}

.character-small {
    transform: scale(0.8);
}

.character-talking {
    animation: talking 0.5s ease infinite;
}

@keyframes talking {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.character-walking {
    animation: walking 0.6s ease infinite;
}

@keyframes walking {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.character-happy {
    animation: happy 0.8s ease infinite;
}

@keyframes happy {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.character-sad {
    filter: grayscale(50%);
    animation: sad 1s ease infinite;
}

@keyframes sad {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

.character-thinking {
    animation: thinking 1s ease infinite;
}

@keyframes thinking {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

.speech-bubble {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 300px;
    box-shadow: var(--shadow);
    margin: 1rem;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--white) transparent;
}

.speech-bubble-right::after {
    left: auto;
    right: 30px;
}

.character-with-speech {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
}

.character-with-speech.reverse {
    flex-direction: row-reverse;
}

.scene-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.stairs-illustration {
    position: relative;
    width: 200px;
    height: 150px;
}

.stair {
    position: absolute;
    background: #8B4513;
    border: 2px solid #654321;
}

.stair-1 {
    width: 180px;
    height: 20px;
    bottom: 0;
    left: 10px;
}

.stair-2 {
    width: 140px;
    height: 20px;
    bottom: 30px;
    left: 30px;
}

.stair-3 {
    width: 100px;
    height: 20px;
    bottom: 60px;
    left: 50px;
}

.stair-4 {
    width: 60px;
    height: 20px;
    bottom: 90px;
    left: 70px;
}

.handrail {
    position: absolute;
    width: 4px;
    height: 130px;
    background: #333;
    left: 5px;
    bottom: 0;
}

.handrail::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: #333;
    top: 0;
    left: 0;
}

.crowd-scene {
    position: relative;
    width: 300px;
    height: 200px;
    background: #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.crowd-person {
    position: absolute;
    font-size: 30px;
    animation: crowdMove 2s ease infinite;
}

@keyframes crowdMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.protect-pose {
    position: relative;
    width: 100px;
    height: 150px;
}

.protect-pose::before {
    content: '🙆';
    position: absolute;
    font-size: 80px;
    top: 20px;
    left: 10px;
}

.danger-pose {
    position: relative;
    width: 100px;
    height: 150px;
}

.danger-pose::before {
    content: '🙅';
    position: absolute;
    font-size: 80px;
    top: 20px;
    left: 10px;
}

@media (max-width: 768px) {
    .character-group {
        gap: 0.5rem;
    }
    
    .scene-illustration {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stairs-illustration {
        width: 150px;
        height: 120px;
    }
    
    .crowd-scene {
        width: 250px;
        height: 150px;
    }
}

.stairs-scene-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.stairs-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stairs-behavior {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 280px;
}

.stairs-behavior h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

.stairs-behavior.correct h4 {
    color: #4CAF50;
}

.stairs-behavior.incorrect h4 {
    color: #f44336;
}

.stairs-visual {
    position: relative;
    width: 250px;
    height: 200px;
    margin: 0 auto 1rem;
}

.stairs-svg {
    width: 100%;
    height: 100%;
}

.character-on-stairs {
    position: absolute;
    font-size: 40px;
    transition: all 0.5s ease;
}

.character-on-stairs.rabbit {
    animation: rabbitWalk 1s ease-in-out infinite;
}

.character-on-stairs.bear {
    animation: bearWalk 1.2s ease-in-out infinite;
}

@keyframes rabbitWalk {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes bearWalk {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.stairs-behavior-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.stairs-behavior-label.correct {
    color: #4CAF50;
    font-weight: bold;
}

.stairs-behavior-label.incorrect {
    color: #f44336;
    font-weight: bold;
}

.hand-holding {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stairs-behavior.correct .hand-holding {
    opacity: 1;
}

.wrong-behavior-indicator {
    position: absolute;
    font-size: 30px;
    color: #f44336;
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.stairs-action-icon {
    position: absolute;
    font-size: 25px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scene-visual-question {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 1rem 0;
}

.visual-question-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.visual-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.visual-choice {
    background: white;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visual-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.visual-choice:hover::before {
    left: 100%;
}

.visual-choice:hover {
    border-color: #4CAF50;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.visual-choice:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.visual-choice.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.visual-choice.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    animation: correctPulse 0.6s ease;
}

.visual-choice.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    animation: incorrectShake 0.6s ease;
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

.visual-choice-icon {
    font-size: 55px;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.visual-choice:hover .visual-choice-icon {
    transform: scale(1.2) rotate(5deg);
}

.visual-choice-text {
    font-size: 1.05rem;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.stairs-animation-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #8B4513 60%, #8B4513 100%);
    border-radius: 15px;
}

.stair-step {
    position: absolute;
    background: #A0522D;
    border: 2px solid #654321;
    border-radius: 5px;
}

.stair-rail {
    position: absolute;
    background: #333;
    border-radius: 3px;
}

.animated-character {
    position: absolute;
    font-size: 45px;
    transition: all 0.8s ease;
}

.character-climbing {
    animation: climb 2s ease-in-out infinite;
}

@keyframes climb {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(30px);
    }
    50% {
        transform: translateY(-40px) translateX(60px);
    }
    75% {
        transform: translateY(-60px) translateX(90px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.character-falling {
    animation: fall 1s ease-in-out infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(150px) rotate(360deg);
    }
}

.character-running {
    animation: run 0.5s ease-in-out infinite;
}

@keyframes run {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

.safety-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.danger-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.behavior-description {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 768px) {
    .stairs-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stairs-behavior {
        min-width: 100%;
    }
    
    .stairs-visual {
        width: 200px;
        height: 160px;
    }
    
    .visual-choices {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .visual-choice {
        min-width: 100%;
        padding: 1.2rem 1rem;
    }
    
    .visual-choice-icon {
        font-size: 45px;
    }
    
    .visual-choice-text {
        font-size: 0.95rem;
    }
    
    .visual-choice:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .visual-choice:active {
        transform: translateY(-2px) scale(1.01);
    }
}

.stairs-direction-scene {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stairs-direction-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.stairs-direction-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.stairs-direction-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 50%, #8B4513 50%, #8B4513 100%);
    border-radius: 15px;
    overflow: hidden;
}

.stairs-direction-svg {
    width: 100%;
    height: 100%;
}

.direction-indicator {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

.direction-indicator.left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

.direction-indicator.right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
}

.direction-arrow {
    font-size: 1.5rem;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.direction-indicator.right .direction-arrow {
    color: #4CAF50;
}

.direction-indicator.left .direction-arrow {
    color: #f44336;
}

.stairs-character {
    position: absolute;
    font-size: 45px;
    transition: all 0.8s ease;
    z-index: 5;
}

.stairs-character.cat {
    animation: catWalk 2s ease-in-out infinite;
}

.stairs-character.dog {
    animation: dogWalk 2.5s ease-in-out infinite;
}

@keyframes catWalk {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(3deg);
    }
    75% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

@keyframes dogWalk {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.correct-side-highlight {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(76, 175, 80, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.incorrect-side-highlight {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(-90deg, transparent 0%, rgba(244, 67, 54, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.safety-tips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.safety-tip {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.safety-tip-icon {
    font-size: 1.2rem;
}

.stairs-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-color.correct {
    background: #4CAF50;
    border-color: #2e7d32;
}

.legend-color.incorrect {
    background: #f44336;
    border-color: #c62828;
}

.stairs-animation-character {
    position: absolute;
    font-size: 50px;
    transition: all 1s ease;
}

.character-walking-right {
    animation: walkRight 3s ease-in-out infinite;
}

.character-walking-left {
    animation: walkLeft 3s ease-in-out infinite;
}

@keyframes walkRight {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(-30px);
    }
    50% {
        transform: translateX(100px) translateY(-60px);
    }
    75% {
        transform: translateX(150px) translateY(-90px);
    }
    100% {
        transform: translateX(200px) translateY(-120px);
    }
}

@keyframes walkLeft {
    0% {
        transform: translateX(0) translateY(-120px);
    }
    25% {
        transform: translateX(-50px) translateY(-90px);
    }
    50% {
        transform: translateX(-100px) translateY(-60px);
    }
    75% {
        transform: translateX(-150px) translateY(-30px);
    }
    100% {
        transform: translateX(-200px) translateY(0);
    }
}

.stairs-step-mark {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

.stairs-direction-choice {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.direction-choice-btn {
    background: white;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.direction-choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.direction-choice-btn:hover::before {
    left: 100%;
}

.direction-choice-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.direction-choice-btn:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.direction-choice-btn.left-choice:hover {
    border-color: #f44336;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

.direction-choice-btn.right-choice:hover {
    border-color: #4CAF50;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.direction-choice-btn.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.direction-choice-btn.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    animation: correctPulse 0.6s ease;
}

.direction-choice-btn.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    animation: incorrectShake 0.6s ease;
}

.direction-choice-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.direction-choice-btn:hover .direction-choice-icon {
    transform: scale(1.2) rotate(10deg);
}

.stairs-floor-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.stairs-top-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .stairs-direction-visual {
        height: 250px;
    }
    
    .stairs-character {
        font-size: 35px;
    }
    
    .direction-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .direction-arrow {
        font-size: 1.2rem;
    }
    
    .stairs-direction-choice {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .direction-choice-btn {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 1.5rem;
    }
    
    .direction-choice-icon {
        font-size: 1.5rem;
    }
    
    .direction-choice-btn:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .direction-choice-btn:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    .stairs-legend {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

.playing-scene-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.playing-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.playing-behavior {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 280px;
    position: relative;
}

.playing-behavior h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

.playing-behavior.correct h4 {
    color: #4CAF50;
}

.playing-behavior.incorrect h4 {
    color: #f44336;
}

.playing-visual {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 0 auto 1rem;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 50%, #A0522D 50%, #A0522D 100%);
    border-radius: 10px;
    overflow: hidden;
}

.playing-stairs-svg {
    width: 100%;
    height: 100%;
}

.playing-character {
    position: absolute;
    font-size: 45px;
    transition: all 0.5s ease;
}

.playing-character.monkey {
    animation: monkeyPlay 1s ease-in-out infinite;
}

.playing-character.tiger {
    animation: tigerPlay 1.2s ease-in-out infinite;
}

@keyframes monkeyPlay {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(5deg);
    }
    75% {
        transform: translateY(-8px) rotate(-5deg);
    }
}

@keyframes tigerPlay {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.playing-character.walking-quietly {
    animation: walkQuietly 2s ease-in-out infinite;
}

@keyframes walkQuietly {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-3px) translateX(5px);
    }
    75% {
        transform: translateY(-3px) translateX(-5px);
    }
}

.playing-character.pushing {
    animation: pushing 0.8s ease-in-out infinite;
}

@keyframes pushing {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(15px) rotate(10deg);
    }
    75% {
        transform: translateX(-5px) rotate(-5deg);
    }
}

.playing-character.chasing {
    animation: chasing 0.6s ease-in-out infinite;
}

@keyframes chasing {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(25px);
    }
}

.playing-character.falling {
    animation: fallingDown 1s ease-in-out infinite;
}

@keyframes fallingDown {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(120px) rotate(180deg);
    }
}

.playing-behavior-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.playing-behavior-label.correct {
    color: #4CAF50;
    font-weight: bold;
}

.playing-behavior-label.incorrect {
    color: #f44336;
    font-weight: bold;
}

.danger-sign {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    animation: dangerPulse 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes dangerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.warning-icon {
    position: absolute;
    font-size: 30px;
    color: #f44336;
    animation: shakeWarning 0.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes shakeWarning {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-8px) rotate(-10deg);
    }
    75% {
        transform: translateX(8px) rotate(10deg);
    }
}

.safety-badge-play {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    z-index: 10;
}

.danger-badge-play {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
    z-index: 10;
}

.action-lines {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px dashed #FFA500;
    border-radius: 50%;
    animation: actionLines 1s linear infinite;
    opacity: 0.7;
}

@keyframes actionLines {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

.playing-description {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #555;
}

.playing-description.correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.playing-description.incorrect {
    background: #ffebee;
    color: #c62828;
}

.playing-question-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 1rem 0;
}

.playing-question-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.playing-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.playing-choice {
    background: white;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.playing-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.playing-choice:hover::before {
    left: 100%;
}

.playing-choice:hover {
    border-color: #4CAF50;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.playing-choice:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.playing-choice.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.playing-choice.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    animation: correctPulse 0.6s ease;
}

.playing-choice.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    animation: incorrectShake 0.6s ease;
}

.playing-choice-icon {
    font-size: 55px;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.playing-choice:hover .playing-choice-icon {
    transform: scale(1.2) rotate(5deg);
}

.playing-choice-text {
    font-size: 1.05rem;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.stair-step-playing {
    position: absolute;
    background: #A0522D;
    border: 2px solid #654321;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .playing-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .playing-behavior {
        min-width: 100%;
    }
    
    .playing-visual {
        width: 250px;
        height: 200px;
    }
    
    .playing-character {
        font-size: 35px;
    }
    
    .playing-choices {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .playing-choice {
        min-width: 100%;
        padding: 1.2rem 1rem;
    }
    
    .playing-choice-icon {
        font-size: 45px;
    }
    
    .playing-choice-text {
        font-size: 0.95rem;
    }
    
    .playing-choice:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .playing-choice:active {
        transform: translateY(-2px) scale(1.01);
    }
}

.crowd-scene-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.crowd-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.crowd-behavior {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 280px;
    position: relative;
}

.crowd-behavior h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

.crowd-behavior.correct h4 {
    color: #4CAF50;
}

.crowd-behavior.incorrect h4 {
    color: #f44336;
}

.crowd-visual {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 0 auto 1rem;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 30%, #e0e0e0 30%, #e0e0e0 100%);
    border-radius: 10px;
    overflow: hidden;
}

.crowd-svg {
    width: 100%;
    height: 100%;
}

.crowd-character {
    position: absolute;
    font-size: 35px;
    transition: all 0.5s ease;
}

.crowd-character.elephant {
    animation: elephantProtect 2s ease-in-out infinite;
}

.crowd-character.lion {
    animation: lionProtect 2.2s ease-in-out infinite;
}

@keyframes elephantProtect {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(2deg);
    }
    75% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

@keyframes lionProtect {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.crowd-character.protecting {
    animation: protectPose 1.5s ease-in-out infinite;
}

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

.crowd-character.dangerous {
    animation: dangerPose 0.8s ease-in-out infinite;
}

@keyframes dangerPose {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.crowd-behavior-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.crowd-behavior-label.correct {
    color: #4CAF50;
    font-weight: bold;
}

.crowd-behavior-label.incorrect {
    color: #f44336;
    font-weight: bold;
}

.crowd-person-icon {
    position: absolute;
    font-size: 25px;
    opacity: 0.6;
}

.crowd-person-icon.moving {
    animation: personMove 2s ease-in-out infinite;
}

@keyframes personMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

.protect-arms {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crowd-behavior.correct .protect-arms {
    opacity: 1;
}

.danger-indicator {
    position: absolute;
    font-size: 25px;
    color: #f44336;
    animation: shake 0.5s ease infinite;
}

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

.crowd-description {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #555;
}

.crowd-description.correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.crowd-description.incorrect {
    background: #ffebee;
    color: #c62828;
}

.crowd-question-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 1rem 0;
}

.crowd-question-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.crowd-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.crowd-choice {
    background: white;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crowd-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.crowd-choice:hover::before {
    left: 100%;
}

.crowd-choice:hover {
    border-color: #4CAF50;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.crowd-choice:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.crowd-choice.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.crowd-choice.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    animation: correctPulse 0.6s ease;
}

.crowd-choice.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    animation: incorrectShake 0.6s ease;
}

.crowd-choice-icon {
    font-size: 55px;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.crowd-choice:hover .crowd-choice-icon {
    transform: scale(1.2) rotate(5deg);
}

.crowd-choice-text {
    font-size: 1.05rem;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.crowd-scene-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.crowd-scene-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.crowd-visual-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 30%, #e0e0e0 30%, #e0e0e0 100%);
    border-radius: 15px;
    overflow: hidden;
}

.crowd-visual-svg {
    width: 100%;
    height: 100%;
}

.crowd-main-character {
    position: absolute;
    font-size: 50px;
    transition: all 0.8s ease;
    z-index: 5;
}

.crowd-main-character.elephant {
    animation: elephantCrowd 2s ease-in-out infinite;
}

.crowd-main-character.lion {
    animation: lionCrowd 2.5s ease-in-out infinite;
}

@keyframes elephantCrowd {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes lionCrowd {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.crowd-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.crowd-badge.safety {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.crowd-badge.danger {
    background: #f44336;
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.protect-arms-animation {
    position: absolute;
    font-size: 30px;
    animation: armsProtect 1s ease-in-out infinite;
    z-index: 6;
}

@keyframes armsProtect {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.danger-arrow {
    position: absolute;
    font-size: 25px;
    color: #f44336;
    animation: arrowShake 0.6s ease-in-out infinite;
    z-index: 6;
}

@keyframes arrowShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.crowd-tips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.crowd-tip {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.crowd-tip-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .crowd-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .crowd-behavior {
        min-width: 100%;
    }
    
    .crowd-visual {
        width: 250px;
        height: 200px;
    }
    
    .crowd-character {
        font-size: 30px;
    }
    
    .crowd-choices {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .crowd-choice {
        min-width: 100%;
        padding: 1.2rem 1rem;
    }
    
    .crowd-choice-icon {
        font-size: 45px;
    }
    
    .crowd-choice-text {
        font-size: 0.95rem;
    }
    
    .crowd-choice:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .crowd-choice:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    .crowd-visual-container {
        height: 250px;
    }
    
    .crowd-main-character {
        font-size: 40px;
    }
}
}