@font-face {
    font-family: 'Azonix';
    src: url('https://db.onlinewebfonts.com/t/04e1f7fb2b58d60eb24df50a9807fa36.woff2') format('woff2');
}

:root {
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: #333;
    --accent-main: #fff;
    --font-main: 'Rajdhani', sans-serif;
    --font-header: 'Azonix', 'Orbitron', sans-serif;
    --z-bg: 0;
    --z-snow: 1;
    --z-desktop: 10;
    --z-windows: 500;
    --z-dock: 1000;
    --z-triggers: 2000;
    --z-modal: 3000;
    --z-noti: 8000;
    --z-lock: 90000;
    --z-ciri: 95000;
    --z-boot: 99999;
    --bg-page: #000;
    --bg-window: rgba(15, 15, 15, 0.95);
    --dark-gray: #111;
    --mid-gray: #222;
    --user-gray: #333;
    --text-white: #fff;
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

::selection { background: #444; color: #fff; }
::-moz-selection { background: #444; color: #fff; }

body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: var(--font-main);
    color: white;
}

#mobile-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
}

#mobile-warning.show-warning { display: flex; }

.mobile-box {
    background: #111;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 10px 40px rgba(255,255,255,0.05);
}

.mobile-box i { font-size: 3rem; color: #fff; margin-bottom: 15px; }
.mobile-box h2 { font-family: var(--font-header); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.mobile-box p { color: #888; font-size: 1rem; font-weight: 600; }

#boot-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: var(--z-boot);
    display: none;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

#boot-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
}

#boot-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 20;
}

#cine-boot-enhancer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
}

.boot__hint {
    margin-top: 20px; font-size: 0.8rem; color: #555;
}

#boot-btn {
    padding: 15px 50px;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    font-family: var(--font-header);
    font-size: 18px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: 0.3s;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

#boot-btn:hover { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,0.4); }

#boot-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

#bg-video, #bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-bg); opacity: 0.72;
    filter: grayscale(100%) saturate(0%) brightness(0.62) contrast(1.18);
}
#desktop-area::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.035), transparent 42%),
        linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.34));
}


#snow-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-snow);
}

#lock-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-lock);
    background: #000;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.7,0,0.3,1), opacity 0.4s;
}

#lock-screen.active { opacity: 1; pointer-events: all; transform: translateY(0); }
#lock-screen.slide-up { transform: translateY(-100%); opacity: 1; pointer-events: none; }

#lock-video, #lock-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#lock-ui {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}

.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 5px 25px rgba(0,0,0,0.9);
}

.l-day, .l-date, .l-time {
    opacity: 0;
    transform: translateY(30px);
}

#lock-screen.active .l-day { animation: slideUpTxt 0.6s cubic-bezier(0.2,0.8,0.2,1) forwards 0.2s; }
#lock-screen.active .l-date { animation: slideUpTxt 0.6s cubic-bezier(0.2,0.8,0.2,1) forwards 0.35s; }
#lock-screen.active .l-time { animation: slideUpTxt 0.6s cubic-bezier(0.2,0.8,0.2,1) forwards 0.5s; }

@keyframes slideUpTxt {
    to { opacity: 1; transform: translateY(0); }
}

