:root {
    --primary: #ff2a75;
    --primary-light: #ff69b4;
    --secondary: #2b002b;
    --accent: #ffd700;
    --dark: #120012;
    --light: #2a0823;
    --white: #FFFFFF;
    --success: #ff4081;
    --warning: #ffb74d;

    --shadow: 4px 4px 0px rgba(255, 42, 117, 0.4);
    --shadow-hover: 2px 2px 0px rgba(255, 42, 117, 0.6);
    --radius: 18px;

    --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(--white);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 42, 117, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(216, 27, 96, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(20, 0, 20, 0.95), rgba(45, 5, 35, 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(30, 0, 30, 0.9);
    background-image: linear-gradient(90deg, rgba(255, 42, 117, 0.15), rgba(255, 215, 0, 0.1));
    border-bottom: 4px solid var(--primary);
    border-radius: 0 0 25px 25px;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 30px rgba(255, 42, 117, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    font-family: var(--font-ar);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 0 15px var(--primary), 0 0 25px var(--primary-light);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
    font-weight: 900;
    text-shadow: 0 0 15px var(--accent);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.home-btn,
.back-btn {
    background: transparent;
    color: var(--white);
    padding: 0.6rem 1.6rem;
    border-radius: 12px;
    font-weight: 900;
    border: none;
    transition: all 0.2s;
    text-shadow: none;
    font-family: var(--font-ar);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home-btn::before, .back-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--primary), var(--barbie-magenta, #d81b60));
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(255, 42, 117, 0.6);
    transform: skewX(-15deg);
    z-index: -1;
    transition: all 0.2s;
}

.home-btn:hover,
.back-btn:hover {
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

.home-btn:hover::before, .back-btn:hover::before {
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    border-color: #fff;
}

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(45, 10, 35, 0.7);
    padding: 15px 25px;
    border-radius: 20px;
    border: 2px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
}

.view-header h2 {
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Titles */
.main-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary), 0 0 35px var(--primary-light);
    font-weight: 900;
}

.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #f8bbd0;
    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: linear-gradient(145deg, rgba(60, 10, 45, 0.85), rgba(30, 0, 25, 0.85));
    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 10px 30px rgba(255, 42, 117, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 42, 117, 0.6), inset 0 0 25px rgba(255, 215, 0, 0.3);
}

.book-card h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 15px;
    font-weight: 900;
}

.book-card p {
    font-size: 1.2rem;
    color: #ffe4e1;
    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: linear-gradient(145deg, rgba(65, 10, 50, 0.88), rgba(35, 0, 25, 0.88));
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(255, 42, 117, 0.35), inset 0 0 15px rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px);
    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: linear-gradient(145deg, rgba(90, 15, 65, 0.95), rgba(45, 5, 35, 0.95));
    box-shadow: 0 15px 35px rgba(255, 42, 117, 0.6), inset 0 0 25px rgba(255, 215, 0, 0.3);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.unit-card-title {
    font-size: 1.4rem;
    color: var(--white);
    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(35, 5, 25, 0.9);
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(255, 42, 117, 0.4);
    backdrop-filter: blur(12px);
}

.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: #ffe4e1;
    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: linear-gradient(145deg, rgba(65, 10, 50, 0.92), rgba(35, 0, 25, 0.92));
    border: 2px solid var(--primary-light);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 8px 25px rgba(255, 42, 117, 0.35);
    backdrop-filter: blur(10px);
}

.char-avatar {
    flex-shrink: 0;
}

.char-bubble {
    flex: 1;
    background: rgba(20, 0, 15, 0.85);
    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: #ffffff !important;
    line-height: 1.65;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    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: 0 0 12px rgba(255, 215, 0, 0.8) !important;
    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: linear-gradient(145deg, rgba(60, 15, 45, 0.9), rgba(30, 5, 25, 0.9));
    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 4px 15px rgba(255, 42, 117, 0.2);
    position: relative;
}

.vocab-card:hover, .vocab-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.vocab-word-en {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: var(--font-en);
}

.vocab-word-ar {
    font-size: 1.1rem;
    color: var(--white);
}

/* Grammar Box & Tables */
.grammar-rule-card {
    background: linear-gradient(135deg, rgba(50, 5, 35, 0.9), rgba(25, 0, 18, 0.9));
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(255, 42, 117, 0.3);
}

.grammar-rule-title {
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 10px;
}

.grammar-example {
    background: rgba(45, 5, 35, 0.9);
    border: 1.5px solid var(--primary-light);
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(30, 0, 25, 0.9);
    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: #ffe4e1;
    font-size: 1.1rem;
}

