@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Alexandria:wght@400;700;900&family=Press+Start+2P&display=swap');

:root {
    --primary-color: #55ff55; /* Minecraft XP Lime Green */
    --primary-light: #74b63e;
    --primary-dark: #38581e;
    --secondary-color: #4dedf4; /* Minecraft Diamond Cyan */
    --secondary-dark: #0097a7;
    --accent-color: #ffd32a; /* Minecraft Gold Ingot */
    --gold-accent: #ffaa00;
    --redstone-color: #ff3838; /* Minecraft Redstone / TNT */
    --emerald-color: #2ecc71;
    --background-color: #0b0f0c; /* Deep Minecraft Night */
    --card-bg: rgba(26, 36, 29, 0.96); /* Dark Minecraft Stone/Slate */
    --stone-bg: #2f3542;
    --stone-dark: #1e272e;
    --dirt-bg: #573d26;
    --text-main: #f1f2f6; /* High contrast bright text */
    --text-muted: #a4b0be;
    --text-light: #ffffff;
    --border-radius: 14px; 
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    --diamond-glow: 0 0 20px rgba(77, 237, 244, 0.8), 0 0 40px rgba(85, 255, 85, 0.4);
    --xp-glow: 0 0 20px rgba(85, 255, 85, 0.8), 0 0 35px rgba(255, 211, 42, 0.4);
    --grammar-color: #55ff55;
    --reading-color: #4dedf4;
    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 15% 35%, rgba(77, 237, 244, 0.15), transparent 600px),
        radial-gradient(circle at 85% 25%, rgba(85, 255, 85, 0.18), transparent 600px),
        radial-gradient(circle at 50% 80%, rgba(255, 211, 42, 0.08), transparent 700px),
        url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h32v32H0z' fill='none'/%3E%3Cpath d='M0 31h32v1H0zM31 0h1v32h-1z' fill='%2355ff55' fill-opacity='0.035'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%2355ff55' fill-opacity='0.08'/%3E%3Crect x='20' y='16' width='2' height='2' fill='%234dedf4' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-size: auto, auto, auto, 32px 32px;
    background-attachment: fixed;
    animation: breathingBackground 15s ease-in-out infinite alternate;
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
}

@keyframes breathingBackground {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0 0; }
    100% { background-position: 4% 4%, -4% 4%, 2% 2%, 0 32px; }
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   MINECRAFT HEADER (Matching Zaid Alaa Identity)
   ========================================================================== */
