body {
    background-color: #ff9933;
    background-image: url('https://pinimg.com');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* FIX: Uses your device's built-in blocky fonts with crisp pixel settings */
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    font-weight: 700; /* Forcing bold makes system monospace look blocky like arcade text */
    font-size: 0.95rem; 
    
    color: #4a2200;
}

/* --- BRIGHT GADGET CONSOLE INTERFACE DESIGN SYSTEM --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ff9933;
    background-image: url('https://i.pinimg.com/736x/21/4f/a5/214fa513f0de46d95f0e6c080ccdd6aa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Century Gothic", "Segoe UI", Arial, sans-serif;
    color: #4a2200;
}

/* --- THE RUNTIME VIEWPORT COMPONENT --- */
.myscene-workspace-grid {
    display: grid;
    grid-template-columns: 180px 1fr !important;
    gap: 30px;
    max-width: 100% !important; 
    width: 100%;
    padding: 20px 30px 20px 0px !important; 
    align-items: start;
}

/* --- LEFT SIDEBAR: TRANSLUCENT RADAR BUTTONS --- */
.left-game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 0;
    margin: 0;
    background: transparent;
}

.side-tab {
    display: block;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 14px 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-left: none !important;
    border-radius: 0px 20px 20px 0px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1), inset 0 2px 6px rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    width: 100%;
    margin-left: 0 !important;
}

