* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --purple-kuromi: #9333ea;
    --purple-light: #c084fc;
    --dark-kuromi: #1a0b2e;
    --text-dark: #2e1065;
    --text-white: #ffffff;
    --gold: #fbbf24;
}

body {
    font-family: 'Baloo Bhaijaan 2', 'Tajawal', cursive, sans-serif;
    background: radial-gradient(circle at 20% 20%, #fdf2f8 0%, #fce7f3 40%, #f3e8ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    overflow-x: hidden;
    padding: 2rem 1rem;
    position: relative;
}

/* خلفية كورومي الطافية اللطيفة */
.kuromi-floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-sticker {
    position: absolute;
    filter: drop-shadow(0 10px 15px rgba(236, 72, 153, 0.25));
    opacity: 0.85;
    transition: transform 0.3s;
}

.sticker-1 { top: 5%; right: 4%; width: 110px; animation: floatAnim1 5s ease-in-out infinite alternate; }
.sticker-2 { top: 12%; left: 5%; width: 95px; animation: floatAnim2 6s ease-in-out infinite alternate; }
.sticker-3 { bottom: 8%; right: 6%; width: 120px; animation: floatAnim2 5.5s ease-in-out infinite alternate; }
.sticker-4 { bottom: 10%; left: 5%; width: 105px; animation: floatAnim1 6.5s ease-in-out infinite alternate; }
.sticker-5 { top: 48%; right: 2%; width: 85px; animation: floatAnim1 7s ease-in-out infinite alternate; opacity: 0.7; }
.sticker-6 { top: 52%; left: 3%; width: 90px; animation: floatAnim2 6s ease-in-out infinite alternate; opacity: 0.7; }

.sparkle {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
    animation: sparklePulse 3s infinite alternate;
}
.sparkle-1 { top: 22%; right: 18%; font-size: 2.2rem; }
.sparkle-2 { top: 28%; left: 20%; font-size: 2.6rem; animation-delay: 0.5s; }
.sparkle-3 { bottom: 25%; right: 22%; font-size: 2.4rem; animation-delay: 1s; }
.sparkle-4 { bottom: 22%; left: 24%; font-size: 2.2rem; animation-delay: 1.5s; }
.sparkle-5 { top: 8%; left: 45%; font-size: 1.8rem; animation-delay: 2s; }

@keyframes floatAnim1 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-25px) rotate(8deg); }
}

@keyframes floatAnim2 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(22px) rotate(-8deg); }
}

@keyframes sparklePulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.25); opacity: 1; }
}

.container {
    width: 100%;
    max-width: 920px;
    text-align: center;
    transition: all 0.4s ease;
    z-index: 10;
    position: relative;
    margin: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.pointing-hand-container {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.pointing-hand {
    font-size: 3.5rem;
    animation: bowBounce 1s infinite alternate;
    filter: drop-shadow(0 5px 10px rgba(236, 72, 153, 0.4));
}

@keyframes bowBounce {
    from { transform: translateY(-8px) scale(0.95); }
    to { transform: translateY(8px) scale(1.1); }
}

/* صورة بروفايل فدك */
.racer-avatar {
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s;
    position: relative;
}

.racer-avatar:hover {
    transform: scale(1.08) rotate(-2deg);
}

.avatar-ring {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border: 6px solid var(--pink-400);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35), 0 0 25px rgba(244, 114, 182, 0.4);
    animation: kuromiGlow 2.5s infinite alternate;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-badge {
    position: absolute;
    bottom: -10px;
    right: -15px;
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    animation: badgeBob 2s ease-in-out infinite alternate;
}

@keyframes kuromiGlow {
    from { box-shadow: 0 0 15px rgba(244, 114, 182, 0.5), 0 10px 25px rgba(236, 72, 153, 0.3); }
    to { box-shadow: 0 0 35px rgba(192, 132, 252, 0.8), 0 15px 35px rgba(219, 39, 119, 0.5); }
}

@keyframes badgeBob {
    from { transform: rotate(-5deg) scale(0.95); }
    to { transform: rotate(5deg) scale(1.05); }
}

.text-with-audio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.subtitle-audio {
    margin-bottom: 2rem;
}

.title {
    font-size: 3.4rem;
    color: var(--pink-600);
    font-weight: 800;
    text-shadow: 2px 3px 0px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(236, 72, 153, 0.3);
    margin: 0;
}

.subtitle {
    font-size: 2.2rem;
    color: var(--purple-kuromi);
    font-weight: 700;
    text-shadow: 1px 2px 0px rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* أزرار الصوت الورديّة */
.speak-btn {
    background: linear-gradient(135deg, var(--pink-400), var(--purple-light));
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.speak-btn:hover {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, var(--pink-500), var(--purple-kuromi));
}

.speak-btn:active {
    transform: scale(0.95);
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 1.5rem;
}

.input-audio-wrapper {
    position: relative;
    width: 85%;
    max-width: 480px;
}

input {
    width: 100%;
    padding: 18px 55px 18px 25px;
    font-size: 1.6rem;
    border: 4px solid var(--pink-300);
    border-radius: 50px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    transition: all 0.3s;
    font-family: 'Baloo Bhaijaan 2', cursive;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
}

input:focus {
    border-color: var(--pink-500);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.35);
    transform: scale(1.03);
    background: #ffffff;
}

.input-speak {
    position: absolute;
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
}

.input-speak:hover {
    transform: translateY(-50%) scale(1.15);
}

/* زر دخول كورومي الوردي */
.kuromi-btn {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: var(--text-white);
    border: 4px solid #ffffff;
    padding: 12px 28px;
    max-width: 92%;
    border-radius: 50px;
    font-size: clamp(1.15rem, 3.8vw, 1.75rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Baloo Bhaijaan 2', cursive;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4), 0 4px 0 #be185d;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.magic-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
}

.magic-btn-content .btn-text {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
}

.btn-speak {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.kuromi-btn:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.5), 0 6px 0 #be185d;
    background: linear-gradient(135deg, #f43f5e 0%, #9333ea 100%);
}

.kuromi-btn:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4), 0 1px 0 #be185d;
}

.error-message {
    color: #e11d48;
    font-weight: 800;
    font-size: 1.3rem;
    min-height: 40px;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 24px;
    border-radius: 22px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 2px dashed #f43f5e;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.16);
    max-width: 90%;
    text-align: center;
}

.error-message.show {
    opacity: 1;
}

.expired-msg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    transition: all 0.25s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
    font-family: inherit;
}

