/* css/desktop.css — Desktop Environment, Taskbar, Windows, Folders, and Notifications */

#desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../assets/wallpapers/barca.png');
    overflow: hidden;
    transition: background-image 0.4s ease-in-out;
}

/* --- DESKTOP ICONS GRID --- */
.desktop-icons-container {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
    pointer-events: none;
    z-index: 10;
}

.desktop-icon {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.15s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.desktop-icon.selected {
    background: rgba(56, 189, 248, 0.25);
    border: 1px dashed rgba(56, 189, 248, 0.6);
}

.desktop-icon-img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.desktop-icon-label {
    color: #f8fafc;
    font-size: 0.8rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.9);
    word-break: break-word;
    line-height: 1.15;
}

/* --- WINDOW MANAGER --- */
.os-window {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 320px;
    min-height: 200px;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.os-window.active {
    border-color: #38bdf8;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.25);
}

.os-window.minimized {
    transform: scale(0.7) translateY(200px);
    opacity: 0;
    pointer-events: none;
}

.window-titlebar {
    height: 36px;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: grab;
    border-bottom: 1px solid var(--border-color);
}

.os-window.active .window-titlebar {
    background: linear-gradient(90deg, #334155, #1e293b);
}

.window-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-icon {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
}

.window-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.win-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.btn-win-minimize {
    background: #334155;
    color: #cbd5e1;
}

.btn-win-minimize:hover {
    background: #475569;
}

.btn-win-close {
    background: #475569;
    color: #f8fafc;
}

.btn-win-close:hover {
    background: #dc2626;
    color: #fff;
}

.window-content {
    flex: 1;
    overflow: auto;
    background: var(--bg-surface);
}

/* Specific Window Sizes with Responsive Viewport Clamping */
.os-window {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 56px);
}

#win-messenger {
    width: 820px;
    height: 580px;
    left: max(10px, calc(50vw - 410px));
    top: max(10px, calc(50vh - 310px));
}

#win-games, #win-memories, #win-recycle {
    width: 540px;
    height: 380px;
    left: max(10px, calc(50vw - 270px));
    top: max(10px, calc(50vh - 210px));
}

#win-settings {
    width: 620px;
    height: 480px;
    left: max(10px, calc(50vw - 310px));
    top: max(10px, calc(50vh - 260px));
}

#win-car-game {
    width: 660px;
    height: 740px;
    left: max(10px, calc(50vw - 330px));
    top: max(10px, calc(50vh - 370px));
}

#win-gym-game {
    width: 660px;
    height: 640px;
    left: max(10px, calc(50vw - 330px));
    top: max(10px, calc(50vh - 330px));
}

#win-stroll-game {
    width: 660px;
    height: 640px;
    left: max(10px, calc(50vw - 330px));
    top: max(10px, calc(50vh - 330px));
}

#win-memory-viewer {
    width: 720px;
    height: 520px;
    left: max(10px, calc(50vw - 360px));
    top: max(10px, calc(50vh - 280px));
}

#win-notepad {
    width: 480px;
    height: 360px;
    left: max(10px, calc(50vw - 240px));
    top: max(10px, calc(50vh - 200px));
}

/* --- FOLDER VIEWS --- */
.folder-view {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
}

.folder-item {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.folder-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.folder-item.selected {
    background: rgba(56, 189, 248, 0.2);
    border: 1px dashed rgba(56, 189, 248, 0.5);
}

.folder-item-icon {
    width: 44px;
    height: 44px;
    image-rendering: pixelated;
}

.folder-item-name {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-primary);
    word-break: break-all;
}

.folder-empty {
    width: 100%;
    color: var(--text-dim);
    font-style: italic;
    padding: 40px;
    text-align: center;
}

/* --- NOTEPAD VIEWER --- */
.notepad-view {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notepad-textarea {
    flex: 1;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    color: #e2e8f0;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    white-space: pre-wrap;
}

/* --- MEMORY VIEWER --- */
.memory-scene-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #1e1b4b 0%, #311042 55%, #180d2b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
}

