.updates-section{border-top:1px solid var(--line);padding:40px 0 64px}
.updates-section[hidden],.updates-x[hidden]{display:none}
.updates-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.updates-heading h2{font-size:30px;letter-spacing:-.045em;line-height:1.4;margin:0}
.updates-channel{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:600;text-underline-offset:4px}
.updates-channel:hover{text-decoration:underline}
.updates-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px}
.update-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--paper);transition:translate .25s ease,box-shadow .25s ease}
.update-card:only-child{width:100%;max-width:760px}
.update-main{display:block;height:100%;color:var(--ink)}
.update-thumbnail{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:color-mix(in srgb,var(--accent) 7%,var(--paper))}
.update-thumbnail img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .4s cubic-bezier(.2,.75,.25,1)}
.update-thumbnail.contain img{object-fit:contain;padding:20px}
.update-play{position:absolute;inset:0;display:grid;place-items:center}
.update-play span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--accent);color:#fff;box-shadow:0 4px 16px #0003;transition:transform .25s ease}
.update-play svg{width:22px;height:22px;margin-left:3px;fill:currentColor}
.update-copy{padding:22px}
.update-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;font-size:12px;color:var(--muted)}
.update-platform{font-weight:600;color:var(--ink);display:inline-flex;gap:7px;align-items:center}
.update-platform svg{width:16px;height:16px;flex-shrink:0}
.update-copy h3{margin:0 0 10px;font-family:var(--serif);font-size:22px;line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere}
.update-summary{margin:0;color:var(--muted);font-size:14px;line-height:1.8}
.update-action{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;font-size:13px;font-weight:600}
.updates-x{margin-top:28px;padding-top:24px;border-top:1px solid var(--line);max-width:760px}
.updates-x-stage iframe{max-width:100%;border:0}
@media(hover:hover) and (pointer:fine){.update-card:hover{translate:0 -4px;box-shadow:0 16px 32px -20px var(--shadow)}.update-main:hover .update-thumbnail img{transform:scale(1.035)}.update-main:hover .update-play span{transform:scale(1.08)}}
.update-main:focus-visible{outline-offset:-4px;outline-width:3px}
.update-main:focus-visible .update-play span{transform:scale(1.08)}
.updates-player{width:min(960px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);overflow:auto}
.updates-player::backdrop{background:#000a;backdrop-filter:blur(5px)}
.updates-player-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.updates-player-header h2{font-size:20px;line-height:1.4;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.updates-player-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--control-line);border-radius:50%;background:var(--paper);color:var(--ink);font-size:28px;cursor:pointer}
.updates-player-close:hover{background:color-mix(in srgb,var(--accent) 10%,var(--paper))}
.updates-player-stage{aspect-ratio:16/9;background:#000;border-radius:6px;overflow:hidden}
.updates-player-stage iframe{display:block;width:100%;height:100%;border:0}
.updates-player-footer{margin:12px 0 0;font-size:13px}
.updates-player-footer a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}
body:has(.updates-player[open]){overflow:hidden}
@media(max-width:760px){.updates-section{padding:32px 0 42px}.updates-heading{gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:22px}.updates-heading h2{font-size:27px}.updates-grid{gap:18px}.update-copy{padding:20px}.updates-player{padding:14px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.updates-player-header{gap:12px}.updates-player-header h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.update-card,.update-thumbnail img,.update-play span{transition:none!important;transform:none!important;translate:none!important}.updates-player::backdrop{backdrop-filter:none}}

/* Equal cards: one Devlog column and two Social cards plus a preview of the next. */
.home-feeds{display:grid;grid-template-columns:minmax(0,calc((100% - 84px)/3)) minmax(0,1fr);gap:20px;border-top:1px solid var(--line);padding:40px 0 56px}
.home-feeds:not(:has(.latest-devlogs-section)){grid-template-columns:minmax(0,1fr)}
.home-feeds>.latest-devlogs-section,.home-feeds>.updates-section{min-width:0;border:0;padding:0}
.home-feeds .latest-devlogs-section .section-heading,.home-feeds .updates-heading{min-height:48px;margin:0 0 22px;align-items:center;flex-direction:row;gap:16px}
.home-feeds .latest-devlogs-section .devlog-entries{gap:20px;margin:0;padding:4px 0 8px}
.home-feeds .latest-devlogs-section .devlog-entry,.update-card{height:480px;min-width:0;border-radius:8px}
.home-feeds .latest-devlogs-section .devlog-entry-link,.update-main{display:flex;flex-direction:column;height:100%;min-height:0}
.home-feeds .latest-devlogs-section .devlog-preview,.update-thumbnail{height:220px;aspect-ratio:auto;flex-shrink:0;border:0;border-bottom:1px solid var(--line);background:#fff}
.update-thumbnail img{object-fit:contain}
.home-feeds .latest-devlogs-section .devlog-entry-content,.update-copy{display:flex;flex:1;min-height:0;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:20px;gap:0}
.home-feeds .latest-devlogs-section .devlog-entry-meta,.update-meta{height:24px;min-height:24px;flex-shrink:0;flex-wrap:nowrap;gap:8px;margin:0 0 12px;font-size:12px;line-height:1.6}
.home-feeds .latest-devlogs-section .devlog-entry time{font-size:12px}
.home-feeds .latest-devlogs-section .devlog-entry h3,.update-copy h3{font-size:20px;line-height:1.35;letter-spacing:-.025em;min-height:2.7em;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-feeds .latest-devlogs-section .devlog-entry p,.update-summary{font-size:13px;line-height:1.8;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.home-feeds .latest-devlogs-section .devlog-entry-cta,.update-action{margin-top:auto;padding-top:12px;height:44px;min-height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;font-size:13px;line-height:20px;color:var(--accent-text);text-decoration:none}
.home-feeds .latest-devlogs-section .page-text-link{font-size:12px;gap:8px}
.social-heading-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.social-channels{display:flex;align-items:center;gap:16px}.social-channels .updates-channel{font-size:12px}
.social-channels svg{width:20px;height:20px;flex-shrink:0}
.update-platform{min-height:24px}.update-platform svg{width:22px;height:22px}
[data-platform="youtube"] svg{color:#df242b}[data-platform="instagram"] svg{color:#bd2d85}
:root[data-theme="dark"] [data-platform="instagram"] svg{color:#f292cd}
.updates-grid{position:relative;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/2);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;padding:4px 0 8px}
.updates-grid::-webkit-scrollbar,.home-feeds .devlog-entries::-webkit-scrollbar{display:none}
.updates-grid:focus-visible{outline:2px solid var(--focus);outline-offset:5px;border-radius:8px}
.updates-grid.is-dragging{scroll-snap-type:none;scroll-behavior:auto;user-select:none;cursor:grabbing}
.update-card{scroll-snap-align:start;scroll-snap-stop:normal}.update-card[hidden]{display:none}.update-card:only-child{max-width:none}
.update-play span{width:48px;height:48px}
.updates-x{position:relative;max-width:none;margin:0;padding:0;border:1px solid var(--line)}
.updates-x-stage{position:absolute;left:0;right:0;top:0;height:220px;min-width:0;overflow:hidden;visibility:hidden}
.updates-x[data-widget-state="ready"] .updates-x-stage{visibility:visible;background:var(--paper)}
.updates-x-stage iframe{display:block;width:100%;max-width:100%;border:0}
.social-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1000px){.home-feeds{grid-template-columns:minmax(0,1fr);gap:36px}.home-feeds .latest-devlogs-section .devlog-entries{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 64px)/2);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 0 8px}.home-feeds .latest-devlogs-section .devlog-entry{scroll-snap-align:start}.home-feeds .latest-devlogs-section .section-heading,.home-feeds .updates-heading{min-height:44px}}
@media(max-width:760px){.home-feeds{padding:32px 0 40px;gap:32px}.home-feeds .updates-heading{align-items:flex-start;flex-wrap:wrap}.social-heading-tools{flex:1;justify-content:flex-end}.social-channels{gap:12px}.updates-grid,.home-feeds .latest-devlogs-section .devlog-entries{grid-auto-columns:calc(100% - 40px);gap:16px}}
@media(prefers-reduced-motion:reduce){.updates-grid{scroll-behavior:auto}}

/* Separate the two feeds without changing their shared card dimensions. */
.home-feeds>.updates-section{position:relative}
.home-feeds:has(.latest-devlogs-section)>.updates-section::before{content:"";position:absolute;left:-10.5px;top:0;bottom:0;width:1px;background:var(--line);pointer-events:none}
/* These overlays stay at the viewport edges while the cards scroll beneath. */
.social-carousel{position:relative;isolation:isolate;--edge-fade:36px}
.social-carousel::before,.social-carousel::after{content:"";position:absolute;z-index:2;top:3px;bottom:7px;width:var(--edge-fade);pointer-events:none;opacity:0;transition:opacity .18s ease}
.social-carousel::before{left:0;background:linear-gradient(to right,var(--paper),transparent)}
.social-carousel::after{right:0;background:linear-gradient(to left,var(--paper),transparent)}
.social-carousel.can-scroll-back::before,.social-carousel.can-scroll-forward::after{opacity:1}
@media(max-width:1000px){.home-feeds:has(.latest-devlogs-section)>.updates-section::before{left:0;right:0;top:-18px;bottom:auto;width:auto;height:1px}}
@media(max-width:760px){.home-feeds:has(.latest-devlogs-section)>.updates-section::before{top:-16px}.social-carousel{--edge-fade:28px}}
@media(prefers-reduced-motion:reduce){.social-carousel::before,.social-carousel::after{transition:none}}

/* Shared type and action metrics keep both card families on the same baselines. */
.home-feeds .latest-devlogs-section .section-heading h2,.home-feeds .updates-heading h2{letter-spacing:-.045em}
.home-feeds .devlog-entry-meta time,.home-feeds .update-meta time{white-space:nowrap}
.home-feeds .devlog-entry,.home-feeds .update-card{transition:translate .25s ease,box-shadow .25s ease,border-color .25s ease}
.home-feeds .devlog-entry:hover{translate:none;box-shadow:none;border-color:var(--line)}
@media(hover:hover) and (pointer:fine){.home-feeds .devlog-entry:hover,.home-feeds .update-card:hover{translate:0 -4px;box-shadow:0 16px 32px -20px var(--shadow);border-color:var(--control-line)}}
@media(prefers-reduced-motion:reduce){.home-feeds .devlog-entry,.home-feeds .update-card{transition:none;translate:none!important}}

/* A local vector fallback needs no expiring URL and keeps the whole card usable. */
.update-image-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:color-mix(in srgb,var(--accent) 7%,var(--paper));color:var(--ink);font-size:16px;font-weight:600}
.update-image-fallback svg{display:block;width:56px;height:56px;flex-shrink:0}
