/* ========================================
   $CURSOR - Windows 98 Style Website
   ======================================== */

/* CSS Variables */
:root {
    /* Windows 98 Colors */
    --win-bg: #008080;
    --win-gray: #c0c0c0;
    --win-dark-gray: #808080;
    --win-light-gray: #dfdfdf;
    --win-white: #ffffff;
    --win-black: #000000;
    --win-blue: #000080;
    --win-title-blue: #000080;
    --win-title-active: linear-gradient(90deg, #000080, #1084d0);
    --win-title-inactive: linear-gradient(90deg, #808080, #b5b5b5);
    
    /* BSOD Colors */
    --bsod-blue: #0000aa;
    
    /* Fonts */
    --font-system: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-pixel: 'MS Sans Serif', 'Trebuchet MS', sans-serif;
    --font-press: 'Press Start 2P', cursive;
    --font-vt323: 'VT323', monospace;
    --font-silk: 'Silkscreen', cursive;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    line-height: 1.8;
}

/* Custom Cursors - using 32x32 versions with adjusted hotspot */
body {
    cursor: url('../assets/images/cursor-default-2_32x32.png') 4 2, auto;
}

a, button, .desktop-icon, .start-menu-item, .window-btn, .mascot-helper, .shop-item {
    cursor: url('../assets/images/cursor-pointer-32x32.png') 8 2, pointer;
}

/* ========================================
   Visual Effects
   ======================================== */

/* CRT Scanlines Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Marquee Banner */
.marquee-banner {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 22px;
    background: linear-gradient(180deg, #000080 0%, #0000aa 50%, #000080 100%);
    border-top: 2px solid #4040ff;
    border-bottom: 2px solid #000040;
    overflow: hidden;
    z-index: 100;
}

.marquee-content {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    padding-top: 3px;
}

.marquee-content span {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #ffff00;
    text-shadow: 1px 1px 0 #000;
}

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

/* ========================================
   Desktop
   ======================================== */
.desktop {
    width: 100%;
    height: calc(100% - 62px);
    background: var(--win-bg);
    position: relative;
    overflow: hidden;
}

/* Desktop Icons */
.desktop-icons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    padding: 8px;
    border: 1px solid transparent;
    text-align: center;
}

.desktop-icon:hover {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted var(--win-white);
}

.desktop-icon:active,
.desktop-icon.selected {
    background: var(--win-blue);
    border: 1px dotted var(--win-white);
}

.desktop-icon img {
    width: 96px;
    height: 96px;
    image-rendering: auto;
    margin-bottom: 5px;
    object-fit: contain;
}

/* Highlighted Icon (Cursor Miner) */
.highlighted-icon {
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

.highlighted-icon img {
    filter: drop-shadow(0 0 8px #ffff00) drop-shadow(0 0 15px #ffa500);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.icon-arrow {
    position: absolute;
    top: 30px;
    right: -35px;
    font-size: 14px;
    color: #ffff00;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    animation: arrowBounce 0.8s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff0000;
    color: #ffffff;
    font-size: 6px;
    padding: 3px 5px;
    border: 2px solid #ffff00;
    animation: badgePulse 1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1) rotate(-5deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.desktop-icon .icon-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 5px;
}

.desktop-icon span {
    color: var(--win-white);
    text-shadow: 1px 1px 1px var(--win-black);
    font-size: 11px;
    word-wrap: break-word;
    max-width: 85px;
}

/* ========================================
   Windows
   ======================================== */
.window {
    position: absolute;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    box-shadow: 2px 2px 0 var(--win-black);
    min-width: 300px;
    max-width: 550px;
    max-height: 80vh;
    z-index: 10;
}

.window-header {
    background: var(--win-title-active);
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.window.inactive .window-header {
    background: var(--win-title-inactive);
}

.window-title {
    color: var(--win-white);
    font-weight: bold;
    font-size: 12px;
    padding-left: 2px;
}

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

.window-btn {
    width: 16px;
    height: 14px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.window-btn:active {
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.window-menu {
    background: var(--win-gray);
    padding: 2px 5px;
    border-bottom: 1px solid var(--win-dark-gray);
}

.window-menu span {
    padding: 2px 8px;
    font-size: 11px;
}

.window-menu span:hover {
    background: var(--win-blue);
    color: var(--win-white);
}

.window-content {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(80vh - 50px);
}

.window-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
}

/* Button Styles */
.btn {
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    padding: 5px 20px;
    font-size: 12px;
    min-width: 80px;
}

.btn:active {
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.btn:focus {
    outline: 1px dotted var(--win-black);
    outline-offset: -4px;
}

.btn-primary {
    background: var(--win-blue);
    color: var(--win-white);
    border-color: var(--win-blue) var(--win-black) var(--win-black) var(--win-blue);
}

/* ========================================
   About Window
   ======================================== */
.about-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-mascot {
    width: 120px;
    height: auto;
    image-rendering: pixelated;
}

.about-text h2 {
    font-size: 24px;
    color: var(--win-blue);
    margin-bottom: 5px;
}

.about-text .tagline {
    font-size: 14px;
    font-weight: bold;
    color: var(--win-dark-gray);
    margin-bottom: 10px;
}

.about-text p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.contract-address {
    margin-top: 15px;
    padding: 10px;
    background: var(--win-white);
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.contract-address label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.ca-box {
    display: flex;
    gap: 5px;
}

.ca-box input {
    flex: 1;
    padding: 5px;
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
    font-family: monospace;
    font-size: 11px;
}

/* ========================================
   Notepad Style (Tokenomics)
   ======================================== */
.window-content.notepad {
    background: var(--win-white);
    padding: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.window-content.notepad pre {
    white-space: pre;
    margin: 0;
}

/* ========================================
   How to Buy Steps
   ======================================== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    background: var(--win-white);
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--win-blue);
    color: var(--win-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--win-blue);
}

.step-text p {
    font-size: 11px;
    color: var(--win-dark-gray);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 10px;
    background: var(--win-white);
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.faq-item h3 {
    font-size: 12px;
    color: var(--win-blue);
    margin-bottom: 5px;
}

.faq-item p {
    font-size: 11px;
    line-height: 1.4;
}

/* ========================================
   Welcome Dialog
   ======================================== */
.welcome-dialog {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 100 !important;
    min-width: 400px;
}

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

.welcome-mascot {
    margin-bottom: 15px;
}

.welcome-mascot img {
    width: 100px;
    height: auto;
    image-rendering: pixelated;
    animation: welcomeBounce 0.5s ease-out;
}

@keyframes welcomeBounce {
    0% { transform: scale(0) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.welcome-text {
    margin-bottom: 15px;
}

.welcome-greeting {
    font-size: 16px;
    font-weight: bold;
    color: var(--win-blue);
    margin-bottom: 10px;
}

.welcome-hint {
    font-size: 11px;
    color: var(--win-dark-gray);
    margin-top: 10px;
    padding: 8px;
    background: #ffffcc;
    border: 1px solid #cccc00;
}

/* ========================================
   Mascot Helper with Click Counter
   ======================================== */
.mascot-helper {
    position: absolute;
    bottom: 85px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
}

.mascot-container {
    position: relative;
    transition: transform 0.1s ease-out;
}

.mascot-container:hover {
    transform: scale(1.05);
}

.mascot-container:active {
    transform: scale(0.95);
}

.mascot-helper #mascotImage {
    width: 150px;
    height: auto;
    image-rendering: pixelated;
    animation: mascotIdle 3s ease-in-out infinite;
}

/* Mascot animations - only up/down, no rotation */
@keyframes mascotIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mascot-helper.clicked #mascotImage {
    animation: mascotClick 0.3s ease-out;
}

@keyframes mascotClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.mascot-helper.excited #mascotImage {
    animation: mascotExcited 0.5s ease-out;
}

@keyframes mascotExcited {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-10px); }
}

/* Click Counter */
.click-counter {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    padding: 3px 10px;
    font-family: var(--font-press);
    font-size: 8px;
    white-space: nowrap;
    display: flex;
    gap: 5px;
}

#clickCount {
    color: var(--win-blue);
    font-weight: bold;
    min-width: 30px;
    text-align: right;
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--win-white);
    border: 2px solid var(--win-black);
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 200px;
    margin-bottom: 10px;
    font-size: 11px;
    box-shadow: 2px 2px 0 var(--win-black);
    opacity: 1;
    transition: opacity 0.3s;
}

.speech-bubble.hidden {
    opacity: 0;
    pointer-events: none;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--win-black) transparent transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 32px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--win-white) transparent transparent;
    z-index: 1;
}

/* ========================================
   Taskbar
   ======================================== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--win-gray);
    border-top: 2px solid var(--win-light-gray);
    display: flex;
    align-items: center;
    padding: 2px 4px;
    z-index: 1000;
}

/* Start Button with Pixel Font */
.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    height: 34px;
}

.start-btn:active,
.start-btn.active {
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
}

.start-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--win-black);
}

