* {
    box-sizing: border-box;
}

:root {
    --bg-darkest: rgb(20, 21, 54);
    --bg-screen: rgba(20, 21, 54, 0.82);
    --bg-card: rgba(28, 32, 72, 0.90);
    --border-primary: rgb(76, 218, 203);
    --border-secondary: rgb(40, 45, 97);
    --accent-teal: rgb(76, 218, 203);
    --accent-teal-soft: #7fffe8;
    --accent-slate: #282d61;
    --accent-glitch-red: #ff3366;
    --accent-glitch-cyan: #00ffff;
    --text-main: #f3f0e5;
    --text-muted: #8892c5;
}

body {
    margin: 0;
    padding: 40px 15px;
    background-color: var(--bg-darkest);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
}

.crt-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg-darkest);
}

.pixel-spiral-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(20, 21, 54);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='%23141536'/%3E%3Cpath d='M2 2h28v2H2z M28 4v24h-2V4z M4 28h22v2H4z M4 6v22h-2V6z M6 6h20v2H6z M24 8v16h-2V8z M8 24h14v2H8z M8 10v14h-2V10z M10 10h12v2H10z M20 12v8h-2v-8z M12 20h6v2h-6z M12 14v6h-2v-6z' fill='%23282d61'/%3E%3Crect x='14' y='14' width='4' height='4' fill='%234cdacb'/%3E%3Crect x='0' y='0' width='2' height='2' fill='%234cdacb' opacity='0.4'/%3E%3Crect x='30' y='30' width='2' height='2' fill='%234cdacb' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 32px 32px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0.85;
}

.crt-glass-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 45%, rgba(20, 21, 54, 0.2) 0%, rgba(10, 11, 28, 0.8) 95%);
}

.crt-rgb-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            to right,
            rgba(255, 50, 100, 0.08) 0px,
            rgba(255, 50, 100, 0.08) 1px,
            rgba(76, 218, 203, 0.08) 1px,
            rgba(76, 218, 203, 0.08) 2px,
            rgba(40, 45, 97, 0.08) 2px,
            rgba(40, 45, 97, 0.08) 3px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.3) 0px,
            rgba(0, 0, 0, 0.3) 1px,
            transparent 1px,
            transparent 3px
        );
    background-size: 3px 100%, 100% 3px;
}

.crt-scanbeam {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(76, 218, 203, 0.06), transparent);
    animation: scanBeam 10s linear infinite;
}

@keyframes scanBeam {
    0% { top: -100px; }
    100% { top: 100vh; }
}

.screen {
    max-width: 1150px;
    margin: 0 auto;
    background: var(--bg-screen);
    padding: 24px 36px 32px 36px;
    position: relative;
    z-index: 10;
    border: 2px solid var(--border-secondary);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 6px 6px 0px #0a0b1c;
}

header {
    border-bottom: 2px dashed var(--border-secondary);
    padding: 10px 0 8px 0;
    margin-bottom: 24px;
    position: relative;
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.header-game-box {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.grid-6x6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    background: rgba(13, 15, 38, 0.7);
    padding: 2px;
    height: 100%;
    aspect-ratio: 1 / 1;
    width: auto;
    user-select: none;
}

.cell {
    background: #141536;
    border: 1px solid #282d61;
    cursor: pointer;
    transition: background 0.08s;
}

.cell:hover {
    border-color: #7fffe8;
}

.cell.highlight {
    background: #4cdacb !important;
    box-shadow: inset 0 0 2px #fff, 0 0 4px #4cdacb;
    border-color: #fff !important;
}

.cell.correct {
    background: #7fffe8 !important;
    box-shadow: inset 0 0 2px #fff;
    border-color: #fff !important;
    cursor: default;
}

.cell.wrong {
    background: #ff3366 !important;
    box-shadow: 0 0 4px #ff3366;
    border-color: #fff !important;
}

.cell.win-flash {
    background: #fff !important;
    transition: none;
}

@media (max-width: 860px) {
    header {
        min-height: auto;
        padding-bottom: 16px;
    }
    .header-game-box {
        position: static;
        transform: none;
        margin-bottom: 16px;
        width: 130px;
        height: 130px;
    }
    .nav-bar {
        margin-top: 36px;
    }
}

.title-box {
    position: relative;
    display: inline-block;
    text-align: center;
    margin-top: 12px;
}

.header-anim {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 92vw;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    user-select: none;
    z-index: 3;
}

h1 {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 22px;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    display: inline-block;
    text-shadow: 3px 3px 0px #0a0b1c, 0 0 12px rgba(76, 218, 203, 0.4);
}

h1:hover {
    animation: glitchText 0.3s steps(2) infinite;
}

@keyframes glitchText {
    0% { transform: translate(0, 0); text-shadow: 2px 0 var(--accent-glitch-red), -2px 0 var(--accent-glitch-cyan); }
    50% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--accent-glitch-red), 2px 0 var(--accent-glitch-cyan); }
    100% { transform: translate(0, 0); }
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 4px;
    position: relative;
    z-index: 4;
}

