/* ═══════════════════════════════════════════════════════════════
   BART SIMPSON - STREET ART REBEL SITE
   Graffiti / Neon / Skateboard Punk Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bart-yellow: #FFD90F;
    --bart-yellow-light: #FFE44D;
    --bart-orange: #FF6B2B;
    --bart-blue: #2196F3;
    --bart-blue-dark: #1565C0;
    --bart-pink: #FF1493;
    --bart-green: #39FF14;
    --bart-red: #FF0040;
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --bg-metal: #1a1a2e;
    --text-primary: #ecf0f1;
    --text-dim: #95a5a6;
    --font-graffiti: 'Permanent Marker', cursive;
    --font-display: 'Bungee Shade', cursive;
    --font-body: 'Russo One', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-black);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: var(--bart-yellow); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--bart-yellow-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--bart-yellow);
    box-shadow: 0 2px 20px rgba(255, 217, 15, 0.15);
    padding: 10px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-graffiti);
    font-size: 1.8rem;
    color: var(--bart-yellow);
    text-shadow: 0 0 15px rgba(255, 217, 15, 0.5), 2px 2px 0 var(--bart-orange);
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover { color: var(--bart-yellow); text-shadow: 0 0 10px rgba(255, 217, 15, 0.5); }
.btn-cta-nav {
    background: linear-gradient(135deg, var(--bart-yellow), var(--bart-orange));
    color: var(--bg-black) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    text-shadow: none !important;
}
.btn-cta-nav:hover { filter: brightness(1.2); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--bart-yellow);
    transition: all 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 ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(10,10,10,0.45) 0%, rgba(26,26,0,0.35) 40%, rgba(45,26,0,0.35) 70%, rgba(10,10,10,0.45) 100%),
                url('https://i0.wp.com/teamsbackground.net/wp-content/uploads/2020/04/ET50dgeU8AECpvt.jpg?w=1920&ssl=1') center/cover no-repeat;
    overflow: hidden;
    text-align: center;
    padding: 100px 20px 60px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}
.spray-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.spray-particle {
    position: absolute;
    border-radius: 50%;
    animation: sprayDrift linear infinite;
    opacity: 0;
}
@keyframes sprayDrift {
    0% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
    15% { opacity: 0.8; }
    80% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-85vh) scale(1.5) rotate(180deg); }
}
.floating-decor {
    position: absolute;
    font-size: 3rem;
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
}
.decor-left { left: 5%; top: 30%; animation: floatLeft 6s ease-in-out infinite; }
.decor-right { right: 5%; top: 40%; animation: floatRight 7s ease-in-out infinite; }
.decor-top { left: 50%; top: 10%; animation: floatTop 5s ease-in-out infinite; }
@keyframes floatLeft { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes floatRight { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-25px) rotate(-5deg); } }
@keyframes floatTop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.hero-content { position: relative; z-index: 3; max-width: 800px; }
.hero-face {
    font-size: 5rem;
    margin-bottom: 10px;
    animation: faceFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 217, 15, 0.4));
}
@keyframes faceFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 9rem);
    color: var(--bart-yellow);
    text-shadow:
        0 0 20px rgba(255, 217, 15, 0.8),
        0 0 40px rgba(255, 217, 15, 0.5),
        0 0 80px rgba(255, 107, 43, 0.3);
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
}
.glitch {
    animation: titlePulse 3s ease-in-out infinite;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: inherit;
}
.glitch::before {
    color: var(--bart-pink);
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    z-index: -1;
}
.glitch::after {
    color: var(--bart-green);
    animation: glitch2 3s infinite;
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
    z-index: -1;
}
@keyframes glitch1 {
    0%,90%,100% { transform: translate(0); }
    92% { transform: translate(5px, -3px); }
    94% { transform: translate(-5px, 3px); }
    96% { transform: translate(3px, 1px); }
    98% { transform: translate(-3px, -1px); }
}
@keyframes glitch2 {
    0%,90%,100% { transform: translate(0); }
    91% { transform: translate(-4px, 2px); }
    93% { transform: translate(4px, -2px); }
    95% { transform: translate(-2px, 4px); }
    97% { transform: translate(2px, -4px); }
}
@keyframes titlePulse {
    0%,100% { text-shadow: 0 0 20px rgba(255,217,15,0.8), 0 0 40px rgba(255,217,15,0.5); }
    50% { text-shadow: 0 0 30px rgba(255,217,15,1), 0 0 60px rgba(255,217,15,0.7), 0 0 100px rgba(255,107,43,0.4); }
}

.hero-subtitle {
    font-family: var(--font-graffiti);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--bart-pink);
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: neonFlicker 4s infinite;
    margin-bottom: 20px;
}
@keyframes neonFlicker {
    0%,19%,21%,23%,25%,54%,56%,100% {
        text-shadow: 0 0 10px rgba(255,20,147,0.8), 0 0 40px rgba(255,20,147,0.4);
        opacity: 1;
    }
    20%,24%,55% { text-shadow: none; opacity: 0.6; }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--bart-yellow), var(--bart-orange));
    color: var(--bg-black);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 217, 15, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 217, 15, 0.5);
    color: var(--bg-black);
}
.btn-pump {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: var(--bg-black);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,200,83,0.3);
}
.btn-pump:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,200,83,0.5);
    color: var(--bg-black);
    filter: brightness(1.15);
}
.btn-secondary {
    background: transparent;
    color: var(--bart-yellow);
    border: 2px solid var(--bart-yellow);
}
.btn-secondary:hover {
    background: rgba(255, 217, 15, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 217, 15, 0.2);
    color: var(--bart-yellow);
}

.hero-tagline { margin-top: 10px; }
.tagline-text {
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Hero HUD */
.hero-hud {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hud-item { text-align: center; min-width: 140px; }
.hud-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.hud-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3px;
}
.hud-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.mischief-fill {
    width: 100%;
    background: linear-gradient(90deg, var(--bart-yellow), var(--bart-orange));
    animation: barPulse 2s ease-in-out infinite;
}
.detention-fill {
    width: 85%;
    background: linear-gradient(90deg, var(--bart-pink), var(--bart-red));
    animation: barPulse 2.5s ease-in-out infinite;
}
.skate-fill {
    width: 95%;
    background: linear-gradient(90deg, var(--bart-green), var(--bart-blue));
    animation: barPulse 1.8s ease-in-out infinite;
}
@keyframes barPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.hud-value {
    font-family: var(--font-graffiti);
    font-size: 0.9rem;
    color: var(--bart-yellow);
}

