/* Status Cafe Widget */
#statuscafe {
    padding: 0.75rem;
    background: #fff0f5; /* Light Pink Background */
    border: 1px dotted #ffcae9;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    line-height: 1.3;
}

#statuscafe-username {
    margin-bottom: 0.4rem;
    font-weight: normal;
    color: blue;
    display: block;
}

#statuscafe-username a {
    color: blue !important;
    text-decoration: underline;
    font-weight: bold;
}
#statuscafe-username a:hover {
    color: #ff7ca8 !important;
    text-decoration-style: wavy;
}

#statuscafe-content {
    color: #545b8c;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    word-wrap: break-word; /* Prevent overflow */
}

/* Clique Row for grouping images */
.clique-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    text-decoration: none; /* remove underline from gap */
}

/* Override for footer usage */
.footer-badges .clique-row {
    width: auto;
    display: inline-flex;
}

/* Ensure images fit in sidebar row */
.sidebar-clique-vertical .clique-row img {
    height: 22px; /* Smaller height to fit next to button */
    width: auto;
    object-fit: contain;
    max-width: none; /* Override strict width constraints */
}

/* In Pixel Club grid, ensure proper sizing */
.clique-grid .clique-row {
    width: auto;
    display: inline-flex;
}
.clique-grid .clique-row img {
    height: 31px; /* Match standard button height */
    width: auto;
}

