        @font-face {
            font-family: 'Comic Sans MS Custom';
            src: url('/fonts/ComicSansMS.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        body {
            background: #ffb3d9 url(/images/22864682_6709086PINK.png) repeat;
            background-size: 600px;
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            margin: 0;
            padding: 20px;
            position: relative;
            cursor: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23ff00aa" /><circle cx="8" cy="8" r="2" fill="white" /><circle cx="16" cy="8" r="2" fill="white" /><path d="M8 15 Q12 18,16 15" stroke="white" stroke-width="2" fill="none" /></svg>') 12 12, auto;
            overflow-x: hidden;
        }

        .billie-header {
            background: linear-gradient(145deg, #66ccff, #3399ff);
            border: none !important;
            padding: 15px 30px;
            margin-bottom: 30px;
            margin-top: -15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            box-shadow: 0 8px 12px rgba(0,0,0,0.5);
            position: relative;
            z-index: 200;
        }
        .logo {
            font-size: 70px;
            font-weight: bold;
            color: #000080;
            text-shadow: 3px 3px 0 #fff;
            transform: rotate(-2deg);
            letter-spacing: 2px;
        }
        .nav-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .nav-buttons button, .game-console button, .guestbook-link, .spider-game button {
            cursor: pointer;
            position: relative;
            padding: 10px 25px;
            border-radius: 40px;
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            font-size: 24px;
            font-weight: bold;
            border: 3px solid black;
            color: white;
            text-shadow: 2px 2px 0 #003366;
            transition: 0.1s;
            text-decoration: none;
            display: inline-block;
            line-height: 1.2;
        }
        .nav-buttons button {
            transform: rotate(var(--rot, 0deg));
            background-image: linear-gradient(180deg, #fc62b7, #ff44aa);
            box-shadow: 
                0 0.5rem 0.75rem 0 rgba(0, 102, 204, 0.5),
                0 -0.15rem 1rem rgba(255, 105, 180, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 255, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(255, 105, 180, 0.9) inset;
        }
        .nav-buttons button:nth-child(1) { --rot: -1deg; }
        .nav-buttons button:nth-child(2) { --rot: 2deg; }
        .nav-buttons button:nth-child(3) { --rot: -2deg; }
        .nav-buttons button:nth-child(4) { --rot: 1deg; }

        .nav-buttons button:hover {
            background-image: linear-gradient(180deg, #b380ff, #663399);
            box-shadow: 
                0 0.5rem 0.75rem 0 rgba(0, 102, 204, 0.5),
                0 -0.15rem 1rem rgba(102, 51, 153, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 255, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(102, 51, 153, 0.9) inset;
            transform: translateY(2px) rotate(var(--rot, 0deg));
        }
        .nav-buttons button::before, .game-console button::before, .guestbook-link::before, .spider-game button::before {
            content: "";
            display: block;
            height: 0.2rem;
            position: absolute;
            top: 0.3rem;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 2rem);
            background: #fff;
            border-radius: 100%;
            opacity: 0.6;
            background-image: linear-gradient(-270deg, rgba(255,255,255,0) 0%, #FFFFFF 20%, #FFFFFF 80%, rgba(255,255,255,0) 100%);
            pointer-events: none;
        }
        .nav-buttons button::after, .game-console button::after, .guestbook-link::after, .spider-game button::after {
            content: "";
            display: block;
            height: 0.2rem;
            position: absolute;
            bottom: 0.5rem;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 2rem);
            background: #fff;
            border-radius: 100%;
            filter: blur(1px);
            opacity: 0.1;
            background-image: linear-gradient(-270deg, rgba(255,255,255,0) 0%, #FFFFFF 20%, #FFFFFF 80%, rgba(255,255,255,0) 100%);
            pointer-events: none;
        }

        .nav-buttons button:disabled, .game-console button:disabled, .spider-game button:disabled {
            opacity: 0.5;
            transform: translateY(4px) rotate(var(--rot, 0deg));
            box-shadow: 
                0 0.25rem 0.4rem 0 rgba(0, 102, 204, 0.3),
                0 -0.15rem 1rem rgba(0, 102, 204, 0.4) inset,
                0 0.3rem 0.2rem rgba(255, 255, 255, 0.3) inset,
                0 0.15rem 0.3rem 0 rgba(255, 255, 255, 0.5) inset;
            pointer-events: none;
        }

        .toolbar-zone {
            width: 100%;
            background: #c0c0c0;
            background-image: repeating-linear-gradient(45deg, #d4d4d4 0px, #d4d4d4 2px, #c0c0c0 2px, #c0c0c0 6px);
            border-top: 3px solid #ffffff;
            border-bottom: 3px solid #808080;
            box-shadow: inset 0 1px 5px rgba(0,0,0,0.2);
            margin-bottom: 0;
            padding: 4px 30px;
            font-family: 'Tahoma', 'Arial', sans-serif;
            font-size: 11px;
            z-index: 250;
            position: relative;
            box-sizing: border-box;
        }

        .toolbar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px 8px;
            padding: 2px 8px;
            background: linear-gradient(180deg, #ececec, #d4d4d4);
            margin: 4px 0;
            box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #a0a0a0;
        }

        .toolbar-grip {
            color: #666;
            font-size: 16px;
            line-height: 1;
            margin-right: 2px;
            cursor: move;
        }

        .toolbar-icon {
            height: 22px;
            width: auto;
            image-rendering: pixelated;
        }

        .toolbar-text {
            font-weight: bold;
            color: #000080;
            text-shadow: 0 1px 0 white;
        }

        .toolbar-divider {
            width: 2px;
            height: 20px;
            background: #a0a0a0;
            border-left: 1px solid #f0f0f0;
            margin: 0 4px;
        }

        .toolbar-search {
            background: white;
            border: 2px inset #eee;
            padding: 2px 4px;
            width: 140px;
            font-size: 11px;
            font-family: 'Courier New', monospace;
            color: black;
        }

        .toolbar-btn {
            background: #e0e0e0;
            border: 2px solid;
            border-color: #f0f0f0 #808080 #808080 #f0f0f0;
            padding: 2px 8px;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
            color: #000;
            font-family: 'Tahoma', sans-serif;
        }
        .toolbar-btn:active {
            border-color: #808080 #f0f0f0 #f0f0f0 #808080;
        }

        .toolbar-label {
            background: #ffffcc;
            border: 1px solid #ffaa00;
            padding: 2px 6px;
            font-weight: bold;
            color: #cc6600;
            border-radius: 10px;
            box-shadow: inset 0 0 3px #ffaa00;
        }

        .flashing {
            animation: blink 0.8s step-end infinite;
        }
        @keyframes blink {
            0%, 100% { opacity: 1; background: #ff6600; color: white; }
            50% { opacity: 0; }
        }

        .toolbar-ticker {
            background: black;
            color: #00ff00;
            padding: 2px 6px;
            font-family: 'Courier New', monospace;
            font-size: 11px;
            border: 1px solid #00cc00;
            flex: 1;
            min-width: 200px;
        }

        .toolbar-bubble {
            background: #c0e0ff;
            border: 2px solid #000080;
            border-radius: 12px;
            padding: 2px 10px;
            font-style: italic;
            font-weight: bold;
        }

        .alert-toolbar {
            background: #ffcccc;
            border-color: #ff0000 #880000 #880000 #ff0000;
        }
        .toolbar-alert {
            color: red;
            font-weight: bold;
            text-transform: uppercase;
            background: yellow;
            padding: 2px 8px;
            border: 2px solid red;
            animation: pulseBg 1s infinite;
        }
        @keyframes pulseBg {
            0% { background: yellow; }
            50% { background: orange; }
        }
        .alert-btn {
            background: red;
            color: white;
            border-color: #ff8888 #aa0000 #aa0000 #ff8888;
        }

        /* Search bar styles */
        .search-bar {
            position: relative;
            background-color: #663399;
            border: 3px solid black;
            border-radius: 40px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            width: 100%;
        }
        .search-bar.dropdown-visible {
            border-radius: 40px 40px 0 0;
        }
        .search-bar input {
            flex: 1;
            border: none;
            background: transparent;
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            font-size: 20px;
            color: #ffd700;
            outline: none;
        }
        .search-bar input::placeholder {
            color: #ffff99;
            opacity: 1;
        }
        .search-bar img {
            height: 30px;
            margin-left: 10px;
        }

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: -3px;
            width: calc(100% + 6px);
            background-color: #663399;
            border: 3px solid black;
            border-top: none;
            border-radius: 0 0 40px 40px;
            max-height: 400px;
            overflow-y: auto;
            padding: 10px 0;
            display: none; /* hidden by default – shown by JS */
            box-sizing: border-box;
            z-index: 300;
        }
        .search-suggestions a {
            display: block;
            padding: 12px 20px;
            color: #ffd700;
            text-decoration: none;
            border-bottom: 2px dotted black;
            font-size: 18px;
        }
        .search-suggestions a:nth-child(odd) {
            background-color: #47246b;
        }
        .search-suggestions a:nth-child(even) {
            background-color: #663399;
        }
        .search-suggestions a:hover {
            background-color: #ff69b4;
            color: white;
        }
        .search-suggestions a:last-child {
            border-bottom: none;
        }

        .sticky-field {
            position: relative;
            min-height: 500px;
            margin-bottom: 20px;
        }

        .sticky-note {
            position: absolute;
            width: 260px;
            height: 240px;
            border: 4px solid black;
            box-shadow: 0 12px 20px rgba(0,0,0,0.5);
            padding: 15px;
            font-size: 15px;
            transform: rotate(var(--rot, 0deg));
            z-index: 0;
            overflow-y: auto;
        }

        .sticky-header {
            margin: -15px -15px 10px -15px;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            border-bottom: none;
            background-clip: padding-box;
        }
        .sticky-header img {
            height: 22px;
            width: auto;
            margin-right: 8px;
        }
        .sticky-header span {
            flex: 1;
            text-align: left;
        }
        .sticky-header img:last-child {
            margin-left: auto;
            margin-right: 0;
        }

        .note1 {
            background: #ffe0f0 !important;
        }
        .note1 .sticky-header {
            background: #ff44aa;
        }

        .note2 {
            background: #ceffce !important;
        }
        .note2 .sticky-header {
            background: #52e7fe;
        }

        .note3 {
            background: #f0d0ff !important;
        }
        .note3 .sticky-header {
            background: #b266ff;
        }

        .note4 {
            background: #c0f0e8 !important;
        }
        .note4 .sticky-header {
            background: #3abda7;
        }

        .note5 {
            background: #ffb3d9 !important;
        }
        .note5 .sticky-header {
            background: #6a5acd;
        }

        .note6 {
            background: #ceffce !important;
        }
        .note6 .sticky-header {
            background: #52e7fe;
        }

.note1 { background: #ff99cc; top: -364px; left: 20px; --rot: -4deg; }
.note2 { background: #66ccff; top: 35px; left: 51px; --rot: 5deg; }
.note3 { background: #99ff99; top: 52px; left: 85px; --rot: -3deg; }
.note4 { background: #ffcc66; top: -365px; left: 1080px; --rot: 6deg; }
.note5 { background: #cc99ff; top: -675px; left: 566px; --rot: -5deg; }
.note6 { background: #ffb3b3; top: -256px; left: 1017px; --rot: 2deg; }

.research-content {
    max-height: 160px;
    overflow-y: auto;
    padding: 5px;
}

.sticker {
    position: absolute;
    height: 100px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6));
    z-index: 150;
}

.floating-text {
    position: absolute;
    top: -333px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #000080;
    text-shadow: 
        2px 2px 0 #add8e6,
        4px 4px 0 #87cefa,
        6px 6px 0 #00bfff,
        8px 8px 0 #1e90ff,
        10px 10px 15px rgba(0,0,0,0.2);
    z-index: 200;
    text-align: center;
    line-height: 1.3;
    max-width: 1000px;
    width: auto;
    letter-spacing: 1px;
    white-space: normal;
    word-break: normal;
}

.wave-char {
    display: inline-block;
    animation: wave 1.8s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-2deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

/* Alert overlay (background dim) */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* Alert box */
.alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: linear-gradient(180deg, #ffe0f0, #ffb3d9);
    border: 4px solid #000;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 0 2px #ff66aa inset;
    z-index: 9999;
    display: none;
    font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    text-align: center;
    padding: 0 0 15px 0;
}

.alert-header {
    background: linear-gradient(180deg, #ff66aa, #ff1493);
    padding: 10px 15px;
    border-radius: 16px 16px 0 0;
    border-bottom: 3px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 0 #660033;
    font-size: 22px;
    font-weight: bold;
}

.alert-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.alert-close {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: white;
    text-shadow: 2px 2px 0 #660033;
    transition: 0.1s;
}

.alert-close:hover {
    transform: scale(1.2);
    color: #ffff00;
}

.alert-content {
    padding: 25px 20px;
    font-size: 20px;
    color: #330033;
    text-shadow: 1px 1px 0 #ffffff;
    margin: 0 10px;
    word-wrap: break-word;
}

.alert-button {
    background: linear-gradient(180deg, #ff99cc, #ff44aa);
    border: 3px solid black;
    border-radius: 40px;
    font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 #990066;
    padding: 8px 30px;
    margin: 10px 0 5px 0;
    cursor: pointer;
    box-shadow: 0 4px 0 #660033;
    transition: 0.1s;
}

.alert-button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #660033;
}

.alert-button:active {
    transform: translateY(4px);
    box-shadow: none;
}

.s1 { top: 47px; left: 28px; transform: rotate(-10deg); }
.s2 { top: -232px; left: 295px; transform: rotate(15deg); }
.s3 { top: -73px; right: 1034px; transform: rotate(-5deg); }
.s4 { bottom: 260px; left: 588px; transform: rotate(8deg); }
.s5 { position: fixed; top: 286px; right: 10px; height: 90px; z-index: 1000; }


        .aesthetic-area {
            position: relative;
            min-height: 1000px;
            margin-top: 40px;
            margin-bottom: 0px;
        }
        .monitor-box {
            position: absolute;
            bottom: 50px;
            right: 30px;
            background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
            border: 4px solid black;
            border-radius: 20px 20px 10px 10px;
            padding: 15px;
            width: 280px;
            box-shadow: 0 10px 15px rgba(0,0,0,0.5);
            z-index: 10;
        }
        .monitor-box::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 20px;
            width: 50px;
            height: 10px;
            background: black;
            border-radius: 5px 5px 0 0;
        }
        .monitor-screen {
            background: #000;
            border: 4px inset #666;
            border-radius: 10px;
            padding: 15px;
            color: #3CE64B;
            font-family: 'Courier New', monospace;
            text-align: center;
        }
        .hit-counter {
            font-size: 40px;
            font-weight: bold;
        }
        .guestbook-link {
            padding: 12px 20px;
            font-size: 28px;
            margin: 15px 0 10px;
            width: auto;
            display: block;
            text-align: center;
            background-image: linear-gradient(180deg, #cc99ff, #9966cc);
            box-shadow: 
                0 0.5rem 0.75rem 0 rgba(102, 0, 153, 0.5),
                0 -0.15rem 1rem rgba(102, 0, 153, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 255, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(255, 255, 255, 0.9) inset;
        }
        .under-construction {
            background: linear-gradient(145deg, #ffff66, #e6e600);
            color: black;
            text-align: center;
            padding: 10px;
            border: 4px solid black;
            border-radius: 20px;
            font-size: 24px;
            animation: blink 1s infinite;
            font-weight: bold;
        }

        .egg-box {
            position: absolute;
            top: -358px;
            right: 80px;
            background: radial-gradient(circle at 30% 30%, #ffd700, #ffa500);
            border: 4px solid black;
            border-radius: 60% 40% 50% 50% / 70% 60% 40% 30%;
            width: 180px;
            height: 220px;
            padding: 15px 10px;
            text-align: center;
            box-shadow: 0 15px 20px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            z-index: 20;
            transform: rotate(4deg);
        }
        .egg-box::after {
            content: '🥚';
            position: absolute;
            top: -10px;
            right: 15px;
            font-size: 24px;
        }
        .egg-box::before {
            content: '🥚';
            position: absolute;
            bottom: -10px;
            left: 15px;
            font-size: 24px;
        }
        .egg-title {
            font-size: 22px;
            font-weight: bold;
            color: #8B4513;
            text-shadow: 2px 2px 0 #ffcc99;
            margin-bottom: 8px;
        }
        .fortune-text {
            font-size: 18px;
            color: #4a1a4a;
            text-shadow: 1px 1px 0 #ffcc99;
            background: transparent;
            border: none;
            padding: 0;
            min-height: 50px;
            cursor: pointer;
            width: 100%;
            word-wrap: break-word;
            line-height: 1.3;
        }

        .game-console {
            position: absolute;
            top: -71px;
            left: 40px;
            background: linear-gradient(180deg, #ffb3d9, #ff80bf);
            border: 6px solid black;
            border-radius: 50px 50px 30px 30px;
            padding: 20px 20px 30px;
            width: 380px;
            box-shadow: 
                0 20px 30px rgba(0,0,0,0.3),
                0 -0.15rem 1rem rgba(179, 0, 112, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 200, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(255, 100, 200, 0.9) inset;
                font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            z-index: 30;
            transform: rotate(-1deg);
        }
        .game-console::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
            pointer-events: none;
            z-index: 1;
        }
        .game-console > * {
            position: relative;
            z-index: 2;
        }
        .game-console h3 {
            font-size: 32px;
            margin: 0 0 15px;
            background: linear-gradient(145deg, #66ccff, #3399ff);
            color: #ff1493;
            text-shadow: 3px 3px 0 #ffff99;
            padding: 5px 15px;
            display: inline-block;
            border-radius: 60px;
            border: 4px solid black;
            box-shadow: 0 8px 12px rgba(0,0,0,0.2);
            transform: rotate(-1deg);
            letter-spacing: 2px;
            font-weight: bold;
        }
        .game-area {
            background: #afeeee;
            border: 6px solid black;
            border-radius: 30px;
            padding: 15px;
            margin: 15px 0;
            height: 150px;
            position: relative;
            cursor: crosshair;
            background-image: linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
            background-size: 20px 20px;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
        }
        .fairy {
            position: absolute;
            width: 40px;
            height: auto;
            cursor: pointer;
            user-select: none;
            transition: left 0.1s, top 0.1s;
            z-index: 10;
        }
        .splat-image, .splat-spider {
            position: absolute;
            width: 80px;
            height: auto;
            pointer-events: none;
            animation: fadeSplat 0.5s ease-out forwards;
            z-index: 20;
        }
        @keyframes fadeSplat {
            0% { opacity: 1; transform: scale(0.7) rotate(0deg); }
            100% { opacity: 0; transform: scale(2) rotate(40deg); }
        }
        .score {
            font-size: 22px;
            margin: 10px 0 15px;
            color: #330033;
            background: linear-gradient(145deg, #99ccff, #66b2ff);
            border: 4px solid black;
            border-radius: 50px;
            padding: 8px 20px;
            display: inline-block;
            box-shadow: 0 8px 12px rgba(0,0,0,0.2);
            font-weight: bold;
            text-shadow: 1px 1px 0 white;
        }
        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff0080;
            box-sizing: border-box;
            font-size: 28px;
            font-weight: bold;
            animation: blink 0.4s infinite;
            text-align: center;
            z-index: 30;
            margin: 0;
            width: 100%;
            height: 100%;
            border-radius: 30px;
        }
        .power-led {
            display: inline-block;
            width: 15px;
            height: 15px;
            background: #00ff00;
            border-radius: 50%;
            border: 2px solid black;
            box-shadow: 0 0 12px #00ff00;
            margin-right: 5px;
            vertical-align: middle;
            animation: pulse 1s infinite;
        }
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        .game-console button, .spider-game button {
            background: linear-gradient(180deg, #ff99cc, #ff44aa);
            border: 3px solid black;
            color: white;
            text-shadow: 2px 2px 0 #990066;
            box-shadow: 0 4px 0 #660033;
        }
        .dpad {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }
        .dpad span {
            width: 30px;
            height: 30px;
            background: linear-gradient(145deg, #ff44aa, #cc0066);
            border: 3px solid black;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 6px 8px rgba(0,0,0,0.2);
        }
        .spider-game {
            position: absolute;
            bottom: 432px;
            left: 596px;
            background: linear-gradient(180deg, #9966cc, #660099);
            border: 6px solid black;
            border-radius: 50px 50px 30px 30px;
            padding: 20px 20px 30px;
            width: 380px;
            box-shadow: 
                0 20px 30px rgba(0,0,0,0.3),
                0 -0.15rem 1rem rgba(102, 0, 153, 0.8) inset,
                0 0.5rem 0.3rem rgba(204, 153, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(153, 51, 204, 0.9) inset;
                font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            z-index: 30;
            transform: rotate(2deg);
        }
        .spider-game::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
            pointer-events: none;
            z-index: 1;
        }
        .spider-game > * {
            position: relative;
            z-index: 2;
        }
        .spider-game h3 {
            font-size: 32px;
            margin: 0 0 15px;
            background: linear-gradient(145deg, #cc99ff, #aa66ff);
            color: #330033;
            text-shadow: 3px 3px 0 #ffccff;
            padding: 5px 15px;
            display: inline-block;
            border-radius: 60px;
            border: 4px solid black;
            box-shadow: 0 8px 12px rgba(0,0,0,0.2);
            transform: rotate(1deg);
            letter-spacing: 2px;
            font-weight: bold;
        }
.spider-area {
    background: #1a0f0f;
    border: 6px solid black;
    border-radius: 30px;
    padding: 15px;
    margin: 15px 0;
    height: 200px;
    position: relative;
    overflow: hidden;
    cursor: none;
    box-shadow: inset 0 0 20px #00000066;
    touch-action: none;   /* ← add this line */
}

        .jar {
            position: absolute;
            font-size: 48px;
            pointer-events: none;
            z-index: 50;
            filter: drop-shadow(2px 4px 6px black);
            transition: left 0.05s linear, transform 0.05s;
            transform: translateX(-50%);
            bottom: 10px;
        }
        @keyframes intenseShake {
            0% { transform: translateX(0) rotate(0deg); }
            10% { transform: translateX(-12px) rotate(-6deg); }
            20% { transform: translateX(12px) rotate(6deg); }
            30% { transform: translateX(-8px) rotate(-4deg); }
            40% { transform: translateX(8px) rotate(4deg); }
            50% { transform: translateX(-4px) rotate(-2deg); }
            60% { transform: translateX(4px) rotate(2deg); }
            70% { transform: translateX(-2px) rotate(-1deg); }
            80% { transform: translateX(2px) rotate(1deg); }
            90% { transform: translateX(-1px) rotate(-0.5deg); }
            100% { transform: translateX(0) rotate(0deg); }
        }
        .cutscene-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 200;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 30px;
            pointer-events: none;
        }
        .cutscene-content {
            text-align: center;
            max-width: 90%;
            padding: 10px;
        }

        .big-jar {
            font-size: 100px;
            position: relative;
            display: inline-block;
        }
        .big-jar.shake {
            animation: intenseShake 0.4s infinite;
            transform-origin: center center;
        }

        .spider-anchor {
            position: absolute;
            top: 50% !important;
            left: 33% !important;
            transform: translate(calc(-50% - 6px), -50%) !important;
            width: 0;
            height: 0;
            pointer-events: none;
        }

        .spider-in-jar {
            width: 55px;
            height: auto;
            display: block;
            transform-origin: center center;
        }

        @keyframes spiderRattle {
            0% { transform: translate(0, 0) rotate(0deg); }
            10% { transform: translate(-4px, -3px) rotate(-5deg); }
            20% { transform: translate(5px, 4px) rotate(6deg); }
            30% { transform: translate(-3px, 2px) rotate(-4deg); }
            40% { transform: translate(6px, -2px) rotate(5deg); }
            50% { transform: translate(-5px, -4px) rotate(-6deg); }
            60% { transform: translate(4px, 3px) rotate(4deg); }
            70% { transform: translate(-2px, 5px) rotate(-5deg); }
            80% { transform: translate(5px, -3px) rotate(6deg); }
            90% { transform: translate(-3px, 2px) rotate(-3deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }
        .spider-in-jar.shake {
            animation: spiderRattle 0.3s infinite !important;
        }

        .cutscene-message {
            font-size: 24px;
            color: gold;
            margin-top: 5px;
            text-shadow: 2px 2px 0 #000;
        }

        .spider-group {
            position: absolute;
            width: 40px;
            height: 60px;
            pointer-events: none;
            z-index: 10;
        }
        .string {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 40px;
            background: white;
            box-shadow: 0 0 4px #cccccc;
            z-index: 11;
        }
        .spider {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            height: 40px;
            width: auto;
            cursor: none;
            z-index: 12;
            pointer-events: auto;
        }
        .love-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 28px;
            color: #ffb3d9;
            text-shadow: 2px 2px 0 #ff1a75, 4px 4px 0 #4a1a4a;
            font-weight: bold;
            z-index: 100;
            white-space: nowrap;
            animation: popFade 2s forwards;
        }
        @keyframes popFade {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
            20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
            40% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            80% { opacity: 1; }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
        }
        .lives {
            display: flex;
            gap: 5px;
            justify-content: center;
            margin-top: 5px;
        }
        .life {
            font-size: 24px;
        }

        .music-player {
            color: white;
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 180px;
            background: transparent;
            border: 4px solid black;
            border-radius: 30px 30px 20px 20px;
            padding: 12px;
            text-align: center;
            box-shadow: 0 6px 10px rgba(0,0,0,0.5);
            z-index: 1000;
            background-image: url('/images/blue_glitter.png');
            background-repeat: repeat;
            background-size: 50px 50px;
        }
        .music-player .radio-title {
            font-size: 20px;
            font-weight: bold;
            color: #ffff99;
            text-shadow: 1px 1px 0 #000080;
            margin-bottom: 8px;

        }
        .music-player .song-info {
            font-size: 14px;
            background: #333366;
            color: #ffff99;
            border-color: #ff44aa;
            border: 2px solid black;
            border-radius: 20px;
            padding: 5px;
            margin: 8px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: bold;
        }
        
        .player-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.player-controls button {
    background: linear-gradient(180deg, #ff44aa, #ff0080);
    border: 2px solid black;
    border-radius: 20px;
    font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    font-size: 18px;
    padding: 6px 15px;
    color: white;
    text-shadow: 1px 1px 0 #33001a;
    cursor: pointer;
    box-shadow: 0 4px 0 #660033;
    transition: 0.1s;
    flex: 1;
}
.player-controls button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #660033;
}

#stopButton {
    background: linear-gradient(180deg, #ff6666, #cc0000);
}

        html {
            overflow-y: scroll;
        }

        * {
            scrollbar-width: auto;
            scrollbar-color: #ff44aa #663399;
        }

        body:hover * {
            scrollbar-color: #ff88cc #663399;
        }

        ::-webkit-scrollbar {
            width: 20px;
        }
        ::-webkit-scrollbar-track {
            background: #663399;
            border-radius: 10px;
            border: 3px solid #ff44aa;
            box-shadow: inset 0 0 8px rgba(255, 68, 170, 0.5);
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(145deg, #ff88cc, #ff44aa);
            border-radius: 10px;
            border: 3px solid white;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.7);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(145deg, #ff44aa, #ff0080);
        }
        ::-webkit-scrollbar-button {
            display: none;
        }

        @font-face {
            font-family: 'Comic Sans MS Custom';
            src: url('/fonts/Comic Sans MS.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        .credits-icon {
            position: fixed;
            bottom: 15px;
            right: 15px;
            z-index: 1000;
            cursor: pointer;
            width: 40px;
            height: 40px;
            object-fit: contain;
            opacity: 0.9;
            transition: transform 0.2s, opacity 0.2s;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
        }
        .credits-icon:hover {
            opacity: 1;
            transform: scale(1.1) rotate(5deg);
        }

        .credits-panel {
            position: fixed;
            bottom: 65px;
            right: 15px;
            width: 300px;
            max-width: calc(100vw - 30px);
            background: #663399;
            border: 4px solid black;
            border-radius: 30px 30px 20px 20px;
            padding: 20px;
            z-index: 1001;
            display: none;
            box-shadow: 0 15px 20px rgba(0,0,0,0.5), inset 0 -5px 10px rgba(255,255,255,0.3);
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            color: white;
        }
        .credits-panel.show {
            display: block;
        }

        .credits-panel .close-credits {
            float: right;
            cursor: pointer;
            color: black;
            font-size: 28px;
            font-weight: bold;
            line-height: 1;
            transition: 0.2s;
            background: white;
            width: 30px;
            height: 30px;
            text-align: center;
            border-radius: 50%;
            border: 2px solid black;
            box-shadow: 0 4px 0 #330033;
        }
        .credits-panel .close-credits:hover {
            background: #ff4444;
            color: white;
            transform: translateY(2px);
            box-shadow: 0 2px 0 #330033;
        }

        .credits-panel h4 {
            color: white;
            margin: 0 0 15px 0;
            border-bottom: 3px solid black;
            padding-bottom: 5px;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 2px 2px 0 #330033;
            background: #ff44aa;
            padding: 8px 15px;
            border-radius: 40px 40px 20px 20px;
            display: inline-block;
            width: auto;
            margin-top: -10px;
        }

        .credits-panel pre {
            color: #ffd700;
            font-size: 14px;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-width: 100%;
            overflow-x: hidden;
            margin-bottom: 15px;
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            background: rgba(0,0,0,0.3);
            padding: 10px;
            border-radius: 15px;
            border: 2px solid black;
        }

        .credits-panel a {
            display: block;
            margin: 10px 0;
            padding: 8px 15px;
            border-radius: 40px;
            font-family: 'Comic Sans MS Custom', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
            font-size: 18px;
            font-weight: bold;
            border: 3px solid black;
            color: white;
            text-shadow: 2px 2px 0 #006666;
            text-decoration: none;
            text-align: center;
            transition: 0.1s;
            cursor: pointer;
            background-image: linear-gradient(180deg, #00ccff, #0099cc);
            box-shadow: 
                0 0.5rem 0.75rem 0 rgba(0, 0, 0, 0.5),
                0 -0.15rem 1rem rgba(0, 204, 255, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 255, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(0, 204, 255, 0.9) inset;
        }
        .credits-panel a:hover {
            background-image: linear-gradient(180deg, #cc99ff, #9966cc);
            box-shadow: 
                0 0.5rem 0.75rem 0 rgba(0, 0, 0, 0.5),
                0 -0.15rem 1rem rgba(153, 102, 204, 0.8) inset,
                0 0.5rem 0.3rem rgba(255, 255, 255, 0.6) inset,
                0 0.15rem 0.3rem 0 rgba(153, 102, 204, 0.9) inset;
            transform: translateY(2px);
        }
        .credits-panel a:visited {
            color: white;
        }

        ::-webkit-scrollbar { width: 16px; }
        ::-webkit-scrollbar-track { background: #ffb6c1; border-radius: 20px; }
        ::-webkit-scrollbar-thumb { background: #ff1493; border-radius: 20px; border: 3px solid #ff69b4; }


        body.has-toolbars .billie-header {
            margin-bottom: 0;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .toolbar-zone {
            z-index: 250;
        }

        .toolbar.search-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
            gap: 8px;
        }

        .toolbar-left, .toolbar-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            min-width: 120px;
        }

        .toolbar-search-wrapper {
            flex: 1;
            display: flex;
            justify-content: center;
            min-width: 0;
            margin-left: 200px;
        }

        .toolbar-search-wrapper .search-bar {
            width: 500px;
            margin: 0 auto;
            flex-shrink: 0;
        }

        .search-spacer {
            height: 400px; 
            width: 100%;
        }

        .toolbar .search-bar {
            margin: 0;
        }

body.has-toolbars .billie-header,
body.has-toolbars .toolbar-zone {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
body.has-toolbars .archived-notice {
    margin-bottom: 0;
}

body.has-toolbars .billie-header {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}


body.has-toolbars .toolbar-zone {
    background: none;
    background-image: none;
    border-top: none;
    border-bottom: none;
    padding: 0;
}

body.has-toolbars .toolbar-zone .toolbar {
    margin: 0;
}

.toolbar.search-toolbar {
    background: linear-gradient(180deg, #7d4b9c, #4d2e6e);
    border-color: #000000 #330033 #330033 #000000;
    color: #ffd700;
}

.toolbar.search-toolbar .toolbar-grip {
    color: #ffd700;
    text-shadow: 1px 1px 0 #000;
}

.toolbar.search-toolbar .toolbar-icon {
    filter: drop-shadow(1px 1px 0 #000);
}

.toolbar.search-toolbar .toolbar-text {
    color: #ffd700; /* yellow text */
    text-shadow: 1px 1px 0 #000;
}

.toolbar.search-toolbar .toolbar-label {
    background: #ffd700;
    color: #4d2e6e;
    border-color: #000;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.2), 0 2px 0 #330033;
}

.toolbar.search-toolbar .toolbar-divider {
    background: #ffd700;
    border-left: 1px solid #4d2e6e;
}

.toolbar.search-toolbar .toolbar-btn {
    background: linear-gradient(180deg, #ffd700, #cc9900);
    color: #4d2e6e;
    border-color: #ffffaa #996600 #996600 #ffffaa;
    text-shadow: 1px 1px 0 #ffffaa;
}

.toolbar.search-toolbar .toolbar-ticker {
    background: #000;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.toolbar.search-toolbar .toolbar-bubble {
    background: #ffd700;
    color: #4d2e6e;
    border-color: #000;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(1) {
    background: linear-gradient(180deg, #ffb3d9, #ff80bf);
    border-color: #ffcce6 #ff44aa #ff44aa #ffcce6;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-grip {
    color: #ff44aa;
    text-shadow: 1px 1px 0 white;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-text {
    color: #660033;
    text-shadow: 0 1px 0 white;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-divider {
    background: #ff80bf;
    border-left: 1px solid #ffcce6;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-btn {
    background: linear-gradient(180deg, #ff80bf, #ff44aa);
    border-color: #ffcce6 #b24d7a #b24d7a #ffcce6;
    color: white;
    text-shadow: 1px 1px 0 #990066;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-label {
    background: linear-gradient(180deg, #ffff99, #ffcc66);
    border-color: #ffaa00;
    color: #663300;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(1) .toolbar-ticker {
    background: #ff5caf;
    color: #ffd700;
    border-color: #ff44aa;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(2) {
    background: linear-gradient(180deg, #99ccff, #3399ff);
    border-color: #cce6ff #0066cc #0066cc #cce6ff;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-grip {
    color: #0066cc;
    text-shadow: 1px 1px 0 white;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-text {
    color: #000080;
    text-shadow: 0 1px 0 white;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-divider {
    background: #3399ff;
    border-left: 1px solid #cce6ff;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-btn {
    background: linear-gradient(180deg, #66b2ff, #0066cc);
    border-color: #cce6ff #004080 #004080 #cce6ff;
    color: white;
    text-shadow: 1px 1px 0 #003366;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-label {
    background: linear-gradient(180deg, #ffff99, #ffcc66);
    border-color: #ffaa00;
    color: #663300;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-ticker {
    background: #663399;
    color: #ffd700;
    border-color: #3399ff;
}
body.has-toolbars .toolbar-zone .toolbar:nth-child(2) .toolbar-bubble {
    background: linear-gradient(180deg, #99ccff, #3399ff);
    border-color: #000080;
    color: white;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) {
    background: linear-gradient(180deg, #b3ffb3, #66cc66);
    border-color: #ccffcc #339933 #339933 #ccffcc;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-grip {
    color: #006600;  /* dark green */
    text-shadow: 1px 1px 0 white;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-text {
    color: #004d00;  /* deep green */
    text-shadow: 0 1px 0 #ccffcc;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-divider {
    background: #66cc66;
    border-left: 1px solid #ccffcc;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-btn {
    background: linear-gradient(180deg, #ff9999, #ff4444);
    border-color: #ffcccc #cc0000 #cc0000 #ffcccc;
    color: white;
    text-shadow: 1px 1px 0 #990000;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-label {
    background: linear-gradient(180deg, #ffff99, #ffcc66);
    border-color: #ffaa00;
    color: #663300;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-ticker {
    background: #339933;  /* green ticker */
    color: #ffff99;
    border-color: #ff44aa;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-alert {
    background: #ff3333;
    color: white;
    border-color: #ffff00;
    animation: pulseRed 1s infinite;
}

body.has-toolbars .toolbar-zone .toolbar:nth-child(3) .toolbar-bubble {
    background: linear-gradient(180deg, #b3ffb3, #66cc66);
    border-color: #006600;
    color: #004d00;
}

@keyframes pulseRed {
    0% { background: #ff3333; }
    50% { background: #ff6666; }
}

.wrapper {
    width: 1400px;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 700px) {
    .jar {
        font-size: 60px !important; /* bigger on mobile */
    }
}
