/* ==========================================================================
   vibecoded.fun — early-2000s gaming portal, corporate orange edition:
   glossy orange orbs and gradients on silver chrome, Sony Ericsson-era Y2K.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (no third-party requests)
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: italic;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: italic;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #eceef1;
    --bg-raised: #ffffff;
    --bg-card: #ffffff;
    --border: #d6dbe2;
    --border-strong: #b8c0ca;

    --text: #23282e;
    --text-dim: #59636e;
    --text-faint: #8a94a0;

    --orange: #f60;
    --orange-hot: #ff8a1e;
    --orange-deep: #d95700;
    --orange-dark: #b34700;
    --steel: #6b7684;
    --cyan: #0b84d0;   /* legacy accent hooks, remapped to the Y2K set */
    --blue: #3b6fb5;
    --magenta: #f60;
    --violet: #7fb800;

    /* glossy orange — used for buttons and clipped headline text */
    --grad-vibe: linear-gradient(180deg, var(--orange-hot) 0%, var(--orange) 55%, var(--orange-deep) 100%);
    --grad-chrome: linear-gradient(180deg, #ffffff 0%, #eef0f3 55%, #e2e6eb 100%);

    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", Tahoma, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 10px;
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }

.mono { font-family: var(--font-mono); }

.container {
    width: min(var(--container), calc(100% - 3rem));
    margin-inline: auto;
}

.page {
    position: relative;
    overflow: clip;
}

/* --------------------------------------------------------------------------
   Background: orange swoosh glows + faint grid on brushed silver
   -------------------------------------------------------------------------- */

.bg-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(52rem 30rem at 12% -6%, rgba(255, 102, 0, 0.14), transparent 60%),
        radial-gradient(46rem 30rem at 88% 4%, rgba(11, 132, 208, 0.08), transparent 60%),
        radial-gradient(60rem 42rem at 50% 110%, rgba(255, 138, 30, 0.10), transparent 60%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(90, 105, 125, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 105, 125, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(80rem 46rem at 50% 0%, black 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Header / nav: silver chrome bar with an orange racing stripe
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    /* no backdrop-filter: backdrop blur is a known GPU-driver crash trigger on Linux */
    background: var(--grad-chrome);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 8px rgba(30, 40, 55, 0.08);
}

.site-header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-deep), var(--orange) 30%, var(--orange-hot) 55%, var(--orange) 80%, var(--orange-deep));
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-block: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo {
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(217, 87, 0, 0.35));
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-name em {
    font-style: normal;
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange-deep); }

