body, h1, p, button {
margin: 0;
background-size: 2000px;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
color: white;
    font-family: 'Pixelify Sans', sans-serif !important;
}
    
.container {
    position: absolute;
    top: 20px;
    left: 20px;
}
.hero {
    position: fixed;
    right: 40px;
    bottom: 60px;
    background: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -8px;
}
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    left: 30px;
    top: 40px;
}

h1 {
    background: none;
    font-size: 120px;
    margin-bottom: 0px;
    color: #d896ff;
    text-shadow:
    0 0 10px #d896ff,
    0 0 20px #d896ff,
    0 0 40px #d896ff;
}

p {
    background: none;
    font-size: 1.5rem;
    margin-bottom: 40px;
    margin-top: 0;
    line-height: 1.8;
}

button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

button:hover {
    color: white;
    text-shadow:
        0 0 10px white,
        0 0 20px #d896ff;
    transform: translateX(4px);
}
.pixie {
   position: fixed;
    top: 25px;
    right: 25px;
    width: 90px;
    margin-bottom: -10px;
    image-rendering: pixelated;
    z-index: 1000;
    filter: 
        drop-shadow(0 0 10px #c8a2ff)
        drop-shadow(0 0 25px #e0b0ff)
        drop-shadow(0 0 45px #ff69b4)
        drop-shadow(0 0 70px #ff4fa3)
        drop-shadow(0 0 100px #d946ef)
}
.hero > .pixie { display: none; }
.desktop {
    width: 100vw;
    min-height: 100vh;

background-image: url("/assets/backgrounds/comets.gif");
    background-size: cover;
    background-repeat: repeat;
    background-position: center center;

    position: relative;
}
.desktop-vine { position: fixed; z-index: 2; pointer-events: none; image-rendering: pixelated; opacity: .82; filter: drop-shadow(0 0 5px #86d65c77); }
.vine-left { bottom: -62px; left: -54px; height: min(34vh, 330px); }
.vine-right { top: 36px; right: -66px; height: min(32vh, 310px); }
.vine-top { top: -22px; left: -28px; width: min(31vw, 475px); }
.container { z-index: 3; }
.desktop-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.store-page {
    background: radial-gradient(circle at 82% 14%, #ff9bcf88 0 3px, transparent 4px), radial-gradient(circle at 15% 75%, #8cf3d488 0 3px, transparent 4px), linear-gradient(135deg, #b8ebed, #c8dcff 47%, #ffd3e4);
    color: #372147;
    font-family: "Pixelify Sans", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: block;
}

.store-window {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 28px;
}
.store-page::before, .store-page::after { content: ""; position: fixed; z-index: 10; pointer-events: none; background: url("/assets/decor/1longleft.png") top left / contain no-repeat; width: min(24vw, 280px); height: 88vh; }
.store-page::before { top: 0; left: 0; }
.store-page::after { top: 0; right: 0; transform: scaleX(-1); }
.store-window h1 {
    font-size: clamp(34px, 7vw, 62px);
    line-height: 1;
    letter-spacing: -2px;
    color: #5b3975;
    text-shadow: 2px 2px #ffffff;
}
    
.products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product {
    background: #fff8e9cc;
    border: 3px outset #ffffff;
    border-radius: 0;
    padding: 20px;
    box-shadow: 2px 2px 0 #8e759d;
}

.product button {
    margin-top: 15px;
    padding: 10px 20px;

    border: none;
    border-radius: 10px;

    background: #ff69b4;
    color: white;

    cursor: pointer;
}
.window {
    width: 900px;
    margin-top: 80px;
    background: rgba(15,15,25,.85);
    border: 2px solid #d896ff;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.window-bar {
    height: 40px;
    background: linear-gradient(
        90deg,
        #c8a2ff,
        #ff69b4,
        #d946ef
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: white;
    font-weight: bold;
}

.window-buttons {
    display: flex;
    gap: 12px;
    font-size: 20px;
}

.window-content {
    padding: 30px;
    color: white;
}

.product {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #d896ff;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
}
/* Keep headings crisp and pixel-y. The old fallback made missing font text look cursive. */
h1, h2, .window-bar, .desktop-icon span {
    font-family: "Pixelify Sans", monospace;
    font-weight: 700;
}

/* Lower-right Being Dock + Start menu */
.hero {
    right: 46px;
    bottom: 278px;
}

.os-inventory ul { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.os-inventory li { padding: 8px; border: 2px inset #d7c6e2; color: #3b2553; background: #d9f4e3; font-weight: 700; }

@media (max-width: 700px) {
    .hero { right: 18px; bottom: 248px; }
    h1 { font-size: 68px; }
    
    
    
}

/* ================================================================
   DESKTOP RESCUE â€” keep this block LAST in the file.
   It restores the original roomy desktop layout and prevents the
   decoration images from behaving like giant app icons.
   ================================================================ */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
}

.desktop {
    position: relative;
    width: 100vw;
    min-height: 100dvh;
    overflow: hidden;
}

/* Every vine must be positioned decor, never normal page content. */
.desktop-vine {
    position: fixed !important;
    display: block !important;
    z-index: 2 !important;
    max-width: none !important;
    pointer-events: none !important;
    image-rendering: pixelated !important;
    filter: drop-shadow(0 0 7px rgba(126, 235, 114, .34));
}

/* The full L-shaped cluster belongs in the upper-left corner. */
.vine-top {
    top: -16px !important;
    left: -16px !important;
    width: min(42vw, 660px) !important;
    height: auto !important;
    opacity: .96 !important;
    transform: none !important;
}

/* The long vine belongs on the right edge, large but behind the UI. */
.vine-right {
    top: 48px !important;
    right: -54px !important;
    bottom: auto !important;
    width: auto !important;
    height: min(67vh, 720px) !important;
    opacity: .9 !important;
    transform: none !important;
}

/* These experimental vines are what caused the huge diagonal mess. */
.vine-left,
.vine-hanging-top,
.vine-hanging-bottom {
    display: none !important;
}

/* Keep desktop application icons small and consistent. */
.nav-buttons {
    position: fixed !important;
    top: 38px !important;
    left: 26px !important;
    z-index: 10 !important;
    display: flex !important;
    width: 112px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.nav-buttons button {
    width: 112px !important;
    min-height: 66px !important;
    padding: 3px !important;
    gap: 2px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    transform: none !important;
}

.nav-buttons button:hover { transform: translateX(2px) !important; }

.desktop-icon,
.nav-buttons .desktop-icon {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    image-rendering: pixelated !important;
}

/* Do not squash the saved Being preview. */

/* Keep the desktop UI above the vines. */
.container,
.hero,
#playerBadge,
#osWindowLayer {
    z-index: 10;
}

 #osWindowLayer { z-index: 20001 !important; }

@media (max-width: 700px) {
    html, body { overflow: hidden; }
    .vine-top { top: -10px !important; left: -12px !important; width: 78vw !important; }
    .vine-right { top: 76px !important; right: -80px !important; height: 48vh !important; opacity: .55 !important; }
    .nav-buttons { display: none !important; }
}

#avatarLabButton {
    position: fixed;
    left: 48px;
    bottom: 295px;
    z-index: 9998;
    display: block;
    padding: 10px 15px;
    border: 2px solid #f3c9ff;
    border-radius: 6px;
    color: white;
    background: linear-gradient(135deg, #6e3d95, #d44d9e);
    box-shadow: 0 0 8px #d896ff, 0 0 18px #ff69b4, inset 0 0 8px #ffffff66;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .5px;
    image-rendering: pixelated;
}
#avatarLabButton::before {
    content: "* ";
    color: #f8d7ff;
}
#avatarLabButton::after {
    content: " *";
    color: #f8d7ff;
}

#avatarLabButton:hover {
    transform: translateY(-3px) scale(1.03);
    color: white;
    text-shadow: 0 0 8px white;
    box-shadow: 0 0 12px #f3c9ff, 0 0 28px #ff69b4, inset 0 0 10px #ffffff99;
}

#loginButton {
    position: fixed;
    left: 48px;
    bottom: 238px;
    z-index: 10001;
    display: block;
    padding: 8px 13px;
    border: 2px solid #a9ef8a;
    border-radius: 6px;
    color: #efffe9;
    background: linear-gradient(135deg, #345e43, #6b9c55);
    box-shadow: 0 0 8px #78df71, 0 0 15px #7e4ca6, inset 0 0 7px #efffe966;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .5px;
    image-rendering: pixelated;
}

#loginButton:hover {
    transform: translateY(-3px) scale(1.03);
    color: white;
    text-shadow: 0 0 8px white;
    box-shadow: 0 0 13px #a9ef8a, 0 0 23px #d896ff, inset 0 0 9px #efffe999;
}

#playerBadge {
    position: fixed;
    top: 235px;
    right: 30px;
    z-index: 10;
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 9px 12px;
    border: 2px solid #d9b6ff;
    border-radius: 7px;
    color: #f9efff;
    background: #28183dcc;
    box-shadow: 0 0 10px #9c65d899, inset 0 0 8px #bfa6e633;
    font-family: "Pixelify Sans", monospace;
    text-align: left;
    cursor: pointer;
}

#playerBadge span {
    color: #a8e97e;
    font-size: 11px;
    letter-spacing: 1px;
}

#playerBadge strong {
    overflow: hidden;
    color: white;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#playerBadge:hover {
    transform: translateY(-2px);
    background: #392151ee;
    box-shadow: 0 0 14px #d896ff, inset 0 0 8px #c8f3a444;
}
#avatarMenu {
    bottom: 170px
    position: fixed;
    bottom: 170;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    z-index: 1000;
}
.avatar-layer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    pointer-events: none;
}
#osWindowLayer { position: fixed; inset: 0; z-index: 11000; pointer-events: none; }
.os-window { position: fixed; display: flex; flex-direction: column; overflow: hidden; min-width: 330px; min-height: 250px; border: 3px outset #f5f5f5; border-radius: 0; background: #c0c0c0; box-shadow: 2px 2px 0 #202020, 4px 4px 0 #6e6e6e, -1px -1px 0 #ffffff, 0 0 24px #a9dbff55; pointer-events: auto; }
.os-window.is-minimized { display: none; }
.os-window-bar { height: 31px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; margin: 3px 3px 0; padding: 0 5px 0 8px; color: white; background: #442467; cursor: grab; touch-action: none; text-shadow: 1px 1px #1b0d2a; box-shadow: inset 1px 1px #8f78ae, inset -1px -1px #211032; }
.os-window-bar:active { cursor: grabbing; }
.os-window-title { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.os-window-actions { display: flex; gap: 3px; }
.os-window-actions button { width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 2px outset #f6f6f6; border-radius: 0; color: #202020; background: #c0c0c0; font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 1; }
.os-window-actions button:hover { transform: none; background: #dedede; }
.os-window iframe { width: 100%; min-height: 0; flex: 1; overflow: auto; border: 2px inset #eeeeee; background: #c0c0c0; }
.os-window > div { min-height: 0; overflow: auto; }
.os-welcome { min-height: 100%; padding: 28px; color: #2f2440; background: radial-gradient(circle at 15% 25%, #a9e57d88 0 3px, transparent 4px), radial-gradient(circle at 82% 18%, #e0a5ff99 0 2px, transparent 3px), linear-gradient(135deg, #b9e5dc, #e8d7ff 52%, #ffd5e7); }
.os-welcome h2 { margin: 0 0 12px; color: #f0b8ff; font-size: 43px; text-shadow: 0 0 14px #e77dff; }
.os-welcome p { max-width: 440px; margin: 0 0 18px; font-size: 19px; line-height: 1.35; }
.os-welcome button { display: inline-block; padding: 10px 14px; border: 2px solid #c8f3a4; border-radius: 7px; color: white; background: #558e65; font-size: 17px; }
.os-window[data-app="welcome"] .os-window-bar, .os-window[data-app="profile"] .os-window-bar { background: #442467; }
.os-window[data-app="avatarLab"] .os-window-bar { background: #346d87; }
.os-window[data-app="storefront"] .os-window-bar { background: #477044; }
.os-window[data-app="login"] .os-window-bar { background: #8b4c72; }
.os-window[data-app="coaching"] .os-window-bar, .os-window[data-app="mealPlanning"] .os-window-bar { background: #4d7184; }
.os-window[data-app="twitch"] .os-window-bar, .os-window[data-app="discord"] .os-window-bar { background: #60509c; }
.os-window[data-app="welcome"] .os-welcome { background: radial-gradient(circle at 12% 18%, #ff9fcf99 0 3px, transparent 4px), linear-gradient(135deg, #c6ebff, #d5c4ff 49%, #ffc3dc); }
.os-window[data-app="profile"] .os-welcome { background: radial-gradient(circle at 86% 12%, #9cffa488 0 4px, transparent 5px), linear-gradient(135deg, #d7fff3, #c6e7ff 48%, #e5caff); }
.os-window[data-app="coaching"] .os-welcome, .os-window[data-app="mealPlanning"] .os-welcome { background: linear-gradient(135deg, #c4f0ef, #b7d7f4 54%, #d1c3ef); }
.os-window[data-app="twitch"] .os-welcome, .os-window[data-app="discord"] .os-welcome { background: linear-gradient(135deg, #e6cbff, #c7dcff 55%, #c5efcb); }

.taskbar-instagram-slot { color: #55326f; background: linear-gradient(#e4caff, #ad77cd); text-shadow: 1px 1px #f9eaff; }

@media (max-width: 700px) { .os-window { min-width: 280px; } .os-window-title { font-size: 14px; }      }

#gamesButton {
    position: fixed;
    bottom: 4px;
    left: 180px;

    width: 32px;
    height: 24px;

    cursor: pointer;
    z-index: 10000;
}

#gamesButton:hover {
    transform: scale(1.1);
}
#startMenu {
    display: none;
    position: fixed;
    bottom: 32px;
    left: 0;
    background: black;
    padding: 10px;
    z-index: 9999;
}

/* 8BitGPU Pocket: a deliberately phone-shaped OS, not a squished desktop. */
#mobilePocketHome, #mobileDock { display: none; }

@media (max-width: 700px) {
    html, body { min-width: 0; overflow: hidden; background: #10091c; }
    .desktop { min-height: 100dvh; background-position: center; }
    .desktop-vine { opacity: .45; pointer-events: none; }
    .vine-left { left: -56px; top: auto; bottom: 42px; height: 46vh; }
    .vine-right { right: -74px; top: 10px; height: 36vh; }
    .vine-top { top: -34px; left: -18px; width: 74vw; }
    .container, .hero, .nav-buttons { display: none; }
    #avatarLabButton, #loginButton { display: none !important; }
    
    #playerBadge { top: 16px; right: 14px; min-width: 122px; padding: 7px 9px; }
    #playerBadge span { font-size: 9px; }
    #playerBadge strong { font-size: 13px; }
    
    
    
    #mobilePocketHome { position: fixed; z-index: 9; top: 88px; left: 16px; right: 16px; display: block; padding: 18px; border: 3px outset #f3ecff; color: #fff; background: linear-gradient(145deg, #533276e8, #253b5dd9 58%, #5a3c76dd); box-shadow: 4px 4px 0 #1b1128, 0 0 22px #d394ff88; }
    .pocket-kicker { margin: 0 0 7px; color: #baff96; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
    #mobilePocketHome h2 { margin: 0; color: #f0b6ff; font-size: clamp(29px, 10vw, 40px); line-height: .96; text-shadow: 2px 2px #39214e, 0 0 12px #e18dff; }
    #mobilePocketHome > p:not(.pocket-kicker) { max-width: 190px; margin: 12px 0 16px; color: #e8f7ff; font-size: 14px; line-height: 1.25; }
    .pocket-launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .pocket-launch-grid button { min-height: 49px; padding: 7px; border: 2px outset #fff; color: #2c1840; background: linear-gradient(#f8e7ff, #cdb5ed); box-shadow: 2px 2px #24172f; font: 700 13px "Pixelify Sans", monospace; text-align: left; }
    .pocket-launch-grid button:nth-child(2) { background: linear-gradient(#c9f7ff, #93c8e5); }
    .pocket-launch-grid button:nth-child(3) { background: linear-gradient(#ffd0e7, #e69abf); }
    .pocket-launch-grid button:nth-child(4) { background: linear-gradient(#d8f4bd, #9fc888); }
    .pocket-launch-grid button span { display: block; color: #7743a3; font-size: 18px; line-height: 1; }
    #mobileDock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20001; display: grid; grid-template-columns: repeat(5, 1fr); height: 62px; padding: 4px; border-top: 3px outset #fff; background: linear-gradient(#dedede, #a4a4a4); box-shadow: 0 -3px 12px #000b; }
    #mobileDock button { display: grid; place-items: center; gap: 1px; border: 1px outset #fff; color: #2c173e; background: transparent; font: 700 10px "Pixelify Sans", monospace; text-shadow: 1px 1px #fff; }
    #mobileDock button:active { border-style: inset; background: #cdb3e8; }
    #mobileDock button span { color: #663f91; font-size: 19px; line-height: 1; text-shadow: 1px 1px #e9d8ff; }
    /* Open phone apps must sit above the Pocket dock, so their own bottom controls stay tappable. */
    #osWindowLayer { z-index: 20002; }
    .os-window.is-pocket-window { min-width: 0; min-height: 0; border-width: 3px 3px 0; box-shadow: none; }
    .os-window.is-pocket-window .os-window-bar { height: 38px; margin: 3px 3px 0; font-size: 16px; }
    .os-window.is-pocket-window .os-window-actions button:last-child { width: 27px; height: 27px; }
    .os-window.is-pocket-window iframe { border-width: 2px 0 0; }
    .os-window.is-pocket-window .os-welcome { padding: 18px; }
    .os-window.is-pocket-window .os-welcome h2 { font-size: 32px; }
    .os-window.is-pocket-window .os-welcome p { font-size: 16px; }
}

/* FINAL DESKTOP RESCUE â€” intentionally last so mobile/old experiments cannot override it. */
@media (min-width: 701px) {
    html, body { margin: 0; overflow: hidden; }
    .desktop { min-height: 100dvh; overflow: hidden; }
    .desktop-vine {
        position: fixed !important;
        display: block !important;
        z-index: 2 !important;
        pointer-events: none !important;
        image-rendering: pixelated !important;
        filter: drop-shadow(0 0 7px rgba(126, 235, 114, .34));
    }
    .vine-top {
        top: -16px !important;
        left: -16px !important;
        width: min(42vw, 660px) !important;
        height: auto !important;
        opacity: .96 !important;
        transform: none !important;
    }
    .vine-right {
        top: 48px !important;
        right: -54px !important;
        bottom: auto !important;
        width: auto !important;
        height: min(67vh, 720px) !important;
        opacity: .9 !important;
        transform: none !important;
    }
    .vine-left, .vine-hanging-top, .vine-hanging-bottom { display: none !important; }
    .nav-buttons {
        position: fixed !important;
        top: 38px !important;
        left: 26px !important;
        z-index: 10 !important;
        display: flex !important;
        width: 112px !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .nav-buttons button {
        width: 112px !important;
        min-height: 66px !important;
        padding: 3px !important;
        gap: 2px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
        text-align: center !important;
        transform: none !important;
    }
    .nav-buttons button:hover { transform: translateX(2px) !important; }
    .desktop-icon, .nav-buttons .desktop-icon {
        display: block !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        object-fit: contain !important;
        image-rendering: pixelated !important;
    }
    
    .container, .hero, #playerBadge, #osWindowLayer { z-index: 10; }
    
     #osWindowLayer { z-index: 20001 !important; }
}

#konamiStickman {
    position: fixed;
    bottom: 40px;
    left: 0;
    z-index: 30000;
    width: 320px;
    height: 320px;
    image-rendering: pixelated;
    cursor: pointer;
}