.taskbar-windows {
    flex: 1;
    display: flex;
    gap: 3px;
    padding: 0 5px;
    overflow-x: auto;
}

.taskbar-window-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 28px;
}

.taskbar-window-btn.active {
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
    background: repeating-conic-gradient(var(--win-gray) 0% 25%, var(--win-light-gray) 0% 50%) 50% / 2px 2px;
}

/* Taskbar Tray - Time with Press Start 2P font */
.taskbar-tray {
    display: flex;
    align-items: center;
    padding: 3px 10px;
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
    height: 28px;
}

.taskbar-time {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--win-black);
}

/* ========================================
   Start Menu
   ======================================== */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 4px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    box-shadow: 2px 2px 0 var(--win-black);
    min-width: 250px;
    z-index: 1001;
}

.start-menu-header {
    background: var(--win-blue);
    color: var(--win-white);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    justify-content: center;
}

.start-menu-header img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

.start-menu-items {
    margin-left: 30px;
    padding: 3px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 20px 5px 5px;
    font-size: 12px;
}

.start-menu-item:hover {
    background: var(--win-blue);
    color: var(--win-white);
}

.menu-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.start-menu-divider {
    height: 1px;
    background: var(--win-dark-gray);
    margin: 3px 5px;
    border-bottom: 1px solid var(--win-light-gray);
}

