/* ==========================================================================
   1. RESET & VARIABLE SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto+Condensed:ital,wght@0,400;0,700;1,700&display=swap');

:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00d4ff;
    --neon-yellow: #fdf000;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(16, 16, 16, 0.96);
    --border-metal: #282828;
    
    /* 📍 ADJUST BACKGROUND TINT HERE (0.35 = 35% dark sheet over texture) */
    --bg-overlay: rgba(0, 0, 0, 0.35); 
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. THE BULLETPROOF BACKGROUND ENGINE
   ========================================================================== */
body {
    background-color: #0e0e12;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Pure CSS high-contrast carbon/metal mesh pattern (No image files needed!) */
    background: 
        linear-gradient(27deg, #18181f 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, #18181f 5px, transparent 5px) 10px 0,
        linear-gradient(27deg, #22222b 5px, transparent 5px) 0 10px,
        linear-gradient(207deg, #22222b 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, #1b1b24 10px, transparent 10px),
        linear-gradient(#1d1d26 25%, #14141a 25%, #14141a 50%, transparent 50%, transparent 75%, #242431 75%, #242431);
    background-size: 20px 20px;
    
    z-index: -10; 
    pointer-events: none;
}

/* ==========================================================================
   3. GLOBAL NAVIGATION HEADER
   ========================================================================== */
.site-header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    background: #000000;
    border-bottom: 2px solid var(--border-metal);
    position: relative;
    z-index: 100;
}

.site-header .logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24pt;
    font-weight: 700;
    font-style: italic;
    
    /* 📍 FIX 1: Removed letter-spacing: -1px; which was crowding the text */
    letter-spacing: 0px; 
    
    /* 📍 FIX 2: Adds safety breathing room on the right so the leaning "T" doesn't clip */
    padding-right: 15px; 
    
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* 📍 FIX 3: Tells the browser layout engine to let italic glides spill over safely */
    overflow: visible; 
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #999999;
    text-decoration: none;
    font-weight: 700;
    font-size: 14pt;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* ==========================================================================
   MINI LOGO IN HEADER ADJUSTMENTS
   ========================================================================== */
.header-mini-logo {
    /* Perfectly sizes it to match the 24pt height of her name text */
    height: 80px; 
    width: auto;
    object-fit: contain;
    
    /* 📍 Pushes the text away slightly so they aren't jammed together */
    margin-right: 12px; 
    
    /* Center-aligns the image vertically with the letters */
    vertical-align: middle; 
    
    /* Optional: adds a subtle cyber glow behind the mini logo icon */
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4)); 
}

/* ==========================================================================
   5. THE CONTENT READER CARD (ZONE 3)
   ========================================================================= */
.reader-container {
    width: 100%;
    max-width: 1050px;
    margin: -80px auto 100px auto; 
    
    /* 📍 LIGHTENED: Changed background values from 16 to 28 for higher layout contrast */
    background: rgba(35, 35, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 3px solid var(--neon-blue);
    border-radius: 12px;
    padding: 60px 70px;
    position: relative;
    z-index: 10;
    
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.35), 
                0 15px 40px rgba(0, 0, 0, 0.8);
}
/* ==========================================================================
   6. ROLEPLAY TEXT & TYPOGRAPHY STYLING
   ========================================================================== */
.story-title {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 48pt;
    font-weight: 700;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Sleek gradient style for the main chapter heading */
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-pink), var(--neon-blue), var(--neon-yellow));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Standout Quote Callout Box */
.story-quote {
    border-left: 5px solid var(--neon-pink);
    background: rgba(255, 0, 255, 0.04);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 4px 4px 0;
}

.story-quote p {
    color: var(--neon-pink); 
    font-style: italic; 
    margin: 0; 
    font-size: 14pt;
    line-height: 1.6;
}

/* Main Body Paragraphs */
.story-body p {
    font-size: 14pt;
    line-height: 1.8;
    color: #ddddff; /* Slightly cool white tint to stand out on dark panels */
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    color: #ffffff;
}

/* ==========================================================================
   4. THE GRAFFITI BANNER STAGE (ZONE 2)
   ========================================================================== */
.banner-stage {
    position: relative;
    width: 100%;
    /* Gives the banner space to breathe over your carbon pattern */
    height: 520px; 
    background-color: #000000;
    
    /* Loads your main spraypaint name graphic asset */
    background-image: url('../ks-assets/ksnamebanner1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Permits elements to break out past the boundaries cleanly */
    overflow: visible; 
    margin-bottom: 0px;
}

/* The Neon Blue Cyberpunk Bounding Frame Overlay */
.banner-stage::after {
    content: '';
    position: absolute;
    /* Adjust these parameters to pad the border lines safely inside the banner edges */
    top: 25px;
    bottom: 25px;
    left: 45px;
    right: 45px;
    
    border: 3px solid var(--neon-blue);
    border-radius: 14px;
    
    /* Vivid dual-layer neon glow system */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.45), 
                inset 0 0 15px rgba(0, 212, 255, 0.2);
                
    z-index: 1;
    pointer-events: none;
}

