/* Color Palette */
:root {
    --bg-dark: #0d0d0d;
    --bg-medium: #1a1a1a;

    --neon-green: #00ff00;
    --dark-green: #008000;
    --neon-yellow: #ffff00;
    --neon-red: #ff0000;
    --neon-magenta: #ff00ff;
    --neon-blue: #00ffff;

    --text-shadow-color: rgba(0, 255, 0, 0.7);
    --box-shadow-color: rgba(0, 255, 0, 0.5);
}

/* Typography */
body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-dark);
    color: var(--neon-green);
    display: flex;
    flex-direction: column; /* Changed to column to stack main and footer */
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--text-shadow-color);
    margin-bottom: 15px;
}

h3 {
    color: var(--neon-yellow);
}

p, span, li, label {
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--text-shadow-color);
    line-height: 1.6;
}

/* Global Layout */
.game-container {
    background-color: var(--bg-medium);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px var(--box-shadow-color);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1; /* Allows container to grow and push footer down */
}

/* HUD (Navigation and Logo) */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--neon-green); /* Visual separation */
}

.logo {
    display: flex; /* Make logo and icon inline */
    align-items: center; /* Vertically align them */
    gap: 10px; /* Space between text and icon */
}

.logo h1 {
    margin: 0;
    font-size: 2.2em;
    color: var(--neon-yellow); /* Make logo stand out */
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
    display: flex; /* For aligning text and inline icon */
    align-items: center;
    gap: 10px; /* Space between "CYBERNEXUS" and the icon within the H1 */
}

.logo-icon {
    width: 40px; /* Small icon size */
    height: 40px;
    vertical-align: middle; /* Align with text baseline */
    border-radius: 5px; /* Slightly rounded corners */
}


.main-nav {
    display: flex;
    gap: 15px;
}

.menu-btn {
    background-color: var(--dark-green);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-size: 0.95em;
    text-shadow: 0 0 3px var(--text-shadow-color);
    white-space: nowrap; /* Prevent wrapping for nav links */
}

.menu-btn:hover {
    background-color: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--box-shadow-color);
    transform: translateY(-2px);
}

/* Game Screen Management (for main content areas) */
.game-screen {
    display: none; /* Hidden by default */
    flex-direction: column;
    flex-grow: 1;
}

.game-screen.active-screen {
    display: flex; /* Only active screen is shown */
}

/* Hero Card Specifics */
.hero-profile-card {
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.hero-profile-card h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--neon-yellow);
}

.hero-content {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* Crucial: Makes children (image/list) stretch to equal height */
}

/* Hero Image Placeholder - Left Side */
.image-placeholder-left {
    flex: 1; /* Allows it to take available space */
    min-width: 250px; /* Minimum width before wrapping */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Placeholder for an image: You can replace this with a real image URL */
    background-size: cover; /* Ensures image covers the area, cropping if necessary */
    background-position: center;
}


.hero-details {
    flex: 2; /* Allows the list to take more space than the image */
    text-align: left;
    min-width: 300px; /* Minimum width for the bullet list */
    display: flex; /* Make hero-details a flex container */
    flex-direction: column; /* Stack its children (ul and new image div) vertically */
    gap: 15px; /* Space between the ul and the image */
}

.hero-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* height: 100%; Removed, let content dictate height */
    /* display: flex; Removed, let hero-details handle flex direction */
    /* flex-direction: column; Removed */
    /* justify-content: space-between; Removed */
}

.hero-details li {
    background-color: rgba(0, 255, 0, 0.05); /* Slightly transparent background for list items */
    padding: 8px 15px; /* Reduced vertical padding from 12px to 8px */
    margin-bottom: 8px; /* Reduced margin-bottom from 10px to 8px */
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    font-size: 1em; /* Slightly reduced font size from 1.05em to 1em */
    flex-grow: 0; /* Changed from 1 to 0: Prevents list items from growing to fill excess space */
    display: flex; /* Use flex to align content within li */
    align-items: center; /* Vertically center content */
}

.hero-details li:last-child {
    margin-bottom: 0;
}

