/*
 * Portfolio Sandra — Kawaii Retro Style
 * "kawaii full manga japan tokyo vibes + emo girl 2003"
 * Vibe > Accuracy
 */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Zen+Maru+Gothic:wght@400;700&family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Desktop */
    --desktop-bg: #e0e0e0;

    /* Window chrome */
    --window-bg: #d4ccd0;
    --window-border-light: #e8e0e4;
    --window-border-dark: #a098a0;
    --window-border-darker: #605860;

    /* Titlebars — blue → violet → pink lavender */
    --active-titlebar-start: #1a0a80;
    --active-titlebar-mid: #7b68ee;
    --active-titlebar-end: #e0a0d8;
    --inactive-titlebar-start: #a0a0b0;
    --inactive-titlebar-end: #c8b8d8;

    /* Taskbar */
    --taskbar-bg: #d4ccd0;

    /* Buttons */
    --button-bg: #d4ccd0;
    --button-hover: #e8dce4;
    --button-active: #b8a8b4;

    /* Text */
    --text-color: #2a1a2e;
    --white: #ffffff;

    /* Accent colors */
    --accent-pink: #ff69b4;
    --accent-purple: #8b5cf6;
    --accent-sky: #87ceeb;
    --accent-hotpink: #ff1493;

    /* Selection */
    --selection-bg: rgba(139, 92, 246, 0.3);
    --selection-border: #e0c0ff;

    /* Kawaii extras */
    --sparkle-color: rgba(255, 255, 255, 0.8);
    --glow-pink: rgba(255, 105, 180, 0.3);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: inherit;
}

html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='42' viewBox='0 0 20 22'%3E%3Cpath d='M2 1L2 18L6 14L9 20L12 19L9 13L14 13Z' fill='%23ff69b4' stroke='%232a1a2e' stroke-width='1'/%3E%3C/svg%3E"), default;
}

body {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    overflow: hidden;
    height: 100vh;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='42' viewBox='0 0 20 22'%3E%3Cpath d='M2 1L2 18L6 14L9 20L12 19L9 13L14 13Z' fill='%23ff69b4' stroke='%232a1a2e' stroke-width='1'/%3E%3C/svg%3E"), default;
    color: var(--text-color);
}

/* ===== CUSTOM POINTER — Pink heart cursor ===== */
.icon, .gallery-item, .lightbox-close, .lightbox-prev, .lightbox-next,
.start-button, .taskbar-item, .start-menu-item, .window-button,
.menu-item, .paint-tool, .paint-color, .paint-send-btn,
.email-toolbar-btn, .winamp-btn, .winamp-track,
.dialog-btn, .error-close, .error-ok, .about-link-btn,
.winamp-seek-slider, .bios-skip, .kutv-channel-btn,
.start-menu-main, .start-icon, .clock,
#paint-canvas, .paint-canvas-container,
.tree-row, .explorer-list-item, .explorer-btn, .viewer-thumb,
a, button, [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='28' viewBox='0 0 20 18'%3E%3Cpath d='M10 17C10 17 1 10 1 5C1 2 3 0 6 0C8 0 10 2 10 2C10 2 12 0 14 0C17 0 19 2 19 5C19 10 10 17 10 17Z' fill='%23ff69b4' stroke='%232a1a2e' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 15 14, pointer !important;
}

/* ===== SPLASH SCREEN — BIOS BOOT ===== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0012;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 99999;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.bios-content {
    padding: 40px 50px;
    width: 100%;
    max-width: 700px;
    z-index: 1;
}

.bios-lines {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.7;
    color: #e0c0d8;
}

.bios-line {
    opacity: 0;
    animation: biosLineAppear 0.1s ease-out forwards;
    white-space: pre;
}

.bios-line.highlight {
    color: #ff69b4;
}

.bios-line.dimmed {
    color: #5a4868;
}

.bios-line.accent {
    color: #87ceeb;
}

.bios-line.success {
    color: #7b68ee;
}

@keyframes biosLineAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Blinking cursor at the end of the last line */
.bios-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #e0c0d8;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink-cursor 0.6s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.bios-progress-section {
    margin-top: 12px;
}

.bios-skip {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #5a4868;
    margin-top: 16px;
    animation: blink-cursor 1.2s step-end infinite;
}

.splash-progress-border {
    width: 320px;
    height: 22px;
    border: 2px outset #5a4868;
    border-right-color: #2a1838;
    border-bottom-color: #2a1838;
    background: #1a0a28;
    margin: 0 0 16px;
    padding: 3px;
}

.splash-progress-bar {
    height: 100%;
    width: 100%;
    display: flex;
    gap: 2px;
    align-items: stretch;
}

.progress-block {
    flex: 1;
    background: transparent;
    transition: none;
}

.progress-block.filled {
    background: #7b68ee;
    box-shadow: inset -1px -1px 0px #4a2a6a, inset 1px 1px 0px #a090d0;
}

.splash-skip {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #5a4868;
    margin-top: 8px;
}

/* ===== DESKTOP ===== */
#desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #8daaf0 url('../img/desktop/wallpaper.svg') center center / cover no-repeat;
    overflow: hidden;
}

/* Animated wallpaper — subtle sparkles */
#desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 5% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 15% 45%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 25% 75%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 35% 25%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 45% 55%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 65% 35%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 75% 65%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 85% 10%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 92% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 8% 88%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 40% 95%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 8%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 95% 92%, rgba(255,255,255,0.5), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    25% { opacity: 0.6; }
    50% { opacity: 0.4; }
    75% { opacity: 0.7; }
    100% { opacity: 0.35; }
}

/* ===== KAWAII BUNNY ANIMATION ===== */
/* 5x scale (500%): original 62x65 → 310x325, sprite 310 → 1550 */
/* Frames: bunny1(0) bunny3(-310) bunny4(-620) bunny5(-930) bunny6(-1240) */
.bunny-container {
    position: fixed;
    bottom: 60px;  /* above taskbar */
    right: 20px;
    width: 310px;   /* 62 × 5 */
    height: 325px;  /* 65 × 5 */
    z-index: 100;
    pointer-events: auto;  /* enable interaction */
    overflow: hidden;
    cursor: grab;
}

.bunny-container:active {
    cursor: grabbing;
}

.bunny-container.dragging {
    cursor: grabbing;
}

.bunny-sprite {
    width: 1550px;  /* 310 × 5 (5 frames × 310px) */
    height: 325px;  /* 65 × 5 */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    animation: bunnyExpressions 3.5s steps(1) infinite;
    /* White lines via CSS filter */
    filter: brightness(0) invert(1);
    transition: none;
}

/* Hover state: bunny1 (frame 0) */
.bunny-container:hover .bunny-sprite {
    animation: none;
    transform: translateX(0);  /* bunny1 */
}

/* Dragging state: bunny4 (frame 2 = -620px) */
.bunny-container.dragging .bunny-sprite {
    animation: none;
    transform: translateX(-620px);  /* bunny4 */
}

/* Shrink animation when dragging bunny over recycle bin */
.bunny-container.over-recycle {
    transform: scale(0.3);
    transform-origin: center center;
    transition: transform 0.4s ease-in, left 0.4s ease-in, top 0.4s ease-in;
}

/* z-index boost while dragging so bunny is always on top */
.bunny-container.dragging {
    z-index: 10000;
}

/* Frame animation: 5 frames, 0.7s each = 3.5s total cycle */
/* Cycle: bunny1 → bunny3 → bunny4 → bunny5 → bunny6 */
/* translateX values for scaled sprite (310px per frame) */
@keyframes bunnyExpressions {
    0%     { transform: translateX(0); }        /* frame 1 */
    20%    { transform: translateX(-310px); }   /* frame 3 */
    40%    { transform: translateX(-620px); }   /* frame 4 */
    60%    { transform: translateX(-930px); }   /* frame 5 */
    80%    { transform: translateX(-1240px); }  /* frame 6 */
}

/* ===== LAIN GLITCH EFFECT — random horizontal jump ===== */
@keyframes glitchJump {
    0%, 94% { transform: translate(0, 0) skewX(0deg); }
    95% { transform: translate(-3px, 1px) skewX(-0.5deg); }
    96% { transform: translate(4px, -1px) skewX(0.8deg); }
    97% { transform: translate(-2px, 0px) skewX(-0.3deg); }
    98% { transform: translate(1px, 1px) skewX(0.2deg); }
    99% { transform: translate(0, 0) skewX(0deg); }
    100% { transform: translate(0, 0) skewX(0deg); }
}

#desktop.glitching {
    animation: glitchJump 0.15s ease-in-out;
}

/* ===== NIGHT MODE OVERLAY (disabled) ===== */

/* ===== ERROR WINDOW CASCADE (Lain style) ===== */
.error-dialog {
    position: fixed;
    background: var(--window-bg);
    border: 2px outset var(--window-bg);
    width: 260px;
    z-index: 99999;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    user-select: none;
}

.error-dialog .error-titlebar {
    background: linear-gradient(90deg, var(--active-titlebar-start), var(--active-titlebar-mid), var(--active-titlebar-end));
    color: white;
    padding: 3px 3px 3px 6px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 22px;
}

