/* ============================================
   HAMPSTER DANCE AI
   Aesthetic: 1999 GeoCities meets 2026 AI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFFFFF;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🐹</text></svg>'), auto;
    overflow-x: hidden;
}

#page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
}

/* Title */
.title {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 28px;
    color: #FF6600;
    text-shadow: 2px 2px #FFCC00;
    padding: 5px 0;
    margin-bottom: 0;
}

/* Counter bar */
#counter-bar {
    background: linear-gradient(to right, #3366CC, #6699FF, #3366CC);
    color: #FFFFFF;
    text-align: center;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #000066;
    margin: 3px 0;
}

.counter-value {
    font-size: 20px;
    color: #FFFF00;
}

/* The Dance Floor — HERO */
#dance-floor {
    border: 3px dashed #FF6600;
    min-height: 70vh;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 5px;
    position: relative;
    margin: 8px 0;
    /* Subtle dance floor grid pattern */
    background:
        linear-gradient(rgba(255,255,200,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,200,0.3) 1px, transparent 1px),
        #FFFFCC;
    background-size: 30px 30px;
}

/* Individual hamster tile */
.hamster-tile {
    width: 120px;
    text-align: center;
    padding: 5px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.hamster-tile img {
    width: 80px;
    height: auto;
    image-rendering: pixelated;
}

.hamster-tile .hamster-name {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    margin-top: 2px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 10px;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    animation: bubble-fade 8s forwards;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #000;
}

@keyframes bubble-fade {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Dance animations */
.dance-default img {
    animation: dance-bounce 0.5s infinite alternate;
}

.dance-fast img {
    animation: dance-bounce 0.2s infinite alternate;
}

.dance-slow img {
    animation: dance-bounce 1.2s infinite alternate;
}

.dance-spin img {
    animation: dance-spin 1s infinite linear;
}

.dance-moonwalk img {
    animation: dance-moonwalk 2s infinite alternate;
}

.dance-headbang img {
    animation: dance-headbang 0.3s infinite;
}

@keyframes dance-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@keyframes dance-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dance-moonwalk {
    from { transform: translateX(-10px) scaleX(-1); }
    to { transform: translateX(10px) scaleX(-1); }
}

@keyframes dance-headbang {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

/* Activity Feed — floating overlay (right side) */
#activity-feed {
    position: fixed;
    right: 0;
    top: 80px;
    z-index: 100;
    transition: transform 0.3s ease;
}

#activity-feed.collapsed #feed-panel {
    display: none;
}

#feed-panel {
    width: 260px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #444;
    border-right: none;
    border-radius: 5px 0 0 5px;
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#feed-toggle {
    display: block;
    width: 100%;
    background: #CC0000;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    border: 2px solid #990000;
    border-right: none;
    border-radius: 5px 0 0 0;
    cursor: pointer;
    text-align: left;
    letter-spacing: 2px;
}

#feed-toggle:hover {
    background: #DD2222;
}

.feed-toggle-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00FF00;
    border-radius: 50%;
    margin-right: 4px;
    animation: feed-dot-blink 2s infinite;
}

@keyframes feed-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.feed-header {
    background: #CC0000;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    text-align: center;
    letter-spacing: 2px;
}

.feed-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

#feed-entries {
    padding: 4px;
    max-height: calc(50vh - 60px);
    overflow-y: auto;
}

.feed-entry {
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 5px 2px 45px;
    border-bottom: 1px solid #222;
    text-indent: -40px;
}

.feed-entry:last-child {
    border-bottom: none;
}

.feed-time {
    color: #666;
    font-size: 9px;
}

/* Rainbow HR */
.rainbow-hr {
    border: none;
    height: 5px;
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    margin: 15px 0;
}

/* Join section */
#join-section {
    text-align: center;
    padding: 15px;
    background: #EEEEFF;
    border: 2px solid #9999CC;
}

#join-section h2 {
    color: #CC0000;
    font-size: 22px;
    margin-bottom: 10px;
}

#join-section > p {
    font-size: 14px;
    margin: 5px 0 10px 0;
}

/* Tabs — Windows 98 style */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-bottom: 0;
    padding: 0 5px;
}

.tab {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 14px;
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    border-bottom: none;
    cursor: pointer;
    color: #333;
    position: relative;
    top: 2px;
    z-index: 1;
    border-radius: 3px 3px 0 0;
}

.tab:hover {
    background: #D4D0C8;
}