/* ========================================
   Cursor Miner Game
   ======================================== */
.miner-window {
    min-width: 550px;
    max-width: 650px;
}

.miner-content {
    padding: 10px !important;
    background: #1a1a2e;
    color: #fff;
}

.miner-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #16213e;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.miner-balance {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #ffd700;
}

.balance-amount {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #00ff00;
}

.miner-rate {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #00ffff;
}

.miner-main {
    display: flex;
    gap: 10px;
    height: 350px;
}

.miner-click-area {
    flex: 1;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: 2px solid #1a1a2e;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.miner-cursor-big {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
    z-index: 10;
}

.miner-cursor-big:hover {
    transform: scale(1.05);
}

.miner-cursor-big:active {
    transform: scale(0.95);
}

.miner-cursor-big img {
    width: 120px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.click-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #ffd700;
    opacity: 0;
    pointer-events: none;
    text-shadow: 2px 2px 0 #000;
}

.click-effect.show {
    animation: clickPop 0.5s ease-out forwards;
}

@keyframes clickPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1.5);
    }
}

.click-hint {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #888;
    margin-top: 15px;
}

/* Floating miners */
.floating-miners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-miner {
    position: absolute;
    font-size: 20px;
    animation: floatMiner 3s linear infinite;
    opacity: 0.7;
}

@keyframes floatMiner {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100%) rotate(360deg);
        opacity: 0;
    }
}

/* Shop */
.miner-shop {
    width: 220px;
    min-width: 220px;
    background: #16213e;
    border-radius: 5px;
    padding: 8px;
    overflow-y: auto;
}

.miner-shop h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #ffd700;
    margin-bottom: 8px;
    text-align: center;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-item {
    background: #0f3460;
    border: 2px solid #1a1a2e;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-item:hover {
    border-color: #ffd700;
    background: #1a4a7a;
}

.shop-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item.disabled:hover {
    border-color: #1a1a2e;
    background: #0f3460;
}

.shop-item-icon {
    display: none;
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-item-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: #fff;
}