/* COLOR MATRIX: Translucent glass overlays matching your original color palette */
.tab-blue   { background: rgba(75, 163, 227, 0.45) !important; color: #ffffff !important; }
.tab-orange { background: rgba(255, 158, 34, 0.45) !important; color: #ffffff !important; }
.tab-pink   { background: rgba(224, 67, 138, 0.45) !important; color: #ffffff !important; }
.tab-cyan   { background: rgba(38, 203, 214, 0.45) !important; color: #ffffff !important; }
.tab-green  { background: rgba(57, 204, 118, 0.45) !important; color: #ffffff !important; }

/* Interactive Hover updates */
.side-tab:hover {
    transform: translateX(12px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 5px 6px 18px rgba(0, 0, 0, 0.18), inset 0 4px 12px rgba(255,255,255,0.6);
}
.tab-blue:hover   { background: rgba(75, 163, 227, 0.75) !important; }
.tab-orange:hover { background: rgba(255, 158, 34, 0.75) !important; }
.tab-pink:hover   { background: rgba(224, 67, 138, 0.75) !important; }
.tab-cyan:hover   { background: rgba(38, 203, 214, 0.75) !important; }
.tab-green:hover  { background: rgba(57, 204, 118, 0.75) !important; }


/* --- CENTER DISPLAY: BRIGHT COCONUT CONSOLE PANELS --- */
.desktop-interactive-zone {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0;
}

.panel, .game-screen {
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px; 
    padding: 0px; 
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(255, 115, 0, 0.15), 
                inset 0 1px 0 rgba(255,255,255,0.8),
                0 4px 8px rgba(230, 90, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.panel:hover, .game-screen:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 45px rgba(255, 115, 0, 0.25), 
                inset 0 2px 0 rgba(255,255,255,0.9),
                0 6px 12px rgba(230, 90, 0, 0.15);
}

/* FIX: Scrubbed black line, brightened to a pop-neon electric orange split-gloss bar */
.game-screen h2 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    
    /* 2000s Pop Orange Liquid Gel Bar */
    background: linear-gradient(180deg, #ffaa44 0%, #ff7700 50%, #ff5500 50%, #e64400 100%);
    padding: 12px 15px;
    text-transform: uppercase;
    
    /* Replaced black outline with a glossy white light reflection boundary line */
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(150, 40, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Glowing electronic element status bulb dot */
.game-screen h2::before {
    content: "●";
    color: #33ff33; 
    text-shadow: 0 0 6px #33ff33, 0 0 12px #33ff33;
    font-size: 0.8rem;
}

.game-screen p {
    line-height: 1.5;
    padding: 15px 15px 5px 15px;
    font-size: 0.85rem;
    color: #4a2200;
    font-weight: 600;
}


/* --- INTERNAL GAME UI OBJECT COMPONENTS --- */

.spy-profile {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.3);
    border-radius: 14px;
    padding: 10px;
    margin: 10px 15px 15px 15px;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}
.spy-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Input Fields adjusted to drop harsh styling and match fluid orange borders */
.guestbook-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px 15px 15px;
}
.guestbook-box input, .guestbook-box textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #ff7700;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    color: #4a2200;
    font-weight: bold;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.guestbook-box input:focus, .guestbook-box textarea:focus {
    border-color: #ff5500;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255,119,0,0.25), inset 0 2px 4px rgba(0,0,0,0.05);
}

/* 3D Action Push Buttons revised with orange tones instead of dark red textures */
.submit-btn {
    background: linear-gradient(180deg, #ff8822 0%, #ff5500 100%);
    color: white;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0px #cc4400, 0 4px 10px rgba(255, 115, 0, 0.2);
    transition: transform 0.05s, box-shadow 0.05s;
    align-self: flex-start;
}
.submit-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #cc4400, 0 2px 5px rgba(255, 115, 0, 0.2);
}

/* Inventory Item Grid Units */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 15px 15px 15px;
}
.item-slot {
    aspect-ratio: 1.2;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #ff5500;
    text-transform: uppercase;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.item-slot:hover {
    background: #ffffff;
    border-color: #ff7700;
    color: #ff7700;
    transform: scale(1.04);
}


/* --- GLOBAL HEADER WRAPPER STRUCTURES --- */
.top-everything-bar {
    background: #ff3b6c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    margin-bottom: -2px;
}
.myscene-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px 50px 20px 40px; 
    box-shadow: 0 8px 32px rgba(255, 115, 0, 0.1), inset 0 4px 10px rgba(255, 255, 255, 0.5);
}
.top-capsule-nav a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    color: #cc0066;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 68, 119, 0.4);
    border-radius: 20px;
    text-transform: lowercase;
    transition: all 0.2s;
}
.top-capsule-nav a:hover, .top-capsule-nav a.active-page {
    background: linear-gradient(135deg, #ff4477, #e6006f);
    color: #ffffff !important;
    border-color: #ffffff;
}
.mission-ribbon-banner {
    background: linear-gradient(90deg, #b8235a, #80133c);
    color: #ffffff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px 35px 20px 40px;
}
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Pixel scrollbar parameters */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: rgba(255, 230, 204, 0.5); backdrop-filter: blur(5px); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ff4477, #e6006f); border: 2px solid #ffffff; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #ff9429, #ff5500); }


/* --- HOVER IMAGE OVERLAY UI STYLES --- */

/* The outer box box tracking relative grid coordinates */
.avatar-container {
    width: 85px;
    height: 135px;
    background: linear-gradient(180deg, #fff0e6 0%, rgba(255,255,255,0.2) 100%);
    border: 2px solid #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    flex-shrink: 0;
    
    /* CRITICAL: Keeps absolute sub-layers bound inside this exact window size */
    position: relative; 
    cursor: pointer;
}

/* Ensure the character portrait image scales up cleanly */
.base-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform 0.3s ease;
}

/* THE HOVER OVERLAY: Turns into a frosted target screen on mouse approach */
.avatar-screen-overlay {
    position: absolute; /* Floating directly above the base portrait */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 2000s Pop Hot-Pink Translucent Screen Shade Layer */
    background: rgba(230, 0, 110, 0.45); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Hidden by default until hovered */
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Stops block element hover conflicts */
}

/* TRIGGER ACTION: Activates the overlay graphic and scales portrait on approach */
.avatar-container:hover .avatar-screen-overlay {
    opacity: 1;
}
.avatar-container:hover .base-avatar-img {
    transform: scale(1.08) rotate(1deg); /* Slight game-like bounce zoom */
}

/* --- OVERLAY DETAILED ELECTRONICS DECORATIONS --- */

/* Tech readout text centered on screen */
.scan-matrix-text {
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 4px #ff3b6c, 0 0 8px #ffffff;
    animation: textBlink 0.6s infinite alternate;
}

/* Moving green scanning electronic laser bar line */
.radar-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #33ff33;
    box-shadow: 0 0 8px #33ff33;
    animation: radarSweep 1.8s linear infinite;
}

/* KEYFRAMES: Text flashing telemetry */
@keyframes textBlink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* KEYFRAMES: Radar scanning up and down */
@keyframes radarSweep {
    0% { top: 0%; }
    50% { top: 95%; }
    100% { top: 0%; }
}
/* --- HOVER IMAGE OVERLAY UI STYLES --- */

//* --- THE CHUNKY AVATAR DISPLAY SCREEN CONTAINER FIX --- */
.avatar-display-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    /* Adds safety internal padding to force content down away from the header bar */
    padding-bottom: 20px !important; 
}

.avatar-container {
    width: 220px;
    height: 280px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px solid #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.4);
    
    /* FIX: Forces a crisp 20px margin gap separating the image box from the orange title bar */
    margin: 20px auto !important; 
    
    position: relative; 
    cursor: pointer;
}

/* Ensure the character portrait image scales up cleanly */
.base-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: pixelated;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* THE HOVER OVERLAY: Turns into a frosted target screen on mouse approach */
.avatar-screen-overlay {
    position: absolute; /* Floating directly above the base portrait */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 2000s Pop Hot-Pink Translucent Screen Shade Layer */
    background: rgba(230, 0, 110, 0.35); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Hidden by default until hovered */
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Stops block element hover conflicts */
}

/* TRIGGER ACTION: Activates the overlay graphic and scales portrait on approach */
.avatar-container:hover .avatar-screen-overlay {
    opacity: 1;
}
.avatar-container:hover .base-avatar-img {
    transform: scale(1.05); /* Gentle zoom effect */
}

/* --- OVERLAY DETAILED ELECTRONICS DECORATIONS --- */

/* Tech readout text centered on screen */
.scan-matrix-text {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 6px #ff3b6c, 0 0 10px #ffffff;
    animation: textBlink 0.6s infinite alternate;
}

/* Moving green scanning electronic laser bar line */
.radar-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #33ff33;
    box-shadow: 0 0 10px #33ff33, 0 0 20px #33ff33;
    animation: radarSweep 2.2s linear infinite;
}

/* Caption spacing elements below the portrait window */
.spy-profile-details {
    text-align: center;
    padding: 0 15px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.agent-badge-tag {
    font-size: 0.65rem; 
    background: #ff5500; 
    color: #ffffff; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 85, 0, 0.2);
}

.agent-status-line {
    font-size: 0.9rem; 
    color: #cc2400; 
    font-weight: 800;
    margin-top: 2px;
}

/* KEYFRAMES: Text flashing telemetry */
@keyframes textBlink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* KEYFRAMES: Radar scanning up and down */
@keyframes radarSweep {
    0% { top: 0%; }
    50% { top: 96%; }
    100% { top: 0%; }
}
/* --- GLOWING INPUT FOCUS INTERFACE RULES --- */
.guestbook-box input:focus, 
.guestbook-box textarea:focus {
    border-color: #ff5500 !important;
    background: #ffffff !important;
    /* Soft orange neon glow aura */
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.4), inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* --- ANIMATED STICKER DECK UI LAYOUT --- */
.sticker-deck-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px dashed rgba(255, 85, 0, 0.3);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.3);
}

.pixel-sticker-item {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated; /* Keeps animated gifs perfectly crisp */
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.05));
    transition: transform 0.2s ease-in-out;
    cursor: help;
}

.pixel-sticker-item:hover {
    transform: scale(1.2) rotate(5deg);
}

/* --- Y2K FLIP PHONE STANDALONE POSITIONING RULES --- */
.flip-phone-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important; /* Forces transparency */
    border: none !important;             /* Cuts outer border strokes */
    box-shadow: none !important;         /* Cuts default flat panel card shadowing */
    padding: 0 !important;
}