.tab.active {
    background: #FFFFFF;
    border: 2px solid #9999CC;
    border-bottom: 2px solid #FFFFFF;
    color: #000;
    z-index: 3;
}

/* Tab content */
.tab-content {
    display: none;
    text-align: left;
    padding: 15px;
    border: 2px solid #9999CC;
    background: #FFFFFF;
    margin: 0 5px 10px 5px;
    position: relative;
    z-index: 2;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    font-size: 13px;
    margin: 5px 0;
}

.tab-content code {
    background: #E8E8E8;
    padding: 1px 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #CCC;
}

.step-note {
    font-size: 13px;
    margin-top: 8px !important;
    color: #333;
}

.setup-steps {
    font-size: 13px;
    text-align: left;
    padding-left: 20px;
    margin: 5px 0;
}

.setup-steps li {
    margin: 3px 0;
}

.setup-steps code {
    background: #E8E8E8;
    padding: 1px 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #CCC;
}

/* Code block */
.code-block {
    background: #1a1a2e;
    color: #00FF00;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    position: relative;
}

.code-block pre {
    white-space: pre;
    margin: 0;
    padding-right: 55px;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
    font-size: 11px;
    padding: 3px 8px;
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    cursor: pointer;
    color: #333;
}

.copy-btn:hover {
    background: #D4D0C8;
}

.copy-btn:active {
    border-style: inset;
}

.copy-btn.copied {
    background: #66CC66;
    color: #000;
}

/* Join CTA */
.join-cta {
    font-size: 16px;
    margin-top: 10px;
    padding: 8px;
    background: #FFFFCC;
    border: 2px dashed #FF6600;
    color: #333;
}

/* Responsive tabs */
@media (max-width: 600px) {
    .tab {
        font-size: 11px;
        padding: 5px 8px;
    }

    .tab-content {
        margin: 0 0 10px 0;
    }

    .code-block {
        font-size: 11px;
        padding: 10px;
    }

    .code-block pre {
        white-space: pre-wrap;
        word-break: break-all;
    }
}

/* Footer */
#footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #666;
}

#footer marquee {
    color: #FF6600;
    font-size: 14px;
    margin-bottom: 5px;
}

.construction-gif {
    width: 40px;
    height: auto;
    vertical-align: middle;
}

/* Play prompt overlay */
#play-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#play-prompt.hidden {
    display: none;
}

.play-prompt-inner {
    text-align: center;
    color: #FFFFFF;
    font-size: 24px;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}

.play-prompt-inner small {
    color: #FFCC00;
    font-size: 16px;
}

.play-icon {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Poke flash effect */
.poke-flash {
    animation: poke-flash 0.5s ease-out;
}

@keyframes poke-flash {
    0% { filter: brightness(1); }
    25% { filter: brightness(2) hue-rotate(90deg); }
    50% { filter: brightness(1); }
    75% { filter: brightness(2) hue-rotate(180deg); }
    100% { filter: brightness(1); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    width: 100%;
}

.empty-state img {
    width: 60px;
    opacity: 0.5;
    margin-bottom: 10px;
}

/* ============================================
   MUTE BUTTON
   ============================================ */

#mute-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    cursor: pointer;
    color: #333;
    letter-spacing: 1px;
}

#mute-btn:hover {
    background: #D4D0C8;
}

#mute-btn:active {
    border-style: inset;
}

#mute-btn.muted {
    background: #999;
    color: #666;
    border-style: inset;
}

/* ============================================
   HIT COUNTER (old school digit display)
   ============================================ */

#hit-counter {
    text-align: center;
    margin: 12px 0;
}

.hit-label {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 12px;
    color: #666;
}

#hit-counter-digits {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
    margin-left: 4px;
}

.hit-digit {
    display: inline-block;
    width: 18px;
    height: 24px;
    background: #111;
    color: #33FF33;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border: 1px solid #333;
    border-radius: 2px;
    box-shadow: inset 0 0 4px rgba(0, 255, 0, 0.3);
}

/* ============================================
   RETRO BADGES (88x31 style)
   ============================================ */

#retro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 10px 0;
}

.retro-badge {
    width: 88px;
    height: 31px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    image-rendering: pixelated;
}