.fairy-header, .minecraft-header {
    background: linear-gradient(135deg, rgba(21, 25, 29, 0.96) 0%, rgba(14, 18, 20, 0.98) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 35px rgba(77, 237, 244, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3.5px solid #4dedf4;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    margin-bottom: 25px;
}

/* ==========================================================================
   LESSONS MODE HEADER (إخفاء الهيدر وإبقاء صورة البروفايل وزر الرئيسية فقط)
   ========================================================================== */
body.in-lessons-mode .fairy-header,
body.in-lessons-mode .minecraft-header {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 12px 24px !important;
    margin-bottom: 0px !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Hide center title and subtitle */
body.in-lessons-mode .fairy-header-center {
    display: none !important;
}

/* Hide student text (name and grade badge) */
body.in-lessons-mode .user-info-text {
    display: none !important;
}

/* Hide play game button */
body.in-lessons-mode #playFairiesBtn,
body.in-lessons-mode .btn-play-fairies,
body.in-lessons-mode .btn-play-minecraft {
    display: none !important;
}

/* Hide the grass trim below header */
body.in-lessons-mode .mc-grass-trim {
    display: none !important;
}

/* Compact the user profile container so only avatar is shown */
body.in-lessons-mode .user-profile-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Ensure avatar looks stunning and well-sized */
body.in-lessons-mode .user-avatar-glow {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    border: 2.5px solid #55ff55 !important;
    box-shadow: 0 0 16px rgba(85, 255, 85, 0.7) !important;
}

/* Ensure Home button looks prominent and clean */
body.in-lessons-mode .header-actions {
    margin: 0 !important;
}

body.in-lessons-mode .btn-magical-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
    border: 2px solid #55ff55 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 14px rgba(85, 255, 85, 0.4) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

body.in-lessons-mode .btn-magical-back:hover {
    transform: translateY(-2px) scale(1.04) !important;
    border-color: #ffd32a !important;
    box-shadow: 0 6px 20px rgba(85, 255, 85, 0.6), 0 0 20px rgba(255, 211, 42, 0.6) !important;
}

/* Student Profile in Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-glow {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 16px;
    background: radial-gradient(circle, #4dedf4 0%, #1e272e 100%);
    border: 3px solid #55ff55;
    box-shadow: 0 0 20px rgba(85, 255, 85, 0.7), 0 0 30px rgba(77, 237, 244, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.user-avatar-glow:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 28px rgba(85, 255, 85, 0.9), 0 0 45px rgba(77, 237, 244, 0.8);
}

.user-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.avatar-fairy-badge {
    position: absolute;
    bottom: -6px;
    left: -6px;
    background: #1e272e;
    border: 2px solid #ffd32a;
    border-radius: 8px;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.student-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 12px rgba(85, 255, 85, 0.9);
    margin: 0;
    line-height: 1.2;
}

.student-grade-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffd32a;
    background: rgba(30, 39, 46, 0.9);
    border: 1px solid rgba(85, 255, 85, 0.6);
    border-radius: 10px;
    padding: 3px 12px;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Center Minecraft Title */
.fairy-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.magical-title {
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #4dedf4 50%, #55ff55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(77, 237, 244, 0.4);
    font-weight: 900;
    line-height: 1.2;
}

.magical-subtitle {
    font-size: 0.88rem;
    color: #4dedf4;
    margin: 3px 0 0 0;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(77, 237, 244, 0.3);
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-play-fairies, .btn-play-minecraft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(46, 204, 113, 0.5), inset 0 2px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.4);
    border: 2px solid #55ff55;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-play-fairies:hover, .btn-play-minecraft:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.8), 0 0 25px rgba(85, 255, 85, 0.8);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.fairy-btn-icon {
    font-size: 1.25rem;
    animation: gentleWiggle 2s infinite ease-in-out;
}

@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.fairy-sparkle-star {
    font-size: 0.85rem;
    animation: pulseStar 1.5s infinite alternate;
}

@keyframes pulseStar {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 6px #55ff55); }
}

.btn-magical-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(47, 53, 66, 0.85);
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid rgba(77, 237, 244, 0.4);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.15), inset 0 -2px 0 rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.btn-magical-back:hover {
    background: rgba(77, 237, 244, 0.2);
    border-color: #4dedf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 237, 244, 0.4);
}

/* ==========================================================================
   MINECRAFT LEVEL UP 7-SECOND CELEBRATION
   ========================================================================== */
.magic-glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at center, rgba(85, 255, 85, 0.25) 0%, rgba(77, 237, 244, 0.3) 50%, rgba(11, 15, 12, 0.6) 100%);
    box-shadow: inset 0 0 100px rgba(85, 255, 85, 0.5);
    animation: glowOverlayPulse 2.3s infinite alternate ease-in-out;
    transition: opacity 0.7s ease;
}

@keyframes glowOverlayPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.user-avatar-glow.magic-active {
    animation: avatarRoyalGlow 0.9s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    border-color: #ffd32a;
}

@keyframes avatarRoyalGlow {
    0% {
        box-shadow: 0 0 25px #55ff55, 0 0 45px #4dedf4;
        transform: scale(1.06) rotate(-3deg);
    }
    100% {
        box-shadow: 0 0 50px #55ff55, 0 0 85px #ffd32a, 0 0 110px #4dedf4;
        transform: scale(1.16) rotate(3deg);
    }
}

.magic-platform-dancing {
    animation: platformJoyBounce 1.4s infinite ease-in-out;
}

@keyframes platformJoyBounce {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-7px) rotate(0.4deg); }
    75% { transform: translateY(4px) rotate(-0.4deg); }
}

.magic-sparkle-card {
    animation: cardMagicSparkle 1.1s infinite alternate ease-in-out !important;
}

@keyframes cardMagicSparkle {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(85, 255, 85, 0.6);
        transform: translateY(-4px);
    }
    100% {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 45px rgba(77, 237, 244, 0.85);
        transform: translateY(-10px) scale(1.03);
    }
}

.magic-floating-sprite {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(85, 255, 85, 0.9));
    animation: floatSpriteUp 2.5s ease-out forwards;
}

@keyframes floatSpriteUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translateY(0px) scale(1.35) rotate(-15deg);
    }
    80% {
        opacity: 0.9;
        transform: translateY(-90px) scale(1.1) rotate(20deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-160px) scale(0.4) rotate(45deg);
    }
}

/* ==========================================================================
   DASHBOARD VIEW & MINECRAFT BOOKS
   ========================================================================== */
.welcome-section {
    text-align: center;
    margin: 25px 0 45px 0;
}

.mc-welcome-box {
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.85) 0%, rgba(21, 25, 29, 0.95) 100%);
    border: 2px solid rgba(85, 255, 85, 0.35);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255,255,255,0.1);
}

.welcome-fairy-title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(85, 255, 85, 0.8), 0 0 40px rgba(77, 237, 244, 0.6);
    margin-bottom: 12px;
}

.welcome-fairy-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #dcdde1;
    font-weight: 700;
}