.shop-item-desc {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: #00ff00;
}

.shop-item-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    padding-top: 3px;
    border-top: 1px solid #1a1a2e;
}

.shop-item-cost {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: #ffd700;
}

.shop-item-owned {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: #888;
}

/* Footer */
.miner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.btn-small {
    padding: 3px 10px;
    font-size: 10px;
    min-width: auto;
}

.miner-tip {
    font-size: 9px;
    color: #666;
}

/* ========================================
   BSOD Easter Egg
   ======================================== */
.bsod {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bsod-blue);
    color: var(--win-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.bsod-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.bsod-content h1 {
    background: var(--win-white);
    color: var(--bsod-blue);
    display: inline-block;
    padding: 5px 20px;
    margin-bottom: 30px;
    font-size: 18px;
}

.bsod-content p {
    margin: 10px 0;
    font-size: 14px;
}

.bsod-hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 30px;
}

/* ========================================
   Loading Overlay
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--win-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: var(--win-white);
}

.loading-mascot {
    width: 150px;
    height: auto;
    image-rendering: pixelated;
    margin-bottom: 20px;
    animation: loadingPulse 1s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading-bar-container {
    width: 300px;
    height: 25px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-dark-gray) var(--win-light-gray) var(--win-light-gray) var(--win-dark-gray);
    padding: 3px;
    margin: 0 auto 15px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--win-blue);
    transition: width 0.1s linear;
}

.loading-content p {
    font-size: 14px;
    text-shadow: 1px 1px 0 var(--win-black);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .desktop-icons {
        gap: 10px;
        padding: 10px;
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .desktop-icon img {
        width: 64px;
        height: 64px;
    }
    
    .window {
        width: 95vw !important;
        left: 2.5vw !important;
        max-height: 70vh;
    }
    
    .welcome-dialog {
        min-width: 90vw !important;
    }
    
    .mascot-helper {
        display: none;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .start-menu {
        width: calc(100vw - 8px);
    }
    
    .taskbar-tray {
        gap: 2px;
        padding: 3px 4px;
    }
    
    .taskbar-time {
        padding: 0 4px;
    }
}

/* ========================================
   Animations
   ======================================== */
.window {
    animation: windowOpen 0.15s ease-out;
}

@keyframes windowOpen {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Selection */
::selection {
    background: var(--win-blue);
    color: var(--win-white);
}

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

::-webkit-scrollbar-track {
    background: repeating-conic-gradient(var(--win-gray) 0% 25%, var(--win-light-gray) 0% 50%) 50% / 2px 2px;
}

::-webkit-scrollbar-thumb {
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
}

::-webkit-scrollbar-button {
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    height: 16px;
}

/* ========================================
   Calendar Widget
   ======================================== */
.calendar-widget {
    position: fixed;
    top: 40px;
    right: 10px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid;
    border-color: var(--win-light-gray) var(--win-dark-gray) var(--win-dark-gray) var(--win-light-gray);
    padding: 6px 8px;
    pointer-events: none;
    user-select: none;
}

.calendar-title {
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: var(--win-black);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--win-dark-gray);
}

.calendar-grid {
    background: transparent;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: 22px repeat(7, 18px);
    text-align: center;
    margin-bottom: 2px;
}

.calendar-weekdays span {
    font-size: 7px;
    font-weight: bold;
    color: var(--win-black);
}

.calendar-weekdays .cw-header {
    color: var(--win-dark-gray);
}

.calendar-weekdays .sunday-header {
    color: #cc0000;
}

.calendar-days {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.calendar-week {
    display: grid;
    grid-template-columns: 22px repeat(7, 18px);
    text-align: center;
}

.calendar-cw {
    font-size: 7px;
    color: var(--win-dark-gray);
    padding: 2px 0;
}

.calendar-day {
    font-size: 8px;
    padding: 2px 0;
    color: var(--win-black);
}

.calendar-day.other-month {
    color: var(--win-dark-gray);
}

.calendar-day.today {
    background: var(--win-blue);
    color: var(--win-white);
}

.calendar-day.sunday {
    color: #cc0000;
}

.calendar-day.today.sunday {
    color: var(--win-white);
}
