:root {
    --primary: #8e44ad;
    --primary-light: #00cec9;
    --secondary: #9b59b6;
    --accent: #fdcb6e;
    --dark: #f0f3f5;
    --light: #ffffff;
    --text-main: #2c3e50;
    --text-light: #576574;
    --white: #FFFFFF;
    --success: #2ecc71;
    --warning: #f39c12;

    --shadow: 4px 4px 15px rgba(142, 68, 173, 0.2);
    --shadow-hover: 4px 4px 25px rgba(0, 206, 201, 0.4);
    --radius: 20px;

    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Orbitron', 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ar);
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(142, 68, 173, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(253, 203, 110, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(245, 247, 250, 0.95), rgba(228, 233, 237, 0.95));
    background-attachment: fixed;
    min-height: 100vh;
}

/* Typography */
.en-text {
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
    font-size: 0.9em;
    color: var(--accent);
}

/* Header */
.app-header {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(142, 68, 173, 0.08);
    position: sticky;
    top: 15px;
    width: 95%;
    margin: 15px auto;
    z-index: 100;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-ar);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
    font-weight: 800;
    margin-right: 6px;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-btn,
.back-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary) !important;
    padding: 0.5rem 1.4rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(142, 68, 173, 0.05);
    font-family: var(--font-ar);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home-btn:hover,
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.15);
    background: var(--white);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.view.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* View Header */
.view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    border-radius: 20px;
    border: 2px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
}

.view-header h2 {
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: none;
}

/* Titles */
.main-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-shadow: none;
    font-weight: 900;
}

.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

/* Dashboard Cards (Book Selection) */
.book-selection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.book-card {
    background: rgba(255, 255, 255, 0.65);
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.book-card h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 15px;
    font-weight: 900;
}

.book-card p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Units & Lessons Container & Cards */
.units-container,
.lessons-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.unit-card,
.lesson-car-btn {
    background: rgba(255, 255, 255, 0.65);
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.unit-card:hover,
.lesson-car-btn:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.unit-card-title {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 900;
}

.unit-badge {
    background: linear-gradient(90deg, var(--primary), #d81b60);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid var(--accent);
}

/* Lesson Sections & Card Containers */
.lesson-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-box {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
}

.section-title {
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px dashed rgba(255, 105, 180, 0.5);
    padding-bottom: 12px;
    font-weight: 900;
}

.section-description {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Characters & Dialogue Cards */
.characters-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.char-card {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary-light);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
}

.char-avatar {
    flex-shrink: 0;
}

.char-bubble {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 18px;
    padding: 18px;
}

.char-text, .clickable-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary) !important;
    line-height: 1.65;
    text-shadow: none;
    font-family: var(--font-en);
    cursor: pointer;
    transition: color 0.2s ease;
}

.char-text:hover, .clickable-text:hover {
    color: var(--accent) !important;
}

.inline-ar-trans {
    color: #ffd700 !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    margin-top: 10px !important;
    text-shadow: none;
    font-family: var(--font-ar);
}

/* Vocab Grid */
.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.vocab-card, .vocab-item {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary-light);
    border-radius: 18px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    position: relative;
}

.vocab-card:hover, .vocab-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

.vocab-word-en {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-en);
}