.memory-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-image: 
        radial-gradient(1.5px 1.5px at 40px 60px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #e0f2fe, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 320px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 500px 90px, #e0f2fe, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 620px 130px, #fff, rgba(0,0,0,0));
    opacity: 0.8;
}

.memory-lamp-glow {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 350px;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.memory-characters-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 70px;
    margin-top: 90px;
    z-index: 5;
}

.memory-char-sprite {
    height: 210px;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.7));
}

.memory-promenade-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #1e142b;
    border-top: 2px solid #4a2b66;
}

.memory-quotes-box {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.memory-line {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin: 4px 0;
    font-family: var(--font-retro);
}

.memory-date {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-top: 6px;
    letter-spacing: 2px;
    font-family: var(--font-retro);
}

/* --- SETTINGS WINDOW --- */
.settings-view {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wallpaper-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    transition: border-color 0.2s, transform 0.15s;
}

.wallpaper-card.active {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.wallpaper-card.locked {
    opacity: 0.6;
}

.wall-thumb {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.wall-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.wall-select-btn {
    background: #334155;
    color: #f8fafc;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.wall-select-btn:hover:not(:disabled) {
    background: #0284c7;
    color: #fff;
}

.wall-select-btn:disabled {
    background: #1e293b;
    color: var(--text-dim);
    cursor: default;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.settings-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.game-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.game-btn.primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
}

.game-btn.primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.game-btn.secondary {
    background: #334155;
    color: #cbd5e1;
}

.game-btn.secondary:hover {
    background: #475569;
}

.game-btn.danger {
    background: #dc2626;
    color: #fff;
}

/* --- TASKBAR --- */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 44px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 5000;
}

.taskbar-start-btn {
    background: linear-gradient(135deg, #1e3a8a, #0284c7);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    font-family: var(--font-retro);
}

.taskbar-start-btn:hover {
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
    transform: translateY(-1px);
}

.taskbar-apps {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
    overflow-x: auto;
}

.taskbar-tab {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

.taskbar-tab.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.taskbar-tab-icon {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tray-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.tray-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-clock {
    font-family: var(--font-retro);
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* --- START MENU --- */
#start-menu {
    position: fixed;
    bottom: 50px;
    left: 12px;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 6000;
    display: flex;
    flex-direction: column;
}

.start-header {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.start-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #38bdf8;
}

.start-user-name {
    font-size: 1rem;
    font-weight: 700;
}

.start-user-sub {
    font-size: 0.75rem;
    color: #38bdf8;
}

.start-items-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
    transition: background 0.15s;
}

.start-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-item-icon {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
}

.start-footer {
    border-top: 1px solid var(--border-color);
    padding: 8px 10px;
}

.start-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.start-logout-btn:hover {
    background: rgba(220, 38, 38, 0.35);
}

/* Volume popup */
#tray-vol-popup {
    position: fixed;
    bottom: 52px;
    right: 70px;
    width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 56px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 7000;
    pointer-events: none;
}

.os-toast {
    width: 320px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #38bdf8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    image-rendering: pixelated;
}

.toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
}

.toast-msg {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.25;
}

/* --- MODAL DIALOGS --- */
.wallpaper-unlock-modal, .logout-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
    animation: fadeIn 0.25s ease-out;
}

.wallpaper-unlock-card, .logout-confirm-card {
    background: #1e293b;
    border: 2px solid #38bdf8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 24px;
    width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.unlock-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.unlock-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.unlock-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.unlock-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.unlock-buttons, .logout-buttons {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

/* Logout transition */
.logout-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-in;
}

.logout-quote-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-retro);
}

.logout-msg1 {
    font-size: 1.1rem;
    color: #94a3b8;
}

.logout-msg2 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-style: italic;
}