/* New: Styling for the placeholder image below the bullet list */
.image-placeholder-bottom {
    width: 100%; /* Take full width of its parent (.hero-details) */
    padding-top: 10px; /* Space above the image */
    padding-bottom: 10px; /* Space below the image */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image doesn't spill out */
}

.data-viz-image {
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    border-radius: 3px;
}

/* Footer Styling */
.main-footer {
    width: 100%;
    max-width: 1200px;
    background-color: var(--bg-medium);
    border-top: 1px solid var(--neon-green);
    padding: 15px 20px;
    margin-top: 20px; /* Space from main content */
    text-align: center;
    box-shadow: 0 0 10px var(--box-shadow-color);
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}

.footer-content p {
    margin: 0;
    font-size: 0.9em;
}

.footer-link {
    color: var(--neon-yellow);
    text-decoration: none;
    text-shadow: 0 0 3px rgba(255, 255, 0, 0.5);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--text-shadow-color);
}

/* Modal Styling for Privacy Policy */
.modal-backdrop {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Frosty effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 2px solid var(--neon-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 800px; /* Max width for readability */
    position: relative;
    overflow-y: auto; /* Allow scrolling within the modal */
    max-height: 90vh; /* Max height to fit viewport */
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--text-shadow-color);
}

.modal-content h2 {
    color: var(--neon-magenta);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
}

.modal-content h3 {
    color: var(--neon-yellow);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: '⚡ ';
    padding-left: 25px;
    margin-bottom: 20px;
}

.modal-content li {
    background-color: transparent;
    border: none;
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.close-btn {
    color: var(--neon-yellow);
    font-size: 2.5em;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .game-container {
        padding: 15px;
        max-width: 95%;
    }

    .hud {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .logo {
        flex-direction: row; /* Keep logo and icon inline */
        gap: 5px;
    }

    .logo h1 {
        font-size: 1.8em;
        gap: 5px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .menu-btn {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        flex-direction: column; /* Stack on smaller screens */
        align-items: center;
        gap: 25px;
    }

    .image-placeholder-left { /* This now corresponds to your single image placeholder */
        width: 100%; /* Take full width on small screens */
        height: 200px; /* Fixed height for image placeholder on small screens */
        min-width: unset; /* Remove min-width constraint */
    }
    /* Assuming you directly embed the <img> with class="hero-card" inside .image-placeholder-left */
    .image-placeholder-left img.hero-card {
        width: 100%;
        height: 100%; /* Make image fill the fixed height of its container */
        object-fit: cover; /* Cover the container, cropping if necessary */
    }


    .hero-details {
        width: 100%; /* Take full width on small screens */
        min-width: unset; /* Remove min-width constraint */
        /* Re-evaluate if height: 100% is needed here, might cause issues with stacking */
    }

    .hero-profile-card h2 {
        font-size: 1.8em;
    }

    .main-footer {
        padding: 10px 15px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .modal-content h2 {
        font-size: 1.8em;
    }
    .close-btn {
        font-size: 2em;
        top: 5px;
        right: 10px;
    }

    /* Adjust bottom image on smaller screens */
    .image-placeholder-bottom {
        width: 100%;
        padding: 5px; /* Reduce padding */
    }
    .data-viz-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.6em; /* Smaller on very small screens */
    }

    .logo-icon {
        width: 25px;
        height: 25px;
    }

    .menu-btn {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .hero-profile-card h2 {
        font-size: 1.6em;
    }

    .hero-details li {
        font-size: 0.95em;
        padding: 10px 12px;
    }
}

/* --- Mission Section Styling --- */
.mission-screen {
    background-color: var(--bg-medium);
    border: 1px solid var(--neon-blue); /* Distinct border color for mission */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); /* Blue glow */
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.mission-screen h2 {
    color: var(--neon-blue); /* Mission title in blue */
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
}

.mission-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* Center content horizontally */
}

.mission-content p {
    color: var(--neon-green);
    font-size: 1.05em;
    max-width: 800px; /* Limit text width for readability */
    text-align: justify;
}

.mission-content ul {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin: 0;
    max-width: 800px;
}

.mission-content li {
    background-color: rgba(0, 0, 255, 0.05); /* Slight blue background for list items */
    border: 1px solid rgba(0, 0, 255, 0.3);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: var(--neon-green);
    font-size: 1em;
    line-height: 1.5;
}

/* --- CredNet Screen Styling --- */
.crednet-screen {
    background-color: var(--bg-medium);
    border: 1px solid var(--neon-yellow); /* CredNet specific border color */
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5); /* Yellow glow */
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.crednet-screen h2 {
    color: var(--neon-yellow); /* CredNet title in yellow */
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.7);
    font-size: 2.2em;
    margin-bottom: 25px;
}

.faction-table-container {
    width: 100%;
    margin-top: 20px;
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: 0 0 10px var(--box-shadow-color);
}

#faction-data-table {
    width: 100%;
    border-collapse: collapse;
}

#faction-data-table th,
#faction-data-table td {
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 12px;
	padding-left: 6px;    /* don't reserve the 90px side label space */
    padding-top: 30px;    /* create space under the label */
    text-align: left;
    vertical-align: top;
    color: var(--neon-green);
    font-size: 0.95em;
    line-height: 1.4;
}

