/* ════════════════════════════════════════════════════════════
   NARRADIVE — Devlog (list + article) styles
   Auto-fed from Steam announcements via the Cloudflare Worker.
   ════════════════════════════════════════════════════════════ */

/* ═══ DEVLOG HERO ═══ */
.devlog-hero {
    position: relative;
    min-height: clamp(440px, 60vh, 600px);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 4.5rem) 0 clamp(2.5rem, 6vh, 4rem);
    overflow: hidden;
    isolation: isolate;
}
/* Art backdrop — a real in-game location scene (not the old blurred banner), so
   the devlog opens inside the game's world like games.html does. The `scene-bg`
   class on the element is a JS hook: js/site.js initParallax() drifts it on
   scroll. Extra bleed (inset) so the parallax translate never exposes an edge. */
.devlog-hero-bg {
    position: absolute;
    inset: -22%;
    z-index: -3;
    background-color: #0d0a08;
    background-image: url('../Assets/images/locations/l3-arnoldvonlab-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6) saturate(0.95);
    will-change: transform;
}
/* Readability scrim (top/bottom, for the centred composition) + a vignette, so
   the cream title always holds over the scene. Both sit above the art (z -3),
   below the content (z 1). */
.devlog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(8, 9, 13, 0.86) 0%,
        rgba(8, 9, 13, 0.40) 28%,
        rgba(8, 9, 13, 0.44) 58%,
        rgba(8, 9, 13, 0.90) 92%,
        var(--bg) 100%);
}
.devlog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    box-shadow: inset 0 0 240px 70px rgba(0, 0, 0, 0.7);
}
.devlog-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-3);
    text-align: center;
    position: relative;
    z-index: 1;
}
.devlog-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    line-height: 1.02;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-top: var(--s-2);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.devlog-hero-sub {
    margin: var(--s-3) auto 0;
    max-width: 640px;
    color: var(--text-dim);
    font-size: 1.08rem;
    line-height: 1.75;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

/* ═══ HERO SEAL BUTTONS ═══
   A single-line take on the games page wax-seal (.wishlist-seal): same parchment
   material (Small_Button.png), hover halo + gilt flourishes + grow, red parchment
   on press — but ONE line of display type per action, since these are actions
   ("Read on Steam") not store names. Ties the hero to the page's other parchment
   buttons (Read more / Load more) so the whole devlog speaks one material. Kept
   .devlog-* scoped so it never touches games.html (which also loads this file). */
.devlog-seal {
    position: relative;
    z-index: 0; /* own stacking context so the ::before halo sits behind cleanly */
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.7rem 0.95rem 1.5rem;
    background: url('../Assets/wybmd-assets/Small_Button.png') center / 100% 100% no-repeat;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #37280f;
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.35);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
    cursor: pointer;
}
/* Icon + label ride above the parchment; logos read as dark ink on tan. */
.devlog-seal img {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) opacity(0.78);
}
.devlog-seal span { position: relative; z-index: 2; }
/* Hover halo — the selection's soft glow, dimmed and kept below the text. */
.devlog-seal::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: url('../Assets/wybmd-assets/Button_Selection_Seperate_Highlight.png') center / contain no-repeat;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
    z-index: 1;
}
/* Hover gilt flourishes — Top + Bot selection pieces pinned to the edges. */
.devlog-seal::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -25%;
    bottom: -25%;
    background-image:
        url('../Assets/wybmd-assets/Button_Selection_Seperate_Top.png'),
        url('../Assets/wybmd-assets/Button_Selection_Seperate_Bot.png');
    background-position: center top, center bottom;
    /* Fixed height (not width-proportional) so the flourish stays the same size
       on every button regardless of label length; a longer button no longer
       scales the ornament up over the text. The -32% box spreads the Top/Bot
       pieces apart vertically. Kept in sync with css/about.css. */
    background-size: auto 22px, auto 22px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0;
    transform: scale(0.92);
    transform-origin: center;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
    z-index: 3;
}
.devlog-seal:hover::before,
.devlog-seal:focus-visible::before { opacity: 1; }
.devlog-seal:hover::after,
.devlog-seal:focus-visible::after { opacity: 1; transform: scale(1); }
/* Grow as one — the parent scale carries parchment + halo + flourishes together. */
.devlog-seal:hover { transform: scale(1.05); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)); }
.devlog-seal:active { background-image: url('../Assets/wybmd-assets/Small_Button_Red.png'); color: #fff6e6; }
.devlog-seal:active img { filter: brightness(0) invert(1) opacity(0.92); }
.devlog-seal:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
    border-radius: 4px;
}
/* Two-line "store" variant — mirrors the games page wishlist seal (small label
   over the store name). Same parchment/halo/flourish machinery as .devlog-seal,
   just a bigger icon and a stacked two-line label used by the wishlist buttons. */