/* Moves the 3D spring hover effect straight to the phone device chassis itself */
.phone-body-chassis {
    width: 250px;
    background: linear-gradient(135deg, #fff2f6 0%, #ffe6ee 40%, #ffc2d4 100%);
    border: 3px solid #ffffff;
    border-radius: 40px; 
    padding: 20px 15px 15px 15px;
    margin: 10px auto;
    position: relative;
    
    /* Multilayered toy device shadow system */
    box-shadow: 0 12px 35px rgba(255, 115, 0, 0.15),
                0 4px 0px #e6006f,
                inset 0 4px 10px rgba(255,255,255,0.8);
                
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Allows the isolated phone shell to bounce float when you approach it */
.phone-body-chassis:hover {
    transform: translateY(-8px) scale(1.03) rotate(1deg);
    box-shadow: 0 20px 45px rgba(255, 115, 0, 0.25),
                0 6px 0px #e6006f,
                inset 0 4px 12px rgba(255,255,255,0.9);
}


/* Tiny retro plastic phone stub antenna cap hanging off the top corner */
.phone-antenna {
    position: absolute;
    top: -12px;
    left: 30px;
    width: 22px;
    height: 16px;
    background: linear-gradient(90deg, #ff9429, #ff5500);
    border: 2px solid #ffffff;
    border-radius: 6px 6px 0 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.08);
}

/* The inner glowing LCD matrix monitor box */
.phone-lcd-screen {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 242, 230, 0.9) 100%);
    border: 3px solid #ff9429; /* Energetic vector orange phone lens outline */
    border-radius: 20px;
    padding: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), 0 3px 10px rgba(255,115,0,0.1);
    overflow: hidden;
}