.contact-us-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.45);
    background: linear-gradient(135deg, #db2777, #be185d);
}

.hidden {
    display: none !important;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* بطاقات المواد بنمط كورومي اللطيف */
.kuromi-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    width: 360px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2), 0 4px 0 #f472b6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--pink-300);
    position: relative;
    overflow: hidden;
}

.kuromi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.4) 0%, rgba(243, 232, 255, 0.4) 100%);
    z-index: 0;
}

.card-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.card-badge-kuromi {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--pink-400);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.card-badge-kuromi img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s;
}

.kuromi-card:hover .card-badge-kuromi img {
    transform: scale(1.2) rotate(8deg);
}

.card-title-group {
    text-align: right;
    flex-grow: 1;
}

.card-title-group h3 {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--pink-600);
    line-height: 1.2;
}

.card-title-group .card-sub {
    font-size: 1rem;
    color: var(--purple-kuromi);
    font-weight: 700;
}

.card-speak {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--pink-400), var(--purple-light));
    color: white;
    border: none;
    flex-shrink: 0;
}

.kuromi-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 35px rgba(236, 72, 153, 0.3), 0 6px 0 #db2777;
    border-color: var(--pink-500);
}

/* التجاوب مع شاشات الهواتف والأجهزة اللوحية */
@media screen and (max-width: 768px) {
    .floating-sticker {
        opacity: 0.5;
    }
    .sticker-1 { width: 75px; }
    .sticker-2 { width: 65px; }
    .sticker-3 { width: 80px; }
    .sticker-4 { width: 70px; }
    .sticker-5, .sticker-6 { display: none; }

    .avatar-ring {
        width: 130px;
        height: 130px;
        border-width: 5px;
    }
    .avatar-badge {
        width: 50px;
        height: 50px;
        bottom: -5px;
        right: -10px;
    }
    .title { font-size: clamp(1.6rem, 5.5vw, 2.5rem) !important; line-height: 1.25; }
    .subtitle { font-size: clamp(1.1rem, 3.8vw, 1.6rem) !important; }
    input {
        font-size: 1.3rem;
        padding: 14px 45px 14px 15px;
    }
    .kuromi-btn {
        padding: 12px 30px;
        font-size: 1.5rem;
    }
    .cards-container {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    .kuromi-card {
        width: 100%;
        max-width: 350px;
    }
}



/* ==========================================================================
   UPGRADED 3D KUROMI ARCADE SUBJECT BUTTONS
   ========================================================================== */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.kuromi-card {
    text-decoration: none;
    background: linear-gradient(160deg, #ffffff 0%, #fff0f7 100%) !important;
    border-radius: 35px !important;
    width: 270px !important;
    min-height: 350px !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 10px 0 #be185d, 0 15px 30px rgba(236, 72, 153, 0.28) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 4px solid #f472b6 !important;
    position: relative !important;
    overflow: visible !important;
    cursor: pointer !important;
}

.kuromi-card::before {
    display: none !important;
}

.kuromi-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 16px 0 #be185d, 0 22px 35px rgba(236, 72, 153, 0.38) !important;
    border-color: #ec4899 !important;
}

.kuromi-card:active {
    transform: translateY(4px) scale(0.98) !important;
    box-shadow: 0 4px 0 #be185d, 0 8px 15px rgba(236, 72, 153, 0.25) !important;
}

.card-kuromi-mascot {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #f472b6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.22);
    transition: transform 0.3s ease;
}

.kuromi-card:hover .card-kuromi-mascot {
    transform: scale(1.1) rotate(5deg);
    border-color: #ec4899;
}

.card-kuromi-mascot img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.card-ribbon {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ec4899, #c084fc);
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(236, 72, 153, 0.35);
    border: 2px solid white;
}

.card-details {
    text-align: center;
    margin: 10px 0 15px;
    flex-grow: 1;
}

.card-title {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #be185d !important;
    margin: 0 0 6px !important;
    line-height: 1.2;
}

.card-sub {
    font-size: 0.95rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
    display: block;
}

.card-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.card-enter-pill {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 9px 24px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
    border: 2px solid white;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.kuromi-card:hover .card-enter-pill {
    background: linear-gradient(135deg, #db2777, #be185d);
    transform: scale(1.05);
}

.card-speak {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    background: #ffffff !important;
    color: #ec4899 !important;
    border: 2px solid #f472b6 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

.card-speak:hover {
    background: #fdf2f8 !important;
    transform: scale(1.15) rotate(10deg) !important;
    border-color: #ec4899 !important;
}



/* ==========================================================================
   🎮 3D ARCADE BUTTONS - أزرار الألعاب المجسمة ثلاثية الأبعاد
   دمج حقيقي واحترافي للصورة داخل هيكل الزر كعنصر مجسم واحد
   ========================================================================== */
.kuromi-image-button,
.kuromi-figure-button {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    box-sizing: border-box !important;
    user-select: none !important;

    /* جسم الزر المجسم 3D - مرن ومتجاوب تماماً */
    width: 250px !important;
    max-width: 100% !important;
    min-height: 250px !important;
    padding: 16px 14px 12px !important;
    border-radius: 32px !important;
    
    /* خلفية متدرجة فخمة مستوحاة من ألعاب الآركيد */
    background: linear-gradient(180deg, #ffffff 0%, #fff0f7 40%, #fed7e2 100%) !important;
    
    /* حدود ثلاثية الأبعاد بارزة مع عمق سفلي حقيقي */
    border: 3.5px solid #f472b6 !important;
    border-bottom: 9px solid #db2777 !important;
    
    /* تأثيرات اللمعان والظلال ثلاثية الأبعاد */
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(219, 39, 119, 0.15),
        0 8px 0 #be185d,
        0 16px 25px rgba(236, 72, 153, 0.28) !important;
        
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* تنويعات الألوان للأزرار المجسمة */
.kuromi-image-button.arcade-purple,
.kuromi-figure-button.arcade-purple {
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 40%, #f3e8ff 100%) !important;
    border-color: #c084fc !important;
    border-bottom-color: #9333ea !important;
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(147, 51, 234, 0.15),
        0 8px 0 #7e22ce,
        0 16px 25px rgba(168, 85, 247, 0.28) !important;
}

.kuromi-image-button.arcade-rose,
.kuromi-figure-button.arcade-rose {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 40%, #ffe4e6 100%) !important;
    border-color: #fb7185 !important;
    border-bottom-color: #e11d48 !important;
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(225, 29, 72, 0.15),
        0 8px 0 #be123c,
        0 16px 25px rgba(244, 63, 94, 0.28) !important;
}

.kuromi-image-button.arcade-gold,
.kuromi-figure-button.arcade-gold {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 40%, #fef3c7 100%) !important;
    border-color: #fcd34d !important;
    border-bottom-color: #f59e0b !important;
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(245, 158, 11, 0.15),
        0 8px 0 #b45309,
        0 16px 25px rgba(245, 158, 11, 0.28) !important;
}

/* قبة / إطار عرض الصورة داخل الزر (Arcade Showcase Dome) */
.char-halo,
.figure-avatar-holder {
    position: relative !important;
    width: 135px !important;
    height: 135px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle, #ffffff 50%, #fce7f3 100%) !important;
    border: 3px solid #ffffff !important;
    box-shadow: 
        inset 0 3px 8px rgba(236, 72, 153, 0.2),
        0 4px 12px rgba(219, 39, 119, 0.2) !important;
    margin-bottom: 10px !important;
    transition: transform 0.25s ease !important;
}

.arcade-purple .char-halo,
.arcade-purple .figure-avatar-holder {
    background: radial-gradient(circle, #ffffff 50%, #f3e8ff 100%) !important;
    box-shadow: 
        inset 0 3px 8px rgba(168, 85, 247, 0.2),
        0 4px 12px rgba(147, 51, 234, 0.2) !important;
}

/* صورة كورومي المدمجة داخل القبة */
.kuromi-btn-img,
.figure-mascot-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* الشارة العلوية الملتصقة بإطار الصورة */
.figure-badge-pill {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: linear-gradient(135deg, #ec4899, #c084fc) !important;
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    padding: 3px 10px !important;
    border-radius: 16px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 4 !important;
}

/* شريط العنوان التفاعلي داخل الزر - يلتف بأناقة ولا يخرج أبداً */
.btn-pedestal-ribbon,
.figure-pedestal-ribbon {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    color: #ffffff !important;
    padding: 8px 10px !important;
    border-radius: 20px !important;
    border: 2px solid #ffffff !important;
    border-bottom: 4px solid #9d174d !important;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 4px 10px rgba(219, 39, 119, 0.3) !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: normal !important;
    text-align: center !important;
    min-height: 42px !important;
    z-index: 3 !important;
    transition: all 0.18s ease !important;
    overflow: hidden !important;
}

.ribbon-title,
.figure-title {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    font-weight: 900 !important;
    font-size: clamp(0.95rem, 2.6vw, 1.25rem) !important;
    line-height: 1.25 !important;
    text-align: center !important;
    flex: 1 1 auto !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* تفاعل التحويم (Hover) للزر المجسم */
.kuromi-image-button:hover,
.kuromi-figure-button:hover {
    transform: translateY(-6px) !important;
    border-bottom-width: 12px !important;
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.95),
        0 10px 0 #be185d,
        0 22px 35px rgba(236, 72, 153, 0.42) !important;
}

.kuromi-image-button.arcade-purple:hover,
.kuromi-figure-button.arcade-purple:hover {
    box-shadow: 
        inset 0 4px 0 rgba(255, 255, 255, 0.95),
        0 10px 0 #7e22ce,
        0 22px 35px rgba(168, 85, 247, 0.42) !important;
}

.kuromi-image-button:hover .char-halo,
.kuromi-figure-button:hover .figure-avatar-holder {
    transform: scale(1.06) !important;
    border-color: #fbcfe8 !important;
}

.kuromi-image-button:hover .kuromi-btn-img,
.kuromi-figure-button:hover .figure-mascot-img {
    transform: scale(1.1) rotate(4deg) !important;
}

.kuromi-image-button:hover .btn-pedestal-ribbon,
.kuromi-figure-button:hover .figure-pedestal-ribbon {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    transform: scale(1.02) !important;
}

/* تفاعل الضغط الحقيقي (3D Active Click / Press) */
.kuromi-image-button:active,
.kuromi-figure-button:active {
    transform: translateY(6px) !important;
    border-bottom-width: 3px !important;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 2px 0 #be185d,
        0 6px 12px rgba(236, 72, 153, 0.2) !important;
}

.kuromi-image-button:active .btn-pedestal-ribbon,
.kuromi-figure-button:active .figure-pedestal-ribbon {
    border-bottom-width: 2px !important;
    transform: scale(0.98) !important;
}

/* زر الصوت الصغير المتناسق داخل الزر */
.mini-speak-btn,
.mini-speaker-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s, background 0.2s !important;
}

.mini-speak-btn:hover,
.mini-speaker-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.18) !important;
}

/* تجاوب إضافي للشاشات الصغيرة لتجنب خروج النصوص */
@media screen and (max-width: 600px) {
    .kuromi-image-button,
    .kuromi-figure-button {
        width: 100% !important;
        max-width: 230px !important;
        min-height: 220px !important;
        padding: 12px 10px 10px !important;
    }
    
    .char-halo,
    .figure-avatar-holder {
        width: 115px !important;
        height: 115px !important;
    }
    
    .kuromi-btn-img,
    .figure-mascot-img {
        width: 85px !important;
        height: 85px !important;
        max-width: 85px !important;
        max-height: 85px !important;
    }
    
    .ribbon-title,
    .figure-title {
        font-size: 1rem !important;
    }
}

/* ==========================================
   OFFICIAL BUTTERFLY COPYRIGHT FOOTER
   ========================================== */
.platform-footer {
    text-align: center;
    padding: 30px 15px 40px;
    margin-top: 40px;
    width: 100%;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.platform-footer .platform-footer-link {
    color: #9d174d;
    text-decoration: none;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2.5px solid #f472b6;
    padding: 10px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    max-width: 90%;
    word-break: break-word;
}

.platform-footer .platform-footer-link:hover {
    color: #db2777;
    border-color: #ec4899;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.35);
    background: #ffffff;
}
