@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Bebas+Neue&family=Patrick+Hand&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background: #1a1a24; color: #333; overflow: hidden; height: 100vh; user-select: none; }

/* News Ticker */
#news-scroll-thingy { position: absolute; top: 0; left: 0; width: 100%; height: 30px; background: #ffffff; border-bottom: 2px solid #1a1a1a; overflow: hidden; z-index: 10000; display: flex; align-items: center; transition: background 0.5s, border-bottom 0.5s; }
.news-name { background: #ff0000; color: #fff; padding: 5px 10px; font-weight: bold; font-size: 12px; margin-right: 10px; height: 100%; display: flex; align-items: center; font-family: 'Bangers', cursive; letter-spacing: 2px; transition: background 0.5s, color 0.5s; }
.thenews { height: 30px; overflow: hidden; display: flex; align-items: center; }
.news-scroll { display: inline-block; white-space: nowrap; color: #ff0000; font-family: 'Bangers', cursive; font-weight: bold; font-size: 16px; animation: scroll-news 100s linear infinite; padding-left: 100%; letter-spacing: 1px; transition: color 0.5s; }
@keyframes scroll-news { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Desktop */
#desktop { width: 100%; height: calc(100vh - 30px); margin-top: 30px; background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%); position: relative; overflow: hidden; transition: background 0.5s; }
#stark-pic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 350px; height: 350px; background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSEbhDw3eZU67cEGb8gNxn3pvRKXUhQ1Z6L-zM7QX8WLQ&s=10'); background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.15; pointer-events: none; z-index: 0; transition: opacity 0.5s; }

.zenpool-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}
.zenpool-icon {
    cursor: pointer;
}
/* Von Doom Text (Stable, no flashing) */
#doomgltich { position: absolute; top: 30px; left: 0; width: 100%; height: calc(100% - 78px); display: none; justify-content: center; align-items: center; pointer-events: none; z-index: 1; }
.doom-text {
    display: none; 
    font-family: 'Pirata One', cursive;
    font-size: 7rem;
    color: rgba(0, 255, 0, 0.2);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    letter-spacing: 4px;
    pointer-events: none;
    z-index: 1;
    width: 100%;
}

/* Desktop Icons (FIXED with Flexbox to prevent overlapping) */
.icon { position: absolute; color: #fff; text-align: center; cursor: grab; padding: 10px; border-radius: 5px; width: 90px; display: flex; flex-direction: column; align-items: center; }
.icon:active { cursor: grabbing; }
.icon:hover { background: rgba(255,255,255,0.1); }
.icon i { margin-bottom: 5px; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; font-style: normal; }
.icon i img { width: 40px !important; height: 40px !important; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.icon span { font-size: 14px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); font-family: 'Patrick Hand', cursive; display: block; width: 100%; }

/* Taskbar (FIXED with Flexbox to prevent overlapping) */
#bottombar { position: absolute; bottom: 0; left: 0; width: 100%; height: 48px; background: rgba(20, 20, 30, 0.9); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; padding: 0 15px; z-index: 9999; transition: background 0.5s, border-top 0.5s, box-shadow 0.5s; }
.barpic { width: 40px; height: 40px; margin-right: 10px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: background 0.2s; }
.barpic:hover { background: rgba(255,255,255,0.2); }
.barpic img { width: 24px !important; height: 24px !important; object-fit: contain; }
.time { margin-left: auto; color: #fff; font-size: 18px; font-weight: 600; padding: 0 10px; font-family: 'Bebas Neue', cursive; letter-spacing: 1px; }

/* Windows */
.window { position: absolute; min-width: 300px; min-height: 200px; background: #f1f1f1; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: none; flex-direction: column; overflow: hidden; border: 1px solid #ccc; }
.title-bar { background: #dcdcdc; color: #333; padding: 8px 12px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: move; font-family: 'Bebas Neue', cursive; letter-spacing: 1px; }
.titlebarbtns button { background: #ff5f56; border: none; width: 12px; height: 12px; border-radius: 50%; cursor: pointer; margin-left: 6px; }
.window-content { flex: 1; padding: 15px; overflow-y: auto; background: #fff; font-size: 16px; }

/* Welcome Window */
#welcome .window-content { background: #0d1117; color: #c9d1d9; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.weltitle { font-family: 'Bangers', cursive; font-size: 36px; color: #58a6ff; margin-bottom: 15px; letter-spacing: 1px; }
.weldescription { font-family: 'Patrick Hand', cursive; font-size: 18px; color: #8b949e; max-width: 400px; line-height: 1.5; }
.welenter { margin-top: 25px; padding: 10px 25px; background: #238636; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-family: 'Bebas Neue', cursive; font-size: 18px; letter-spacing: 1px; }
.welenter:hover { background: #2ea043; }

/* Daily Bugle */
.bugle-header { text-align: center; border-bottom: 3px double #1a1a1a; margin-bottom: 20px; padding-bottom: 10px; }
.bugle-header h1 { font-family: 'Bangers', cursive; font-size: 48px; font-weight: 900; letter-spacing: 2px; color: #1a1a1a; text-shadow: 2px 2px 0px #fff; }
.bugle-header p { font-size: 16px; color: #666; font-style: italic; font-family: 'Patrick Hand', cursive; }
.bugle-article { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.bugle-article h3 { font-family: 'Bebas Neue', cursive; font-size: 24px; margin-bottom: 5px; letter-spacing: 1px; }
.bugle-article .meta { font-size: 12px; color: #888; margin-bottom: 8px; font-family: 'Patrick Hand', cursive; }
.bugle-article p { font-size: 16px; color: #333; line-height: 1.5; font-family: 'Patrick Hand', cursive; }

/* F.R.I.D.A.Y. / Doombot */
#friday .window-content { display: flex; flex-direction: column; padding: 0; background: #0d1117; color: #c9d1d9; }
.jarvis-header { background: #161b22; padding: 10px 15px; border-bottom: 1px solid #30363d; display: flex; align-items: center; gap: 10px; }
.jarvis-avatar { width: 32px; height: 32px; background: #1f6feb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; transition: background 0.5s; overflow: hidden; }
.jarvis-avatar img { width: 20px !important; height: 20px !important; object-fit: contain; }
.jarvis-title { color: #f0f6fc; font-weight: 700; font-size: 16px; font-family: 'Bebas Neue', cursive; letter-spacing: 1px; transition: color 0.5s; }
.jarvis-subtitle { color: #8b949e; font-size: 12px; font-family: 'Patrick Hand', cursive; }
.jarvis-status-dot { width: 8px; height: 8px; background: #3fb950; border-radius: 50%; margin-left: auto; transition: background 0.5s; }
.jarvis-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.jarvis-msg-row { display: flex; flex-direction: column; max-width: 85%; }
.jarvis-msg-row.user { align-self: flex-end; align-items: flex-end; }
.jarvis-msg-row.assistant { align-self: flex-start; align-items: flex-start; }
.jarvis-msg-label { font-size: 11px; color: #8b949e; margin-bottom: 4px; font-family: 'Patrick Hand', cursive; }
.jarvis-msg-bubble { padding: 10px 14px; border-radius: 12px; font-size: 16px; line-height: 1.4; font-family: 'Patrick Hand', cursive; }
.jarvis-msg-row.user .jarvis-msg-bubble { background: #1f6feb; color: #fff; border-bottom-right-radius: 2px; }
.jarvis-msg-row.assistant .jarvis-msg-bubble { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; border-bottom-left-radius: 2px; }
.jarvis-input-bar { display: flex; border-top: 1px solid #30363d; background: #161b22; padding: 8px; gap: 8px; }
.jarvis-input { flex: 1; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; padding: 8px 12px; color: #c9d1d9; outline: none; font-size: 16px; font-family: 'Patrick Hand', cursive; }
.jarvis-input:focus { border-color: #1f6feb; }
.jarvis-send-btn { background: #238636; color: #fff; border: none; border-radius: 6px; padding: 0 16px; cursor: pointer; font-weight: 600; transition: background 0.2s; font-family: 'Bebas Neue', cursive; font-size: 16px; }
.jarvis-send-btn:hover { background: #2ea043; }

/* Clock */
#clock .window-content { background: #0d1117; color: #c9d1d9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; }
.clock-time { font-size: 48px; font-family: 'Bebas Neue', cursive; color: #58a6ff; margin-bottom: 10px; letter-spacing: 2px; }
.clock-date { font-size: 18px; color: #8b949e; font-family: 'Patrick Hand', cursive; margin-bottom: 20px; }
.analog-clock { width: 120px; height: 120px; border: 4px solid #30363d; border-radius: 50%; position: relative; margin-bottom: 20px; }
.clock-hand { position: absolute; background: #c9d1d9; transform-origin: bottom center; bottom: 50%; left: 50%; border-radius: 2px; }
.hand-hour { width: 4px; height: 30px; margin-left: -2px; background: #58a6ff; }
.hand-minute { width: 3px; height: 40px; margin-left: -1.5px; background: #c9d1d9; }
.hand-second { width: 2px; height: 45px; margin-left: -1px; background: #f85149; }
.clock-center { position: absolute; width: 8px; height: 8px; background: #30363d; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* S.H.I.E.L.D. */
#sheild .window-content { background: #1a1a1a; color: #00ff00; font-family: 'Courier New', Courier, monospace; }
.shield-search { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #00ff00; padding-bottom: 10px; }
.shield-input { flex: 1; background: #2a2a2a; border: 1px solid #00ff00; color: #00ff00; padding: 8px; font-family: inherit; font-size: 16px; }
.shield-input::placeholder { color: #005500; }
.shield-btn { background: #00ff00; color: #333; border: none; padding: 8px 15px; cursor: pointer; font-weight: bold; font-family: 'Bebas Neue', cursive; font-size: 18px; }
.shield-result { line-height: 1.6; }
.shield-result h3 { color: #fff; margin-bottom: 5px; font-family: 'Bebas Neue', cursive; font-size: 22px; }
.shield-result p { margin-bottom: 5px; font-size: 16px; }

/* Veronica Scans */
#thefour .window-content { padding: 0; background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 100%); color: #fff; display: flex; flex-direction: column; }
.space-header { padding: 15px; border-bottom: 1px solid #333; background: rgba(20,20,20,0.5); }
.space-header h2 { color: #4da6ff; margin: 0; font-size: 24px; font-family: 'Bebas Neue', cursive; letter-spacing: 1px; }
.space-header p { color: #888; margin: 0; font-size: 14px; font-family: 'Patrick Hand', cursive; }
.space-viewport { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; min-height: 200px; }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px); background-size: 200px 200px, 150px 150px; background-position: 0 0, 40px 60px; opacity: 0.5; pointer-events: none; }
.ship-container { position: relative; z-index: 2; text-align: center; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.ship-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.ship-info { padding: 20px; background: rgba(30, 30, 30, 0.9); border-top: 1px solid #4da6ff; z-index: 2; }
.ship-info h3 { color: #4da6ff; margin-bottom: 10px; font-family: 'Bebas Neue', cursive; font-size: 22px; }
.ship-info p { font-size: 16px; line-height: 1.5; color: #ccc; margin-bottom: 8px; font-family: 'Patrick Hand', cursive; }
.blue-4 { color: #4da6ff; font-weight: bold; text-shadow: 0 0 5px #4da6ff; font-size: 18px; font-family: 'Bangers', cursive; }

/* Games */
#games .window-content { padding: 0; background: #0d1117; color: #c9d1d9; display: flex; flex-direction: row; height: 100%; }
.games-sidebar { width: 200px; background: #161b22; padding: 15px 0; overflow-y: auto; border-right: 1px solid #30363d; }
.games-sidebar h4 { color: #8b949e; padding: 10px 15px; text-transform: uppercase; font-size: 0.8rem; border-bottom: 1px solid #30363d; margin-bottom: 10px; }
.game-btn { display: block; width: 100%; text-align: left; background: none; border: none; color: #c9d1d9; padding: 10px 15px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; border-bottom: 1px solid #21262d; }
.game-btn:hover { background: #21262d; color: #fff; }
.games-main { flex: 1; display: flex; flex-direction: column; }
.game-header { padding: 10px 15px; background: #161b22; border-bottom: 1px solid #30363d; }
.game-header h3 { color: #58a6ff; margin: 0; font-family: 'Bebas Neue', cursive; font-size: 18px; }
.game-wrapper { flex: 1; background: #1a1a1a; }
.game-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Accords */
#accords .window-content { background: #f4f1ea; color: #333; font-family: 'Patrick Hand', cursive; line-height: 1.6; }
.accord-header { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #30363d; }
.accord-header h2 { font-family: 'Bangers', cursive; font-size: 36px; letter-spacing: 2px; }
.accord-header p { font-size: 14px; color: #666; }
.accord-signatures { margin-top: 30px; font-style: italic; }
.accord-signatures p { margin-bottom: 5px; font-size: 18px; }

/* ========================================== */
/* VON DOOM HACK STATES (Green & Grey) */
/* ========================================== */
body.doomed #desktop {
    background: radial-gradient(circle at center, #1a2e1a 0%, #2a2a2a 100%) !important;
}
body.doomed #stark-pic {
    opacity: 0 !important;
}
body.doomed .doom-text {
    display: block !important;
}
body.doomed #bottombar {
    background: rgba(35, 35, 35, 0.9) !important;
    border-top: 1px solid #00ff00 !important;
    box-shadow: 0 0 15px #00ff00;
}
body.doomed .news-name {
    background: #00ff00 !important;
    color: #333 !important;
}
body.doomed #news-scroll-thingy {
    background: #1a1a1a !important;
    border-bottom: 2px solid #00ff00 !important;
}
body.doomed .news-scroll {
    color: #00ff00 !important;
    animation-duration: 30s !important;
}

/* Doombot AI Visual Hijack */
body.doomed .jarvis-avatar {
    background: #00ff00 !important;
    color: #333 !important;
}
body.doomed .jarvis-title {
    color: #00ff00 !important;
}
body.doomed .jarvis-status-dot {
    background: #888888 !important;
}

/* Screen shake on the desktop while slipping */
.shaking {
    animation: screenShake 0.1s infinite !important;
}
@keyframes screenShake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    25% { transform: translate(-2px, -1px) rotate(-1deg); }
    50% { transform: translate(-1px, 2px) rotate(1deg); }
    75% { transform: translate(1px, -2px) rotate(0deg); }
    100% { transform: translate(2px, 1px) rotate(0deg); }
}