.devlog-seal--store { gap: 0.7rem; padding: 0.95rem 1.9rem 1.05rem 1.5rem; }
.devlog-seal--store img { width: 32px; height: 32px; }
/* The taller two-line store seal spreads the -25% flourish box too far apart, so
   tighten the inset just for this variant (matches css/games.css .wishlist-seal). */
.devlog-seal--store::after { top: -18%; bottom: -18%; }
.devlog-seal-texts {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    line-height: 1.12;
    text-align: left;
}
.devlog-seal-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6f5228;
}
.devlog-seal-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.12rem;
    letter-spacing: 0.05em;
    color: #37280f;
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.35);
}
.devlog-seal:active .devlog-seal-label,
.devlog-seal:active .devlog-seal-name { color: #fff6e6; }
@media (prefers-reduced-motion: reduce) {
    .devlog-seal { transition: none; }
}

/* ═══ ACTION BAR (Steam / Discord / Wishlist) ═══ */
.devlog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin-top: var(--s-4);
}
.btn--patreon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--line-strong);
}
.btn--patreon:hover {
    background: #000;
    color: #fff;
    border-color: #2c2c33;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}
.btn--steam-read {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line-strong);
}
.btn--steam-read:hover {
    border-color: var(--teal);
    color: var(--teal-bright);
    transform: translateY(-2px);
}

/* ═══ HERO → LIST TRANSITION ═══
   A gilt ornament with a thin gold rule fading in from each side, echoing the
   games page's .scene-divider so the two pages share one visual language. This
   is the ONLY diegetic flourish in the reading zone: the list backdrop stays
   calm dark (the parchment cards are the art), so nothing competes with reading. */
.devlog-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.9rem, 3vw, 2.2rem);
    padding: clamp(1.75rem, 4.5vh, 3rem) var(--s-3) 0;
    pointer-events: none;
}
.devlog-divider::before,
.devlog-divider::after {
    content: '';
    height: 2px;
    width: min(24vw, 300px);
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 55%, transparent));
}
.devlog-divider::after {
    background: linear-gradient(to left, transparent, color-mix(in srgb, var(--gold) 55%, transparent));
}
.devlog-divider-orn {
    flex-shrink: 0;
    width: clamp(150px, 32vw, 240px);
    aspect-ratio: 246 / 35;
    background: url('../Assets/wybmd-assets/Seperate_Top.png') center / contain no-repeat;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* Section title above the grid — kicker (Cinzel caps) + display heading, in the
   games-page rhythm, so the list reads as a titled chapter, not a loose grid. */
.devlog-list-head {
    text-align: center;
    margin: clamp(1.5rem, 4vh, 2.5rem) auto var(--s-5);
}
.devlog-list-kicker {
    font-family: var(--font-caps);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: var(--s-2);
}
.devlog-list-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    color: var(--text);
    letter-spacing: 0.02em;
}

/* ═══ DEVLOG LIST ═══ */
.devlog-section { padding: var(--s-4) 0 var(--s-7); }

.devlog-grid {
    display: grid;
    /* Wider columns so each card sits closer to the panel art's ~1:1 shape
       instead of reading as a tall, narrow strip. */
    grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
    gap: var(--s-4);
}

/* Feature (first / latest) post spans wider on large screens */
.devlog-grid .devlog-card.is-feature {
    grid-column: 1 / -1;
    flex-direction: row;
}
.devlog-grid .devlog-card.is-feature .devlog-card-media {
    flex: 0 0 48%;
    aspect-ratio: auto;
    min-height: 320px;
}
.devlog-grid .devlog-card.is-feature .devlog-card-body { flex: 1; }
.devlog-grid .devlog-card.is-feature .devlog-card-title { font-size: 2rem; }

