        :root {
            --primary-blue: #007bff;
            --primary-green: #28a745;
            --primary-green-hover: #218838;
            --dark-bg: #000;
            --card-bg: #1a1a1a;
            --modal-bg: #2c2c2c;
            --text-primary: #e0e0e0;
            --text-secondary: #cccccc;
            --text-white: #ffffff;
            --border-color: #2a2a2a;
            --warning-yellow: #ffb007;
            --gold: #ffb007;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            margin: 0;
            background-color: var(--dark-bg);
            color: var(--text-primary);
            padding: 0;
            padding-top: calc(var(--navbar-height) + 20px);
            overflow-x: hidden;
            user-select: none;
        }

        .ticket-page-container {
            max-width: 900px;
            margin: 0 auto;
            animation: fadeIn 0.5s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- Header Section (Image + Info) --- */
        h1 {
            text-align: center;
            color: var(--title);
            margin-bottom: 5px;
            margin-top: 0;
            font-size: 2.8em;
            font-weight: 800;
            letter-spacing: 1px;
        }

        h2 {
            text-align: center;
            color: var(--title);
            margin-bottom: 30px;
            margin-top: 0;
            font-size: 1.5em;
            font-weight: 400;
            letter-spacing: 1px;
        }

        .ticket-header {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
            align-items: flex-start;
        }

        .ticket-image-container {
            flex: 1;
            min-width: 300px;
        }

        .ticket-image-container img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            border: 2px solid var(--border-color);
        }

        .ticket-info {
            flex: 1.5;
            display: flex;
            flex-direction: column;
        }

        .ticket-description {
            font-size: 1.1em;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-top: 0;
        }

        .cta-play-button {
            display: block;
            background-color: var(--primary);
            color: var(--text-white);
            text-shadow: #0000007b 1.5px 1.5px 2px;
            padding: 15px 30px;
            font-size: 1.5em;
            font-weight: bold;
            text-align: center;
            border-radius: 8px;
            text-decoration: none;
            margin-bottom: 10px;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }
        .cta-play-button:hover {
            background-color: var(--primary-hover);
            transform: scale(1.03);
        }
        .cta-play-button:active {
            transform: scale(0.98);
        }

        @keyframes breathing-glow {
    0% {
        /* Use the variable with a 0 alpha */
        box-shadow: 0 0 10px 0px rgba(var(--btn-glow-color), 0);
    }
    50% {
        /* Use the variable with a 0.4 alpha */
        box-shadow: 0 0 15px 5px rgba(var(--btn-glow-color), 0.5);
    }
    100% {
        box-shadow: 0 0 10px 0px rgba(var(--btn-glow-color), 0);
    }
}

@keyframes expanding-pulse {
    0% {
        /* Use the variable with a 0.9 alpha */
        box-shadow: 0 0 0 0px rgba(var(--btn-glow-color), 0.9);
        opacity: 1;
    }
    100% {
        /* Use the variable with a 0 alpha */
        box-shadow: 0 0 0 15px rgba(var(--btn-glow-color), 0);
        opacity: 0;
    }
}