.nav-btn {
    font-family: 'Press Start 2P', monospace;
    background: rgba(20, 21, 54, 0.9);
    color: var(--text-muted);
    border: 2px solid var(--border-secondary);
    font-size: 9px;
    padding: 8px 18px 8px 30px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #0a0b1c;
    transition: all 0.15s;
    position: relative;
}

.nav-btn::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%) rotate(45deg);
    background: var(--border-secondary);
    transition: all 0.15s;
}

.nav-btn::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 5px;
    height: 5px;
    background: var(--accent-teal);
    opacity: 0;
    transition: opacity 0.15s;
}

.nav-btn:hover {
    color: #fff;
    border-color: var(--accent-teal);
}

.nav-btn:hover::before {
    background: var(--accent-teal);
}

.nav-btn:hover::after {
    opacity: 1;
}

.nav-btn.active {
    background: var(--border-secondary);
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.nav-btn.active::before {
    background: var(--accent-teal);
    animation: pipBlink 1s steps(2) infinite;
}

@keyframes pipBlink {
    50% { opacity: 0.2; }
}

.post-card {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 6px 6px 0px #0a0b1c;
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.post-card.text-only {
    grid-template-columns: 1fr;
}

.post-card.text-only .post-meta-col {
    border-bottom: 1px dashed var(--border-secondary);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.post-corner-tl { position: absolute; top: -2px; left: -2px; color: var(--accent-teal); font-family: 'Press Start 2P'; font-size: 10px; }
.post-corner-tr { position: absolute; top: -2px; right: -2px; color: var(--accent-teal); font-family: 'Press Start 2P'; font-size: 10px; }
.post-corner-bl { position: absolute; bottom: -2px; left: -2px; color: var(--accent-teal); font-family: 'Press Start 2P'; font-size: 10px; }
.post-corner-br { position: absolute; bottom: -2px; right: -2px; color: var(--accent-teal); font-family: 'Press Start 2P'; font-size: 10px; }

@media (max-width: 860px) {
    .post-card { grid-template-columns: 1fr; }
}

.post-meta-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-date {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 8px;
}

.post-title {
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.zoomable-image-box {
    background: #000;
    border: 2px solid var(--border-secondary);
    overflow: hidden;
    box-shadow: 3px 3px 0px #0a0b1c;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s;
}

.zoomable-image-box:hover {
    border-color: var(--accent-teal);
}

.zoomable-image-box::after {
    content: "🔍 ZOOM";
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(20, 21, 54, 0.85);
    color: var(--accent-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    padding: 4px 6px;
    border: 1px solid var(--accent-teal);
    opacity: 0;
    transition: opacity 0.15s;
}

.zoomable-image-box:hover::after {
    opacity: 1;
}

.zoomable-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.post-player {
    background: rgba(20, 21, 54, 0.9);
    border: 1px dashed var(--accent-teal);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-name {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 7px;
}

.spool-box {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.spool {
    display: inline-block;
}

.playing-spool {
    animation: spinSpool 1s linear infinite;
    color: var(--accent-teal);
}

@keyframes spinSpool {
    100% { transform: rotate(360deg); }
}

.btn-retro {
    font-family: 'Press Start 2P', monospace;
    background: var(--accent-teal);
    color: var(--bg-darkest);
    border: 1px solid #fff;
    font-size: 8px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #0a0b1c;
    text-align: center;
    transition: all 0.1s;
}

.btn-retro:hover { background: var(--accent-teal-soft); }
.btn-retro:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px #0a0b1c; }
.btn-retro.playing { background: #fff; color: var(--bg-darkest); }

.post-body-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-content {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-main);
}

#galleryView {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.gallery-item {
    background: #000;
    border: 2px solid var(--border-secondary);
    box-shadow: 4px 4px 0px #0a0b1c;
    cursor: pointer;
    overflow: hidden;
    display: block;
    transition: transform 0.15s, border-color 0.15s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-teal);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

#linksView {
    display: none;
    margin-bottom: 30px;
}

.links-section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--accent-teal-soft);
    margin: 22px 0 14px 4px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0px #0a0b1c;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.link-card {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--accent-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    box-shadow: 4px 4px 0px #0a0b1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.12s;
}

.link-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    color: var(--bg-darkest);
    box-shadow: 6px 6px 0px #0a0b1c;
}

#contactView {
    display: none;
    margin-bottom: 30px;
}

.contact-box {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    padding: 26px;
    box-shadow: 6px 6px 0px #0a0b1c;
    position: relative;
}

.contact-title {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 12px;
    margin-bottom: 16px;
}

.contact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
}