.error-dialog .error-close {
    width: 18px;
    height: 16px;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    line-height: 1;
}

.error-dialog .error-close:active {
    border-style: inset;
}

.error-dialog .error-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
}

.error-dialog .error-icon {
    font-size: 28px;
}

.error-dialog .error-ok {
    padding: 4px 24px;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    font-size: 13px;
    color: var(--text-color);
    outline: 1px dotted #333;
    outline-offset: -4px;
    transition: background 0.1s;
}

.error-dialog .error-ok:hover {
    background: var(--accent-pink);
    color: white;
}

.error-dialog .error-ok:active {
    border-style: inset;
}

.error-dialog .error-close:hover {
    background: var(--accent-pink);
    color: white;
}

/* CRT scanlines + flicker — covers ENTIRE site */
/* CRT scanlines — covers entire site */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 999999;
}

/* CRT flicker overlay — separate layer for brightness flashes */
#crt-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999998;
    opacity: 0;
    mix-blend-mode: multiply;
}

/* CRT vignette — dark corners like a real tube monitor */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    z-index: 999998;
}

/* ===== DESKTOP ICONS ===== */
.desktop-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 46px; /* above taskbar */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(7, 1fr);
    z-index: 100;
    pointer-events: none; /* let clicks through to desktop */
}

.desktop-icons .icon {
    pointer-events: auto; /* but icons are clickable */
}

/* Scatter icons across the grid — organic layout like a real desktop */
.icon[data-window="illustration"]    { grid-column: 1; grid-row: 1; }
.icon[data-window="personajes"]   { grid-column: 1; grid-row: 2; }
.icon[data-window="experimental"] { grid-column: 1; grid-row: 3; }
#photos-icon                      { grid-column: 2; grid-row: 4; }
.icon[data-window="winamp"]       { grid-column: 2; grid-row: 1; }
.icon[data-window="about"]        { grid-column: 11; grid-row: 1; }
.icon[data-window="notepad"]      { grid-column: 10; grid-row: 3; }
.icon[data-window="email"]        { grid-column: 12; grid-row: 2; }
.icon[data-window="paint"]        { grid-column: 5; grid-row: 6; }
.icon[data-window="recycle"]      { grid-column: 1; grid-row: 7; }
.icon[data-window="ie-browser"]   { grid-column: 1; grid-row: 2; }

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    align-self: center;
    width: 90px;
    padding: 6px;
    transition: transform 0.1s;
    user-select: none;
    cursor: grab;
}

.icon.dragging {
    cursor: grabbing;
    z-index: 200;
    opacity: 0.9;
}

.icon:hover {
    outline: 1px dashed var(--selection-border);
    transform: scale(1.05);
}

.icon:hover .icon-text {
    text-shadow: none;
}

.icon.selected {
    outline: 1px dashed var(--selection-border);
}

.icon.selected .icon-text {
    background: var(--accent-purple);
    color: white;
    text-shadow: none;
}

.icon-image {
    width: 72px;
    height: 72px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
    position: relative;
}

.icon-image svg {
    width: 72px;
    height: 72px;
    image-rendering: pixelated;
    filter: drop-shadow(1px 2px 0px rgba(42, 26, 46, 0.25));
}

.icon-text {
    color: white;
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(42, 26, 46, 0.8), 0 0 4px rgba(139, 92, 246, 0.3);
    word-wrap: break-word;
    max-width: 90px;
    line-height: 1.3;
}

/* ===== WINDOWS ===== */
.window {
    position: absolute;
    background: var(--window-bg);
    border: 2px outset var(--window-bg);
    min-width: 250px;
    min-height: 150px;
    z-index: 1000;
    display: none;
    box-shadow: 3px 3px 0px rgba(42, 26, 46, 0.4), 0 0 15px rgba(139, 92, 246, 0.1);
    resize: both;
    overflow: hidden;
}

.window.visible {
    display: flex;
    flex-direction: column;
    animation: windowOpen 0.2s ease-out forwards;
}

.window.closing {
    animation: windowClose 0.2s ease-in forwards;
}

.window.active {
    z-index: 1001;
    box-shadow: 3px 3px 0px rgba(42, 26, 46, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Window open/close animations */
@keyframes windowOpen {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes windowClose {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.85);
    }
}

/* Close animation for maximized windows — fade only, no scale */
@keyframes windowCloseMaximized {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.window.maximized.closing {
    animation: windowCloseMaximized 0.2s ease-in forwards;
}

/* Resize handle */
.window::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: se-resize;
    z-index: 10;
}

/* Window header / titlebar — gradient azul→violeta→rosa */
.window-header {
    background: linear-gradient(90deg, var(--active-titlebar-start) 0%, var(--active-titlebar-mid) 50%, var(--active-titlebar-end) 100%);
    color: var(--white);
    padding: 3px 3px 3px 6px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='16,2 12,7 14,7 14,14 7,14 7,12 2,16 7,20 7,18 14,18 14,25 12,25 16,30 20,25 18,25 18,18 25,18 25,20 30,16 25,12 25,14 18,14 18,7 20,7' fill='%23ff69b4' stroke='%232a1a2e' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.window.inactive .window-header {
    background: linear-gradient(90deg, var(--inactive-titlebar-start) 0%, var(--inactive-titlebar-end) 100%);
    color: #e0d8e4;
}

.window-title {
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

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

.window-button {
    width: 24px;
    height: 20px;
    background: var(--button-bg);
    border: 1px outset var(--button-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-color);
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.window-button:hover {
    background: var(--accent-purple);
    color: white;
}

.window-button:active {
    border: 1px inset var(--button-bg);
}

.close-btn:hover {
    background: var(--accent-hotpink) !important;
    color: var(--white) !important;
}

/* Menu bar */
.window-menu-bar {
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
    padding: 1px 4px;
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.menu-item {
    padding: 1px 6px;
    cursor: inherit;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--accent-purple);
    color: white;
}

/* Window content */
.window-content {
    padding: 8px;
    background: var(--white);
    border: 1px inset var(--window-bg);
    margin: 2px;
    flex: 1;
    overflow-y: auto;
    font-size: 15px;
    color: var(--text-color);
}

/* Status bar */
.window-status-bar {
    background: var(--window-bg);
    border-top: 1px solid var(--window-border-dark);
    padding: 2px 6px;
    font-size: 14px;
    flex-shrink: 0;
    color: #6a5870;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#explorer-filename {
    color: #6a5870;
    font-size: 14px;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 4px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px inset var(--window-bg);
    background: #f8f0f4;
    transition: transform 0.15s, box-shadow 0.15s;
}

.gallery-item:hover {
    border: 2px solid var(--accent-pink);
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(255,105,180,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #a090a8;
}

.gallery-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: var(--accent-pink);
    opacity: 0.5;
}

.gallery-hint {
    font-size: 10px;
    color: #b8a8c0;
    margin-top: 4px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 18, 0.92);
    z-index: 99998;
    align-items: center;
    justify-content: center;
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px outset var(--window-bg);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    color: var(--text-color);
    font-size: 18px;
    z-index: 99999;
}

.lightbox-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 20px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-pink);
    color: white;
}

/* ===== ABOUT ME ===== */
.about-content {
    background: var(--window-bg) !important;
    padding: 12px !important;
    font-family: 'Courier New', monospace;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--window-border-dark);
}

.about-avatar {
    font-size: 48px;
    color: var(--accent-pink);
}

.about-info h2 {
    font-size: 16px;
    margin-bottom: 2px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.about-subtitle {
    color: #8a7090;
    font-size: 14px;
}

.about-section {
    margin-bottom: 12px;
}

.about-section h3 {
    font-size: 11px;
    background: linear-gradient(90deg, var(--active-titlebar-start), var(--active-titlebar-mid));
    color: white;
    padding: 2px 6px;
    margin-bottom: 6px;
}

.about-specs {
    background: var(--white);
    border: 1px inset var(--window-bg);
    padding: 6px;
}

.spec-row {
    display: flex;
    padding: 2px 0;
    border-bottom: 1px dotted #e8d8e8;
}

.spec-label {
    font-weight: bold;
    width: 100px;
    flex-shrink: 0;
    color: var(--accent-purple);
}

.spec-value {
    color: #4a3850;
}

.about-bio {
    background: var(--white);
    border: 1px inset var(--window-bg);
    padding: 8px;
    line-height: 1.5;
}

.about-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.about-link-btn {
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    padding: 6px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    transition: background 0.15s;
}

.about-link-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.about-link-btn:active {
    border: 2px inset var(--button-bg);
}

/* ===== NOTEPAD ===== */
.notepad-content {
    padding: 0 !important;
    background: var(--white) !important;
    font-family: 'Courier New', monospace !important;
}

.notepad-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    padding: 8px;
    margin: 0;
}

/* ===== EMAIL ===== */
.email-toolbar {
    background: var(--window-bg);
    padding: 2px 4px;
    border-bottom: 1px solid var(--window-border-dark);
    flex-shrink: 0;
}

