/* ==========================================================
   SimIdiot.net :: Y2K Forum Styles
   Palette:
     Candy Pink     #ff69b4
     Electric Purple #9b59b6
     iMac Blue      #3498db
     Chrome         #d4d4d4
     White          #ffffff
     Soft Lavender  #f0e6ff
   Fonts: Bungee (display), Poppins (body), Press Start 2P (user)
   ========================================================== */

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

:root {
    --pink: #ff69b4;
    --purple: #9b59b6;
    --blue: #3498db;
    --chrome: #d4d4d4;
    --white: #ffffff;
    --lavender: #f0e6ff;
    --ink: #2a1f3d;
    --ink-soft: #5a4670;
}

html, body {
    background: #f0e6ff;
    color: var(--ink);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
}

/* Y2K background sparkle layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 105, 180, 0.18) 0, transparent 22%),
        radial-gradient(circle at 88% 28%, rgba(52, 152, 219, 0.16) 0, transparent 24%),
        radial-gradient(circle at 25% 78%, rgba(155, 89, 182, 0.14) 0, transparent 26%),
        radial-gradient(circle at 78% 88%, rgba(255, 105, 180, 0.12) 0, transparent 24%);
}

.page {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

/* ==========================================================
   Top Bar
   ========================================================== */
.top-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(240,230,255,0.7) 100%),
        linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    background-blend-mode: overlay, normal;
    border: 2px solid var(--chrome);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 6px 0 rgba(155, 89, 182, 0.2),
        0 14px 28px -10px rgba(155, 89, 182, 0.4);
    margin-bottom: 1.25rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo {
    font-family: "Bungee", "Poppins", sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1;
    background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 60%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.logo .dot {
    color: var(--pink);
    -webkit-text-fill-color: var(--pink);
}

.sparkle {
    color: var(--blue);
    font-size: 1.25rem;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.6);
    animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle.small {
    font-size: 0.95rem;
}
.logo-wrap .sparkle:nth-child(1) { animation-delay: 0s; color: var(--pink); }
.logo-wrap .sparkle:nth-child(3) { animation-delay: 1.2s; color: var(--purple); }

@keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    50%      { transform: scale(1.35) rotate(20deg); opacity: 1; }
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.pill {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue), var(--purple));
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -2px 0 rgba(0,0,0,0.12),
        0 2px 0 rgba(0,0,0,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.pill:hover {
    filter: brightness(1.1) saturate(1.15);
    transform: translateY(-1px);
}
.pill-active,
.pill:active {
    background: linear-gradient(180deg, var(--purple), var(--pink));
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.25),
        inset 0 -1px 0 rgba(255,255,255,0.2);
    transform: translateY(1px);
}

.user-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.username-tag {
    font-family: "Press Start 2P", "Poppins", monospace;
    font-size: 0.6rem;
    color: var(--purple);
    background: var(--white);
    border: 1px solid var(--chrome);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.bubble-btn {
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--pink), var(--purple));
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.15),
        0 3px 0 rgba(155, 89, 182, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.bubble-btn:hover {
    filter: brightness(1.08) saturate(1.1);
    transform: translateY(-1px);
}
.bubble-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.25),
        inset 0 -1px 0 rgba(255,255,255,0.2);
}
.bubble-btn.small { padding: 0.35rem 0.9rem; font-size: 0.75rem; }
.bubble-btn.big   { padding: 0.7rem 1.6rem; font-size: 1rem; }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
    overflow: hidden;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
    border: 2px solid var(--chrome);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 4px 0 rgba(155, 89, 182, 0.18);
}
.marquee-track {
    display: inline-block;
    white-space: nowrap;
    color: var(--white);
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    padding: 0.7rem 0;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    animation: scrollLeft 28s linear infinite;
}
@keyframes scrollLeft {
    from { transform: translateX(5%); }
    to   { transform: translateX(-95%); }
}

/* ==========================================================
   Section heads
   ========================================================== */
.section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.5rem 0 1rem;
}
.section-head.left { justify-content: flex-start; }
.section-head h2 {
    font-family: "Bungee", sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    color: var(--purple);
    letter-spacing: 0.5px;
    text-shadow:
        2px 2px 0 var(--white),
        4px 4px 0 rgba(255, 105, 180, 0.4);
}

/* ==========================================================
   Featured Carousel
   ========================================================== */
.featured {
    background: rgba(255,255,255,0.6);
    border: 2px solid var(--chrome);
    border-radius: 18px;
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 5px 0 rgba(155, 89, 182, 0.18);
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.25rem 0.75rem;
    scrollbar-color: var(--purple) var(--lavender);
    scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 10px; }
.carousel::-webkit-scrollbar-track {
    background: var(--lavender);
    border-radius: 999px;
}
.carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--pink), var(--purple));
    border-radius: 999px;
    border: 2px solid var(--lavender);
}