/* Foreground Layer inside the frame */
.wrestler-cutout {
    position: relative;
    height: 112%; /* Pulls the asset height past the frame lines */
    object-fit: contain;
    
    /* Smoothly translates the rendering position down to clip over the text card border */
    transform: translateY(32px);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.95));
    z-index: 5;
}

/* ==========================================================================
   7. CHARACTER CUTOUT POSITIONING & 3D EFFECT
   ========================================================================== */
.wrestler-cutout {
    position: absolute;
    /* 📍 Adjusts her height so she breaks past the top and bottom neon lines */
    height: 110%; 
    bottom: -60px;
    
    /* Centers her horizontally inside the banner area */
    left: 50%;
    transform: translateX(-50%);
    
    /* Ensures she doesn't distort or stretch out of shape */
    object-fit: contain;
    
    /* Sharp drop shadow that separates her from the graffiti logo background */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.95));
    
    /* Pushes her layer forward so her torso floats over the top of the RP text box */
    z-index: 5; 
}

/* ==========================================================================
   8. RP TEXT POLISHING & DIALOGUE ENHANCEMENTS
   ========================================================================== */

/* Scene Location / Dateline Tag (e.g., "CHICAGO, IL - 9:42 PM") */
.story-body strong:first-of-type {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14pt;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(253, 240, 0, 0.3);
    padding-bottom: 8px;
}

/* Speaker Dialogue Highlight (Automatically styles spoken text in quotes) */
.story-body span.dialogue {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

/* Subtle separator lines to break up major scene transitions */
.story-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-metal), transparent);
    margin: 40px 0;
}

/* ==========================================================================
   9. GLOBAL FOOTER DESIGN (ZONE 4)
   ========================================================================== */
.site-footer {
    width: 100%;
    padding: 30px 40px;
    background: #000000;
    border-top: 2px solid var(--border-metal);
    text-align: center;
    position: relative;
    z-index: 100;
    margin-top: auto;
}

.site-footer p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11pt;
    color: #999999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   1. RESET & VARIABLE SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto+Condensed:ital,wght@0,400;0,700;1,700&display=swap');

:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00d4ff;
    --neon-yellow: #fdf000;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(16, 16, 16, 0.96);
    --border-metal: #282828;
    
    /* 📍 ADJUST BACKGROUND TINT HERE (0.35 = 35% dark sheet over texture) */
    --bg-overlay: rgba(0, 0, 0, 0.35); 
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. THE BULLETPROOF BACKGROUND ENGINE
   ========================================================================== */
body {
    background-color: #0e0e12;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Pure CSS high-contrast carbon/metal mesh pattern */
    background: 
        linear-gradient(27deg, #18181f 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, #18181f 5px, transparent 5px) 10px 0,
        linear-gradient(27deg, #22222b 5px, transparent 5px) 0 10px,
        linear-gradient(207deg, #22222b 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, #1b1b24 10px, transparent 10px),
        linear-gradient(#1d1d26 25%, #14141a 25%, #14141a 50%, transparent 50%, transparent 75%, #242431 75%, #242431);
    background-size: 20px 20px;
    
    z-index: -10; 
    pointer-events: none;
}

/* ==========================================================================
   3. GLOBAL NAVIGATION HEADER
   ========================================================================== */
.site-header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    background: #000000;
    border-bottom: 2px solid var(--border-metal);
    position: relative;
    z-index: 100;
}

.site-header .logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24pt;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0px; 
    padding-right: 15px; 
    
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: visible; 
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #999999;
    text-decoration: none;
    font-weight: 700;
    font-size: 14pt;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.header-mini-logo {
    height: 80px; 
    width: auto;
    object-fit: contain;
    margin-right: 12px; 
    vertical-align: middle; 
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4)); 
}

/* ==========================================================================
   4. THE GRAFFITI BANNER STAGE (ZONE 2)
   ========================================================================== */
.banner-stage {
    position: relative;
    width: 100%;
    height: 520px; 
    background-color: #000000;
    background-image: url('../ks-assets/ksnamebanner1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; 
    margin-bottom: 0px;
}

.banner-stage::after {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 45px;
    right: 45px;
    border: 3px solid var(--neon-blue);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.45), 
                inset 0 0 15px rgba(0, 212, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   5. CHARACTER CUTOUT POSITIONING & 3D EFFECT
   ========================================================================== */
.wrestler-cutout {
    position: absolute;
    height: 110%; 
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.95));
    z-index: 5; 
}

/* ==========================================================================
   6. THE CONTENT READER CARD (ZONE 3)
   ========================================================================== */
.reader-container {
    width: 100%;
    max-width: 1050px;
    margin: -80px auto 100px auto; 
    background: rgba(35, 35, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid var(--neon-blue);
    border-radius: 12px;
    padding: 60px 70px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.35), 
                0 15px 40px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   7. ROLEPLAY TEXT & TYPOGRAPHY STYLING
   ========================================================================== */
.story-title {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 48pt;
    font-weight: 700;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-pink), var(--neon-blue), var(--neon-yellow));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-quote {
    border-left: 5px solid var(--neon-pink);
    background: rgba(255, 0, 255, 0.04);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 4px 4px 0;
}

.story-quote p {
    color: var(--neon-pink); 
    font-style: italic; 
    margin: 0; 
    font-size: 14pt;
    line-height: 1.6;
}

.story-body p {
    font-size: 14pt;
    line-height: 1.8;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    color: #ffffff;
}

/* Custom Sub-Title Label Field */
.story-subtitle-label {
    font-family: 'Roboto Condensed', sans-serif; 
    font-size: 17pt;                             
    font-weight: 700;                            
    text-transform: uppercase;                   
    letter-spacing: 1.5px;                       
    color: #00ffcc;                              
    margin-top: 30px;
    margin-bottom: 12px;
    display: block;                              
}

/* ==========================================================================
   8. RP TEXT POLISHING & DIALOGUE ENHANCEMENTS
   ========================================================================== */
.story-body strong:first-of-type {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14pt;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(253, 240, 0, 0.3);
    padding-bottom: 8px;
}

.story-body span.dialogue {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

.story-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-metal), transparent);
    margin: 40px 0;
}