#faction-data-table td[data-label="Description"]::before {
    display: block; /* forces label to occupy its own line */
    margin-bottom: 5px; /* small gap before the description text */
	top: 6px;                          /* place label at the top */
	left: 6px;                         /* align with content */
	width: calc(100% - 12px);          /* let label span the cell width */
	text-align: center;                /* optional: center the yellow label */
	padding-bottom: 5px;               /* small gap */
	border-bottom: 1px solid var(--neon-yellow); /* optional: separator */
}

#faction-data-table th {
    background-color: var(--dark-green);
    color: var(--neon-yellow);
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    font-size: 1.1em;
    position: sticky;
    top: 0;
    z-index: 1;
}

#faction-data-table tbody tr:nth-child(even) {
    background-color: rgba(0, 255, 0, 0.03); /* Subtle stripe for readability */
}

#faction-data-table tbody tr:hover {
    background-color: rgba(0, 255, 0, 0.1); /* Highlight on hover */
}

/* Specific styling for Raid Boss flavor text */
.raid-boss-entry {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 255, 0, 0.1);
}

.raid-boss-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.raid-boss-name {
    font-weight: bold;
    color: var(--neon-magenta); /* Make boss names stand out */
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.raid-boss-description {
    font-style: italic;
    font-size: 0.85em;
    color: var(--neon-blue); /* Flavor text in blue */
}


/* Responsive adjustments for CredNet section */
@media (max-width: 768px) {
    .crednet-screen {
        padding: 15px;
    }
    .crednet-screen h2 {
        font-size: 1.8em;
    }
    #faction-data-table th,
    #faction-data-table td {
        padding: 8px;
        font-size: 0.9em;
    }
    .raid-boss-description {
        font-size: 0.8em;
    }

    /* Table Responsiveness for smaller screens */
    #faction-data-table,
    #faction-data-table thead,
    #faction-data-table tbody,
    #faction-data-table th,
    #faction-data-table td,
    #faction-data-table tr {
        display: block; /* Make all table elements behave like block-level elements */
    }

    #faction-data-table thead tr {
        position: absolute; /* Hide table headers visually */
        top: -9999px;
        left: -9999px;
    }

    #faction-data-table tr {
        border: 1px solid rgba(0, 255, 0, 0.3); /* Add border to rows to separate "cards" */
        margin-bottom: 15px; /* Space between each faction "card" */
        border-radius: 8px;
        overflow: hidden; /* Ensure content stays within rounded corners */
        background-color: rgba(0, 255, 0, 0.05); /* Slightly darker background for each "card" */
    }

    #faction-data-table td {
        border: none; /* Remove individual cell borders */
        border-bottom: 1px dashed rgba(0, 255, 0, 0.1); /* Add dashed separator between data fields */
        position: relative;
        text-align: right; /* Align actual data to the right */
        padding-left: 100px; /* Provide fixed space for the pseudo-element label */
    }

    #faction-data-table td:last-child {
        border-bottom: none; /* No border for the last data field in a "card" */
    }

    #faction-data-table td::before {
        /* Use data-label for content from the hidden header */
        content: attr(data-label);
        position: absolute;
        top: 8px; /* Adjusted to align with the top of the content */
        left: 6px;
        width: 90px; /* Fixed width for labels */
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--neon-yellow); /* Label color */
        text-shadow: 0 0 3px rgba(255, 255, 0, 0.5);
    }
    
    /* Specific adjustment for Raid Bosses content within mobile table view */
    #faction-data-table td[data-label="Raid Bosses"] {
        text-align: left; /* Align raid bosses list to the left */
        padding-left: 6px; /* Reset padding-left to 6px as the label is absolutely positioned */
        padding-top: 30px; /* Add top padding to create space below the label */
    }

    #faction-data-table td[data-label="Raid Bosses"]::before {
        top: 6px; /* Position the label at the top of the cell */
        left: 6px; /* Position the label at the left of the cell */
        width: calc(100% - 12px); /* Allow label to take full width of cell minus padding */
        text-align: center; /* Center the label above the content */
        font-size: 1.1em; /* Make the label stand out more */
        border-bottom: 1px solid var(--neon-magenta); /* Add a separator below the label */
        padding-bottom: 5px; /* Space between label and content */
    }
	  #faction-data-table td[data-label="Description"]::before {
      top: 6px;
      left: 6px;
      width: calc(100% - 12px);
      text-align: center;
      font-size: 1.1em;
      border-bottom: 1px solid var(--neon-magenta);
      padding-bottom: 5px;
	}
	/* Move content down so it clears the label */
	#faction-data-table td[data-label="Description"] {
      padding-top: 34px; /* adjust so text starts below label height */
	}
	#faction-data-table td[data-label="Shop Items"] {
	  text-align: left;   /* match Raid Bosses */
	  padding-left: 6px;  /* override the 100px mobile gutter */
      padding-top: 34px;  /* clear the banner label height */
	}
	#faction-data-table td[data-label="Shop Items"]::before {
      top: 6px;
      left: 6px;
      width: calc(100% - 12px);
      text-align: center;
      font-size: 1.1em;
      border-bottom: 1px solid var(--neon-magenta);
      padding-bottom: 5px;
	}
}