.carousel-card {
    flex: 0 0 230px;
    scroll-snap-align: start;
    background: var(--white);
    border: 2px solid var(--chrome);
    border-radius: 14px;
    padding: 0.85rem 0.85rem 0.85rem 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 4px 0 rgba(155, 89, 182, 0.18),
        0 10px 18px -8px rgba(155, 89, 182, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 7px 0 rgba(155, 89, 182, 0.22),
        0 16px 24px -10px rgba(155, 89, 182, 0.45);
}
.carousel-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--purple);
}
.stripe-pink::before   { background: linear-gradient(180deg, #ffb6dc, var(--pink)); }
.stripe-purple::before { background: linear-gradient(180deg, #c98cd9, var(--purple)); }
.stripe-blue::before   { background: linear-gradient(180deg, #7cc6ee, var(--blue)); }

.card-thumb {
    height: 70px;
    border-radius: 10px;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 4px, transparent 4px 8px),
        linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
    color: var(--white);
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.5);
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.18);
}

.carousel-card h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.carousel-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.user {
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    color: var(--purple);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.dots {
    display: flex;
    gap: 0.4rem;
}
.dot-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chrome);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.dot-pip.active {
    background: linear-gradient(180deg, var(--pink), var(--purple));
    transform: scale(1.25);
}

/* ==========================================================
   Star ratings
   ========================================================== */
.stars {
    display: inline-flex;
    gap: 1px;
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    color: var(--pink);
    letter-spacing: 1px;
}
.stars::before { content: attr(data-stars); }

/* ==========================================================
   Forum Grid
   ========================================================== */
.forum-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.25rem;
}

.threads { min-width: 0; }

/* Filter chips */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.chip {
    cursor: pointer;
    border: 1px solid var(--chrome);
    background: var(--white);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.chip:hover { transform: translateY(-1px); }
.chip-active {
    background: linear-gradient(180deg, var(--blue), var(--purple));
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.15);
}

/* Forum post */
.post {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.85rem;
    background: var(--white);
    border: 2px solid var(--chrome);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 4px 0 rgba(155, 89, 182, 0.18),
        0 12px 22px -10px rgba(155, 89, 182, 0.4);
}
.post::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    background: var(--purple);
}
.post.stripe-pink::before   { background: linear-gradient(180deg, #ffb6dc, var(--pink)); }
.post.stripe-purple::before { background: linear-gradient(180deg, #c98cd9, var(--purple)); }
.post.stripe-blue::before   { background: linear-gradient(180deg, #7cc6ee, var(--blue)); }

.post-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0.25rem;
}

.avatar {
    width: 64px; height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(0,0,0,0.18),
        0 0 0 2px var(--chrome);
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 6px),
        linear-gradient(135deg, var(--purple), var(--blue));
    color: var(--white);
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    image-rendering: pixelated;
}
.avatar-pink   { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 6px), linear-gradient(135deg, var(--pink), #ffaad4); }
.avatar-purple { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 6px), linear-gradient(135deg, var(--purple), #d4a3e6); }
.avatar-blue   { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 6px), linear-gradient(135deg, var(--blue), #88c8ee); }

.username {
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    color: var(--purple);
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
}
.user-rank {
    font-family: "Press Start 2P", monospace;
    font-size: 0.5rem;
    color: var(--blue);
    background: var(--lavender);
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--chrome);
}

.post-body { min-width: 0; }
.post-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.cat-tag {
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    color: var(--white);
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.tag-pink   { background: linear-gradient(180deg, var(--pink), #c84a98); }
.tag-purple { background: linear-gradient(180deg, var(--purple), #6a3d80); }
.tag-blue   { background: linear-gradient(180deg, var(--blue), #246a9e); }

.timestamp {
    font-size: 0.75rem;
    color: var(--ink-soft);
    font-style: italic;
}

.post-title {
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0.3rem 0 0.5rem;
    letter-spacing: 0.3px;
}
.post-text {
    color: var(--ink);
    margin-bottom: 0.7rem;
}
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--chrome);
}
.action-btn {
    cursor: pointer;
    background: var(--lavender);
    border: 1px solid var(--chrome);
    color: var(--purple);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.action-btn:hover {
    background: linear-gradient(180deg, var(--pink), var(--purple));
    color: var(--white);
    transform: translateY(-1px);
}
.action-btn.upvoted {
    background: linear-gradient(180deg, var(--pink), var(--purple));
    color: var(--white);
}

/* Replies */
.reply {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.6rem;
    background: var(--lavender);
    border: 1px solid var(--chrome);
    border-radius: 10px;
    border-left: 4px solid var(--pink);
}
.reply:nth-of-type(odd) { border-left-color: var(--blue); }

.reply-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.reply-side .avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    font-size: 0.55rem;
}
.reply-side .username { font-size: 0.5rem; }
.reply-body p {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}
.reply-body .timestamp { font-size: 0.7rem; }

/* Load more */
.load-more-wrap {
    text-align: center;
    margin-top: 0.5rem;
    padding: 1rem 0;
}

/* ==========================================================
   Sidebar
   ========================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget {
    background: var(--white);
    border: 2px solid var(--chrome);
    border-radius: 14px;
    padding: 0.85rem 0.85rem 0.95rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 4px 0 rgba(155, 89, 182, 0.18),
        0 10px 18px -10px rgba(155, 89, 182, 0.35);
    position: relative;
    overflow: hidden;
}
.widget::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.widget-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.3rem 0 0.6rem;
}
.widget-head h3 {
    font-family: "Bungee", sans-serif;
    font-size: 1rem;
    color: var(--purple);
    letter-spacing: 0.3px;
}

.leaderboard {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.leaderboard li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--chrome);
    border-radius: 8px;
    background: var(--lavender);
}
.rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Press Start 2P", monospace;
    font-size: 0.65rem;
    color: var(--white);
    background: linear-gradient(180deg, var(--blue), var(--purple));
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.18);
    flex: 0 0 auto;
}
.rank-1 { background: linear-gradient(180deg, #ffd86b, #f7a73f); color: #5a3b00; }
.rank-2 { background: linear-gradient(180deg, #f0f0f0, var(--chrome)); color: #4a4a4a; }
.rank-3 { background: linear-gradient(180deg, #e8a780, #b76b3e); color: #4a2200; }

.lb-info {
    display: flex;
    flex-direction: column;
}
.lb-user {
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    color: var(--purple);
    line-height: 1.4;
}
.lb-score {
    font-size: 0.72rem;
    color: var(--ink-soft);
}

/* Trending tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.tag {
    text-decoration: none;
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.12);
    transition: transform 0.18s ease, filter 0.18s ease;
}
.tag-pink   { background: linear-gradient(180deg, var(--pink), #c84a98); }
.tag-purple { background: linear-gradient(180deg, var(--purple), #6a3d80); }
.tag-blue   { background: linear-gradient(180deg, var(--blue), #246a9e); }
.tag:hover  { transform: translateY(-1px) scale(1.04); filter: brightness(1.08); }

/* Poll */
.poll-q {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.poll-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.poll-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lavender);
    border: 1px solid var(--chrome);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    font-size: 0.82rem;
}
.poll-opt:hover { background: #e8d8ff; border-color: var(--purple); }
.poll-opt input { accent-color: var(--pink); }
.poll-form .bubble-btn { align-self: flex-start; margin-top: 0.3rem; }

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.bar {
    display: grid;
    grid-template-columns: 60px 1fr 38px;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}
.bar-label {
    font-family: "Press Start 2P", monospace;
    font-size: 0.5rem;
    color: var(--purple);
}
.bar-fill {
    position: relative;
    height: 12px;
    background: var(--lavender);
    border: 1px solid var(--chrome);
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.bar-pct {
    text-align: right;
    color: var(--purple);
    font-weight: 600;
}

/* Stats */
.counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px dashed var(--chrome);
    font-size: 0.85rem;
}
.counter-row:last-child { border-bottom: none; }
.counter {
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    color: var(--pink);
    background: var(--ink);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--purple);
    box-shadow: inset 0 0 6px rgba(255, 105, 180, 0.4);
    min-width: 70px;
    text-align: right;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
    margin-top: 2rem;
    padding: 1.4rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(240,230,255,0.85));
    border: 2px solid var(--chrome);
    border-radius: 18px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.footer-deco {
    color: var(--blue);
    font-size: 1rem;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
    animation: twinkle 3s ease-in-out infinite;
}
.footer-tag {
    font-family: "Press Start 2P", monospace;
    font-size: 0.6rem;
    color: var(--purple);
    margin-bottom: 0.4rem;
}
.footer-copy {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 0.6rem;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}
.footer-nav a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    border-bottom: 2px dotted var(--pink);
    padding: 0.1rem 0.2rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--pink);
    border-bottom-color: var(--blue);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 820px) {
    .forum-grid { grid-template-columns: 1fr; }
    .top-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nav-pills { justify-content: center; }
    .user-strip { justify-content: center; }
    .logo-wrap { justify-content: center; }
}
@media (max-width: 520px) {
    .post { grid-template-columns: 70px 1fr; }
    .avatar { width: 50px; height: 50px; font-size: 0.55rem; }
    .reply { grid-template-columns: 46px 1fr; }
    .reply-side .avatar { width: 36px; height: 36px; font-size: 0.45rem; }
    .carousel-card { flex: 0 0 80%; }
    .post-title { font-size: 1.05rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .sparkle,
    .footer-deco { animation: none !important; }
    * { transition-duration: 0.01ms !important; }
}
