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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --purple-pro: #7c3aed;
    --purple-light: #a78bfa;
    --gold: #f59e0b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --text-dark: #0f172a;
    --text-white: #ffffff;
}

body {
    font-family: 'Tajawal', 'Baloo Bhaijaan 2', sans-serif;
    background: 
        radial-gradient(circle at 10% 12%, rgba(56, 189, 248, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(244, 114, 182, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 12% 88%, rgba(139, 92, 246, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85) 0%, transparent 65%),
        linear-gradient(135deg, #f0fdf4 0%, #ffffff 30%, #eff6ff 70%, #fdf2f8 100%);
    background-attachment: fixed;
    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;
    background-image: 
        radial-gradient(circle, rgba(99, 102, 241, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.floating-sticker {
    position: absolute;
    filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.22));
    opacity: 0.88;
    transition: transform 0.3s;
}

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

.sparkle {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
    opacity: 0.88;
    animation: sparklePulse 2.5s infinite alternate;
}
.sparkle-1 { top: 22%; right: 18%; font-size: 2.2rem; }
.sparkle-2 { top: 28%; left: 20%; font-size: 2.4rem; animation-delay: 0.5s; }
.sparkle-3 { bottom: 25%; right: 22%; font-size: 2.2rem; animation-delay: 1s; }
.sparkle-4 { bottom: 22%; left: 24%; font-size: 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.06) translateY(-4px);
}

.avatar-ring {
    width: 155px;
    height: 155px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: none;
}

/* هالة ضوئية خلفية متدرجة بدون أي حواف قاسية أو دائرية حادة */
.avatar-ring::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.05) 60%, transparent 75%);
    z-index: 0;
    animation: kuromiGlow 3s infinite alternate;
}

.avatar-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 20px rgba(79, 70, 229, 0.28));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racer-avatar:hover .avatar-img {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 16px 26px rgba(79, 70, 229, 0.38));
}

.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(99, 102, 241, 0.3), 0 10px 25px rgba(79, 70, 229, 0.2); }
    to { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 15px 35px rgba(67, 56, 202, 0.35); }
}

@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;
}

.login-section {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 35px 25px 40px;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: 
        0 20px 50px rgba(79, 70, 229, 0.12),
        0 4px 15px rgba(14, 165, 233, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.subjects-section {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 42px;
    padding: 35px 25px 40px;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 
        0 20px 50px rgba(79, 70, 229, 0.12),
        0 4px 15px rgba(14, 165, 233, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 45%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
}

.badge-demo {
    display: inline-block;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: var(--primary);
    border: 1.5px solid #c7d2fe;
    padding: 2px 14px;
    border-radius: 20px;
    margin: 0 6px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.subtitle {
    font-size: clamp(1.2rem, 3.2vw, 1.8rem);
    color: #4338ca;
    font-weight: 700;
    margin: 0;
}

/* أزرار الصوت الاحترافية */
.speak-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.speak-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.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, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    border: 3px solid #ffffff;
    padding: 14px 38px;
    max-width: 92%;
    border-radius: 50px;
    font-size: clamp(1.15rem, 3.8vw, 1.6rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35), 0 4px 0 var(--primary-dark);
    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: 12px;
    max-width: 100%;
}

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

.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.05) translateY(-3px);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.45), 0 5px 0 var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.kuromi-btn:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3), 0 1px 0 var(--primary-dark);
}

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

    width: 275px !important;
    max-width: 100% !important;
    min-height: 285px !important;
    padding: 24px 20px 20px !important;
    border-radius: 32px !important;
    
    /* خلفية متدرجة انسيابية وعصرية مدمجة */
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%) !important;
    border: 2px solid #e0e7ff !important;
    border-bottom: 6px solid #4f46e5 !important;
    
    box-shadow: 
        0 14px 30px -6px rgba(79, 70, 229, 0.16),
        0 4px 6px -2px rgba(15, 23, 42, 0.04) !important;
        
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.kuromi-image-button:hover,
.kuromi-figure-button:hover {
    transform: translateY(-8px) scale(1.03) !important;
    border-color: #c7d2fe !important;
    border-bottom-color: #4338ca !important;
    box-shadow: 
        0 24px 44px -8px rgba(79, 70, 229, 0.28),
        0 8px 12px -3px rgba(15, 23, 42, 0.06) !important;
}

/* مساحة عرض الصورة بدون إطار قبة دائرية محبوسة */
.char-halo,
.figure-avatar-holder {
    position: relative !important;
    width: 100% !important;
    height: 145px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
    transition: transform 0.25s ease !important;
}

/* هالة ضوئية ناعمة جداً خلف الشخصية بدون أي حواف قاسية */
.char-halo::before,
.figure-avatar-holder::before {
    content: '' !important;
    position: absolute !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.03) 60%, transparent 75%) !important;
    z-index: 0 !important;
}

/* صورة الشخصية تقف طبيعياً وبحجم بارز مع ظل واقعي يتبع تفاصيلها */
.kuromi-btn-img,
.figure-mascot-img {
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    max-height: 130px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 10px 16px rgba(79, 70, 229, 0.22)) !important;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.kuromi-image-button:hover .kuromi-btn-img,
.kuromi-figure-button:hover .figure-mascot-img {
    transform: scale(1.08) translateY(-4px) !important;
    filter: drop-shadow(0 14px 22px rgba(79, 70, 229, 0.32)) !important;
}

/* الشارة العلوية المدمجة في زاوية البطاقة */
.figure-badge-pill {
    position: absolute !important;
    top: -10px !important;
    right: 14px !important;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9) !important;
    color: white !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    padding: 3px 12px !important;
    border-radius: 16px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 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, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28) !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: normal !important;
    text-align: center !important;
    min-height: 44px !important;
    z-index: 3 !important;
    transition: all 0.2s ease !important;
}

.btn-pedestal-ribbon:hover,
.figure-pedestal-ribbon:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.38) !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: 100% !important;
        height: 120px !important;
    }

    .char-halo::before,
    .figure-avatar-holder::before {
        width: 110px !important;
        height: 110px !important;
    }
    
    .kuromi-btn-img,
    .figure-mascot-img {
        width: 105px !important;
        height: 105px !important;
        max-width: 105px !important;
        max-height: 105px !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;
}

/* علامات وقفل النسخة التجريبية */
.demo-locked-item {
    position: relative !important;
    cursor: not-allowed !important;
    filter: saturate(0.65) !important;
    opacity: 0.85 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transition: all 0.25s ease !important;
}

.demo-locked-item:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.demo-lock-pill {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4) !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    pointer-events: none !important;
}