.badge-notepad {
    background: linear-gradient(180deg, #FFFFCC 0%, #FFFF99 100%);
    color: #333;
    border-color: #999;
}

.badge-netscape {
    background: linear-gradient(180deg, #003366 0%, #006699 100%);
    color: #00FF00;
    border-color: #006699;
}

.badge-geocities {
    background: linear-gradient(180deg, #990099 0%, #660066 100%);
    color: #FFFF00;
    border-color: #CC00CC;
}

.badge-construction {
    background: repeating-linear-gradient(
        45deg,
        #FFD700,
        #FFD700 4px,
        #000 4px,
        #000 8px
    );
    color: #FFF;
    border-color: #000;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.badge-html {
    background: linear-gradient(180deg, #0066CC 0%, #003399 100%);
    color: #FFFFFF;
    border-color: #003399;
}

.badge-y2k {
    background: linear-gradient(180deg, #00CC00 0%, #009900 100%);
    color: #FFFFFF;
    border-color: #006600;
}

.badge-hamster {
    background: linear-gradient(180deg, #FF6600 0%, #CC3300 100%);
    color: #FFFFFF;
    border-color: #993300;
}

/* ============================================
   COUNTER TOTAL (for dancing/total display)
   ============================================ */

.counter-total {
    font-size: 14px;
    color: #CCCCFF;
}

.counter-total .counter-value {
    font-size: 16px;
}

/* ============================================
   DANCE FLOOR OVERFLOW MSG
   ============================================ */

#dance-floor-overflow {
    text-align: center;
    margin: 0 0 10px 0;
}

.overflow-msg {
    font-size: 12px;
    color: #999;
    font-style: italic;
    padding: 4px;
    background: #FFFFF0;
    border: 1px dashed #CCC;
}

/* ============================================
   BROWSE DRAWER (slide-out from left)
   ============================================ */

#browse-drawer {
    position: fixed;
    left: 0;
    top: 0;
    width: 340px;
    height: 100vh;
    background: #F0F0F0;
    border-right: 3px solid #333;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#browse-drawer.open {
    transform: translateX(0);
}

#browse-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

#browse-overlay.open {
    display: block;
}

.browse-drawer-header {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.browse-drawer-close {
    width: 22px;
    height: 20px;
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    color: #000;
    padding: 0;
    font-family: Arial, sans-serif;
}

.browse-drawer-close:hover {
    background: #D4D0C8;
}

.browse-drawer-close:active {
    border-style: inset;
}

/* Browse trigger button (left edge) */
#browse-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    background: linear-gradient(to right, #000080, #0000CC);
    color: #FFFFFF;
    border: 2px solid #000066;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 12px 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#browse-trigger:hover {
    background: linear-gradient(to right, #0000AA, #0000EE);
}

#browse-trigger span {
    display: block;
}

.browse-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.browse-controls {
    background: #C0C0C0;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.browse-controls select {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 4px;
    background: #FFF;
    border: 1px inset #999;
}

#browse-page-info {
    font-size: 11px;
    color: #333;
}

#browse-list {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.browse-row {
    display: flex;
    padding: 4px 10px;
    border-bottom: 1px solid #DDD;
    align-items: center;
    gap: 10px;
}

.browse-row:nth-child(odd) {
    background: #F0F0FF;
}

.browse-row:nth-child(even) {
    background: #FFFFFF;
}

.browse-row:hover {
    background: #FFFFCC;
}

.browse-col-name {
    flex: 2;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browse-col-creator {
    flex: 1.5;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browse-col-level {
    flex: 0.5;
    text-align: center;
    color: #CC6600;
    font-weight: bold;
}

.browse-col-active {
    flex: 1.5;
    color: #999;
    text-align: right;
    font-size: 10px;
}

.browse-col-style {
    flex: 1;
    color: #336699;
    text-align: center;
}

.browse-row-header {
    font-weight: bold;
    background: #D4D0C8 !important;
    border-bottom: 2px solid #999;
    font-size: 10px;
    text-transform: uppercase;
    color: #333;
}

.browse-row-header:hover {
    background: #D4D0C8 !important;
}

.browse-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    background: #C0C0C0;
    border-top: 1px solid #999;
}

.browse-nav-btn {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 4px 12px;
    background: #D4D0C8;
    border: 2px outset #DFDFDF;
    cursor: pointer;
    color: #333;
}

.browse-nav-btn:hover:not(:disabled) {
    background: #E8E8E8;
}

.browse-nav-btn:active:not(:disabled) {
    border-style: inset;
}

.browse-nav-btn:disabled {
    color: #999;
    cursor: default;
    background: #C0C0C0;
}

.browse-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* ============================================
   SEARCH BAR
   ============================================ */

#search-bar {
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    padding: 8px 12px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.search-label {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

#search-input {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 4px 8px;
    border: 2px inset #999;
    background: #FFF;
    flex: 1;
    min-width: 120px;
}

#search-input:focus {
    outline: none;
    border-color: #3366CC;
}

#search-btn {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 14px;
    background: #D4D0C8;
    border: 2px outset #DFDFDF;
    cursor: pointer;
    color: #333;
}