.email-toolbar-btn {
    background: var(--button-bg);
    border: 1px outset var(--button-bg);
    padding: 3px 12px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.email-toolbar-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.email-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.email-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.email-field {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8d8e8;
    background: var(--white);
}

.email-field label {
    padding: 4px 8px;
    font-weight: bold;
    width: 60px;
    flex-shrink: 0;
    background: var(--window-bg);
    font-size: 11px;
    color: var(--accent-purple);
}

.email-input {
    flex: 1;
    border: none !important;
    padding: 4px 8px;
    font-size: 11px;
    font-family: inherit;
    outline: none;
}

.email-input:focus {
    background: #fef0f8;
}

.email-to {
    background: #f8f0f4 !important;
    color: #8a7090;
}

.email-body-field {
    flex: 1;
    display: flex;
}

.email-textarea {
    width: 100%;
    border: none !important;
    resize: none;
    padding: 8px;
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.email-textarea:focus {
    background: #fef0f8;
}

/* ===== PAINT (MS Paint classic layout) ===== */
.paint-content {
    padding: 0 !important;
    background: var(--window-bg) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paint-layout {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

/* Left sidebar — tools grid */
.paint-sidebar {
    width: 52px;
    flex-shrink: 0;
    background: var(--window-bg);
    border-right: 1px solid var(--window-border-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 3px;
    gap: 6px;
}

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

.paint-tool {
    width: 22px;
    height: 22px;
    background: var(--button-bg);
    border: 1px outset var(--button-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-color);
    transition: background 0.1s;
    padding: 0;
}

.paint-tool:hover {
    background: var(--accent-purple);
    color: white;
}

.paint-tool.active {
    border: 1px inset var(--button-bg);
    background: var(--button-active);
    color: var(--accent-purple);
}

/* Size slider — vertical in sidebar */
.paint-size-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.paint-size-vertical input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 20px;
    height: 60px;
    accent-color: var(--accent-pink);
}

/* Canvas area */
.paint-canvas-container {
    flex: 1;
    margin: 2px;
    border: 1px inset var(--window-bg);
    background: white;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

#paint-canvas {
    display: block;
    /* cursor inherited from heart pointer rule */
}

/* Bottom bar: current color + palette + actions */
.paint-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    background: var(--window-bg);
    border-top: 1px solid var(--window-border-dark);
    flex-shrink: 0;
}

/* Current foreground/background color preview */
.paint-current-colors {
    flex-shrink: 0;
}

.paint-color-preview {
    position: relative;
    width: 30px;
    height: 30px;
}

.paint-fg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    z-index: 2;
}

.paint-bg-color {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #a098a0;
    z-index: 1;
}

/* Color palette — 14 columns × 2 rows */
.paint-colors {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 1px;
    flex-shrink: 0;
}

.paint-color {
    width: 14px;
    height: 14px;
    border: 1px solid #a098a0;
    transition: transform 0.1s;
}

.paint-color.active {
    border: 2px solid var(--accent-hotpink);
    outline: 1px solid #fff;
}

.paint-color:hover {
    transform: scale(1.3);
    z-index: 2;
}

/* Send button + hint */
.paint-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.paint-send-btn {
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    padding: 3px 10px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
    white-space: nowrap;
}

.paint-send-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.paint-hint {
    font-size: 9px;
    color: #a090b0;
    font-style: italic;
    font-family: 'Zen Maru Gothic', sans-serif;
    white-space: nowrap;
    display: none; /* hide on small paint windows, show on wider ones */
}

/* ===== WINAMP PLAYER ===== */
.winamp-window {
    min-width: 280px !important;
    max-width: 380px;
}

.winamp-window .window-header {
    background: linear-gradient(180deg, #4a3520 0%, #2a1a10 100%);
}

.winamp-body {
    background: linear-gradient(180deg, #5a4030 0%, #3a2518 50%, #2a1808 100%);
    padding: 0;
    font-family: 'VT323', monospace;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ===== WINAMP MAXIMIZED ===== */
.winamp-window.maximized {
    max-width: none;
}

.winamp-window.maximized .winamp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.winamp-window.maximized .winamp-playlist {
    flex: 1;
    max-height: none;
}

/* Display screen */
.winamp-display {
    background: #0a0514;
    border: 2px inset #1a0a28;
    margin: 6px 6px 4px;
    padding: 6px 8px;
    color: #87ceeb;
    font-size: 11px;
    overflow: hidden;
}

.winamp-title-scroll {
    white-space: nowrap;
    overflow: hidden;
    color: #87ceeb;
    font-size: 13px;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 0 4px rgba(135, 206, 235, 0.5);
}

.winamp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.winamp-time {
    color: #00ff00;
    font-size: 20px;
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
    flex-shrink: 0;
}

/* Visualizer bars */
.winamp-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
    flex: 1;
}

.viz-bar {
    flex: 1;
    background: linear-gradient(0deg, #ff69b4, #8b5cf6);
    height: 10%;
    min-height: 1px;
    transition: height 0.1s ease;
    border-radius: 1px 1px 0 0;
}

/* Seek bar */
.winamp-seek {
    padding: 2px 6px;
}

.winamp-seek-slider {
    width: 100%;
    height: 8px;
    accent-color: #ff69b4;
}

/* Transport controls */
.winamp-controls {
    display: flex;
    justify-content: center;
    gap: 3px;
    padding: 4px 6px;
}

.winamp-btn {
    width: 36px;
    height: 24px;
    background: linear-gradient(180deg, #6a5040 0%, #4a3020 100%);
    border: 1px outset #8a7060;
    color: #ffb6c1;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    font-family: inherit;
}

.winamp-btn:hover {
    background: linear-gradient(180deg, #8a6850 0%, #6a4830 100%);
    color: #fff;
}

.winamp-btn:active {
    border-style: inset;
}

.winamp-btn.winamp-play {
    width: 42px;
    color: #00ff00;
    font-size: 14px;
}

.winamp-btn.winamp-play.playing {
    color: #00ff00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
}

/* Volume + Balance sliders */
.winamp-sliders {
    display: flex;
    gap: 10px;
    padding: 2px 8px 4px;
    align-items: center;
}

.winamp-slider-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.winamp-slider-label {
    color: #ff69b4;
    font-size: 10px;
    font-family: 'VT323', monospace;
    min-width: 24px;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.4);
}

.winamp-vol-slider,
.winamp-bal-slider {
    flex: 1;
    height: 6px;
    accent-color: #ff69b4;
}

/* Playlist */
.winamp-playlist {
    background: #0a0514;
    border: 2px inset #1a0a28;
    margin: 4px 6px 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 60px;
}

.winamp-playlist-header {
    color: #ff69b4;
    font-size: 10px;
    font-family: 'VT323', monospace;
    text-align: center;
    padding: 3px;
    letter-spacing: 2px;
    border-bottom: 1px solid #2a1a3e;
    text-shadow: 0 0 4px rgba(255, 105, 180, 0.5);
}

.winamp-track {
    color: #87ceeb;
    font-size: 12px;
    font-family: 'VT323', monospace;
    padding: 3px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}

.winamp-track:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.winamp-track.active {
    background: linear-gradient(90deg, rgba(255, 105, 180, 0.4), rgba(139, 92, 246, 0.3));
    color: #ff69b4;
    text-shadow: 0 0 4px rgba(255, 105, 180, 0.5);
}

/* Scrollbar for playlist */
.winamp-playlist::-webkit-scrollbar {
    width: 12px;
}

.winamp-playlist::-webkit-scrollbar-track {
    background: #1a0a28;
}

.winamp-playlist::-webkit-scrollbar-thumb {
    background: #4a3020;
    border: 1px outset #6a5040;
}

/* ===== RECYCLE BIN ===== */
.recycle-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recycle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: inherit;
    font-size: 11px;
    transition: background 0.1s;
}

.recycle-item:hover {
    background: var(--selection-bg);
    color: var(--accent-purple);
}

.recycle-item i {
    color: #b8a0c8;
    font-size: 14px;
}

.recycle-note {
    margin-top: 16px;
    text-align: center;
    color: #b8a0c8;
    font-size: 10px;
    font-style: italic;
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* Dead bunny in recycle bin */
.recycle-item.dead-bunny {
    color: var(--accent-pink);
}

.recycle-item.dead-bunny i {
    color: var(--accent-pink);
}

/* ===== KuTV — RETRO TELEVISION ===== */
.kutv-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: #1a1a2e !important;
}

.kutv-screen-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 200px;
}

.kutv-screen-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.kutv-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--window-bg);
    border-top: 1px outset var(--window-bg);
    flex-shrink: 0;
}

.kutv-channels {
    display: flex;
    gap: 4px;
    flex: 1;
}

.kutv-channel-btn {
    padding: 3px 12px;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-color);
    transition: background 0.1s;
    white-space: nowrap;
    flex: 1;
}

.kutv-channel-btn:hover {
    background: var(--accent-purple);
    color: white;
}

.kutv-channel-btn.active {
    border: 2px inset var(--button-bg);
    background: var(--button-active);
    color: var(--accent-pink);
}

.kutv-label {
    font-size: 12px;
    color: #8a7090;
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* ===== TASKBAR ===== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: var(--taskbar-bg);
    border-top: 2px outset var(--taskbar-bg);
    display: flex;
    align-items: center;
    z-index: 9999;
    font-size: 15px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='42' viewBox='0 0 20 22'%3E%3Cpath d='M2 1L2 18L6 14L9 20L12 19L9 13L14 13Z' fill='%23ff69b4' stroke='%232a1a2e' stroke-width='1'/%3E%3C/svg%3E") 0 0, default !important;
}

.start-button {
    padding: 3px 12px;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    font-weight: bold;
    margin: 3px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--text-color);
    user-select: none;
    transition: background 0.1s;
}