/* ─── SECTIONS COMMON ─── */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 5px;
}
.graffiti-title {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    text-shadow: 0 0 15px rgba(255,217,15,0.5), 3px 3px 0 rgba(255,107,43,0.3);
    letter-spacing: 3px;
}
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bart-yellow), var(--bart-pink));
    margin: 15px auto 40px;
    box-shadow: 0 0 10px rgba(255,217,15,0.5);
    border-radius: 2px;
}
.section-intro {
    text-align: center;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── ABOUT ─── */
.about {
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(17,17,17,0.35) 50%, rgba(10,10,10,0.4) 100%),
                url('https://i0.wp.com/teamsbackground.net/wp-content/uploads/2020/04/535293.png?w=1920&ssl=1') center/cover no-repeat;
}
.about-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.9;
}
.about-text strong { color: var(--bart-yellow); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.feature-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bart-yellow), var(--bart-pink));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.feature-card:hover {
    border-color: rgba(255,217,15,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,217,15,0.1);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-card h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ─── CHARACTERS ─── */
.characters {
    background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(17,17,17,0.35) 50%, rgba(10,10,10,0.45) 100%),
                url('https://wallpapers.com/images/hd/the-simpsons-all-cast-poster-8xhoactxrzvq4638.jpg') center/cover no-repeat;
}
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.character-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.character-card:hover {
    border-color: rgba(255,217,15,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,217,15,0.1);
}
.character-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(255,217,15,0.15);
    color: var(--bart-yellow);
    margin-bottom: 12px;
}
.character-avatar { font-size: 3rem; margin-bottom: 12px; }
.character-card h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1rem;
    margin-bottom: 8px;
}
.character-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* ─── QUOTES ─── */
.quotes-section {
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(17,17,17,0.4) 50%, rgba(10,10,10,0.5) 100%),
                url('https://wallpapers.com/images/hd/iconic-bart-simpson-at-school-v9qypuurat58w91f.jpg') center/cover no-repeat;
}
.quotes-stat {
    max-width: 500px;
    margin: 0 auto 30px;
}
.stat-bar { margin-bottom: 8px; }
.stat-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bart-yellow), var(--bart-pink), var(--bart-green));
    border-radius: 5px;
    animation: barPulse 2s ease-in-out infinite;
}
.stat-info { display: flex; justify-content: space-between; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 2px; }
.stat-value { font-family: var(--font-graffiti); color: var(--bart-yellow); font-size: 0.9rem; }

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.quote-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 8px;
    padding: 25px 20px;
    transition: all 0.3s;
}
.quote-card:hover {
    border-color: rgba(255,217,15,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,217,15,0.1);
}
.quote-header { margin-bottom: 15px; }
.quote-text {
    font-family: var(--font-graffiti);
    font-size: 1rem;
    color: var(--bart-pink);
    display: block;
    margin-bottom: 8px;
}
.quote-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.quote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bart-yellow), var(--bart-orange));
    border-radius: 3px;
}
.quote-card h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.quote-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

.stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 6px;
    padding: 15px 25px;
    text-align: center;
    min-width: 140px;
}
.stat-card-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.stat-card-value {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1.1rem;
}

/* ─── PRANKS ─── */
.pranks-section {
    background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(17,17,17,0.35) 50%, rgba(10,10,10,0.45) 100%),
                url('https://i0.wp.com/teamsbackground.net/wp-content/uploads/2020/04/535205.jpg?w=1920&ssl=1') center/cover no-repeat;
}
.pranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.prank-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,20,147,0.2);
    border-radius: 8px;
    padding: 25px 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.prank-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bart-pink), var(--bart-orange));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.prank-card:hover {
    border-color: rgba(255,20,147,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,20,147,0.1);
}
.prank-card:hover::before { transform: scaleX(1); }
.prank-rank {
    font-family: var(--font-graffiti);
    font-size: 1.8rem;
    color: var(--bart-pink);
    text-shadow: 0 0 15px rgba(255,20,147,0.5);
    margin-bottom: 8px;
}
.prank-card h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1rem;
    margin-bottom: 8px;
}
.prank-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* ─── MINI-GAME ─── */
.minigame-section {
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(26,18,0,0.35) 50%, rgba(10,10,10,0.4) 100%),
                url('https://i0.wp.com/teamsbackground.net/wp-content/uploads/2020/04/ET0TVJBUwAA9mjH.jpg?w=1920&ssl=1') center/cover no-repeat;
}
.game-wrapper { max-width: 680px; margin: 0 auto; }
.game-border {
    border: 3px solid var(--bart-yellow);
    border-radius: 8px;
    padding: 4px;
    background: #000;
    box-shadow: 0 0 30px rgba(255,217,15,0.2), inset 0 0 30px rgba(0,0,0,0.5);
}
.game-screen-frame {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.game-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}
#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    cursor: crosshair;
}
.game-controls-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.control-item { display: flex; align-items: center; gap: 8px; }
.control-key {
    background: rgba(255,217,15,0.15);
    border: 1px solid rgba(255,217,15,0.3);
    color: var(--bart-yellow);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 1px;
}
.control-desc { color: var(--text-dim); font-size: 0.8rem; }

/* ─── TIMELINE / EPISODES ─── */
.episodes-section {
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(17,17,17,0.4) 50%, rgba(10,10,10,0.5) 100%),
                url('https://wallpapers.com/images/hd/the-simpsons-characters-watching-tv-cqki3dtmtsc2enbq.jpg') center/cover no-repeat;
}
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--bart-yellow), var(--bart-pink), var(--bart-green));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-marker {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}
.timeline-item.completed .timeline-marker {
    background: var(--bart-yellow);
    color: var(--bg-black);
    box-shadow: 0 0 10px rgba(255,217,15,0.5);
}
.timeline-item.active .timeline-marker {
    background: var(--bart-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(255,20,147,0.5);
    animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
    0%,100% { box-shadow: 0 0 10px rgba(255,20,147,0.5); }
    50% { box-shadow: 0 0 25px rgba(255,20,147,0.8); }
}
.timeline-content {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 8px;
    padding: 25px;
}
.timeline-phase {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1rem;
    margin-bottom: 5px;
}
.timeline-content h4 {
    color: var(--bart-pink);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-style: italic;
}
.timeline-content ul {
    list-style: none;
    padding: 0;
}
.timeline-content li {
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}
.timeline-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--bart-yellow);
    font-family: var(--font-graffiti);
}

