/* ========================================
   FINAL FLASH DBZ — 90s/Modern Mashup Theme
   Vegito-themed, dark, with ki-blast energy
   ======================================== */

:root {
    --bg-dark: #060610;
    --bg-card: #0c1025;
    --bg-card-hover: #121838;
    --bg-input: #0e1228;
    --border: #1e2a52;
    --border-glow: #2e90fa;
    --text-primary: #e8ecf8;
    --text-secondary: #8898c8;
    --text-muted: #4a5580;
    --accent-gold: #2e90fa;
    --accent-orange: #38bdf8;
    --accent-blue: #3b82f6;
    --accent-red: #dc2626;
    --accent-purple: #6366f1;
    --accent-green: #22c55e;
    --ki-yellow: #38bdf8;
    --ki-blue: #00c3ff;
    --ki-pink: #818cf8;
    --vegito-purple: #4f46e5;
    --vegito-blue: #2563eb;
    --ssj-gold: #60a5fa;
    --font-display: 'Bangers', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-glow: 0 0 20px rgba(46, 144, 250, 0.2);
}

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

html { scroll-behavior: smooth; }

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

/* ======== KI PARTICLE CANVAS ======== */
#ki-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Retro scanline overlay */
.scanlines {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.025) 0px,
        rgba(0,0,0,0.025) 1px,
        transparent 1px,
        transparent 4px
    );
}

a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ki-yellow); }

img { max-width: 100%; }