.start-button:hover {
    background: var(--accent-purple);
    color: white;
}

.start-button.active {
    border: 1px inset var(--button-bg);
    background: var(--button-active);
}

.start-button i,
.start-button .start-icon {
    font-size: 16px;
    color: var(--accent-pink);
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    margin-left: 4px;
    overflow: hidden;
}

.taskbar-item {
    padding: 3px 10px;
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--text-color);
    transition: background 0.1s;
}

.taskbar-item.active {
    border: 1px inset var(--button-bg);
    background: var(--button-active);
    font-weight: bold;
    color: var(--accent-purple);
}

.taskbar-item:hover {
    background: var(--accent-purple);
    color: white;
}

.clock {
    padding: 3px 10px;
    border: 2px inset var(--button-bg);
    margin: 3px 5px 3px 3px;
    font-size: 16px;
    height: 38px;
    display: flex;
    align-items: center;
    min-width: 60px;
    justify-content: center;
    color: #6a5870;
}

/* ===== START MENU ===== */
.start-menu {
    position: fixed;
    bottom: 46px;
    left: 0;
    background: var(--window-bg);
    border: 2px outset var(--window-bg);
    display: none;
    z-index: 10000;
    box-shadow: 3px -3px 0px rgba(42, 26, 46, 0.3);
}

.start-menu.visible {
    display: flex;
}

.start-menu-sidebar {
    width: 28px;
    background: linear-gradient(0deg, var(--active-titlebar-start) 0%, var(--active-titlebar-mid) 50%, var(--active-titlebar-end) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
}

.sidebar-text {
    color: white;
    font-weight: bold;
    font-size: 13px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 1px;
    font-family: 'Zen Maru Gothic', 'MS Sans Serif', sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.start-menu-main {
    min-width: 200px;
    overflow: hidden;
}

.start-menu-items {
    padding: 2px 0;
}

.start-menu-item {
    padding: 7px 32px 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-color);
    user-select: none;
    transition: background 0.1s;
}

.start-menu-item:hover {
    background: linear-gradient(90deg, var(--active-titlebar-start), var(--active-titlebar-mid));
    color: var(--white);
}

.start-menu-item i,
.start-menu-item .start-icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.start-menu-separator {
    height: 1px;
    background: var(--window-border-dark);
    margin: 2px 4px;
    border-top: 1px solid var(--window-border-light);
}

/* ===== WINDOWS EXPLORER STYLE ===== */

/* Explorer Toolbar */
.explorer-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
}

.explorer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    background: var(--window-bg);
    border: none;
    cursor: pointer;
    min-width: 50px;
}

.explorer-btn:hover:not(.disabled) {
    background: var(--accent-purple);
    color: white;
}

.explorer-btn:active:not(.disabled) {
    background: var(--accent-purple);
    color: white;
    filter: brightness(0.85);
}

.explorer-btn.disabled {
    opacity: 0.4;
    cursor: default !important;
    pointer-events: none;
}

.explorer-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.explorer-btn-label {
    font-size: 12px;
    margin-top: 2px;
}

.explorer-separator {
    width: 1px;
    height: 40px;
    background: var(--window-border-dark);
    margin: 0 6px;
}

/* Address Bar */
.explorer-address {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
}

.explorer-address-label {
    font-size: 14px;
    padding: 0 4px;
}

.explorer-address-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: white;
    border: 2px inset var(--window-bg);
}

.explorer-address-icon {
    font-size: 16px;
}

.explorer-address-path {
    font-size: 14px;
}

.explorer-address-go {
    padding: 4px 10px;
    background: var(--window-bg);
    border: 1px outset var(--window-bg);
    font-size: 10px;
    cursor: pointer;
}

/* Explorer Body - sidebar + content */
.explorer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar - Folder Tree */
.explorer-sidebar {
    width: 290px;
    background: white;
    border-right: 2px groove var(--window-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.2s ease, opacity 0.15s ease;
}

/* Collapsed sidebar - hidden with smooth transition */
.explorer-sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
    opacity: 0;
    pointer-events: none;
}

.explorer-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
    font-size: 14px;
    font-weight: bold;
}

.explorer-sidebar-close {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    font-weight: bold;
}

.explorer-sidebar-close:hover {
    background: var(--accent-pink);
    color: white;
}

.explorer-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    font-size: 14px;
}

/* W98 Tree with dotted lines */
.tree-node {
    position: relative;
    margin-bottom: 4px;
}

.tree-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
    white-space: nowrap;
}

.tree-row:hover {
    background: rgba(139, 92, 246, 0.15);
}

.tree-row.selected {
    background: var(--accent-purple);
    color: white;
}

/* The +/- box */
.tree-box {
    width: 11px;
    height: 11px;
    border: 1px solid #808080;
    background: white;
    font-size: 11px;
    line-height: 9px;
    text-align: center;
    margin-right: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.tree-box-empty {
    width: 11px;
    height: 11px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Tree branch with dotted lines */
.tree-branch {
    position: relative;
    margin-left: 5px;
    padding-left: 18px;
    border-left: 1px dotted #808080;
}

.tree-branch .tree-node {
    position: relative;
}

.tree-branch .tree-node::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 10px;
    width: 14px;
    border-top: 1px dotted #808080;
}

/* Tree icons - W98 style pixel icons */
.tree-icon-img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* W98 folder icon - yellow */
.tree-icon-folder,
.folder-icon-yellow {
    display: inline-block;
    width: 16px;
    height: 14px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 50%, #cc9900 100%);
    border: 1px solid #996600;
    border-radius: 0 2px 2px 2px;
    position: relative;
    margin-right: 4px;
    flex-shrink: 0;
}

.tree-icon-folder::before,
.folder-icon-yellow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 4px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 100%);
    border: 1px solid #996600;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}

/* Open folder */
.tree-icon-folder-open {
    display: inline-block;
    width: 16px;
    height: 14px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 100%);
    border: 1px solid #996600;
    border-radius: 0 2px 2px 2px;
    position: relative;
    margin-right: 4px;
    flex-shrink: 0;
}

.tree-icon-folder-open::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 4px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 100%);
    border: 1px solid #996600;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}

.tree-icon-folder-open::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -2px;
    width: 18px;
    height: 10px;
    background: linear-gradient(180deg, #ffffcc 0%, #ffcc00 100%);
    border: 1px solid #996600;
    border-radius: 0 2px 2px 2px;
    transform: skewX(-10deg);
}

/* Desktop icon */
.tree-icon-desktop {
    background: linear-gradient(180deg, #008080 30%, #004040 100%);
    border: 2px outset #c0c0c0;
    width: 16px;
    height: 14px;
    margin-right: 4px;
}

/* Computer icon */
.tree-icon-computer {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #808080;
    margin-right: 4px;
    position: relative;
}

.tree-icon-computer::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 10px;
    height: 7px;
    background: #000080;
    border: 1px inset #808080;
}

.tree-icon-computer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    width: 8px;
    height: 3px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
}

/* Drive icons */
.tree-icon-drive {
    width: 16px;
    height: 12px;
    background: linear-gradient(180deg, #e0e0e0 0%, #a0a0a0 100%);
    border: 1px solid #808080;
    margin-right: 4px;
    position: relative;
}

.tree-icon-drive::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 2px;
    width: 3px;
    height: 3px;
    background: #00ff00;
    border-radius: 50%;
}

.tree-icon-floppy {
    width: 14px;
    height: 14px;
    background: #404040;
    border: 1px solid #000;
    margin-right: 4px;
    position: relative;
}

.tree-icon-floppy::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 6px;
    height: 4px;
    background: #c0c0c0;
}

.tree-icon-cdrom {
    width: 16px;
    height: 12px;
    background: linear-gradient(180deg, #e0e0e0 0%, #a0a0a0 100%);
    border: 1px solid #808080;
    margin-right: 4px;
    position: relative;
}

.tree-icon-cdrom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 2px;
    background: #000;
}

/* Network icon */
.tree-icon-network {
    width: 16px;
    height: 14px;
    margin-right: 4px;
    position: relative;
    background:
        linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
    border: 1px solid #404040;
}