/* ─── COMMUNITY ─── */
.community {
    background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(26,26,46,0.4) 50%, rgba(10,10,10,0.45) 100%),
                url('https://www.RoomForZoom.com/backgrounds/Simpsons-2-Moes-Tavern-60.jpg') center/cover no-repeat;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.social-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}
.social-card:hover {
    border-color: rgba(255,217,15,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,217,15,0.1);
}
.social-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.social-card h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1rem;
    margin-bottom: 5px;
}
.social-card p { color: var(--text-dim); font-size: 0.85rem; }

/* ─── FOOTER ─── */
.footer {
    background: var(--bg-black);
    border-top: 1px solid rgba(255,217,15,0.1);
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-graffiti);
    font-size: 1.5rem;
    color: var(--bart-yellow);
    text-shadow: 0 0 10px rgba(255,217,15,0.4);
    margin-bottom: 15px;
}
.footer-disclaimer {
    color: var(--text-dim);
    font-size: 0.75rem;
    max-width: 500px;
    margin: 0 auto 15px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.footer-links a {
    color: var(--text-dim);
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--bart-yellow); }
.footer-copy {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ─── IMAGE STYLES ─── */
.hero-face {
    font-size: unset;
    animation: faceFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 217, 15, 0.4));
}
.hero-face img, img.hero-face {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    animation: faceFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(255,217,15,0.5));
}
.floating-decor img, img.floating-decor {
    width: 60px;
    height: auto;
    opacity: 0.15;
    filter: drop-shadow(0 0 10px rgba(255,217,15,0.3));
}
.btn-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}
.about-hero-img {
    text-align: center;
    margin-bottom: 30px;
}
.about-bart-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,217,15,0.4));
    animation: faceFloat 4s ease-in-out infinite;
}
.feature-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,217,15,0.3));
}
.char-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,217,15,0.3));
    transition: transform 0.3s;
}
.character-card:hover .char-img {
    transform: scale(1.1);
}
.character-avatar {
    font-size: unset;
    margin-bottom: 12px;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-floating-decor {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}
.section-floating-decor.decor-char {
    width: 100px;
    opacity: 0.2;
    filter: drop-shadow(0 0 10px rgba(255,217,15,0.2));
}
.decor-float-bottom-left {
    left: 2%;
    bottom: 10%;
    animation: floatLeft 8s ease-in-out infinite;
}
.decor-float-bottom-right {
    right: 2%;
    bottom: 15%;
    animation: floatRight 9s ease-in-out infinite;
}
.decor-float-top-right {
    right: 5%;
    top: 15%;
    animation: floatRight 7s ease-in-out infinite;
}
.decor-float-top-left {
    left: 5%;
    top: 15%;
    animation: floatLeft 6s ease-in-out infinite;
}
.decor-float-mid-left {
    left: 1%;
    top: 50%;
    animation: floatLeft 7.5s ease-in-out infinite;
}
.decor-float-mid-right {
    right: 1%;
    top: 55%;
    animation: floatRight 8.5s ease-in-out infinite;
}
.decor-float-left {
    left: 3%;
    top: 30%;
    animation: floatLeft 6s ease-in-out infinite;
}
.decor-float-right {
    right: 3%;
    top: 40%;
    animation: floatRight 7s ease-in-out infinite;
}
.community-mascot {
    text-align: center;
    margin-bottom: 20px;
}
.community-bart-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,217,15,0.5));
    animation: faceFloat 3s ease-in-out infinite;
}
.social-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,217,15,0.3));
}
.social-icon {
    font-size: unset;
    margin-bottom: 12px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .hero-hud { gap: 15px; }
    .hero-hud .hud-item { min-width: 110px; }
    .features-grid, .characters-grid, .quotes-grid, .pranks-grid, .social-grid {
        grid-template-columns: 1fr 1fr;
    }
    .timeline { padding-left: 30px; }
    .timeline-marker { left: -23px; width: 22px; height: 22px; font-size: 0.6rem; }
    .floating-decor { display: none; }
}