/* ==========================================================================
   9. GLOBAL FOOTER DESIGN (ZONE 4)
   ========================================================================== */
.site-footer {
    width: 100%;
    padding: 30px 40px;
    background: #000000;
    border-top: 2px solid var(--border-metal);
    text-align: center;
    position: relative;
    z-index: 100;
    margin-top: auto;
}

.site-footer p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11pt;
    color: #999999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   10. GLOBAL UNDERLINE RESETS & BRANDING STABILITY
   ========================================================================== */
.site-header .logo, 
.site-header .logo * {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important; /* OBLITERATES the underline permanently */
}

/* ==========================================================================
   11. MOBILE & TABLET RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    /* FIXES THE LOGO: Strips text-gradient rules so the standalone asset stays transparent */
    .site-header .logo {
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        display: inline-block !important;
    }

    .header-mini-logo {
        height: 45px !important; 
        margin-right: 0px !important;
        background: transparent !important;
        display: block !important;
    }

    .nav-links {
        margin-left: 0;
        gap: 20px;
    }
    
    .banner-stage {
        height: 380px !important; 
        background-size: cover;
        background-position: center center;
    }
    
    .banner-stage::after {
        top: 10px;
        bottom: 10px;
        left: 15px;
        right: 15px;
    }
    
    .wrestler-cutout {
        height: 105% !important;
        bottom: -35px !important;
    }
    
    .reader-container {
        padding: 35px 20px !important; 
        margin: -40px auto 50px auto !important;
        width: 92%;
    }
    
    /* FIXES THE TITLE BOX: Drops the gradient container layout for solid neon yellow */
/* 📍 ALTERNATIVE SAFARI-SAFE MOBILE GRADIENT */
    .story-title {
        font-size: 24pt !important;
        margin-bottom: 25px;
        
        /* 1. Re-enable the gradient properties */
        background: linear-gradient(90deg, var(--neon-yellow), var(--neon-pink), var(--neon-blue), var(--neon-yellow)) !important;
        background-size: 200% auto !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        
        /* 2. THE CRITICAL MOBILE FIXES: */
        display: inline-block !important;  /* Forces the browser to calculate boundaries tightly around the text */
        width: 100% !important;             /* Ensures it spans across the panel correctly */
        box-decoration-break: clone !important; /* Tells mobile engines to clip the gradient line-by-line if it wraps */
        -webkit-box-decoration-break: clone !important;
    }
}

/* ==========================================================================
   12. ROLEPLAY SPEAKERS & NARRATION CHANNELS (ZONE 3 TEXT ENGINE)
   ========================================================================== */
.rp-line {
    font-size: 13pt;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* HIGH-PRIORITY NARRATION OVERRIDE */
.rp-line.narration-mint {
    color: #ffd56b;     /* High-contrast Slate Gold */
    font-style: italic; 
    text-align: center;
}

/* ASSIGNED SPEAKERS */
.speaker-p {
    color: #00d4ff; /* Cyber Cyan (Kirsten's Signature) */
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.25);
}

.speaker-o {
    color: #f7e652; /* Calmed Industrial Yellow */
    font-weight: 700;
}

.speaker-i {
    color: #ff9ee2; /* Soft Premium Pink */
    font-weight: 700;
}

.speaker-l {
    color: #ff9866; /* Sunset Coral/Orange */
    font-weight: 700;
}

.speaker-k {
    color: #bfa3ff; /* Soft Royal Lavender */
    font-weight: 700;
}

.speaker-j {
    color: #7df9ff; /* Electric Ice Blue */
    font-weight: 700;
}

/* BONUS RESERVED UTILITY COLORS */
.speaker-extra-ruby   { color: #ff6b8b; font-weight: 700; } 
.speaker-extra-gold   { color: #ffd175; font-weight: 700; } 
.speaker-extra-sky    { color: #a3e2ff; font-weight: 700; } 
.speaker-extra-orchid { color: #e8a3ff; font-weight: 700; } 
.speaker-extra-silver { color: #cccccc; font-weight: 700; }