.nav-links a.active {
    color: var(--orange-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Buttons: glossy orange pills, 2003 gradient chrome for ghosts
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.15s ease;
}

.btn-primary {
    color: #fff;
    text-shadow: 0 1px 1px rgba(160, 60, 0, 0.55);
    background: var(--grad-vibe);
    border-color: var(--orange-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 12px 14px -8px rgba(255, 255, 255, 0.45),
        0 3px 8px rgba(217, 87, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.1) brightness(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 12px 14px -8px rgba(255, 255, 255, 0.45),
        0 6px 16px rgba(217, 87, 0, 0.4);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--grad-chrome);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 3px rgba(30, 40, 55, 0.1);
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 102, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-block: 6rem 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--grad-chrome);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

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

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

.hero-title {
    margin-top: 1.4rem;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 700;
}

.gradient-text {
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 1.4rem;
    max-width: 34rem;
    font-size: 1.15rem;
    color: var(--text-dim);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.hero-stats {
    display: flex;
    gap: 2.8rem;
    margin: 3rem 0 0;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
}

.hero-stats dt {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* Hero visual: floating orb above a terminal card */

.hero-visual {
    position: relative;
    display: grid;
    justify-items: center;
}

.logo-glow {
    position: absolute;
    top: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(255, 102, 0, 0.30), transparent 70%),
        radial-gradient(closest-side at 70% 30%, rgba(255, 190, 120, 0.35), transparent 70%);
    filter: blur(6px);
}

.hero-logo {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    filter: drop-shadow(0 18px 34px rgba(160, 70, 0, 0.35));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-14px) rotate(1.5deg); }
}

.terminal {
    position: relative;
    z-index: 2;
    width: min(30rem, 100%);
    margin-top: -3rem;
    border: 1px solid #3a3f47;
    border-radius: var(--radius);
    background: #20242b;
    box-shadow:
        0 24px 50px rgba(35, 45, 60, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #3a3f47;
    background: linear-gradient(180deg, #3a4048, #2a2f36);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
    margin-left: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #9aa3ad;
}

.terminal-body {
    margin: 0;
    padding: 1.1rem 1.2rem 1.3rem;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.9;
    color: #e8ebef;
    overflow-x: auto;
}

.t-prompt { color: var(--orange-hot); }
.t-cmd { color: #fff; font-weight: 500; }
.t-dim { color: #8a94a0; }
.t-accent { color: #ffb164; }
.t-ok { color: #4ade80; }

.t-cursor {
    color: var(--orange-hot);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hero cabinet: attract-mode screen for the crowd-favorite game */

.cabinet {
    position: relative;
    z-index: 2;
    width: min(27rem, 100%);
    margin-top: -3rem;
    padding: 0.85rem 0.85rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: calc(var(--radius) + 4px);
    background: var(--grad-chrome);
    box-shadow:
        0 24px 50px rgba(35, 45, 60, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cabinet-marquee {
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(120, 50, 0, 0.55);
    background: var(--grad-vibe);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cabinet-screen {
    display: block;
    position: relative;
    margin-top: 0.7rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #3a3f47;
    border-radius: 8px;
    background: #20242b radial-gradient(120% 90% at 50% 10%, #313843, #1b1f25 70%);
}

.cabinet-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-screen::after {
    /* CRT scanlines */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}

.cabinet-glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: var(--orange-hot);
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
}

.cabinet-info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    padding: 1.6rem 0.9rem 0.65rem;
    background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.9) 55%);
    color: #fff;
}

.cabinet-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.cabinet-info span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #c6cdd6;
}

.cabinet-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.55rem;
    padding-inline: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.press-start {
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-deep);
    animation: blink 1.4s steps(1) infinite;
}

.cabinet:hover .press-start { animation: none; }

/* --------------------------------------------------------------------------
   Marquee: the ticker-tape strip
   -------------------------------------------------------------------------- */

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--border-strong);
    background: var(--grad-chrome);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding-block: 0.85rem;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2.2rem;
    width: max-content;
    animation: marquee 28s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    white-space: nowrap;
}

.marquee-track i {
    font-style: normal;
    color: var(--orange);
    opacity: 0.8;
}

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

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    position: relative;
    padding-block: 5.5rem 2rem;
}

.section-head {
    position: relative;
    margin-bottom: 2.6rem;
}

.section-tight { padding-block: 1rem 4rem; }

.view-all {
    position: absolute;
    right: 0;
    bottom: 0.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.2s ease;
}

.view-all:hover { color: var(--orange-deep); }

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--orange-deep);
    margin-bottom: 0.6rem;
}

.section-head p {
    margin-top: 0.7rem;
    color: var(--text-dim);
    max-width: 40rem;
}

.section-cta {
    margin-top: 2.6rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Cards (blog + arcade share .card)
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(30, 40, 55, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(30, 40, 55, 0.14), 0 0 20px rgba(255, 102, 0, 0.12);
}

.card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.card h3 a:hover { color: var(--orange-deep); }

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.tag {
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--orange);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 1px rgba(160, 60, 0, 0.5);
    background: var(--grad-vibe);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--orange-deep);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.card:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Blog list
   -------------------------------------------------------------------------- */

