* {
    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: 10;
}

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

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


.header-group {
    position: absolute;
    left: 440px; 
    width: 540px;
    top: 50px;
    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;
}

.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;
}

/* Consolidated textbox element block rules */
.text-content-wrapper {
    flex: 1;
    max-width: 560px;
    margin-top: 15px;
    background: #000000;
    padding: 15px;
    border: 2px solid #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);
}
/* Core Grid Interface Structure Layout */
.game-review-interface {
    display: flex;
    gap: 25px;
    margin-top: -10px;
    width: 100%;
    max-width: 940px;
    align-items: stretch;
    box-sizing: border-box;
}

/* LEFT SIDE BAR INDEX: Narrow element box styling */
.game-index-box {
    width: 240px; /* Locked thin width threshold */
    background-color: #000000;
    border: 2px solid #ff1200;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.index-title {
    text-align: left;
    font-weight: bold;
    color: #000000;
    background-color: #ff1200; /* Inverted header styling matching layout themes */
    padding: 6px 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.index-links-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Selectable navigation index items buttons styling profiles */
.index-item {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.index-item:hover {
    color: #ff1200;
    border-left: 3px solid #ff1200;
    padding-left: 9px;
}

/* Active Highlight state profile logic indicator */
.index-item.active {
    color: #000000;
    background-color: #ff1200;
    border: 1px solid #ff1200;
    font-weight: bold;
}

/* RIGHT MASTER CONTAINER MODULE */
.review-display-box {
    flex: 1; /* Automatically expands to occupy all remaining width layout blocks */
    background-color: #000000;
    border: 2px solid #ff1200;
    display: flex;
    flex-direction: column;
}

.review-header-strip {
    text-align: right;
    font-weight: bold;
    color: #ff1200;
    border-bottom: 1px solid #ff1200;
    padding: 6px 15px;
    font-size: 1rem;
    letter-spacing: 2px;
    background-color: rgba(255, 18, 0, 0.05);
}

.review-body-scroll {
    padding: 20px;
    height: 360px; /* Locked box height threshold handles layout overflows */
    overflow-y: scroll;
    box-sizing: border-box;
}

/* 🔥 THE WRAPPING TEXT MECHANICS ENGINE */
.review-poster-img {
    float: left; /* Crucial: Forces paragraph strings to crawl around image bounds organically */
    width: 140px; /* Locked width scale constraints */
    height: auto;
    margin-right: 20px; /* Gap between image right bounds and writing parameters */
    margin-bottom: 12px; /* Gap below image bounds if strings run lower */
    border: 1px solid #ff1200;
    background: #000;
    object-fit: contain;
}

/* Custom Scrollbars elements mapping details */
.review-body-scroll::-webkit-scrollbar { width: 6px; }
.review-body-scroll::-webkit-scrollbar-track { background: #000; }
.review-body-scroll::-webkit-scrollbar-thumb { background: #ff1200; }
