/* 8.1 — shared timing and motion vocabulary; loaded after legacy styles.
   No layout, colours, typography or special effects are changed. */
#budi-gallery-76{--bm-ease:cubic-bezier(.2,.8,.25,1);--bm-hero:480ms;--bm-part:380ms;--bm-content:420ms;--bm-rise:18px;--bm-button:320ms;--bm-kicker-delay:55ms;--bm-title-delay:120ms;--bm-copy-delay:185ms;--bm-buttons-delay:230ms;--bm-step:35ms;--bm-filter-delay:125ms;--bm-result-delay:155ms;--bm-shine-delay:320ms;--bm-chart:620ms;--bm-list:320ms}
@keyframes bm-hero-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes bm-part-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* Shared header choreography. Playground and home retain their distinct sequences. */
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-hero,
#budi-gallery-76 #bview-top.top-playing .top-hero,
#budi-gallery-76 #bview-stats.st-playing .st-hero,
#budi-gallery-76 #bview-devlog.dev-playing .dev-hero,
#budi-gallery-76 #bview-handbook.bk-live .bk-hero{animation:bm-hero-in var(--bm-hero) var(--bm-ease) both}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-kicker,
#budi-gallery-76 #bview-top.top-playing .top-hero .top-kicker,
#budi-gallery-76 #bview-stats.st-playing .st-hero .st-kicker,
#budi-gallery-76 #bview-devlog.dev-playing .dev-hero .dev-tag,
#budi-gallery-76 #bview-handbook.bk-live .bk-hero .pg-kicker{animation:bm-part-in var(--bm-part) var(--bm-ease) var(--bm-kicker-delay) both}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-hero h1,
#budi-gallery-76 #bview-top.top-playing .top-hero h1,
#budi-gallery-76 #bview-stats.st-playing .st-hero h1,
#budi-gallery-76 #bview-devlog.dev-playing .dev-hero h1,
#budi-gallery-76 #bview-handbook.bk-live .bk-hero h1{animation:bm-part-in var(--bm-part) var(--bm-ease) var(--bm-title-delay) both}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-hero p,
#budi-gallery-76 #bview-top.top-playing .top-hero p,
#budi-gallery-76 #bview-stats.st-playing .st-hero p,
#budi-gallery-76 #bview-devlog.dev-playing .dev-hero .dev-intro,
#budi-gallery-76 #bview-handbook.bk-live .bk-hero p{animation:bm-part-in var(--bm-part) var(--bm-ease) var(--bm-copy-delay) both}
#budi-gallery-76 #bview-handbook.bk-live .bk-hero p+p{animation-delay:var(--bm-buttons-delay)}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-quick button{animation:bm-part-in var(--bm-button) var(--bm-ease) calc(var(--bm-buttons-delay) + var(--cat6-i,0)*var(--bm-step)) both}
#budi-gallery-76 #bview-top.top-playing .top-modes button{animation:bm-part-in var(--bm-button) var(--bm-ease) calc(var(--bm-buttons-delay) + var(--top-i,0)*var(--bm-step)) both}
#budi-gallery-76 #bview-stats.st-playing .st-nav button{animation:bm-part-in var(--bm-button) var(--bm-ease) calc(var(--bm-buttons-delay) + var(--st-i,0)*var(--bm-step)) both}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-filterpanel{animation:bm-part-in var(--bm-content) var(--bm-ease) var(--bm-filter-delay) both}
#budi-gallery-76 #bview-catalog.cat614-intro-ready .cat6-resultbar{animation:bm-part-in var(--bm-content) var(--bm-ease) var(--bm-result-delay) both}
#budi-gallery-76 #bview-catalog.cat6-playing .cat6-hero:after,
#budi-gallery-76 #bview-top.top-playing .top-hero:after,
#budi-gallery-76 #bview-stats.st-playing .st-hero:after{animation-delay:var(--bm-shine-delay)}
/* Content reveals: shared short transition, no expensive animated blur. */
#budi-gallery-76 #bview-catalog .cat6-enter,
#budi-gallery-76 #bview-top .top-enter,
#budi-gallery-76 #bview-stats .st-enter,
#budi-gallery-76 #bview-devlog .dev-enter,
#budi-gallery-76 #bview-handbook .bm-handbook-enter{opacity:0;transform:translateY(var(--bm-rise));filter:none;transition:opacity var(--bm-content) var(--bm-ease) var(--bm-delay,0ms),transform var(--bm-content) var(--bm-ease) var(--bm-delay,0ms),border-color .2s,box-shadow .2s,background .2s}
#budi-gallery-76 #bview-top .top-rank-list .rank.top-hidden{filter:none;transform:translateY(var(--bm-rise))}
#budi-gallery-76 #bview-top .top-rank-list .rank{transition:opacity var(--bm-content) var(--bm-ease) var(--bm-delay,0ms),transform var(--bm-content) var(--bm-ease) var(--bm-delay,0ms),border-color .2s,box-shadow .2s}
#budi-gallery-76 #bview-top .top-rank-list .rank.top-visible,
#budi-gallery-76 #bview-catalog .cat6-enter.cat6-visible,
#budi-gallery-76 #bview-top .top-enter.top-visible,
#budi-gallery-76 #bview-stats .st-enter.st-show,
#budi-gallery-76 #bview-devlog .dev-enter.is-visible,
#budi-gallery-76 #bview-handbook .bm-handbook-enter.bm-visible{opacity:1;transform:none;filter:none}
/* Keep the dense table aligned; only fade rows. */
#budi-gallery-76 #bview-catalog .cat6-row.cat6-enter,
#budi-gallery-76 #bview-catalog .cat6-row.cat6-enter:nth-child(2n){filter:none;transition:opacity var(--bm-list) var(--bm-ease) var(--bm-delay,0ms),background .2s}
#budi-gallery-76 #bview-catalog .cat6-head.cat613-head-enter{animation:bm-part-in var(--bm-button) var(--bm-ease) both}
#budi-gallery-76 #bview-stats .st-fill{transition:width var(--bm-chart) var(--bm-ease)}
/* Handbook sections now reveal on scroll, while their expand/collapse animation remains independent. */
#budi-gallery-76 #bview-handbook.bk-live .bk-nav,
#budi-gallery-76 #bview-handbook.bk-live .bk-section{animation:none}
/* Keyboard navigation must never land on invisible content. */
#budi-gallery-76 :is(#bview-catalog,#bview-top,#bview-stats,#bview-devlog,#bview-handbook) :is(.cat6-enter,.top-enter,.rank,.st-enter,.dev-enter,.bm-handbook-enter):focus-within{opacity:1;transform:none;filter:none;transition-delay:0ms}
@media(prefers-reduced-motion:reduce){
 #budi-gallery-76 :is(#bview-catalog,#bview-top,#bview-stats,#bview-devlog,#bview-handbook) :is(.cat6-enter,.top-enter,.rank,.st-enter,.dev-enter,.bm-handbook-enter){opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
 #budi-gallery-76 #bview-handbook.bk-live .bk-hero *{animation:none!important}
}

