@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --ink: #282629;
    --ink-soft: #4f4b50;
    --paper: #f8f4ed;
    --paper-bright: #fffdf9;
    --pink: #af2f76;
    --pink-soft: #dba8c2;
    --line: rgba(40, 38, 41, .18);
    --page-transition-color: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scrollbar-gutter: stable; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: 'Poppins', sans-serif; animation: pageEnter .6s ease both; }
body.page-transition-leaving { animation: pageExit .35s ease forwards; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageExit { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } body.page-transition-leaving { animation: none; } }

.page-transition-overlay { position: fixed; inset: 0; z-index: 9999; background: var(--page-transition-color); opacity: 1; pointer-events: none; transition: opacity .35s ease; }
.page-transition-overlay.is-revealed { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .page-transition-overlay { transition: none; } }
a { color: inherit; }

.resources-header { min-height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 0 5vw; border-bottom: 1px solid var(--line); }
.resources-brand { display: flex; align-items: baseline; gap: .8rem; color: var(--ink); text-decoration: none; }
.resources-brand span:first-child { font-size: .95rem; font-weight: 700; }
.resources-brand span:last-child:not(:first-child) { color: var(--ink-soft); font-size: .6rem; font-weight: 600; letter-spacing: .13em; }
.resources-nav { display: flex; align-items: center; gap: 1.5rem; }
.resources-nav > a { color: var(--ink); text-decoration: none; font-size: .72rem; font-weight: 600; }
.resources-nav > a:hover, .resources-footer a:hover { color: var(--pink); }
.resources-language { display: flex; gap: .25rem; }
.resources-language button { min-width: 38px; min-height: 34px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .64rem 'Poppins', sans-serif; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.resources-language button.active, .resources-language button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.resources-main { width: min(1220px, 90vw); min-height: 76vh; margin: 0 auto; padding: 9vh 0 10vh; }
.resources-intro { display: grid; grid-template-columns: 1fr minmax(230px, 350px); gap: 3rem; align-items: end; padding-bottom: 3.5rem; }
.resources-eyebrow { margin: 0 0 1.1rem; color: var(--pink); font-size: .65rem; font-weight: 700; letter-spacing: .15em; }
.resources-main h1 { margin: 0; font-size: 5rem; font-weight: 500; line-height: 1; letter-spacing: 0; animation: riseIn .55s .1s both; }
.resources-intro-note { max-width: 310px; margin: 0 0 .25rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.75; }

.resource-workspace { display: flex; flex-direction: column; gap: 1.5rem; }
.resource-categories { display: flex; flex-direction: column; gap: .9rem; }
.category-switch-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: .2rem; }
.category-rail-overline { margin: 0 0 .4rem; color: var(--pink); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.category-rail-label { margin: 0; color: var(--ink); font-size: 1.15rem; font-weight: 500; }
.category-count { padding-bottom: .15rem; color: #89848a; font-size: .62rem; font-weight: 600; letter-spacing: .1em; }
.resource-category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.resource-category { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 90px; padding: 1rem 1.1rem; border: 1px solid rgba(40, 38, 41, .18); border-radius: 6px; background: rgba(255, 253, 249, .68); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.resource-category:hover { transform: translateY(-2px); border-color: rgba(175, 47, 118, .48); }
.resource-category.is-active { border-color: var(--pink); background: #282529; color: var(--paper-bright); box-shadow: 0 8px 20px rgba(40, 38, 41, .12); }
.resource-category-number { color: var(--pink); font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.resource-category-copy { display: flex; flex-direction: column; gap: .25rem; }
.resource-category-name { font-size: .88rem; font-weight: 600; }
.resource-category-detail { color: var(--ink-soft); font-size: .63rem; }
.resource-category.is-active .resource-category-detail { color: rgba(255, 253, 249, .62); }
.resource-category-arrow { color: var(--pink); font-size: 1.05rem; opacity: .6; transition: transform .2s ease, opacity .2s ease; }
.resource-category:hover .resource-category-arrow, .resource-category.is-active .resource-category-arrow { opacity: 1; transform: translate(2px, -2px); }

.resource-panels { min-width: 0; padding: 0; }
.resource-category-panel[hidden] { display: none; }
.resource-category-panel:not([hidden]) { animation: panelEnter .35s ease both; }
.resource-category-panel[hidden] { display: none !important; }
.plugin-feature { position: relative; min-height: 390px; display: flex; flex-direction: column; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(219, 168, 194, .25); border-radius: 8px; background: #282529; color: var(--paper-bright); }
.plugin-feature + .plugin-feature { margin-top: 1.25rem; }
.plugin-feature::before { position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--pink); content: ''; transform: scaleY(.25); transform-origin: top; transition: transform .4s ease; }
.plugin-feature:hover::before { transform: scaleY(1); }
.plugin-gear-decoration { position: absolute; top: auto; right: -4rem; bottom: -5rem; z-index: 0; width: 360px; height: 360px; margin: 0; object-fit: contain; opacity: .2; filter: saturate(1.35) brightness(1.08) drop-shadow(0 0 20px rgba(175, 47, 118, .48)); pointer-events: none; animation: gearTurn 32s linear infinite; }
.plugin-feature-asset .plugin-asset-decoration { right: -4rem; bottom: -5rem; width: 360px; height: 360px; opacity: .18; filter: saturate(1.35) brightness(1.08) drop-shadow(0 0 18px rgba(175, 47, 118, .42)); animation: assetDecorationBloom 3.2s ease-in-out infinite; }
@keyframes assetDecorationBloom { 0%, 100% { opacity: .12; filter: saturate(1.2) brightness(1.04) drop-shadow(0 0 8px rgba(175, 47, 118, .24)); } 50% { opacity: .24; filter: saturate(1.5) brightness(1.12) drop-shadow(0 0 24px rgba(175, 47, 118, .58)); } }
.plugin-feature-head, .plugin-description, .plugin-feature-footer { position: relative; z-index: 1; }
.plugin-feature-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.resource-brand-lockup { display: flex; align-items: center; width: fit-content; max-width: 100%; gap: .2rem; }
.resource-logo-wrap { position: relative; display: grid; flex: 0 0 108px; place-items: center; aspect-ratio: 1; }
.resource-logo { display: block; width: 100%; height: 100%; object-fit: contain; animation: gearTurn 28s linear infinite; }
.resource-logo-one { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper-bright); font: 600 1.25rem/1 'Agency FB', 'Arial Narrow', sans-serif; pointer-events: none; }
.asset-logo-one { z-index: 1; color: var(--paper-bright); font-size: 3rem; font-weight: 700; }
.resource-wordmark { display: flex; flex-direction: column; color: var(--paper-bright); font: 500 4.1rem/.72 'Agency FB', 'Arial Narrow', Impact, sans-serif; letter-spacing: 0; transition: color .2s ease; }
.plugin-feature:hover .resource-wordmark { color: var(--pink-soft); }
.plugin-feature-asset .resource-logo-wrap { flex-basis: 120px; }
.plugin-feature-asset .resource-logo { animation: none; }
.plugin-feature-asset .resource-logo-wrap, .resource-dialog-asset .resource-logo-wrap { animation: assetLogoBloom 3.2s ease-in-out infinite; }
@keyframes assetLogoBloom { 0%, 100% { filter: drop-shadow(0 0 0 rgba(175, 47, 118, 0)); } 50% { filter: drop-shadow(0 0 15px rgba(175, 47, 118, .52)); } }
.plugin-index { padding-top: .35rem; color: var(--pink-soft); font-size: .59rem; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.plugin-description { position: relative; z-index: 1; max-width: 660px; margin: 1.5rem 0 2rem; color: rgba(255, 253, 249, .78); font-size: .84rem; line-height: 1.8; }
.install-guide { margin: 2rem 0 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.install-guide-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .6rem; }
.guide-kicker { margin: 0 0 .4rem; color: var(--pink); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.install-guide-heading h3 { margin: 0; font-size: 1.55rem; font-weight: 500; line-height: 1.2; }
.install-step { display: grid; grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr); align-items: center; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.install-step-copy { display: flex; align-items: flex-start; gap: .8rem; }
.install-step-number { flex: 0 0 2rem; color: var(--pink); font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.install-step-copy h4 { margin: 0 0 .35rem; font-size: .83rem; font-weight: 700; }
.install-step-copy p { margin: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.65; }
.guide-scene { position: relative; min-width: 0; min-height: 160px; overflow: hidden; border: 1px solid rgba(40, 38, 41, .16); border-radius: 5px; background: #e7e5e5; color: #37353a; font-family: 'Poppins', sans-serif; }
.mock-window { position: absolute; inset: 0; overflow: hidden; background: #f5f4f5; }
.mock-titlebar { height: 27px; display: flex; justify-content: space-between; align-items: center; padding: 0 .65rem; background: #f9f8f8; color: #39373b; font-size: .55rem; }
.mock-window-controls { color: #79767b; letter-spacing: .3em; }
.mock-address { height: 25px; display: flex; align-items: center; gap: .55rem; padding: 0 .7rem; border-top: 1px solid #e1dfe2; border-bottom: 1px solid #e1dfe2; background: #fff; color: #77737b; font-size: .52rem; }
.mock-address strong { color: #38353b; font-weight: 600; }
.explorer-body { height: calc(100% - 52px); display: flex; }
.explorer-sidebar { flex: 0 0 25%; display: flex; flex-direction: column; gap: .55rem; padding: .75rem .55rem; background: #f0eff0; color: #6e6970; font-size: .47rem; }
.explorer-files { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: .35rem; padding: .7rem .4rem; }
.mock-file { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; padding: .45rem .2rem; border: 1px solid transparent; color: #4e4a50; font-size: .46rem; }
.folder-icon { position: relative; display: block; width: 27px; height: 19px; border: 1px solid #be8a25; border-radius: 2px; background: #f2c967; }
.folder-icon::before { position: absolute; left: 2px; top: -5px; width: 12px; height: 5px; border: 1px solid #be8a25; border-bottom: 0; border-radius: 2px 2px 0 0; background: #f2c967; content: ''; }
.plugins-drop-target { border-color: rgba(175, 47, 118, .38); border-radius: 3px; background: rgba(175, 47, 118, .08); }
.drag-folder { position: absolute; top: 53%; left: 31%; z-index: 2; display: flex; align-items: center; gap: .35rem; padding: .3rem .4rem; border: 1px solid rgba(175, 47, 118, .4); border-radius: 3px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); font-size: .48rem; animation: dragIntoPlugins 5.5s ease-in-out infinite; }
.drag-folder .folder-icon { width: 17px; height: 13px; }
.drag-folder .folder-icon::before { top: -4px; width: 8px; height: 4px; }
.guide-cursor { position: absolute; z-index: 5; width: 17px; height: 24px; background: #19171b; clip-path: polygon(0 0, 0 100%, 28% 73%, 46% 100%, 59% 94%, 41% 66%, 78% 65%); filter: drop-shadow(1px 1px 0 white); }
.explorer-cursor { left: 34%; top: 62%; animation: explorerPointer 5.5s ease-in-out infinite; }

.plugins-scene { background: #28272a; color: #efedf0; }
.ue-plugins-window { background: #29282c; color: #eeedf0; }
.ue-titlebar { height: 25px; background: #242327; color: #d6d3d9; }
.ue-menu-line { height: 22px; display: flex; align-items: center; gap: .8rem; padding: 0 .7rem; border-bottom: 1px solid #454348; color: #c4c1c7; font-size: .48rem; }
.ue-plugin-layout { display: flex; height: calc(100% - 47px); }
.ue-plugin-nav { flex: 0 0 24%; display: flex; flex-direction: column; gap: .4rem; padding: .55rem; background: #302f33; color: #aaa6ae; font-size: .46rem; }
.ue-plugin-nav strong { color: #f2eff3; font-size: .5rem; }
.ue-plugin-content { flex: 1; padding: .6rem; }
.ue-plugin-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; font-size: .57rem; }
.ue-plugin-heading span { padding: .25rem .45rem; border: 1px solid #555159; border-radius: 2px; color: #aba7ae; font-size: .43rem; }
.ue-plugin-row { display: flex; align-items: center; gap: .45rem; min-height: 31px; padding: .3rem .45rem; border: 1px solid rgba(175, 47, 118, .72); border-radius: 3px; background: rgba(175, 47, 118, .13); animation: pluginEnabled 2.8s ease-in-out infinite; }
.ue-plugin-row-compiler { animation-delay: .35s; }
.ue-check { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 2px; background: #72c987; color: #19241c; font-size: .55rem; font-weight: 700; }
.ue-plugin-icon { flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; border-radius: 2px; background: #fafafa; }
.ue-plugin-name { display: flex; flex: 1; flex-direction: column; gap: .15rem; font-size: .49rem; }
.ue-plugin-name small { color: #b8b4bb; font-size: .4rem; }
.ue-enabled { color: #8ee1a0; font-size: .4rem; }

.toolbar-scene { min-height: 180px; background: #252529; color: #eceaee; }
.mock-toolbar { position: absolute; inset: 0 0 auto; height: 48px; display: flex; align-items: center; gap: .18rem; padding: 0 .35rem; background: #17171a; border-bottom: 1px solid #080809; white-space: nowrap; }
.mock-toolbar button { flex: 0 0 auto; height: 29px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #c6c5c9; cursor: default; }
.toolbar-mode { width: 28px; gap: 1px; border-right: 1px solid #414045 !important; border-radius: 0 !important; }
.toolbar-layout-glyph { color: #aeb0b6; font-size: .68rem; }
.toolbar-transport { height: 34px; display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid #3d3c40; border-radius: 4px; background: #242428; }
.toolbar-transport button { width: 22px; font-size: .64rem; }
.toolbar-transport .toolbar-play { width: 25px; background: #78b944; color: #17240f; font-size: .72rem; }
.toolbar-divider { flex: 0 0 1px; height: 30px; margin: 0 .35rem; background: #444248; }
.toolbar-platforms { gap: .3rem; margin-left: .9rem; padding: 0 .45rem; color: #d7d5da !important; font: 500 .48rem 'Poppins', sans-serif; }
.toolbar-trailing-space { flex: 0 0 16%; }
.toolbar-chevron { color: #aaa8ae; font-size: .55rem; }
.toolbar-gamepad { position: relative; width: 17px; height: 10px; border: 1.5px solid #b5b3ba; border-radius: 5px 5px 4px 4px; }
.toolbar-gamepad::before { position: absolute; top: 2px; left: 3px; width: 5px; height: 1px; background: #b5b3ba; box-shadow: 2px -2px 0 -0.2px #b5b3ba; content: ''; }
.toolbar-gamepad::after { position: absolute; top: 2px; right: 2px; width: 2px; height: 2px; border-radius: 50%; background: #b5b3ba; box-shadow: -3px 2px 0 #b5b3ba; content: ''; }
.mock-toolbar .toolbar-icon-button { width: 27px; padding: 2px; color: #b7b4bb; }
.toolbar-settings { font-size: 1rem; }
.toolbar-compiler-button { position: relative; animation: toolbarButtonPress 5.2s ease-in-out infinite; }
.toolbar-browser { position: relative; overflow: visible; }
.toolbar-content-browser-icon { position: relative; width: 15px; height: 12px; border: 1.5px solid #aaa8af; border-radius: 2px; }
.toolbar-content-browser-icon::before { position: absolute; left: 1px; top: -4px; width: 7px; height: 4px; border: 1.5px solid #aaa8af; border-bottom: 0; border-radius: 2px 2px 0 0; content: ''; }
.toolbar-loupe { position: absolute; right: -5px; bottom: -5px; width: 7px; height: 7px; border: 1.5px solid #c4c2c8; border-radius: 50%; background: #17171a; }
.toolbar-loupe::after { position: absolute; right: -3px; bottom: -2px; width: 4px; height: 1.5px; background: #c4c2c8; content: ''; transform: rotate(45deg); transform-origin: left center; }
.toolbar-cursor { left: -36px; top: 12px; animation: toolbarClick 5.2s ease-in-out infinite; }
.toolbar-cursor-light { background: #fff; filter: drop-shadow(1px 1px 1px #151418); }
.mock-asset-window { position: absolute; top: 58px; right: 8%; width: 118px; height: 105px; display: grid; place-items: center; border: 1px solid var(--pink-soft); border-radius: 3px; background: #f7f3ed; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px) scale(.96); animation: assetWindowOpen 5.2s ease-in-out infinite; }
.mock-asset-window img { width: 76px; height: 76px; object-fit: contain; }
.compiler-drag-folder { font-size: .42rem; animation-duration: 5.8s; }
.compiler-explorer-cursor { left: 34%; top: 65%; animation: explorerPointer 5.8s ease-in-out infinite; }
.compiler-toolbar-button { position: relative; animation: toolbarButtonPress 5.2s ease-in-out infinite; }
.compiler-toolbar-cursor { position: absolute; left: 12px; top: 12px; animation: compilerToolbarPointer 5.2s ease-in-out infinite; }
.compiler-toolbar-scene .toolbar-trailing-space { flex-basis: 16%; }
.compiler-toolbar-scene .toolbar-settings { display: none; }
.compiler-mock-window { position: absolute; top: 58px; right: 8%; width: 118px; height: 105px; display: grid; place-items: center; border: 1px solid var(--pink-soft); border-radius: 3px; background: #f7f3ed; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px) scale(.96); animation: compilerWindowOpen 5.2s ease-in-out infinite; }
.compiler-mock-window img { width: 82px; height: 82px; object-fit: contain; }
@keyframes dragIntoPlugins { 0%, 18% { left: 31%; top: 53%; opacity: 0; } 24% { opacity: 1; } 60%, 76% { left: 64%; top: 53%; opacity: 1; } 88%, 100% { left: 64%; top: 53%; opacity: 0; } }
@keyframes explorerPointer { 0%, 18% { left: 33%; top: 65%; opacity: 0; } 24% { opacity: 1; } 60%, 76% { left: 68%; top: 58%; opacity: 1; } 88%, 100% { left: 68%; top: 58%; opacity: 0; } }
@keyframes pluginEnabled { 0%, 20%, 100% { border-color: rgba(175, 47, 118, .45); } 45%, 75% { border-color: #8ee1a0; } }
@keyframes toolbarClick { 0%, 20% { transform: translate(0, 20px); opacity: 0; } 28% { opacity: 1; } 42% { transform: translate(36px, -10px); opacity: 1; } 46%, 52% { transform: translate(36px, -10px) scale(.84); opacity: 1; } 58%, 78% { transform: translate(36px, -10px); opacity: 0; } 100% { transform: translate(0, 20px); opacity: 0; } }
@keyframes toolbarButtonPress { 0%, 39%, 53%, 100% { transform: scale(1); border-color: transparent; background: transparent; } 43%, 48% { transform: scale(.88); border-color: #af2f76; background: #493441; } }
@keyframes assetWindowOpen { 0%, 52% { opacity: 0; transform: translateY(8px) scale(.96); } 60%, 83% { opacity: 1; transform: translateY(0) scale(1); } 92%, 100% { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes compilerToolbarPointer { 0%, 20% { transform: translate(-36px, 22px); opacity: 0; } 28% { opacity: 1; } 42% { transform: translate(0, 0); opacity: 1; } 46%, 52% { transform: translate(0, 0) scale(.84); opacity: 1; } 58%, 78% { transform: translate(0, 0); opacity: 0; } 100% { transform: translate(-36px, 22px); opacity: 0; } }
@keyframes compilerWindowOpen { 0%, 52% { opacity: 0; transform: translateY(8px) scale(.96); } 60%, 83% { opacity: 1; transform: translateY(0) scale(1); } 92%, 100% { opacity: 0; transform: translateY(4px) scale(.98); } }

.plugin-feature-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: auto; padding-top: 1rem; }
.plugin-meta { display: flex; flex-direction: column; gap: .45rem; color: rgba(255, 253, 249, .58); font-size: .61rem; font-weight: 600; letter-spacing: .1em; }
.plugin-meta span:first-child { color: var(--pink-soft); }
.resource-card-actions { display: flex; align-items: center; gap: .6rem; }
.resource-read, .resource-download { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: .7rem 1rem; border: 1px solid var(--pink-soft); border-radius: 4px; font: 600 .7rem 'Poppins', sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease; }
.resource-read { background: transparent; color: var(--paper-bright); }
.resource-read:hover { background: rgba(255, 255, 255, .08); border-color: var(--paper-bright); }
.resource-download { border-color: var(--pink); background: var(--pink); color: #fff; }
.resource-download:hover { transform: translateY(-2px); border-color: #c6498c; background: #c6498c; }
.download-arrow { position: relative; display: inline-block; flex: 0 0 14px; width: 14px; height: 16px; margin-left: .55rem; color: currentColor; transition: transform .2s ease; }
.download-arrow::before { position: absolute; top: 0; left: 5px; width: 4px; height: 10px; border-radius: 2px; background: currentColor; content: ''; }
.download-arrow::after { position: absolute; bottom: 2px; left: 1px; width: 9px; height: 9px; border-right: 4px solid currentColor; border-bottom: 4px solid currentColor; content: ''; transform: rotate(45deg); }
.resource-download:hover .download-arrow { transform: translateY(3px); }
.resource-download.is-clicked { animation: downloadButtonClick .55s ease both; }
@keyframes downloadButtonClick { 0% { transform: scale(1); box-shadow: 0 0 0 rgba(175, 47, 118, 0); } 35% { transform: scale(.94); box-shadow: 0 0 0 8px rgba(175, 47, 118, .18); } 100% { transform: scale(1); box-shadow: 0 0 20px rgba(175, 47, 118, .28); } }
.install-guide-download { display: flex; justify-content: center; margin: 1.75rem auto 0; }
.install-guide-download .resource-download { width: min(360px, 100%); min-height: 60px; justify-content: center; font-size: .88rem; letter-spacing: .04em; }
.panel-caption { margin: 1rem .15rem 0; color: var(--ink-soft); font-size: .72rem; }

.resource-empty-state { min-height: 360px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); border-left: 3px solid var(--pink); background: #eee8e4; }
.empty-state-number { color: var(--pink); font-size: .62rem; font-weight: 700; letter-spacing: .13em; }
.resource-empty-state h2 { max-width: 600px; margin: 1rem 0 .75rem; font-size: 2.6rem; font-weight: 500; line-height: 1.1; }
.resource-empty-state > p:last-child { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }

.resource-dialog { width: min(760px, 92vw); max-width: none; max-height: min(84vh, 820px); padding: 0; overflow: hidden; border: 1px solid rgba(175, 47, 118, .45); border-radius: 8px; background: var(--paper-bright); color: var(--ink); box-shadow: 0 24px 90px rgba(0, 0, 0, .25); }
.resource-dialog[open] { animation: dialogIn .25s ease both; }
.resource-dialog.is-closing { animation: dialogOut .22s ease both; }
.resource-dialog::backdrop { background: rgba(40, 38, 41, .23); backdrop-filter: blur(8px); }
.resource-dialog.is-closing::backdrop { animation: backdropOut .22s ease both; }
body.resource-dialog-open { overflow: hidden; }
.resource-dialog-scroll { max-height: min(84vh, 820px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.25rem, 4vw, 2.5rem); }
.resource-dialog-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--pink); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.resource-dialog-close { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 300 1.8rem/1 'Poppins', sans-serif; cursor: pointer; }
.resource-dialog-close:hover { border-color: var(--pink); color: var(--pink); }
.resource-dialog-brand { margin: 1.5rem auto; }
.resource-dialog-brand .resource-logo-wrap { flex-basis: 108px; }
.resource-dialog-brand .resource-logo-one { color: var(--ink); }
.resource-dialog-asset .asset-logo-one { color: var(--ink); }
.resource-dialog-asset .resource-logo { animation: none; }
.resource-dialog-brand .resource-wordmark { color: var(--ink); font-size: 4rem; }
.resource-version { margin: 0 0 .8rem; color: var(--pink); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.resource-description { max-width: 700px; margin: 0 0 1.5rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.8; }
.resource-dialog .resource-download { background: var(--pink); }
.resource-dialog-close { border-radius: 4px; }

.download-thanks-dialog { position: fixed; inset: 50% auto auto 50%; translate: -50% -50%; width: min(1000px, 96vw); max-width: none; margin: 0; padding: 0; overflow: visible; border: 0; outline: 0; background: transparent; color: #fff; text-align: center; box-shadow: none; }
.download-thanks-dialog[open] { animation: thanksDialogIn .55s cubic-bezier(.18, .75, .25, 1) both; }
.download-thanks-dialog.is-fading { animation: thanksDialogOut .55s ease forwards; }
.download-thanks-dialog::backdrop { background: rgba(35, 30, 35, .42); backdrop-filter: blur(12px); }
.download-thanks-dialog h2 { margin: 0; display: flex; flex-direction: column; font-size: clamp(5rem, 13vw, 10rem); font-weight: 600; line-height: .82; letter-spacing: 0; }
.download-thanks-dialog h2 span:last-child { color: var(--pink); }
@keyframes thanksDialogIn { from { opacity: 0; transform: scale(.84); } 70% { opacity: 1; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes thanksDialogOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.98); } }
@keyframes thanksBackdropOut { from { background: rgba(35, 30, 35, .42); backdrop-filter: blur(12px); } to { background: rgba(35, 30, 35, 0); backdrop-filter: blur(0); } }
.download-thanks-dialog.is-fading::backdrop { animation: thanksBackdropOut .55s ease forwards; }

.download-particle-layer { position: fixed; inset: 0; z-index: 10000; overflow: hidden; pointer-events: none; }
.download-particle { position: absolute; left: var(--particle-left); top: var(--particle-top); width: var(--particle-size); height: var(--particle-size); border-radius: 50%; background: var(--pink); opacity: 0; animation: downloadParticle .75s cubic-bezier(.16, .72, .25, 1) forwards; }
.download-particle:nth-child(3n) { background: var(--pink-soft); }
.download-particle:nth-child(4n) { border-radius: 1px; background: #d9ad6a; }
@keyframes downloadParticle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y))) rotate(var(--particle-rotation)) scale(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panelEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gearTurn { to { transform: rotate(360deg); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dialogOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes backdropOut { from { background: rgba(40, 38, 41, .23); backdrop-filter: blur(8px); } to { background: rgba(40, 38, 41, 0); backdrop-filter: blur(0); } }

.resources-footer { display: flex; justify-content: space-between; padding: 1.4rem 5vw; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.resources-footer a { color: var(--ink); text-decoration: none; }

@media (max-width: 760px) {
    .resources-header { min-height: 64px; padding: 0 5vw; }
    .resources-nav { gap: .8rem; }
    .resources-main { min-height: 76vh; padding: 8vh 0; }
    .resources-intro { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2.25rem; }
    .resources-main h1 { font-size: 3.8rem; }
    .resource-category-options { gap: .6rem; }
    .resource-category { grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .5rem; min-height: 80px; padding: .75rem; }
    .resource-category-detail { font-size: .58rem; }
    .plugin-feature { min-height: 390px; }
    .plugin-feature-footer { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
    .plugin-gear-decoration { right: -3rem; bottom: -3.5rem; width: 270px; height: 270px; margin: 0; }
    .plugin-feature-asset .plugin-asset-decoration { right: -3rem; bottom: -3.5rem; width: 270px; height: 270px; }
    .plugin-description { max-width: 600px; }
    .resource-empty-state { min-height: 300px; }
    .resource-empty-state h2 { font-size: 2.1rem; }
    .install-step { grid-template-columns: 1fr; gap: .8rem; }
    .install-step-copy { max-width: 560px; }
    .guide-scene { min-height: 170px; }
    .download-thanks-dialog h2 { font-size: 4.5rem; }
}

@media (max-width: 480px) {
    .resources-brand span:last-child { display: none; }
    .resources-nav > a { display: none; }
    .resources-main h1 { font-size: 3.15rem; }
    .resource-brand-lockup { gap: 0; }
    .resource-logo-wrap { flex-basis: 82px; }
    .resource-wordmark { font-size: 3.2rem; }
    .plugin-feature { min-height: 430px; padding: 1.25rem; }
    .plugin-feature-head { flex-direction: column; }
    .plugin-feature-footer { padding-top: 2rem; }
    .resource-card-actions { width: 100%; }
    .resource-read, .resource-card-actions .resource-download { flex: 1; padding: .65rem .5rem; }
    .resource-dialog-brand .resource-logo-wrap { flex-basis: 82px; }
    .resource-dialog-brand .resource-wordmark { font-size: 3rem; }
    .resource-category-options { grid-template-columns: 1fr; }
    .resource-category { min-height: 68px; }
    .install-guide-download .resource-download { width: 100%; min-height: 58px; }
    .install-guide-heading { align-items: flex-start; flex-direction: column; }
    .install-step { padding: 1rem 0; }
    .guide-scene { min-height: 155px; }
    .explorer-sidebar { flex-basis: 22%; }
    .mock-asset-window { right: 5%; width: 100px; height: 90px; }
    .mock-asset-window img { width: 64px; height: 64px; }
    .mock-toolbar { width: 142%; transform: scale(.7); transform-origin: top left; }
    .resources-footer { gap: 1rem; font-size: .55rem; }
    .download-thanks-dialog { padding: 4rem 1.2rem 1.5rem; }
    .download-thanks-dialog h2 { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .resources-main h1, .resource-category-panel:not([hidden]), .plugin-feature, .plugin-gear-decoration,
    .resource-logo, .resource-dialog[open], .resource-dialog.is-closing { animation: none; }
    .resource-download.is-clicked, .download-thanks-dialog[open] { animation: none; }
    .download-thanks-dialog[open] { animation: none; }
    .resource-card, .resource-card::before, .resource-logo, .resource-read, .resource-download, .resource-category { transition: none; }
    .plugin-feature-asset .resource-logo-wrap, .resource-dialog-asset .resource-logo-wrap { animation: none; }
    .download-particle { animation: none; }
    .drag-folder, .explorer-cursor, .compiler-explorer-cursor, .compiler-toolbar-cursor,
    .ue-plugin-row, .toolbar-cursor, .mock-toolbar .toolbar-browser, .compiler-toolbar-button,
    .compiler-mock-window { animation: none; }
    .drag-folder { left: 64%; top: 53%; opacity: 1; }
    .explorer-cursor, .compiler-explorer-cursor, .toolbar-cursor, .compiler-toolbar-cursor { opacity: 0; }
    .mock-asset-window { opacity: 1; transform: none; animation: none; }
    .compiler-mock-window { opacity: 1; transform: none; }
}
