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

/* FONTS */
@font-face {
    font-family: "Baskerville";
    src: url(https://files.catbox.moe/4bjzjt.otf);
}

@font-face {
    font-family: "PC98"; 
    src: url(https://files.catbox.moe/i0ns2d.ttf) format('truetype');
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5) 25%, 
        rgba(0, 0, 0, 0) 25%
    );
    background-size: 100% 6px; 
    z-index: 999999; 
    pointer-events: none; 
    animation: tv-wave 4s ease-in-out infinite alternate, tv-flicker 0.15s infinite;
}

@keyframes tv-wave {
    0% {
        transform: translateX(-1px) scaleY(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translateX(1px) scaleY(1.01); 
    }
    100% {
        transform: translateX(-1px) scaleY(0.99);
        filter: hue-rotate(5deg);
    }
}

@keyframes tv-flicker {
    0% { opacity: 0.45; }
    20% { opacity: 0.55; }
    40% { opacity: 0.40; }
    60% { opacity: 0.50; }
    80% { opacity: 0.60; }
    100% { opacity: 0.48; }
}

/* Core Page Reset & Background Grid Setup */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    background-color: #000000;
    
    background-image: 
        linear-gradient(to right, rgba(255, 18, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 18, 0, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    background-attachment: fixed;
    
    font-family: Baskerville, serif; 
    color: #ffffff;
}

/* Master Grid Structure Layout */
.page-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Left Sidebar Navigation styling profiles */
.sidebar {
    width: 220px;
    height: 100%;
    background-color: #000000;
    border-right: 3px dashed #ff1200; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 15px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-btn {
    width: 100%;
    background: transparent;
    color: #ff1200;
    border: 2px solid #ff1200;
    padding: 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sidebar-btn:hover {
    background-color: #ff1200;
    color: #000000;
    box-shadow: 0 0 12px rgba(255, 18, 0, 0.6);
}

/* Main content field wrapper (Vertical block grouping flow) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* HEADER MASTER WRAPPER */
.site-header {
    position: relative;
    width: calc(100% - 120px);
    max-width: 940px;
    height: 160px; /* Locked structural baseline for the titles */
    z-index: -1;
    left: -40px; 
    top: -10px;   
}

/* 🔥 1. FULLY DETACHED ARTWORK LAYER */
/* You can now move, nudge, or scale this anywhere completely independently */
.art-container {
    position: absolute;
    z-index: 1; 
    top: 60px;
}

.side-png {
    width: 480px;
    height: auto;
    object-fit: contain;
}

.credit-strip {
  position: absolute;
  top: 300px;   
  left: 10px; 
  background-color: #000000;
  border: 1px solid #ff0000; 
  color: #ffffff; 
  padding: 4px 8px; 
  font-family: 'Baskerville', serif; 
  font-size: 12px;  
  pointer-events: none; 
}


.header-group {
    position: absolute;
    left: 330px; 
    top: 100px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}


.site-title {
    color: #ffffff;
    font-size: 5.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    left: -40px;
}

.site-subtitle {
    color: #ff1200;
    font-size: 1.8rem;
    margin: 5px 0 0 20px; /* Indentation alignment matching the reference design */
    font-weight: normal;
    letter-spacing: 4px;
}

/* MAIN CONTENT FIELD GRID: Splits into content block and update box side-by-side */
.content-section {
    display: flex;
    gap: 40px;
    margin-top: 230px;
    align-items: flex-start;
    width: 100%;
    max-width: 940px;
}

.retro-window-box {
    width: 100%;
    background-color: #000000;
    margin-top: 16px;
    border-top: 3px solid #ff453a;
    border-left: 3px solid #ff453a;
    border-right: 3px solid #990c00;
    border-bottom: 3px solid #990c00;
    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

/* Horizontal banner row at the top containing decorations */
.window-titlebar {
    background-color: #330400; /* Dark wine-red background fill */
    padding: 6px 12px;
    border-bottom: 2px solid #ff1200;
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: center;
}

.titlebar-kaomoji {
    color: #ff1200;
    font-size: 0.8rem;
    text-align: left;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Internal body segment that contains the scroll tracks */
.window-scroll-body {
    padding: 20px 15px;
    height: 280px; /* Locked window height threshold forces the scroll interaction */
    overflow-y: scroll; /* Permanently shows the retro scrollbar tracking track */
    box-sizing: border-box;
}

/* Custom Retro Black and Red Scrollbar Style */
.window-scroll-body::-webkit-scrollbar {
    width: 16px; /* Thick retro scrollbar profile */
    background-color: #1a0200;
    border-left: 2px solid #ff1200;
}

/* The structural moving handle widget matching your theme */
.window-scroll-body::-webkit-scrollbar-thumb {
    background-color: #000000;
    border-top: 2px solid #ff453a;
    border-left: 2px solid #ff453a;
    border-right: 2px solid #990c00;
    border-bottom: 2px solid #990c00;
}

/* Small scroll track directional buttons option rules */
.window-scroll-body::-webkit-scrollbar-button {
    display: block;
    height: 12px;
    background-color: #ff1200;
}

/* Inline warning textual rules matching reference values */
.view-notice-text {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-decoration: underline;
    text-align: left;
}

.content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Keeps the exact dimensions of your original chatbox container */
.blinkies-box {
    width: 100%;
    max-width: 340px; /* Aligns with your layout framework width */
    height: 340px;
    background-color: #000000;
    border: 2px solid #ff1200;
    margin-top: 200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    
}

/* Header strip tracking the title text style */
.blinkies-title {
    text-align: left;
    font-weight: bold;
    color: #ff1200;
    border-bottom: 1px solid #ff1200;
    padding: 3px 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* The scrollable gallery zone matching the chatbox height profile */
.blinkies-grid {
    height: 300px; /* Matches your iframe height parameter perfectly */
    padding: 12px;
    overflow-y: hidden;
    box-sizing: border-box;display: grid;
    grid-template-columns: 1fr 1fr; /* Spawns exactly two equal columns side-by-side */
    gap: 10px;                       /* Controls spacing between the columns and rows */
    justify-content: center;           /* Centers each blinkie within its half of the grid */
    align-content: flex-start;
}

/* Individual Blinkie image properties */
.blinkies-grid img {
    height: auto;
    max-width: 150px; /* Prevents oversized blinkies from stretching the layout */
    object-fit: contain;
}

/* Custom Red Scrollbar to match your existing styling theme */
.blinkies-grid::-webkit-scrollbar { width: 6px; }
.blinkies-grid::-webkit-scrollbar-track { background: #000; }
.blinkies-grid::-webkit-scrollbar-thumb { background: #ff1200; }


.updates-list::-webkit-scrollbar { width: 6px; }
.updates-list::-webkit-scrollbar-track { background: #000; }
.updates-list::-webkit-scrollbar-thumb { background: #ff1200; }

.art-credit {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    text-align: left;
}

.marquee-stack-wrapper {
    width: 100%;
    max-width: 940px;
    margin-top: 40px;
    padding: 7px 0;
    display: flex;
    flex-direction: column;
    gap: 7px; /* Small gap separating each row vertically */
}

/* Base structural layout for each individual row container */
.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

/* Master horizontal movement engine channel (Rows 1 and 3) */
.marquee-container .marquee-track {
    display: flex;
    width: max-content;
    animation: crawlLeft 25s linear infinite; /* Leftwards motion crawl */
}

/* Reverse engine channel (Row 2) */
.marquee-container.reverse .marquee-track {
    animation: crawlRight 25s linear infinite; /* Rightwards motion crawl */
}

/* Holds individual arrays securely lined up side-by-side */
.marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
}

/* Stamp Image Dimension scale constraints */
.marquee-group img {
    height: 50px; /* Shrunk slightly to lock 3 rows cleanly inside vertical parameters */
    width: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 18, 0, 0.2);
}

/* Stops ALL three layers tracking if any row gets moused over */
.marquee-stack-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* 🔥 ANIMATION LOGIC A: LEFT CRAWL */
@keyframes crawlLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 🔥 ANIMATION LOGIC B: RIGHT CRAWL */
@keyframes crawlRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