/* Cards are the game's own wooden-framed parchment event panel
   (EventPanel_Background). 9-sliced via border-image so the carved frame +
   corner rivets stay crisp at any size; the parchment center (`fill`) becomes
   the card surface. `padding` leaves a parchment margin between the frame and
   the mounted screenshot, matching the in-game panel. No hover motion — an
   event panel sits still. Slice values are the measured frame thickness
   (top right bottom left, px). */
.devlog-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 24px solid transparent;
    border-image: url('../Assets/wybmd-assets/web/EventPanel_Background.webp') 116 92 114 120 fill / 24px / 0 stretch;
    border-radius: 0;
    position: relative;
    /* Fixed, shape-accurate depth: drop-shadow traces the panel's torn edges
       (a rectangular box-shadow would leak past the frayed corners). */
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
/* Title + date above the image, centered, echoing the in-game panel header */
.devlog-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
    padding: 0.15rem 0.5rem 0.7rem;
}
.devlog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    /* trimmed 10% from full width and centered, so a little parchment shows
       around the mounted screenshot */
    width: 90%;
    align-self: center;
    /* transparent so the feathered image edges dissolve into the real parchment
       (the card's border-image fill) sitting behind them */
    background: transparent;
}
/* Feather the screenshot's four edges into the parchment, like the game's inset
   illustration. Two axis gradients intersected so the corners fade too. */
.devlog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    --fade: 20px;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.devlog-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* small top gap — the image already sits close; a big pad read as a void */
    padding: 0.45rem 0.5rem 0.4rem;
}
/* Compact cards mirror the in-game panel's centered composition; the wide
   feature card stays left-aligned since its text sits beside the image. */
.devlog-grid .devlog-card:not(.is-feature) .devlog-card-body {
    align-items: center;
    text-align: center;
}
/* Ink-on-parchment — the site cream/teal would wash out on the tan surface */
.devlog-card-date {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a2f1d;
}
.devlog-card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #2a1a0e;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}
.devlog-card-excerpt {
    color: #4a3320;
    font-size: 0.98rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.devlog-card.is-feature .devlog-card-excerpt { -webkit-line-clamp: 5; }
/* "Read more" is the card's action, styled as the in-game Event_Button bar */
.devlog-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: stretch;
    margin-top: auto;
    padding: 0.7rem 1.1rem 0.8rem;
    background: url('../Assets/wybmd-assets/Event_Button.png') center / 100% 100% no-repeat;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a1a0e;
    filter: drop-shadow(0 4px 7px rgba(20, 10, 4, 0.42));
    /* The whole card stays clickable, but the "click here" affordance lives on
       this button: it grows + brightens on card hover so the eye knows where to
       aim. transform-origin centered so the parchment bar swells evenly. */
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.devlog-card:hover .devlog-card-link {
    transform: scale(1.035);
    filter: drop-shadow(0 7px 11px rgba(20, 10, 4, 0.5)) brightness(1.06);
}
.devlog-card-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.devlog-card:hover .devlog-card-link svg { transform: translateX(5px); }
/* Whole card is clickable */
.devlog-card-anchor { position: absolute; inset: 0; z-index: 2; }

/* The in-game "Event" button (.btn--event) is defined in core.css so it is
   available site-wide (devlog "Load more", games CTA, 404). */

/* ═══ STATES (loading / empty / error) ═══ */
.devlog-state {
    text-align: center;
    padding: var(--s-6) var(--s-3);
    color: var(--text-dim);
    grid-column: 1 / -1;
}
.devlog-state .devlog-spinner {
    width: 34px; height: 34px;
    margin: 0 auto var(--s-2);
    border: 2px solid var(--line-strong);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: devlog-spin 0.8s linear infinite;
}
@keyframes devlog-spin { to { transform: rotate(360deg); } }

/* "Devlog unavailable" — Mimi the studio dog above the message. */
.devlog-state--dog { padding: var(--s-6) var(--s-3) var(--s-7); }
.devlog-state-img {
    display: block;
    width: clamp(140px, 26vw, 220px);
    height: auto;
    margin: 0 auto var(--s-3);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
}
.devlog-state--dog p {
    max-width: 32ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

.devlog-loadmore-wrap { text-align: center; margin-top: var(--s-5); }

/* ═══ ARTICLE (single devlog) ═══ */
.devlog-article {
    padding: calc(var(--nav-h) + 7rem) 0 var(--s-6);
}
.devlog-article-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--s-3);
}
.devlog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--s-4);
    transition: color 0.25s var(--ease);
}
.devlog-back svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.devlog-back:hover { color: var(--teal); }
.devlog-back:hover svg { transform: translateX(-4px); }