.post-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.post {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 0.6rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.post:hover {
    background: rgba(255, 102, 0, 0.04);
}

.post-index {
    font-size: 1rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.post-body h3 {
    font-size: 1.35rem;
}

.post-body h3 a:hover { color: var(--orange-deep); }

.post-body p {
    margin-top: 0.5rem;
    color: var(--text-dim);
    max-width: 46rem;
}

.post-meta {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.post-arrow {
    margin-left: auto;
    font-size: 1.4rem;
    color: var(--orange);
    opacity: 0;
}

.post:hover .post-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Arcade (projects)
   -------------------------------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.project-thumb {
    display: grid;
    place-items: center;
    height: 170px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(24rem 10rem at 50% 120%, var(--accent-soft, rgba(255, 102, 0, 0.18)), transparent 70%),
        linear-gradient(180deg, #f4f5f7, #e8eaee);
    box-shadow: inset 0 1px 3px rgba(30, 40, 55, 0.12);
}

.project-glyph {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    color: var(--accent, var(--orange));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 18px var(--accent-soft, rgba(255, 102, 0, 0.5));
}

.project-thumb {
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.project-card h3 {
    font-size: 1.3rem;
}

.project-builder {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.chart-glyph {
    overflow: hidden;
}

.chart-glyph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.accent-cyan    { --accent: #0b84d0; --accent-soft: rgba(11, 132, 208, 0.20); }
.accent-magenta { --accent: #f60;    --accent-soft: rgba(255, 102, 0, 0.22); }
.accent-blue    { --accent: #3b6fb5; --accent-soft: rgba(59, 111, 181, 0.20); }
.accent-violet  { --accent: #7fb800; --accent-soft: rgba(127, 184, 0, 0.22); }

.project-card:hover {
    border-color: var(--accent, var(--orange));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(30, 40, 55, 0.14), 0 0 24px var(--accent-soft);
}

/* Stretch the title link over the whole card; the vote bar sits above it
   so the buttons stay clickable. */
.project-card .card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.project-card .vote-bar {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Subpages: page hero, articles, featured post
   -------------------------------------------------------------------------- */

.page-hero {
    padding-block: 4.5rem 1.5rem;
}

.page-hero .section-kicker { font-size: 0.95rem; }

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
}

.page-hero p {
    margin-top: 1rem;
    max-width: 40rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.article {
    max-width: 46rem;
    padding-block: 3.5rem 6rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--orange-deep); }

.article-header .card-meta {
    justify-content: flex-start;
    gap: 1.2rem;
}

.article-header h1 {
    margin-top: 1.2rem;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.article-lede {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.prose {
    margin-top: 2.6rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--border);
}

.prose p {
    margin-top: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3b444e;
}

.prose p:first-child { margin-top: 0; }

.prose p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    padding-right: 0.12em;
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prose h2 {
    margin-top: 2.6rem;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.prose ul {
    margin: 1.2rem 0 0;
    padding-left: 1.4rem;
    color: #3b444e;
}

.prose li {
    margin-top: 0.6rem;
    line-height: 1.7;
}

.prose a {
    color: var(--orange-deep);
}

.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text); }

.legal-updated {
    margin-top: 1.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.privacy-note {
    align-self: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.privacy-note a { color: var(--text-dim); }
.privacy-note a:hover { color: var(--orange-deep); }


.article-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--border);
}

/* Game detail page: banner + main + sticky sidebar */

.project-page { padding-block: 3rem 6rem; }

.project-page .back-link { margin-bottom: 1.8rem; }

.project-header h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.project-header .article-lede { max-width: 46rem; }

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
        'banner side'
        'main side';
    gap: 2rem 2.5rem;
    align-items: start;
    margin-top: 2.6rem;
}

.project-banner-lg {
    grid-area: banner;
    display: grid;
    place-items: center;
    aspect-ratio: 1.9;
    max-height: 460px;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(40rem 16rem at 50% 120%, var(--accent-soft, rgba(255, 102, 0, 0.18)), transparent 70%),
        linear-gradient(180deg, #f4f5f7, #e8eaee);
    box-shadow: inset 0 1px 3px rgba(30, 40, 55, 0.12);
}

.project-banner-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-banner-lg .project-glyph { font-size: 3.4rem; }

.project-side { grid-area: side; }

.side-card {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    padding: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(24rem 12rem at 100% 0%, var(--accent-soft, rgba(255, 102, 0, 0.10)), transparent 65%),
        linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(30, 40, 55, 0.1);
}

.side-vote .vote-question { margin-bottom: 0.7rem; }

.side-meta {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 0.8rem;
}

.side-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.55rem;
    border-bottom: 1px solid var(--border);
}

.side-meta div:last-child { border-bottom: none; }

.side-meta dt {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: var(--text-faint);
}

.side-meta dd {
    margin: 0;
    color: var(--text-dim);
    text-align: right;
    overflow-wrap: anywhere;
}

.side-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.side-cta { width: 100%; }

.side-submit { margin-top: 1rem; }

.side-report { text-align: right; }

.project-main { grid-area: main; min-width: 0; }

.project-main .prose {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 980px) {
    .project-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            'banner'
            'side'
            'main';
    }

    .side-card { position: static; }
}

.featured-post {
    margin-bottom: 3rem;
    padding: 2.4rem;
    background:
        radial-gradient(46rem 18rem at 100% 0%, var(--accent-soft, rgba(255, 102, 0, 0.12)), transparent 65%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.featured-post .tag { align-self: flex-start; }

.featured-post h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    max-width: 36rem;
}

.featured-post h2 a:hover { color: var(--orange-deep); }

.featured-post p { max-width: 42rem; }

.featured-post .post-meta { margin: 0; }

/* --------------------------------------------------------------------------
   Forms & flashes
   -------------------------------------------------------------------------- */

.flash {
    margin-top: 1.6rem;
    padding: 0.9rem 1.3rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.flash-success {
    border: 1px solid rgba(22, 140, 60, 0.4);
    background: linear-gradient(180deg, #eafaf0, #d8f2e2);
    color: #14652f;
}

.flash-error {
    border: 1px solid rgba(200, 45, 30, 0.4);
    background: linear-gradient(180deg, #fdeeec, #f9dcd8);
    color: #9c2413;
}

.form-panel {
    max-width: 52rem;
    padding: 2.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background:
        radial-gradient(36rem 16rem at 100% 0%, rgba(255, 102, 0, 0.07), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 18px rgba(30, 40, 55, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field-wide { grid-column: 1 / -1; }

.form-field label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="password"],
.form-field textarea {
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea { resize: vertical; line-height: 1.6; }

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--orange);
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07), 0 0 10px rgba(255, 102, 0, 0.3);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-field ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #9c2413;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.reason-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reason-option:hover { background: rgba(255, 102, 0, 0.05); }

.reason-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reason-check {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.reason-option:has(input:checked) {
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.25);
}

.reason-option:has(input:checked) .reason-check {
    border-color: var(--orange-deep);
    background: var(--grad-vibe);
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Voting
   -------------------------------------------------------------------------- */

.vote-bar {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--grad-chrome);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(30, 40, 55, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.vote-btn:hover { transform: translateY(-1px); color: var(--text); }

.vote-up:hover,
.vote-up.voted {
    border-color: rgba(22, 140, 60, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(22, 140, 60, 0.25);
}

.vote-up.voted { color: #14652f; background: linear-gradient(180deg, #eafaf0, #d8f2e2); }

.vote-needswork:hover,
.vote-needswork.voted {
    border-color: rgba(214, 138, 16, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(214, 138, 16, 0.25);
}

.vote-needswork.voted { color: #8a5405; background: linear-gradient(180deg, #fdf5e4, #f9e8c4); }

.vote-down:hover,
.vote-down.voted {
    border-color: rgba(200, 45, 30, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(200, 45, 30, 0.2);
}

.vote-down.voted { color: #9c2413; background: linear-gradient(180deg, #fdeeec, #f9dcd8); }

.vote-bar-lg .vote-btn {
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
}

.vote-question {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.report-line {
    margin-top: 1.6rem;
    text-align: right;
}

.report-link {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.2s ease;
}

.report-link:hover { color: var(--orange-deep); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Advanced zip uploader: dropzone, inspection preview, staged progress
   -------------------------------------------------------------------------- */

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8.5rem;
    padding: 1.4rem;
    border: 2px dashed var(--border-strong);
    border-radius: 14px;
    background:
        radial-gradient(24rem 10rem at 50% -20%, rgba(255, 102, 0, 0.06), transparent 70%),
        var(--grad-chrome);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 2px 6px rgba(30, 40, 55, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

/* The real file input covers the zone so native click + drop just work. */
.dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.dropzone.has-file .dropzone-input { pointer-events: none; }

.dropzone.is-dragging {
    border-color: var(--orange);
    border-style: solid;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(255, 102, 0, 0.15), 0 0 22px rgba(255, 102, 0, 0.28);
}

.dropzone.is-dragging .dropzone-icon { transform: translateY(-4px) scale(1.06); }

.dropzone.is-ok { border-color: rgba(22, 140, 60, 0.55); border-style: solid; }
.dropzone.is-error { border-color: rgba(200, 45, 30, 0.55); border-style: solid; }

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    color: var(--text-dim);
    pointer-events: none;
}

.dropzone-icon {
    color: var(--orange);
    margin-bottom: 0.3rem;
    transition: transform 0.2s ease;
}

.dropzone-headline { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.dropzone-headline strong { color: var(--orange-deep); }
.dropzone-sub { font-size: 0.78rem; color: var(--text-faint); }

.dropzone-file {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 34rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(30, 40, 55, 0.08);
}

.dropzone-file[hidden] { display: none; }

.dropzone-badge {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: var(--grad-vibe);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(255, 102, 0, 0.35);
}

.dropzone-file-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.dropzone-file-name { font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-file-meta { font-size: 0.78rem; color: var(--text-faint); }

.dropzone-file-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.btn-xs { padding: 0.3rem 0.75rem; font-size: 0.75rem; }

.dropzone-remove {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--grad-chrome);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dropzone-remove:hover {
    color: #9c2413;
    border-color: rgba(200, 45, 30, 0.5);
    box-shadow: 0 0 10px rgba(200, 45, 30, 0.2);
}

/* Inspection verdict + contents preview */
.upload-inspect {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfcfd, #f3f5f7);
}

.upload-inspect[hidden] { display: none; }

.inspect-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }

.inspect-verdict { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.inspect-verdict.is-pending { color: var(--text-dim); }
.inspect-verdict.is-ok { color: #14652f; }
.inspect-verdict.is-warn { color: #8a5405; }
.inspect-verdict.is-error { color: #9c2413; }

.inspect-stats { font-size: 0.78rem; color: var(--text-faint); }

.inspect-contents { margin-top: 0.6rem; }
.inspect-contents summary { cursor: pointer; font-size: 0.78rem; color: var(--orange-deep); width: fit-content; }
.inspect-contents summary:hover { text-decoration: underline; }

.contents-list {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0.4rem;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.78rem;
}

.contents-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.22rem 0.5rem; border-radius: 4px; }
.contents-row:nth-child(odd) { background: rgba(30, 40, 55, 0.03); }
.contents-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.contents-name.is-entry { color: var(--orange-deep); font-weight: 600; }
.contents-size { color: var(--text-faint); flex-shrink: 0; }
.contents-more { color: var(--text-faint); font-style: italic; justify-content: center; }

/* Staged progress monitor */
.upload-monitor {
    margin-top: 1.6rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background:
        radial-gradient(28rem 12rem at 100% 0%, rgba(255, 102, 0, 0.06), transparent 65%),
        linear-gradient(180deg, #ffffff, #f3f5f7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.upload-monitor[hidden] { display: none; }

.upload-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    counter-reset: step;
}

.upload-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.2s ease;
}

.step-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--grad-chrome);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.upload-step.is-active { color: var(--orange-deep); }
.upload-step.is-active .step-dot {
    border-color: var(--orange);
    background: var(--grad-vibe);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    animation: step-pulse 1s ease-in-out infinite;
}

.upload-step.is-done { color: #14652f; }
.upload-step.is-done .step-dot {
    border-color: rgba(22, 140, 60, 0.6);
    background: linear-gradient(180deg, #34c46a, #168c3c);
    box-shadow: 0 0 8px rgba(22, 140, 60, 0.35);
}

.upload-step.is-error { color: #9c2413; }
.upload-step.is-error .step-dot {
    border-color: rgba(200, 45, 30, 0.6);
    background: linear-gradient(180deg, #f0655a, #c82d1e);
}

@keyframes step-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.upload-progress-track {
    position: relative;
    height: 1.3rem;
    border-radius: 999px;
    background: var(--grad-chrome);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 2px rgba(90, 105, 125, 0.25);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad-vibe);
    background-size: 1.6rem 1.6rem;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.45);
    transition: width 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* animated candy-stripe shimmer while filling */
.upload-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.28) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.28) 75%, transparent 75%, transparent);
    background-size: 1.6rem 1.6rem;
    animation: stripe-slide 0.7s linear infinite;
}

@keyframes stripe-slide { from { background-position: 0 0; } to { background-position: 1.6rem 0; } }

.upload-progress-pct {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.upload-progress-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1.2rem;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.upload-stage {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--orange-deep);
}

.upload-stage.is-error { color: #9c2413; }

.discard-draft {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
    .upload-step.is-active .step-dot,
    .upload-progress-fill::after { animation: none; }
}

/* --------------------------------------------------------------------------
   Motion & delight: reveals, glow, shimmer, progress
   -------------------------------------------------------------------------- */

.reveal-init {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease var(--reveal-delay, 0ms), transform 0.6s ease var(--reveal-delay, 0ms);
}

.reveal-init.revealed {
    opacity: 1;
    transform: none;
}

/* cursor-tracking glow overlay (form panels excluded: layer too large to repaint) */
.card, .stat-card, .form-panel, .chart-row { position: relative; }

.card::before,
.stat-card::before,
.chart-row::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 50%), rgba(255, 102, 0, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glowing::before { opacity: 1; }

/* gradient shimmer on the hero headline */
.hero-title .gradient-text {
    background-size: 100% 200%;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
}

/* reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 30;
    background: linear-gradient(90deg, var(--orange-deep), var(--orange-hot));
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.nav-search input {
    width: 9.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.25s ease;
}

.nav-search input:focus {
    width: 13rem;
    border-color: var(--orange);
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07), 0 0 10px rgba(255, 102, 0, 0.3);
}

.nav-search input::placeholder { color: var(--text-faint); }

.search-form {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.8rem;
    max-width: 34rem;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07);
}

.search-form input:focus {
    border-color: var(--orange);
    box-shadow: inset 0 2px 4px rgba(30, 40, 55, 0.07), 0 0 12px rgba(255, 102, 0, 0.3);
}

.search-count {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.search-group {
    margin: 2.6rem 0 1.4rem;
    font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   Homepage charts (high scores)
   -------------------------------------------------------------------------- */

.chart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    counter-reset: chart;
}

.chart-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 1.05rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(30, 40, 55, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.chart-row:hover {
    transform: translateY(-2px);
    border-color: var(--accent, var(--orange));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(30, 40, 55, 0.12), 0 0 20px var(--accent-soft, rgba(255, 102, 0, 0.12));
}

.chart-rank {
    width: 2.6rem;
    flex-shrink: 0;
    font-size: 1.45rem;
    color: var(--text-faint);
    text-align: center;
}

.chart-row:first-child .chart-rank {
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.chart-glyph {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent, var(--orange));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 12px var(--accent-soft, rgba(255, 102, 0, 0.4));
    background: linear-gradient(180deg, #f4f5f7, #e8eaee);
    box-shadow: inset 0 1px 3px rgba(30, 40, 55, 0.1);
}

.chart-body { flex: 1; min-width: 0; }

.chart-body h3 { font-size: 1.15rem; }
.chart-body h3 a:hover { color: var(--orange-deep); }

.chart-body p {
    margin-top: 0.25rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.chart-row .vote-bar {
    margin-top: 0;
    flex-shrink: 0;
}

.chart-empty {
    padding: 1.4rem;
    color: var(--text-dim);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .chart-row { flex-wrap: wrap; gap: 0.8rem 1rem; }
    .chart-body { flex-basis: 100%; order: 3; }
}

.hot-badge {
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    z-index: 1;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--orange-dark);
    background: var(--grad-vibe);
    color: #fff;
    text-shadow: 0 1px 1px rgba(160, 60, 0, 0.5);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(217, 87, 0, 0.35);
}

.error-hero { padding-block: 7rem 8rem; }

/* --------------------------------------------------------------------------
   Share bar
   -------------------------------------------------------------------------- */

.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.8rem;
}

.share-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 0.3rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--grad-chrome);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(30, 40, 55, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    color: var(--orange-deep);
    border-color: var(--orange);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 102, 0, 0.25);
}

.share-btn.copied {
    color: #14652f;
    border-color: rgba(22, 140, 60, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(22, 140, 60, 0.25);
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.comments {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.5rem;
}

.comments-title .section-kicker { margin-bottom: 0.4rem; }

.comment-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.comment {
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(30, 40, 55, 0.06);
}

.comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.comment-author {
    color: var(--orange-deep);
    font-weight: 600;
}

.comment-body {
    margin-top: 0.55rem;
    color: var(--text-dim);
    font-size: 0.97rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.comments-empty {
    margin-top: 1.6rem;
    color: var(--text-faint);
}

.comment-form-panel {
    margin-top: 2rem;
    padding: 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 10px rgba(30, 40, 55, 0.08);
}

.comment-actions {
    margin-top: 1.4rem;
    padding-top: 0;
    border-top: none;
    align-items: center;
}

.comment-note {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* honeypot: visually gone, still in the DOM for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-bottom: 2.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav a { color: var(--text-faint); transition: color 0.2s ease; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a.active { color: var(--orange-deep); }
.admin-nav .admin-logout { margin-left: auto; }
.admin-nav .admin-logout:hover { color: #9c2413; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.4rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(30, 40, 55, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
}

.stat-attention {
    border-color: rgba(255, 102, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 102, 0, 0.18);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--grad-vibe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.admin-empty {
    margin-top: 2rem;
    color: var(--text-dim);
}

.admin-filter { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.admin-filter a { color: var(--orange-deep); }

.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-live { border: 1px solid rgba(22, 140, 60, 0.5); color: #14652f; background: rgba(22, 140, 60, 0.08); }
.badge-pending { border: 1px solid rgba(200, 130, 0, 0.5); color: #8a5a00; background: rgba(240, 170, 20, 0.12); }
.badge-open { border: 1px solid rgba(200, 45, 30, 0.5); color: #9c2413; background: rgba(200, 45, 30, 0.08); }

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border-strong);
}

.data-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: rgba(255, 102, 0, 0.04); }
.data-table a { color: var(--orange-deep); }

.report-details { max-width: 26rem; color: var(--text-dim); }

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.82rem; }

.refetch-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.links-intro { justify-content: center; }

.links-note {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.field-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.approved-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.approved-toggle input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; }

.preview-cell { width: 100px; }

.preview-thumb {
    display: block;
    width: 88px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
}

.preview-thumb-fresh { border-color: var(--orange); }

.preview-none { color: var(--text-faint); }

.refetch-status {
    font-size: 0.72rem;
    color: var(--text-faint);
    max-width: 14rem;
}

.refetch-status.is-error { color: #9c2413; }

.btn-danger { color: #9c2413; }
.btn-danger:hover {
    border-color: rgba(200, 45, 30, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 12px rgba(200, 45, 30, 0.18);
}

.submission-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.submission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.submission-head h3 { font-size: 1.3rem; }

.submission-blurb { color: var(--text-dim); }

.submission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
}

.submission-meta dt { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; }
.submission-meta dd { margin: 0.15rem 0 0; color: var(--text-dim); }
.submission-meta a { color: var(--orange-deep); }

.submission-story summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--orange-deep);
}

.submission-story p {
    margin-top: 0.9rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.login-panel { max-width: 28rem; }

.message-unread {
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 102, 0, 0.12);
}

.message-body {
    color: var(--text-dim);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Footer: chrome strip to bookend the header
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border-strong);
    padding-block: 2.2rem;
    background: var(--grad-chrome);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-links a:hover { color: var(--orange-deep); }

.footer-note {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-block: 4rem 3.5rem;
        text-align: center;
    }

    .hero-sub { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 1.5rem; }

    .card-grid { grid-template-columns: 1fr 1fr; }
    .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-search { display: none; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }

    .card-grid, .project-grid { grid-template-columns: 1fr; }

    .post { flex-wrap: wrap; gap: 1rem; }
    .post-arrow { display: none; }

    .hero-stats { gap: 1.6rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-panel { padding: 1.6rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo, .pulse-dot, .t-cursor, .marquee-track, .press-start { animation: none; }
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}