.books-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.book-card {
    background: linear-gradient(145deg, rgba(30, 39, 46, 0.92) 0%, rgba(15, 20, 24, 0.98) 100%);
    border: 3px solid #55ff55;
    border-radius: 20px;
    width: 320px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(85, 255, 85, 0.3), inset 0 2px 0 rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
}

.book-glow-aura {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(85, 255, 85, 0.15), transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.book-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: #ffd32a;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(77, 237, 244, 0.8);
}

.book-card:hover .book-glow-aura {
    background: radial-gradient(circle, rgba(255, 211, 42, 0.25), transparent 70%);
}

.book-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-card:hover .book-icon {
    transform: scale(1.15) rotate(8deg);
}

.grammar-book .book-icon {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(85, 255, 85, 0.6);
    border: 3px solid #55ff55;
}

.reading-book .book-icon {
    background: linear-gradient(135deg, #00d2d3, #5f27cd);
    color: #ffd32a;
    box-shadow: 0 0 25px rgba(77, 237, 244, 0.6);
    border: 3px solid #4dedf4;
}

.book-info {
    position: relative;
    z-index: 2;
}

.book-info h3 {
    font-size: 1.7rem;
    margin-bottom: 12px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(85, 255, 85, 0.6);
}

.book-info p {
    color: #dcdde1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.book-badge-fairy {
    display: inline-block;
    background: rgba(30, 39, 46, 0.8);
    color: #ffd32a;
    border: 1.5px solid #ffd32a;
    padding: 6px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-decoration {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 2.2rem;
    opacity: 0.35;
    pointer-events: none;
    transition: all 0.3s ease;
}

.book-card:hover .card-decoration {
    opacity: 0.9;
    transform: scale(1.25) rotate(15deg);
}

/* ==========================================================================
   LESSONS LIST VIEW & MINECRAFT CARDS
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(30, 39, 46, 0.85);
    padding: 15px 25px;
    border-radius: 16px;
    border: 2px solid rgba(85, 255, 85, 0.4);
    backdrop-filter: blur(10px);
}

.back-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 2px solid #ffd32a;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.7), 0 0 20px rgba(85, 255, 85, 0.6);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.section-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #FFFFFF;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #4dedf4, #55ff55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(85, 255, 85, 0.4);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.lesson-card, .mc-lesson-card {
    background: linear-gradient(145deg, #1e272e 0%, #15191d 100%);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2.5px solid rgba(85, 255, 85, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.lesson-card:hover, .mc-lesson-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #4dedf4;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(77, 237, 244, 0.6);
}

.mc-card-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid #ffd32a;
    color: #ffd32a;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 8px;
    z-index: 3;
}

.mc-thumb-wrapper {
    width: 100%;
    height: 140px;
    background: #0f1418;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(77, 237, 244, 0.35);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.mc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lesson-card:hover .mc-thumb-img {
    transform: scale(1.1);
}

.lesson-card:hover .mc-thumb-wrapper {
    border-color: #55ff55;
    box-shadow: inset 0 0 25px rgba(85, 255, 85, 0.4), 0 0 20px rgba(77, 237, 244, 0.4);
}

.lesson-card h4 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
    margin: 8px 0 10px;
}

.mc-card-btn-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(85, 255, 85, 0.2), rgba(77, 237, 244, 0.2));
    border: 1.5px solid #55ff55;
    color: #55ff55;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.25s ease;
}

.lesson-card:hover .mc-card-btn-pill {
    background: #55ff55;
    color: #0b0f0c;
    box-shadow: 0 0 12px #55ff55;
}

.lesson-emoji-container {
    width: 100%;
    height: 140px;
    background: #0f1418;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(77, 237, 244, 0.35);
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 860px) {
    .fairy-header, .minecraft-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    .fairy-header-center {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }
    .header-actions {
        order: 2;
    }
    .user-profile-header {
        order: 1;
    }
    .book-card {
        width: 100%;
        max-width: 350px;
    }
}

/* ==========================================================================
   MINECRAFT CANVAS WHITEBOARD MODAL (Coloring & Drawing Board)
   ========================================================================== */
#fairyCanvasModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fairy-canvas-card, .mc-canvas-card {
    background: linear-gradient(145deg, #1e272e 0%, #15191d 100%);
    border: 3px solid #55ff55;
    border-radius: 20px;
    width: 100%;
    max-width: 1050px;
    height: 94vh;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(85, 255, 85, 0.4);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.canvas-header {
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(85, 255, 85, 0.4);
    background: linear-gradient(135deg, rgba(47, 53, 66, 0.9), rgba(30, 39, 46, 0.95));
    flex-shrink: 0;
    box-sizing: border-box;
}

.canvas-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.canvas-title {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 900;
    color: #FFFFFF;
    background: linear-gradient(135deg, #ffffff, #4dedf4, #55ff55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 15px rgba(85, 255, 85, 0.5);
}

.canvas-close-btn {
    background: #ff3838;
    border: 2px solid #ffffff;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.canvas-close-btn:hover {
    transform: scale(1.15) rotate(90deg);
    background: #ff4d4d;
    box-shadow: 0 0 20px rgba(255, 56, 56, 0.9);
}

/* Templates Selection Bar */
.fairy-templates-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(21, 25, 29, 0.95);
    border-bottom: 2px solid rgba(85, 255, 85, 0.35);
    flex-shrink: 0;
    flex-wrap: wrap;
    z-index: 5;
}

.templates-section-label {
    color: #55ff55;
    font-weight: 900;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(85, 255, 85, 0.6);
    white-space: nowrap;
}

.templates-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fairy-template-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: 2px solid rgba(77, 237, 244, 0.6);
    background: rgba(47, 53, 66, 0.6);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fairy-template-btn .tpl-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(85, 255, 85, 0.7));
}

.fairy-template-btn:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: #55ff55;
    background: rgba(85, 255, 85, 0.25);
    color: #ffffff;
}

