@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&display=swap');
/* ===== Collection album (Meow Battle) — layout from Higgsfield concept #2, painted pieces in alb/ ===== */
:root { --alb-gold: #f3cf7a; --alb-gold2: #b98a2e; --alb-ink: #4a2e14; --alb-cream: #f6e7c8; --alb-plum: #2a1236; }
#albScr { position: absolute; inset: 0; z-index: 40; pointer-events: auto; opacity: 0; transition: opacity .45s ease; }
#albScr.on { opacity: 1; }
#albScr[hidden] { display: none !important; }
.alb-dim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgba(20, 8, 26, .62), rgba(6, 3, 10, .93)); }
/* performance: no live backdrop blur. The scene behind is frozen (mb-frozen stops the WebGL loop) and blurred once */
body.mb-frozen #stage .mb-artin { visibility: hidden; } /* replaced by the blurred snapshot #mbShot */
body.mb-frozen #stage .mb-artin *, body.mb-frozen #stage .mb-artin *::before, body.mb-frozen #stage .mb-artin *::after, body.mb-frozen #logoBox *, body.mb-frozen #logoBox *::before, body.mb-frozen #logoBox *::after, body.mb-frozen #loadUi *, body.mb-frozen #loadUi *::before, body.mb-frozen #loadUi *::after, body.mb-frozen #menu *, body.mb-frozen #menu *::before, body.mb-frozen #menu *::after, body.mb-frozen #vids *, body.mb-frozen #vids *::before, body.mb-frozen #vids *::after, body.mb-frozen #topR *, body.mb-frozen #topR *::before, body.mb-frozen #topR *::after, body.mb-frozen #replay *, body.mb-frozen #replay *::before, body.mb-frozen #replay *::after, body.mb-frozen #stage .mb-bar *, body.mb-frozen #stage .mb-bar *::before, body.mb-frozen #stage .mb-bar *::after { animation-play-state: paused !important; transition: none !important; }
body.mb-frozen #stage #fx, body.mb-frozen #logoBox, body.mb-frozen #loadUi, body.mb-frozen #menu, body.mb-frozen #vids, body.mb-frozen #topR, body.mb-frozen #replay, body.mb-frozen #stage .mb-bar { visibility: hidden; }
/* card frames have many looping foil/glow effects: in the book they rest, and come alive under the cursor */
.alb-slot .cw *, .alb-slot .cw *::before, .alb-slot .cw *::after, .dk-slot .cw *, .dk-slot .cw *::before, .dk-slot .cw *::after, .dk-ghost *, .dk-ghost *::before, .dk-ghost *::after { animation-play-state: paused !important; }
.alb-slot:hover .cw *, .alb-slot:hover .cw *::before, .alb-slot:hover .cw *::after, .dk-slot:hover .cw *, .dk-slot:hover .cw *::before, .dk-slot:hover .cw *::after { animation-play-state: running !important; }
.alb-canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; font-family: Barlow, system-ui, sans-serif; color: #fff4e2; }
.mb-alb-open #menu, .mb-alb-open #vids, .mb-alb-open #logoBox, .mb-alb-open #replay { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s; }