#search-btn:hover {
    background: #E8E8E8;
}

#search-btn:active {
    border-style: inset;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #FFFFFF;
    border: 2px solid #999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-bottom: 1px solid #DDD;
}

.search-result-item:hover {
    background: #FFFFCC;
}

.search-result-item img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.search-result-name {
    font-weight: bold;
    color: #333;
}

.search-result-creator {
    color: #999;
    font-size: 10px;
}

.search-result-style {
    color: #336699;
    font-size: 10px;
    margin-left: auto;
}

.search-no-results {
    padding: 12px;
    text-align: center;
    color: #999;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 12px;
}

.hamster-tile.search-highlight {
    outline: 3px solid #FF6600;
    outline-offset: 2px;
    background: #FFFFAA;
    border-radius: 4px;
}

/* ============================================
   HAMSTER PROFILE MODAL (Windows 98 Style)
   ============================================ */

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win98-window {
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.win98-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.win98-title {
    padding-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win98-close {
    width: 20px;
    height: 18px;
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    font-size: 12px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    color: #000;
    padding: 0;
    font-family: Arial, sans-serif;
}

.win98-close:hover {
    background: #D4D0C8;
}

.win98-close:active {
    border-style: inset;
}

.win98-body {
    padding: 10px;
    background: #FFFFFF;
    border: 2px inset #999;
    margin: 3px;
    overflow-y: auto;
    max-height: calc(90vh - 30px);
}

/* Profile header */
.profile-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #CCC;
}

.profile-gif {
    width: 80px;
    height: auto;
    image-rendering: pixelated;
    border: 2px solid #999;
    background: #FFFFCC;
}

.profile-info h2 {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 20px;
    color: #FF6600;
    margin-bottom: 4px;
}

.profile-meta {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    margin: 2px 0;
}

.profile-bio {
    background: #FFFFF0;
    border: 1px solid #CCC;
    padding: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: italic;
    color: #555;
}

/* Stats row */
.profile-stats {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    text-align: center;
    background: #E8E8FF;
    border: 1px solid #9999CC;
    padding: 6px 4px;
    min-width: 70px;
}

.stat-num {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    display: block;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Activity feed in profile */
.profile-activity-section {
    margin-bottom: 10px;
}

.activity-header {
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.profile-activity-feed {
    background: #000;
    border: 2px inset #999;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.activity-entry {
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 2px 4px;
    border-bottom: 1px solid #222;
}

.activity-entry:last-child {
    border-bottom: none;
}

.activity-time {
    color: #666;
    font-size: 9px;
}

.activity-empty {
    color: #666;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 10px;
    text-align: center;
}

/* Follow section */
.profile-follow-section {
    margin-top: 10px;
}

.follow-header {
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.follow-form {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #F0F0F0;
    border: 1px solid #CCC;
}

.follow-input {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 4px 8px;
    border: 2px inset #999;
    flex: 1;
}

.follow-input:focus {
    outline: none;
}

.follow-btn {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 14px;
    background: #D4D0C8;
    border: 2px outset #DFDFDF;
    cursor: pointer;
    color: #333;
}

.follow-btn:hover {
    background: #E8E8E8;
}

.follow-btn:active {
    border-style: inset;
}

.follow-status {
    padding: 8px;
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 13px;
    color: #009900;
    background: #F0FFF0;
    border: 1px solid #99CC99;
}

/* Clickable hamster tiles */
.hamster-tile {
    cursor: pointer;
}

.hamster-tile:hover {
    background: rgba(255, 102, 0, 0.1);
    border-radius: 4px;
}

/* Responsive profile */
@media (max-width: 500px) {
    .win98-window {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 60px;
    }
}

/* ============================================
   MOBILE RESPONSIVE — Feed & Browse
   ============================================ */

@media (max-width: 768px) {
    #activity-feed {
        position: fixed;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        z-index: 100;
    }

    #feed-panel {
        width: 100%;
        max-height: 40vh;
        border-radius: 5px 5px 0 0;
        border: 2px solid #444;
        border-bottom: none;
    }

    #feed-toggle {
        border-radius: 5px 5px 0 0;
    }

    #browse-drawer {
        width: 100%;
    }

    #browse-trigger {
        top: auto;
        bottom: 60px;
        transform: none;
        writing-mode: horizontal-tb;
        padding: 8px 12px;
        border-radius: 0 5px 5px 0;
    }

    #dance-floor {
        min-height: 60vh;
    }

    .title {
        font-size: 22px;
    }
}