/* Recycle bin */
.tree-icon-recycle {
    width: 14px;
    height: 16px;
    background: linear-gradient(180deg, #e0e0e0 0%, #a0a0a0 100%);
    border: 1px solid #808080;
    margin-right: 4px;
    border-radius: 0 0 3px 3px;
}

.tree-label {
    font-size: 14px;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

/* Explorer Content Area */
.explorer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

/* List View (like Explorer details view) */
.explorer-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: white;
}

.explorer-list-header {
    display: flex;
    background: var(--window-bg);
    border-bottom: 2px groove var(--window-bg);
    font-size: 11px;
    font-weight: normal;
    flex-shrink: 0;
}

.explorer-list-header .list-col {
    border-right: 2px groove var(--window-bg);
    padding: 4px 8px;
    cursor: default;
    font-size: 13px;
}

.list-col {
    padding: 3px 8px;
    font-size: 13px;
}

.list-col-name {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.list-col-size {
    width: 70px;
    text-align: right;
}

.list-col-type {
    width: 100px;
    white-space: nowrap;
}

.list-col-modified {
    width: 80px;
}

.explorer-list-item {
    display: flex;
    font-size: 14px;
    cursor: pointer;
    border-bottom: none;
    padding: 4px 0;
}

.explorer-list-item:hover {
    background: var(--accent-purple);
    color: white;
}

.explorer-list-item.selected {
    background: var(--accent-purple);
    color: white;
}

.explorer-list-item .list-col {
    display: flex;
    align-items: center;
    padding: 4px 8px;
}

.list-icon {
    margin-right: 8px;
    vertical-align: middle;
}

/* Bigger folder icon in list view */
.list-icon.folder-icon-yellow {
    width: 20px;
    height: 18px;
}

/* Image file icon for list view (W98 style) */
.list-icon.file-icon-image {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 6px;
    background:
        linear-gradient(135deg, #ff99cc 25%, #ffccdd 25%, #ffccdd 50%, #ff99cc 50%, #ff99cc 75%, #ffccdd 75%);
    background-size: 6px 6px;
    border: 1px solid #cc6699;
}

/* Small folder icon for list view */
.folder-icon-sm {
    display: inline-block;
    width: 16px;
    height: 14px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 50%, #cc9900 100%);
    border: 1px solid #996600;
    border-radius: 0 2px 2px 2px;
    position: relative;
    vertical-align: middle;
}

.folder-icon-sm::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 4px;
    background: linear-gradient(180deg, #ffff80 0%, #ffcc00 100%);
    border: 1px solid #996600;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}

/* Hide old folder-view when using explorer style */
.explorer-window .folder-view {
    display: none;
}

/* ===== FOLDER VIEW (legacy grid style) ===== */
.folder-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px;
    background: var(--window-content-bg);
    min-height: 200px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    transition: background 0.1s;
}

.folder-item:hover {
    background: rgba(255, 105, 180, 0.15);
    outline: 1px dashed var(--selection-border);
}

.folder-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 6px;
}

.folder-name {
    font-size: 13px;
    text-align: center;
    color: var(--text-color);
}

/* ===== IMAGE VIEWER ===== */
/* Viewer header bar - anchored right below menu bar */
.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
}

.viewer-back {
    padding: 2px 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--window-bg);
    border: none;
    cursor: pointer;
}

.viewer-back:hover {
    background: var(--accent-pink);
    color: white;
}

.viewer-title {
    font-size: 14px;
    font-family: inherit;
}

.viewer-count {
    font-size: 14px;
    color: #666;
}

/* When viewer is active, remove window-content padding/border/margin */
.window-content:has(.viewer-main:not(.hidden)) {
    padding: 0;
    margin: 0;
    border: none;
}

/* Viewer main area - fills the window content */
.viewer-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--window-bg);
    position: relative;
    overflow: hidden;
}

.viewer-image {
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform-origin: center center;
}

.viewer-image.loading {
    visibility: hidden !important;
    position: absolute !important;
}

/* Loader gif while video is buffering */
.video-loader {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    z-index: 5;
    image-rendering: pixelated;
}

/* Video in viewer - same styles as image */
video.viewer-image {
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform-origin: center center;
}

/* W98 style navigation buttons */
.viewer-prev,
.viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    background: var(--window-bg);
    border: 2px outset var(--window-border-light);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    z-index: 1000; /* Very high z-index to stay above scaled images */
    pointer-events: auto !important; /* Ensure clicks are received */
}

.viewer-prev:hover,
.viewer-next:hover {
    background: var(--accent-purple);
    color: white;
}

.viewer-prev:active,
.viewer-next:active {
    border-style: inset;
    background: var(--window-border-dark);
}

.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }

/* W98 style zoom controls */
.viewer-zoom-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 2px;
    z-index: 10;
}

.viewer-zoom-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
    font-weight: bold;
    background: var(--window-bg);
    border: 2px outset var(--window-border-light);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.viewer-zoom-btn:hover {
    background: var(--accent-purple);
    color: white;
}

.viewer-zoom-btn:active {
    border-style: inset;
    background: var(--window-border-dark);
}

.viewer-zoom-level {
    min-width: 42px;
    height: 26px;
    font-size: 11px;
    background: white;
    border: 2px inset var(--window-border-dark);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

/* Viewer thumbnails - anchored right above status bar */
.viewer-thumbnails {
    display: flex;
    gap: 4px;
    padding: 4px 6px;
    background: var(--window-bg);
    border-top: 1px solid var(--window-border-light);
    overflow-x: auto;
    overflow-y: hidden;
}

.viewer-thumb {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.viewer-thumb:hover {
    opacity: 0.9;
}

.viewer-thumb.active {
    opacity: 1;
    border-color: var(--accent-pink);
}

/* Video thumbnail */
.viewer-thumb.video-thumb {
    overflow: hidden;
    position: relative;
}

.viewer-thumb.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Play icon overlay for video thumbnails */
.video-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
    pointer-events: none;
}

/* ===== DIALOG ===== */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 18, 0.4);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.dialog-overlay.visible {
    display: flex;
}

.dialog-box {
    background: var(--window-bg);
    border: 2px outset var(--window-bg);
    min-width: 300px;
    box-shadow: 3px 3px 0px rgba(42, 26, 46, 0.5);
}

.dialog-header {
    background: linear-gradient(90deg, var(--active-titlebar-start) 0%, var(--active-titlebar-mid) 50%, var(--active-titlebar-end) 100%);
    color: white;
    padding: 3px 3px 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
    min-height: 22px;
}

.dialog-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dialog-icon {
    font-size: 32px;
    color: var(--accent-pink);
    flex-shrink: 0;
}

.dialog-content p {
    padding-top: 6px;
    line-height: 1.5;
    font-size: 13px;
}

.dialog-buttons {
    padding: 8px 16px 12px;
    text-align: center;
}

.dialog-btn {
    background: var(--button-bg);
    border: 2px outset var(--button-bg);
    padding: 4px 24px;
    font-size: 13px;
    font-family: inherit;
    min-width: 75px;
    transition: background 0.1s;
}

.dialog-btn:hover {
    background: var(--accent-pink);
    color: white;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #e8d8e8;
    border: 1px inset var(--window-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--window-bg);
    border: 1px outset var(--window-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--button-hover);
}

::-webkit-scrollbar-button {
    background: var(--window-bg);
    border: 1px outset var(--window-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px 6px;
}

/* Hide the duplicate buttons (Chrome renders 2 per end by default) */
::-webkit-scrollbar-button:start:increment,
::-webkit-scrollbar-button:end:decrement {
    display: none;
}

/* Vertical: ▲ up arrow at top */
::-webkit-scrollbar-button:vertical:start:decrement {
    display: block;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 6L4 2L7 6Z' fill='%232a1a2e'/%3E%3C/svg%3E");
}

/* Vertical: ▼ down arrow at bottom */
::-webkit-scrollbar-button:vertical:end:increment {
    display: block;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 2L4 6L7 2Z' fill='%232a1a2e'/%3E%3C/svg%3E");
}

/* Horizontal: ◄ left arrow */
::-webkit-scrollbar-button:horizontal:start:decrement {
    display: block;
    width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M6 1L2 4L6 7Z' fill='%232a1a2e'/%3E%3C/svg%3E");
}

/* Horizontal: ► right arrow */
::-webkit-scrollbar-button:horizontal:end:increment {
    display: block;
    width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M2 1L6 4L2 7Z' fill='%232a1a2e'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:hover {
    background-color: var(--button-hover);
}

/* ===== FORM ELEMENTS ===== */
input[type="text"],
input[type="email"],
textarea {
    border: 1px inset var(--window-bg);
    padding: 2px 4px;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    background: var(--white);
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 1px solid var(--accent-pink);
}

button,
input[type="button"],
input[type="submit"] {
    background: var(--button-bg);
    border: 1px outset var(--button-bg);
    padding: 4px 12px;
    font-size: 11px;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-color);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: var(--accent-purple);
    color: white;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
    border: 1px inset var(--button-bg);
}

/* ===== SPARKLE PARTICLES ===== */
.sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    animation: float-sparkle linear infinite;
}

.sparkle::before {
    content: '';
    display: block;
    width: var(--size, 4px);
    height: var(--size, 4px);
    background: var(--sparkle-color);
    border-radius: 50%;
    box-shadow: 0 0 calc(var(--size, 4px) * 2) rgba(255,105,180,0.3);
    animation: pulse-sparkle 2s ease-in-out infinite alternate;
}

@keyframes float-sparkle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

@keyframes pulse-sparkle {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* ===== IE BROWSER — Branding ===== */

.ie-browser-window.visible {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* IE Toolbar — simple like Illustration explorer */
.ie-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
}

.ie-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    background: var(--window-bg);
    border: none;
    cursor: pointer;
    min-width: 50px;
}