.devlog-article-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}
.devlog-article-date {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}
/* The article-head Steam source link is a COMPACT parchment seal (same material
   as .devlog-seal, smaller) so it fits the thin date row while still speaking the
   page's in-game button language. */
.devlog-article-steam {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #37280f;
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.35);
    background: url('../Assets/wybmd-assets/Small_Button.png') center / 100% 100% no-repeat;
    padding: 0.5rem 1.05rem 0.6rem;
    white-space: nowrap;
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.devlog-article-steam img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) opacity(0.78);
}
.devlog-article-steam:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.55));
}
.devlog-article-steam:active { background-image: url('../Assets/wybmd-assets/Small_Button_Red.png'); color: #fff6e6; }
.devlog-article-steam:active img { filter: brightness(0) invert(1) opacity(0.92); }
.devlog-article-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--text);
    margin: var(--s-2) 0 var(--s-3);
    letter-spacing: 0.02em;
    line-height: 1.12;
    text-wrap: pretty;
}
/* Cover gets the diegetic treatment (gold hairline + deep shadow) so the article
   HEADER feels in-world, while the prose below stays on a calm surface — the
   reading zone is deliberately left undecorated so long text never strains. */
.devlog-article-cover {
    margin: var(--s-3) 0 var(--s-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
    box-shadow:
        0 26px 52px -26px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.devlog-article-cover img { width: 100%; display: block; }

/* ─── Prose: maps Steam BBCode→HTML to the studio's type system ─── */
.devlog-prose { font-size: 1.075rem; line-height: 1.8; color: var(--text-dim); }
.devlog-prose > * + * { margin-top: var(--s-3); }
.devlog-prose h1,
.devlog-prose h2,
.devlog-prose h3,
.devlog-prose h4 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-top: var(--s-5);
}
.devlog-prose h1 { font-size: 1.9rem; }
.devlog-prose h2 { font-size: 1.6rem; }
.devlog-prose h3 { font-size: 1.3rem; }
.devlog-prose h4 { font-size: 1.1rem; }
.devlog-prose p { color: var(--text-dim); }
.devlog-prose strong, .devlog-prose b { color: var(--text); font-weight: 600; }
.devlog-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(68, 187, 164, 0.4); transition: color 0.2s; }
.devlog-prose a:hover { color: var(--teal-bright); }
.devlog-prose ul, .devlog-prose ol { padding-left: 1.4rem; }
.devlog-prose ul { list-style: none; }
.devlog-prose ul li { position: relative; padding-left: 0.4rem; }
.devlog-prose ul li::before {
    content: '';
    position: absolute;
    left: -0.9rem; top: 0.72em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
}
.devlog-prose ol { list-style: decimal; }
.devlog-prose li + li { margin-top: 0.4rem; }
.devlog-prose img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin: var(--s-4) auto;
}
.devlog-prose blockquote {
    border-left: 3px solid var(--purple);
    padding: 0.3rem 0 0.3rem 1.3rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
}
.devlog-prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    margin: var(--s-5) 0;
}
.devlog-prose iframe,
.devlog-prose video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin: var(--s-4) 0;
}

/* ─── Images open in a viewer (lightbox) ─── */
.devlog-zoom { cursor: zoom-in; transition: filter 0.2s; }
.devlog-zoom:hover { filter: brightness(1.06); }

/* ─── Carousel → swipeable slider (Steam-style) ─── */
.devlog-gallery { display: grid; gap: var(--s-3); }        /* pre-enhance / single-image fallback */
.devlog-slider { position: relative; margin: var(--s-4) 0; }
.devlog-slider-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin: 0;
}
.devlog-slider-track::-webkit-scrollbar { display: none; }
.devlog-slider-track > img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    margin: 0;
    border: none;
    border-radius: 0;
    display: block;
}
.devlog-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: background 0.2s;
}
.devlog-slider-nav:hover { background: rgba(0, 0, 0, 0.82); }
.devlog-slider-nav.prev { left: 10px; }
.devlog-slider-nav.next { right: 10px; }
.devlog-slider-nav svg { width: 22px; height: 22px; }
.devlog-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0.85rem; }
.devlog-slider-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line-strong);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.devlog-slider-dot.is-active { background: var(--gold); transform: scale(1.25); }

