/* ============================================
   L-PAGE – Gaming Hub Stylesheet
   Dark Neon Anime/Gaming Aesthetic
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;

    --neon-cyan: #00f0ff;
    --neon-purple: #b44aff;
    --neon-pink: #ff2d7b;
    --neon-green: #39ff14;
    --neon-yellow: #ffe600;
    --neon-orange: #ff6b00;

    --text-primary: #f0f0f5;
    --text-secondary: #8888aa;
    --text-muted: #555577;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 240, 255, 0.15);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 70px;
    --section-padding: clamp(60px, 10vw, 120px);

    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    --glow-purple: 0 0 20px rgba(180, 74, 255, 0.3), 0 0 60px rgba(180, 74, 255, 0.1);
    --glow-pink: 0 0 20px rgba(255, 45, 123, 0.3), 0 0 60px rgba(255, 45, 123, 0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
canvas { display: block; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* --- Custom Cursor --- */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-glow.hovering {
    width: 50px;
    height: 50px;
    border-color: var(--neon-pink);
}

/* --- Particle Background --- */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: flex;
    gap: 4px;
}

.logo-bracket {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) clamp(20px, 4vw, 60px) 40px;
    overflow: hidden;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 20px;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--neon-green);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line-1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.title-line-2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-top: 5px;
}

.title-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

/* --- Buttons --- */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform 0.3s;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* --- Hero Avatar --- */
.hero-avatar-container {
    position: relative;
    z-index: 2;
    margin-left: 60px;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1.5px solid rgba(0, 240, 255, 0.12);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 20s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-ring-2 {
    width: 300px;
    height: 300px;
    border-color: rgba(180, 74, 255, 0.08);
    animation-direction: reverse;
    animation-duration: 30s;
}

.avatar-ring-2::before {
    background: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

@keyframes ring-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1e1e3a, #0e0e1e);
    border: 2px solid rgba(0, 240, 255, 0.25);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.15),
        0 0 60px rgba(0, 240, 255, 0.05),
        inset 0 0 40px rgba(0, 180, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.avatar-placeholder:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.3),
        0 0 80px rgba(0, 240, 255, 0.1),
        0 0 120px rgba(100, 0, 255, 0.08),
        inset 0 0 50px rgba(0, 180, 255, 0.1);
}

.avatar-canvas,
.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
}


.avatar-name-tag {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-shadow: var(--glow-cyan);
}

.tag-icon {
    animation: tag-pulse 2s ease-in-out infinite;
}

@keyframes tag-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* --- Ticker / Marquee --- */
.ticker {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    to { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* --- Games Section --- */
.section-games {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.game-card:hover .game-card-glow {
    opacity: 1;
}

.game-card-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.game-card:hover .game-card-inner {
    border-color: transparent;
}

.game-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0d0d14;
}

.game-preview canvas {
    width: 100%;
    height: 100%;
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--neon-cyan);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--glow-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

.play-icon {
    margin-left: 4px;
}

.game-info {
    padding: 20px;
}

.game-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.game-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* --- Game Modal --- */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: none;
    flex-direction: column;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior: contain;
    touch-action: none;
}

.game-modal.active {
    display: flex;
}

.game-modal canvas {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 44px;
}

.game-modal-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--neon-cyan);
}

.game-modal-close {
    color: var(--text-secondary);
    font-size: 1.4rem;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.game-modal-close:hover {
    color: var(--neon-pink);
}

.game-modal canvas {
    flex: 1;
    width: 100%;
}

.game-modal-hud {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    min-height: 36px;
    align-items: center;
    flex-shrink: 0;
}

/* --- Roblox Section --- */
.section-roblox {
    background: var(--bg-secondary);
}

.roblox-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px 24px;
    transition: border-color 0.3s, transform 0.3s;
    display: block;
}

.news-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(4px);
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}

.news-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(180, 74, 255, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(180, 74, 255, 0.2);
}

.news-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Sidebar --- */
.roblox-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-icon {
    font-size: 1.1rem;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
    min-width: 24px;
}

.trending-name {
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-players {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qs-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.qs-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
}

/* --- Anime Section --- */
.section-anime {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.anime-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.anime-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s, border-color 0.4s;
}

.anime-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-purple);
}

