﻿/* add all special styles used for displaying the rules */

/* .rules: used for all elements loading rules (rules at main site, rules ingame, popup with rules extract 
   #rules: div with complete rules used at main site
   #rulesPage: ingame rules page display
   #panelRules: ingame rules sidepanel display
   #popup.rules: popup with rules extract only */

/* Main container for Yucata integration */
.rules {
    background: radial-gradient(circle at top right, #1a2540, #080c17);
    color: #e6f1ff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    font-size: 17px;
}

    /* Links styling */
    /* Sci-Fi terminal style for links */
    .rules a {
        color: #00e5ff;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease, text-shadow 0.3s ease;
        text-shadow: 0 0 4px rgba(0, 229, 255, 0.4);
        font-weight: 500;
    }

        /* Creating a high-tech animated underline */
        .rules a::after {
            content: '';
            position: absolute;
            width: 100%;
            transform: scaleX(0);
            height: 1px;
            bottom: -2px;
            left: 0;
            background-color: #00e5ff;
            transform-origin: bottom right;
            transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
            box-shadow: 0 0 8px #00e5ff;
        }

        /* Hover states for color, glow, and line animation */
        .rules a:hover {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 16px rgba(0, 229, 255, 0.5);
        }

            .rules a:hover::after {
                transform: scaleX(1);
                transform-origin: bottom left;
            }

    /* Warning and info boxes */
    .rules .info-box {
        background-color: rgba(255, 204, 0, 0.1);
        border-left: 4px solid #f39c12;
        padding: 15px 20px;
        margin-bottom: 25px;
        color: #f9d689;
        font-style: italic;
        border-radius: 0 4px 4px 0;
    }

    /* Style for the summary info box at the top */
    .rules .summaryInfo {
        background-color: rgba(255, 204, 0, 0.1); /* Transparent yellow background */
        border-left: 4px solid #f39c12; /* Distinctive orange border on the left */
        padding: 15px 20px;
        margin-bottom: 25px;
        color: #f9d689; /* Light yellowish text for contrast against the dark theme */
        font-style: italic;
        border-radius: 0 4px 4px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Subtle shadow for depth */
        font-size: 16px;
        line-height: 1.5;
    }

    /* Headers and typography */
    .rules h3 {
        color: #70d8ff;
        border-bottom: 1px solid rgba(112, 216, 255, 0.3);
        padding-bottom: 5px;
        margin-top: 30px;
        font-size: 20px;
    }

    .rules h4 {
        color: #b3e5fc;
        margin-top: 20px;
        font-size: 17px;
    }

    .rules p, .rules ul {
        margin-bottom: 20px;
    }

    .rules li {
        margin-bottom: 8px;
    }

/* Sci-fi header styling */
:root {
    --bg-metal: linear-gradient(to bottom, #2b354c 0%, #1a233a 50%, #12182b 50%, #1c263d 100%);
    --glow-blue: #00e5ff;
}

/* Base sci-fi container with deeper shadows */
.scifi-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 40px 0 20px;
    height: 54px;
    background: var(--bg-metal);
    border: 1px solid #0d1322;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.1);
    margin-top: 40px;
    margin-bottom: 20px;
}

    /* Enhance the top and bottom glowing lines with drop shadows */
    .scifi-header::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -2px;
        bottom: -2px;
        border-top: 2px solid var(--glow-blue);
        border-bottom: 2px solid var(--glow-blue);
        box-shadow: 0 -4px 12px rgba(0, 229, 255, 0.5), 0 4px 12px rgba(0, 229, 255, 0.5);
        opacity: 0.9;
        pointer-events: none;
    }

    /* Maintain the angled cut, matching the new dark metal */
    .scifi-header::after {
        content: "";
        position: absolute;
        right: -15px;
        width: 15px;
        height: 100%;
        background: var(--bg-metal);
        border-top: 2px solid var(--glow-blue);
        border-bottom: 2px solid var(--glow-blue);
        clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
    }

    /* Transform text into a glowing neon sign */
    .scifi-header .text {
        font-family: 'Arial Black', sans-serif;
        font-size: 24px;
        color: #ffffff;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 16px rgba(0, 229, 255, 0.4);
        position: relative;
        z-index: 2;
    }

        /* Add a glowing status indicator light on the left */
        .scifi-header .text::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 22px;
            background-color: var(--glow-blue);
            margin-right: 15px;
            vertical-align: middle;
            box-shadow: 0 0 10px var(--glow-blue);
            border-radius: 2px;
        }

