/* BIG GAMES INSPIRED STYLING FOR BLACKHOLE STUDIO */
:root {
    --bg-dark: #0a0a14;
    --bg-card: rgba(20, 20, 35, 0.75);
    --bg-card-hover: rgba(28, 28, 48, 0.95);
    --border-glow: rgba(168, 85, 247, 0.2);
    --border-hover: rgba(168, 85, 247, 0.55);
    
    --purple-primary: #8b5cf6;
    --purple-glow: #a855f7;
    --cyan-glow: #06b6d4;
    --blue-glow: #3b82f6;
    --green-accent: #10b981;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 9999px;
    --transition: all 0.22s ease-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#bh-main-view {
    flex: 1 0 auto;
}

.bh-analytics-spa-section {
    flex: 1 0 auto;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.studio-footer {
    margin-top: auto;
}

/* Background Atmosphere */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}
.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -150px;
    left: 20%;
}
.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    top: 600px;
    right: 5%;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation Header */
.studio-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 20, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.brand-badge:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.brand-logo.sm {
    width: 34px;
    height: 34px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan-glow);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    padding: 8px 0;
    transition: var(--transition);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.85);
    transition: width 0.25s ease-out;
    pointer-events: none;
}
.nav-item:hover {
    color: #ffffff;
}
.nav-item:hover::after {
    width: 100%;
}

.btn-join {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-join:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 70px 0 50px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.highlight-purple {
    color: #c084fc;
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.hero-desc strong {
    color: #ffffff;
}

/* Stats Ribbon */
.stats-ribbon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-pill);
    padding: 16px 40px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cyan-glow);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

/* Sections Global */
.section {
    padding: 60px 0;
    scroll-margin-top: 100px;
}

.section-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* AI-Feel Section Badges / Blue Lines */
.section-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #67e8f9;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    display: inline-block;
}

/* Discord Header Button */
.btn-discord-head {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.45);
    color: #c7d2fe;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap !important;
    transition: var(--transition);
}

.btn-discord-head svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0;
    margin: 0 !important;
}

#bh-guest-view, #bh-user-view {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#bh-guest-view svg, #bh-user-view img {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}
.btn-discord-head:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* Discord Section & Card */
.discord-section {
    padding: 40px 0;
}

.discord-card {
    position: relative;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(20, 20, 45, 0.85) 100%);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(88, 101, 242, 0.1);
    text-align: center;
}

.discord-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.35) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.discord-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.discord-badge {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    color: #a5b4fc;
}
.discord-dot {
    background: #5865f2;
    box-shadow: 0 0 8px #5865f2;
}

.discord-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.discord-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 22px;
}

.discord-perks {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.dperk {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.btn-discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
    transition: var(--transition);
}
.btn-discord-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.65);
}
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.carousel-arrow:hover:not(:disabled) {
    background: rgba(147, 51, 234, 0.3);
    border-color: #a855f7;
    transform: scale(1.08);
}
.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-page-indicator {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 4px;
}

/* Filter Buttons */
.game-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.filter-btn.active {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border-color: #a855f7;
    color: #ffffff;
}

/* Carousel Track & Cards (4 Per Row Max) */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
}

.game-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #141423;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.game-card:hover .game-thumb {
    transform: scale(1.05);
}

.game-badge-group {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    color: #c084fc;
}

.game-badges-corner {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.game-visits-badge, .game-playing-badge {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-playing-badge {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.game-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    line-height: 1.25;
}

.game-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-play {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
}
.btn-play:hover {
    transform: scale(1.04);
}

/* Creators Grid */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}
.creator-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.creator-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
    flex-shrink: 0;
}
.avatar-ring.avatar-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    display: block;
}

.creator-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.tag-role {
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--cyan-glow);
    text-transform: uppercase;
}
.tag-role.tag-blue {
    color: #60a5fa;
}

.creator-handle {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.creator-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.creator-stats-row {
    display: flex;
    justify-content: space-between;
    background: rgba(10, 10, 20, 0.5);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cstat {
    display: flex;
    flex-direction: column;
}

.cstat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cstat-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}
.highlight-visits {
    color: #38bdf8;
}

.btn-creator-follow {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
}
.btn-creator-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(147, 51, 234, 0.5);
}
.btn-blue-follow {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.btn-blue-follow:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* Communities Section */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.group-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.group-primary-highlight {
    border-color: rgba(168, 85, 247, 0.5);
}

.group-blue-highlight {
    border-color: rgba(59, 130, 246, 0.5);
}

.group-xtb-highlight {
    border-color: rgba(16, 185, 129, 0.45);
}

.group-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.group-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid rgba(168, 85, 247, 0.5);
}
.group-logo-blue {
    border-color: rgba(59, 130, 246, 0.6);
}