.vocab-word-ar {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Grammar Box & Tables */
.grammar-rule-card {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.grammar-rule-title {
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 10px;
}

.grammar-example {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--primary-light);
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.grammar-table th {
    background: linear-gradient(90deg, var(--primary), #d81b60);
    color: white;
    padding: 14px;
    font-weight: 900;
    font-size: 1.15rem;
}

.grammar-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Quiz Box & Buttons */
.quiz-question {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.q-text {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.q-option, .quiz-option-btn {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary-light);
    color: var(--primary) !important;
    padding: 14px 20px;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 6px 0;
    width: 100%;
    text-align: right;
}

.q-option:hover, .quiz-option-btn:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--primary), #d81b60);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

/* Butterfly Play & Learn Button */
.butterfly-play-learn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 38px;
    background: linear-gradient(135deg, #ff2a75 0%, #e91e63 50%, #d81b60 100%);
    color: var(--primary) !important;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-ar);
    border: 3px solid #ffd700;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.butterfly-play-learn-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.butterfly-play-learn-btn:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    border-color: var(--text-main);
}

.butterfly-play-learn-btn:hover::before {
    left: 100%;
}

.quiz-option-btn.correct {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    border-color: #39ff14 !important;
    color: var(--primary) !important;
}

.quiz-option-btn.wrong {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-color: #ff5252 !important;
    color: var(--primary) !important;
}

/* Butterfly Translator Bot UI */
#translator-bot-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
}

#translator-fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--butterfly-magenta, #d81b60));
    border: 3px solid var(--accent);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#translator-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

#translator-chat-window {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 350px;
    max-width: 90vw;
    height: 480px;
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid var(--primary);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(90deg, var(--primary), #d81b60);
    padding: 15px;
    color: white;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.chat-body {
    font-family: var(--font-ar);
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(142, 68, 173, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(253, 203, 110, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(245, 247, 250, 0.95), rgba(228, 233, 237, 0.95));
    background-attachment: fixed;
    min-height: 100vh;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--primary-light);
    color: var(--text-light);
    align-self: flex-start;
}

.user-message {
    background: linear-gradient(135deg, var(--primary), #d81b60);
    color: white;
    align-self: flex-end;
    font-weight: bold;
}

.chat-input-area {
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 10px;
    color: var(--text-main);
    outline: none;
}

.chat-input-area button {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 10px 15px;
}

/* Toast */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #d81b60);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    border: 2px solid var(--accent);
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

/* Story Maker & Challenges */
.story-maker-container {
    background: rgba(255, 255, 255, 0.65);
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    margin-top: 20px;
}

.story-toggle-btn {
    background: linear-gradient(135deg, var(--primary), #d81b60);
    color: white;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 15px 30px;
    border-radius: 20px;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.story-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

.story-output {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

.game-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px #ffd700);
}

/* Butterfly Game Play Canvas & Mechanics */
.game-area {
    background: rgba(255, 255, 255, 0.65);
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--accent);
    border-radius: 20px;
}

.game-hearts {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px #ff2a75);
}

.game-diamonds {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px #ffd700);
}

.game-question {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--accent);
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
    text-shadow: none;
    line-height: 1.5;
}

.question-translation {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 8px;
    font-family: var(--font-ar);
    font-weight: bold;
}

.action-btn-go {
    background: linear-gradient(135deg, #ff2a75, #d81b60);
    color: var(--primary) !important;
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 14px 35px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    transition: all 0.25s ease;
    margin-top: 15px;
}

.action-btn-go:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
    border-color: var(--text-main);
}

.timing-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 55px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary-light);
    border-radius: 25px;
    display: flex;
    overflow: hidden;
    margin: 15px 0;
}

.timing-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border-right: 1px dashed rgba(255, 105, 180, 0.3);
}

.timing-needle {
    position: absolute;
    top: 0;
    width: 8px;
    height: 100%;
    background: #ffd700;
    box-shadow: 0 0 15px #ffd700;
    border-radius: 4px;
}

.striking-game {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.goals-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 10px;
}

.strike-goal {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--primary);
    border-radius: 18px;
    padding: 15px 20px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex: 1;
    text-align: center;
}

.crosshair {
    position: relative;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px #ffd700);
    margin: 20px 0;
}

.bouncing-game {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(60, 10, 45, 0.8), rgba(20, 0, 15, 0.9));
    border-radius: 20px;
    border: 2px solid var(--primary-light);
}

.bouncing-ball {
    position: absolute;
    bottom: 10px;
    background: linear-gradient(135deg, var(--primary), #d81b60);
    border: 2px solid var(--accent);
    color: white;
    padding: 14px 24px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    animation: bounceBall 2.2s infinite ease-in-out alternate;
}

@keyframes bounceBall {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-130px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

/* Dodge Game Animation (Butterfly Heart Rush) */
.dodge-game {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 240px;
    background: radial-gradient(circle at center, rgba(60, 10, 45, 0.95), rgba(20, 0, 15, 0.95));
    border: 3px solid var(--primary);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.scrolling-road {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255, 42, 117, 0.3) 20px, rgba(255, 42, 117, 0.3) 40px);
    animation: scrollRoad 1s infinite linear;
    pointer-events: none;
}

@keyframes scrollRoad {
    from { background-position: 0 0; }
    to { background-position: 0 40px; }
}

.enemies-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 12px;
    margin-top: 10px;
}

.enemy-obstacle {
    background: rgba(255, 255, 255, 0.65);
    border: 2.5px solid var(--accent);
    border-radius: 20px;
    padding: 15px 20px;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
    animation: floatDodge 2s infinite ease-in-out alternate;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
    flex: 1;
}

.enemy-obstacle:nth-child(2) {
    animation-delay: 0.6s;
}

.enemy-obstacle:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes floatDodge {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 5px #ff2a75); }
    50% { transform: translateY(-40px) scale(1.08); filter: drop-shadow(0 0 15px #ffd700); }
    100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 5px #ff2a75); }
}

.enemy-obstacle:hover {
    transform: scale(1.12) !important;
    border-color: var(--text-main);
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

.smash-game {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.smash-crate {
    background: rgba(255, 255, 255, 0.65);
    border: 2.5px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    min-width: 130px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.crate-box {
    font-size: 2.8rem;
    margin-top: 10px;
    filter: drop-shadow(0 0 10px #ffd700);
}

.crate-label {
    color: white;
    font-weight: bold;
    font-size: 1.15rem;
}

.drag-drop-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.drag-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.drag-item {
    background: linear-gradient(135deg, var(--primary), #d81b60);
    border: 2px solid var(--accent);
    color: white;
    padding: 12px 22px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.15rem;
    cursor: grab;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.2);
}

.drop-zone {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border: 3px dashed var(--accent);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 206, 201, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}