.commission-status {
    display: inline-block;
    background: rgba(76, 218, 203, 0.15);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 6px 10px;
    margin-bottom: 20px;
}

.email-copy-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #0d0f26;
    border: 1px solid var(--accent-teal);
    padding: 8px 12px;
    max-width: 500px;
}

.email-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-teal);
    font-family: 'Inter', monospace;
    font-size: 13px;
    flex-grow: 1;
}

.retro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 28, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
}

.retro-modal.active {
    display: flex;
}

.modal-wrapper {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-wrapper img {
    max-width: 92vw;
    max-height: 90vh;
    display: block;
    border: 1px solid var(--accent-teal);
    box-shadow: 0 0 35px rgba(76, 218, 203, 0.25);
    background: #000;
    cursor: default;
}

.modal-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--bg-card);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 4px 6px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
}

.modal-close-btn:hover {
    color: #fff;
    border-color: #fff;
}

.donate-box {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    padding: 24px;
    text-align: center;
    box-shadow: 6px 6px 0px #0a0b1c;
    margin-top: 36px;
}

.donate-title {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 11px;
    margin-bottom: 10px;
}

.donate-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 650px;
    margin: 0 auto 16px auto;
}

.crypto-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.crypto-tab-btn {
    font-family: 'Press Start 2P', monospace;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-secondary);
    font-size: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.crypto-tab-btn.active {
    background: var(--accent-teal);
    color: var(--bg-darkest);
    border-color: var(--accent-teal);
}

.crypto-address-box {
    display: flex;
    align-items: center;
    background: #0d0f26;
    border: 1px solid var(--border-secondary);
    padding: 6px 10px;
    max-width: 750px;
    margin: 0 auto;
    gap: 8px;
}

.crypto-address-box span {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--accent-teal);
    min-width: 40px;
    text-align: left;
}

.crypto-address-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: monospace;
    font-size: 11px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slime-counter-box {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(20, 21, 54, 0.95);
    border: 2px solid var(--accent-teal);
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--accent-teal);
    box-shadow: 4px 4px 0px #0a0b1c;
    z-index: 99998;
    letter-spacing: 0.5px;
}

.slime-spawner-entity {
    position: fixed;
    z-index: 99990;
    cursor: pointer;
    user-select: none;
    image-rendering: pixelated;
    transform-origin: center bottom;
    animation: slimeGrow 5.5s linear forwards;
}

.slime-spawner-entity img {
    width: 76px;
    height: auto;
    display: block;
    image-rendering: pixelated;
    pointer-events: none;
}

@keyframes slimeGrow {
    0% {
        transform: scale(0.15);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 6px rgba(76, 218, 203, 0.4));
    }
    88% {
        transform: scale(1.35) rotate(-4deg);
        filter: drop-shadow(0 0 12px rgba(76, 218, 203, 0.8));
    }
    95% {
        transform: scale(1.55) rotate(4deg);
        filter: drop-shadow(0 0 16px rgba(255, 51, 102, 0.95));
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.float-score {
    position: fixed;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--accent-teal-soft);
    text-shadow: 2px 2px 0px #000;
    pointer-events: none;
    z-index: 100000;
    animation: floatUp 0.55s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1.35); }
}
#tracksView {
    display: none;
    margin-bottom: 30px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.track-card {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    padding: 18px;
    box-shadow: 4px 4px 0px #0a0b1c;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.15s, transform 0.15s;
}