.fairy-template-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #ffffff;
    border: 2.5px solid #ffd32a;
    box-shadow: 0 0 22px rgba(85, 255, 85, 0.95), 0 0 15px rgba(255, 211, 42, 0.85);
    transform: translateY(-2px) scale(1.05);
}

/* Toolbar Controls */
.canvas-toolbar {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #15191d;
    border-bottom: 2px solid rgba(85, 255, 85, 0.3);
    flex-shrink: 0;
    z-index: 4;
}

.color-palette {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.color-swatch:hover {
    transform: scale(1.2);
}

.color-swatch.active {
    transform: scale(1.28);
    border-color: #ffd32a;
    box-shadow: 0 0 12px #ffd32a;
}

.color-picker-input {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #55ff55;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.brush-sizes {
    display: flex;
    gap: 6px;
    align-items: center;
}

.brush-size-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.brush-size-btn:hover, .brush-size-btn.active {
    background: var(--primary-color);
    border-color: #ffd32a;
    color: #0b0f0c;
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.7);
}

.tools-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #55ff55;
    background: #2f3542;
    color: white;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-btn:hover {
    transform: translateY(-2px);
    background: #55ff55;
    color: #0b0f0c;
    box-shadow: 0 4px 15px rgba(85, 255, 85, 0.6);
}

.tool-btn.active {
    background: linear-gradient(135deg, #55ff55, #ffd32a);
    color: #0b0f0c;
    border-color: white;
    box-shadow: 0 0 15px rgba(85, 255, 85, 0.8);
}

.save-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #ffd32a;
}

.save-btn:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 18px rgba(46, 204, 113, 0.7);
}

/* Canvas Viewport */
.fairy-canvas-viewport {
    flex: 1;
    min-height: 250px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    cursor: crosshair;
}

.fairy-template-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.fairy-template-layer svg {
    width: 100%;
    height: 100%;
    max-height: 90%;
    object-fit: contain;
}

#fairyDrawingBoard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .fairy-canvas-card, .mc-canvas-card {
        height: 98vh;
        max-height: 98vh;
        border-radius: 14px;
    }
    .canvas-header {
        padding: 10px 14px;
    }
    .fairy-templates-nav {
        padding: 8px 10px;
        gap: 8px;
    }
    .fairy-template-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .canvas-toolbar {
        padding: 6px 10px;
        gap: 8px;
    }
}

/* Classroom & Interactive Teacher Styles */
.classroom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.95), rgba(21, 25, 29, 0.98));
    padding: 30px 25px;
    border-radius: 20px;
    border: 3px solid rgba(85, 255, 85, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(85, 255, 85, 0.2);
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.whiteboard {
    background: linear-gradient(145deg, #15191d 0%, #0b0f0c 100%);
    border: 8px solid #2f3542;
    outline: 3px solid #55ff55;
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    min-height: 280px;
    padding: 30px 25px;
    color: #ffffff;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9), 0 12px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.teacher-area {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 820px;
    gap: 20px;
    margin-top: 10px;
    box-sizing: border-box;
}

.teacher-avatar {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    border-radius: 16px !important;
    border: 3.5px solid #55ff55 !important;
    background: #1e272e !important;
    overflow: hidden !important;
    box-shadow: 0 0 25px rgba(85, 255, 85, 0.6), 0 0 15px rgba(77, 237, 244, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.teacher-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.speech-bubble {
    background: #1e272e;
    border: 2px solid #55ff55;
    border-radius: 16px;
    padding: 18px 25px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #f1f2f6;
    font-weight: 800;
}

/* ==========================================================================
   MINECRAFT GAMES & CANVASES STYLING
   ========================================================================== */
.games-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.games-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 10px;
    box-sizing: border-box;
}

.games-menu h3 {
    color: #55ff55 !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 900 !important;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(85, 255, 85, 0.6);
}

.game-menu-btn {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, #2f3542 0%, #1e272e 100%);
    border: 2px solid #55ff55;
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255,255,255,0.15);
    box-sizing: border-box;
}

.game-menu-btn i {
    font-size: 1.5rem;
    color: #55ff55;
    filter: drop-shadow(0 0 8px rgba(85, 255, 85, 0.8));
    transition: transform 0.3s ease;
}

.game-menu-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #ffd32a;
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.7), 0 0 25px rgba(85, 255, 85, 0.8);
}

