/* Windows 98 Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    cursor: default;
    user-select: none;
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop with Dynamic Background */
.desktop {
    width: 100%;
    height: calc(100vh - 40px);
    position: relative;
    overflow: hidden;
}

.desktop-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Background Switcher */
.background-switcher {
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 500;
}

.bg-arrow {
    width: 40px;
    height: 40px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-arrow:hover {
    background: #d0d0d0;
}

.bg-arrow:active {
    border-color: #000 #fff #fff #000;
}

/* Floating Rabbids GIFs */
.floating-rabbid {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.rabbid-1 {
    width: 120px;
    top: 10%;
    right: 10%;
    animation: float1 6s ease-in-out infinite;
}

.rabbid-2 {
    width: 100px;
    top: 60%;
    right: 5%;
    animation: float2 8s ease-in-out infinite;
}

.rabbid-3 {
    width: 80px;
    bottom: 15%;
    left: 15%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -30px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 30px) rotate(-10deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -20px) rotate(15deg); }
}

/* iPod Music Player */
.ipod {
    position: fixed;
    bottom: 60px;
    left: 20px;
    width: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d8d8d8 25%, #c0c0c0 50%, #a8a8a8 75%, #909090 100%);
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    z-index: 500;
    cursor: grab;
    user-select: none;
}

.ipod-screen {
    background: linear-gradient(to bottom, #a3d5d5 0%, #7fb8b8 50%, #5a9a9a 100%);
    border: 3px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 -1px 1px rgba(255, 255, 255, 0.2);
}

.ipod-display {
    color: #000;
    font-size: 10px;
}

.ipod-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
}