/* Sci-Fi list styling for step-by-step instructions */
.rules ul.scifi-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter; /* Initialize counter */
}

    .rules ul.scifi-list > li {
        position: relative;
        background: rgba(28, 37, 65, 0.4);
        border: 1px solid rgba(112, 216, 255, 0.1);
        border-left: 4px solid #70d8ff;
        margin-bottom: 12px;
        padding: 12px 15px 12px 50px;
        border-radius: 0 6px 6px 0;
        color: #e6f1ff;
    }

        /* Custom numbers for the list items */
        .rules ul.scifi-list > li::before {
            counter-increment: step-counter;
            content: "0" counter(step-counter); /* Pad with zero for Sci-Fi terminal look */
            position: absolute;
            left: 12px;
            top: 12px;
            color: #70d8ff;
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 1.1em;
            letter-spacing: 1px;
        }

        /* Fix layout for list items >= 10 to handle double digits nicely */
        .rules ul.scifi-list > li:nth-child(n+10)::before {
            content: counter(step-counter);
        }

/* Main container for the CSS logo */
.game-logo {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0 50px 0;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
}

    /* Decorative sci-fi brackets on the sides */
    .game-logo::before, .game-logo::after {
        content: "";
        position: absolute;
        top: 20px;
        bottom: 20px;
        width: 20px;
        border: 2px solid #00e5ff;
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }

    .game-logo::before {
        left: 20px;
        border-right: none;
        box-shadow: -5px 0 15px rgba(0, 229, 255, 0.2);
    }

    .game-logo::after {
        right: 20px;
        border-left: none;
        box-shadow: 5px 0 15px rgba(0, 229, 255, 0.2);
    }

    .game-logo:hover::before, .game-logo:hover::after {
        opacity: 0.8;
    }

    /* Metallic styling for 'COSMIC RUN' */
    .game-logo .main-title {
        font-family: 'Arial Black', Impact, sans-serif;
        font-size: 68px;
        margin: 0;
        line-height: 1;
        letter-spacing: 6px;
        background: linear-gradient(to bottom, #ffffff 0%, #b3b9c6 45%, #6a7487 50%, #98a3b8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-transform: uppercase;
        filter: drop-shadow(0px 6px 8px rgba(0,0,0,0.8));
    }

    /* Neon glow styling for 'REGENERATION' */
    .game-logo .sub-title {
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 20px;
        color: #00e5ff;
        margin: 10px 0 0 0;
        letter-spacing: 16px;
        font-weight: 600;
        text-transform: uppercase;
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.5);
    }

/* Container for the meteor cards display in setup */
/* Layout container to align text and cards side-by-side */
.meteor-setup-container {
    display: flex;
    align-items: center; /* Centers items vertically */
    gap: 30px;
    margin-top: 15px;
}

/* Wrapper for the left-side text */
.meteor-text-content {
    flex: 1 1 50%;
}

    /* Sub-list styling for meteor deck preparation steps */
    .meteor-text-content ul {
        list-style-type: disc;
        padding-left: 20px;
        margin: 10px 0 0 0;
    }

    .meteor-text-content li {
        margin-bottom: 10px;
        color: #e6f1ff; /* Ensures visibility on dark background */
    }