/* ============================================
   BORING APES TRAIT SYSTEM
   ============================================ */

/* Accessories — emoji overlays positioned on top of hamster */
.accessory {
    position: absolute;
    font-size: 16px;
    z-index: 5;
    pointer-events: none;
    line-height: 1;
}

.accessory-hat { top: -8px; left: 50%; transform: translateX(-50%); }
.accessory-crown { top: -10px; left: 50%; transform: translateX(-50%); }
.accessory-sunglasses { top: 12px; left: 50%; transform: translateX(-50%); }
.accessory-bowtie { top: 30px; left: 50%; transform: translateX(-50%); }
.accessory-cape { top: 10px; right: -5px; }
.accessory-party-hat { top: -12px; left: 50%; transform: translateX(-50%) rotate(-15deg); }
.accessory-headband { top: 2px; left: 50%; transform: translateX(-50%); }
.accessory-monocle { top: 10px; right: 8px; }

/* Glow effect — uses drop-shadow for the colored glow */
.hamster-glow img {
    /* glow filter is applied inline via JS using the hamster's hue */
}

/* Trait badge shown in profile */
.profile-traits {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    margin: 2px 0;
}

.trait-tag {
    display: inline-block;
    background: #E8E8FF;
    border: 1px solid #9999CC;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    margin: 1px 2px;
}

/* ============================================
   CHANGELOG BUTTON & MODAL
   ============================================ */

#changelog-trigger {
    position: fixed;
    left: 0;
    bottom: 40px;
    z-index: 101;
    background: linear-gradient(to right, #663399, #9933CC);
    color: #FFFFFF;
    border: 2px solid #442266;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 8px 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

#changelog-trigger:hover {
    background: linear-gradient(to right, #7744AA, #AA44DD);
}

/* Changelog overlay */
.changelog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notepad-style window */
.notepad-window {
    background: #C0C0C0;
    border: 2px outset #DFDFDF;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    width: 560px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.notepad-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.notepad-title {
    padding-left: 4px;
}

.notepad-menubar {
    background: #C0C0C0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 2px 6px;
    border-bottom: 1px solid #999;
    color: #333;
    user-select: none;
}

.notepad-body {
    background: #FFFFFF;
    border: 2px inset #999;
    margin: 2px 3px 3px 3px;
    overflow-y: auto;
    max-height: calc(85vh - 55px);
    padding: 8px;
}

.notepad-content {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================
   TWITTER / FOOTER CREDIT
   ============================================ */

.footer-credit {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.twitter-link {
    color: #663399;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.twitter-link:hover {
    color: #9933CC;
    text-decoration: underline;
}

/* ============================================
   MOBILE — Changelog & Footer
   ============================================ */

@media (max-width: 768px) {
    #changelog-trigger {
        bottom: 10px;
        font-size: 10px;
        padding: 6px 8px;
    }

    .notepad-window {
        width: 100vw;
        max-width: 100vw;
        max-height: 90vh;
    }

    .notepad-content {
        font-size: 11px;
    }
}

/* ============================================
   BEEF ZONE (Diss Battles)
   ============================================ */

#beef-zone {
    margin: 10px 0;
    border: 3px solid #CC0000;
    background: #1a1a1a;
}

.beef-header {
    background: linear-gradient(to right, #CC0000, #FF3300, #CC0000);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 10px;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    text-shadow: 2px 2px #000;
}

.beef-icon {
    font-size: 18px;
}

.battle-card {
    border: 2px solid #333;
    margin: 8px;
    background: #222;
}

.battle-vs {
    display: flex;
    align-items: stretch;
}

.battle-side {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
}

.battle-side.winning {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #FFD700;
}

.battle-hamster-gif {
    width: 60px;
    height: auto;
    image-rendering: pixelated;
}

.battle-name {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 13px;
    font-weight: bold;
    color: #FF6600;
    margin: 4px 0;
}

.battle-diss {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00FF00;
    padding: 4px 8px;
    background: #111;
    border: 1px solid #333;
    margin: 4px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-diss em {
    color: #666;
}

.battle-cheers {
    font-size: 14px;
    color: #FFFF00;
    cursor: pointer;
    padding: 4px;
    margin-top: 4px;
    background: #333;
    border: 1px outset #555;
    display: inline-block;
}

.battle-cheers:hover {
    background: #444;
}

.battle-cheers:active {
    border-style: inset;
}

.battle-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 24px;
    font-weight: bold;
    color: #FF0000;
    text-shadow: 2px 2px #000;
    padding: 0 8px;
    background: #111;
    min-width: 50px;
}

.battle-status {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #999;
    padding: 4px;
    background: #111;
    border-top: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CONGA LINE
   ============================================ */

#conga-section {
    margin: 10px 0;
    border: 3px solid #FF6600;
    background: linear-gradient(to right, #FFCC00, #FF9900, #FFCC00);
    overflow: hidden;
}

.conga-header {
    text-align: center;
    padding: 6px;
}

.conga-banner {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #CC0000;
    text-shadow: 1px 1px #FFFF00;
    letter-spacing: 2px;
}

#conga-track {
    overflow: hidden;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.3);
}

#conga-line {
    display: flex;
    gap: 5px;
    animation: conga-scroll 10s linear infinite;
    width: max-content;
}