.ie-nav-btn:hover:not(:disabled) {
    background: var(--accent-purple);
    color: white;
}

.ie-nav-btn:active:not(:disabled) {
    background: var(--accent-purple);
    color: white;
    filter: brightness(0.85);
}

.ie-nav-btn:disabled {
    opacity: 0.4;
    cursor: default !important;
    pointer-events: none;
}

.ie-nav-icon {
    font-size: 18px;
    line-height: 1;
}

.ie-nav-label {
    font-size: 12px;
    margin-top: 2px;
}

/* IE Address Bar — same style as Illustration explorer */
.ie-address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: var(--window-bg);
    border-bottom: 1px solid var(--window-border-dark);
}

.ie-address-label {
    font-size: 14px;
    padding: 0 4px;
}

.ie-address-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: white;
    border: 2px inset var(--window-bg);
}

.ie-address-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ie-address-path {
    font-size: 14px;
}

/* IE Content Area — Y2K pink grid background */
.ie-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px inset var(--window-bg);
    margin: 0;
    position: relative;
    background-color: #d4789b;
    background-image: url('../img/Branding/Screenshot 2026-02-10 at 14.20.53.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* === Snowfall === */
.ie-snow-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ie-snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'VT323', monospace;
    animation: ieSnowFall linear forwards;
    pointer-events: none;
    user-select: none;
}

@keyframes ieSnowFall {
    0% { top: -20px; transform: translateX(0); }
    25% { transform: translateX(8px); }
    50% { transform: translateX(-6px); }
    75% { transform: translateX(4px); }
    100% { top: 100%; transform: translateX(0); }
}

/* === GeoCities Home Page === */
.ie-home {
    padding: 24px 28px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: white;
    position: relative;
    z-index: 2;
}

/* Header — scrolling cursive text */
.ie-home-header {
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.ie-header-scroll {
    display: inline-block;
    animation: ieHeaderScroll 8s linear infinite;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 32px;
    color: white;
    white-space: nowrap;
}

@keyframes ieHeaderScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ie-header-line {
    height: 3px;
    background: white;
    border-radius: 2px;
}

.ie-hr-stars {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 8px 0;
    font-family: 'VT323', monospace;
    overflow: hidden;
    white-space: nowrap;
}

/* Directory */
.ie-directory-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 6px 0;
}

.ie-directory {
    flex: 1;
}

.ie-directory-gif {
    flex-shrink: 0;
    width: 220px;
}

.ie-directory-header {
    font-size: 20px;
    font-weight: bold;
    padding: 8px 0;
    color: white;
}

.ie-link-row {
    padding: 6px 0;
    font-family: 'VT323', monospace;
    font-size: 16px;
    line-height: 28px;
    height: 28px;
    box-sizing: content-box;
}

.ie-link-arrows {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.ie-project-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 18px;
    font-family: 'VT323', monospace;
    background: none;
    border: none;
    padding: 2px 4px;
    display: inline-block;
    line-height: 28px;
    vertical-align: middle;
}

.ie-link-text {
    display: inline-block;
    padding: 2px 4px;
    line-height: 28px;
    vertical-align: middle;
}

a.ie-project-link:visited {
    color: rgba(255, 255, 255, 0.8);
}

a.ie-project-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* When link is inside a paragraph, inherit text flow + pink hover */
.ie-project-text a.ie-project-link {
    font-size: inherit;
    line-height: inherit;
    display: inline;
    padding: 0;
    vertical-align: baseline;
}

.ie-project-text a.ie-project-link:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.ie-link-row.ie-coming-soon {
    opacity: 0.4;
}

.ie-link-text {
    font-size: 18px;
}

.ie-under-construction {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.ie-more-link {
    font-weight: bold;
}

/* Home Footer */
.ie-home-footer {
    text-align: center;
    padding: 10px 0;
}

.ie-visitor-counter {
    display: inline-block;
    background: white;
    color: #f48fb1;
    padding: 4px 14px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    border: 2px inset var(--window-bg);
    margin-bottom: 8px;
}

.ie-counter-digits {
    letter-spacing: 3px;
}

.ie-home-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ie-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
}

.ie-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* === Project Page === */
.ie-project-page {
    padding: 24px 28px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: white;
    position: relative;
    z-index: 2;
}

.ie-back-link {
    display: inline-block;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    font-family: 'VT323', monospace;
    margin-bottom: 12px;
    background: none;
    border: none;
    padding: 0;
    line-height: 28px;
    height: 28px;
    box-sizing: content-box;
}

.ie-back-link:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.ie-project-banner {
    font-size: 24px;
    font-weight: bold;
    padding: 8px 0;
    color: white;
}

.ie-project-icon {
    font-size: inherit;
}

.ie-project-name {
    font-weight: bold;
}

.ie-project-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding-bottom: 8px;
}

.ie-project-meta-inline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.ie-project-description {
    padding: 8px 0;
    line-height: 1.6;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
}

/* Under construction placeholder */
.ie-under-construction-page {
    text-align: center;
    padding: 40px 0;
    font-family: 'VT323', monospace;
    color: white;
}

.ie-construction-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ie-construction-text {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
}

.ie-construction-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Project Images - vertical scroll */
.ie-project-images {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
}

.ie-project-images img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* === Rebellion Project Content === */
.ie-project-content {
    max-width: 600px;
    margin: 0 auto;
}

.ie-project-content .ie-project-logo {
    display: block;
    max-width: 400px;
    width: 100%;
    margin: 30px auto 50px;
}

.ie-project-section-header {
    font-size: 20px;
    font-weight: bold;
    color: white;
    padding: 24px 0 12px;
    font-family: 'VT323', monospace;
}

.ie-project-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 0 16px;
    font-family: 'VT323', monospace;
}

.ie-project-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

.ie-project-spacer {
    height: 24px;
}

/* Sub-projects (More projects page) */
.ie-sub-project {
    margin-bottom: 12px;
}

.ie-sub-project-header {
    font-size: 20px;
    padding: 8px 0;
    color: white;
}

/* === IE Browser Responsive === */
@media (max-width: 768px) {
    .ie-browser-window.visible {
        height: 70vh !important;
        max-height: 70vh !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .ie-browser-window.visible.maximized {
        height: 80vh !important;
        max-height: none !important;
    }

    .ie-toolbar {
        padding: 2px 4px;
        flex-shrink: 0;
    }

    .ie-nav-label {
        display: none;
    }

    .ie-nav-btn {
        min-width: 36px;
        padding: 4px 6px;
    }

    .ie-address-bar {
        flex-shrink: 0;
    }

    .ie-address-label {
        display: none;
    }

    .ie-address-path {
        font-size: 12px;
    }

    .ie-content {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ie-home {
        padding: 14px;
    }

    .ie-header-scroll {
        font-size: 24px;
    }

    .ie-directory-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .ie-directory-gif {
        width: 140px;
        align-self: center;
    }

    .ie-project-link {
        font-size: 18px;
    }

    .ie-project-page {
        padding: 14px;
    }

    .ie-project-images img {
        border-width: 1px;
    }

    .window-status-bar {
        flex-shrink: 0;
    }
}

/* ===== TAMAGOTCHI — Winamp Style ===== */
.tamagotchi-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #5a4030 0%, #3a2518 50%, #2a1808 100%);
    padding: 0;
    font-family: 'VT323', monospace;
}

/* Game area - dark display like Winamp */
.tamagotchi-game {
    flex: 1;
    background: #0a0514;
    border: 2px inset #1a0a28;
    margin: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    image-rendering: pixelated;
}

/* Bunny sprite - green glow like Winamp time display */
.tama-sprite {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.2;
    color: #00ff00;
    white-space: pre;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
    margin-bottom: 12px;
}

/* Stats panel - wood gradient like Winamp body */
.tama-stats-panel {
    background: linear-gradient(180deg, #4a3520 0%, #2a1a10 100%);
    border-top: 1px solid #6a5040;
    padding: 8px;
    width: 100%;
}

.tama-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tama-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tama-stat-label {
    color: #ff69b4;
    font-family: 'VT323', monospace;
    font-size: 12px;
    width: 55px;
    text-transform: uppercase;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.4);
}

.tama-stat-bar {
    flex: 1;
    height: 10px;
    background: #0a0514;
    border: 2px inset #1a0a28;
}

.tama-bar-fill {
    height: 100%;
    background: linear-gradient(0deg, #00cc00, #00ff00);
    box-shadow: 0 0 4px rgba(0, 255, 0, 0.5);
}

.tama-bar-fill.warning {
    background: linear-gradient(0deg, #cc9900, #ffcc00);
    box-shadow: 0 0 4px rgba(255, 204, 0, 0.5);
}

.tama-bar-fill.critical {
    background: linear-gradient(0deg, #cc0000, #ff0000);
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
    animation: tamaBlink 0.3s infinite;
}

@keyframes tamaBlink {
    50% { opacity: 0.3; }
}

.tama-info {
    color: #87ceeb;
    font-family: 'VT323', monospace;
    font-size: 12px;
    text-align: center;
    margin-top: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(135, 206, 235, 0.5);
}

.tama-message {
    color: #ffb6c1;
    font-family: 'VT323', monospace;
    font-size: 12px;
    text-align: center;
    min-height: 14px;
    opacity: 0;
    margin-top: 4px;
    text-shadow: 0 0 3px rgba(255, 182, 193, 0.4);
}

.tama-message.visible {
    opacity: 1;
}

/* Buttons - Winamp style brown gradient */
.tamagotchi-buttons {
    display: flex;
    gap: 4px;
    padding: 8px 0 0 0;
    margin-top: 8px;
    justify-content: center;
    border-top: 1px solid #6a5040;
}

.tama-btn {
    min-width: 60px;
    height: 24px;
    background: linear-gradient(180deg, #6a5040 0%, #4a3020 100%);
    border: 1px outset #8a7060;
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: #ffb6c1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.1s;
}

.tama-btn:hover {
    background: linear-gradient(180deg, #8a6850 0%, #6a4830 100%);
    color: #fff;
}

.tama-btn:active {
    border-style: inset;
}

.tama-revive {
    display: none;
    width: 100%;
    height: 24px;
    background: linear-gradient(180deg, #6a5040 0%, #4a3020 100%);
    border: 1px outset #8a7060;
    font-family: 'VT323', monospace;
    font-size: 14px;
    cursor: pointer;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
    margin-top: 8px;
    transition: all 0.1s;
}

.tama-revive:hover {
    background: linear-gradient(180deg, #8a6850 0%, #6a4830 100%);
}

.tama-revive:active {
    border-style: inset;
}

/* Tamagotchi maximized - center the game */
#tamagotchi-window.maximized .tamagotchi-container {
    max-width: 400px;
    margin: 0 auto;
    height: auto;
    min-height: 100%;
}

#tamagotchi-window.maximized .window-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #5a4030 0%, #3a2518 50%, #2a1808 100%);
}

#tamagotchi-window.maximized .tamagotchi-game {
    padding: 32px;
}

#tamagotchi-window.maximized .tama-sprite {
    font-size: 26px;
    margin-bottom: 24px;
}

#tamagotchi-window.maximized .tama-stats-panel {
    padding: 16px;
}

#tamagotchi-window.maximized .tama-stat-label {
    font-size: 15px;
    width: 70px;
}

#tamagotchi-window.maximized .tama-stat-bar {
    height: 14px;
}

#tamagotchi-window.maximized .tama-info {
    font-size: 15px;
    margin-top: 12px;
}