/* ─── Lightbox / viewer overlay ─── */
.devlog-lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 9, 0.93);
    padding: 4vmin;
}
.devlog-lb.open { display: flex; }
.devlog-lb-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px -30px #000;
}
.devlog-lb-close {
    position: absolute;
    top: 16px; right: 22px;
    width: 44px; height: 44px;
    font-size: 2.2rem; line-height: 1;
    background: none; border: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0.8;
}
.devlog-lb-close:hover { opacity: 1; }
/* Sigil prev/next — shared visual language with the games gallery lightbox
   (css/games.css .lightbox-nav). z-index sits ABOVE the image so the left
   sigil is never painted under the image on narrow screens. */
.devlog-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 64px; height: 64px;
    background: center / contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.devlog-lb-nav:hover { transform: translateY(-50%) scale(1.08); filter: brightness(1.12); }
.devlog-lb-nav.prev { left: 3vmin; background-image: url('../Assets/wybmd-assets/Sigil_Left_Button.png'); }
.devlog-lb-nav.next { right: 3vmin; background-image: url('../Assets/wybmd-assets/Sigil_Right_Button.png'); }
@media (prefers-reduced-motion: reduce) { .devlog-lb-nav { transition: none; } }
@media (max-width: 600px) {
    .devlog-lb-nav { width: 48px; height: 48px; }
    .devlog-lb-nav.prev { left: 2vmin; }
    .devlog-lb-nav.next { right: 2vmin; }
}
.devlog-lb-count {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-caps);
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Footer action bar inside an article */
.devlog-article-foot {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    text-align: center;
}
.devlog-article-foot h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
    margin-bottom: var(--s-3);
}
/* Footer buttons in two centred rows: wishlist (conversion) on top, follow
   (Discord / Support) below. Each row centres its OWN pair, so the follow pair
   sits together instead of floating under the wider wishlist seals above. */
.devlog-actions--foot {
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}
/* Both rows share one 2-column (15rem) grid so the follow row lines up with the
   store row above it: the store seals fill the two tracks, while the natural-width
   follow seals are pinned to the tracks' INNER edges — Join Discord's right edge
   meets STEAM's right edge, Support us' left edge meets EPIC GAMES' left edge. */
.devlog-foot-row {
    display: grid;
    grid-template-columns: 15rem 15rem;
    justify-content: center;
    align-items: stretch;
    gap: var(--s-3);
}
.devlog-foot-row > .devlog-seal:first-child { justify-self: end; }
.devlog-foot-row > .devlog-seal:last-child { justify-self: start; }
@media (max-width: 600px) {
    .devlog-foot-row { grid-template-columns: 1fr; }
    .devlog-foot-row > .devlog-seal:first-child,
    .devlog-foot-row > .devlog-seal:last-child { justify-self: center; }
}
/* Equal-width store seals only: the wishlist row (STEAM vs the longer EPIC GAMES)
   would otherwise each size to its own label, so give just those two a shared
   min-width + centred content (matches the games wishlist seals' 15rem). The
   single-line follow seals (Join Discord / Support us) keep their natural width. */
.devlog-actions--foot .devlog-seal--store {
    min-width: 15rem;
    justify-content: center;
}

/* ═══ ACTION BUTTONS (devlog list hero + article footer) ═══ */
/* All five share one neutral default colour */
.devlog-actions .btn,
.devlog-actions .store-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
/* No motion on hover — no lift, no shadow */
.devlog-actions .btn:hover,
.devlog-actions .store-btn:hover {
    transform: none;
    box-shadow: none;
}
/* On hover each fills with its OWN platform colour, border == fill → one solid block */
.devlog-actions .btn--steam-read:hover,
.devlog-actions .store-btn--steam:hover {
    background: #1568b0;
    border-color: #1568b0;
    color: #fff;
}
.devlog-actions .btn--discord:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: #fff;
}
.devlog-actions .btn--patreon:hover {
    background: #000;
    border-color: #2c2c33;
    color: #fff;
}
.devlog-actions .store-btn--epic:hover {
    background: #101014;
    border-color: #2c2c33;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 760px) {
    .devlog-grid .devlog-card.is-feature { flex-direction: column; }
    .devlog-grid .devlog-card.is-feature .devlog-card-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
    .devlog-grid .devlog-card.is-feature .devlog-card-title { font-size: 1.5rem; }
}