/* ============================================================ */
/* MOBILE PHONE OPTIMIZATION (@media max-width: 768px)          */
/* ============================================================ */
@media (max-width: 768px) {
    /* Desktop Icons Grid */
    .desktop-icons-container {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 54px;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 12px 6px;
    }

    .desktop-icon {
        width: 74px;
        padding: 6px 2px;
    }

    .desktop-icon-img {
        width: 42px;
        height: 42px;
    }

    .desktop-icon-label {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    /* Windows: Full-Screen Mobile App Experience */
    .os-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 46px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 46px) !important;
        height: calc(100dvh - 46px) !important;
        max-height: calc(100dvh - 46px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .os-window.minimized {
        display: none !important;
    }

    .btn-win-minimize {
        display: none !important;
    }

    .window-titlebar {
        height: 42px;
        padding: 0 10px;
        cursor: default;
    }

    .window-title-text {
        font-size: 0.82rem;
    }

    .btn-win-close {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.1s, background 0.1s;
    }

    .btn-win-close:active, .btn-win-close.touch-active {
        background: #ef4444;
        color: #fff;
        transform: scale(0.92);
    }

    /* Taskbar on Mobile */
    #taskbar {
        height: 46px;
        padding: 0 8px;
        gap: 6px;
    }

    .taskbar-start-btn {
        padding: 6px 12px;
        min-height: 34px;
        font-size: 0.78rem;
        letter-spacing: 0.5px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.1s, background 0.1s;
    }

    .taskbar-start-btn:active {
        transform: scale(0.94);
        background: linear-gradient(135deg, #0284c7, #38bdf8);
    }

    .taskbar-apps {
        margin: 0 4px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .taskbar-tab {
        padding: 4px 10px;
        min-height: 34px;
        font-size: 0.75rem;
        max-width: 120px;
        gap: 5px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.1s, background 0.1s;
    }

    .taskbar-tab:active {
        transform: scale(0.94);
    }

    .taskbar-tab-icon {
        width: 14px;
        height: 14px;
    }

    .taskbar-tray {
        gap: 4px;
    }

    .tray-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .tray-icon-btn:active {
        transform: scale(0.92);
        background: rgba(56, 189, 248, 0.2);
    }

    .taskbar-clock {
        font-size: 0.72rem;
        padding: 0 2px;
    }

    /* Start Menu */
    #start-menu {
        left: 0 !important;
        bottom: 46px !important;
        width: 100vw !important;
        max-width: 320px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .start-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 40px;
    }

    .start-item:active {
        transform: scale(0.96);
        background: rgba(56, 189, 248, 0.2);
    }

    .start-logout-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 40px;
    }

    .start-logout-btn:active {
        transform: scale(0.96);
        background: rgba(220, 38, 38, 0.4);
    }

    /* Volume Popup */
    #tray-vol-popup {
        right: 6px !important;
        bottom: 50px !important;
        width: 220px !important;
    }

    /* Desktop Icons on Mobile */
    .desktop-icon {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }

    .desktop-icon:active {
        transform: scale(0.94);
        background: rgba(56, 189, 248, 0.25);
    }

    /* Folders */
    .folder-view {
        padding: 12px 8px;
        gap: 10px;
    }

    .folder-item {
        width: 80px;
        padding: 6px 4px;
        gap: 6px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.1s, background 0.1s;
    }

    .folder-item:active {
        transform: scale(0.94);
        background: rgba(56, 189, 248, 0.25);
    }

    .folder-item-icon {
        width: 38px;
        height: 38px;
    }

    .folder-item-name {
        font-size: 0.72rem;
    }

    /* Settings Window */
    .settings-view {
        padding: 14px 12px;
        gap: 16px;
    }

    .wallpapers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wall-thumb {
        height: 60px;
    }

    /* Modals & Dialogs */
    .wallpaper-unlock-card, .logout-confirm-card {
        width: 92vw;
        max-width: 340px;
        padding: 18px 14px;
    }

    .unlock-preview {
        height: 140px;
    }

    /* Memory Viewer Scene */
    .memory-scene-container {
        padding: 14px 10px;
    }

    .memory-lamp-glow {
        top: 40px;
        width: 200px;
        height: 260px;
    }

    .memory-characters-wrap {
        gap: 24px;
        margin-top: 30px;
    }

    .memory-char-sprite {
        height: 135px;
    }

    .memory-quotes-box {
        padding: 10px 14px;
    }

    .memory-line {
        font-size: 0.85rem;
    }

    .memory-date {
        font-size: 1.05rem;
    }
}