#tamagotchi-window.maximized .tamagotchi-buttons {
    padding: 12px;
    gap: 8px;
}

#tamagotchi-window.maximized .tama-btn {
    min-width: 80px;
    height: 28px;
    font-size: 15px;
}

/* ===== IMAGE VIEWER (W98 Style) ===== */
.imageviewer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a1a2e;
    padding: 8px;
    overflow: hidden;
}

.imageviewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid #ff69b4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

/* Image viewer — fit to image size (no padding/border) */
.imageviewer-content-fit {
    padding: 0;
    background: transparent;
    display: flex;
    overflow: hidden;
}

.imageviewer-content-fit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Maximized image viewer — scrollable to see full image */
.window.maximized .imageviewer-content-fit {
    overflow: auto;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window.maximized .imageviewer-content-fit img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    display: block;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-icons {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 8px;
    }

    /* Tablet: tighter scatter — same idea but fewer columns */
    .icon[data-window="illustration"]    { grid-column: 1; grid-row: 1; }
    .icon[data-window="personajes"]   { grid-column: 1; grid-row: 2; }
    .icon[data-window="experimental"] { grid-column: 1; grid-row: 3; }
    #photos-icon                      { grid-column: 2; grid-row: 4; }
    .icon[data-window="winamp"]       { grid-column: 2; grid-row: 1; }
    .icon[data-window="about"]        { grid-column: 7; grid-row: 1; }
    .icon[data-window="notepad"]      { grid-column: 7; grid-row: 3; }
    .icon[data-window="email"]        { grid-column: 8; grid-row: 2; }
    .icon[data-window="paint"]        { grid-column: 4; grid-row: 5; }
    .icon[data-window="recycle"]      { grid-column: 1; grid-row: 6; }
    .icon[data-window="ie-browser"]   { grid-column: 1; grid-row: 2; }

    .icon {
        width: 72px;
    }

    .window {
        min-width: 300px;
    }

    .taskbar {
        height: 32px;
    }

    .start-button,
    .taskbar-item,
    .clock {
        height: 26px;
        font-size: 12px;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    body {
        font-size: 18px;
        /* cursor inherited from desktop body rule — pink arrow */
        /* Retro Windows font for mobile */
        font-family: 'VT323', 'MS Sans Serif', 'Segoe UI', monospace;
    }

    /* === ICONS: big grid across full screen like a real desktop === */
    .desktop-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        max-height: none;
        gap: 12px;
        top: 12px;
        left: 0;
        right: 0;
        bottom: 52px;
        padding: 12px 10px;
        align-content: start;
        justify-items: center;
    }

    /* Reset scattered grid positions for mobile — icons flow naturally in 4-col grid */
    .icon[data-window] {
        grid-column: auto;
        grid-row: auto;
    }

    /* Mobile icon order */
    .icon[data-window="illustration"]   { order: 1; }
    .icon[data-window="ie-browser"]  { order: 2; }
    .icon[data-window="about"]       { order: 3; }
    .icon[data-window="notepad"]     { order: 4; }
    #photos-icon                     { order: 5; }
    .icon[data-window="email"]       { order: 6; }
    .icon[data-window="paint"]       { order: 7; }
    .icon[data-window="kutv"]        { order: 8; }
    .icon[data-window="tamagotchi"]  { order: 9; }
    .icon[data-window="recycle"]     { order: 10; }
    .icon[data-window="winamp"]      { order: 11; }

    .icon {
        width: auto;
        padding: 8px 4px;
    }

    .icon-image {
        width: 68px;
        height: 68px;
    }

    .icon-image svg {
        width: 68px;
        height: 68px;
    }

    .icon-text {
        font-size: 19px;
        font-family: 'VT323', monospace;
        max-width: 90px;
    }

    /* === WINDOWS: NOT fullscreen — floating windows with random positions set via JS === */
    .window {
        max-height: 70vh !important;
        height: auto !important;
        resize: none;
        border: 2px outset var(--window-bg);
        box-shadow: 3px 3px 0px rgba(42, 26, 46, 0.4);
    }

    /* Maximized window on mobile: much taller, sizes set via JS */
    .window.maximized {
        max-height: none !important;
        height: 80vh !important;
        box-shadow: 3px 3px 0px rgba(42, 26, 46, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
    }

    .window.maximized .window-content {
        max-height: 72vh;
    }

    .window-header {
        height: 42px;
        padding: 4px 6px;
    }

    .window-title {
        font-size: 21px;
        font-family: 'VT323', monospace;
    }

    .window-button {
        width: 32px;
        height: 26px;
        font-size: 17px;
    }

    .window-content {
        font-size: 18px;
        padding: 8px;
        font-family: 'VT323', monospace;
        max-height: 50vh;
        overflow-y: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }

    /* === TASKBAR: compact, retro === */
    .taskbar {
        height: 48px;
        font-family: 'VT323', monospace;
    }

    .start-button {
        height: 40px;
        font-size: 20px;
        padding: 2px 10px;
        font-family: 'VT323', monospace;
    }

    .start-button i,
    .start-button .start-icon {
        font-size: 20px;
    }

    /* Taskbar items: emoji only on mobile (controlled via JS) */
    .taskbar-item {
        height: 40px;
        font-size: 22px;
        max-width: 48px;
        min-width: 48px;
        justify-content: center;
        padding: 2px;
        overflow: hidden;
        text-overflow: '';
        font-family: 'VT323', monospace;
    }

    .clock {
        height: 40px;
        font-size: 17px;
        font-family: 'VT323', monospace;
        min-width: 55px;
    }

    /* === START MENU === */
    .start-menu {
        bottom: 48px;
        width: 260px;
    }

    .start-menu-item {
        padding: 8px 14px;
        font-size: 20px;
        min-height: 44px;
        font-family: 'VT323', monospace;
    }

    .start-menu-sidebar {
        width: 24px;
    }

    .sidebar-text {
        font-size: 11px;
    }

    /* === LIGHTBOX === */
    .lightbox-content {
        max-width: 98vw;
        max-height: 90vh;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    /* Remove resize handle */
    .window::after {
        display: none;
    }

    /* About page */
    .about-header {
        flex-direction: column;
        text-align: center;
    }

    /* Paint — mobile adjustments */
    .paint-sidebar {
        width: 40px;
        padding: 3px 2px;
    }

    .paint-tool {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .paint-size-vertical input[type="range"] {
        height: 40px;
    }

    .paint-bottom {
        flex-wrap: wrap;
        gap: 4px;
    }

    .paint-current-colors {
        display: none;
    }

    .paint-colors {
        grid-template-columns: repeat(14, 1fr);
    }

    .paint-color {
        width: 12px;
        height: 12px;
    }

    .paint-actions {
        width: 100%;
        justify-content: center;
    }

    .paint-send-btn {
        font-size: 14px;
        font-family: 'VT323', monospace;
    }

    /* Notepad */
    .notepad-text {
        font-size: 18px;
        font-family: 'VT323', monospace;
        overflow-x: auto;
    }

    /* Email */
    .email-field label {
        width: 50px;
        font-size: 13px;
        font-family: 'VT323', monospace;
    }

    /* Menu bar compact */
    .window-menu-bar {
        padding: 1px 2px;
    }

    .menu-item {
        font-size: 16px;
        font-family: 'VT323', monospace;
        padding: 2px 6px;
    }

    /* Status bar */
    .window-status-bar {
        font-size: 16px;
        font-family: 'VT323', monospace;
        padding: 2px 6px;
    }

    /* Hide sparkle particles for performance */
    .sparkle {
        display: none;
    }

    /* Hide CRT flicker overlay on mobile */
    #crt-flicker {
        display: none;
    }

    /* ===== DIALOG POPUP: MOBILE ===== */
    .dialog-box {
        min-width: 280px;
        max-width: 90vw;
        margin: 0 10px;
    }

    .dialog-header {
        padding: 4px 6px;
        font-size: 18px;
        font-family: 'VT323', monospace;
        min-height: 32px;
    }

    .dialog-content {
        padding: 16px;
        gap: 12px;
    }

    .dialog-icon {
        font-size: 28px;
    }

    .dialog-content p {
        font-size: 16px;
        font-family: 'VT323', monospace;
        line-height: 1.4;
    }

    .dialog-btn {
        font-size: 16px;
        font-family: 'VT323', monospace;
        padding: 6px 28px;
        min-width: 80px;
    }

    /* ===== ERROR DIALOG: MOBILE ===== */
    .error-dialog {
        max-width: 85vw;
        width: auto;
        min-width: 240px;
    }

    .error-dialog .error-titlebar {
        padding: 4px 6px;
        font-size: 18px;
        font-family: 'VT323', monospace;
        min-height: 32px;
    }

    .error-dialog .error-body {
        font-size: 16px;
        font-family: 'VT323', monospace;
        padding: 14px 16px;
    }

    .error-dialog .error-ok {
        font-size: 16px;
        font-family: 'VT323', monospace;
        padding: 5px 24px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .desktop-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px 8px;
    }

    .icon-image {
        width: 62px;
        height: 62px;
    }

    .icon-image svg {
        width: 62px;
        height: 62px;
    }

    .icon-text {
        font-size: 17px;
    }

    .start-menu {
        width: 200px;
    }

    .window {
        max-width: 94vw !important;
    }
}

/* ===== IMAGE VIEWER: MOBILE FULLSCREEN ===== */
@media (max-width: 768px) {
    /* Maximized window on mobile: gray background, no forced sizing */
    .window.maximized .viewer-main {
        background: var(--window-bg);
    }
}

/* ===== BUNNY: MOBILE SIZE (4x desktop = 2x current mobile) ===== */
@media (max-width: 768px) {
    .bunny-container {
        bottom: 54px;
        right: 8px;
        width: 248px;   /* 62 × 4 */
        height: 260px;  /* 65 × 4 */
    }

    .bunny-sprite {
        width: 1240px;  /* 310 × 4 (5 frames × 248px) */
        height: 260px;  /* 65 × 4 */
    }

    /* Hover state: bunny1 (frame 0) — mobile */
    .bunny-container:hover .bunny-sprite {
        transform: translateX(0);  /* bunny1 */
    }

    /* Dragging state: bunny4 (frame 2) — mobile */
    .bunny-container.dragging .bunny-sprite {
        transform: translateX(-496px);  /* bunny4 = frame 2 × 248px */
    }

    /* Keyframes para 4x scale (248px por frame) */
    @keyframes bunnyExpressions {
        0%     { transform: translateX(0); }
        20%    { transform: translateX(-248px); }
        40%    { transform: translateX(-496px); }
        60%    { transform: translateX(-744px); }
        80%    { transform: translateX(-992px); }
    }
}

/* ===== EXPLORER: MOBILE/TABLET — Hide sidebar, simplify layout ===== */
/* Using 1024px to cover tablets and large phones */
@media (max-width: 1024px) {
    /* HIDE the entire tree sidebar */
    .explorer-sidebar {
        display: none !important;
        width: 0 !important;
        visibility: hidden !important;
    }

    /* Explorer body: single column */
    .explorer-body {
        flex-direction: column !important;
    }

    /* Explorer content takes full width */
    .explorer-content {
        width: 100% !important;
        flex: 1 !important;
    }

    /* Hide toolbar on mobile */
    .explorer-toolbar {
        display: none !important;
    }

    /* Hide less important columns */
    .list-col-size,
    .list-col-type,
    .list-col-modified {
        display: none !important;
    }

    /* Hide list header */
    .explorer-list-header {
        display: none !important;
    }

    /* Name column full width */
    .list-col-name {
        flex: 1 !important;
        width: auto !important;
    }

    /* List items: larger for touch */
    .explorer-list-item {
        min-height: 48px !important;
        font-size: 18px !important;
        padding: 12px 8px !important;
        touch-action: manipulation;
        cursor: pointer;
    }

    .explorer-list-item .list-col {
        padding: 4px 8px !important;
        font-size: 17px !important;
    }

    /* Folder icon bigger */
    .list-icon.folder-icon-yellow {
        width: 28px !important;
        height: 24px !important;
        margin-right: 12px !important;
    }

    /* Address bar: hide in viewer mode on mobile */
    .explorer-address {
        padding: 6px 10px !important;
        font-size: 15px !important;
    }

    /* Hide address bar when viewing images */
    .explorer-window.viewer-mode .explorer-address {
        display: none !important;
    }

    /* Viewer header: compact for mobile */
    .viewer-header {
        padding: 4px 10px !important;
        min-height: 32px !important;
    }

    .viewer-back {
        padding: 6px 10px !important;
        font-size: 14px !important;
        min-height: 32px !important;
    }

    .viewer-title {
        font-size: 14px !important;
    }

    .viewer-counter {
        font-size: 12px !important;
    }

    /* Viewer nav buttons: larger for mobile, keep W98 style */
    .viewer-prev,
    .viewer-next {
        width: 36px !important;
        height: 70px !important;
        font-size: 18px !important;
    }

    /* Zoom controls: larger for touch */
    .viewer-zoom-controls {
        bottom: 12px !important;
        right: 12px !important;
        gap: 4px !important;
    }

    .viewer-zoom-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

    .viewer-zoom-level {
        min-width: 54px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    /* Thumbnails: larger */
    .viewer-thumb {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ===== CRT TURN OFF EFFECT ===== */
#crt-off {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    background: #888;
}

/* TV static noise effect */
#crt-off::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: staticNoise 0.1s steps(3) infinite;
}

@keyframes staticNoise {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-5%, -5%); }
    66% { transform: translate(5%, 5%); }
    100% { transform: translate(0, 0); }
}

#crt-off.active {
    animation: crtOff 0.6s ease-out forwards;
}