.phone-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 115, 0, 0.3);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.signal-bars {
    font-size: 0.65rem;
    font-weight: bold;
    color: #39cc76;
    text-shadow: 0 0 2px rgba(57,204,118,0.3);
}

.phone-screen-text {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #ff5500 !important;
    text-align: center;
    padding: 2px 0 !important;
    letter-spacing: 0.5px;
}

/* Compact internal screen grid system */
.phone-internal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.phone-item-tile {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 148, 41, 0.5);
    border-radius: 10px;
    aspect-ratio: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: bold;
    color: #cc4400;
    text-align: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.2s;
    cursor: crosshair;
}

.phone-item-tile:hover {
    background: linear-gradient(135deg, #ff4477, #e6006f);
    color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.05);
}

/* --- TELEPHONE BUTTON CONSOLE DECORATIONS --- */
.phone-keypad-matrix {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Circular retro menu layout scrollpad wheel */
.circular-dpad {
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 2px solid #ff9429;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0px #cc6600, inset 0 2px 5px rgba(0,0,0,0.05);
}

.center-ok-btn {
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #ff8822 0%, #ff5500 100%);
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    color: white;
    font-size: 0.55rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.phone-action-keys {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #e6006f;
}

/* --- Y2K GLOSSY GRADIENT BRAND LOGO --- */
.brand-logo {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: "Century Gothic", "Impact", Arial, sans-serif;
    text-transform: uppercase;
    font-style: italic;
    
    /* FIX: Changed from negative to wide positive spacing to push letters apart */
    letter-spacing: 2px !important; 
    
    position: relative;
    display: inline-block;
    padding: 5px 15px; /* Added extra internal side breathing room */
    
    /* 2000s pop orange-to-pink gradient fill text layer */
    background: linear-gradient(180deg, #ffaa00 0%, #ff5500 50%, #e6006f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Smooth 3D color drop and soft pink glow shadow */
    filter: drop-shadow(2px 2px 0px rgba(230, 0, 111, 0.4))
            drop-shadow(4px 4px 12px rgba(255, 85, 0, 0.3));
            
    /* Playful 2000s vector game dashboard tilt angle rotation */
    transform: rotate(-3deg);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The mini trademark indicator next to the text */
.brand-logo span {
    font-size: 1rem;
    font-weight: 800;
    vertical-align: top;
    display: inline-block;
    margin-top: 5px;
    margin-left: 4px; /* Pushed the .com text slightly away from the main logo */
    background: linear-gradient(180deg, #e6006f, #ff5500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Soft spring animation bounce loop when you approach the logo */
.brand-logo:hover {
    transform: rotate(-1deg) scale(1.06);
    cursor: pointer;
}
/* --- OFFLINE SYSTEM PIXEL CALIBRATION MATRIX --- */

/* 
   THE GLOBAL INTERFACE RESET: 
   This forces EVERY single element, input box, text area, paragraph, 
   and sub-component to adopt the exact same local system pixel stack.
*/
*,
body,
.panel,
.game-screen,
.game-screen h2, 
.game-screen p,
.myscene-header h1,
.side-tab,
.top-capsule-nav a,
.phone-screen-text, 
.phone-item-tile, 
.scan-matrix-text,
.mission-ribbon-banner marquee,
.spy-profile,
.spy-details,
.guestbook-box input,
.guestbook-box textarea,
.submit-btn {
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace !important;
    font-weight: 900 !important; /* Thick geometric block impact weight */
    
    /* CRITICAL RETRO SYSTEM RULES: Forces the browser to draw font paths using raw 
       blocky edges rather than applying modern smooth blurring anti-aliasing tools */
    text-rendering: optimizeSpeed !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: none !important;
}

/* --- RE-CALIBRATING INTERNAL COMPONENT TEXT GEOMETRY --- */

/* Keeps your main description paragraph text blocks balanced and easy to scan */
.game-screen p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    color: #4a2200 !important;
    text-transform: none !important; /* Keeps regular sentence casing for long text readouts */
}

/* Sizing updates for the chunky header bars */
.game-screen h2 {
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important; /* Block capitals for menu headers */
}

/* Sidebar navigation choices font scaling */
.side-tab {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}

/* Top menu pills font scaling */
.top-capsule-nav a {
    font-size: 0.75rem !important;
    text-transform: lowercase !important; /* Retains your lowercase preference from earlier */
}

/* Flip phone menu inventory item tiles scaling */
.phone-item-tile {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
}

/* Floating description tooltip flag capsule text sizing */
[data-tooltip]::after {
    font-size: 0.65rem !important;
    text-transform: lowercase !important;
}
 /* --- VAULT LOCK PULSING MATRIX COAT --- */
@keyframes lockPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 68, 119, 0.3));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(255, 68, 119, 0.7));
    }
}