.anime-card-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.anime-gradient-1 { background: linear-gradient(135deg, #1a0a2e, #3d1a6e, #e040fb22); }
.anime-gradient-2 { background: linear-gradient(135deg, #0a1a2e, #1a3d6e, #40a0fb22); }
.anime-gradient-3 { background: linear-gradient(135deg, #1a2e0a, #3d6e1a, #40fb4022); }
.anime-gradient-4 { background: linear-gradient(135deg, #2e0a1a, #6e1a3d, #fb404022); }

.anime-card-info {
    padding: 16px 20px;
}

.anime-card-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.anime-card-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.anime-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: var(--neon-yellow);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.anime-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(180, 74, 255, 0.12);
    color: var(--neon-purple);
    border: 1px solid rgba(180, 74, 255, 0.2);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.anime-coming-soon {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 20px;
    border: 1px dashed var(--border-subtle);
    border-radius: 8px;
}

/* --- Subscribe Section --- */
.section-subscribe {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.subscribe-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.subscribe-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.subscribe-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscribe-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.subscribe-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sub-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.sub-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.sub-input::placeholder {
    color: var(--text-muted);
}

.sub-btn {
    width: 100%;
    justify-content: center;
}

.subscribe-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.subscribe-hint.success {
    color: var(--neon-green);
}

.subscribe-hint.error {
    color: var(--neon-pink);
}

/* --- Highscore Modal --- */
.highscore-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.highscore-modal.active {
    display: flex;
}

.highscore-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.highscore-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 8px;
    transition: color 0.3s;
}

.highscore-close:hover {
    color: var(--neon-pink);
}

.highscore-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.highscore-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--neon-yellow);
    margin-bottom: 8px;
}

.highscore-score {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 16px;
}

.highscore-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.highscore-modal .subscribe-inputs {
    flex-direction: column;
}

.highscore-skip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 14px;
    padding: 8px;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.highscore-skip:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .subscribe-inputs {
        flex-direction: column;
    }

    .subscribe-box {
        padding: 36px 24px;
    }

    .highscore-modal-inner {
        padding: 30px 24px;
    }
}

/* --- About Section --- */
.section-about {
    background: var(--bg-primary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.about-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1e1e3a, #0e0e1e);
    border: 2px solid rgba(180, 74, 255, 0.3);
    box-shadow:
        0 0 30px rgba(180, 74, 255, 0.15),
        0 0 60px rgba(180, 74, 255, 0.05),
        inset 0 0 40px rgba(100, 0, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.5s ease;
}

.about-avatar:hover {
    box-shadow:
        0 0 40px rgba(180, 74, 255, 0.3),
        0 0 80px rgba(0, 240, 255, 0.1),
        inset 0 0 50px rgba(100, 0, 255, 0.1);
}

.about-avatar .avatar-canvas,
.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
}

.about-level {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.level-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 16px;
    background: var(--neon-purple);
    color: white;
    border-radius: 20px;
    letter-spacing: 0.1em;
    box-shadow: var(--glow-purple);
}

.about-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 500px;
}

.about-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(180, 74, 255, 0.08);
    border: 1px solid rgba(180, 74, 255, 0.2);
    color: var(--neon-purple);
    transition: background 0.3s, border-color 0.3s;
}

.interest-tag:hover {
    background: rgba(180, 74, 255, 0.15);
    border-color: var(--neon-purple);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Exit-Intent Popup --- */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: rgba(6, 6, 12, 0.92);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exit-popup.active {
    display: flex;
}

.exit-popup-inner {
    background: linear-gradient(165deg, #16162a 0%, #0e0e1e 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: exitPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 60px rgba(0, 240, 255, 0.08),
        0 0 120px rgba(180, 74, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes exitPop {
    from { transform: scale(0.7) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.exit-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--text-muted);
    font-size: 1.3rem;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.exit-popup-close:hover {
    color: var(--neon-pink);
}

.exit-popup-avatar {
    margin: 0 auto 18px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    overflow: hidden;
}

.exit-popup-avatar canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.exit-popup-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exit-popup-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exit-input {
    text-align: center;
    font-size: 0.9rem;
    padding: 14px 18px;
}

.exit-btn {
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-size: 0.85rem;
}

.exit-popup-dismiss {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding: 8px;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.exit-popup-dismiss:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .exit-popup-inner {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }

    .exit-popup-title {
        font-size: 1.2rem;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-avatar-container {
        order: 1;
        margin: 0 0 40px 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .roblox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    /* Hide custom cursor on touch devices */
    .cursor-glow { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .anime-showcase {
        grid-template-columns: 1fr 1fr;
    }
}