/* top bar */
.alb-back { position: absolute; left: 72px; top: 58px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 14px; border-radius: 999px; border: 1.5px solid rgba(243, 207, 122, .55); background: linear-gradient(180deg, rgba(60, 26, 70, .85), rgba(26, 10, 32, .85)); color: #fff4e2; font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.alb-back:hover { border-color: var(--alb-gold); transform: translateX(-2px); }
.alb-back:focus-visible, .alb-arrow:focus-visible, .alb-tab:focus-visible, .alb-slot:focus-visible { outline: 2px solid #ffd23f; outline-offset: 4px; }
.alb-head { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 4; pointer-events: none; }
.alb-title { display: block; height: 112px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(255, 200, 110, .18)); animation: albTitleIn .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes albTitleIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.alb-prog { display: flex; align-items: center; gap: 14px; margin-top: 0; font: 700 13px/1 Cinzel, serif; letter-spacing: .2em; color: #f3dfb0; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.alb-prog span:last-child { font-weight: 900; font-size: 15px; letter-spacing: .1em; color: #ffe7a8; }
.alb-bar { position: relative; width: 300px; height: 12px; border-radius: 99px; padding: 2px; background: linear-gradient(180deg, #f6dc98, #a8762a 55%, #6a4512); box-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 0 12px rgba(255, 200, 110, .15); }
.alb-bar::before { content: ""; position: absolute; inset: 2px; border-radius: 99px; background: linear-gradient(180deg, #1a0a1e, #2c1430); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .7); }
.alb-bar i { position: relative; display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b9e6ff 0%, #6aa8ff 28%, #b46cff 55%, #ff5a6e 78%, #ffe08a 100%); background-size: 300px 100%; box-shadow: 0 0 10px rgba(255, 220, 140, .55); overflow: hidden; }
.alb-bar i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: -50px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0)); animation: albBarShine 3.4s ease-in-out 1s infinite; }
@keyframes albBarShine { 0%, 55% { left: -50px; } 100% { left: 110%; } }
.alb-search { position: absolute; right: 40px; top: 30px; width: 280px; height: 46px; padding: 0 18px 0 44px; border-radius: 999px; border: 1.5px solid rgba(243, 207, 122, .55); background: rgba(26, 10, 32, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23f3cf7a' stroke-width='2'/%3E%3Cpath d='M15.5 15.5 21 21' stroke='%23f3cf7a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 16px 50% / 18px; color: #fff4e2; font: 600 17px Barlow, sans-serif; outline: none; }
.alb-search::placeholder { color: rgba(246, 231, 200, .55); }
.alb-search:focus { border-color: var(--alb-gold); box-shadow: 0 0 0 4px rgba(243, 207, 122, .18); }

/* rarity tabs (chapters) */
.alb-tabs { position: absolute; left: 50%; top: 82px; transform: translateX(-50%); display: flex; gap: 22px; z-index: 3; }
.alb-tab { position: relative; width: 132px; height: 128px; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .3, 1.3); }
.alb-tab .em { position: absolute; left: 50%; bottom: 32px; width: 130px; height: 96px; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; }
.alb-tab .em img { height: 92px; width: auto; filter: saturate(.75) brightness(.82) drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transition: filter .25s, transform .25s cubic-bezier(.2, .8, .3, 1.3); transform-origin: 50% 85%; }
.alb-tab[data-r="epica"] .em img, .alb-tab[data-r="legendaria"] .em img { height: 94px; }
.alb-tab[data-r="god"] .em img { height: 90px; }
.alb-tab b { position: absolute; left: -10px; right: -10px; bottom: 15px; font: 700 13px/1 Cinzel, serif; letter-spacing: .16em; color: #e9d4a6; text-shadow: 0 1px 0 #2a1406, 0 2px 6px rgba(0, 0, 0, .9); transition: color .25s, text-shadow .25s; }
.alb-tab small { position: absolute; left: 0; right: 0; bottom: 0; font: 700 11px/1 Cinzel, serif; letter-spacing: .14em; color: rgba(233, 212, 166, .6); }
.alb-tab:hover .em img { filter: saturate(.95) brightness(1) drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transform: translateY(-3px); }
.alb-tab.on .em img { filter: saturate(1.1) brightness(1.08) drop-shadow(0 0 12px var(--tc)) drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transform: translateY(-3px) scale(1.1); }
.alb-tab.on b { color: #fff6dc; text-shadow: 0 0 14px var(--tc), 0 1px 0 #2a1406, 0 2px 6px rgba(0, 0, 0, .9); }
.alb-tab.on small { color: #f3dfb0; }
.alb-tab.on::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 46px; height: 2px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(90deg, transparent, var(--tc), transparent); box-shadow: 0 0 8px var(--tc); }

/* book */
.alb-book { position: absolute; left: 210px; top: 228px; width: 1500px; height: 755px; perspective: 2600px; transform: scale(var(--bs, 1)); transform-origin: 50% 0; }
.alb-book > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)); pointer-events: none; }
.alb-sheet { position: absolute; top: 28px; width: 586px; height: 619px; background-image: url(book.webp); background-size: 1500px 755px; background-repeat: no-repeat; }
.alb-sheet.L { left: 141px; background-position: -141px -28px; }
.alb-sheet.R { left: 745px; background-position: -745px -28px; }
.alb-sheet .cont { position: absolute; inset: 0; }
.alb-flip { position: absolute; top: 28px; width: 586px; height: 619px; transform-style: preserve-3d; z-index: 5; pointer-events: none; }
.alb-flip.next { left: 745px; transform-origin: 0 50%; }
.alb-flip.prev { left: 141px; transform-origin: 100% 50%; }
.alb-flip .face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.alb-flip .face.back { transform: rotateY(180deg); }
.alb-flip .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, var(--sh, 0)), rgba(0, 0, 0, 0) 60%); }
.alb-flip.prev .face::after { background: linear-gradient(270deg, rgba(0, 0, 0, var(--sh, 0)), rgba(0, 0, 0, 0) 60%); }

/* slots: 3 x 2 per page */
.alb-grid { position: absolute; left: 50px; right: 50px; top: 52px; bottom: 60px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 26px 26px; }
.alb-slot { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.alb-slot .pk { position: absolute; left: 50%; top: 4px; width: 140px; height: 197px; transform: translateX(-50%); background: url(pocket.webp) center / 100% 100% no-repeat; }
.alb-slot .lk { position: absolute; left: 50%; top: 4px; width: 140px; height: 197px; transform: translateX(-50%); background: url(locked.webp) center / 100% 100% no-repeat; opacity: .92; }
.alb-slot .no { position: absolute; left: 0; right: 0; bottom: -4px; font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; color: #8a5a1c; text-align: center; }
.alb-slot .lk-no { position: absolute; left: 0; right: 0; top: 19px; font: 800 15px/1 "Barlow Condensed", sans-serif; color: #7a4a14; text-align: center; letter-spacing: .04em; }
.alb-slot .lk-nm { position: absolute; left: 10px; right: 10px; top: 138px; font: 700 11px/1.1 "Barlow Condensed", sans-serif; color: rgba(122, 74, 20, .75); text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.alb-slot .cw { position: absolute; left: 50%; top: 12px; transform: translateX(-50%) rotate(var(--rot, 0deg)); font-size: 8.2px; transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), filter .25s; filter: drop-shadow(0 4px 5px rgba(60, 30, 0, .35)); z-index: 1; }
.alb-slot:hover .cw, .alb-slot:focus-visible .cw { transform: translateX(-50%) translateY(-14px) scale(1.55) rotate(0deg); z-index: 9; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(255, 220, 140, .5)); }
.alb-slot:hover { z-index: 9; }
.alb-slot.pulse .cw, .alb-slot.pulse .lk { animation: albPulse 1.2s ease 2; }
@keyframes albPulse { 0%, 100% { filter: drop-shadow(0 4px 5px rgba(60, 30, 0, .35)); } 50% { filter: drop-shadow(0 0 22px #ffd23f) drop-shadow(0 0 8px #fff); } }
.alb-slot.new::after { content: "NEW!"; position: absolute; right: 6px; top: -2px; z-index: 3; padding: 4px 7px 3px; border-radius: 4px; transform: rotate(8deg); font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; color: #fff; background: linear-gradient(180deg, #ff5a8a, #c8184a); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }

/* chapter opening page: illustration "painted" on the album paper */
.alb-ill { position: absolute; left: 34px; right: 34px; top: 36px; bottom: 44px; }
.alb-ill img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; filter: saturate(.92) sepia(.16) contrast(1.05) brightness(1.07);
  -webkit-mask-image: url(mask.webp); mask-image: url(mask.webp); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
/* arrows + pager */
.alb-arrow { position: absolute; top: calc(228px + 755px * var(--bs, 1) / 2 - 57px); width: 104px; height: 114px; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .2s, filter .2s, opacity .2s; z-index: 6; }
.alb-arrow img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.alb-arrow.l { left: 40px; } .alb-arrow.r { right: 40px; }
.alb-arrow:hover { transform: scale(1.08); filter: brightness(1.15); }
.alb-arrow:disabled { opacity: .3; pointer-events: none; }
.alb-pager { position: absolute; left: 50%; top: calc(228px + 755px * var(--bs, 1) + 18px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.alb-pager button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(243, 207, 122, .7); background: rgba(0, 0, 0, .35); padding: 0; cursor: pointer; }
.alb-pager button.on { background: var(--alb-gold); box-shadow: 0 0 10px var(--alb-gold); }
.alb-pager span { margin-left: 10px; font: 700 13px/1 Cinzel, serif; letter-spacing: .18em; color: #f3dfb0; }

/* quick card view (until the detail sheet is designed) */
.alb-peek { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(8, 3, 12, .7); opacity: 0; pointer-events: none; transition: opacity .25s; }
.alb-peek.on { opacity: 1; pointer-events: auto; }
.alb-peek .pc { display: flex; align-items: center; gap: 56px; }
.alb-peek .big .pk-card { display: block; width: 15em; height: auto; border-radius: .9em; }
.alb-peek .big { font-size: 23px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); transform: rotate(-2deg); }
.alb-peek .info { width: 520px; }
.alb-peek .info .rr { font: 800 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .24em; color: var(--tc); }
.alb-peek .info h2 { margin: 10px 0 14px; font: 400 56px/1 "Lilita One", sans-serif; color: #fff6e0; }
.alb-peek .info p { margin: 0 0 14px; font: 600 21px/1.45 Barlow, sans-serif; color: #eadfcf; }
.alb-peek .info .st { display: flex; gap: 18px; font: 700 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #f6e7c8; }
.alb-peek .info .soon { margin-top: 22px; font: italic 600 15px/1.4 Barlow, sans-serif; color: rgba(246, 231, 200, .55); }
.alb-peek .x { position: absolute; right: 80px; top: 70px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(243, 207, 122, .6); background: rgba(26, 10, 32, .8); color: #fff4e2; font: 700 26px/1 Barlow; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .alb-cover .gem { animation: none; } }

/* resting cards drop their blend-mode sheen layers (each one forces the GPU to re-blend the page every frame);
   the card under the cursor gets them back */
.alb-slot:not(:hover) .cw :is(.rlay, .xsheen, .glare, .holo, .lgrglow, .lgeye), .dk-slot:not(:hover) .cw :is(.rlay, .xsheen, .glare, .holo, .lgrglow, .lgeye), .dk-ghost :is(.rlay, .xsheen, .glare, .holo, .lgrglow, .lgeye) { display: none !important; }
/* the book's shadow is a soft gradient underneath, not a filter on the whole book image */
.alb-book > img.cover, .dk-book > img.cover { filter: none !important; }
.alb-book::before, .dk-book::before { content: ""; position: absolute; left: 3%; right: 3%; top: 14%; bottom: -5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, 0)); pointer-events: none; }

/* loading veil (first open of the album / deck builder) */
.mb-veil { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(8, 3, 12, .82); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.mb-veil.on { opacity: 1; }
.mb-veil span { font: 700 18px/1 Cinzel, serif; letter-spacing: .14em; color: #f3dfb0; text-shadow: 0 2px 6px #000; }
.mb-veil .paw { position: relative; width: 70px; height: 70px; }
.mb-veil .paw b { position: absolute; left: 17px; top: 30px; width: 36px; height: 30px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 35%, #ffe9a8, #d9a640 70%); box-shadow: 0 0 14px rgba(255, 200, 100, .5); }
.mb-veil .paw i { position: absolute; width: 15px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe9a8, #d9a640 70%); animation: mbPaw 1s ease-in-out infinite; }
.mb-veil .paw i:nth-child(1) { left: 2px; top: 16px; } .mb-veil .paw i:nth-child(2) { left: 18px; top: 2px; animation-delay: .15s; } .mb-veil .paw i:nth-child(3) { left: 37px; top: 2px; animation-delay: .3s; } .mb-veil .paw i:nth-child(4) { left: 53px; top: 16px; animation-delay: .45s; }
@keyframes mbPaw { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-5px); opacity: 1; } }

/* cards in the book are pictures: lift on hover is a plain transform (no filter animation, nothing re-painted) */
.alb-slot img.cw { width: 123px; height: 172px; display: block; border-radius: 7px; filter: none; box-shadow: 0 4px 8px rgba(60, 30, 0, .35); user-select: none; -webkit-user-drag: none; transition: transform .22s cubic-bezier(.2, .8, .3, 1.2); }
.alb-slot:hover img.cw, .alb-slot:focus-visible img.cw { filter: none; box-shadow: 0 18px 30px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(255, 220, 140, .6); }
.alb-slot.pulse img.cw { animation: albPulseImg 1.2s ease 2; }
@keyframes albPulseImg { 0%, 100% { box-shadow: 0 4px 8px rgba(60, 30, 0, .35); } 50% { box-shadow: 0 0 0 3px #ffd23f, 0 0 26px 6px rgba(255, 210, 63, .8); } }