.ipod-song {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipod-time {
    font-size: 9px;
}

.ipod-wheel {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 30%, #e8e8e8, #d0d0d0 30%, #a8a8a8 60%, #808080);
    border-radius: 50%;
    border: 2px solid #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.ipod-btn {
    position: absolute;
    background: linear-gradient(135deg, #f5f5f5, #d0d0d0, #a8a8a8);
    border: 1px solid #404040;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.1s;
}

.ipod-btn:active {
    background: linear-gradient(135deg, #a8a8a8, #d0d0d0, #f5f5f5);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
}

.ipod-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.ipod-play {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.ipod-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.ipod-center-btn {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 35% 35%, #e0e0e0, #b8b8b8 40%, #808080);
    border-radius: 50%;
    border: 2px solid #303030;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.1s;
}

.ipod-center-btn:active {
    background: radial-gradient(circle at 65% 65%, #e0e0e0, #b8b8b8 40%, #808080);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

.ipod-volume {
    margin-top: 10px;
    text-align: center;
}

.ipod-volume label {
    display: block;
    font-size: 9px;
    margin-bottom: 5px;
}

.volume-slider {
    width: 90%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #d0d0d0;
    outline: none;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #000080;
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #000080;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

#volumeDisplay {
    display: block;
    font-size: 9px;
    margin-top: 3px;
}

/* iPod Color Picker */
.ipod-color-picker {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.color-btn {
    width: 20px;
    height: 20px;
    border: 2px solid #404040;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.color-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #404040, 0 0 8px rgba(255, 255, 255, 0.8);
}

.color-btn[data-color="silver"] {
    background: linear-gradient(135deg, #f0f0f0, #909090);
}

.color-btn[data-color="blue"] {
    background: linear-gradient(135deg, #a8d5ff, #2a5ea0);
}

.color-btn[data-color="pink"] {
    background: linear-gradient(135deg, #ffc0e8, #d03a90);
}

.color-btn[data-color="green"] {
    background: linear-gradient(135deg, #a8ffc0, #2aa03a);
}

.color-btn[data-color="black"] {
    background: linear-gradient(135deg, #505050, #080808);
}

.color-btn[data-color="gold"] {
    background: linear-gradient(135deg, #ffd700, #b87300);
}

/* Pump.fun Buy Button */
.pump-btn {
    position: absolute;
    right: 130px;
    bottom: 52px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 32px;
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 50%, #009900 100%);
    border: 3px solid;
    border-color: #66ff66 #006600 #006600 #66ff66;
    border-radius: 50px;

    color: #000;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);

    box-shadow:
        0 4px 15px rgba(0, 255, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);

    cursor: move;
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
    user-select: none;
}

.pump-btn:hover {
    background: linear-gradient(135deg, #33ff33 0%, #00ff00 50%, #00cc00 100%);
    box-shadow:
        0 6px 25px rgba(0, 255, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.pump-btn:active {
    box-shadow:
        0 2px 10px rgba(0, 255, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pump-text {
    letter-spacing: 0.5px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(0, 255, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(0, 255, 0, 0.6),
            0 0 30px rgba(0, 255, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
}

/* Desktop Icons */
.icon {
    position: absolute;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid transparent;
    z-index: 10;
}

.icon:hover {
    background: rgba(0, 0, 128, 0.2);
}

.icon.selected {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted #fff;
}

.icon-image {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.draggable-icon {
    cursor: move;
}

.icon-label {
    color: #fff;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 90px;
}

/* Windows */
.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.window.active {
    z-index: 100;
}

.window.minimized {
    display: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 40px) !important;
}

/* Window Titlebar */
.window-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window.active .window-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
}

.window-title {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.window-icon {
    font-size: 14px;
}

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

.window-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.window-btn:active {
    border-color: #000 #fff #fff #000;
}

.close-btn {
    font-size: 11px;
}

/* Window Menubar */
.window-menubar {
    background: #c0c0c0;
    padding: 2px 4px;
    border-bottom: 1px solid #808080;
    display: flex;
    gap: 10px;
}

.menu-item {
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}

.menu-item:hover {
    background: #000080;
    color: #fff;
}

/* Window Content */
.window-content {
    flex: 1;
    background: #fff;
    overflow: auto;
    padding: 20px;
}

/* Rabbid Runner Game Styles */
.game-container {
    position: relative;
}

#gameCanvas {
    width: 100%;
    height: 400px;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    display: block;
    image-rendering: pixelated;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    margin-top: 10px;
}

.game-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.game-btn:hover {
    background: #d0d0d0;
}

.game-btn:active {
    border-color: #000 #fff #fff #000;
}

#gameScore {
    font-weight: bold;
    font-size: 16px;
    color: #000;
}

.game-instructions {
    text-align: center;
    padding: 10px;
    background: #ffff00;
    border: 2px solid #000;
    margin-top: 10px;
    font-weight: bold;
    font-size: 12px;
}

.game-over-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 3px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 30px;
    text-align: center;
    z-index: 1001;
    min-width: 250px;
}

.game-over-overlay h2 {
    color: #000080;
    margin-bottom: 15px;
}

.game-over-overlay p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* Computer Info Styles */
.computer-info h2 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
}

.system-stats {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #808080;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: bold;
    color: #000;
}

.stat-value {
    color: #000080;
    font-weight: bold;
}

.system-message {
    font-size: 14px;
    color: #c00;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: #ff0;
    border: 2px dashed #c00;
}

/* About Content Styles */
.about-content h2 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
}

.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.info-section h3 {
    color: #000;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.info-section p {
    color: #000;
    font-size: 12px;
    line-height: 1.6;
}

.about-banner {
    background: #000080;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
}

/* Buy Content Styles */
.buy-content h2 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
}

.contract-box {
    background: #00ff00;
    border: 3px solid #008000;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.contract-box h3 {
    color: #008000;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.ca-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ca-input {
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #fff;
    border: 2px solid #808080;
    text-align: center;
}

.copy-ca-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.copy-ca-btn:hover {
    background: #a0a0a0;
}

.copy-ca-btn:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.launch-text {
    font-size: 16px;
    color: #008000;
    font-weight: bold;
    margin-top: 10px;
}

.coming-soon-box {
    background: #ff0;
    border: 3px solid #c00;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.coming-soon-box h3 {
    color: #c00;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.coming-soon-box p {
    font-size: 13px;
    margin-bottom: 10px;
    color: #000;
}

.warning-box {
    background: #ff0;
    border: 2px solid #c00;
    padding: 10px;
    font-size: 11px;
    color: #c00;
    font-weight: bold;
}

/* Token Stats Window Styles */
.stats-content h2 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: #000;
    border: 3px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
}

.stat-box.price-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #001a00 0%, #003300 100%);
}

.stat-label {
    font-size: 10px;
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.stat-value {
    font-size: 20px;
    color: #00ff00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    margin-bottom: 5px;
}

.price-box .stat-value {
    font-size: 28px;
}

.stat-change.positive {
    color: #00ff00;
}

.stat-change.negative {
    color: #ff0000;
}

.stat-change.positive::before {
    content: '▲ ';
}

.stat-change.negative::before {
    content: '▼ ';
}

.stat-update {
    font-size: 12px;
    color: #ffff00;
}

.stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    margin-bottom: 15px;
}

.stats-refresh-btn {
    background: #008000;
    color: #fff;
    border: 2px solid;
    border-color: #dfdfdf #004000 #004000 #dfdfdf;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.stats-refresh-btn:hover {
    background: #00a000;
}

.stats-refresh-btn:active {
    border-color: #004000 #dfdfdf #dfdfdf #004000;
}

.stats-info {
    font-size: 11px;
    color: #000;
    font-style: italic;
}

.stats-links {
    text-align: center;
}

.chart-link {
    display: inline-block;
    background: #000080;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid;
    border-color: #dfdfdf #000040 #000040 #dfdfdf;
    font-weight: bold;
    font-size: 13px;
}

.chart-link:hover {
    background: #0000a0;
}

.chart-link:active {
    border-color: #000040 #dfdfdf #dfdfdf #000040;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stat-value.updating {
    animation: pulse 0.5s ease-in-out;
}

/* Socials Content Styles */
.socials-content h2 {
    color: #000080;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
}

.community-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
    color: #000;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.social-btn:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.social-info {
    flex: 1;
}

.social-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 3px;
}

.social-desc {
    font-size: 11px;
    color: #666;
}

.community-message {
    background: #000080;
    color: #fff;
    padding: 15px;
    text-align: center;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
}

.community-message p {
    font-size: 13px;
    line-height: 1.6;
}

/* Gallery Styles */
.gallery-window-content {
    padding: 10px !important;
}

.gallery-header {
    margin-bottom: 15px;
}

.gallery-header h2 {
    color: #000080;
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-header p {
    font-size: 11px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: pointer;
    overflow: hidden;
    background: #c0c0c0;
}

.gallery-item:hover {
    border-color: #000080;
    box-shadow: 0 0 5px rgba(0, 0, 128, 0.5);
}

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

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.gallery-modal-close:active {
    border-color: #000 #fff #fff #000;
}

#galleryModalImg {
    max-width: 600px;
    max-height: 500px;
    object-fit: contain;
    border: 2px solid #000;
    margin-bottom: 15px;
}

.gallery-modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-action-btn {
    padding: 8px 16px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.gallery-action-btn:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.gallery-modal-filename {
    font-size: 11px;
    color: #000;
    text-align: center;
}

/* Recycle Bin Styles */
.recycle-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.recycle-empty {
    text-align: center;
}

.recycle-empty h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.recycle-empty p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.bwahh-text {
    color: #c00;
    font-weight: bold;
    font-size: 14px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 1000;
}

.start-button {
    height: 32px;
    padding: 0 15px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 12px;
}

.start-button:active,
.start-button.active {
    border-color: #000 #fff #fff #000;
}

.taskbar-divider {
    width: 2px;
    height: 32px;
    background: #808080;
    margin: 0 4px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
}

.taskbar-item {
    height: 32px;
    padding: 0 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-item:active,
.taskbar-item.active {
    border-color: #000 #fff #fff #000;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 1px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    height: 28px;
    background: #c0c0c0;
}

.tray-time {
    font-size: 11px;
    font-weight: normal;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 42px;
    left: 2px;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #000 #000 #dfdfdf;
    z-index: 10000;
}

.start-menu-header {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff;
    padding: 8px 12px;
}

.start-menu-title {
    font-weight: bold;
    font-size: 16px;
}

.start-menu-subtitle {
    font-size: 10px;
}

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

.start-menu-item {
    padding: 8px 30px 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.start-menu-item:hover {
    background: #000080;
    color: #fff;
}

.start-menu-divider {
    height: 1px;
    background: #808080;
    margin: 4px 0;
}

.start-menu-footer {
    border-top: 1px solid #808080;
    padding: 4px 0;
}

.start-footer-item {
    padding: 8px 30px 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.start-footer-item:hover {
    background: #000080;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix background sizing on mobile */
    .desktop-background {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    /* Make windows mobile-friendly */
    .window {
        min-width: 90vw;
        max-width: 95vw;
        min-height: 60vh;
    }

    /* Bigger icons for touch */
    .icon {
        width: 80px;
        touch-action: manipulation;
    }

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

    .icon-label {
        font-size: 11px;
    }

    /* Smaller floating rabbid */
    .floating-rabbid {
        width: 60px !important;
    }

    /* Smaller, better positioned iPod */
    .ipod {
        width: 180px;
        left: 10px;
        bottom: 60px;
        padding: 12px;
    }

    .ipod-screen {
        padding: 8px;
        margin-bottom: 12px;
    }

    .ipod-wheel {
        width: 110px;
        height: 110px;
    }

    .ipod-btn {
        width: 28px;
        height: 24px;
        font-size: 11px;
    }

    .ipod-center-btn {
        width: 45px;
        height: 45px;
    }

    /* Bigger background arrows for touch */
    .background-switcher {
        bottom: 60px;
        right: 10px;
    }

    .bg-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
        touch-action: manipulation;
    }

    /* Mobile game optimization */
    #gameCanvas {
        height: 300px;
    }

    .game-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .game-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Gallery improvements */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        height: 150px;
    }

    /* Modal improvements */
    .gallery-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .gallery-action-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Taskbar improvements */
    .taskbar {
        height: 50px;
    }

    .start-button {
        padding: 8px 12px;
    }

    /* Adjust pump button for tablet */
    .pump-btn {
        right: 20px;
        bottom: 70px;
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Even more mobile-friendly */
    .window {
        min-width: 95vw;
    }

    .start-menu {
        width: 180px;
    }

    .taskbar-item {
        max-width: 100px;
        font-size: 10px;
    }

    /* Hide iPod on very small screens */
    .ipod {
        width: 150px;
        padding: 10px;
    }

    .ipod-wheel {
        width: 90px;
        height: 90px;
    }

    /* Single column gallery on small phones */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Reposition pump button for mobile */
    .pump-btn {
        right: 10px;
        bottom: 70px;
        padding: 12px 20px;
        font-size: 13px;
    }
}