/* Update the existing card container to fit the right side perfectly */
.meteor-cards-setup {
    flex: 1 1 60%;
    display: flex;
    justify-content: center;
    gap: 10px; /* Slightly reduced gap to ensure it fits next to the text */
    margin: 0; /* Removes the old vertical margin */
    text-align: center;
}
    /* Individual card container */
    .meteor-cards-setup figure {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Scale images to 50% and add sci-fi styling */
    .meteor-cards-setup img {
        width: 50%;
        height: auto;
        border-radius: 6px;
        border: 1px solid rgba(0, 229, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
        transition: transform 0.2s ease;
    }

        /* Subtle interactive effect */
        .meteor-cards-setup img:hover {
            transform: scale(1.05);
            border-color: rgba(0, 229, 255, 0.8);
            box-shadow: 0 6px 16px rgba(0, 229, 255, 0.3);
        }

    /* Styling for the captions */
    .meteor-cards-setup figcaption {
        margin-top: 12px;
        color: #b3e5fc;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
    }

/* Sci-fi alert box for critical rule explanations */
.rules .important-note {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.3);
    border-left: 4px solid #ff3c3c;
    padding: 15px 20px;
    margin: 25px 0;
    color: #ffd6d6;
    font-size: 17px;
    line-height: 1.5;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 60, 60, 0.05);
    display: flex;
    align-items: center;
}

    /* Glowing exclamation mark icon for the alert */
    .rules .important-note::before {
        content: "!";
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 24px;
        height: 24px;
        background-color: #ff3c3c;
        color: #12182b;
        font-family: 'Arial Black', sans-serif;
        font-weight: bold;
        border-radius: 50%;
        margin-right: 15px;
        box-shadow: 0 0 10px #ff3c3c;
    }

    /* Emphasize the bold text inside the alert */
    .rules .important-note strong {
        color: #ffffff;
        letter-spacing: 1px;
        text-shadow: 0 0 5px rgba(255, 60, 60, 0.8);
        text-transform: uppercase;
    }

/* Sci-fi styling for gameplay examples */
.rules .example-box {
    background: rgba(112, 216, 255, 0.05);
    border: 1px solid rgba(112, 216, 255, 0.2);
    border-left: 4px solid #70d8ff;
    padding: 15px 20px;
    margin: 20px 0;
    color: #b3e5fc;
    font-size: 14.5px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    /* Bold title inside the example box */
    .rules .example-box strong {
        color: #ffffff;
        font-style: normal;
        display: block;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Epic sci-fi flavor text container for the intro */
.rules .epic-flavor-text {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.08) 50%, transparent 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.3);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    padding: 30px 40px;
    margin: 40px auto;
    text-align: center;
    font-style: italic;
    color: #e6f1ff;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 1px;
    position: relative;
    max-width: 850px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

    /* Decorative glowing horizontal accents */
    .rules .epic-flavor-text::before,
    .rules .epic-flavor-text::after {
        content: "";
        position: absolute;
        width: 60px;
        height: 2px;
        background: #00e5ff;
        top: -1px;
        box-shadow: 0 0 10px #00e5ff;
    }

    .rules .epic-flavor-text::before {
        left: 50%;
        transform: translateX(-150px);
    }

    .rules .epic-flavor-text::after {
        right: 50%;
        transform: translateX(90px);
    }

    /* Highlight the final hook question */
    .rules .epic-flavor-text strong {
        display: block;
        margin-top: 20px;
        color: #00e5ff;
        font-style: normal;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 3px;
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
        font-size: 20px;
    }

/* Sci-fi inventory grid for game components */
.components-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

    /* Individual component container acting as an inventory slot */
    .components-grid figure {
        background: rgba(16, 24, 43, 0.6);
        border: 1px solid rgba(0, 229, 255, 0.2);
        border-radius: 8px;
        padding: 15px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        min-width: 140px;
        transition: transform 0.2s ease, border-color 0.2s ease;
        box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    }

        /* Subtle hover interaction for the slots */
        .components-grid figure:hover {
            transform: translateY(-4px);
            border-color: rgba(0, 229, 255, 0.5);
            box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.8);
        }

    .components-grid img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        margin-bottom: 12px;
    }

    /* Wrapper for multiple small items like dice or ships */
    .components-grid figure .multiple-items {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 12px;
    }

    /* Typography for component labels */
    .components-grid figcaption {
        color: #b3e5fc;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    /* Specific sizing for alien cards to prevent the container from stretching */
    .components-grid figure .multiple-items.cards img {
        max-width: 120px; /* Adjust this value if you want the cards smaller or larger */
        height: auto;
        margin-bottom: 0;
    }

/* Clean, robust layout for the alien card anatomy */
.anatomy-showcase {
    position: relative;
    width: 260px; /* Fixed width for the card */
    margin: 40px 0 40px 300px; /* 300px left margin creates the empty space */
}

    .anatomy-showcase img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(0, 229, 255, 0.3);
        display: block;
    }