/* ======== NAVIGATION ======== */
.main-nav {
    background: linear-gradient(180deg, #0a0a18 0%, #0f0f20 100%);
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(37, 99, 235, 0.3), 0 0 60px rgba(99, 102, 241, 0.15);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 62px;
    gap: 0.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; margin-right: 0.5rem; flex-shrink: 0; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(46, 144, 250, 0.5);
    white-space: nowrap;
}

.logo-dbz {
    color: var(--accent-gold);
    text-shadow:
        0 0 15px rgba(46, 144, 250, 0.9),
        0 0 30px rgba(37, 99, 235, 0.5),
        0 0 60px rgba(99, 102, 241, 0.3);
}

.nav-links { display: flex; gap: 0.1rem; flex: 1; flex-wrap: nowrap; overflow-x: auto; }

.nav-link {
    color: var(--text-secondary);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.87rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-auth { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-user { display: flex; align-items: center; gap: 0.4rem; flex-wrap: nowrap; }

.nav-sprite-wrap {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--vegito-purple), var(--vegito-blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.power-badge {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--accent-gold);
    background: rgba(46, 144, 250, 0.08);
    border: 1px solid rgba(46, 144, 250, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-login {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary) !important;
}
.btn-login:hover { border-color: var(--accent-gold); color: var(--accent-gold) !important; }

.btn-register {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    color: #000 !important;
    font-weight: 700;
    border-radius: var(--radius);
    padding: 0.45rem 0.9rem !important;
    box-shadow: 0 0 15px rgba(46, 144, 250, 0.2);
}
.btn-register:hover { opacity: 0.9; color: #000 !important; box-shadow: 0 0 25px rgba(46, 144, 250, 0.4); }

.nav-logout { color: var(--text-muted) !important; font-size: 0.82rem; }
.nav-logout:hover { color: var(--accent-red) !important; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

/* ======== HERO / HEADER ======== */
.hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #060610 0%, #0a1030 25%, #061440 55%, #060610 100%);
    background-image: linear-gradient(rgba(6,6,16,0.4), rgba(6,6,16,0.5)), url('/static/img/hero-banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-gold);
    z-index: 1;
}

/* Animated energy aura */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(37, 99, 235, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(0, 195, 255, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 15%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
    animation: ki-pulse 5s ease-in-out infinite alternate;
}

@keyframes ki-pulse {
    0%   { opacity: 0.5; transform: scale(1); }
    50%  { opacity: 0.9; transform: scale(1.02); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Dense star field */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1px 1px at 8%  15%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 72%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 28%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 18%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 65%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 14% 44%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 46% 55%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 63% 38%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 79% 90%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 32% 10%, rgba(37,99,235,0.5)   0%, transparent 100%),
        radial-gradient(2px 2px at 68% 5%,  rgba(0,195,255,0.5)   0%, transparent 100%),
        radial-gradient(2px 2px at 5%  80%, rgba(255,60,170,0.4)  0%, transparent 100%),
        radial-gradient(2px 2px at 95% 35%, rgba(37,99,235,0.4)   0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.3) 0%, transparent 100%);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; }
    100% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1rem;
    max-width: 760px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 5px;
    color: var(--text-primary);
    text-shadow:
        0 0 20px rgba(37, 99, 235, 0.5),
        0 0 40px rgba(37, 99, 235, 0.25),
        0 0 80px rgba(99, 102, 241, 0.2);
    margin-bottom: 0.4rem;
    line-height: 1.05;
}

.hero h1 span {
    display: block;
    color: var(--accent-gold);
    text-shadow:
        0 0 15px rgba(37, 99, 235, 0.9),
        0 0 35px rgba(0, 195, 255, 0.5),
        0 0 70px rgba(99, 102, 241, 0.3);
    animation: ssj-glow 3s ease-in-out infinite alternate;
}

@keyframes ssj-glow {
    0%   { text-shadow: 0 0 15px rgba(37,99,235,0.8), 0 0 35px rgba(0,195,255,0.4), 0 0 70px rgba(99,102,241,0.2); }
    100% { text-shadow: 0 0 25px rgba(37,99,235,1.0), 0 0 50px rgba(0,195,255,0.7), 0 0 100px rgba(99,102,241,0.4); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Vegito power level display in hero */
.hero-power-counter {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.hero-power-counter span {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--font-body);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    color: #000;
    box-shadow: 0 0 20px rgba(46, 144, 250, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 0 35px rgba(46, 144, 250, 0.5);
    color: #000;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn-secondary:hover { background: rgba(46, 144, 250, 0.08); color: var(--accent-gold); }

.btn-danger {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}
.btn-danger:hover { background: rgba(220,38,38,0.1); }

/* ======== MAIN CONTENT ======== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* ======== CARDS ======== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(46, 144, 250, 0.2); }

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ======== STATS BAR ======== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vegito-purple), var(--accent-gold), var(--vegito-blue));
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(46, 144, 250, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.4rem;
}

/* ======== GRID LAYOUTS ======== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* ======== FORUM STYLES ======== */
.forum-category-list { display: flex; flex-direction: column; gap: 0.75rem; }

.forum-cat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s;
    text-decoration: none;
}
.forum-cat-card:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px rgba(46, 144, 250, 0.06);
    transform: translateX(3px);
}

.forum-cat-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--vegito-purple), var(--vegito-blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.forum-cat-info { flex: 1; min-width: 0; }
.forum-cat-info h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.forum-cat-info h3 a { color: var(--text-primary); }
.forum-cat-info h3 a:hover { color: var(--accent-gold); }
.forum-cat-info p { font-size: 0.84rem; color: var(--text-secondary); }

.forum-cat-stats {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 100px;
}
.forum-cat-stats strong { color: var(--text-secondary); font-size: 0.95rem; }

/* Thread list */
.thread-list { display: flex; flex-direction: column; gap: 0.4rem; }

.thread-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.thread-row:hover { border-color: rgba(46, 144, 250, 0.25); background: var(--bg-card-hover); }

.thread-row-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--vegito-purple)33, var(--vegito-blue)33);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.thread-info { flex: 1; min-width: 0; }
.thread-info h4 { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-info h4 a { color: var(--text-primary); }
.thread-info h4 a:hover { color: var(--accent-gold); }
.thread-meta { font-size: 0.79rem; color: var(--text-muted); margin-top: 0.15rem; }

.thread-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pinned-badge {
    font-size: 0.65rem;
    background: var(--accent-gold);
    color: #000;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}

.locked-badge {
    font-size: 0.65rem;
    background: rgba(220,38,38,0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* ======== FORUM POST CARD ======== */
.post-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.post-card:first-child {
    border-color: rgba(46, 144, 250, 0.2);
}

.post-card-op {
    border-color: rgba(46, 144, 250, 0.25);
    background: linear-gradient(180deg, rgba(46, 144, 250, 0.02) 0%, var(--bg-card) 100%);
}

.post-author {
    text-align: center;
    min-width: 110px;
    max-width: 110px;
    flex-shrink: 0;
}

.post-author-avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--vegito-purple), var(--vegito-blue));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    margin: 0 auto 0.5rem;
    border: 1px solid var(--border);
}

.post-author .username {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-gold);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-author .user-rank {
    font-size: 0.68rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.2rem;
    display: block;
}
.post-author .user-pl {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

.post-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.post-body { flex: 1; min-width: 0; }
.post-body .post-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.post-body .post-content {
    color: var(--text-primary);
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ======== TEASER WALL ======== */
.teaser-wall {
    background: linear-gradient(180deg, transparent 0%, rgba(8,8,16,0.8) 40%, var(--bg-dark) 80%);
    text-align: center;
    padding: 5rem 2rem 2.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 5;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.teaser-wall::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.teaser-wall h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.teaser-wall p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ======== BLOG STYLES ======== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: var(--accent-gold); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

.blog-card-img {
    height: 190px;
    background: linear-gradient(135deg, var(--vegito-purple) 0%, var(--vegito-blue) 60%, #0a1a3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 4px);
}

.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body h3 a { color: var(--text-primary); }
.blog-card-body h3 a:hover { color: var(--accent-gold); }
.blog-card-body p { font-size: 0.84rem; color: var(--text-secondary); flex: 1; }
.blog-card-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.85rem; display: flex; gap: 0.75rem; }

.blog-category-tag {
    background: rgba(46, 144, 250, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(46, 144, 250, 0.2);
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======== FORMS ======== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(46, 144, 250, 0.12);
}
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ======== SPRITE PICKER ======== */
.sprite-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sprite-option {
    cursor: pointer;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sprite-option:hover { border-color: rgba(46, 144, 250, 0.5); }
.sprite-option.selected { border-color: var(--accent-gold); background: rgba(46, 144, 250, 0.08); }

.sprite-placeholder {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--vegito-purple), var(--vegito-blue));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    padding: 2px;
}

/* ======== SPRITE AVATAR PICKER (Register) ======== */
.sprite-avatar-img {
    width: 56px; height: 56px;
    background: var(--bg-card-hover);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.sprite-avatar-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}
.sprite-avatar-img span {
    font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.5);
}
.sprite-avatar-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
/* ======== SPRITE GALLERY (Character Detail) ======== */
.sprite-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sprite-scroll-grid::-webkit-scrollbar { width: 6px; }
.sprite-scroll-grid::-webkit-scrollbar-track { background: var(--bg-dark); border-radius: 3px; }
.sprite-scroll-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sprite-scroll-grid::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }
.sprite-thumb {
    width: 100%; aspect-ratio: 1;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, transform 0.15s;
}
.sprite-thumb:hover {
    border-color: var(--accent-gold);
    transform: scale(1.08);
    z-index: 2;
}
.sprite-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* ======== SPRITE LIGHTBOX MODAL ======== */
.sprite-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.sprite-modal-overlay.active {
    display: flex;
}
.sprite-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}
.sprite-modal-content img {
    max-width: 100%;
    max-height: 60vh;
    image-rendering: pixelated;
    margin: 0 auto;
}
.sprite-modal-close {
    position: absolute;
    top: 0.5rem; right: 0.75rem;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.sprite-modal-close:hover { color: var(--accent-gold); }
.sprite-modal-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

/* ======== FLASH MESSAGES ======== */
.flash-container { max-width: 1280px; margin: 0.5rem auto; padding: 0 1rem; }
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border: 1px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flash-success { background: rgba(34, 197, 94, 0.08); border-color: var(--accent-green); color: var(--accent-green); }
.flash-error   { background: rgba(220, 38, 38, 0.08);  border-color: var(--accent-red);   color: var(--accent-red); }
.flash-warning { background: rgba(46, 144, 250, 0.08); border-color: var(--accent-gold);  color: var(--accent-gold); }
.flash-info    { background: rgba(59, 130, 246, 0.08); border-color: var(--accent-blue);  color: var(--accent-blue); }

/* ======== AD SLOTS ======== */
.ad-slot {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.25rem 1rem;
    min-height: 2px;
}

.ad-slot-inline {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
}

.ad-slot-sidebar {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======== FOOTER ======== */
.site-footer {
    background: #060610;
    border-top: 2px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--vegito-purple), var(--accent-gold), transparent);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-gold); }
.footer-col p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ======== CHARACTER DATABASE ======== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.char-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    display: block;
}
.char-card:hover {
    border-color: var(--char-color, var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    color: var(--text-primary);
}

.char-card-sprite {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.char-card-sprite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 4px);
}

.char-sprite-placeholder {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 2px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.char-card-body { padding: 1rem; }
.char-card-body h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.char-race { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.char-series-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.series-tag {
    font-size: 0.7rem;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 1px 7px;
    border-radius: 20px;
}

/* Character Detail Layout */
.char-detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.char-sidebar {}

.char-portrait {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}

.char-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.char-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}
.char-stat-row:last-child { border-bottom: none; }
.char-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.char-stat-value { font-size: 0.85rem; color: var(--text-secondary); text-align: right; }

/* Transformations */
.transformation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.transformation-badge {
    padding: 0.4rem 0.85rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ======== SERIES GUIDE ======== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.series-card:hover {
    border-color: var(--series-color, var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.series-card-header { padding: 1.5rem; }
.series-tagline { font-style: italic; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.series-card-body { padding: 0 1.5rem 1.5rem; }
.series-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.series-meta span {
    background: var(--bg-card-hover);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Affiliate links */
.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.affiliate-link:hover { border-color: var(--accent-gold); color: var(--accent-gold) !important; }
.affiliate-link span { color: var(--accent-gold); font-weight: 600; }

/* ======== AUTH PAGES ======== */
.auth-wrapper {
    max-width: 460px;
    margin: 2rem auto;
}
.auth-wrapper h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(46, 144, 250, 0.3);
}

/* ======== WARRIORS / LEADERBOARD ======== */
.warriors-table {
    width: 100%;
    border-collapse: collapse;
}
.warriors-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-hover);
}
.warriors-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.warriors-table tr:hover td { background: var(--bg-card-hover); }
.warriors-table .rank-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
}
.warriors-table tr:first-child .rank-num { color: var(--ki-yellow); font-size: 1.5rem; }
.warriors-table tr:nth-child(2) .rank-num { color: var(--text-secondary); }
.warriors-table tr:nth-child(3) .rank-num { color: #cd7f32; }

/* ======== PAGE HEADER ======== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 80px; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
}
.page-header p { color: var(--text-secondary); margin-top: 0.5rem; }

/* Pixel border decoration accent */
.pixel-accent {
    display: flex;
    gap: 3px;
    margin: 0.5rem 0;
}
.pixel-accent span {
    width: 8px; height: 8px;
    background: var(--accent-gold);
    display: block;
}
.pixel-accent span:nth-child(even) { opacity: 0.4; }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .char-detail-layout { grid-template-columns: 1fr; }
    .char-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .char-portrait { display: none; }
}

@media (max-width: 768px) {
    .nav-links, .nav-auth { display: none; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 62px;
        left: 0; right: 0;
        background: #0a0a18;
        border-bottom: 2px solid var(--accent-gold);
        padding: 1rem;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    }
    .nav-auth.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: auto;
        bottom: 0; left: 0; right: 0;
        background: #0a0a18;
        border-top: 1px solid var(--border);
        padding: 1rem;
        z-index: 999;
    }
    .mobile-menu-btn { display: flex; }
    .two-col { grid-template-columns: 1fr; }
    .hero { min-height: 320px; }
    .post-card { flex-direction: column; }
    .post-author { min-width: auto; display: flex; align-items: center; gap: 1rem; text-align: left; max-width: 100%; }
    .post-author-avatar { width: 48px; height: 48px; font-size: 1.4rem; margin: 0; flex-shrink: 0; }
    .post-divider { display: none; }
    .forum-cat-card { flex-direction: column; align-items: flex-start; }
    .forum-cat-stats { text-align: left; min-width: auto; }
    .thread-row { flex-wrap: wrap; }
    .thread-stats { width: 100%; margin-top: 0.25rem; }
    .char-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .char-sidebar { grid-template-columns: 1fr; }
    .series-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { letter-spacing: 2px; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ======== UTILITIES ======== */
.text-center { text-align: center; }
.text-gold    { color: var(--accent-gold); }
.text-muted   { color: var(--text-muted); }
.text-green   { color: var(--accent-green); }
.text-red     { color: var(--accent-red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ======== RETRO PIXEL DECORATIONS ======== */
/* CSS pixel art ki blast used as a decorative element */
.ki-blast-deco {
    display: inline-block;
    width: 16px; height: 16px;
    background:
        linear-gradient(90deg,
            transparent 0px, transparent 4px,
            var(--ki-yellow) 4px, var(--ki-yellow) 12px,
            transparent 12px, transparent 16px
        ),
        linear-gradient(0deg,
            transparent 0px, transparent 4px,
            var(--ki-yellow) 4px, var(--ki-yellow) 12px,
            transparent 12px, transparent 16px
        );
    image-rendering: pixelated;
}

/* Power level bar */
.pl-bar-wrap {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.pl-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold), var(--ki-yellow));
    border-radius: 20px;
    transition: width 0.6s ease;
}

/* Rank badge colors */
.rank-earthling      { color: #888; }
.rank-saiyan         { color: #f97316; }
.rank-ssj            { color: var(--ki-yellow); }
.rank-ssj2           { color: var(--accent-gold); }
.rank-ssj3           { color: #fbbf24; }
.rank-ssg            { color: #ef4444; }
.rank-ssb            { color: var(--ki-blue); }
.rank-ui-sign        { color: #a78bfa; }
.rank-mui            { color: silver; }
.rank-grand-priest   { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Admin row hover */
.admin-row:hover { background: var(--bg-card-hover); }

/* ======== SPRITE DECORATIONS ======== */

/* Floating/bobbing animation for decorative sprites */
.floating-sprite {
    image-rendering: pixelated;
    animation: sprite-float 4s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(46, 144, 250, 0.3));
    transition: filter 0.3s;
}
.floating-sprite:nth-child(2n) { animation-delay: -1.5s; animation-duration: 4.5s; }
.floating-sprite:nth-child(3n) { animation-delay: -2.8s; animation-duration: 5s; }
.floating-sprite:nth-child(4n) { animation-delay: -0.7s; animation-duration: 3.5s; }

@keyframes sprite-float {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-12px) rotate(1deg); }
    50%  { transform: translateY(-4px) rotate(-1deg); }
    75%  { transform: translateY(-14px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Positioned sprite decorations */
.sprite-decoration {
    image-rendering: pixelated;
    position: absolute;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 6px rgba(46, 144, 250, 0.25));
    opacity: 0.85;
}
.sprite-decoration:hover {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(46, 144, 250, 0.5));
}

/* Sprite showcase grid/carousel */
.sprite-showcase {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}
.sprite-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, filter 0.3s;
    cursor: default;
}
.sprite-showcase-item:hover {
    transform: scale(1.15) translateY(-6px);
    filter: drop-shadow(0 0 14px rgba(46, 144, 250, 0.6));
}
.sprite-showcase-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.sprite-showcase-item span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

/* Sprite section divider */
.sprite-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    margin: 1rem 0;
    position: relative;
}
.sprite-divider::before,
.sprite-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.sprite-divider img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(46, 144, 250, 0.4));
    animation: sprite-float 3s ease-in-out infinite;
}

/* Hero floating sprites */
.hero-sprites {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-sprites .floating-sprite {
    position: absolute;
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.35;
}
.hero-sprites .floating-sprite:nth-child(1) { top: 12%; left: 5%; width: 56px; height: 56px; opacity: 0.3; }
.hero-sprites .floating-sprite:nth-child(2) { top: 20%; right: 8%; width: 44px; height: 44px; opacity: 0.25; }
.hero-sprites .floating-sprite:nth-child(3) { bottom: 18%; left: 10%; width: 40px; height: 40px; opacity: 0.2; }
.hero-sprites .floating-sprite:nth-child(4) { bottom: 25%; right: 4%; width: 52px; height: 52px; opacity: 0.3; }
.hero-sprites .floating-sprite:nth-child(5) { top: 50%; left: 2%; width: 36px; height: 36px; opacity: 0.18; }
.hero-sprites .floating-sprite:nth-child(6) { top: 40%; right: 2%; width: 38px; height: 38px; opacity: 0.22; }

/* Footer mascot sprite */
.footer-mascot {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.5rem;
}
.footer-mascot img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 4px rgba(46, 144, 250, 0.3));
    animation: sprite-float 3s ease-in-out infinite;
}

/* Series card sprite accent */
.series-sprite-accent {
    position: absolute;
    bottom: -4px;
    right: 8px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
    opacity: 0.8;
    z-index: 2;
    transition: transform 0.3s, opacity 0.3s;
}
.series-card:hover .series-sprite-accent {
    transform: scale(1.15) translateY(-4px);
    opacity: 1;
}

/* Blog card sprite */
.blog-card-sprite {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.7));
    opacity: 0.6;
    z-index: 3;
    transition: transform 0.3s, opacity 0.3s;
}
.blog-card:hover .blog-card-sprite {
    transform: scale(1.2);
    opacity: 0.9;
}

/* Auth page sprite flankers */
.auth-sprite-flankers {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.auth-sprite-flankers img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(46, 144, 250, 0.4));
}
.auth-sprite-flankers img:first-child {
    animation: sprite-float 4s ease-in-out infinite;
}
.auth-sprite-flankers img:last-child {
    animation: sprite-float 4s ease-in-out infinite;
    animation-delay: -2s;
}

/* Forum category sprite accent */
.forum-cat-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* 404 page sprite */
.sprite-404 {
    width: 120px;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 15px rgba(46, 144, 250, 0.5));
    margin: 0 auto 1.5rem;
    display: block;
    animation: sprite-404-wobble 2s ease-in-out infinite;
}
@keyframes sprite-404-wobble {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(-8deg) scale(1.03); }
    50%  { transform: rotate(0deg) scale(1); }
    75%  { transform: rotate(8deg) scale(1.03); }
    100% { transform: rotate(0deg) scale(1); }
}

/* About page sprites */
.about-sprite-decoration {
    position: relative;
}
.about-sprite-decoration .sprite-decoration {
    width: 48px;
    height: 48px;
}

/* Page header sprite accent */
.header-sprite-accent {
    display: inline-block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-left: 0.75rem;
    filter: drop-shadow(0 0 6px rgba(46, 144, 250, 0.3));
    animation: sprite-float 3.5s ease-in-out infinite;
}

/* Sprite marquee animation for showcase */
@keyframes sprite-slide-in {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sprite-showcase-item {
    animation: sprite-slide-in 0.5s ease-out both;
}
.sprite-showcase-item:nth-child(1) { animation-delay: 0.05s; }
.sprite-showcase-item:nth-child(2) { animation-delay: 0.1s; }
.sprite-showcase-item:nth-child(3) { animation-delay: 0.15s; }
.sprite-showcase-item:nth-child(4) { animation-delay: 0.2s; }
.sprite-showcase-item:nth-child(5) { animation-delay: 0.25s; }
.sprite-showcase-item:nth-child(6) { animation-delay: 0.3s; }
.sprite-showcase-item:nth-child(7) { animation-delay: 0.35s; }
.sprite-showcase-item:nth-child(8) { animation-delay: 0.4s; }
.sprite-showcase-item:nth-child(9) { animation-delay: 0.45s; }
.sprite-showcase-item:nth-child(10) { animation-delay: 0.5s; }

/* Responsive sprite adjustments */
@media (max-width: 768px) {
    .hero-sprites .floating-sprite { opacity: 0.15; width: 32px !important; height: 32px !important; }
    .sprite-showcase-item img { width: 48px; height: 48px; }
    .auth-sprite-flankers img { width: 56px; height: 56px; }
    .sprite-404 { width: 90px; height: 90px; }
    .sprite-divider img { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
    .hero-sprites .floating-sprite { display: none; }
    .sprite-showcase { gap: 0.75rem; }
    .sprite-showcase-item img { width: 40px; height: 40px; }
    .auth-sprite-flankers { gap: 1rem; }
    .auth-sprite-flankers img { width: 48px; height: 48px; }
}