/* Quiz Box & Buttons */
.quiz-question {
    background: rgba(40, 5, 30, 0.9);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.q-text {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 15px;
}

.q-option, .quiz-option-btn {
    background: linear-gradient(135deg, rgba(70, 10, 50, 0.9), rgba(40, 5, 30, 0.9));
    border: 2px solid var(--primary-light);
    color: white !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 5px 20px rgba(255, 42, 117, 0.6);
}

/* Barbie Play & Learn Button */
.barbie-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: #ffffff !important;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-ar);
    border: 3px solid #ffd700;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 42, 117, 0.6), 0 0 25px rgba(255, 215, 0, 0.7);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.barbie-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;
}

.barbie-play-learn-btn:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 15px 40px rgba(255, 42, 117, 0.85), 0 0 35px rgba(255, 215, 0, 0.95);
    border-color: #ffffff;
}

.barbie-play-learn-btn:hover::before {
    left: 100%;
}

.quiz-option-btn.correct {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    border-color: #39ff14 !important;
    color: white !important;
}

.quiz-option-btn.wrong {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-color: #ff5252 !important;
    color: white !important;
}

/* Barbie 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(--barbie-magenta, #d81b60));
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px rgba(255, 42, 117, 0.7);
    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 0 35px rgba(255, 215, 0, 0.9);
}

#translator-chat-window {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 350px;
    max-width: 90vw;
    height: 480px;
    background: rgba(30, 0, 25, 0.95);
    border: 3px solid var(--primary);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(255, 42, 117, 0.6);
    backdrop-filter: blur(15px);
    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 {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(60, 10, 45, 0.8);
    border: 1px solid var(--primary-light);
    color: #ffe4e1;
    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(15, 0, 12, 0.9);
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

.chat-input-area input {
    flex: 1;
    background: rgba(40, 5, 30, 0.8);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 10px;
    color: var(--white);
    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 5px 25px rgba(255, 42, 117, 0.8);
    border: 2px solid var(--accent);
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

/* Story Maker & Challenges */
.story-maker-container {
    background: linear-gradient(135deg, rgba(60, 10, 45, 0.9), rgba(30, 0, 20, 0.9));
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 42, 117, 0.4);
    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 5px 20px rgba(255, 42, 117, 0.6);
}

.story-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

.story-output {
    background: rgba(20, 0, 15, 0.95);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    color: #ffe4e1;
    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: linear-gradient(145deg, rgba(50, 5, 35, 0.9), rgba(25, 0, 18, 0.9));
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 42, 117, 0.3);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.game-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px #ffd700);
}

/* Barbie Game Play Canvas & Mechanics */
.game-area {
    background: linear-gradient(145deg, rgba(55, 5, 40, 0.95), rgba(25, 0, 18, 0.95));
    border: 3px solid var(--primary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 35px rgba(255, 42, 117, 0.5);
    backdrop-filter: blur(15px);
    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(15, 0, 10, 0.85);
    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: 0 0 12px rgba(255, 215, 0, 0.5);
    line-height: 1.5;
}

.question-translation {
    font-size: 1.15rem;
    color: #ffe4e1;
    margin-top: 8px;
    font-family: var(--font-ar);
    font-weight: bold;
}

.action-btn-go {
    background: linear-gradient(135deg, #ff2a75, #d81b60);
    color: white !important;
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 14px 35px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 42, 117, 0.6);
    transition: all 0.25s ease;
    margin-top: 15px;
}

.action-btn-go:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
    border-color: #ffffff;
}

.timing-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 55px;
    background: rgba(20, 0, 15, 0.9);
    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(60, 10, 45, 0.9);
    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 25px rgba(255, 42, 117, 0.6);
    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 (Barbie 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: linear-gradient(135deg, rgba(80, 10, 60, 0.95), rgba(40, 5, 30, 0.95));
    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 25px rgba(255, 42, 117, 0.6);
    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: #ffffff;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.95);
}

.smash-game {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.smash-crate {
    background: linear-gradient(145deg, rgba(60, 10, 45, 0.9), rgba(30, 0, 20, 0.9));
    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 5px 20px rgba(255, 42, 117, 0.4);
}

.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 5px 15px rgba(255, 42, 117, 0.5);
}

.drop-zone {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border: 3px dashed var(--accent);
    border-radius: 25px;
    background: rgba(30, 0, 25, 0.7);
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 215, 0, 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; }
}