@media (max-width: 480px) {
    .crednet-screen h2 {
        font-size: 1.6em;
    }
    #faction-data-table {
        /* min-width: 600px; Removed */
    }
    #faction-data-table th,
    #faction-data-table td {
        padding: 6px;
        font-size: 0.85em;
    }
    #faction-data-table td::before {
        /* Adjustments for even smaller screens if necessary */
    }
    #faction-data-table td[data-label="Raid Bosses"]::before {
        font-size: 1em; /* Adjust font size for very small screens */
    }
    #faction-data-table td[data-label="Description"] { padding-top: 36px; 
    }
}

/* --- Data Hub Screen Styling --- */
.data-hub-screen {
    background-color: var(--bg-medium);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 15px var(--box-shadow-color);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.data-hub-screen h2 {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--text-shadow-color);
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
}

.data-hub-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.data-hub-section {
    background-color: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 20px;
}

.data-hub-section h3 {
    color: var(--neon-yellow);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.data-hub-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.data-hub-section li {
    background-color: transparent; /* Override default list item background */
    border: none; /* Override default list item border */
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 1em;
}

.data-hub-section li strong {
    color: var(--neon-magenta);
}

@media (max-width: 768px) {
    .data-hub-screen {
        padding: 15px;
    }
    .data-hub-screen h2 {
        font-size: 1.8em;
    }
    .data-hub-section {
        padding: 15px;
    }
    .data-hub-section h3 {
        font-size: 1.5em;
    }
}

/* --- Discover Gallery Screen Styling --- */
.discover-gallery-screen {
    background-color: var(--bg-medium);
    border: 1px solid var(--neon-magenta); /* Distinct border color for gallery */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5); /* Magenta glow */
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.discover-gallery-screen h2 {
    color: var(--neon-magenta); /* Gallery title in magenta */
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.7);
    font-size: 2.2em;
    margin-bottom: 25px;
}