.group-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.group-id-tag {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.group-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.group-metrics {
    display: flex;
    justify-content: space-around;
    background: rgba(10, 10, 20, 0.5);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gmetric {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gmetric-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.gmetric-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--cyan-glow);
}

.btn-group-join {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
}
.btn-group-join:hover {
    background: rgba(255, 255, 255, 0.14);
}
.primary-join {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border-color: #a855f7;
}
.blue-join {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;
}
.xtb-join {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #34d399;
}

/* Footer */
.studio-footer {
    background: #080811;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0 24px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1100px) {
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px;
    }
}

@media (max-width: 860px) {
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }
}

@media (max-width: 540px) {
    .carousel-slide {
        grid-template-columns: 1fr !important;
    }
    .stats-ribbon {
        flex-direction: column;
        gap: 16px;
        border-radius: var(--radius-lg);
        padding: 20px;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    .nav-links {
        display: none;
    }
}


/* =============================================
   BLACKHOLE DISCORD AUTH
   ============================================= */

/* --- Discord wrap: one button for both states --- */
.bh-discord-wrap {
    position: relative;
    display: inline-flex;
}

.bh-discord-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: visible !important;
}

/* Avatar shown inside button when logged in */
.bh-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88, 101, 242, 0.6);
    display: block;
}

.bh-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e7ff;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 3-second hover ring (guest only) */
.bh-hover-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: -1;
}
.bh-discord-wrap:hover .bh-hover-ring { opacity: 1; }

/* --- Dropdown — screenshot-style dark menu --- */
.bh-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: rgba(20, 24, 40, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}
.bh-dropdown.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Profile header inside dropdown (logged in) */
.bh-dd-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
}
.bh-dd-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88,101,242,0.5);
    flex-shrink: 0;
}
.bh-dd-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}
.bh-dd-tag {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

.bh-dd-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 2px 4px 4px;
}

/* Dropdown menu items — like the screenshot */
.bh-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1d5db;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.14s, color 0.14s;
}
.bh-dd-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.bh-dd-item svg { opacity: 0.6; flex-shrink: 0; }
.bh-dd-item:hover svg { opacity: 1; }

.bh-dd-item-danger { color: #f87171; }
.bh-dd-item-danger:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

.bh-modal-wide {
    width: min(650px, calc(100vw - 32px)) !important;
    max-height: 85vh;
    overflow-y: auto;
}

.bh-close-x {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.bh-close-x:hover { color: #fff; }

.bh-admin-add-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}

.bh-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bh-admin-perm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.bh-del-btn {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.bh-del-btn:hover {
    background: rgba(239,68,68,0.25);
}

/* Play button: just the arrow, compact & round/pill */
.btn-play {
    padding: 8px 16px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* [A] Game Analyse button */
.btn-analyse {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-analyse:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.55);
}

.bh-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.bh-badge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 12px;
}
.bh-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}

/* --- Modal Overlay --- */
.bh-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.bh-modal-overlay.active {
    display: flex;
}

.bh-modal {
    background: #13182a;
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
    width: min(420px, calc(100vw - 32px));
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), 0 0 60px rgba(88, 101, 242, 0.1);
    animation: bhModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bhModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bh-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.bh-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 10px 0 6px;
}

.bh-modal-header p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.bh-modal-body label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.bh-modal-body input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.bh-modal-body input:focus {
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.bh-input-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.bh-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.bh-btn-primary {
    width: 100%;
    padding: 13px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bh-btn-primary:hover { background: #4752C4; }
.bh-btn-primary:active { transform: scale(0.98); }
.bh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.bh-btn-secondary {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.bh-btn-secondary:hover { background: rgba(255,255,255,0.05); color: #f8fafc; }

.bh-check-icon, .bh-success-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* ========================================================
   DISCORD LEVEL LEADERBOARD STYLES
   ======================================================== */
.bh-leaderboard-container {
    margin-top: 32px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.bh-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-lb-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bh-lb-trophy {
    font-size: 1.8rem;
    line-height: 1;
}

.bh-lb-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.04em;
    margin: 0;
}

.bh-lb-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 3px 0 0;
}

.bh-lb-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.bh-lb-status {
    text-align: center;
    padding: 24px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.bh-lb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.bh-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform 0.18s, border-color 0.18s;
}

.bh-lb-row:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.06);
}

.bh-lb-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bh-lb-rank-1 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
}
.bh-lb-rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #000;
}
.bh-lb-rank-3 {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
}

.bh-lb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.bh-lb-info {
    flex: 1;
    min-width: 0;
}

.bh-lb-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bh-lb-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.bh-lb-level-tag {
    background: rgba(88, 101, 242, 0.2);
    color: #a5b4fc;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
}

/* ========================================================
   GAME ANALYTICS STANDALONE SPA SECTION
   ======================================================== */
.bh-analytics-spa-section {
    padding: 60px 0 100px;
    animation: bhFadeIn 0.25s ease-out;
}

@keyframes bhFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bh-analytics-spa-header {
    margin-bottom: 24px;
}

.bh-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.bh-back-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: #fff;
    transform: translateX(-3px);
}

.bh-analytics-spa-card {
    background: #111827;
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(88, 101, 242, 0.08);
}