@keyframes crtOff {
    0% {
        opacity: 0;
        transform: scale(1, 1);
    }
    20% {
        opacity: 1;
    }
    35% {
        opacity: 1;
        transform: scale(1, 1);
    }
    55% {
        transform: scale(1, 0.005);
    }
    75% {
        transform: scale(0.2, 0.005);
    }
    90% {
        transform: scale(0.2, 0.005);
    }
    100% {
        background: #0a0012;
        transform: scale(1, 1);
        opacity: 1;
    }
}

/* ===== GAME OVER SCREEN ===== */
#shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: #0a0012;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#shutdown-screen.active {
    opacity: 1;
}

#shutdown-screen.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameover-content {
    text-align: center;
}

.gameover-text {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 90px;
    color: #ff69b4;
    text-shadow: 4px 4px 0 #2a1a2e;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.gameover-score {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: #ffcc00;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.gameover-insert {
    font-family: 'VT323', monospace;
    font-size: 32px;
    color: #ff69b4;
    animation: blinkText 0.8s infinite;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.gameover-credits {
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #666;
    letter-spacing: 2px;
}

@keyframes blinkText {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.gameover-restarting {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: #ff69b4;
    letter-spacing: 3px;
    animation: blinkText 0.5s infinite;
}

/* Mobile game over */
@media (max-width: 768px) {
    .gameover-text {
        font-size: 50px;
        letter-spacing: 4px;
    }

    .gameover-score {
        font-size: 22px;
    }

    .gameover-insert {
        font-size: 24px;
    }

    .gameover-credits {
        font-size: 16px;
    }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

/* ===== KAWAII EXTRAS ===== */
/* Decorative Japanese text styling */
.text-jp {
    font-family: 'Zen Maru Gothic', sans-serif;
    letter-spacing: 1px;
}

/* Small kawaii accents */
.kawaii-heart::after {
    content: ' ♡';
    color: var(--accent-pink);
}

/* Window open animation */
.window.visible {
    animation: window-open 0.15s ease-out;
}

@keyframes window-open {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Selection highlight */
::selection {
    background: rgba(255, 105, 180, 0.3);
    color: #2a1a2e;
}

::-moz-selection {
    background: rgba(255, 105, 180, 0.3);
    color: #2a1a2e;
}
