:root {
    /* Brand Colors derived from PlayFame logo (Vegas marquee star + neon purple wordmark) */
    --base-bg:      #1A0836; /* very dark royal purple (logo background) */
    --card-bg:      #2A1550; /* raised surface purple */
    --card-border:  #4B1F80; /* neon purple outline */

    --primary:      #B048E8; /* neon purple — the "FAME" wordmark */
    --secondary:    #E9245C; /* hot pink / magenta — star interior */
    --accent:       #FCD458; /* warm marquee-bulb gold — bulbs on the star */
    --cream:        #F5EFE0; /* soft off-white — "PLAY" wordmark */
    --text-main:    #FFFFFF;
    --text-muted:   #C2A6E3; /* soft lavender */

    /* Layout & Styling */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    --shadow-glow:  0 0 24px rgba(176, 72, 232, 0.45);
    --shadow-gold:  0 0 18px rgba(252, 212, 88, 0.55);
    --shadow-pink:  0 0 22px rgba(233, 36, 92, 0.5);

    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --max-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--base-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Legacy text utilities kept for HTML compatibility; remapped to new palette. */
.text-gold {
    color: var(--accent); /* now warm marquee gold */
}

.text-cyan {
    color: var(--cream); /* was cyan; now soft cream to match "PLAY" wordmark */
}

.text-pink {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7A24C9);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(176, 72, 232, 0.65);
}

/* .btn-gold is our main CTA — sitewide primary action.
   Repainted to match logo: hot magenta -> deep pink gradient with gold marquee ring. */
.btn-gold {
    background: linear-gradient(135deg, #FF4A85, var(--secondary));
    color: #fff;
    box-shadow: var(--shadow-pink), inset 0 0 0 2px rgba(252, 212, 88, 0.85);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(233, 36, 92, 0.75), inset 0 0 0 2px var(--accent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(176, 72, 232, 0.14);
    color: var(--cream);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(26, 8, 54, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

/* Real logo image: replaces the old ★ + "PlayFame" text combo. */
.logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 200px;
    filter: drop-shadow(0 0 12px rgba(176, 72, 232, 0.55));
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 16px rgba(233, 36, 92, 0.7));
}

/* Legacy star kept only as an ARIA-safe fallback (hidden when logo image present). */
.logo-star {
    color: var(--accent);
    font-size: 1.8rem;
    display: none;
}

.logo-wrap.has-img .logo-text {
    display: none;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px 10px;
}

/* Compact CTA shown only on mobile inside the header */
.header-cta-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-cta-mobile .btn {
    padding: 9px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-pill);
}

/* Mobile nav drawer */
.nav-desktop.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 8, 54, 0.98);
    padding: 24px 20px;
    border-bottom: 1px solid var(--card-border);
    gap: 18px;
    z-index: 999;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Asymmetrical Layouts (Unique Structure) */
.hero-stage {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: var(--shadow-glow);
    border: 3px solid var(--card-border);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Masonry Stats / Features Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin: 60px 0;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(176, 72, 232, 0.14), transparent);
}

.bento-item.medium {
    grid-column: span 2;
}

/* Tables */
.data-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.fame-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fame-table th,
.fame-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.fame-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.fame-table tr:last-child td {
    border-bottom: none;
}

/* Internal SEO Content Area */
.seo-article {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin: 60px 0;
    border: 1px solid var(--card-border);
}

.seo-article h2 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.seo-article h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-article p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.seo-article ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-article li {
    margin-bottom: 10px;
}

/* Mobile Sticky CTA */
.mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--base-bg);
    padding: 15px;
    border-top: 1px solid var(--primary);
    z-index: 1000;
    display: none;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

/* Visual Diagrams (CSS Based) */
.stat-bar-wrap {
    margin: 20px 0;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-bar-track {
    height: 12px;
    background: var(--base-bg);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-pill);
    box-shadow: 0 0 8px rgba(233, 36, 92, 0.4);
}

/* Footer & Author */
.site-footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    margin-top: 40px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

/* Media Queries */
@media (max-width: 992px) {

    .nav-desktop,
    .header-cta {
        display: none;
    }

    .header-cta-mobile {
        display: inline-flex;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .header-inner {
        gap: 8px;
    }

    .logo-wrap {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 40px;
        max-width: 150px;
    }

    .logo-star {
        font-size: 1.5rem;
    }

    .mobile-sticky {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        transform: rotate(0);
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
    }

    .seo-article {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .header-cta-mobile .btn {
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .logo-wrap {
        font-size: 1.05rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .seo-article {
        padding: 20px;
    }
}