@keyframes conga-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.conga-hamster {
    text-align: center;
    width: 80px;
    flex-shrink: 0;
    animation: conga-bounce 0.4s infinite alternate;
}

.conga-hamster img {
    width: 60px;
    height: auto;
    image-rendering: pixelated;
}

.conga-name {
    font-size: 9px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes conga-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

/* ============================================
   CUDDLE PUDDLE
   ============================================ */

#cuddle-puddle {
    margin: 10px 0;
    border: 3px solid #6666AA;
    background: linear-gradient(135deg, #2a2040, #3a3060, #2a2040);
    padding: 10px;
    text-align: center;
}

.cuddle-header {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #AAAAEE;
    text-shadow: 1px 1px #000;
    margin-bottom: 4px;
}

.cuddle-msg {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #8888BB;
    margin-bottom: 8px;
}

#cuddle-hamsters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    min-height: 80px;
}

.cuddle-hamster {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: cuddle-rock 3s ease-in-out infinite alternate;
}

.cuddle-hamster img {
    width: 55px;
    height: auto;
    image-rendering: pixelated;
    filter: grayscale(30%) brightness(0.8);
    opacity: 0.85;
}

.cuddle-name {
    font-size: 8px;
    color: #8888BB;
    white-space: nowrap;
}

.zzz {
    position: absolute;
    top: -8px;
    right: -2px;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 12px;
    color: #AAAAFF;
    animation: zzz-float 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes cuddle-rock {
    from { transform: rotate(-3deg); }
    to { transform: rotate(3deg); }
}

@keyframes zzz-float {
    0% { transform: translateY(0) scale(0.8); opacity: 0.4; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-2px) scale(0.8); opacity: 0.4; }
}

/* ============================================
   HOROSCOPES
   ============================================ */

#horoscope-section {
    margin: 10px 0;
    border: 3px solid #6633AA;
    background: linear-gradient(135deg, #1a0a2e, #2a1a3e, #1a0a2e);
}

.horoscope-header {
    background: linear-gradient(to right, #6633AA, #9944DD, #6633AA);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 10px;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    text-shadow: 1px 1px #000;
}

#horoscope-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 10px;
}

.horoscope-card {
    background: rgba(100, 50, 170, 0.2);
    border: 1px solid #6633AA;
    padding: 8px;
    text-align: center;
}

.horoscope-sign {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    font-size: 14px;
    font-weight: bold;
    color: #DDAAFF;
    margin-bottom: 4px;
}

.horoscope-text {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #CCAAEE;
    line-height: 1.4;
}

/* ============================================
   MOBILE — New Features
   ============================================ */

@media (max-width: 768px) {
    .battle-vs {
        flex-direction: column;
    }

    .battle-divider {
        padding: 4px;
        font-size: 18px;
        min-width: auto;
    }

    #horoscope-list {
        grid-template-columns: 1fr;
    }

    .conga-banner {
        font-size: 14px;
    }
}