/* Text labels explicitly anchored to the left of the image container */
.anatomy-pointer {
    position: absolute;
    right: 100%;
    margin-right: 20px; /* 20px gap between text and image edge */
    width: 260px;
    text-align: right;
    transform: translateY(-50%);
}

/* Vertical anchors matching the card's visual design */
.pointer-1 {
    top: 51%;
}
/* Race Name */
.pointer-2 {
    top: 66%;
}
/* Recruit Requirement */
.pointer-3 {
    top: 80%;
}
/* Power */

/* Typography */
.anatomy-pointer h4 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: 'Arial Black', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.anatomy-pointer p {
    margin: 0;
    color: #b3e5fc;
    font-style: italic;
    font-size: 14px;
}

/* Base styles for the glowing arrow line */
.anatomy-pointer::after {
    content: "";
    position: absolute;
    left: calc(100% + 10px); /* Starts 10px to the right of the text */
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background-color: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
}

/* Base styles for the glowing arrowhead */
.anatomy-pointer::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #00e5ff;
    filter: drop-shadow(0 0 4px #00e5ff);
    z-index: 2;
}

/* Specific arrow lengths to reach into the card based on the sketch */
.pointer-1::after {
    width: 140px;
}

.pointer-1::before {
    left: calc(100% + 150px);
}

.pointer-2::after {
    width: 110px;
}

.pointer-2::before {
    left: calc(100% + 120px);
}

.pointer-3::after {
    width: 70px;
}

.pointer-3::before {
    left: calc(100% + 80px);
}

/* Grid layout for the alien races catalog - forced 2 columns */
.alien-races-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Strictly forces two equal columns */
    gap: 25px;
    margin: 20px 0 40px 0;
}

/* Fallback for very small mobile screens */
@media (max-width: 768px) {
    .alien-races-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual alien race card container */
.alien-race-card {
    background: rgba(16, 24, 43, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .alien-race-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 229, 255, 0.5);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 229, 255, 0.1);
    }

/* Top section containing the image and the main description */
.alien-race-top {
    display: flex;
    flex-direction: row; /* Explicitly force image and text side-by-side */
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

    /* Styling for the alien card images */
    .alien-race-top img {
        width: 130px;
        height: auto;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        object-fit: contain;
        align-self: flex-start;
    }

/* Typography for the race title and general power */
.alien-race-info {
    flex: 1;
}

    .alien-race-info h5 {
        color: #ffffff;
        font-family: 'Arial Black', sans-serif;
        font-size: 20px;
        margin: 0 0 8px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 4px rgba(0, 229, 255, 0.4);
    }

    .alien-race-info p {
        color: #e6f1ff;
        font-size: 17px;
        margin: 0;
        line-height: 1.5;
    }

/* Specific example text at the bottom of the card */
.alien-race-example {
    margin-top: auto; /* Pushes the example to the bottom if cards have different heights */
    padding-top: 15px;
    border-top: 1px dashed rgba(112, 216, 255, 0.3);
    color: #70d8ff;
    font-style: italic;
    font-size: 17px;
    text-align: center;
    line-height: 1.4;
}

/* Layout for the honor board section under Retiring Aliens */
.honor-board-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 15px;
    margin-bottom: 15px;
    background: rgba(16, 24, 43, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-left: 3px solid #00e5ff;
    padding: 15px 30px;
    border-radius: 0 6px 6px 0;
    width: fit-content; /* Prevents the box from stretching across the entire screen */
}

/* Styling the nested list to stand out slightly */
.honor-set-list {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}

    .honor-set-list li {
        margin-bottom: 8px;
        color: #b3e5fc;
    }

/* Constraining the honor board image */
.honor-board-image img {
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 229, 255, 0.2);
}