@media (max-width: 480px) {
    .section { padding: 70px 0; }
    .hero { padding: 80px 15px 50px; }
    .hero-face { font-size: 3.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-hud { flex-direction: column; align-items: center; }
    .features-grid, .characters-grid, .quotes-grid, .pranks-grid, .social-grid {
        grid-template-columns: 1fr;
    }
    .stats-row { flex-direction: column; align-items: center; }
    .game-controls-info { gap: 10px; }
    .wallet-panel { padding: 30px 15px; }
    .wallet-connect-box { padding: 30px 20px; }
    .wallet-info { flex-direction: column; gap: 10px; }
    .rank-table-row { font-size: 0.75rem; padding: 8px 10px; }
    .reward-panel { flex-direction: column; }
}

/* --- WALLET PANEL --- */
.wallet-panel {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 40px 20px;
    text-align: center;
}
.wallet-connect-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,217,15,0.15);
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}
.wallet-connect-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945FF, #14F195);
}
.wallet-connect-box .sol-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(153,69,255,0.4));
}
.wallet-connect-box h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.wallet-connect-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.wallet-connect-btn {
    background: linear-gradient(135deg, #9945FF, #14F195) !important;
    color: #fff !important;
    font-size: 1rem;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(153,69,255,0.3);
}
.wallet-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(153,69,255,0.5);
}

/* --- WALLET INFO BAR --- */
.wallet-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.wallet-address-box, .wallet-balance-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,217,15,0.1);
    border-radius: 8px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wallet-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}
.wallet-address {
    font-size: 0.8rem;
    color: var(--bart-yellow);
    font-family: monospace;
}
.sol-logo-sm {
    width: 20px;
    height: 20px;
}
.wallet-balance {
    font-family: var(--font-graffiti);
    color: #14F195;
    font-size: 1rem;
}

/* --- RANK / LEADERBOARD PANEL --- */
.rank-panel {
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,217,15,0.1);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}
.rank-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bart-yellow), #14F195, #9945FF);
}
.rank-panel h3 {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.rank-table {
    width: 100%;
}
.rank-table-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 8px 15px;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,217,15,0.1);
}
.rank-table-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 10px 15px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
    align-items: center;
}
.rank-table-row:hover {
    background: rgba(255,217,15,0.05);
}
.rank-table-row.your-row {
    background: rgba(255,217,15,0.08);
    border: 1px solid rgba(255,217,15,0.2);
    border-radius: 6px;
}
.rank-num {
    font-family: var(--font-graffiti);
    color: var(--bart-yellow);
}
.rank-num.gold { color: #FFD700; }
.rank-num.silver { color: #C0C0C0; }
.rank-num.bronze { color: #CD7F32; }
.rank-name {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-score {
    text-align: right;
    color: var(--bart-pink);
    font-family: var(--font-graffiti);
}
.rank-sol {
    text-align: right;
    color: #14F195;
    font-family: monospace;
    font-size: 0.8rem;
}

/* --- REWARD PANEL (after game) --- */
.reward-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(20,241,149,0.05);
    border: 1px solid rgba(20,241,149,0.15);
    border-radius: 10px;
    flex-wrap: wrap;
}
.reward-item {
    text-align: center;
}
.reward-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.reward-value {
    font-family: var(--font-graffiti);
    font-size: 1.3rem;
}
.reward-value.sol-color { color: #14F195; }
.reward-value.rank-color { color: var(--bart-yellow); }
.reward-value.score-color { color: var(--bart-pink); }

/* --- MUSIC TOGGLE BUTTON --- */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--bart-yellow);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255,217,15,0.2);
}
.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255,217,15,0.4);
    background: rgba(255,217,15,0.15);
}
.music-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--bart-yellow);
    transition: fill 0.3s;
}
.music-toggle.playing {
    border-color: var(--bart-green);
    animation: musicPulse 1.5s ease-in-out infinite;
}
.music-toggle.playing svg {
    fill: var(--bart-green);
}
@keyframes musicPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(57,255,20,0.2); }
    50% { box-shadow: 0 6px 30px rgba(57,255,20,0.5); }
}
