/* ===================================================
   MOUSE MASTERY ACADEMY - HỌC VIỆN LUYỆN CHUỘT NÔNG TRẠI
   Giao diện Cyber-Eco hiện đại, trực quan, thu hút học sinh
   =================================================== */

#screen-mouse {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 20%, #0c1e38 0%, #070d19 100%);
    color: #f8fafc;
    padding: 16px 24px 32px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
    z-index: 50;
    font-family: 'Nunito', system-ui, sans-serif;
}

/* TOPBAR */
.mouse-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1020px;
    margin: 0 auto 16px auto;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mouse-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-mouse-back {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-mouse-back:hover {
    background: #334155;
    color: #ffffff;
    transform: translateX(-2px);
}

.mouse-level-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 16px;
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.mouse-level-btn:hover {
    background: #273549;
    border-color: #38bdf8;
}

/* HUD BAR */
.mouse-main-container {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mouse-hud-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mouse-hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse-hud-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mouse-hud-val {
    font-size: 22px;
    font-weight: 900;
    color: #38bdf8;
}

.mouse-instruction-box {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* PLAYGROUND ARENA */
.mouse-arena-box {
    background: linear-gradient(180deg, #132742 0%, #0c1728 100%);
    border: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 24px;
    height: 490px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
}

/* TARGET ITEMS */
.mouse-target-entity {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.mouse-target-entity:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.mouse-target-bubble {
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.85);
    border: 2px solid #38bdf8;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mouse-target-label {
    background: #0f172a;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

/* DRAG AND DROP ZONE */
.drag-baskets-container {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    gap: 16px;
    z-index: 5;
}

.drag-basket-slot {
    flex: 1;
    max-width: 210px;
    height: 125px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 2.5px dashed #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    position: relative;
}

.drag-basket-slot.basket-hover {
    transform: scale(1.06);
    border-style: solid;
    box-shadow: 0 0 30px currentColor;
}

.drag-basket-icon {
    font-size: 38px;
}

.drag-basket-title {
    font-weight: 900;
    font-size: 14px;
}

.drag-basket-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.draggable-produce {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.95);
    border: 3px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    cursor: grab;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: transform 0.08s ease;
}

.draggable-produce:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.22);
    box-shadow: 0 14px 35px rgba(56, 189, 248, 0.7);
}

/* MAZE FOR HOVER TRACKING */
.maze-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.bee-cursor-follower {
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 34px;
    pointer-events: none;
    z-index: 50;
    transition: none !important;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.bee-offroad-warning {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    display: none;
    z-index: 60;
    animation: pulseWarn 0.5s infinite alternate;
}

@keyframes pulseWarn {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.06); }
}

/* POP ANIMATIONS */
.mouse-pop-fx {
    position: absolute;
    font-weight: 900;
    font-size: 20px;
    pointer-events: none;
    animation: mousePopUp 0.6s forwards ease-out;
    z-index: 100;
    transform: translate(-50%, -50%);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    white-space: nowrap;
}

@keyframes mousePopUp {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
    50% { opacity: 1; transform: translate(-50%, -90%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -130%) scale(1.4); }
}

/* MODAL SELECTION & DIFFICULTY FILTER */
.mouse-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mouse-modal-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.mouse-diff-filter-bar {
    display: flex;
    gap: 8px;
    background: #0f172a;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.mouse-diff-filter-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mouse-diff-filter-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.mouse-level-row-item {
    background: #1e293b;
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mouse-level-row-item:hover {
    background: #273549;
    border-color: #38bdf8;
    transform: translateY(-2px);
}