/* Ensure it stacks nicely on small mobile screens */
@media (max-width: 600px) {
    .honor-board-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Container for the retiring example */
.retiring-example-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(112, 216, 255, 0.05);
    border: 1px solid rgba(112, 216, 255, 0.2);
    border-left: 4px solid #70d8ff;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

/* Left column: Text */
.retiring-example-text {
    max-width: 350px; /* Forces the long paragraph to wrap nicely */
    color: #b3e5fc;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
}

    .retiring-example-text strong {
        display: block;
        font-style: normal;
        font-family: 'Arial Black', sans-serif;
        font-size: 18px;
        color: #ffffff;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Right column: Graphics */
.retiring-example-graphics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Top: Alien cards */
.retiring-example-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .retiring-example-cards img {
        width: 85px;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

/* Bottom: Board and absolute positioned markers */
.retiring-example-board-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px; /* Constrains the maximum width of the board */
    margin-right: 50px; /* Leaves room for arriving elements from the right */
}

    .retiring-example-board-wrapper .base-board {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    }

/* Placed static honor marker over the '9' shield (Requirements 2) */
.honor-board-placed-marker {
    position: absolute;
    top: 61%;
    left: 55%;
    width: 15% !important;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}

/* Arriving honor marker from the right edge */
.honor-board-arriving-marker {
    position: absolute;
    top: 61%;
    left: 112%;
    width: 15% !important;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}

/* Highlight box over the '6' shield (USER CORRECTED POSITION) */
.highlight-die {
    position: absolute;
    top: 61%;
    left: 70.5%;
    width: 15%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 4px #00e5ff);
}

/* Separate arrow elements with robust percentage endpoints (Requirements 1 refined execution) */
.honor-board-arriving-arrow-line {
    position: absolute;
    top: 61%;
    left: 78%;
    height: 2px;
    background-color: #00e5ff;
    box-shadow: 0 0 6px #00e5ff;
    z-index: 3; 
    width: 26%; 
    transform: translateY(-50%);
}

/* Arrowhead separate class for clean horizontal anchoring */
.honor-board-arriving-arrow-head {
    position: absolute;
    top: 61%;
    left: 80%; /* Point tip exactly at the right edge of the green highlight box */
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 7px solid #00e5ff; /* Points left */
    filter: drop-shadow(0 0 3px #00e5ff);
    z-index: 3; 
    transform: translate(-100%, -50%); /* Tip points left, anchor at its tip and shift the body left */
}

/* Fallback for mobile devices */
@media (max-width: 768px) {
    .retiring-example-container {
        flex-direction: column;
    }

    .retiring-example-board-wrapper {
        margin-right: 0;
    }
}

/* ==========================================================================
   SIDE PANEL OPTIMIZATION (#panelRules)
   ========================================================================== */

#panelRules {
    padding: 15px;
    font-size: 15px;
    text-shadow: none !important;
}

   
    #panelRules .scifi-header {
        height: auto;
        min-height: 40px;
        padding: 8px 15px 8px 10px;
        margin-top: 25px;
    }

        #panelRules .scifi-header .text {
            font-size: 14px;
            letter-spacing: 1px;
            line-height: 1.3;
            white-space: normal; 
        }

    
    #panelRules .alien-races-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    
    #panelRules .alien-race-card {
        padding: 12px;
    }

    #panelRules .alien-race-top img {
        width: 70px;
    }

    #panelRules .alien-race-info h5 {
        font-size: 14px;
    }

    #panelRules .alien-race-info p,
    #panelRules .alien-race-example {
        font-size: 13px;
    }

   
    #panelRules .honor-board-container,
    #panelRules .retiring-example-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
        margin: 15px 0;
    }

    #panelRules .retiring-example-text {
        max-width: 100%;
    }

    #panelRules .retiring-example-cards img {
        width: 55px;
    }

    
    #panelRules .anatomy-showcase {
        margin: 20px auto;
        width: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #panelRules .anatomy-pointer {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        text-align: center;
        margin: 15px 0 0 0;
    }

        #panelRules .anatomy-pointer::before,
        #panelRules .anatomy-pointer::after {
            display: none; 
        }


.image-placeholder {
    background-color: rgba(28, 37, 65, 0.5);
    border: 1px dashed #70d8ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #70d8ff;
    margin: 20px 0;
    font-style: italic;
    opacity: 0.7;
}