.game-menu-btn:hover i {
    transform: rotate(15deg) scale(1.2);
}

#games-views {
    width: 100%;
    display: flex;
    justify-content: center;
}

.game-card {
    background: linear-gradient(135deg, rgba(21, 25, 29, 0.98), rgba(30, 39, 46, 0.98));
    border: 3px solid #55ff55 !important;
    border-radius: 20px !important;
    padding: 30px 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(85, 255, 85, 0.4);
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    position: relative;
    box-sizing: border-box;
    animation: fairyFadeIn 0.35s ease-out;
}

.back-to-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    border: 2px solid #ffd32a;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.back-to-menu-btn:hover {
    transform: translateY(-2px) scale(1.06);
    background: linear-gradient(135deg, #ffd32a, #2ecc71);
    color: #0b0f0c;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(85, 255, 85, 0.8);
}

.game-title {
    color: #55ff55 !important;
    font-size: clamp(1.6rem, 3vw, 2.3rem) !important;
    font-weight: 900 !important;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 15px;
    text-shadow: 0 0 18px rgba(85, 255, 85, 0.6);
}

.game-desc {
    color: #dcdde1 !important;
    font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.game-msg {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 20px;
    min-height: 35px;
    color: #ffd32a;
    text-shadow: 0 0 10px rgba(255, 211, 42, 0.8);
}

/* Drag & Drop in Fairy Theme */
.drag-drop-game {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
    margin-top: 10px;
}

.ships-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}

.spaceship {
    width: 115px;
    height: 115px;
    border: 3px dashed #fee440;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    background: rgba(247, 37, 133, 0.2);
    box-shadow: 0 0 20px rgba(114, 9, 183, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spaceship i {
    font-size: 2.2rem;
    color: #fee440;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(254, 228, 64, 0.8));
}

.spaceship.drag-over {
    background: rgba(254, 228, 64, 0.35);
    border-color: #ffffff;
    border-style: solid;
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(254, 228, 64, 0.9);
}

.meteors-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 80px;
}

.meteor {
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.35rem;
    border: 2px solid #fee440;
    cursor: grab;
    box-shadow: 0 0 20px rgba(247, 37, 133, 0.6);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meteor:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 25px rgba(254, 228, 64, 0.8);
}

.meteor:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.meteor.hide {
    display: none;
}

/* Fairy Memory Game */
.memory-game {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 18px;
    max-width: 650px;
    margin: 0 auto;
    perspective: 1000px;
}

.mem-card {
    height: 110px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.mem-card.flip {
    transform: rotateY(180deg);
}

.mem-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    border: 2.5px solid #fee440;
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.4);
    box-sizing: border-box;
}