.track-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.track-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-card-date {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent-teal);
    font-size: 8px;
}

.track-card-title {
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    font-size: 10px;
    line-height: 1.5;
}

.track-cassette {
    background: #0d0f26;
    border: 1px dashed var(--accent-teal);
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cassette-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--accent-teal);
}



.follow-counter-box {
    position: fixed;
    top: 15px;
    right: 175px;
    background: rgba(20, 21, 54, 0.95);
    border: 2px solid var(--accent-teal);
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--accent-teal);
    text-decoration: none;
    box-shadow: 4px 4px 0px #0a0b1c;
    z-index: 99998;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.15s;
    animation: followGlow 2.5s ease-in-out infinite;
}

.follow-counter-box:hover {
    background: var(--accent-teal);
    color: var(--bg-darkest);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #0a0b1c;
}

.follow-counter-box:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #0a0b1c;
}

@keyframes followGlow {
    0%, 100% { box-shadow: 4px 4px 0px #0a0b1c, 0 0 0px rgba(76, 218, 203, 0); }
    50% { box-shadow: 4px 4px 0px #0a0b1c, 0 0 10px rgba(76, 218, 203, 0.5); }
}

@media (max-width: 860px) {
    .follow-counter-box {
        top: 50px;
        right: 15px;
    }
}

#snakeBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    image-rendering: pixelated;
}


.banner-club-box {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99998;
    opacity: 0.7;
    transition: all 0.2s ease;
    filter: grayscale(30%);
}

.banner-club-box:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.banner-club-box img {
    display: block;
    width: auto;
    height: auto;
    max-height: 40px;
    image-rendering: pixelated;
    border: 1px solid var(--border-secondary);
    box-shadow: 2px 2px 0px #0a0b1c;
}

@media (max-width: 860px) {
    .banner-club-box {
        display: none;
    }
}

.post-card {
    position: relative;
    overflow: hidden;
}

.post-card {
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2' fill='rgba(76, 218, 203, 0.14)'/%3E%3Crect x='2' y='2' width='2' height='2' fill='rgba(76, 218, 203, 0.14)'/%3E%3C/svg%3E");
    background-size: 4px 4px;
    image-rendering: pixelated;

    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 30%, transparent 65%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 30%, transparent 65%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;
    z-index: 0;
}

.post-card::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2' fill='rgba(255, 51, 102, 0.75)'/%3E%3Crect x='2' y='2' width='2' height='2' fill='rgba(255, 51, 102, 0.75)'/%3E%3C/svg%3E");
    background-size: 4px 4px;
    image-rendering: pixelated;

    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.9) 50%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.9) 50%, transparent 100%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-position: 0 150%;
    mask-position: 0 150%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    opacity: 0;
    pointer-events: none;
    z-index: 0;

    transition: opacity 0.25s ease, -webkit-mask-position 0.9s ease-out, mask-position 0.9s ease-out;
}

.post-card:hover::after {
    opacity: 1;
    -webkit-mask-position: 0 -50%;
    mask-position: 0 -50%;
}

.post-meta-col,
.post-body-col {
    position: relative;
    z-index: 1;
}

.post-skeleton {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.post-skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:

        radial-gradient(var(--accent-teal-soft) 10%, transparent 11%),

        radial-gradient(var(--accent-teal) 15%, transparent 16%);
    background-size: 24px 24px, 12px 12px;
    background-position: 0 0, 6px 6px;
    image-rendering: pixelated;
    opacity: 0.35;
    animation: pixelsFall 1.2s steps(8) infinite;
    pointer-events: none;
}

@keyframes pixelsFall {
    0% {
        background-position: 0 0, 6px 0;
    }
    100% {
        background-position: 0 96px, 6px 48px;
    }
}

.skeleton-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--accent-teal);
    letter-spacing: 1px;
    z-index: 2;
    text-shadow: 2px 2px 0px #0a0b1c;
    animation: textBlink 0.8s steps(2) infinite;
}

@keyframes textBlink {
    50% { opacity: 0.3; }
}

.post-appear {
    animation: postUnfold 0.35s steps(4) backwards;
}

@keyframes postUnfold {
    0% {
        opacity: 0;
        transform: translateY(-12px);
        filter: brightness(2) contrast(1.5);
    }
    50% {
        opacity: 0.7;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1) contrast(1);
    }
}