.bgm-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 10px;
    border: 1px dashed var(--neon-green);
    border-radius: 5px;
    background-color: rgba(0, 255, 0, 0.05);
}

.bgm-player label {
    font-size: 1.1em;
    color: var(--neon-yellow);
    text-shadow: 0 0 3px rgba(255, 255, 0, 0.5);
}

.bgm-player audio {
    width: 80%;
    max-width: 400px;
    filter: sepia(100%) saturate(200%) hue-rotate(90deg); /* Greenish tint for audio player */
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the slideshow */
    margin: 0 auto 30px auto;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden; /* Ensure images don't overflow rounded corners */
}

.slideshow-img {
    width: 100%;
    height: auto; /* Fixed height for slideshow images */
    max-height: 400px;
	object-fit: contain; /* Cover the area, cropping if necessary */
    display: none; /* Hide all images by default */
    border-radius: 6px; /* Slightly smaller border-radius than container */
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slideshow-img.active {
    display: block; /* Show only the active image */
    opacity: 1;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.thumbnail {
    width: 120px; /* Fixed width for thumbnails */
    height: 90px; /* Fixed height for thumbnails */
    object-fit: cover;
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--box-shadow-color);
}

/* Responsive adjustments for Gallery */
@media (max-width: 768px) {
    .discover-gallery-screen {
        padding: 15px;
    }
    .slideshow-img {
        height: 250px; /* Adjust height for smaller screens */
    }
    .thumbnail {
        width: 100px;
        height: 75px;
    }
    .bgm-player audio {
        width: 100%; /* Full width audio player on smaller screens */
    }
}

@media (max-width: 480px) {
    .slideshow-img {
        height: 180px;
    }
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    .bgm-player label {
        font-size: 0.9em;
    }
}


/* Added spacing after bolded text in hero details */
.hero-details li strong {
    margin-right: 0.3em; /* creates space after the bold text */
}


@media (max-width: 768px) {
  #faction-data-table td[data-label="Shop Items"]::before {
      top: 6px;
      left: 6px;
      width: calc(100% - 12px);
      text-align: center;
      font-size: 1.1em;
      border-bottom: 1px solid var(--neon-magenta);
      padding-bottom: 5px;
  }

  /* Move content down so it clears the label */
  #faction-data-table td[data-label="Shop Items"] {
      padding-top: 34px; /* adjust so text starts below label height */
  }
}

/* --- CredNet mobile: stack labels above values (remove "right column") --- */
@media (max-width: 768px) {
  /* Stack mode for ALL cells */
  #faction-data-table td {
    text-align: left;        /* no right-aligned value column */
    padding-left: 6px;       /* remove 100px gutter */
    padding-top: 34px;       /* space under the label banner */
  }

  #faction-data-table td::before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px); /* label spans the cell width */
    text-align: center;
    border-bottom: 1px solid var(--neon-magenta);
    padding-bottom: 5px;
    white-space: normal;      /* allow wrapping on long labels */
  }

  /* Ensure caption is a clean, single block above the cards */
  #faction-data-table caption {
    display: block;           /* remove any table-caption quirks */
    caption-side: top;
    text-align: left;         /* or center */
    padding: 10px 12px;
    margin-bottom: 10px;
    line-height: 1.5;
    border: 1px dashed rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    white-space: normal;      /* wrap long lines */
  }
}


/* === Active Nav State for Multi-Page Setup === */
.main-nav .menu-btn[data-active="true"] {
  outline: none;
  border-bottom: 2px solid var(--neon-magenta, #ff2bd6);
  text-shadow: 0 0 6px rgba(255, 43, 214, 0.7);
  filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.45));
}
.main-nav .menu-btn:hover {
  transform: translateY(-1px);
}
