/* ============================================
   Desktop Shell
   ============================================ */

.desktop-shell
{
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-desktop);
    background-image:
        radial-gradient(circle at 25% 25%, var(--bg-desktop-pattern) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--bg-desktop-pattern) 1px, transparent 1px);
    background-size: 48px 48px;
    overflow: hidden;
}

.desktop-area
{
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.desktop-icons-grid
{
    position: relative;
    width: 100%;
    height: 100%;
}

.desktop-icon
{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    width: 80px;
    text-align: center;
    user-select: none;
    touch-action: none;
}

.desktop-icon:hover
{
    background-color: var(--bg-icon-hover);
}

.desktop-icon.dragging
{
    z-index: 1000;
    opacity: 0.9;
    cursor: grabbing;
    transition: none;
}

.desktop-icon.selected
{
    background-color: var(--accent-primary);
    color: var(--text-inverse);
}

.desktop-icon.selected .icon-label
{
    color: var(--text-inverse);
}

.icon-visual
{
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #0a0a30;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    font-size: 24px;
    overflow: hidden;
    padding: 4px;
}

.icon-visual img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.icon-label
{
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Mobile Fallback
   ============================================ */

.mobile-fallback
{
    display: none;
    min-height: 100vh;
    padding: 16px;
    background-color: var(--bg-desktop);
}

@media (max-width: 767px)
{
    .desktop-shell
    {
        display: none;
    }

    .mobile-fallback
    {
        display: block;
    }
}