/* --- RESET & BASE --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* Added Custom Font */
@font-face {
    font-family: 'Rainy Hearts';
    src: url('rainyhearts.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 3rem;
    min-height: 100vh;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    /* PALETTE: Based on Sailor Moon Image */
    /* 1. Indigo/Blue: #545b8c (Text) */
    /* 2. Gold/Yellow: #eecf88 */
    /* 3. Hot Pink: #ff7ca8 */
    /* 4. Light Pink: #ffeaf2 (Background) */
    /* 5. White */
    color: #545b8c; /* Indigo Text */
    background-color: #ffeaf2; /* Very Light Pink */
    background-image: url('https://i.pinimg.com/1200x/ed/59/4c/ed594ce6095008917fe0086f5f21b67a.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover; 
    background-position: center;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
::selection { background: #ff7ca8; color: white; }

/* Global Scrollbars */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.4); }
::-webkit-scrollbar-thumb { background: #ff7ca8; border: 2px solid #ffeaf2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ff5e92; }

/* Fonts */
.pixel-font { font-family: 'Rainy Hearts', 'VT323', monospace; }
.header-font { font-family: 'Press Start 2P', cursive; }

/* --- LAYOUT --- */
.top-bar {
    height: 4px;
    /* Palette Gradient */
    background: linear-gradient(to right, #545b8c, #ff7ca8, #eecf88, #ff7ca8, #545b8c);
    position: sticky; top: 0; z-index: 50;
}

.main-layout {
    width: 95%; max-width: 1200px; margin: 0 auto; padding: 1rem;
    display: grid; grid-template-columns: 100%; gap: 1.5rem; align-items: start;
}
@media (min-width: 768px) { .main-layout { grid-template-columns: 200px 1fr; } }
@media (min-width: 1024px) { .main-layout { grid-template-columns: 200px 1fr 200px; } }

/* Sidebar Z-Index */
.sidebar-left, .sidebar-right { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    position: relative; 
    z-index: 40; 
}

.content-area { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    min-width: 0; 
    position: relative; 
    z-index: 1; 
    order: -1;
}

@media (min-width: 768px) { 
    .content-area { order: 0; } 
}

/* --- COMPONENTS --- */
.sidebar-box {
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(84, 91, 140, 0.1);
    transition: all 0.2s;
}
.sidebar-box:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }

.box-inner { background: transparent; padding: 0.5rem; position: relative; overflow: hidden; border: 1px dotted rgba(255, 124, 168, 0.5); }

.box-title {
    font-family: 'Press Start 2P', cursive; font-size: 0.6rem; color: #ff7ca8; /* Palette Pink */
    margin: 0 0 0.75rem 0; letter-spacing: 0.1em; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid rgba(238, 207, 136, 0.6); /* Palette Gold */
    padding-bottom: 0.5rem;
}

/* Memory Card Scrollbar */
.memory-list-container { 
    height: 5rem; 
    overflow-y: auto; 
    padding-right: 0.5rem; 
    margin-right: -2px; 
}

.light-scrollbar::-webkit-scrollbar { 
    width: 8px; 
}
.light-scrollbar::-webkit-scrollbar-track { 
    background: rgba(255, 255, 255, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px; 
}
.light-scrollbar::-webkit-scrollbar-thumb { 
    background: #ff7ca8; 
    border: 2px solid rgba(255, 255, 255, 0.8); 
    border-radius: 4px; 
}
.light-scrollbar::-webkit-scrollbar-thumb:hover { 
    background: #ff5e92; 
}

.memory-list { list-style: none; padding: 0; margin: 0; font-size: 1rem; line-height: 1.25; }
.memory-list li { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; opacity: 0.8; cursor: help; }
.memory-list li:hover { opacity: 1; }
.memory-list .arrow { color: #ff7ca8; font-weight: bold; font-family: monospace; font-size: 0.75rem; margin-top: 2px; }
.memory-list .date { color: #7a80b0; font-weight: bold; font-size: 0.9rem; display: block; }

/* Navigation */
.nav-menu { display: flex; flex-direction: column; gap: 0.25rem; }
.menu-button {
    width: 100%; text-align: left; padding: 0.5rem; font-size: 0.8rem;
    font-family: 'Press Start 2P', cursive; background: transparent; border: none;
    border-left: 4px solid transparent; cursor: pointer; transition: all 0.2s;
    color: #545b8c;
    display: block;
}
.menu-button .btn-content { display: flex; align-items: center; gap: 0.5rem; pointer-events: none; }
.menu-button:hover { border-left-color: #ff7ca8; background: rgba(255, 255, 255, 0.5); padding-left: 1rem; color: #ff7ca8; }
.menu-button.active { border-left-color: #ff7ca8; background: rgba(255, 240, 245, 0.6); color: #ff7ca8; padding-left: 1rem; }
.menu-button svg { opacity: 0; transition: opacity 0.2s; }
.menu-button:hover svg, .menu-button.active svg { opacity: 1; }
.insert-coin { margin-top: 1rem; font-size: 0.6rem; text-align: center; color: #eecf88; animation: pulse 2s infinite; font-family: 'Press Start 2P', cursive; text-shadow: 1px 1px 0 #fff; }

/* DROPDOWN MENU */
.dropdown-menu {
    display: none; 
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

.dropdown-menu.open {
    display: flex;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-sub-button {
    display: block; 
    width: 100%;
    padding: 0.5rem 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem; 
    color: #7a80b0;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 124, 168, 0.3);
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-sub-button:last-child {
    border-bottom: none;
}

.menu-sub-button:hover {
    color: #ff7ca8;
    padding-left: 0.5rem; 
    background: rgba(255,255,255,0.6);
}

.menu-sub-button::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('titleicon.gif');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5rem;
    image-rendering: pixelated;
}

/* Extras */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.extra-btn { border: 1px solid; font-size: 1rem; padding: 0.25rem; font-weight: bold; cursor: pointer; font-family: 'Rainy Hearts', 'VT323', monospace; }
.extra-btn.pink { background: rgba(255, 230, 240, 0.9); border-color: #ff7ca8; color: #ff7ca8; }
.extra-btn.blue { background: rgba(230, 235, 255, 0.9); border-color: #545b8c; color: #545b8c; }
.featured-box { background: rgba(255, 255, 255, 0.4); border: 1px solid #d1d5db; padding: 0.5rem; text-align: center; }
.featured-label { font-size: 9px; color: #7a80b0; margin-bottom: 0.25rem; }
.featured-button { width: 100%; height: 2rem; background: rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; font-size: 8px; color: #545b8c; cursor: pointer; }

/* Sidebar Cliques Grid (Old) */
.sidebar-cliques { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 0.5rem; }
.sidebar-clique-img { width: 88px; height: 31px; display: block; image-rendering: pixelated; border: 1px solid rgba(255,255,255,0.5); transition: opacity 0.2s; }
.sidebar-clique-img:hover { opacity: 0.8; }

/* Sidebar Clique Vertical List -> CHANGED TO ROW WRAP */
.sidebar-clique-vertical {
    display: flex;
    flex-direction: row; /* Horizontal flow */
    flex-wrap: wrap;     /* Allow wrap */
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
}
.sidebar-clique-vertical a {
    display: block;
    transition: opacity 0.2s;
}
.sidebar-clique-vertical a:hover {
    opacity: 1;
}
/* Default styling for single button images */
.sidebar-clique-vertical > a > img {
    display: block;
    width: auto;
    height: auto;
    border: 1px solid rgba(255,255,255,0.5);
    image-rendering: pixelated;
}

/* Handle the group of small images specifically */
.sidebar-clique-vertical .clique-row {
    width: auto; /* Shrink to fit */
    display: inline-flex;
}

/* Photo Widget */
.photo-widget { background: rgba(255, 255, 255, 0.5); padding: 0.25rem; padding-bottom: 0.75rem; box-shadow: 4px 4px 0px rgba(84, 91, 140, 0.15); transform: rotate(-1deg); margin-top: 0.5rem; width: 80%; margin-left: auto; margin-right: auto; transition: transform 0.3s; }
.photo-widget:hover { transform: rotate(0deg); }
.photo-frame { background: #545b8c; border: 2px solid #3e4368; padding: 2px; margin-bottom: 0.25rem; }
.photo-img { width: 100%; display: block; filter: sepia(0.2) contrast(1.1); opacity: 0.9; }
.photo-caption { text-align: center; font-size: 8px; font-family: 'Press Start 2P', cursive; color: #545b8c; text-transform: uppercase; letter-spacing: 0.1em; }

/* Header */
.header-frame { 
    height: 8rem;
    width: 100%; overflow: hidden; position: relative; 
    border: 4px solid rgba(255, 255, 255, 0.7); 
    outline: 2px solid rgba(255, 124, 168, 0.5); outline-offset: -2px; 
    cursor: pointer;
}
@media (min-width: 768px) { 
    .header-frame { 
        height: 12rem;
    } 
}

.header-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(to top, rgba(84, 91, 140, 0.4), transparent); 
    z-index: 10; pointer-events: none; 
    transition: background 0.5s ease;
}

.header-img { 
    width: 100%; height: 100%; object-fit: cover; object-position: center; 
    filter: brightness(1.1) contrast(1);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.header-frame:hover .header-img {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.1);
}
.header-frame:hover .header-overlay {
    background: linear-gradient(to top, rgba(84, 91, 140, 0.2), rgba(255, 255, 255, 0.1));
}
.header-frame:hover .main-title {
    text-shadow: 4px 4px 0px #ff7ca8, 0 0 10px #ffeaf2;
    transform: scale(1.05) rotate(-1deg);
}

.header-title-group { position: absolute; bottom: 0.5rem; right: 1rem; z-index: 20; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.main-title { 
    font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: white; 
    text-shadow: 3px 3px 0px #ff7ca8; text-transform: uppercase; margin-bottom: 0.25rem; letter-spacing: 0.05em; 
    animation: pulse 2s infinite; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (min-width: 768px) { .main-title { font-size: 2.5rem; } }

.status-badge { background: rgba(84, 91, 140, 0.8); padding: 2px 8px; color: #ff7ca8; font-family: 'Rainy Hearts', 'VT323', monospace; font-size: 1rem; backdrop-filter: blur(4px); border: 1px solid rgba(255, 124, 168, 0.5); display: flex; gap: 0.5rem; align-items: center; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff7ca8; animation: ping 1s infinite; }

/* Marquee */
.marquee-container { background: #545b8c; color: #eecf88; overflow: hidden; padding: 0.25rem 0; border-top: 2px solid #3e4368; border-bottom: 2px solid #3e4368; font-size: 0.9rem; font-family: 'Rainy Hearts', 'VT323', monospace; text-transform: uppercase; white-space: nowrap; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee-content { display: inline-block; }

/* Main Content */
.content-box { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); padding: 0.25rem; box-shadow: 0 4px 6px -1px rgba(84, 91, 140, 0.05); border: 1px solid rgba(255, 124, 168, 0.4); position: relative; }
.box-inner-large { background: rgba(255, 255, 255, 0.3); padding: 1.25rem; height: 100%; border: 1px solid rgba(255, 230, 240, 0.6); }
@media (min-width: 768px) { .box-inner-large { padding: 1.5rem; } }
.decorative-star { position: absolute; top: 0; right: 0; padding: 1rem; opacity: 0.6; pointer-events: none; animation: spin 8s linear infinite; }
.section-title { font-family: 'Press Start 2P', cursive; font-size: 1rem; color: #ff7ca8; margin-bottom: 1.5rem; border-bottom: 4px double #ffeaf2; display: inline-block; padding-bottom: 0.25rem; display: flex; gap: 0.5rem; align-items: center; }
@media (min-width: 768px) { .section-title { font-size: 1.25rem; } }
.bounce { animation: bounce 1s infinite; }
.title-icon { height: 14px; width: auto; image-rendering: pixelated; }
.prose { font-family: 'Rainy Hearts', 'VT323', monospace; color: #545b8c; font-size: 1.15rem; line-height: 1.5; }
.prose p { margin-bottom: 1.5rem; }
.drop-cap { float: left; font-size: 2.5rem; font-family: 'Press Start 2P', cursive; margin-right: 0.75rem; color: #545b8c; line-height: 1; margin-top: -3px; }
.highlight { color: #ff7ca8; background: rgba(238, 207, 136, 0.3); padding: 0 0.25rem; border: 1px solid rgba(238, 207, 136, 0.5); }
.system-message { padding: 1rem; background: rgba(255, 255, 255, 0.5); border: 2px solid rgba(238, 207, 136, 0.8); text-align: center; margin: 1.5rem 0; position: relative; overflow: hidden; }
.rainbow-bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, #ff7ca8, #eecf88, #545b8c); }
.sys-title { font-family: 'Press Start 2P', cursive; font-size: 10px; color: #7a80b0; margin-bottom: 0.25rem; letter-spacing: 0.2em; text-transform: uppercase; }
.sys-quote { color: #545b8c; font-size: 1.25rem; font-weight: bold; margin: 0; }
.sys-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; animation: bounce 1s infinite; }
.dot.pink { background: #ff7ca8; }
.dot.yellow { background: #eecf88; animation-delay: 0.1s; }
.dot.cyan { background: #545b8c; animation-delay: 0.2s; }
.footer-badges { margin-top: 2rem; padding-top: 1rem; border-top: 2px dotted #d1d5db; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.badge { width: 88px; height: 31px; border: 1px solid white; outline: 1px solid #94a3b8; display: flex; items-align: center; justify-content: center; font-size: 10px; font-family: 'Press Start 2P', cursive; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); align-items: center; }
.badge.orange { background: #fb923c; } .badge.blue { background: #545b8c; } .badge.pink { background: #ff7ca8; } .badge.yellow { background: #eecf88; } .badge.green { background: #22c55e; } .badge.cyan { background: #06b6d4; }

/* Text Link Hover Effect */
.text-link {
    color: #545b8c; /* Base color */
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #ffcae9;
    transition: color 0.2s ease;
}
.text-link:hover {
    color: #ff7ca8; /* Hover color */
    text-decoration-style: wavy;
}

/* --- COUNTER STYLES (NEW) --- */
.visitor-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.visit-card {
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 0 rgba(84, 91, 140, 0.1);
}

/* LCD Style for Total */
.visit-card.total {
    background: #ffeaf2;
    border: 2px solid #ff7ca8;
}

.visit-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #db2777;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
}

.lcd-container {
    background: #2d1b4e; /* Dark Purple */
    color: #ff7ca8; /* Neon Pink */
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    padding: 2px;
    border: 2px inset #4c1d95;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #ff7ca8;
    line-height: 1;
}

/* Online Indicator Style */
.visit-card.online {
    background: #fff;
    border: 2px solid #86efac; /* Green border */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    gap: 4px;
    text-align: center;
}

.online-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem; /* Smaller font to fit */
    color: #15803d;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.visit-card.online img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1s infinite;
    display: inline-block;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- PROFILE PAGE SPECIFICS --- */
.profile-header { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 2px dotted #ff7ca8; padding-bottom: 1.5rem; margin-bottom: 2rem; align-items: center; }
@media (min-width: 768px) { .profile-header { flex-direction: row; align-items: flex-start; } }

.avatar-container { position: relative; flex-shrink: 0; }
.avatar-frame { width: 8rem; height: 8rem; border: 4px solid white; box-shadow: 0 0 0 2px #ff7ca8; overflow: hidden; background: #fff; position: relative; }

@media (min-width: 768px) { 
    .profile-header .avatar-container { width: 180px; }
    .avatar-frame { width: 180px; height: 180px; }
}

.carousel-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .avatar-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1); scroll-snap-align: center; }
.avatar-shine { position: absolute; inset: 0; background: linear-gradient(to top right, rgba(255, 124, 168, 0.1), transparent); pointer-events: none; z-index: 10; }
.avatar-sparkle { 
    position: absolute; 
    bottom: -1.5rem; 
    right: -1.0rem; 
    background: transparent; 
    border: none; 
    padding: 0; 
    box-shadow: none; 
    width: 40px; /* Adjust size */
    height: 40px;
    z-index: 30; 
    pointer-events: none;}
    
    .avatar-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.nav-btn {
    background: #fff;
    border: 1px solid #ff7ca8;
    color: #ff7ca8;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 2px 6px;
    box-shadow: 2px 2px 0 rgba(255, 124, 168, 0.2);
    transition: all 0.1s;
}
.nav-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(255, 124, 168, 0.2);
}



.profile-info { flex: 1; text-align: center; width: 100%; }
@media (min-width: 768px) { .profile-info { text-align: left; } }

/* RESTORED HEADER STYLES */
.profile-name-row { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.5rem; 
    margin-bottom: 0.5rem; 
}
@media (min-width: 768px) { 
    .profile-name-row { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    } 
}

.profile-name { 
    font-family: 'Press Start 2P', cursive; 
    font-size: 1.25rem; 
    color: #ff7ca8; 
    text-shadow: 2px 2px 0px #eecf88; 
    margin: 0; 
}
@media (min-width: 768px) { 
    .profile-name { 
        font-size: 1.5rem; 
    } 
}

.profile-role { 
    font-size: 1rem; 
    font-family: 'Rainy Hearts', 'VT323', monospace; 
    color: #7a80b0; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    background: rgba(255, 255, 255, 0.5); 
    padding: 2px 4px; 
    display: inline-block; 
    margin-bottom: 1rem; 
    border: 1px dashed #ffcae9; 
}

.profile-lvl { 
    background: linear-gradient(to bottom, #ff9eb8, #ff7ca8); 
    color: white; 
    font-size: 0.6rem; 
    padding: 6px 10px; 
    border-radius: 2px; 
    border: 2px solid white; 
    outline: 1px solid #ff7ca8; 
    font-family: 'Press Start 2P', cursive; 
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1); 
    text-shadow: 1px 1px 0 #cc6386; 
}

/* Profile Info Table (Modified) */
.profile-info-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 0 !important ;
    
}

.info-row {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-top: 0;
}

.info-label {
    width: 100px; /* Fixed width for labels */
    flex-shrink: 0;
    border: 2px solid #ff7ca8; /* Pink border */
    background: #fff0f5; /* Very light pink bg */
    color: #545b8c; /* Blue text */
    padding: 4px 8px;
    font-family: 'Rainy Hearts', cursive; /* Header font */
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.info-value {
    flex-grow: 1;
    border: 2px solid #ff7ca8; /* Pink border */
    background: #fff;
    color: #545b8c;
    padding: 4px 8px;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Adjust profile-header layout if needed */
.profile-header {
    align-items: center; /* keep centered vertically if row */
}

@media (min-width: 768px) {
    .profile-info {
        margin-top: 0; }
}

.profile-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { 
    .profile-grid { 
        grid-template-columns: 180px 1fr;
    } 
}

.attr-title { font-family: 'Press Start 2P', cursive; font-size: 0.75rem; color: #ff7ca8; margin-bottom: 0.75rem; border-bottom: 2px solid #ffeaf2; padding-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.stat-bar-group { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-bar-row { display: flex; items-align: center; gap: 0.5rem; font-size: 1rem; font-family: 'Rainy Hearts', 'VT323', monospace; }
.stat-label { width: 3rem; font-weight: bold; color: #7a80b0; }
.bar-container { flex: 1; height: 0.75rem; background: rgba(255, 255, 255, 0.6); border: 1px solid #d1d5db; padding: 1px; }
.bar-fill { height: 100%; opacity: 0.9; }
.bar-fill.red { background: #f87171; } .bar-fill.green { background: #4ade80; } .bar-fill.blue { background: #60a5fa; } .bar-fill.yellow { background: #eecf88; } .bar-fill.pink { background: #ff7ca8; }

.inv-section { margin-top: 1.5rem; }
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.inv-slot { aspect-ratio: 1/1; background: rgba(255, 255, 255, 0.5); border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.inv-slot:hover { background: rgba(255, 240, 245, 0.9); border-color: #ff7ca8; transform: scale(1.05); }
.inv-slot.active { background: rgba(255, 240, 245, 0.9); border-color: #ff7ca8; box-shadow: 0 0 0 2px #ff9eb8; z-index: 10; }
.inv-img { width: 85%; height: 85%; object-fit: contain; pointer-events: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.inv-slot:hover .inv-img { transform: scale(1.15); }

/* Bio Container */
.bio-container { background: transparent; border: none; display: flex; flex-direction: column; min-height: 400px; position: relative; padding: 0.5rem; }
@media (min-width: 768px) {
    .bio-container { height: 400px; }
}

.bio-content { height: 100%; overflow: hidden; font-size: 1rem; color: #545b8c; line-height: 1.6; background: transparent; display: flex; flex-direction: column; }
.bio-scroll-area { overflow-y: auto; flex: 1; padding-right: 5px; margin-top: 0.5rem; }
.bio-scroll-area::-webkit-scrollbar { width: 8px; }
.bio-scroll-area::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
.bio-scroll-area::-webkit-scrollbar-thumb { background: #ff7ca8; border: 1px solid white; border-radius: 4px; }
.bio-scroll-area::-webkit-scrollbar-thumb:hover { background: #ff5e92; }
.tab-content { display: none; height: 100%; flex-direction: column; }
.tab-content.active-tab { display: flex !important; }
.content-header { font-family: 'Press Start 2P', cursive; font-size: 0.75rem; color: white; padding: 6px 8px; border: 1px solid #ffeaf2; margin-bottom: 0; text-transform: uppercase; text-shadow: 1px 1px 0 rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center; width: 100%; flex-shrink: 0; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3), 1px 1px 2px rgba(0,0,0,0.1); }
.content-header.header-default { background: linear-gradient(to right, #ff7ca8, #ff5e92); }
.content-header.header-red { background: linear-gradient(to right, #f87171, #ef4444); }
.content-header.header-blue { background: linear-gradient(to right, #60a5fa, #3b82f6); }
.content-header.header-purple { background: linear-gradient(to right, #a855f7, #7e22ce); }
.content-header::after { content: "X"; background: #e2e8f0; color: black; font-size: 10px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 2px outset white; cursor: default; font-family: sans-serif; font-weight: bold; text-shadow: none; line-height: 1; }
.highlight-text.pink { color: #ff7ca8; } .highlight-text.blue { color: #3b82f6; } .highlight-text.purple { color: #a855f7; }
.blinkies-container { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: rgba(255, 255, 255, 0.3); border: 1px dotted #ff7ca8; margin-top: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.blinkie-img { height: 20px; width: auto; display: block; image-rendering: pixelated; transition: filter 0.2s; cursor: default; }
.blinkie-img:hover { filter: brightness(1.1); }
.favorites-container { margin-top: 1rem; border-top: 2px dotted #ff7ca8; padding-top: 1rem; }
.fav-category-group { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .fav-category-group { grid-template-columns: 1fr 1fr; } }
.fav-row { margin-bottom: 0.5rem; background: rgba(255, 255, 255, 0.3); padding: 0.5rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.4); }
.fav-header { font-family: 'Press Start 2P', cursive; font-size: 0.65rem; color: #ff7ca8; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.5); padding: 4px; width: fit-content; border-radius: 4px; }
.fav-icon { font-size: 1rem; }
.fav-items { display: flex; gap: 4px; flex-wrap: wrap; position: relative; }
.fav-item { width: 40px; height: 56px; position: relative; transition: transform 0.3s ease-out; cursor: help; }
@media (min-width: 768px) { .fav-items { gap: 8px; } .fav-item { width: 50px; height: 70px; } }
.fav-img { width: 100%; height: 100%; object-fit: cover; border: none; outline: none; border-radius: 4px; box-shadow: 2px 2px 0px rgba(255, 124, 168, 0.3); }
.fav-item:hover { transform: scale(1.25) translateY(-3px); z-index: 100; }
.fav-items:hover .fav-item:not(:hover) { filter: grayscale(0.5) blur(0.5px); opacity: 0.7; }
.faves-list { list-style: none; padding: 0; margin: 0; font-size: 1rem; font-family: 'Rainy Hearts', 'VT323', monospace; color: #545b8c; }
.faves-list li { display: flex; flex-direction: column; border-bottom: 1px solid #ffeaf2; padding-bottom: 0.25rem; margin-bottom: 0.25rem; }
.faves-list li:last-child { border: none; }
.fave-label { font-size: 10px; color: #ff7ca8; font-weight: bold; text-transform: uppercase; display: flex; align-items: center; gap: 0.25rem; }
.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.stamp { height: 2rem; border: 1px solid white; box-shadow: 0 1px 1px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
.stamp:hover { transform: scale(1.05); }
.stamp.pink { background: #fff0f5; color: #ff7ca8; } .stamp.blue { background: #e6f0ff; color: #2563eb; } .stamp.purple { background: #f3e8ff; color: #9333ea; } .stamp.yellow { background: #fff3c4; color: #ca8a04; }

.owner-widget { background: rgba(255, 255, 255, 0.4); border: 1px solid #d1d5db; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.fact-display { background: rgba(84, 91, 140, 0.9); backdrop-filter: blur(4px); color: #ff7ca8; font-family: 'Rainy Hearts', 'VT323', monospace; font-size: 1rem; padding: 0.25rem; width: 100%; min-height: 2.5rem; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(255, 124, 168, 0.5); }
.scan-btn { font-family: 'Press Start 2P', cursive; font-size: 8px; background: #ff7ca8; color: white; border: 2px outset #ffeaf2; padding: 4px 8px; cursor: pointer; width: 100%; }
.scan-btn:active { border-style: inset; }

.webring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ring-member { height: 2rem; border: 1px solid rgba(255,255,255,0.4); cursor: pointer; position: relative; transition: filter 0.1s; }
.ring-member:hover { filter: brightness(0.95); }
.ring-member.pink-grad { background: linear-gradient(to bottom right, #fff0f5, #ffcfde); border-color: #ff7ca8; } .ring-member.yellow-grad { background: linear-gradient(to bottom right, #fffde7, #fff3c4); border-color: #fde047; } .ring-member.cyan-grad { background: linear-gradient(to bottom right, #e0faff, #b3f5fc); border-color: #67e8f9; } .ring-member.purple-grad { background: linear-gradient(to bottom right, #f3e8ff, #e9d5ff); border-color: #d8b4fe; }
.ring-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: bold; color: #ff7ca8; opacity: 0; transition: opacity 0.2s; }
.ring-member:hover .ring-hover { opacity: 1; }
.ring-link-container { text-align: center; margin-top: 0.75rem; }
.ring-link { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: #545b8c; text-decoration: none; }
.ring-link:hover { color: #ff7ca8; text-decoration: underline; text-decoration-style: wavy; }
.footer { text-align: center; color: #7a80b0; font-size: 0.75rem; background: rgba(255, 255, 255, 0.2); padding: 0.5rem; border: 1px solid #e5e7eb; }
.construction-box { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(2px); padding: 2rem; border: 1px solid #ff7ca8; text-align: center; color: #ff7ca8; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.construction-box .icon { font-size: 2.5rem; margin-bottom: 1rem; animation: bounce 1s infinite; }
.construction-box h2 { font-family: 'Press Start 2P', cursive; font-size: 1.125rem; margin-bottom: 0.5rem; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(-10%); } 50% { transform: translateY(0); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }


.bio-image-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); /* Fit content or 1fr? 1fr 1fr is safer for alignment */
    justify-content: center;
    gap: 8px;
    margin: 1rem auto;
}

.bio-image-tag {
    display: block;
    height: auto;
    transition: transform 0.2s;
}

.bio-image-tag:hover {
    transform: scale(1.05);
}


/* --- MOBILE NAVIGATION --- */
.mobile-nav-bar {
    display: none; 
}

@media (max-width: 767px) {
    .mobile-nav-bar {
        display: flex; 
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: rgba(255, 240, 245, 0.95);
        backdrop-filter: blur(5px);
        border-top: 2px solid #ff7ca8;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .mob-btn {
        background: none; border: none;
        display: flex; flex-direction: column; align-items: center;
        font-family: 'Press Start 2P', cursive;
        font-size: 8px; color: #545b8c;
        gap: 6px;
        padding: 4px;
        cursor: pointer;
        text-decoration: none; 
    }
    
    .mob-btn:active {
        transform: translateY(2px);
    }

    .mob-btn.active { 
        color: #ff7ca8; 
    }
    
    body { padding-bottom: 5rem; }
}

/* MOBILE DROPDOWN MENU */
.mobile-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 140px;
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(5px);
    border: 2px solid #ff7ca8;
    border-bottom: none;
    flex-direction: column;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 2000;
}

.mobile-dropdown-menu.open {
    display: flex;
    animation: slideUp 0.2s ease-out;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #545b8c;
    text-decoration: none;
    border-bottom: 1px dotted #ffcae9;
    text-align: center;
}

.mobile-dropdown-menu a:hover {
    background: #fff;
    color: #ff7ca8;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NEW FAVORITES GRID SECTION */
.fav-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .fav-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.fav-group {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.fav-label-small {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #ff7ca8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 0 #fff;
}
.fav-label-small::before {
    content: "♥";
    color: #eecf88;
}

.fav-row-images {
    display: flex;
    gap: 4px; 
    justify-content: center; 
}

.fav-mini-img {
    width: 18.5%; 
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid white;
    box-shadow: 2px 2px 0px rgba(84, 91, 140, 0.1);
    transition: all 0.3s ease-out; 
    cursor: default;
    filter: sepia(0.2);
}

.fav-mini-img:hover {
    transform: scale(1.6) translateY(-2px); 
    z-index: 10;
    box-shadow: 0 4px 8px rgba(255, 124, 168, 0.3);
    filter: sepia(0);
    border-color: #ff7ca8;
}

.fav-row-images:hover .fav-mini-img:not(:hover) {
    filter: grayscale(0.5) blur(0.5px);
    opacity: 0.7;
}

/* GUESTBOOK RETRO STYLING */
.retro-guestbook-wrapper {
    background-color: #ffefd5; 
    border: 3px solid #a0552d; 
    padding: 40px; 
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px rgba(160, 85, 45, 0.3);
    background-image: url('https://i.pinimg.com/736x/7d/e5/36/7de53649f2556ae07a4dff1e1d017f63.jpg'); 
    background-repeat: repeat;
}

.retro-guestbook-inner {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #a0552d;
    padding: 5px;
}

/* MLBB Heroes Section */
.mlbb-section {
    border: 2px dotted #ff7ca8; 
    background-color: #fff0f5; 
    border-radius: 12px;
    padding: 1rem; 
    margin-top: 2rem;
    position: relative;
    margin-bottom: 1rem;
    box-shadow: 
        inset 0 0 0 4px #fff0f5, 
        0 4px 0 rgba(255, 124, 168, 0.2);
}

.mlbb-header {
    text-align: center;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1.25rem;
    color: #db2777;
    margin-bottom: 1.5rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 1px 1px 0 #fff;
}

.mlbb-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; 
}

.mlbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 1; 
}

.mlbb-item:hover {
    transform: translateY(-5px);
    z-index: 50; 
}

.mlbb-sprite {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated; 
    filter: drop-shadow(2px 2px 0 rgba(255,124,168,0.3));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
    transform-origin: center center;
}

.mlbb-item:hover .mlbb-sprite {
    filter: drop-shadow(0 0 10px rgba(255,124,168,0.6)) brightness(1.1); 
    transform: scale(1.6) rotate(-12deg); 
}

.mlbb-id {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #db2777;
    margin-top: 0.25rem;
    background: rgba(255,255,255,0.6);
    padding: 2px 4px;
    border-radius: 4px;
}

.mlbb-name {
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1rem;
    color: #831843;
    font-weight: bold;
}

/* ART GALLERY STYLES */
.art-status-board {
    background: #fff0f5;
    border: 2px dashed #ff7ca8;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    border-radius: 8px;
}
.art-status-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.status-item {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #545b8c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-indicator {
    padding: 2px 6px;
    color: white;
    border-radius: 4px;
}
.status-open { background: #4ade80; }
.status-closed { background: #f87171; }
.status-ask { background: #fb923c; }

/* REFINED NEAT GALLERY (My Arts) */
.gallery-section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #ff7ca8;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcae9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.neat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.neat-card {
    background: white;
    border: 2px solid #ffcae9;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.neat-card:hover {
    transform: translateY(-5px);
    border-color: #ff7ca8;
    box-shadow: 0 5px 15px rgba(255, 124, 168, 0.2);
}

.neat-card-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #fce7f3;
}

.neat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.3s;
}

.neat-card:hover .neat-card-img {
    transform: scale(1.1);
}

.neat-card-info {
    margin-top: 0.75rem;
    text-align: center;
}

.neat-card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #db2777;
    margin-bottom: 0.25rem;
}

.neat-card-date {
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* NEW: PIXEL ART SPECIFIC GRID STYLE */
.pixel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem; 
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.5); 
    padding: 1rem;
    border: 2px dashed #ffcae9;
    border-radius: 8px;
}

.pixel-card {
    background: transparent;
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pixel-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.pixel-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain; 
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.pixel-card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #545b8c;
    text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 2px 4px;
    border-radius: 4px;
}

/* SHELF STYLES (Bookcase/Toybox) */
.bookcase {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 34px solid transparent;
    /* Use stretch to prevent duplication on wide screens */
    border-image: url('https://hillhouse.neocities.org/_images/pixels/tea/afternoontea-curio.png') 34 stretch;
    image-rendering: pixelated;
    position: relative;
    
    background-color: #ffeaf2; 
    background-image: repeating-linear-gradient(
        to right,
        #ffcce0,
        #ffcce0 2px,
        #ffeaf2 2px,
        #ffeaf2 4px
    );
    background-clip: padding-box;
    /* Removed box-shadow as requested */
    box-shadow: none; 
    margin: 40px 0;
}

.shelf {
    height: 160px; 
    padding: 10px 20px 0 20px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden; 
    border-bottom: 6px solid #ff7ca8; 
    box-shadow: 0 1px 0 rgba(255,255,255,0.5); 
}

.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: #db2777; border: 2px solid #ff7ca8; border-radius: 4px; }
.shelf::-webkit-scrollbar-track { background: rgba(255,255,255,0.3); }

.shelf-item {
    width: auto; 
    max-width: 150px; 
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.2s;
    cursor: help;
    filter: drop-shadow(0 4px 2px rgba(0,0,0,0.4));
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.shelf-item:hover {
    transform: translateY(-8px) scale(1.1);
    z-index: 20;
    filter: drop-shadow(0 8px 4px rgba(0,0,0,0.5));
}

/* Mobile Shelf Adjustments */
@media (max-width: 767px) {
    .shelf {
        height: 120px; /* Reduced shelf height for mobile */
        gap: 10px;
        padding: 10px;
    }
    
    .shelf-item {
        max-width: 80px; /* Smaller items on mobile */
        max-height: 90px;
    }
}

/* ART TABS (My Arts) */
.art-tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px dotted #ffcae9;
    padding-bottom: 1rem;
}

.art-tab-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background: transparent;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #545b8c;
    transition: all 0.2s;
    position: relative;
}

.art-tab-btn:hover {
    color: #ff7ca8;
    transform: translateY(-2px);
}

.art-tab-btn.active {
    background: #fff0f5;
    border: 2px solid #ff7ca8;
    color: #db2777;
    box-shadow: 4px 4px 0 #ffcae9;
}

.art-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.art-tab-content.active-art-tab {
    display: block;
}

/* COLLECTION TABS (Reused Art Tab Logic) */
.collection-tab-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background: transparent;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #545b8c;
    transition: all 0.2s;
    position: relative;
}

.collection-tab-btn:hover {
    color: #ff7ca8;
    transform: translateY(-2px);
}

.collection-tab-btn.active {
    background: #fff0f5;
    border: 2px solid #ff7ca8;
    color: #db2777;
    box-shadow: 4px 4px 0 #ffcae9;
}

.collection-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.collection-tab-content.active-collection-tab {
    display: block;
}

/* Oekaki Link */
.oekaki-btn {
    display: block;
    background: linear-gradient(to right, #ff9eb8, #ff7ca8);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border: 2px outset #ffcae9;
    text-shadow: 1px 1px 0 #db2777;
    transition: all 0.2s;
}
.oekaki-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Windows Container (Start Page) */
.retro-window {
    background: #fff;
    border: 2px solid #ff7ca8;
    box-shadow: 4px 4px 0 rgba(255, 124, 168, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.retro-window:hover {
    transform: translateY(-2px);
    z-index: 5;
}

.window-header {
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid white; 
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.pink-window .window-header {
    background: linear-gradient(to right, #ff7ca8, #ff5e92);
    border-bottom-color: #db2777;
}

.blue-window .window-header {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    border-color: #2563eb;
}

.blue-window {
    border-color: #60a5fa;
    box-shadow: 4px 4px 0 rgba(96, 165, 250, 0.2);
}

.win-btns {
    letter-spacing: 2px;
    cursor: default;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 10px;
}

.window-body {
    height: 120px; 
    overflow-y: auto;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
}

/* Sidebar Windows Popup Style */
.sidebar-window {
    margin-bottom: 1rem;
    border-width: 2px;
}

.sidebar-window .window-header {
    padding: 2px 4px;
}

.sidebar-window .win-title {
    font-size: 0.55rem;
}

.sidebar-window .window-body {
    height: auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85);
}

/* Cliques Styles */
.clique-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.clique-item img {
    display: block;
    border: none;
    transition: opacity 0.2s;
}
.clique-item:hover img {
    opacity: 0.8;
}

/* Webring Styles */
.webring-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1rem;
    color: #545b8c;
}

.webring-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted #ffcae9;
    padding-bottom: 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.webring-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.webring-list a {
    color: #545b8c;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}
.webring-list a:hover {
    color: #ff7ca8;
    text-decoration: underline;
    text-decoration-style: wavy;
}

.ring-nav {
    font-size: 0.8rem;
    margin-top: 2px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
}
.ring-nav a {
    font-size: 0.5rem;
    color: #9ca3af;
}
.ring-nav a:hover {
    color: #ff7ca8;
}



/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%; 
}
@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns */
    }
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bento-box {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(84, 91, 140, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-title {
   background: #ff7ca8; /* Pink BG */
    color: #fff; /* White Text */
    text-shadow: 1px 1px 0 #db2777;
    text-align: center;
    font-family: 'Rainy Hearts', cursive;
    font-size: 1.2rem;
    padding: 8px;
    font-weight: bold;
    text-transform: lowercase;
}

/* Currently Box Specifics */
.currently-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 2px solid #ff7ca8; /* Pink border */
    border-radius: 6px;
    margin: 8px;
}

.currently-row {
    display: flex;
    gap: 4px;
}

.c-label {
    background: #0ea5e9; /* Sky blue */
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    padding: 8px 4px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.c-val {
    background: #e0f2fe; /* Light blue */
    color: #0369a1;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1rem;
    padding: 4px 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Scrollable Lists */
.scroll-box {
    padding: 10px;
    overflow-y: auto;
    max-height: 200px;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 1.1rem;
    color: #545b8c;
    line-height: 1.4;
}
/* Custom scrollbar for bento boxes */
.scroll-box::-webkit-scrollbar { width: 6px; }
.scroll-box::-webkit-scrollbar-thumb { background: #ff7ca8; border-radius: 3px; }
.scroll-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.5); }

.fact-list {
    margin: 0;
    padding-left: 1rem;
    list-style: square;
}
.fact-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem; /* Space for icon */
    position: relative;
    list-style-type: none !important; /* Force no dot on LI */
}

.fact-list li::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 5px; /* Adjusted alignment */
    width: 14px;
    height: 14px;
    background-image: url('listicon.gif');
    background-size: contain;
    background-repeat: no-repeat;
}


/* Grids for Games/CDs */
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
}
.shelf-img {
    width: 100%;
    aspect-ratio: 2/3; /* Covers */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid white;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    transition: transform 0.2s;
    image-rendering: pixelated;
}
.shelf-img:hover { transform: scale(1.1); z-index: 10; }

/* Pets */
.pets-bento {
    overflow: visible !important;
}

.pets-bento .bento-title {
    border-radius: 8px 8px 0 0;
}

.pets-bento .pets-container {
    overflow: visible !important;
}

.pets-bento .pet-controls {
    border-radius: 0 0 8px 8px;
}


.pet-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 2px 2px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px dotted #ffcae9;
}

.pet-action-btn {
    background: #fff;
    border: 1px solid #ff7ca8;
    color: #ff7ca8;
    font-family: 'Rainy Hearts', cursive;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(255, 124, 168, 0.2);
    transition: all 0.1s;
}

.pet-action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(255, 124, 168, 0.2);
}

.pet-action-btn:hover {
    background: #ff7ca8;
    color: white;
}


.pets-container {
    position: relative;
    height: 100px; /* Play area height */
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    border-top: 2px solid #ffcae9;
}

/* --- VIRTUAL PETS --- */


.pet-unit {
    position: absolute;
    width: 48px; /* Base size */
    height: auto;
    cursor: pointer;
    transition: top 2s ease-in-out, left 2s ease-in-out;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-unit:hover {
    z-index: 10; /* Bring to front on hover */
}

.pet-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s;
}

.pet-unit:active .pet-img {
    transform: scale(0.9) translateY(2px);
}

/* Speech Bubble */
.pet-bubble {
    position: absolute;
    bottom: 100%; /* Above the pet */
    left: 50%;
    transform: translateX(-50%) scale(0); /* Hidden by default */
    background: #fff;
    border: 2px solid #ff7ca8;
    border-radius: 8px;
    padding: 4px 8px;
    font-family: 'Rainy Hearts', 'VT323', monospace;
    font-size: 12px;
    color: #545b8c;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 4px;
    z-index: 20;
}

.pet-bubble.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Bubble Triangle */
.pet-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ff7ca8 transparent transparent transparent;
}

/* Bio Container */
.bio-container { background: url('https://i.pinimg.com/736x/35/ba/5d/35ba5df38be61ae4ee748e682364ee57.jpg'); border: none; display: flex; flex-direction: column; min-height: 400px; position: relative; padding: 0; }
@media (min-width: 768px) {
    .bio-container { height: 400px; }
}

/* MLBB HEROES GRID (Art Page) */
.mlbb-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mlbb-hero-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #ffcae9;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mlbb-hero-card:hover {
    transform: translateY(-4px);
    border-color: #ff7ca8;
    background: rgba(255, 240, 245, 0.8);
    box-shadow: 0 4px 8px rgba(255, 124, 168, 0.2);
}

.hero-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid white;
    background: white;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mlbb-hero-card:hover .hero-img {
    transform: scale(1.1);
}

.hero-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #db2777;
    text-align: center;
    margin-top: 2px;
}



/* --- DOLLZ RETRO LAYOUT (Art Page) --- */
.doll-layout-container {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 3px solid #ffcae9; /* Outer pink border */
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Verdana', sans-serif; /* Classic web font */
}

@media (min-width: 768px) {
    .doll-layout-container {
        flex-direction: row;
        min-height: 800px;
    }
}

/* Left Sidebar */
.doll-sidebar {
    width: 100%;
    background: linear-gradient(to bottom, #fff0f5, #ffe4e1);
    border-right: 3px solid #ffcae9;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .doll-sidebar {
        width: 220px;
        flex-shrink: 0;
    }
}

/* Login Box Mockup */
.doll-login-box {
    border: 1px solid #ff69b4;
    padding: 5px;
    background: #fff;
    margin-bottom: 10px;
    display: flex;
    gap: 2px;
    align-items: center;
}
.doll-input {
    width: 100%;
    border: 1px solid #ccc;
    font-size: 10px;
    padding: 2px;
}
.doll-login-btn {
    background: #ff69b4;
    color: white;
    border: 1px solid #db2777;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
}

/* Sidebar Links */
.doll-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #db2777;
    text-decoration: underline;
    margin-bottom: 4px;
}
.doll-nav-item:hover {
    color: #ff0000;
}
.doll-heart-icon {
    color: #ff69b4;
    font-size: 12px;
}
.doll-flag-icon {
    width: 16px;
    height: 11px;
    display: inline-block;
    background: #ccc; /* Placeholder */
    margin-left: auto;
}

/* Categories */
.doll-cat-header {
    font-size: 11px;
    font-weight: bold;
    color: #000080; /* Navy blue like reference */
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}
.doll-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 5px;
}
.doll-cat-link {
    display: block;
    font-size: 11px;
    color: #000;
    font-weight: bold;
    padding: 2px 0;
    text-decoration: none;
}
.doll-cat-link:hover {
    background: #ffcae9;
    color: #db2777;
}

/* Main Content Area */
.doll-content {
    flex: 1;
    padding: 15px;
    background: #ffffff;
}

.doll-main-title {
    text-align: center;
    color: #ff1493; /* Deep pink */
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
}
.doll-subtitle {
    text-align: center;
    color: #4682b4; /* Steel blue */
    font-size: 11px;
    margin-bottom: 15px;
}

/* Rules List */
.doll-rules {
    font-size: 11px;
    color: #c71585; /* Medium Violet Red */
    line-height: 1.4;
    margin-bottom: 20px;
}
.doll-rules ol {
    margin: 0;
    padding-left: 20px;
}
.doll-rules li {
    margin-bottom: 2px;
}
.doll-rules strong {
    text-decoration: underline;
}

/* Section Header Bar */
.doll-section-bar {
    background: #fff0f5;
    border-top: 1px solid #ffcae9;
    border-bottom: 1px solid #ffcae9;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 20px;
}
.doll-section-heart {
    width: 16px;
    height: 16px;
    background: #ff69b4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    border: 1px solid #db2777;
}

/* Gallery Display */
.doll-display-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.doll-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.doll-img {
    max-width: 100%;
    height: auto;
    display: block;
}
.doll-caption {
    font-size: 10px;
    color: #888;
    text-align: center;
}

/* Old Style Row (for the bottom part of reference) */
.doll-row-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

/* --- END DOLLZ LAYOUT --- */


/* --- MOBILE PROFILE ADJUSTMENTS --- */
@media (max-width: 767px) {
    /* Reduce gaps in main layout */
    .profile-grid {
        gap: 1rem;
    }
    
    /* Compact Profile Header */
    .profile-header {
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .avatar-frame {
        width: 140px;
        height: 140px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-lvl {
        font-size: 0.5rem;
        padding: 4px 6px;
    }
    
    /* Adjust Info Table */
    .info-label {
        width: 80px;
        font-size: 0.9rem;
        padding: 4px;
    }
    
    .info-value {
        font-size: 0.9rem;
        padding: 4px;
    }
    
    /* Compact Bento Grid */
    .bento-grid {
        gap: 0.75rem;
    }
    
    /* Adjust Bio Container */
    .bio-container {
        min-height: auto; /* Let it grow with content */
        height: auto;
        padding: 0;
    }
    
    .bio-scroll-area {
        max-height: 300px; /* Limit height on mobile if needed */
    }
    
    /* Adjust Inventory Grid */
    .inv-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4 cols but smaller */
        gap: 4px;
    }
    
    /* Adjust Stats */
    .stat-label {
        width: 2.5rem;
        font-size: 0.8rem;
    }
    
    /* Adjust Favorites Grid */
    .fav-grid-2col {
        gap: 1rem;
    }
    
    .fav-mini-img {
        width: 18%; /* Slightly smaller to fit 5 in row */
    }
}

.bio-image-tag:hover {
    transform: scale(1.05);
}