@keyframes throb {
    0% { transform: scale(1); }
    40% { transform: scale(1); }
    50% { transform: scale(.99); }
    60% { transform: scale(1.01); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

.small-btn, .cta-play-button {
    /* !! KEY CHANGE HERE !!
      Define the variable. Notice it's JUST the RGB values, no parentheses.
      You would set this to match your button's background-color.
    */

    position: relative;
    z-index: 1;
    animation: breathing-glow 1.5s infinite .5s ease-in-out, throb 3s infinite .1s ease-in-out;
    transition: background-color 0.2s ease, 
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.small-btn::before, .cta-play-button::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 8px; /* This should probably match your button's border-radius */
    animation: expanding-pulse 1.5s infinite ease-out;
}

.small-btn:hover, .cta-play-button:hover {
    /* Use the variable on hover, too! */
    box-shadow: 0 0 25px 8px rgba(var(--btn-glow-color), 1);
}

/* I noticed a potential typo in your original code.
  You probably meant to fade out the pulse on :hover for BOTH buttons,
  so I changed `.cta-play-button:before` to `.cta-play-button:hover::before`
*/
.small-btn:hover::before, .cta-play-button:hover::before {
    opacity: 0;
}

        /* --- Main Body Content (Details, How to Play) --- */
        .ticket-body-content {
            background-color: var(--card-bg);
            padding: 25px 30px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }
        
        .ticket-body-content h2 {
            color: var(--title);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 10px;
            margin-top: 0;
            margin-bottom: 20px;
        }
        
        .ticket-body-content p, .ticket-body-content ul {
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .ticket-body-content ul {
            padding-left: 20px;
        }
        .ticket-body-content li {
            margin-bottom: 10px;
        }

        .ticket-details-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            font-size: 1.1em;
        }
        .ticket-details-table td {
            padding: 12px 5px;
            border-bottom: 1px solid var(--border-color);
        }
        .ticket-details-table tr:last-child td {
            border-bottom: none;
        }
        .ticket-details-table td:first-child {
            font-weight: bold;
            color: var(--text-primary);
        }
        .ticket-details-table td:last-child {
            text-align: right;
            color: var(--text-secondary);
        }

        .flex-grid {
            display: flex;
        }
        .col {
            flex: 1;
        }
        @media (max-width: 650px) {
  .flex-grid {
    display: block;
  }
}

/* --- Rating System Styles --- */
.rating-section-container {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
}

/* NEW: Container for the layered stars */
.star-rating-display {
    color: var(--gold);
    font-size: 1.2em;
    margin-bottom: 5px;
    position: relative; /* Container for absolute positioning */
    display: inline-block; /* So it doesn't take full width */
}

/* NEW: Common styles for both star layers */
.star-rating-display .stars-empty,
.star-rating-display .stars-filled {
    display: flex;
    gap: 2px; /* Adjust spacing between stars */
}

/* NEW: The filled-star layer */
.star-rating-display .stars-filled-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden; /* This is what clips the stars */
    color: var(--gold);
    transition: width 0.3s ease;
}

/* NEW: Prevents filled stars from wrapping */
.star-rating-display .stars-filled {
    width: max-content; 
    color: var(--gold);
}

/* NEW: Make empty stars a dimmer background color */
.star-rating-display .stars-empty {
    color: var(--border-color); 
}

#rating-info-text {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.star-rating-input {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating-input .stars {
    display: flex;
    gap: 3px;
    color: #4f4f4f;
    font-size: 1.3em;
}

.star-rating-input .stars i {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}

/* Star hover effect */
        .star-rating-input .stars .fas {
            color: var(--gold);
        }

/* 'selected' class will be added by JS */
.star-rating-input .stars i.selected {
    color: var(--gold);
    transform: scale(1.1);
}

/* 'disabled' class added by JS after voting */
.star-rating-input.disabled {
    opacity: 0.6;
    pointer-events: none;
}
        
        #ticketScreenshot {
            width: auto;
            height: auto;
            max-height: 400px;
            border-radius: 10px;
            display: block;
            margin: 20px auto 0 auto;
            border: 2px solid var(--border-color);
        }

        /* --- Internal Linking Section --- */
        .more-games-section {
            margin-top: 40px;
        }
        
        .more-games-section h2 {
            text-align: center;
            color: var(--text-white);
            font-size: 1.8em;
            margin-bottom: 25px;
        }

        .more-games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .game-card-link {
            background-color: var(--card-bg);
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-primary);
            text-shadow: #000 1px 1px 2px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .game-card-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .game-card-link img {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 600 / 330; /* 600x330 aspect ratio */
        }
        .game-card-link span {
            display: block;
            padding: 15px;
            text-align: center;
            font-weight: 500;
            font-size: 1.1em;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .avgWinUp {
            color: var(--primary-green);
            font-weight: bold;
            display: inline-block;
            transform: scale(1.1) translateY(-.1rem);
            -webkit-transform: scale(1.1) translateY(-.1rem);
        }
        .avgWinUpUp {
            color: var(--primary-green);
            font-weight: bold;
            display: inline-block;
            transform: rotate(200deg) scaleX(1) scale(1.3) translateY(-.1rem);
            -webkit-transform: rotate(200deg) scaleX(1) scale(1.3) translateY(-.1rem);
        }

        footer {
    height: auto;
    margin-top: 20px;
    padding: 10px;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--navs);
    transition: all 1s;
    opacity: 0;
    animation: overlayFadeIn 5s forwards;
}
footer a {
    margin-inline: 10px;
    color: var(--disabled-text);
    font-size: .8em;
}

    @keyframes overlayFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
        
        /* --- Responsive Adjustments --- */
        @media (max-width: 768px) {
            h1 { font-size: 2.2em; }
            .ticket-header {
                flex-direction: column;
                gap: 20px;
            }
            .ticket-image-container { min-width: 100%; }
            .cta-play-button { font-size: 1.3em; }
        }

        @media (max-width: 480px) {
            body { padding: 10px; padding-top: calc(var(--navbar-height) + 20px); }
            .ticket-page-container { padding: 0 10px; }
            h1 { font-size: 1.8em; margin-bottom: 5px; }
            h2 { font-size: 1.2em; }
            .ticket-body-content { padding: 20px 15px; }
            .ticket-description { text-align: center; }
            .ticket-details-table { font-size: 1em; }
            .more-games-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 10px;
            }
            .game-card-link span { font-size: 1em; padding: 10px; }
            footer {flex-direction: column;}
        }