/* --- LOOKBOOK DRESSING ROOM GRAPHIC MATRIX --- */

.lookbook-monitor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The structural glass display container box for the full-length doll portrait */
.wardrobe-monitor-view {
    width: 220px;
    height: 280px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px solid #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.4);
    margin: 20px auto 15px auto;
    position: relative; /* Anchor for the loading laser strip */
}

/* Enforces maximum pixel clarity on wardrobe photos */
.wardrobe-monitor-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: pixelated; /* Keeps fine lines crisp */
}

/* Customized layout for the thumbnail closet selector buttons */
.lookbook-thumb-tile {
    flex-direction: column !important;
    gap: 4px;
    padding: 10px !important;
    cursor: pointer;
}

.lookbook-micro-preview {
    font-size: 1.4rem;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.lookbook-thumb-tile:hover .lookbook-micro-preview {
    transform: scale(1.2) rotate(-5deg); /* Bounces the micro icon when hovered */
}

.lookbook-thumb-tile span {
    font-size: 0.65rem !important;
    font-weight: 900;
    color: #ff5500;
    text-align: center;
}

/* --- 2000s ROIWORLD DRESS UP GAME INTERFACE LAYOUT --- */

/* Align workspace grid into an open edge-to-edge browser layout */
.roiworld-game-layout {
    grid-template-columns: 100px 1fr !important; /* Thinned left nav for circles */
    padding-left: 20px !important;
}

/* --- ROUNDED TOY CONSOLE BUTTON BADGES --- */
.circle-nav-group {
    align-items: center !important;
    gap: 16px !important;
}

.game-badge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    text-decoration: none;
    border: 3px solid #ffffff;
    border-radius: 50% !important; /* Forces perfect circle badges */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15), inset 0 3px 6px rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.game-badge-btn:hover {
    transform: scale(1.15) rotate(8deg);
    border-color: #ffffff;
}

/* Active indicator showing which page you are on using a gold glow halo ring */
.active-game-badge {
    border-color: #ffaa00 !important;
    box-shadow: 0 0 15px #ffaa00, inset 0 3px 6px rgba(255,255,255,0.6) !important;
    transform: scale(1.08);
}


/* --- THE UNIFIED DRESS UP WORKSPACE CANVAS --- */
.dressup-game-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 850px) {
    .dressup-game-container { grid-template-columns: 1fr; }
}


/* --- SIDE A: THE VERTICAL DOLL SHOWCASE MIRROR STAGE --- */
.doll-stage-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The vertical dressing platform framing the portrait */
.stage-mirror-frame {
    width: 260px;
    height: 340px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.35) 100%);
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px rgba(255, 115, 0, 0.15), inset 0 4px 12px rgba(255,255,255,0.5);
}

.stage-mirror-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: pixelated;
}

/* Compact textual dashboard module below the doll feet */
.doll-hud-readout {
    width: 260px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(255, 119, 0, 0.3);
    border-radius: 18px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.3);
}


/* --- SIDE B: THE TOY WARDROBE STORAGE CABINET SYSTEM --- */
.closet-cabinet-console {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Individual shelf rows matching the pastel closet dividers from the image */
.cabinet-shelf {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255, 115, 0, 0.12), inset 0 4px 10px rgba(255,255,255,0.4);
}

/* Translucent title tabs tracking clothing or gear rows */
.shelf-header-tab {
    font-size: 0.8rem !important;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(90deg, #ff9429, #ff5500);
    padding: 8px 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    text-shadow: 1px 1px 2px rgba(150, 40, 0, 0.4);
}

/* Flex slot track row displaying clothes buttons inside the cabinet shelves */
.shelf-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: flex-start;
}

/* Individual item slots designed to look like clickable wardrobe boxes */
.wardrobe-game-slot {
    width: 105px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04), inset 0 2px 4px rgba(255,255,255,0.5);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.item-sprite-preview {
    font-size: 1.8rem;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.wardrobe-game-slot span {
    font-size: 0.6rem !important;
    font-weight: 900;
    color: #ff5500;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}

/* Hover effect: Wardrobe tile scales up and tints orange when highlighted */
.wardrobe-game-slot:hover {
    background: #ffffff;
    border-color: #ff7700;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 115, 0, 0.15);
}

.wardrobe-game-slot:hover .item-sprite-preview {
    transform: scale(1.2) rotate(-5deg);
}
