/* TUTORIAL CANDY THEME - Matching the game's playful design */

/* Tutorial overlay */
.tutorial-overlay,
.overlay-menu.tutorial {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

/* Tutorial content - matching game's container style */
.tutorial-content,
.overlay-menu-content.tutorial-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 25px rgba(74, 60, 125, 0.25),
                0 4px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 30px !important;
    max-width: 600px !important;
    width: 100% !important;
    margin: auto !important;
    position: relative !important;
    overflow: visible !important;
    color: #4A3C7D !important;
    font-family: 'Quicksand', sans-serif !important;
}

/* Main title */
.tutorial-content h2:first-of-type {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.5em !important;
    color: #4A3C7D !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    text-shadow: 2px 2px 0px rgba(255, 199, 95, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* Step headers */
.tutorial-content h3 {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.6em !important;
    color: #8B7FD8 !important;
    margin: 25px 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Step numbers with candy colors */
.tutorial-content h3::before {
    content: attr(data-step) !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3) !important;
}

/* Paragraphs */
.tutorial-content p {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    color: #6B5B95 !important;
    line-height: 1.6 !important;
    margin: 15px 0 !important;
    font-size: 1.05em !important;
}

/* Example box with candy styling */
.tutorial-content .example-box,
.tutorial-content p:has(strong:contains("Beispiel")) {
    background: linear-gradient(135deg, #FFD89B 0%, #F5A09E 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    color: #4A3C7D !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 199, 95, 0.2) !important;
}

/* Points section */
.tutorial-content .points-section,
.tutorial-content div:has(p:contains("Punkt")) {
    background: rgba(139, 127, 216, 0.1) !important;
    border: 2px solid #8B7FD8 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

/* In-Spieler styling */
.tutorial-content .in-player,
.tutorial-content p:contains("In-Spieler") {
    background: linear-gradient(135deg, #4ECDC4 0%, #7DD3C0 100%) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 15px !important;
    margin: 10px 0 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3) !important;
}

/* Out-Spieler styling */
.tutorial-content .out-player,
.tutorial-content p:contains("Out-Spieler") {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF9B9D 100%) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 15px !important;
    margin: 10px 0 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3) !important;
}

/* Bonus styling */
.tutorial-content p:contains("Bonus") {
    background: linear-gradient(135deg, #FFC75F 0%, #FFB700 100%) !important;
    color: #4A3C7D !important;
    padding: 12px 20px !important;
    border-radius: 15px !important;
    margin: 10px 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 199, 95, 0.3) !important;
}

/* Play button */
.tutorial-content button:contains("Jetzt spielen"),
.play-button {
    background: linear-gradient(135deg, #FFC75F 0%, #FFB700 100%) !important;
    color: #4A3C7D !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;
    padding: 14px 40px !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    font-family: 'Quicksand', sans-serif !important;
    box-shadow: 0 6px 20px rgba(255, 199, 95, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    margin: 20px auto !important;
    display: block !important;
}

.tutorial-content button:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(255, 199, 95, 0.4) !important;
}

/* Close button */
.tutorial-close,
.tutorial-content .close-button,
.tutorial-overlay .overlay-close {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%) !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.tutorial-close:hover {
    transform: scale(1.1) rotate(90deg) !important;
    background: linear-gradient(135deg, #C44569 0%, #FF6B9D 100%) !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .tutorial-content {
        padding: 20px !important;
        margin: 10px !important;
    }
    
    .tutorial-content h2:first-of-type {
        font-size: 2em !important;
    }
    
    .tutorial-content h3 {
        font-size: 1.3em !important;
    }
    
    .tutorial-content p {
        font-size: 0.95em !important;
    }
}

/* Remove all emojis */
.tutorial-content *::before:contains("🎮"),
.tutorial-content *::before:contains("📱"),
.tutorial-content *::before:contains("🎯"),
.tutorial-content *::before:contains("💬"),
.tutorial-content *::before:contains("🗳️"),
.tutorial-content *::before:contains("🏆"),
.tutorial-content *::before:contains("✅"),
.tutorial-content *::before:contains("❌") {
    content: '' !important;
}

/* Icons with check marks */
.tutorial-content .in-player::before,
.tutorial-content p:contains("In-Spieler")::before {
    content: '✓' !important;
    font-size: 1.2em !important;
    margin-right: 5px !important;
}

.tutorial-content .out-player::before,
.tutorial-content p:contains("Out-Spieler")::before {
    content: '✗' !important;
    font-size: 1.2em !important;
    margin-right: 5px !important;
}