/* 8.1.1 — first entry only; same keyframes and distance as the fast profile. */
#budi-gallery-76 .bm-first-entry{--bm-hero:650ms;--bm-part:520ms;--bm-content:560ms;--bm-button:420ms;--bm-kicker-delay:85ms;--bm-title-delay:180ms;--bm-copy-delay:280ms;--bm-buttons-delay:340ms;--bm-step:50ms;--bm-filter-delay:180ms;--bm-result-delay:220ms;--bm-shine-delay:420ms;--bm-chart:850ms;--bm-list:420ms}

/* 8.1.2 — Reset reused content before revealing it again. */
#budi-gallery-76 .bm-reset,#budi-gallery-76 .bm-reset .st-fill{transition:none!important;animation:none!important}
#budi-gallery-76 .bm-reset{opacity:0!important}
/* Explicit entry keyframes for reused sections, independent of transition history. */
@keyframes bm-content-in{from{opacity:0;transform:translateY(var(--bm-rise))}to{opacity:1;transform:none}}
#budi-gallery-76 #bview-handbook .bm-handbook-enter.bm-visible,
#budi-gallery-76 #bview-devlog .dev-enter.is-visible,
#budi-gallery-76 #bview-stats .st-enter.st-show,
#budi-gallery-76 #bview-top .top-enter.top-visible{animation:bm-content-in var(--bm-content) var(--bm-ease) var(--bm-delay,0ms) backwards;transition:opacity 0ms,transform 0ms,border-color .2s,box-shadow .2s,background .2s}
@media(prefers-reduced-motion:reduce){
 #budi-gallery-76 :is(#bview-handbook,#bview-devlog,#bview-stats,#bview-top) :is(.bm-visible,.is-visible,.st-show,.top-visible){animation:none!important}
}

/* 8.2 — returning from a record: show the existing catalog without an intro replay. */
#budi-gallery-76 #bview-catalog.bm-catalog-return :is(.cat6-hero,.cat6-kicker,.cat6-hero h1,.cat6-hero p,.cat6-quick button,.cat6-filterpanel,.cat6-resultbar,.cat6-head){animation:none!important;opacity:1;transform:none;filter:none}
#budi-gallery-76 #bview-catalog.bm-catalog-return .cat6-hero:after{animation:none!important}
#budi-gallery-76 #bview-catalog.bm-catalog-restoring :is(.cat6-enter.cat6-visible){transition:none!important}