.mem-front {
    background: linear-gradient(135deg, #240046, #12002b);
    color: #fee440;
}

.mem-front::after {
    content: '🧚‍♀️';
    font-size: 2.2rem;
}

.mem-back {
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: #ffffff;
    transform: rotateY(180deg);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Sequence Game */
.sequence-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.portal-target {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.portal-slot {
    width: 65px;
    height: 65px;
    border: 2.5px solid #fee440;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fee440;
    background: rgba(247, 37, 133, 0.15);
    box-shadow: inset 0 0 15px rgba(254, 228, 64, 0.4);
}

.floating-orbs {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.letter-orb {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f72585, #fee440);
    color: #12002b;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(254, 228, 64, 0.7);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: orbFloat 3s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.letter-orb:hover {
    transform: scale(1.18);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
}

/* Cannon & Ammo Buttons */
.cannons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cannon-btn {
    background: linear-gradient(135deg, #7209b7, #f72585);
    color: #ffffff;
    border: 2px solid #fee440;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.cannon-btn:hover, .cannon-btn.active {
    background: linear-gradient(135deg, #fee440, #f72585);
    color: #12002b;
    border-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(254, 228, 64, 0.8);
}

/* ==========================================================================
   READING LESSON & VOCABULARY STYLES (Fairy Garden Theme)
   ========================================================================== */
.reading-content-box {
    background: #ffffff;
    border: 3px solid rgba(247, 37, 133, 0.35);
    border-radius: 28px;
    margin: 25px 0 35px 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(114, 9, 183, 0.15), 0 0 25px rgba(254, 228, 64, 0.15);
    box-sizing: border-box;
}

.reading-header {
    background: linear-gradient(135deg, #7209b7, #f72585);
    color: #ffffff;
    padding: 16px 25px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reading-header span {
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.reading-header span i {
    color: #fee440;
    filter: drop-shadow(0 0 8px rgba(254, 228, 64, 0.8));
}

.audio-btn {
    background: #fee440 !important;
    color: #12002b !important;
    border: 2px solid #ffffff !important;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.audio-btn:hover {
    background: #ffffff !important;
    color: #f72585 !important;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(254, 228, 64, 0.8);
}

.audio-btn.playing {
    background: #ef4444 !important;
    color: #ffffff !important;
    animation: pulseBtn 1s infinite alternate;
}

@keyframes pulseBtn {
    from { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
    to { transform: scale(1.06); box-shadow: 0 0 22px rgba(239, 68, 68, 0.9); }
}

.reading-text-body {
    padding: 35px 30px;
    font-size: clamp(1.35rem, 2.3vw, 1.7rem);
    line-height: 2.3;
    color: #12002b;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}

.reading-text-body .verse {
    font-family: 'Alexandria', 'Cairo', sans-serif;
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    padding: 30px 35px;
    border-radius: 22px;
    display: block;
    margin: 15px auto;
    border: 2.5px solid #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
    line-height: 2.4;
    text-align: center;
    position: relative;
}

.reading-text-body .source {
    font-size: 1.1rem;
    color: #92400e;
    background: rgba(254, 228, 64, 0.2);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 18px;
    font-weight: 900;
    text-align: center;
}

.clickable-sentence {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline;
}

.clickable-sentence:hover {
    background: rgba(247, 37, 133, 0.15);
    color: #f72585;
    box-shadow: 0 2px 8px rgba(247, 37, 133, 0.2);
}

.clickable-sentence.playing-sentence {
    background: rgba(254, 228, 64, 0.45);
    color: #15803d;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(254, 228, 64, 0.8);
    border-radius: 8px;
}

/* Poem / Anthems (المحفوظات والأناشيد) */
.poem-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 25px;
    background: linear-gradient(135deg, #fff0f5, #fdf2f8);
    border-radius: 24px;
    border: 2px solid rgba(247, 37, 133, 0.3);
    margin: 15px auto;
    max-width: 850px;
    box-sizing: border-box;
}

.poem-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 25px;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid rgba(254, 228, 64, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.poem-row .shatr {
    flex: 1;
    font-size: 1.45rem;
    font-weight: 800;
    color: #240046;
    text-align: center;
}

/* Ordered Expression (التعبير الكتابي المرتب) */
.expression-ordered {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
    margin: 20px auto;
    max-width: 850px;
    box-sizing: border-box;
}

.expression-ordered p {
    background: linear-gradient(135deg, #ffffff 0%, #fff7fa 100%);
    border: 2px solid rgba(247, 37, 133, 0.25);
    border-right: 7px solid #7209b7;
    border-radius: 18px;
    padding: 18px 24px;
    font-size: 1.35rem;
    line-height: 1.85;
    color: #240046;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    margin: 0;
    box-sizing: border-box;
}

.expression-ordered p:hover {
    transform: translateX(-6px);
    border-color: #fee440;
    border-right-color: #f72585;
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.2);
}

/* Control Section: Vocabulary & Concepts (معاني المفردات والمعنى العام) */
.control-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff7fa 100%);
    border: 2.5px solid rgba(247, 37, 133, 0.35);
    border-radius: 26px;
    padding: 30px;
    margin: 35px 0;
    box-shadow: 0 12px 35px rgba(114, 9, 183, 0.1), 0 0 20px rgba(254, 228, 64, 0.15);
    position: relative;
    box-sizing: border-box;
}

.control-head {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.85rem;
    font-weight: 900;
    color: #15803d;
    margin-bottom: 12px;
    border-bottom: 2px dashed rgba(247, 37, 133, 0.25);
    padding-bottom: 12px;
}

.badge {
    background: linear-gradient(135deg, #f72585, #fee440);
    color: #12002b;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.control-section > p {
    font-size: 1.15rem;
    color: #5c0d75;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Vocabulary Grid Cards (شبكة بطاقات معاني المفردات المنظمة) */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.highlight-box {
    background: #ffffff;
    border: 2px solid rgba(114, 9, 183, 0.2);
    border-right: 7px solid #f72585;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1e1b4b;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.highlight-box:hover {
    transform: translateY(-4px);
    border-color: #fee440;
    border-right-color: #15803d;
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.25);
}

.highlight-box strong {
    color: #f72585;
    font-weight: 900;
    font-size: 1.35rem;
    background: rgba(247, 37, 133, 0.1);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(247, 37, 133, 0.2);
}

.example-item {
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    border: 2px solid rgba(247, 37, 133, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.example-item .old {
    color: #9ca3af;
    text-decoration: line-through;
}

.example-item .new {
    color: #10b981;
    font-weight: 900;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.word-cloud span {
    background: linear-gradient(135deg, #fdf2f8, #f5d0fe);
    border: 1.5px solid rgba(247, 37, 133, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #15803d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Q & A Box */
.qa-box {
    background: #ffffff;
    border: 2.5px solid rgba(16, 185, 129, 0.4);
    border-radius: 22px;
    padding: 22px 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.qa-box .question {
    color: #065f46;
    font-weight: 900;
    font-size: 1.35rem;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.qa-box .q-mark {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 1rem;
}

.qa-box .answer {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.7;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.qa-box .a-mark {
    background: #f72585;
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 1rem;
}

/* Final Sentence & Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, rgba(254, 228, 64, 0.2), rgba(247, 37, 133, 0.15));
    border: 2px solid #fee440;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.final-sentence {
    color: #15803d;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 8px;
}

/* ==========================================================================
   DICTATION & VOICE COACH (Fairy Garden Theme)
   ========================================================================== */
.dictation-container {
    background: linear-gradient(135deg, #ffffff 0%, #fff7fa 100%);
    border-radius: 28px;
    padding: 35px 25px;
    border: 3px solid rgba(247, 37, 133, 0.35);
    color: #240046;
    box-shadow: 0 15px 40px rgba(114, 9, 183, 0.15), 0 0 25px rgba(254, 228, 64, 0.15);
    max-width: 900px;
    margin: 20px auto;
    box-sizing: border-box;
}

.dictation-header {
    text-align: center;
    margin-bottom: 25px;
}

.dictation-header h3 {
    color: #15803d;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(114, 9, 183, 0.2);
}

.dictation-header h3 i {
    color: #fee440;
    filter: drop-shadow(0 0 8px rgba(254, 228, 64, 0.8));
}

.dictation-header p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #f72585;
    font-weight: 700;
    margin: 0;
}

.sub-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.dictation-sub-btn {
    background: #ffffff;
    color: #15803d;
    border: 2px solid rgba(114, 9, 183, 0.25);
    border-radius: 50px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 900;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.dictation-sub-btn.active, .dictation-sub-btn:hover {
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: #ffffff !important;
    border-color: #fee440;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 18px rgba(247, 37, 133, 0.4), 0 0 10px rgba(254, 228, 64, 0.4);
}

.dictation-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.dictation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

/* Action Buttons (Fairy Garden Style) */
.action-btn {
    padding: 13px 26px !important;
    border-radius: 50px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2px solid #fee440 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
}

.action-btn i {
    font-size: 1.25rem;
}

/* Play Dictation Button */
.cosmic-btn {
    background: linear-gradient(135deg, #f72585, #7209b7) !important;
    color: #ffffff !important;
}

.cosmic-btn:hover {
    background: linear-gradient(135deg, #7209b7, #f72585) !important;
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.6), 0 0 15px rgba(254, 228, 64, 0.6) !important;
}

/* Clear Canvas Button */
.btn-secondary {
    background: linear-gradient(135deg, #4cc9f0, #7209b7) !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7209b7, #4cc9f0) !important;
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.6) !important;
}

/* Show Answer Button */
.success-btn {
    background: linear-gradient(135deg, #fee440, #f72585) !important;
    color: #12002b !important;
    border-color: #ffffff !important;
    text-shadow: none !important;
}

.success-btn:hover {
    background: linear-gradient(135deg, #f72585, #fee440) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(254, 228, 64, 0.8) !important;
}

/* Dictation Blackboard Canvas Frame */
.canvas-wrapper {
    background: #180b2c;
    border: 3.5px solid #fee440;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(114, 9, 183, 0.35), 0 0 25px rgba(254, 228, 64, 0.3);
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
}

#dictation-board {
    display: block;
    width: 100%;
    cursor: crosshair;
    touch-action: none;
}

.dictation-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
}

.dictation-answer {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #15803d;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid #16a34a;
    border-radius: 22px;
    padding: 16px 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    margin-top: 15px;
    letter-spacing: 2px;
    animation: mcAnswerPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mcAnswerPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}




/* ==========================================================================
   MINECRAFT AUTHENTIC HUD & INTERFACE UPGRADES
   ========================================================================== */

/* Custom Minecraft Pickaxe Cursor */
body, button, a, .book-card, .tab-btn, .mc-hotbar-slot, .exercise-item-box {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234dedf4' stroke='%23000' stroke-width='1.5' d='M15 2l7 7-2 2-3-3-5 5-2-2 5-5-3-3 3-3zm-6 8l-7 7 2 2 7-7-2-2zm-1 3l-6 6 2 2 6-6-2-2z'/%3E%3C/svg%3E"), auto !important;
}

input, textarea {
    cursor: text !important;
}

/* Minecraft Grass Block Trim Strip */
.mc-grass-trim {
    height: 14px;
    width: 100%;
    background-color: #578a22;
    background-image: 
        linear-gradient(45deg, #74b63e 25%, transparent 25%, transparent 75%, #74b63e 75%),
        linear-gradient(45deg, #74b63e 25%, #4c771e 25%, #4c771e 75%, #74b63e 75%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    border-bottom: 3.5px solid #4a3319;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 10px 0 25px 0;
    border-radius: 6px;
}



/* Minecraft Enchanted Book Shimmer Effect */
.mc-book-card {
    position: relative;
    border: 4px solid #000000 !important;
    box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.3), inset -4px -4px 0 #1b1f23, 0 15px 35px rgba(0, 0, 0, 0.7) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.mc-book-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(180, 70, 255, 0.28) 45%,
        rgba(77, 237, 244, 0.35) 50%,
        rgba(180, 70, 255, 0.28) 55%,
        transparent 65%
    );
    animation: mcEnchantedGlint 4s infinite linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes mcEnchantedGlint {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(30%, 30%) rotate(0deg); }
}

/* ==========================================================================
   MINECRAFT IN-LESSON INTELLIGENT TUTOR (روبوت ستيف الذكي من ضمن المادة)
   ========================================================================== */
.mc-lesson-bot-card {
    background: #ffffff;
    border: 3px solid #22c55e;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 15px rgba(34, 197, 94, 0.15);
    margin-bottom: 30px;
    color: #0f172a;
    position: relative;
    overflow: hidden;
}

.mc-bot-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2.5px dashed #86efac;
    margin-bottom: 25px;
}

.mc-bot-steve-avatar {
    width: 68px;
    height: 68px;
    background: #1e272e;
    border: 3px solid #16a34a;
    box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #000, 0 6px 18px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.mc-bot-steve-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-bot-title-group h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #15803d;
    margin: 0 0 4px 0;
}

.mc-bot-title-group p {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 700;
    margin: 0;
}

/* Quick Interactive Action Pills */
.mc-bot-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mc-bot-action-pill {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #15803d;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mc-bot-action-pill:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.mc-bot-action-pill.active {
    background: #15803d;
    color: #ffffff;
    border-color: #ffd32a;
}

/* Suggested Question Chips */
.mc-suggested-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #0369a1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mc-suggested-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.mc-question-chip {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
}

.mc-question-chip:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Chat Log Conversation Area */
.mc-chat-log {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 18px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.mc-chat-msg {
    display: flex;
    gap: 12px;
    max-width: 90%;
    animation: mcFadeIn 0.3s ease-out;
}

.mc-chat-msg.msg-steve {
    align-self: flex-start;
}

.mc-chat-msg.msg-zaid {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #16a34a;
    overflow: hidden;
    flex-shrink: 0;
}

.msg-zaid .msg-avatar {
    border-color: #0284c7;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.msg-content {
    background: #ffffff;
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 14px 18px;
    color: #0f172a;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    position: relative;
}

.msg-steve .msg-content {
    border-top-right-radius: 4px;
    background: #ffffff;
}

.msg-zaid .msg-content {
    background: #f0fdf4;
    border-color: #86efac;
    border-top-left-radius: 4px;
    color: #15803d;
}

.msg-speaker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd32a;
    color: #1e272e;
    border: 1px solid #eab308;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s ease;
}

.msg-speaker-btn:hover {
    transform: scale(1.05);
}

/* Chat Input Bar */
.mc-chat-input-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mc-chat-input {
    flex: 1;
    background: #ffffff;
    border: 2.5px solid #94a3b8;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.mc-chat-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 12px rgba(22, 163, 74, 0.25);
    background: #f0fdf4;
}

.mc-chat-send-btn {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
    border: 2px solid #ffd32a;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.mc-chat-send-btn:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.6);
}

/* Minecraft Achievement Toast */
.mc-achievement-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: #2b2b2b;
    border: 3px solid #000;
    box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
}

.mc-achievement-toast.show {
    transform: translateX(0);
}

.mc-achieve-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.mc-achieve-header {
    color: #ffd32a;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.mc-achieve-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

/* Minecraft Quiz Options in Chat */
.mc-quiz-box {
    margin-top: 12px;
    background: #f1f5f9;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 12px;
}

.mc-quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mc-quiz-btn {
    background: #ffffff;
    border: 2px solid #0284c7;
    color: #0369a1;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-quiz-btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.mc-quiz-btn.correct {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

.mc-quiz-btn.wrong {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