.l-day { font-family: 'Azonix', sans-serif; font-size: 5rem; letter-spacing: 12px; color: #fff; margin: 0 0 10px 0; text-transform: uppercase; font-weight: normal; }
.l-date { font-family: var(--font-main); font-size: 1.3rem; letter-spacing: 4px; font-weight: 700; color: #fff; margin-bottom: 8px; text-transform: uppercase; }
.l-time { font-family: var(--font-main); font-size: 1.1rem; letter-spacing: 3px; font-weight: 700; color: #fff; }

#hud-top {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hud-day { font-family: 'Azonix', sans-serif; font-size: 3rem; color: rgba(255,255,255,0.7); letter-spacing: 10px; text-transform: uppercase; }

#right-sidebar {
    position: fixed;
    right: 25px;
    top: 8%;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar__title {
    font-size: 12px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.sidebar__card {
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sidebar__card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: #fff;
    transform: translateX(-5px) scale(1.02);
}

.sidebar__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__info strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__info small {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

#last-game-icon, #spotify-album-art {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.play-overlay {
    position: absolute;
    right: 15px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transition: 0.3s;
}

.sidebar__card:hover .play-overlay {
    opacity: 1;
    transform: scale(1.2);
}

.txt-highlight { font-weight: bold; color: #fff; }
.sidebar__chevron { color: #888; }

#fps-counter { position: fixed; bottom: 24px; left: 24px; background: #111; border: 1px solid #333; padding: 6px 12px; border-radius: 8px; font-family: var(--font-main); font-size: 12px; font-weight: bold; color: #fff; z-index: 99999; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.9); }

#dock-container {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    height: 52px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 18px;
    z-index: var(--z-dock);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s;
    padding: 0 15px;
}

.dock-hidden { transform: translate(-50%, 150%) !important; }

.dock-item {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.dock-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.dock-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.dock-sep { width: 1px; height: 24px; background: #555; margin: 0 4px; }

.desktop-app {
    position: absolute;
    width: 80px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: var(--z-desktop);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                width 0.3s ease, height 0.3s ease, 
                background 0.3s ease, box-shadow 0.3s ease;
}

.desktop-app:hover { transform: scale(1.05); }

.d-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
    transition: all 0.3s;
}

.d-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 5px #000, 0 0 2px #000;
    width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
}

.name-hidden .d-label { opacity: 0 !important; display: none !important; }

.desktop-app.expanded-folder {
    transform: scale(1) !important;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid #444;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    cursor: default;
    z-index: 900 !important;
    padding: 15px;
    display: block; 
}

.folder-header {
    font-family: var(--font-main);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-header i { color: #888; transition: 0.2s; cursor: pointer; }
.folder-header i:hover { color: #fff; transform: scale(1.2); }

.folder-grid-expanded {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.folder-grid-expanded::-webkit-scrollbar { width: 4px; }
.folder-grid-expanded::-webkit-scrollbar-thumb { background: #555; border-radius: 5px; }

.f-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.f-app:hover { transform: scale(1.1); }
.f-app img { width: 38px; height: 38px; border-radius: 8px; }
.f-app span { font-size: 11px; color: #ccc; max-width: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;}

.desktop-large-mode .desktop-app { width: 90px; height: 90px; }
.desktop-large-mode .d-icon { width: 70px; height: 70px; }
.desktop-large-mode .d-label { opacity: 0; pointer-events: none; }

.d-folder-grid {
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #555;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    padding: 4px;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.desktop-large-mode .d-folder-grid { width: 70px; height: 70px; padding: 6px; gap: 4px; }
.d-folder-grid img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }

#drag-proxy { position: fixed; z-index: 9999; pointer-events: none; opacity: 0.8; display: none; width: 50px; height: 50px; }
#drag-proxy img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.hidden-badge { position: absolute; top: -5px; right: -5px; background: #fff; color: #000; font-weight: bold; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; z-index: 2; }

.os-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 550px;
    height: 600px;
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    flex-direction: column;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.os-menu.open { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
.start-search-bar, .drawer-search-wrap { width: 100%; padding: 12px 15px; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; color: white; font-family: var(--font-main); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.start-search-bar input, .drawer-search-input { background: transparent; border: none; color: white; width: 100%; outline: none; }
.start-search-bar input::placeholder, .drawer-search-input::placeholder { color: #666; }

.pinned-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.pinned-header h3 { font-size: 15px; color: #fff; font-weight: 600; }
.pinned-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 30px; }
.pinned-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; padding: 12px; border-radius: 12px; transition: 0.2s; }
.pinned-item:hover { background: #222; }
.pinned-item img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.pinned-item span { font-size: 12px; color: #aaa; }
.start-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.user-profile { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 30px; height: 30px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.user-role { font-size: 12px; color: #ddd; }
.power-btn { cursor: pointer; color: #fff; font-size: 18px; }

#app-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    transition: 0.3s ease;
    padding: 80px;
    align-content: flex-start;
    border: none; width: 100%; height: 100%;
}

#app-drawer.open { display: block; opacity: 1; }
.drawer-search-wrap { max-width: 600px; margin: 0 auto 40px auto; }
.drawer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.drawer-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: 0.2s; }
.drawer-item:hover { transform: scale(1.1); }
.drawer-item img { width: 60px; height: 60px; border-radius: 16px; object-fit: contain; }
.drawer-item span { color: #fff; font-size: 13px; font-weight: 600; }

.window {
    position: fixed;
    inset: 0;
    background: #000;
    border: none;
    display: flex;
    flex-direction: column;
    z-index: var(--z-windows);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.window.active { opacity: 1; pointer-events: auto; transform: scale(1); z-index: var(--z-windows); }
.window.minimized { transform: translateY(100%) scale(0.5); opacity: 0; pointer-events: none; }
.win-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header-visible .win-header { transform: translateY(0); }
.win-title { font-family: var(--font-header); font-size: 13px; color: #aaa; letter-spacing: 2px; }
.win-controls { display: flex; gap: 15px; align-items: center; }
.win-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
}
.win-btn:hover { color: #fff; }
.btn-min { background: #444; border: 1px solid #666; }
.btn-min:hover { background: #888; transform: scale(1.15); }
.btn-min::before { content: ''; width: 8px; height: 2px; background: currentColor; border-radius: 2px; }
.btn-close { background: #555; border: 1px solid #777; }
.btn-close:hover { transform: scale(1.15); box-shadow: 0 0 8px #fff; background: #fff; color: #000; }
.btn-close::before, .btn-close::after { content: ''; position: absolute; width: 8px; height: 2px; background: currentColor; border-radius: 2px; }
.btn-close::before { transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }
.win-body { width: 100%; height: 100%; overflow: hidden; position: relative; background: #000; }
iframe { width: 100%; height: 100%; border: none; display: block; }

#top-trigger { position: fixed; top: 0; left: 0; width: 100%; height: 20px; z-index: var(--z-triggers); }
#bottom-trigger { position: fixed; bottom: 0; left: 0; width: 100%; height: 30px; z-index: var(--z-triggers); }

.os-context-menu {
    position: fixed;
    display: none;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
     z-index: 9999999 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    font-family: var(--font-main);
    list-style: none; margin: 0;
}
.ctx-item { padding: 10px 15px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; border-radius: 6px; }
.ctx-item i { color: #888; font-size: 16px; transition: 0.2s; width: 20px; text-align: center; }
.ctx-item:hover { background: #222; }
.ctx-item:hover i { color: #fff; }
.ctx-separator { height: 1px; background: #333; margin: 6px 0; }
.ctx-row { display: flex; gap: 8px; padding: 0 4px; }
.ctx-btn { flex: 1; background: #222; border: 1px solid #444; color: #ccc; border-radius: 6px; padding: 8px 0; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.ctx-btn:hover { background: #fff; color: #000; border-color: #fff; }

#ciri-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: var(--z-ciri); }
#ciri-window {
    position: fixed;
    bottom: 8vh;
    left: 50%;
    transform: translate(-50%, 40px) scale(0.92);
    width: 90%;
    max-width: 740px;
    height: 85vh;
    max-height: 820px;
    background: #111;
    border: 1px solid #333;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.2,0.8,0.2,1);
    z-index: calc(var(--z-ciri) + 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    color: white;
}
body.ciri-active #ciri-backdrop { opacity: 1; pointer-events: all; }
body.ciri-active #ciri-window { opacity: 1; pointer-events: all; transform: translate(-50%, 0) scale(1); }
#ciri-boot-screen { position: absolute; inset: 0; background: #000; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 10000; transition: opacity 0.8s ease, filter 0.8s ease; border-radius: 32px; }
.boot-ciri { font-size: 42px; font-weight: 800; color: #fff; font-family: monospace; border-right: 3px solid #fff; white-space: nowrap; overflow: hidden; width: 0; letter-spacing: -1px; }
.boot-ciri.typing { animation: typeCiri 0.5s steps(5, end) forwards, blinkCiri 0.8s step-end infinite; }
.boot-sub { font-size: 12px; font-weight: 700; color: #888; letter-spacing: 3px; margin-top: 16px; opacity: 0; transform: translateY(20px) scale(0.95); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.boot-sub.show { opacity: 1; transform: translateY(0) scale(1); }
.boot-loader { margin-top: 40px; display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity 0.6s ease; }
.spinner { width: 24px; height: 24px; border: 3px solid #333; border-top-color: #fff; border-radius: 50%; animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; margin-bottom: 16px; }
.boot-status { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: 0.5px; }
.boot-warning { font-size: 11px; color: #666; max-width: 280px; text-align: center; line-height: 1.5; font-weight: 500; }
@keyframes typeCiri { from { width: 0; } to { width: 115px; } }
@keyframes blinkCiri { 50% { border-color: transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }

#status-pill { background: #1a1a1a; border-radius: 20px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #333; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.5px; margin-bottom: 10px; flex-shrink: 0; text-transform: uppercase; }
.status-icon svg { width: 14px; height: 14px; }
.secure { color: #fff; } .secure-svg { stroke: #fff; }
.unstable { color: #888; } .unstable-svg { stroke: #888; }
#chat-history { width: 100%; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; overflow-x: hidden; flex-grow: 1; padding: 20px 10px; }
#chat-history::-webkit-scrollbar { width: 4px; }
#chat-history::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
.message { max-width: 85%; padding: 18px 24px; border-radius: 18px; font-size: 15px; line-height: 1.6; word-wrap: break-word; font-weight: 500; animation: slideUp 0.4s cubic-bezier(0.2,0.8,0.2,1); }
.message p { margin: 0 0 12px 0; } .message p:last-child { margin: 0; }
.message pre { background: #0a0a0a; padding: 12px; border-radius: 10px; overflow-x: auto; border: 1px solid #222; }
.message code { font-family: monospace; font-size: 13.5px; color: #ccc; }
.message.user { background: #333; color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; border: 1px solid #444; }
.message.ciri { background: #1a1a1a; color: #fff; align-self: flex-start; position: relative; padding-right: 24px; border-bottom-left-radius: 6px; border: 1px solid #333; }
details.thought-process { background: #0a0a0a; border-radius: 12px; padding: 12px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid #222; }
details.thought-process summary { cursor: pointer; font-weight: 600; color: #888; display: flex; align-items: center; gap: 8px; outline: none; }
details.thought-process summary:hover { color: #fff; }
details.thought-process summary::before { content: "🧠"; font-size: 15px; }
.thought-content { margin-top: 12px; color: #888; font-family: monospace; line-height: 1.6; border-top: 1px solid #222; padding-top: 12px; white-space: pre-wrap; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

#bottom-wrapper { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 10px; position: relative; flex-shrink: 0; background: #1a1a1a; padding: 12px 16px; border-radius: 24px; border: 1px solid #333; }
.icon-btn { background: none; border: none; color: #888; cursor: pointer; display: flex; justify-content: center; align-items: center; padding: 8px; border-radius: 50%; transition: 0.2s; }
.icon-btn:hover { background: #333; color: #fff; }
#chat-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 15.5px; font-family: var(--font-main); padding: 0 5px; outline: none; resize: none; max-height: 120px; line-height: 1.4; font-weight: 600; }
#chat-input::placeholder { color: #888; font-weight: 500; }
#mode-toggle { background: #222; color: #888; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; padding: 8px 14px; border-radius: 14px; transition: all 0.2s; border: 1px solid #444; }
#mode-toggle:hover { background: #fff; color: #000; border-color: #fff; }
#mode-toggle.live-active { background: #fff; color: #000; border-color: #fff; animation: pulseWhite 2s infinite; }
@keyframes pulseWhite { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
#action-orb { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0%, #aaa 20%, #444 60%, #111 100%); box-shadow: 0 8px 20px rgba(0,0,0,0.8), inset -4px -4px 10px rgba(0,0,0,0.9), inset 2px 2px 8px rgba(255,255,255,0.4); transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1); flex-shrink: 0; cursor: pointer; }
#action-orb:hover { transform: scale(1.08); box-shadow: 0 12px 25px rgba(255,255,255,0.1); }
#action-orb.thinking { animation: orbAlive 2s infinite ease-in-out; filter: contrast(1.2) brightness(1.1); }
@keyframes orbAlive { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.1); } 50% { transform: scale(1.05); box-shadow: 0 0 20px 5px rgba(255,255,255,0.3); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.1); } }
#img-preview-box { position: absolute; bottom: 85px; left: 10px; background: #1a1a1a; padding: 6px; border-radius: 12px; display: none; align-items: center; gap: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.8); border: 1px solid #333; }
#img-preview-box img { height: 44px; border-radius: 8px; }
#img-preview-box span { color: #fff; font-size: 13px; cursor: pointer; padding-right: 10px; font-weight: 800; }
.hidden-media { display: none; }
.hidden-input { display: none; }

#restore-btn { position: fixed; bottom: 24px; right: 0; background: #111; border: 1px solid #444; border-right: none; padding: 14px; border-radius: 16px 0 0 16px; color: #fff; cursor: pointer; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); z-index: 9998; display: flex; align-items: center; justify-content: center; }
#restore-btn.visible { transform: translateX(0); }
#restore-btn svg { width: 20px; height: 20px; fill: currentColor; }

#cine-noti { position: fixed; bottom: 24px; right: 24px; width: 320px; background: #111; border: 1px solid #333; border-radius: 20px; padding: 16px; box-shadow: 0 24px 48px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.05); color: #fff; transform: translateY(150%) scale(0.9); opacity: 0; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1), opacity 0.5s ease; z-index: var(--z-noti); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
#cine-noti.active { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
#cine-noti.minimized { transform: translateX(150%) scale(0.9); opacity: 0; pointer-events: none; }
.window-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: -4px; }
.action-btn { background: #222; border: 1px solid #444; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; color: #888; transition: all 0.2s ease; }
.action-btn:hover { background: #fff; color: #000; }
.action-btn svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.player-main { display: flex; align-items: center; gap: 14px; }
.album-art { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.8); border: 1px solid #333; }
.track-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; margin-bottom: 2px; }
.artist { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#visualizer { width: 100%; height: 14px; margin-top: 6px; }
.time-wrapper { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #888; font-variant-numeric: tabular-nums; font-weight: 600; }
.progress-hit-area { flex-grow: 1; height: 16px; display: flex; align-items: center; cursor: pointer; outline: none; }
.progress-bg { width: 100%; height: 5px; background: #333; border-radius: 5px; position: relative; overflow: hidden; pointer-events: none; }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: #fff; border-radius: 5px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 4px; }
.ctrl-btn { background: none; border: none; padding: 0; cursor: pointer; display: flex; justify-content: center; align-items: center; color: #888; transition: transform 0.15s ease, color 0.2s; }
.ctrl-btn:hover { color: #fff; }
.ctrl-btn:active { transform: scale(0.85); }
.ctrl-btn svg { width: 20px; height: 20px; fill: currentColor; }
.play-pause-btn { background: #fff; color: #000; width: 36px; height: 36px; border-radius: 50%; }
.play-pause-btn:hover { color: #000; transform: scale(1.05); background: #ccc; }
.play-pause-btn:active { transform: scale(0.95); }
.hidden-svg { display: none; }
.visible-svg { display: block; }

.modal__backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999999;
  align-items: center; justify-content: center; backdrop-filter: blur(10px); border: none;
  width: 100%; height: 100%;
}
.modal__content {
  background: #111; border: 1px solid #333; border-radius: 16px; padding: 30px;
  width: 400px; max-width: 90%; font-family: var(--font-main);
}
.modal__header {
  margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; font-family: 'Orbitron', sans-serif; color: #fff;
}
.modal__list {
  color: #ccc; font-size: 14px; margin-left: 20px; line-height: 1.8; margin-bottom: 20px;
}
.modal__btn {
  width: 100%; padding: 12px; background: #fff; color: #000; border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
}

#wallpaper-menu { position: fixed !important; inset: 50% auto auto 50% !important; top: 50% !important; left: 50% !important; margin: 0 !important; transform: translate(-50%,-50%) scale(0.95); width: min(800px, calc(100vw - 28px)); max-height: min(80vh, 760px); overflow: auto; box-sizing: border-box; background: #080a10; border: 1px solid rgba(125,90,255,.65); border-radius: 16px; z-index: 10020; display: none; opacity: 0; transition: opacity .25s ease, transform .25s ease; flex-direction: column; padding: 24px; box-shadow: 0 0 32px rgba(94,55,255,.22), 0 30px 80px rgba(0,0,0,.9); }
#wallpaper-menu.open { display: flex; opacity: 1; transform: translate(-50%,-50%) scale(1); }
.wp-modal-header { border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.wp-modal-header h2 { font-family: 'Orbitron'; color: #fff; letter-spacing: 2px; margin: 0; }
.wp-controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.segmented-control { display: flex; background: #222; border: 1px solid #333; border-radius: 8px; padding: 4px; gap: 4px; border-style: solid; }
.segmented-control label { flex: 1; text-align: center; cursor: pointer; }
.segmented-control input[type="radio"] { display: none; }
.segmented-control span { display: block; padding: 8px 16px; border-radius: 6px; font-family: var(--font-main); font-weight: bold; color: #888; transition: 0.3s; }
.segmented-control input[type="radio"]:checked + span { background: #fff; color: #000; }
.loop-toggle-container { display: flex; align-items: center; gap: 10px; background: #222; border: 1px solid #333; padding: 6px 16px; border-radius: 8px; }
.loop-label { color: #fff; font-weight: bold; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #444; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: #fff; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #fff; }
input:checked + .slider:before { transform: translateX(20px); background-color: #000; }

.wp-grid-container { overflow-y: auto; flex: 1; padding-right: 10px; }
.wp-grid-container::-webkit-scrollbar { width: 6px; }
.wp-grid-container::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.wp-section-title { font-size: 12px; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.wp-card { background: #000; border: 1px solid #333; border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; position: relative; aspect-ratio: 16/9; }
.wp-card:hover { border-color: #fff; transform: translateY(-4px); }
.wp-card.active-wp { border: 2px solid #fff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.wp-card video, .wp-card img { width: 100%; height: 100%; object-fit: cover; }
.wp-info { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 10px; font-size: 12px; font-weight: bold; text-shadow: 0 1px 3px black; color: #fff; }
.wp-locked { filter: grayscale(1) brightness(0.4); pointer-events: none; border-style: dashed; }
.close-icon { cursor: pointer; font-size: 1.5rem; color: #fff; }

#toast-container { position: fixed; bottom: 70px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-notification { background: #111; border: 1px solid #333; border-radius: 8px; width: 340px; padding: 15px; color: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.9); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); pointer-events: auto; cursor: pointer; }
.toast-notification.show { transform: translateX(0); }
.toast-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.toast-app-info { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #888; font-weight: 700; }
.toast-icon { width: 16px; height: 16px; background: #333; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.toast-close { color: #888; font-size: 14px; cursor: pointer; transition: 0.2s; }
.toast-close:hover { color: #fff; }
.toast-title { font-family: var(--font-main); font-weight: bold; font-size: 15px; margin-bottom: 4px; letter-spacing: 0.5px; }
.toast-body { font-family: var(--font-main); font-size: 13px; color: #ccc; line-height: 1.4; }

.faq-box {
  background: #111; border: 1px solid #333; border-radius: 16px; padding: 30px;
  width: 500px; max-width: 90%; font-family: var(--font-main); color: #fff;
}
.faq-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px;
}
.faq-header h2 { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }
.faq-item { margin-bottom: 20px; }
.faq-item h3 { font-size: 16px; color: #fff; margin-bottom: 5px; }
.faq-item p { font-size: 13px; color: #aaa; line-height: 1.5; }

.config__main-header {
  color: #fff; border-bottom: 2px solid #333; padding-bottom: 10px; font-weight: 700; font-family: 'Orbitron', sans-serif; letter-spacing: 1px;
}
.config__category {
  color: #fff; font-weight: bold; margin-top: 25px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.config__card {
  background: #111; border: 1px solid #333; padding: 15px; border-radius: 10px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; transition: 0.2s;
}
.config__card--clickable { cursor: pointer; }
.config__card--clickable:hover { background: #1a1a1a; border-color: #555; transform: translateX(5px); }
.config__info { display: flex; gap: 15px; align-items: center; }
.config__icon { color: #888; font-size: 1.5rem; width: 30px; text-align: center; }
.config__text { display: flex; flex-direction: column; }
.config__text strong { color: #fff; font-size: 15px; }
.config__text small { color: #888; font-size: 13px; }
.config__select {
  background: #222; color: #fff; border: 1px solid #444; padding: 8px; border-radius: 6px; outline: none; font-family: inherit;
}
.config__input-sm {
  width: 40px; height: 30px; color: #fff; background: #222; border: 1px solid #555; text-align: center;
  font-size: 1.2rem; font-weight: bold; outline: none; border-radius: 4px;
}
.config__input-sm:focus, .config__select:focus { border-color: #888; }


/* ============================================================
   CINE OS FX — ISOLATED VISUAL ENHANCEMENTS
   These rules intentionally target only the new FX elements.
   ============================================================ */

#cine-atmo-fx {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity .45s ease;
}

body.cine-enhanced #cine-atmo-fx { opacity: .72; }

body.cine-enhanced, body.cine-enhanced * { cursor: none !important; }

/* A subtle animated energy field over the existing wallpaper. */
body.cine-enhanced::before,
body.cine-enhanced::after {
    content: "";
    position: fixed;
    inset: -18%;
    pointer-events: none;
    z-index: 3;
    opacity: .16;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 3px,
            rgba(255,255,255,.055) 4px,
            transparent 5px
        );
    transform: translate3d(0,0,0);
    animation: cineScanDrift 9s linear infinite;
    mix-blend-mode: screen;
}

body.cine-enhanced::after {
    opacity: .09;
    background:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,.25), transparent 18%),
        radial-gradient(circle at 82% 68%, rgba(255,255,255,.16), transparent 20%);
    filter: blur(24px);
    animation: cineEnergyFloat 13s ease-in-out infinite alternate;
}

@keyframes cineScanDrift {
    from { transform: translateY(-5%); }
    to   { transform: translateY(5%); }
}

@keyframes cineEnergyFloat {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
    50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(-1%, -2%, 0) scale(1.02); }
}

/* Ultra-responsive custom cursor. It is hidden until the desktop is active. */
#cine-cursor,
#cine-cursor-trail,
#cine-click-fx {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

#cine-cursor {
    width: 26px;
    height: 26px;
    z-index: 100001;
    opacity: 0;
    transform: translate3d(-100px,-100px,0);
    transition: opacity .2s ease;
}

body.cine-enhanced #cine-cursor { opacity: 1; }

.cine-cursor-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 7px #fff,
        0 0 18px rgba(255,255,255,.95),
        0 0 35px rgba(255,255,255,.65);
}

.cine-cursor-ring {
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(255,255,255,.55),
        inset 0 0 8px rgba(255,255,255,.18);
    animation: cineCursorSpin 2.8s linear infinite;
}

.cine-cursor-ring::before,
.cine-cursor-ring::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.28);
}

.cine-cursor-ring::after {
    inset: 5px;
    border-style: solid;
    border-color: rgba(255,255,255,.16);
}

.cine-cursor-glow {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.20), rgba(255,255,255,0) 68%);
    filter: blur(3px);
    animation: cineCursorPulse 1.15s ease-in-out infinite;
}

@keyframes cineCursorSpin {
    to { transform: rotate(360deg); }
}

@keyframes cineCursorPulse {
    0%,100% { transform: scale(.78); opacity: .55; }
    50% { transform: scale(1.18); opacity: 1; }
}

#cine-cursor-trail {
    width: 10px;
    height: 10px;
    z-index: 100000;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    box-shadow: 0 0 12px rgba(255,255,255,.8);
    opacity: 0;
    transform: translate3d(-100px,-100px,0);
    will-change: transform;
}

body.cine-enhanced #cine-cursor-trail { opacity: .7; }

.cine-cursor-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 0 8px #fff, 0 0 16px rgba(255,255,255,.7);
    animation: cineParticleFly .65s cubic-bezier(.18,.72,.2,1) forwards;
}

@keyframes cineParticleFly {
    0% { opacity: .95; transform: translate3d(0,0,0) scale(1); }
    100% { opacity: 0; transform: translate3d(var(--dx),var(--dy),0) scale(.05); }
}

.cine-click-ring {
    position: fixed;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    animation: cineClickBurst .7s cubic-bezier(.15,.8,.25,1) forwards;
}

.cine-click-ring::before,
.cine-click-ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
}

.cine-click-ring::after {
    inset: -7px;
    border-style: dashed;
    opacity: .65;
}

@keyframes cineClickBurst {
    0% { opacity: 1; transform: scale(.2) rotate(0deg); filter: blur(0); }
    55% { opacity: .8; transform: scale(2.4) rotate(120deg); }
    100% { opacity: 0; transform: scale(5.5) rotate(240deg); filter: blur(2px); }
}

@media (pointer: coarse) {
    #cine-cursor, #cine-cursor-trail, #cine-click-fx { display: none !important; }
}


/* ============================================================
   CINE OS FX v2 — enhanced cursor + top-layer/modal visibility
   Isolated additions only.
   ============================================================ */
body.cine-enhanced #cine-cursor,
body.cine-enhanced #cine-cursor-trail,
body.cine-enhanced #cine-click-fx { pointer-events:none !important; }

body.cine-enhanced #cine-cursor {
  width: 34px; height: 34px; z-index: 2147483647 !important;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.9)) drop-shadow(0 0 22px rgba(120,210,255,.55));
  transition: opacity .12s ease, filter .15s ease;
}

.cine-cursor-core {
  position:absolute; left:50%; top:50%; width:6px; height:6px;
  transform:translate(-50%,-50%); border-radius:50%; background:#fff;
  box-shadow:0 0 5px #fff,0 0 12px #fff,0 0 25px rgba(100,210,255,.95),0 0 42px rgba(100,210,255,.55);
}
.cine-cursor-core::before,.cine-cursor-core::after {
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  border:1px solid rgba(255,255,255,.7); border-radius:50%;
}
.cine-cursor-core::before { width:15px;height:15px; animation:cineCorePulse .9s ease-in-out infinite; }
.cine-cursor-core::after { width:27px;height:27px; border-color:rgba(110,220,255,.22); animation:cineCorePulse 1.5s ease-in-out infinite reverse; }

.cine-cursor-ring { inset:3px !important; border:1px solid rgba(255,255,255,.95) !important; }
.cine-cursor-ring::before { inset:-7px !important; border:1px solid rgba(100,220,255,.6) !important; border-right-color:transparent; animation:cineOrbit 1.2s linear infinite; }
.cine-cursor-ring::after { inset:7px !important; border:1px dashed rgba(255,255,255,.45) !important; animation:cineOrbitReverse 1.8s linear infinite; }
.cine-cursor-glow { inset:-28px !important; opacity:.9; filter:blur(5px); background:radial-gradient(circle,rgba(110,220,255,.28),rgba(255,255,255,.08) 25%,transparent 68%) !important; }

/* Four precision scanner marks around the cursor. */
#cine-cursor::before,#cine-cursor::after {
  content:""; position:absolute; left:50%; top:50%; width:48px; height:48px;
  transform:translate(-50%,-50%); border-radius:50%; pointer-events:none;
}
#cine-cursor::before { border:1px solid rgba(120,225,255,.22); clip-path:polygon(0 0,38% 0,38% 4%,4% 4%,4% 38%,0 38%,0 0,100% 0,100% 38%,96% 38%,96% 4%,62% 4%,62% 0); animation:cineScanner 2.5s linear infinite; }
#cine-cursor::after { width:58px;height:58px; border:1px solid rgba(255,255,255,.10); border-top-color:rgba(255,255,255,.65); border-bottom-color:rgba(110,220,255,.45); animation:cineOrbit 2.2s linear infinite; }

#cine-cursor-trail { width:18px !important;height:18px !important; z-index:2147483646 !important; border-radius:50%; background:radial-gradient(circle,#fff 0 8%,rgba(120,220,255,.8) 25%,transparent 70%) !important; box-shadow:0 0 12px rgba(255,255,255,.8),0 0 28px rgba(80,200,255,.6) !important; filter:blur(.2px); }

.cine-cursor-particle { width:4px !important;height:4px !important; z-index:2147483645 !important; background:#fff !important; box-shadow:0 0 7px #fff,0 0 15px rgba(100,220,255,.9),0 0 25px rgba(100,220,255,.45) !important; }

.cine-click-ring { z-index:2147483644 !important; width:26px !important;height:26px !important; margin:-13px 0 0 -13px !important; border-width:1px !important; box-shadow:0 0 10px rgba(100,220,255,.8),0 0 25px rgba(100,220,255,.35); }

@keyframes cineCorePulse { 0%,100%{opacity:.45;transform:translate(-50%,-50%) scale(.7)} 50%{opacity:1;transform:translate(-50%,-50%) scale(1.18)} }
@keyframes cineOrbit { to{transform:rotate(360deg)} }
@keyframes cineOrbitReverse { to{transform:rotate(-360deg)} }
@keyframes cineScanner { 0%{transform:translate(-50%,-50%) rotate(0deg) scale(.85)} 50%{transform:translate(-50%,-50%) rotate(180deg) scale(1.05)} 100%{transform:translate(-50%,-50%) rotate(360deg) scale(.85)} }

/* Native <dialog> elements enter the browser's top layer. Move the cursor FX
   into that top layer while a modal is open so it remains visible. */
body.cine-enhanced dialog[open] #cine-cursor,
body.cine-enhanced dialog[open] #cine-cursor-trail,
body.cine-enhanced dialog[open] #cine-click-fx { z-index:2147483647 !important; }

#app-drawer { overflow-y: auto; }
#app-drawer::-webkit-scrollbar { width: 7px; }
#app-drawer::-webkit-scrollbar-thumb { background: #444; border-radius: 8px; }

/* CINE OS FX v3 — deeper monochrome atmosphere + precision cursor. */
body.cine-enhanced::before{opacity:.22;background:repeating-linear-gradient(0deg,transparent 0,transparent 2px,rgba(255,255,255,.045) 3px,transparent 4px),linear-gradient(90deg,transparent 0 49.8%,rgba(255,255,255,.035) 50%,transparent 50.2%);animation:cineScanDrift 7s linear infinite}
body.cine-enhanced::after{opacity:.14;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.28),transparent 18%),radial-gradient(circle at 82% 76%,rgba(255,255,255,.22),transparent 20%),radial-gradient(circle at 50% 50%,rgba(255,255,255,.07),transparent 45%);filter:blur(30px);animation:cineEnergyFloat 11s ease-in-out infinite alternate}
#cine-cursor{width:42px;height:42px;filter:drop-shadow(0 0 7px rgba(255,255,255,.95)) drop-shadow(0 0 18px rgba(255,255,255,.55));}
.cine-cursor-core{width:7px;height:7px;box-shadow:0 0 6px #fff,0 0 15px #fff,0 0 28px rgba(255,255,255,.95),0 0 52px rgba(255,255,255,.5)}
.cine-cursor-ring{inset:4px!important;border-width:1.5px!important;box-shadow:0 0 12px rgba(255,255,255,.6),inset 0 0 12px rgba(255,255,255,.18)}
.cine-cursor-ring::before{inset:-9px!important;border-style:dashed!important;border-color:rgba(255,255,255,.5)!important}
.cine-cursor-ring::after{inset:8px!important;border-color:rgba(255,255,255,.55)!important}
.cine-cursor-glow{inset:-34px!important;background:radial-gradient(circle,rgba(255,255,255,.24),rgba(255,255,255,.08) 24%,transparent 70%)!important;filter:blur(6px)}
#cine-cursor::before{width:62px;height:62px;border-color:rgba(255,255,255,.3);animation:cineScanner 1.7s linear infinite}
#cine-cursor::after{width:76px;height:76px;border-color:rgba(255,255,255,.13);border-top-color:rgba(255,255,255,.85);border-bottom-color:rgba(255,255,255,.45);animation:cineOrbit 1.5s linear infinite}
#cine-cursor-trail{width:24px!important;height:24px!important;background:radial-gradient(circle,#fff 0 7%,rgba(255,255,255,.8) 18%,rgba(255,255,255,.18) 38%,transparent 72%)!important;box-shadow:0 0 15px rgba(255,255,255,.85),0 0 36px rgba(255,255,255,.42)!important}
.cine-cursor-particle{width:3px!important;height:3px!important;box-shadow:0 0 8px #fff,0 0 18px rgba(255,255,255,.9),0 0 30px rgba(255,255,255,.35)!important}
.cine-click-ring{width:34px!important;height:34px!important;margin:-17px 0 0 -17px!important;box-shadow:0 0 14px rgba(255,255,255,.9),0 0 35px rgba(255,255,255,.35)!important}

/* CINE OS FX v4 — cinematic HUD cursor */
html.cine-cursor-enabled,html.cine-cursor-enabled *{cursor:none!important}
#cine-cursor-hud{position:fixed;left:0;top:0;width:1px;height:1px;pointer-events:none;z-index:2147483647!important;font-family:monospace;color:#fff;mix-blend-mode:screen}
.cine-hud-cross{position:absolute;width:86px;height:86px;left:-43px;top:-43px;opacity:.72;transform:scale(.9);transition:transform .18s ease,opacity .18s ease}
.cine-hud-cross:before,.cine-hud-cross:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.16);clip-path:polygon(0 0,35% 0,35% 3%,3% 3%,3% 35%,0 35%,0 0,100% 0,100% 35%,97% 35%,97% 3%,65% 3%,65% 0,0 0,0 100%,35% 100%,35% 97%,3% 97%,3% 65%,0 65%,0 100%,100% 100%,100% 65%,97% 65%,97% 97%,65% 97%,65% 100%);animation:cineHudSpin 5s linear infinite}
.cine-hud-cross:after{inset:10px;border-color:rgba(255,255,255,.3);animation:cineHudSpin 2.8s linear infinite reverse}
.cine-hud-label{position:absolute;left:49px;top:-28px;white-space:nowrap;font-size:9px;letter-spacing:1.8px;text-shadow:0 0 8px #fff;opacity:.7;transition:.18s}
.cine-hud-scan{position:absolute;left:-70px;top:-70px;width:140px;height:140px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 72%,rgba(255,255,255,.18) 78%,transparent 84%);mask:radial-gradient(circle,transparent 56%,#000 57% 58%,transparent 59%);animation:cineHudSpin 1.35s linear infinite}
.cine-hud-dot{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff,0 0 22px rgba(255,255,255,.9)}
.cine-hud-readout{position:absolute;left:50px;top:4px;font-size:8px;letter-spacing:1px;opacity:.42;white-space:nowrap}
body.cine-cursor-hover #cine-cursor-hud .cine-hud-cross{transform:scale(1.28);opacity:1}
body.cine-cursor-hover #cine-cursor-hud .cine-hud-label{opacity:1}
body.cine-cursor-down #cine-cursor-hud .cine-hud-cross{transform:scale(.68);opacity:1}
body.cine-cursor-down #cine-cursor-hud .cine-hud-scan{animation-duration:.45s}
@keyframes cineHudSpin{to{transform:rotate(360deg)}}
@media (pointer:coarse){html.cine-cursor-enabled,html.cine-cursor-enabled *{cursor:auto!important}#cine-cursor-hud{display:none!important}}


/* CINE OS FX v5 — cinematic environment */
#cine-cinema-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .7s ease;
    background:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    transform: perspective(900px) rotateX(58deg) translateY(31%);
    transform-origin: center bottom;
    animation: cineGridDrift 13s linear infinite;
}
body.cine-enhanced #cine-cinema-grid { opacity: .48; }

#cine-cinema-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity .7s ease;
    background:
      radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.75) 100%),
      linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%, transparent 82%, rgba(255,255,255,.02));
}
body.cine-enhanced #cine-cinema-vignette { opacity: 1; }

@keyframes cineGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 140px, 140px 0; }
}


/* ============================================================
   CINE OS // ASCENSION UI PACK — ambient music + system layer
   ============================================================ */
#cine-core-aura{position:fixed;inset:-20%;z-index:2;pointer-events:none;opacity:0;mix-blend-mode:screen;background:radial-gradient(circle at 50% 48%,rgba(255,255,255,.06),transparent 18%),radial-gradient(circle at 18% 72%,rgba(255,255,255,.07),transparent 22%),radial-gradient(circle at 83% 23%,rgba(255,255,255,.055),transparent 20%);filter:blur(20px);animation:cineAura 18s ease-in-out infinite alternate}.cine-desktop-ready #cine-core-aura{opacity:.75}@keyframes cineAura{0%{transform:translate3d(-2%,1%,0) scale(1)}50%{transform:translate3d(2%,-2%,0) scale(1.04)}100%{transform:translate3d(-1%,-3%,0) scale(1.08)}}
#cine-cinematic-scan{position:fixed;left:-20%;right:-20%;top:-10%;height:2px;z-index:7;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.0),rgba(255,255,255,.22),transparent);filter:blur(1px);opacity:.32;animation:cineScanLine 9s linear infinite}@keyframes cineScanLine{0%{transform:translateY(-10vh)}100%{transform:translateY(120vh)}}
body.cine-game-active #cine-core-aura{filter:blur(28px);opacity:.18}.cine-game-active #cine-cinematic-scan{opacity:.08}

/* Command palette */
#cine-command-palette{position:fixed;inset:0;z-index:2147483000;display:none;align-items:flex-start;justify-content:center;padding-top:11vh;background:rgba(0,0,0,.52);backdrop-filter:blur(12px)}#cine-command-palette.open{display:flex}#cine-command-box{width:min(720px,88vw);background:rgba(8,8,10,.96);border:1px solid rgba(255,255,255,.18);border-radius:16px;box-shadow:0 30px 100px #000,inset 0 0 30px rgba(255,255,255,.025);overflow:hidden}#cine-command-input{width:100%;box-sizing:border-box;padding:19px 22px;background:#090909;border:0;border-bottom:1px solid #252525;color:#fff;font:600 18px Rajdhani, sans-serif;outline:none}#cine-command-results{max-height:55vh;overflow:auto;padding:8px}.cine-command-item{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:9px;color:#ddd;cursor:pointer}.cine-command-item:hover,.cine-command-item.active{background:#181818;color:#fff}.cine-command-item small{margin-left:auto;color:#666;font:10px monospace}

/* System widgets */
.cine-system-widget{font-family:monospace;color:#fff}.cine-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.cine-stat{padding:13px;border:1px solid #292929;background:linear-gradient(135deg,#0b0b0b,#151515);border-radius:10px}.cine-stat b{display:block;font-size:22px}.cine-stat span{font-size:9px;color:#777;letter-spacing:1px}.cine-meter{height:5px;background:#222;border-radius:10px;overflow:hidden;margin-top:8px}.cine-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#555,#fff);box-shadow:0 0 10px rgba(255,255,255,.4);transition:width .5s}

/* Window polish */
.window{box-shadow:0 30px 90px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.05),inset 0 0 30px rgba(255,255,255,.02)!important;transition:box-shadow .25s,transform .25s,opacity .25s}.window.active{animation:cineWindowIn .28s cubic-bezier(.2,.9,.2,1)}@keyframes cineWindowIn{from{opacity:0;transform:scale(.97) translateY(10px)}to{opacity:1;transform:none}}

/* Better drawer */
#app-drawer.open{box-shadow:0 35px 120px #000,0 0 70px rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}.drawer-item{transition:transform .18s,filter .18s,background .18s}.drawer-item:hover{transform:translateY(-4px) scale(1.03);filter:brightness(1.16)}



/* CINE OS // cursor boundary safety */
body.cine-pointer-in-frame #cine-cursor,
body.cine-pointer-in-frame #cine-cursor-trail,
body.cine-pointer-in-frame #cine-click-fx,
body.cine-pointer-in-frame #cine-cursor-hud{opacity:0!important;visibility:hidden!important}
body.cine-pointer-in-frame, body.cine-pointer-in-frame *{cursor:auto!important}
body.cine-pointer-in-frame iframe{cursor:auto!important}
#cine-max-fx-layer{position:fixed;inset:0;pointer-events:none;z-index:6;opacity:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.035),transparent 35%),linear-gradient(180deg,transparent,rgba(255,255,255,.018));mix-blend-mode:screen;transition:opacity .5s}
body.cine-max-fx #cine-max-fx-layer{opacity:.9}
/* CINE boot reliability patch */
#boot-layer{background:#000;isolation:isolate;overflow:hidden}
#boot-video{background:#000;z-index:5}
#boot-content{z-index:10}


/* CINE OS // Draggable media player */
#cine-noti {
  user-select: none;
  touch-action: none;
}
#cine-noti.cine-dragging {
  transition: opacity .15s ease !important;
  cursor: grabbing;
  transform: none !important;
}
#cine-noti.cine-dragging .player-main,
#cine-noti.cine-dragging .window-actions {
  cursor: grabbing;
}
#cine-noti .player-main,
#cine-noti .window-actions {
  cursor: grab;
}
#cine-noti button,
#cine-noti input,
#cine-noti [role="slider"] {
  touch-action: auto;
}

/* ============================================================
   CINE OS // VISUAL BOOT ENHANCER
   Keeps the original CINE boot footage visible underneath while
   adding the original console/radar/logo treatment.
   ============================================================ */
#cine-boot-enhancer{position:absolute;inset:0;z-index:12;pointer-events:none;color:#fff;font-family:monospace;opacity:0;transition:opacity .35s ease;overflow:hidden}
#boot-layer.boot-enhanced #cine-boot-enhancer{opacity:1}
.boot-frame{position:absolute;inset:3.2vh 3vw;border:1px solid rgba(255,255,255,.25);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
.boot-frame-b{inset:5.1vh 6.2vw;border-color:rgba(255,255,255,.12)}
.boot-scanlines{position:absolute;inset:0;background:repeating-linear-gradient(180deg,rgba(255,255,255,.028) 0,rgba(255,255,255,.028) 1px,transparent 1px,transparent 5px);mix-blend-mode:screen;opacity:.42}
.boot-scanlines:after{content:"";position:absolute;left:0;right:0;top:-10%;height:2px;background:rgba(255,255,255,.7);box-shadow:0 0 18px rgba(255,255,255,.7);animation:bootScan 5.5s linear infinite}
@keyframes bootScan{to{transform:translateY(120vh)}}
.boot-flash{position:absolute;inset:0;background:radial-gradient(circle at 74% 50%,rgba(255,255,255,.18),transparent 17%),radial-gradient(circle at 45% 70%,rgba(255,255,255,.05),transparent 32%);mix-blend-mode:screen;opacity:.55;animation:bootPulse 2.4s ease-in-out infinite}
@keyframes bootPulse{0%,100%{opacity:.25}50%{opacity:.7}}
.boot-topline{position:absolute;top:5.3vh;left:4.6vw;right:4.6vw;display:flex;justify-content:space-between;border:1px solid rgba(255,255,255,.2);padding:7px 10px;font-size:clamp(9px,.75vw,14px);letter-spacing:1px;background:rgba(0,0,0,.25)}
.boot-console{position:absolute;left:6.2vw;top:17vh;width:min(52vw,860px);height:43vh;border:1px solid rgba(255,255,255,.32);background:rgba(0,0,0,.68);padding:18px 24px;box-shadow:0 20px 60px rgba(0,0,0,.45),inset 0 0 30px rgba(255,255,255,.025)}
.boot-console-head{font-size:12px;color:#aaa;letter-spacing:2px;margin-bottom:18px;display:flex;justify-content:space-between}.boot-console-head span{color:#666;font-size:10px}
#cine-boot-log{font-size:clamp(11px,1.1vw,20px);line-height:1.75;color:#f5f5f5;text-shadow:0 0 8px rgba(255,255,255,.18)}
.boot-log-line{display:flex;gap:8px;white-space:pre-wrap}.boot-log-ok{color:#fff}.boot-log-dim{color:#888}.boot-console-cursor{width:14px;height:20px;background:#fff;margin-top:6px;animation:cursorBlink .65s steps(1) infinite}@keyframes cursorBlink{50%{opacity:0}}
.boot-radar{position:absolute;right:15vw;top:29vh;width:min(25vw,390px);aspect-ratio:1;border-radius:50%;opacity:.9}
.radar-ring{position:absolute;inset:0;border:1px solid rgba(255,255,255,.28);border-radius:50%}.r2{inset:13%}.r3{inset:26%}.r4{inset:39%}
.radar-sweep{position:absolute;left:50%;top:50%;width:50%;height:1px;transform-origin:left center;background:linear-gradient(90deg,rgba(255,255,255,.8),transparent);box-shadow:0 0 12px rgba(255,255,255,.7);animation:radarSweep 2.8s linear infinite}@keyframes radarSweep{to{transform:rotate(360deg)}}
.radar-core{position:absolute;left:calc(50% - 11px);top:calc(50% - 11px);width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 0 25px #fff,0 0 70px rgba(255,255,255,.5);animation:corePulse 1.4s ease-in-out infinite}@keyframes corePulse{50%{transform:scale(1.25);opacity:.75}}
.boot-brand{position:absolute;right:11vw;bottom:17vh;text-align:left}.boot-brand img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(255,255,255,.35));margin-bottom:5px}.boot-brand-title{font-size:clamp(18px,2.4vw,42px);font-weight:900;letter-spacing:4px}.boot-brand-sub{font-size:12px;color:#777;letter-spacing:2px;margin-top:5px}
.boot-progress{position:absolute;left:6.2vw;right:6.2vw;bottom:8.5vh;height:2px;background:rgba(255,255,255,.12);overflow:hidden}.boot-progress span{display:block;width:0;height:100%;background:#fff;box-shadow:0 0 16px #fff;transition:width .18s linear}.boot-progress-label{position:absolute;left:6.2vw;right:6.2vw;bottom:5.4vh;display:flex;justify-content:space-between;color:#777;font-size:9px;letter-spacing:2px}
@media(max-width:900px){.boot-console{left:6vw;width:64vw}.boot-radar{right:7vw;width:25vw}.boot-brand{right:7vw}.boot-topline{font-size:8px}}

/* ============================================================
   CINE OS // HOME TYPEWRITER MESSAGE NODE
   Desktop home only — intentionally separate from the lock screen.
   ============================================================ */
#cine-home-typing{
    position:relative;
    width:min(760px,78vw);
    min-height:72px;
    margin:16px auto 0;
    padding:15px 22px 17px;
    box-sizing:border-box;
    overflow:hidden;
    border:1px solid rgba(190,145,255,.28);
    border-radius:16px;
    background:
      radial-gradient(circle at 15% 35%,rgba(184,122,255,.18),transparent 22%),
      radial-gradient(circle at 82% 65%,rgba(120,76,220,.14),transparent 24%),
      linear-gradient(135deg,rgba(38,12,70,.76),rgba(13,6,30,.86));
    box-shadow:
      0 16px 55px rgba(0,0,0,.42),
      inset 0 0 35px rgba(160,100,255,.07),
      0 0 28px rgba(126,76,255,.09);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    opacity:0;
    transform:translateY(-8px) scale(.985);
    transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1);
    pointer-events:none;
    z-index:6;
}
body.cine-desktop-ready #cine-home-typing{
    opacity:1;
    transform:none;
}
#cine-home-typing::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(115deg,transparent 0%,rgba(255,255,255,.035) 38%,transparent 56%);
    transform:translateX(-110%);
    animation:cineTypingSheen 5.5s ease-in-out infinite;
    pointer-events:none;
}
@keyframes cineTypingSheen{
    0%,45%{transform:translateX(-110%)}
    72%,100%{transform:translateX(120%)}
}
.cine-home-typing-stars{
    position:absolute;
    inset:0;
    opacity:.75;
    background-image:
      radial-gradient(circle at 7% 26%,rgba(255,255,255,.75) 0 1px,transparent 1.8px),
      radial-gradient(circle at 18% 74%,rgba(221,191,255,.75) 0 1px,transparent 1.8px),
      radial-gradient(circle at 31% 22%,rgba(255,255,255,.55) 0 1px,transparent 1.6px),
      radial-gradient(circle at 48% 78%,rgba(202,160,255,.65) 0 1px,transparent 1.7px),
      radial-gradient(circle at 63% 18%,rgba(255,255,255,.62) 0 1px,transparent 1.6px),
      radial-gradient(circle at 79% 70%,rgba(221,191,255,.7) 0 1px,transparent 1.8px),
      radial-gradient(circle at 92% 31%,rgba(255,255,255,.7) 0 1px,transparent 1.8px);
    animation:cineTypingStars 7s ease-in-out infinite alternate;
    pointer-events:none;
}
@keyframes cineTypingStars{
    from{transform:translate3d(-3px,2px,0);opacity:.52}
    to{transform:translate3d(4px,-2px,0);opacity:.92}
}
.cine-home-typing-scan{
    position:absolute;
    left:-10%;
    right:-10%;
    top:-35%;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(226,198,255,.8),transparent);
    box-shadow:0 0 12px rgba(183,120,255,.5);
    opacity:.38;
    animation:cineTypingScan 4.2s linear infinite;
    pointer-events:none;
}
@keyframes cineTypingScan{
    from{transform:translateY(0)}
    to{transform:translateY(145px)}
}
.cine-home-typing-label{
    position:relative;
    margin-bottom:7px;
    color:rgba(218,191,255,.58);
    font:600 8px/1 Rajdhani,sans-serif;
    letter-spacing:3px;
    text-transform:uppercase;
}
.cine-home-typing-text{
    position:relative;
    min-height:28px;
    color:#fff;
    text-shadow:0 0 18px rgba(207,167,255,.3);
    font:600 clamp(15px,1.45vw,22px)/1.35 Rajdhani,sans-serif;
    letter-spacing:.5px;
    overflow-wrap:anywhere;
}
.cine-typing-cursor{
    display:inline-block;
    width:2px;
    height:1.05em;
    margin-left:5px;
    vertical-align:-.16em;
    background:#fff;
    box-shadow:0 0 9px rgba(213,178,255,.95);
    animation:cineTypingBlink .72s steps(1,end) infinite;
}
@keyframes cineTypingBlink{50%{opacity:0}}
#cine-home-typing.cine-typing-static .cine-typing-cursor{animation:none;opacity:.45}
@media (max-width:700px){
    #cine-home-typing{width:min(92vw,760px);padding:13px 16px 15px;margin-top:11px}
    .cine-home-typing-text{font-size:15px}
    .cine-home-typing-label{font-size:7px;letter-spacing:2px}
}
@media (prefers-reduced-motion:reduce){
    #cine-home-typing::before,.cine-home-typing-stars,.cine-home-typing-scan{animation:none}
    .cine-typing-cursor{animation:none;opacity:.45}
}


/* CINE 2.2 UNIVERSAL WINDOWS */
.window{inset:auto;left:6vw;top:7vh;width:min(1120px,88vw);height:min(760px,82vh);min-width:420px;min-height:280px;border:1px solid rgba(255,255,255,.10);border-radius:16px}
.window.active{transform:none}.window .win-header{transform:translateY(0);cursor:grab;user-select:none}.window .win-header:active{cursor:grabbing}.window.maximized{left:8px!important;top:48px!important;width:calc(100vw - 16px)!important;height:calc(100vh - 56px)!important;border-radius:10px}.window:fullscreen{left:0!important;top:0!important;width:100vw!important;height:100vh!important;border-radius:0!important}
.btn-max{background:#555;border:1px solid #777}.btn-max:hover{background:#aaa;color:#000;transform:scale(1.15)}.btn-max::before{content:'';width:7px;height:7px;border:1px solid currentColor;border-radius:1px}.btn-full{background:#333;border:1px solid #555;color:#ddd;font-size:11px}.btn-full:hover{background:#fff;color:#000;transform:scale(1.15)}
/* CINE 2.1 window + comfort themes */
.window{resize:both;min-width:420px;min-height:280px;overflow:hidden;box-shadow:0 28px 100px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.06)}
.window .win-body{min-width:0;min-height:0}
body.cine-windowed .window{inset:auto;width:min(1100px,88vw);height:min(760px,78vh);left:6vw;top:8vh}
body.cine-windowed .window.active{animation:cineWindowPop .22s ease-out}
@keyframes cineWindowPop{from{opacity:0;transform:scale(.97) translateY(8px)}to{opacity:1;transform:none}}

:root{--comfort-accent:#a8ff00;--comfort-glow:rgba(168,255,0,.25)}
body.cine-theme-cyan{--comfort-accent:#42e8ff;--comfort-glow:rgba(66,232,255,.25)}
body.cine-theme-purple{--comfort-accent:#b67cff;--comfort-glow:rgba(182,124,255,.25)}
body.cine-theme-blue{--comfort-accent:#72a7ff;--comfort-glow:rgba(114,167,255,.25)}
body.cine-theme-amber{--comfort-accent:#ffc857;--comfort-glow:rgba(255,200,87,.25)}
body.cine-theme-mono{--comfort-accent:#ffffff;--comfort-glow:rgba(255,255,255,.18)}
body.cine-theme-red{--comfort-accent:#ff4d5e;--comfort-glow:rgba(255,77,94,.25)}
body.cine-theme-pink{--comfort-accent:#ff5bd7;--comfort-glow:rgba(255,91,215,.25)}
body.cine-theme-orange{--comfort-accent:#ff8a3d;--comfort-glow:rgba(255,138,61,.25)}
body.cine-theme-lime{--comfort-accent:#b7ff4a;--comfort-glow:rgba(183,255,74,.25)}
body.cine-theme-cyan #dock-container,body.cine-theme-purple #dock-container,body.cine-theme-blue #dock-container,body.cine-theme-amber #dock-container,body.cine-theme-mono #dock-container,body.cine-theme-red #dock-container,body.cine-theme-pink #dock-container,body.cine-theme-orange #dock-container,body.cine-theme-lime #dock-container{filter:drop-shadow(0 0 18px var(--comfort-glow))}
body.cine-theme-cyan .window,body.cine-theme-purple .window,body.cine-theme-blue .window,body.cine-theme-amber .window,body.cine-theme-mono .window,body.cine-theme-red .window,body.cine-theme-pink .window,body.cine-theme-orange .window,body.cine-theme-lime .window{box-shadow:0 28px 100px rgba(0,0,0,.72),0 0 0 1px var(--comfort-glow),0 0 32px var(--comfort-glow)}
.cine-comfort-dim{filter:brightness(.82) saturate(.9)}
.cine-comfort-soft *{scrollbar-color:var(--comfort-accent) transparent}
/* CINE 2.5 WINDOW CONTROL HARDENING */
.window{transform:none!important;transition:box-shadow .25s,opacity .18s,width .2s,height .2s,left .2s,top .2s!important}
.window.minimized{transform:scale(.86)!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important;left:auto!important;top:auto!important}
.window.maximized{transform:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.window .win-controls{position:relative;z-index:50;display:flex!important;align-items:center;gap:6px}
.window .win-controls .win-btn{position:relative;z-index:51;pointer-events:auto!important}

/* CINE SIGN IN // username-only session gate */
#cine-auth-screen{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(35,255,145,.13),transparent 35%),rgba(2,6,5,.97);backdrop-filter:blur(18px);opacity:0;pointer-events:none;transition:opacity .22s ease}
#cine-auth-screen[hidden]{display:none}
#cine-auth-screen.open{opacity:1;pointer-events:auto}
.cine-auth-card{width:min(430px,calc(100vw - 36px));box-sizing:border-box;padding:34px;border:1px solid rgba(75,255,170,.3);border-radius:22px;background:linear-gradient(145deg,rgba(13,25,21,.97),rgba(4,10,8,.98));box-shadow:0 0 55px rgba(40,255,150,.13),inset 0 1px 0 rgba(255,255,255,.06);font-family:Rajdhani,sans-serif}
.cine-auth-brand{font:900 22px Orbitron,sans-serif;letter-spacing:2px;color:#fff}.cine-auth-brand span{color:#48ff9b}.cine-auth-kicker{margin-top:18px;font:700 11px 'Share Tech Mono',monospace;letter-spacing:3px;color:#48ff9b}.cine-auth-card h1{margin:8px 0 4px;font:900 34px Orbitron,sans-serif;color:#fff}.cine-auth-sub{margin:0 0 24px;color:rgba(255,255,255,.62);font-size:15px}.cine-auth-card label{display:block;margin:0 0 8px;color:rgba(255,255,255,.72);font:700 11px 'Share Tech Mono',monospace;letter-spacing:2px}.cine-auth-card input{width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#050908;color:#fff;outline:none;font:600 16px Rajdhani,sans-serif}.cine-auth-card input:focus{border-color:#48ff9b;box-shadow:0 0 0 3px rgba(72,255,155,.09)}.cine-auth-primary,.cine-auth-guest{width:100%;margin-top:14px;padding:13px 15px;border-radius:12px;font:800 13px Orbitron,sans-serif;letter-spacing:1px;cursor:pointer}.cine-auth-primary{border:1px solid #48ff9b;background:#48ff9b;color:#03100a;box-shadow:0 0 22px rgba(72,255,155,.16)}.cine-auth-guest{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#fff}.cine-auth-status{min-height:18px;margin-top:12px;text-align:center;color:#ff9c9c;font:700 11px 'Share Tech Mono',monospace;letter-spacing:1px}

/* CINE fullscreen/taskbar behavior */
body.cine-os-fullscreen #dock-container {
    transform: translate(-50%, 150%) !important;
    opacity: 0;
    pointer-events: none;
}
body.cine-os-fullscreen #bottom-trigger {
    height: 42px;
    z-index: 2147483646;
    pointer-events: auto;
}
body.cine-os-fullscreen #bottom-trigger:hover ~ #dock-container,
body.cine-os-fullscreen #dock-container.dock-hover {
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
body.cine-os-fullscreen .window:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
}

/* CINE window manager: keep every app below its title bar. */
.window { box-sizing:border-box !important; overflow:hidden !important; }
.window .win-header { box-sizing:border-box !important; }

.window .win-body iframe { width:100% !important; height:100% !important; display:block !important; }
/* Reveal the window bar when the pointer reaches the top edge of the iframe itself. */
.window .iframe-top-trigger { position:absolute; top:0; left:0; right:0; height:28px; z-index:110; pointer-events:auto; background:transparent; }
.window.header-visible .iframe-top-trigger { pointer-events:none; }



/* CINE FINAL WINDOW/CURSOR PATCH */
.window .win-body { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; margin:0 !important; overflow:hidden !important; }
.window .win-header { pointer-events:auto !important; }
html.cine-cursor-enabled, html.cine-cursor-enabled * { cursor:none !important; }
#cine-cursor, #cine-cursor-trail, #cine-cursor-hud { pointer-events:none !important; }
/* Header slides into the top edge; the top trigger restores it. */
.window .win-header { transform:translateY(-100%); }
.window.header-visible .win-header { transform:translateY(0); }


/* CINE OS // COMPACT PERMANENT MEDIA CORNER */
#restore-btn{display:none!important}
#cine-noti{position:fixed!important;right:16px!important;bottom:16px!important;left:auto!important;top:auto!important;width:280px!important;max-width:calc(100vw - 32px)!important;padding:10px!important;border-radius:14px!important;gap:8px!important;transform:translateY(0) scale(1)!important;opacity:1!important;pointer-events:all!important;z-index:99990!important}
#cine-noti.minimized{transform:translateY(0) scale(1)!important;opacity:1!important;pointer-events:all!important}
#cine-noti .window-actions{display:none!important}
#cine-noti .album-art{width:42px!important;height:42px!important;border-radius:9px!important}
#cine-noti .player-main{gap:10px!important}
#cine-noti .title{font-size:13px!important}
#cine-noti .artist{font-size:11px!important}
#cine-noti .controls{gap:13px!important;margin-top:0!important}
#cine-noti .ctrl-btn svg{width:17px!important;height:17px!important}
#cine-noti .play-pause-btn svg{width:22px!important;height:22px!important}
#cine-noti .time-wrapper{font-size:9px!important;gap:7px!important}
#cine-noti #visualizer{height:9px!important;margin-top:3px!important}
#cine-noti .progress-hit-area{height:12px!important}

/* =========================================================
   FRESH CINE STYLE + CINE CONTROL SYSTEM APPS
========================================================= */
.cine-style-app,.cine-admin-app{font-family:Rajdhani,Arial,sans-serif;color:#eee;min-height:100%;}
.cine-style-app .style-hero,.cine-admin-app .admin-hero{padding:18px;border:1px solid #292929;border-radius:16px;background:linear-gradient(135deg,#101010,#070707);margin-bottom:12px;}
.cine-style-app .eyebrow,.cine-admin-app .eyebrow{font:10px/1 monospace;letter-spacing:3px;color:#aaa;margin-bottom:8px;}
.cine-style-app h1,.cine-admin-app h1{font-family:Orbitron,Arial,sans-serif;font-size:24px;letter-spacing:2px;margin:0 0 6px;}
.cine-style-app p,.cine-admin-app p{color:#888;margin:5px 0;}
.cine-style-app .card,.cine-admin-app .card{background:#0b0b0b;border:1px solid #262626;border-radius:13px;padding:14px;margin-bottom:10px;}
.cine-style-app .style-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:12px;}
.cine-style-app .btn,.cine-admin-app .btn{background:#111;color:#fff;border:1px solid #3a3a3a;border-radius:9px;padding:10px 12px;cursor:pointer;font-weight:700;letter-spacing:.5px;}
.cine-style-app .btn:hover,.cine-admin-app .btn:hover{border-color:#aaa;background:#181818;}
.cine-style-app .row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #202020;}
.cine-style-app .row:last-child{border-bottom:0;}
.cine-style-app input[type=range]{width:min(320px,55%);accent-color:#fff;}
.cine-style-app .actions,.cine-admin-app .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.cine-admin-app .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;}
.cine-admin-app .stat{background:#0b0b0b;border:1px solid #262626;border-radius:13px;padding:14px;}
.cine-admin-app .stat span{display:block;font:9px monospace;color:#777;letter-spacing:1px;}
.cine-admin-app .stat b{display:block;font-size:20px;margin-top:5px;}
.cine-admin-app .tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px;}
.cine-admin-app .tabs .active{border-color:#fff;background:#1a1a1a;}
.cine-admin-app .danger{color:#ff8a9d;border-color:#65313d;}
.cine-admin-app .denied{border-color:#65313d;}
.cine-admin-app .denied h2{color:#ff8a9d;}
.cine-admin-app .table-wrap{overflow:auto;}
.cine-admin-app table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px;}
.cine-admin-app th,.cine-admin-app td{padding:9px;border-bottom:1px solid #202020;text-align:left;vertical-align:top;}
.cine-admin-app th{font:9px monospace;color:#777;letter-spacing:1px;}
.cine-admin-app .muted{color:#777;}
@media(max-width:600px){.cine-admin-app .stats{grid-template-columns:1fr;}.cine-style-app .style-grid{grid-template-columns:repeat(2,1fr);}}

/* CINE STYLE v2 — real desktop theme skins */
:root{--cine-theme-accent:#a8ff00;--cine-theme-glow:rgba(168,255,0,.36);--cine-theme-panel:rgba(10,10,10,.88);--cine-theme-line:rgba(168,255,0,.35)}
body.cine-theme-cyan{--cine-theme-accent:#42e8ff;--cine-theme-glow:rgba(66,232,255,.38);--cine-theme-panel:rgba(4,15,18,.90);--cine-theme-line:rgba(66,232,255,.40)}
body.cine-theme-purple{--cine-theme-accent:#b67cff;--cine-theme-glow:rgba(182,124,255,.38);--cine-theme-panel:rgba(13,7,20,.90);--cine-theme-line:rgba(182,124,255,.40)}
body.cine-theme-blue{--cine-theme-accent:#4f9cff;--cine-theme-glow:rgba(79,156,255,.38);--cine-theme-panel:rgba(5,12,22,.90);--cine-theme-line:rgba(79,156,255,.40)}
body.cine-theme-amber{--cine-theme-accent:#ffc857;--cine-theme-glow:rgba(255,200,87,.36);--cine-theme-panel:rgba(20,14,4,.90);--cine-theme-line:rgba(255,200,87,.40)}
body.cine-theme-mono{--cine-theme-accent:#fff;--cine-theme-glow:rgba(255,255,255,.34);--cine-theme-panel:rgba(18,18,18,.92);--cine-theme-line:rgba(255,255,255,.42)}
body.cine-theme-red{--cine-theme-accent:#ff4d5e;--cine-theme-glow:rgba(255,77,94,.38);--cine-theme-panel:rgba(20,5,7,.90);--cine-theme-line:rgba(255,77,94,.40)}
body.cine-theme-pink{--cine-theme-accent:#ff5bd7;--cine-theme-glow:rgba(255,91,215,.38);--cine-theme-panel:rgba(20,5,17,.90);--cine-theme-line:rgba(255,91,215,.40)}
body.cine-theme-orange{--cine-theme-accent:#ff8a3d;--cine-theme-glow:rgba(255,138,61,.38);--cine-theme-panel:rgba(20,9,3,.90);--cine-theme-line:rgba(255,138,61,.40)}
body.cine-theme-lime{--cine-theme-accent:#b7ff4a;--cine-theme-glow:rgba(183,255,74,.38);--cine-theme-panel:rgba(10,18,4,.90);--cine-theme-line:rgba(183,255,74,.40)}
body.cine-theme-cyan::before,body.cine-theme-purple::before,body.cine-theme-blue::before,body.cine-theme-amber::before,body.cine-theme-mono::before,body.cine-theme-red::before,body.cine-theme-pink::before,body.cine-theme-orange::before,body.cine-theme-lime::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:2;background:radial-gradient(circle at 50% 45%,var(--cine-theme-glow),transparent 68%);mix-blend-mode:screen;opacity:.21}
body.cine-theme-cyan #dock-container,body.cine-theme-purple #dock-container,body.cine-theme-blue #dock-container,body.cine-theme-amber #dock-container,body.cine-theme-mono #dock-container,body.cine-theme-red #dock-container,body.cine-theme-pink #dock-container,body.cine-theme-orange #dock-container,body.cine-theme-lime #dock-container{border-color:var(--cine-theme-line)!important;box-shadow:0 0 24px var(--cine-theme-glow),inset 0 0 18px var(--cine-theme-glow)!important}
body.cine-theme-cyan .dock-item:hover,body.cine-theme-purple .dock-item:hover,body.cine-theme-blue .dock-item:hover,body.cine-theme-amber .dock-item:hover,body.cine-theme-mono .dock-item:hover,body.cine-theme-red .dock-item:hover,body.cine-theme-pink .dock-item:hover,body.cine-theme-orange .dock-item:hover,body.cine-theme-lime .dock-item:hover{background:var(--cine-theme-glow)!important;box-shadow:0 0 18px var(--cine-theme-glow)}
body.cine-theme-cyan .window,body.cine-theme-purple .window,body.cine-theme-blue .window,body.cine-theme-amber .window,body.cine-theme-mono .window,body.cine-theme-red .window,body.cine-theme-pink .window,body.cine-theme-orange .window,body.cine-theme-lime .window{border-color:var(--cine-theme-line)!important;box-shadow:0 28px 100px rgba(0,0,0,.72),0 0 0 1px var(--cine-theme-line),0 0 42px var(--cine-theme-glow)!important}
body.cine-theme-cyan .win-title,body.cine-theme-purple .win-title,body.cine-theme-blue .win-title,body.cine-theme-amber .win-title,body.cine-theme-mono .win-title,body.cine-theme-red .win-title,body.cine-theme-pink .win-title,body.cine-theme-orange .win-title,body.cine-theme-lime .win-title{color:var(--cine-theme-accent)!important;text-shadow:0 0 12px var(--cine-theme-glow)}
body.cine-theme-cyan #app-drawer,body.cine-theme-purple #app-drawer,body.cine-theme-blue #app-drawer,body.cine-theme-amber #app-drawer,body.cine-theme-mono #app-drawer,body.cine-theme-red #app-drawer,body.cine-theme-pink #app-drawer,body.cine-theme-orange #app-drawer,body.cine-theme-lime #app-drawer{box-shadow:inset 0 0 120px var(--cine-theme-glow)!important}
body.cine-theme-cyan .modal__btn,body.cine-theme-purple .modal__btn,body.cine-theme-blue .modal__btn,body.cine-theme-amber .modal__btn,body.cine-theme-mono .modal__btn,body.cine-theme-red .modal__btn,body.cine-theme-pink .modal__btn,body.cine-theme-orange .modal__btn,body.cine-theme-lime .modal__btn{background:var(--cine-theme-accent)!important;color:#050505!important;box-shadow:0 0 18px var(--cine-theme-glow)}
body.cine-theme-cyan button:hover,body.cine-theme-purple button:hover,body.cine-theme-blue button:hover,body.cine-theme-amber button:hover,body.cine-theme-mono button:hover,body.cine-theme-red button:hover,body.cine-theme-pink button:hover,body.cine-theme-orange button:hover,body.cine-theme-lime button:hover{border-color:var(--cine-theme-accent)!important;box-shadow:0 0 14px var(--cine-theme-glow)}

/* CINE // WIDGETS */






@keyframes cineCorePulse{0%,100%{transform:scale(.86);opacity:.6}50%{transform:scale(1.14);opacity:1}}
}
/* CINE // WIDGET SHOW BUTTON */







/* CINE auth form refresh */
.cine-auth-secondary{display:block;width:100%;margin-top:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.035);color:#f5f5f5;font:800 12px Orbitron,sans-serif;letter-spacing:1px;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.cine-auth-secondary:hover{border-color:rgba(72,255,155,.6);background:rgba(72,255,155,.08)}.cine-auth-primary:disabled,.cine-auth-secondary:disabled{opacity:.55;cursor:wait;transform:none}.cine-auth-status[data-kind="success"]{color:#48ff9b}.cine-auth-status[data-kind="info"]{color:rgba(255,255,255,.78)}.cine-auth-status[data-kind="error"]{color:#ff9c9c}


/* CINE-OS THEME INTENSITY + BACKGROUND MOTION PASS
   Same black / monochrome cinematic language; stronger glow and depth. */
:root {
  --cine-theme-accent: #d7ffe5;
  --cine-theme-glow: rgba(95,255,157,.34);
  --cine-theme-panel: rgba(5,10,8,.92);
  --cine-theme-line: rgba(95,255,157,.42);
}
body:not([data-cine-theme]), body[data-cine-theme="green"] {
  --cine-theme-accent: #a8ffc7;
  --cine-theme-glow: rgba(52,255,126,.36);
  --cine-theme-panel: rgba(3,12,7,.92);
  --cine-theme-line: rgba(65,255,137,.48);
}
body.cine-enhanced #cine-atmo-fx { opacity: .92; }
body.cine-enhanced #cine-core-aura {
  opacity: .92;
  filter: blur(17px) saturate(1.2);
}
body.cine-enhanced #cine-cinematic-scan {
  opacity: .52;
  height: 3px;
  box-shadow: 0 0 18px rgba(255,255,255,.12);
}
body.cine-enhanced::before { opacity: .32; }
body.cine-enhanced::after { opacity: .24; }
body.cine-max-fx #cine-atmo-fx { opacity: 1; }
body.cine-max-fx #cine-core-aura { opacity: 1; filter: blur(14px) saturate(1.35); }
body.cine-max-fx #cine-cinematic-scan { opacity: .72; }

/* All accent palettes get a clearer, richer glow without changing layout. */
body[data-cine-theme] #dock-container {
  filter: drop-shadow(0 0 12px var(--cine-theme-glow));
}
body[data-cine-theme] .dock-item:hover,
body[data-cine-theme] .desktop-app:hover {
  box-shadow: 0 0 22px var(--cine-theme-glow), inset 0 0 12px var(--cine-theme-glow);
}
body[data-cine-theme] .window {
  border-color: var(--cine-theme-line);
  box-shadow: 0 28px 100px rgba(0,0,0,.76), 0 0 0 1px var(--cine-theme-line), 0 0 30px var(--cine-theme-glow);
}
body[data-cine-theme] .win-title,
body[data-cine-theme] .wp-modal-header h2 {
  text-shadow: 0 0 12px var(--cine-theme-glow);
}
body[data-cine-theme] button:focus-visible,
body[data-cine-theme] input:focus-visible,
body[data-cine-theme] .wp-card:focus-visible {
  outline: 1px solid var(--cine-theme-accent);
  box-shadow: 0 0 0 3px var(--cine-theme-glow);
}
#wallpaper-menu[open] { z-index: 10020; }
#wallpaper-menu::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
#wallpaper-menu.open { animation: cineWallpaperIn .22s ease-out both; }
@keyframes cineWallpaperIn {
  from { opacity: 0; transform: translate(-50%,-48%) scale(.975); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #cine-core-aura, #cine-cinematic-scan, #wallpaper-menu.open { animation-duration: .01ms !important; }
}

/* CINE custom image wallpapers: full colour with a slow cinematic drift. */
#bg-img.cine-animated-wallpaper, #lock-img.cine-animated-wallpaper {
  filter: saturate(1.12) brightness(.78) contrast(1.08) !important;
  transform-origin: center;
  animation: cineWallpaperDrift 24s ease-in-out infinite alternate;
  will-change: transform, filter;
}
@keyframes cineWallpaperDrift {
  0% { transform: scale(1.015) translate3d(-.35%, .15%, 0); filter: saturate(1.05) brightness(.76) contrast(1.07); }
  50% { filter: saturate(1.22) brightness(.82) contrast(1.1); }
  100% { transform: scale(1.12) translate3d(.45%, -.35%, 0); filter: saturate(1.15) brightness(.78) contrast(1.08); }
}
#wallpaper-menu.open { display: flex !important; }
#wallpaper-menu::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(7px); }
@media (max-width: 640px) {
  #wallpaper-menu { padding: 16px; max-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  #bg-img.cine-animated-wallpaper, #lock-img.cine-animated-wallpaper { animation: none; }
}

/* CINE wallpaper modal: fixed viewport centering; prevent clipped corner placement. */
#wallpaper-menu[open], #wallpaper-menu.open {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  margin: 0 !important;
  translate: none !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: auto !important;
  transform: translate(-50%,-50%) scale(1) !important;
}
#wallpaper-menu.open { animation: cineWallpaperIn .24s ease-out both; }
#wallpaper-menu .wp-grid-container { min-height: 0; }
#wallpaper-menu .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#wallpaper-menu .wp-card img { image-rendering: auto; filter: saturate(1.08) contrast(1.04); transform: scale(1.015); transition: transform .7s ease, filter .7s ease; }
#wallpaper-menu .wp-card:hover img { transform: scale(1.07); filter: saturate(1.2) contrast(1.07); }
@media (max-width: 640px) {
  #wallpaper-menu .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #wallpaper-menu .wp-controls-row { gap: 10px; flex-wrap: wrap; }
  #wallpaper-menu .segmented-control span { padding: 7px 9px; font-size: 11px; }
}
/* More visible but slow cinematic motion, without changing the artwork/design. */
#bg-img.cine-animated-wallpaper, #lock-img.cine-animated-wallpaper {
  animation: cineWallpaperDrift 30s ease-in-out infinite alternate !important;
  backface-visibility: hidden;
}
@keyframes cineWallpaperDrift {
  0% { transform: scale(1.025) translate3d(-.55%, .25%, 0); filter: saturate(1.06) brightness(.82) contrast(1.08); }
  35% { filter: saturate(1.18) brightness(.86) contrast(1.1); }
  70% { filter: saturate(1.24) brightness(.84) contrast(1.12); }
  100% { transform: scale(1.14) translate3d(.6%, -.45%, 0); filter: saturate(1.12) brightness(.82) contrast(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  #bg-img.cine-animated-wallpaper, #lock-img.cine-animated-wallpaper { animation: none !important; }
}


/* CINE-OS final wallpaper dialog positioning: center in the viewport, never clipped. */
#wallpaper-menu, #wallpaper-menu[open], #wallpaper-menu.open {
  position: fixed !important;
  top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
  margin: 0 !important;
  width: min(900px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  box-sizing: border-box !important;
  transform: translate3d(-50%, -50%, 0) scale(1) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}
#wallpaper-menu::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
#wallpaper-menu .wp-grid-container { min-width: 0; width: 100%; }
#wallpaper-menu .wp-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
#wallpaper-menu .wp-card img { width: 100%; height: auto; object-fit: cover; image-rendering: auto; }
@media (max-width: 600px) {
  #wallpaper-menu, #wallpaper-menu[open], #wallpaper-menu.open { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px) !important; padding: 14px !important; }
  #wallpaper-menu .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
