/**
 * Eduplayify Game Mode: Conveyor Sorter (سير الفرز)
 * Stylized responsive industrial conveyor belt mode with animated flight to baskets
 * Optimized for Interactive Whiteboards & Touch Screens
 */

.conveyor-stage {
    position: relative;
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 6px 12px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: none;
    -webkit-user-select: none;
    overflow: visible !important;
}

#gamePlayArea:fullscreen .conveyor-stage,
.gpa-fullscreen .conveyor-stage {
    max-width: 1040px;
}

/* Status Bar: Hearts, Streak, Progress */
.conveyor-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.conveyor-hearts {
    display: flex;
    gap: 5px;
    font-size: 1.25rem;
    line-height: 1;
}

.conveyor-heart {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.conveyor-heart.lost {
    opacity: 0.25;
    transform: scale(0.8);
    filter: grayscale(100%);
}

.conveyor-streak {
    font-size: 0.9rem;
    font-weight: 800;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: conveyorPulse 1s infinite alternate;
}

.conveyor-progress {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ink-soft, #64748b);
}

/* Prompt Header */
.conveyor-prompt-wrap {
    text-align: center;
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conveyor-prompt-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink, #0f172a);
    line-height: 1.35;
}

.conveyor-prompt-img-box {
    position: relative;
    display: inline-block;
    margin: 8px auto 4px;
    cursor: zoom-in;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 2px solid #cbd5e1;
    background: #ffffff;
    max-width: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conveyor-prompt-img-box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
}

.conveyor-prompt-img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.conveyor-zoom-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 8px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.conveyor-prompt-hint {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--ink-soft, #64748b);
}

/* Baskets Rows */
.conveyor-baskets-row {
    display: grid;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.conveyor-baskets-row.cols-1 { grid-template-columns: minmax(auto, 360px); }
.conveyor-baskets-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.conveyor-baskets-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.conveyor-baskets-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.conveyor-baskets-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
.conveyor-baskets-row.cols-6 { grid-template-columns: repeat(3, 1fr); }
.conveyor-baskets-row.cols-7,
.conveyor-baskets-row.cols-8 { grid-template-columns: repeat(4, 1fr); }

/* Individual Basket Button - Styled with Centered Icon and Prominent Name */
.conveyor-basket-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 8px 8px 7px;
    min-height: 105px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: var(--ink, #0f172a);
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    touch-action: manipulation;
}

.conveyor-basket-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.conveyor-basket-btn:hover .basket-slot {
    border-color: var(--cat-accent, #4f46e5);
    background: rgba(79, 70, 229, 0.04);
}

.conveyor-basket-btn:active {
    transform: scale(0.98);
}

/* المنطقة المركزية المستغلة لاسم السلة وأيقونتها */
.conveyor-basket-btn .basket-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    flex-grow: 1;
    padding: 2px 0 4px;
}

.conveyor-basket-btn .basket-icon {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
}

.conveyor-basket-btn .basket-label {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--dark, #0f172a);
    text-align: center;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 4px;
}

/* تحسين المساحة والخط لأطوار 4 و 5 و 6 سلال لمنع أي تقطيع للأسماء */
.conveyor-baskets-row.cols-4 .conveyor-basket-btn .basket-icon {
    font-size: 1.35rem;
}
.conveyor-baskets-row.cols-4 .conveyor-basket-btn .basket-label {
    font-size: 0.90rem;
}

.conveyor-baskets-row.cols-5 .conveyor-basket-btn .basket-icon {
    font-size: 1.25rem;
}
.conveyor-baskets-row.cols-5 .conveyor-basket-btn .basket-label {
    font-size: 0.85rem;
    line-height: 1.2;
}

.conveyor-baskets-row.cols-6 .conveyor-basket-btn .basket-icon {
    font-size: 1.15rem;
}
.conveyor-baskets-row.cols-6 .conveyor-basket-btn .basket-label {
    font-size: 0.78rem;
    line-height: 1.15;
}

.conveyor-basket-btn .basket-count-badge {
    position: absolute;
    top: 5px;
    inset-inline-end: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cat-accent, #4f46e5);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid var(--cat-accent, #4f46e5);
    padding: 1px 6px;
    border-radius: 999px;
    z-index: 2;
    line-height: 1.35;
    white-space: nowrap;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.conveyor-basket-btn .basket-count-badge.badge-pop {
    animation: badgePopAnim 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.conveyor-basket-btn .basket-count-badge.badge-completed {
    background: #22c55e !important;
    color: #ffffff !important;
    border-color: #22c55e !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

@keyframes badgePopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.conveyor-basket-btn.basket-absorbing {
    animation: basketAbsorbPulse 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes basketAbsorbPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.conveyor-basket-btn.basket-completed {
    border-color: #22c55e !important;
}

.conveyor-basket-btn.basket-completed .basket-slot {
    border-color: #86efac;
    background: #f0fdf4;
}

.conveyor-basket-btn.basket-completed .basket-slot-hint {
    color: #15803d;
    font-weight: 800;
}

.conveyor-basket-btn .basket-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 28px;
    padding: 2px 6px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.conveyor-basket-btn .basket-slot-hint {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Color Themes for Baskets matching Classification normal mode */
.conveyor-basket-btn.theme-0 { --cat-accent: #4f46e5; border-top: 4px solid #4f46e5; }
.conveyor-basket-btn.theme-1 { --cat-accent: #d97706; border-top: 4px solid #d97706; }
.conveyor-basket-btn.theme-2 { --cat-accent: #059669; border-top: 4px solid #059669; }
.conveyor-basket-btn.theme-3 { --cat-accent: #7c3aed; border-top: 4px solid #7c3aed; }
.conveyor-basket-btn.theme-4 { --cat-accent: #e11d48; border-top: 4px solid #e11d48; }
.conveyor-basket-btn.theme-5 { --cat-accent: #0891b2; border-top: 4px solid #0891b2; }
.conveyor-basket-btn.theme-6 { --cat-accent: #ea580c; border-top: 4px solid #ea580c; }
.conveyor-basket-btn.theme-7 { --cat-accent: #2563eb; border-top: 4px solid #2563eb; }

/* Basket Animation States */
.conveyor-basket-btn.basket-correct {
    border-color: #22c55e !important;
    background: #ecfdf5 !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.45) !important;
    animation: basketBounce 0.38s ease;
}
.conveyor-basket-btn.basket-correct .basket-slot {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
}

.conveyor-basket-btn.basket-incorrect {
    border-color: #ef4444 !important;
    background: #fee2e2 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45) !important;
    animation: basketShake 0.4s ease;
}
.conveyor-basket-btn.basket-incorrect .basket-slot {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

/* Conveyor Track & Belt - Industrial Arcade Design */
.conveyor-track-container {
    position: relative;
    direction: ltr !important;
    width: 100%;
    height: 165px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 45%, #0f172a 65%, #1e293b 100%);
    border-radius: 20px;
    border: 3px solid #475569;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Metallic Industrial Corner Bolts */
.conveyor-bolt {
    position: absolute;
    width: 11px;
    height: 11px;
    background: radial-gradient(circle at 35% 35%, #e2e8f0 0%, #94a3b8 50%, #475569 100%);
    border-radius: 50%;
    border: 1px solid #334155;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.conveyor-bolt.top-left { top: 7px; left: 7px; }
.conveyor-bolt.top-right { top: 7px; right: 7px; }
.conveyor-bolt.bottom-left { bottom: 7px; left: 7px; }
.conveyor-bolt.bottom-right { bottom: 7px; right: 7px; }

/* 3D Chrome Rollers with Axle Hub on both ends */
.conveyor-roller {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 90px;
    background: linear-gradient(90deg, #334155 0%, #94a3b8 35%, #e2e8f0 50%, #64748b 80%, #1e293b 100%);
    border-radius: 8px;
    border: 2px solid #64748b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conveyor-roller::after {
    content: '';
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 40% 40%, #ffffff 0%, #cbd5e1 50%, #475569 100%);
    border-radius: 50%;
    border: 1.5px solid #1e293b;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.conveyor-roller.roller-left { left: 8px; }
.conveyor-roller.roller-right { right: 8px; }

/* The Moving Belt Surface with Rubber Tread Pattern */
.conveyor-belt-surface {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    height: 18px;
    background: repeating-linear-gradient(
        90deg,
        #1e293b 0px,
        #1e293b 16px,
        #334155 16px,
        #334155 20px,
        #0f172a 20px,
        #0f172a 32px
    );
    border-radius: 5px;
    border-top: 1.5px solid #64748b;
    border-bottom: 2px solid #000000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 3px 6px rgba(0, 0, 0, 0.4);
    animation: conveyorBeltScroll 0.75s linear infinite;
}

/* Neon Guide Track Rail */
.conveyor-belt-surface::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.8) 50%, rgba(6, 182, 212, 0.2) 100%);
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.7);
}

@keyframes conveyorBeltScroll {
    0% { background-position: 0 0; }
    100% { background-position: 32px 0; }
}

/* Floating Moving Item Card (Inside Track) */
.conveyor-item-card {
    position: absolute;
    top: 16px;
    left: 0;
    width: 140px;
    max-width: 160px;
    height: 110px;
    box-sizing: border-box;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #6366f1;
    border-top: 4px solid #4f46e5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    z-index: 5;
    will-change: left;
    transition: width 0.2s ease;
}

.conveyor-item-card.has-image {
    padding: 6px 8px;
}

/* بطاقة الصورة فقط (نمط الألعاب المصورة كلياً مثل تصنيف بالصور) */
.conveyor-item-card.is-image-only {
    width: 135px;
    padding: 5px;
}

.conveyor-item-card.is-image-only .conveyor-thumb-wrap,
.conveyor-flying-card.is-image-only .conveyor-thumb-wrap {
    width: 100%;
    height: 96px;
    margin: 0;
}

.conveyor-item-card.is-image-only .conveyor-item-thumb,
.conveyor-flying-card.is-image-only .conveyor-item-thumb {
    width: 100%;
    height: 96px;
    max-height: 96px;
    object-fit: contain;
    margin: 0;
}

/* بطاقة الصورة والنص معاً */
.conveyor-item-card.is-image-and-text {
    width: 165px;
    max-width: 185px;
}

/* بطاقة عبارة صح وخطأ لتتسع للجملة وتمنع اقتطاعها */
.conveyor-item-card.is-statement {
    width: 210px;
    max-width: 250px;
    padding: 6px 10px;
}

.conveyor-item-card.is-statement .conveyor-item-text {
    font-size: 0.88rem;
    line-height: 1.25;
    -webkit-line-clamp: 3;
}

/* غلاف الصورة المصغرة وأداة التكبير */
.conveyor-thumb-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 54px;
    margin-bottom: 4px;
    cursor: zoom-in;
}

.conveyor-item-thumb {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.2s ease;
}

.conveyor-thumb-wrap:hover .conveyor-item-thumb {
    transform: scale(1.04);
}

.conveyor-thumb-zoom-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    border: none;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 6;
}

.conveyor-thumb-wrap:hover .conveyor-thumb-zoom-btn {
    opacity: 1;
    transform: scale(1.15);
}

.conveyor-item-text {
    direction: auto;
    unicode-bidi: plaintext;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink, #0f172a);
    line-height: 1.25;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conveyor-item-tts {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* Standalone Flying Card (Unclipped, Attached to Stage) */
.conveyor-flying-card {
    box-sizing: border-box;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 16px;
    border: 2.5px solid #6366f1;
    border-top: 4px solid #4f46e5;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    z-index: 99999 !important;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.conveyor-flying-card.has-image {
    padding: 6px 8px;
}

.conveyor-flying-card.is-image-only {
    padding: 5px;
}

.conveyor-flying-card.is-image-and-text {
    width: 165px;
}

.conveyor-flying-card.is-statement {
    width: 210px;
}

.conveyor-flying-card .conveyor-thumb-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 54px;
    margin-bottom: 4px;
}

.conveyor-flying-card .conveyor-item-thumb {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

.conveyor-flying-card .conveyor-thumb-zoom-btn {
    display: none !important;
}

.conveyor-flying-card .conveyor-item-text {
    direction: auto;
    unicode-bidi: plaintext;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.conveyor-flying-card.is-statement .conveyor-item-text {
    font-size: 0.88rem;
    line-height: 1.25;
}

.conveyor-flying-card .conveyor-item-tts {
    display: none !important;
}

/* Drop off belt (Missed) */
.conveyor-item-card.is-dropping {
    transition: transform 0.35s ease-in, opacity 0.35s ease;
    transform: translateY(65px) rotate(18deg) scale(0.6) !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Floating Feedback Popup */
.conveyor-feedback-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 30;
    pointer-events: none;
    animation: conveyorPopFade 0.75s forwards ease-out;
}

.conveyor-feedback-pop.correct {
    background: #10b981;
}

.conveyor-feedback-pop.incorrect {
    background: #ef4444;
}

@keyframes conveyorPopFade {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    30% { transform: translate(-50%, -65%) scale(1.1); opacity: 1; }
    70% { transform: translate(-50%, -75%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -90%) scale(0.9); opacity: 0; }
}

@keyframes basketBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.14); }
    70% { transform: scale(0.96); }
}

@keyframes basketShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes conveyorPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* =========================================================================
   ملء الشاشة المخصص للسبورات التفاعلية والأطفال (Interactive Whiteboard & Kids)
   - يتم سحب ساحة اللعب لأسفل الشاشة (margin-top: auto) لكي تصل أيدي الأطفال بسهولة
   - إذا زاد عدد السلال تنمو لأعلى وتبقى السلال ظاهرة
   - تكبير العناصر لتكون واضحة وجذابة وضخمة للمس
   ========================================================================= */
#gamePlayArea:fullscreen .conveyor-stage,
.gpa-fullscreen .conveyor-stage {
    max-width: 1040px;
    width: 96%;
    margin-top: auto !important; /* ينزل لأسفل الشاشة ليكون بمتناول يد الأطفال */
    margin-bottom: 22px !important;
    gap: 16px;
    padding-bottom: 0;
}

#gamePlayArea:fullscreen .conveyor-track-container,
.gpa-fullscreen .conveyor-track-container {
    height: 195px;
    border-radius: 24px;
}

#gamePlayArea:fullscreen .conveyor-roller,
.gpa-fullscreen .conveyor-roller {
    width: 32px;
    height: 110px;
}

#gamePlayArea:fullscreen .conveyor-belt-surface,
.gpa-fullscreen .conveyor-belt-surface {
    height: 22px;
    bottom: 28px;
    left: 30px;
    right: 30px;
}

#gamePlayArea:fullscreen .conveyor-item-card,
.gpa-fullscreen .conveyor-item-card {
    width: 160px;
    max-width: 180px;
    height: 130px;
    top: 20px;
    padding: 10px 12px;
    border-radius: 18px;
}

#gamePlayArea:fullscreen .conveyor-flying-card,
.gpa-fullscreen .conveyor-flying-card {
    border-radius: 18px;
}

#gamePlayArea:fullscreen .conveyor-item-text,
.gpa-fullscreen .conveyor-item-text,
#gamePlayArea:fullscreen .conveyor-flying-card .conveyor-item-text,
.gpa-fullscreen .conveyor-flying-card .conveyor-item-text {
    font-size: 1.15rem;
}

#gamePlayArea:fullscreen .conveyor-item-thumb,
.gpa-fullscreen .conveyor-item-thumb,
#gamePlayArea:fullscreen .conveyor-flying-card .conveyor-item-thumb,
.gpa-fullscreen .conveyor-flying-card .conveyor-item-thumb {
    max-height: 60px;
}

#gamePlayArea:fullscreen .conveyor-basket-btn,
.gpa-fullscreen .conveyor-basket-btn {
    min-height: 120px;
    padding: 10px 14px;
    border-radius: 18px;
}

#gamePlayArea:fullscreen .conveyor-basket-btn .basket-header,
.gpa-fullscreen .conveyor-basket-btn .basket-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
}

#gamePlayArea:fullscreen .conveyor-basket-btn .basket-icon,
.gpa-fullscreen .conveyor-basket-btn .basket-icon {
    font-size: 1.45rem;
}

#gamePlayArea:fullscreen .conveyor-basket-btn .basket-label,
.gpa-fullscreen .conveyor-basket-btn .basket-label {
    font-size: 1.05rem;
}

#gamePlayArea:fullscreen .conveyor-basket-btn .basket-slot,
.gpa-fullscreen .conveyor-basket-btn .basket-slot {
    min-height: 60px;
}

#gamePlayArea:fullscreen .conveyor-basket-btn .basket-slot-hint,
.gpa-fullscreen .conveyor-basket-btn .basket-slot-hint {
    font-size: 0.9rem;
}

#gamePlayArea:fullscreen .conveyor-status-bar,
.gpa-fullscreen .conveyor-status-bar {
    padding: 10px 20px;
    font-size: 1.05rem;
}

#gamePlayArea:fullscreen .conveyor-hearts,
.gpa-fullscreen .conveyor-hearts {
    font-size: 1.45rem;
    gap: 7px;
}

#gamePlayArea:fullscreen .conveyor-prompt-title,
.gpa-fullscreen .conveyor-prompt-title {
    font-size: 1.35rem;
}

#gamePlayArea:fullscreen .conveyor-prompt-hint,
.gpa-fullscreen .conveyor-prompt-hint {
    font-size: 0.95rem;
}

/* Responsiveness on tablet & mobile */
@media (max-width: 768px) {
    .conveyor-baskets-row.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .conveyor-baskets-row.cols-5 {
        grid-template-columns: repeat(6, 1fr);
    }
    .conveyor-baskets-row.cols-5 .conveyor-basket-btn:nth-child(1),
    .conveyor-baskets-row.cols-5 .conveyor-basket-btn:nth-child(2),
    .conveyor-baskets-row.cols-5 .conveyor-basket-btn:nth-child(3) {
        grid-column: span 2;
    }
    .conveyor-baskets-row.cols-5 .conveyor-basket-btn:nth-child(4),
    .conveyor-baskets-row.cols-5 .conveyor-basket-btn:nth-child(5) {
        grid-column: span 3;
    }
    .conveyor-baskets-row.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .conveyor-baskets-row {
        gap: 8px;
    }
    .conveyor-basket-btn {
        min-height: 80px;
        padding: 5px 6px;
        border-radius: 12px;
    }
    .conveyor-basket-btn .basket-body {
        gap: 2px;
        padding: 1px 0;
    }
    .conveyor-basket-btn .basket-icon {
        font-size: 1.15rem;
    }
    .conveyor-basket-btn .basket-label {
        font-size: 0.82rem;
        line-height: 1.2;
    }
    .conveyor-basket-btn .basket-slot {
        min-height: 26px;
        padding: 2px 4px;
    }
    .conveyor-basket-btn .basket-slot-hint {
        font-size: 0.70rem;
    }
    .conveyor-basket-btn .basket-count-badge {
        font-size: 0.66rem;
        padding: 1px 5px;
    }
}

/* Responsiveness on small screens (Mobile Portrait) */
@media (max-width: 480px) {
    .conveyor-stage {
        padding: 4px 6px 14px;
        gap: 8px;
    }
    .conveyor-track-container {
        height: 140px;
    }
    .conveyor-item-card {
        width: 110px;
        height: 92px;
        top: 14px;
        padding: 5px 6px;
    }
    .conveyor-item-text {
        font-size: 0.82rem;
    }
    .conveyor-baskets-row {
        gap: 6px;
    }
    .conveyor-baskets-row.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .conveyor-basket-btn {
        min-height: 72px;
        padding: 4px 4px;
        border-radius: 10px;
    }
    .conveyor-basket-btn .basket-icon {
        font-size: 1.05rem;
    }
    .conveyor-basket-btn .basket-label {
        font-size: 0.76rem;
    }
    .conveyor-basket-btn .basket-slot {
        min-height: 24px;
        padding: 1px 2px;
    }
    .conveyor-basket-btn .basket-slot-hint {
        font-size: 0.66rem;
    }
    .conveyor-basket-btn .basket-count-badge {
        font-size: 0.60rem;
        padding: 0 4px;
    }
}
