/* Visual pass 32 - compositions (composition-32.mjs): one picture per page seen through all of its frames. Each frame paints
   a night veil (text stays readable) over its part of the picture; html[data-c32] is set once the picture is decoded. */
html[data-c32] #app .c32w{background-origin:border-box!important}

/* ---------------------------------------------------------------- Account */
html[data-c32=account] #app [data-account-root]>.acc-basket{background:linear-gradient(#0a0b26a6,#0a0b2680) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32=account] #app [data-account-root] .acc-foxes{background:linear-gradient(#0a0b2626,#0a0b2640) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32=account] #app [data-account-root].acc-list .acc-foxes{background:linear-gradient(#0a0b2699,#0a0b2699) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32=account] #app [data-account-root] .acc-burn{background:linear-gradient(90deg,#0a0b26d9 0,#0a0b26a6 55%,#0a0b2640 100%) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-2-p)/var(--c32-2-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32=account] #app [data-account-root] .acc-history{background:linear-gradient(#0a0b26b3,#0a0b26cc) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-3-p)/var(--c32-3-z) no-repeat #080e24!important;background-origin:border-box!important}
/* the empty state's own picture gives way to the composition (its caption keeps its dark halo) */
html[data-c32=account] #app [data-account-root] .acc-scene-frame{display:none!important}
/* living details, drawn in code on the frames' free pseudo elements (never nodes the Account patcher owns) */
/* pass 33: the lantern at the cave door flickers - a small glow on the lantern only, never the whole room */
html[data-c32=account] #app [data-account-root] .acc-foxes::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;mix-blend-mode:screen;
  background:radial-gradient(circle closest-side,#ffc55e8c,#ffa23e2e 55%,#ff8a3000) calc(var(--c32-lamp-x) - var(--c32-lamp-s) / 2) calc(var(--c32-lamp-y) - var(--c32-lamp-s) / 2)/var(--c32-lamp-s) var(--c32-lamp-s) no-repeat;
  animation:c32-flicker 2.3s steps(9,jump-none) infinite}
html[data-c32=account] #app [data-account-root] .acc-foxes::after{content:"";position:absolute;z-index:0;pointer-events:none;
  left:calc(var(--c32-ticket-x) - var(--c32-ticket-s) / 2);top:calc(var(--c32-ticket-y) - var(--c32-ticket-s) * 1.18);width:var(--c32-ticket-s);height:calc(var(--c32-ticket-s) * 1.18);
  background:url(/art/tickets-13/ticket-gold-front-128.webp) 50% 50%/contain no-repeat;filter:drop-shadow(0 0 5px #ffd35acc) drop-shadow(0 0 14px #ffb04066);
  transform-origin:50% 100%;animation:c32-float 5.2s ease-in-out infinite}
html[data-c32=account] #app [data-account-root].acc-list .acc-foxes::after,html[data-c32=account] #app [data-account-root].acc-list .acc-foxes::before{display:none}
/* pass 33: no animation under Burn & Return's text (owner) */
/* the picture's moon would stand right behind the Collect button: a night veil covers it in this strip (lead 28.09) */
html[data-c32=account] #app [data-account-root]>.acc-basket::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
  background:radial-gradient(circle closest-side,#0b0a2af5 0,#0b0a2ae6 55%,#0b0a2a00 100%) calc(var(--c32-moon-x) - var(--c32-moon-s) * .75) calc(var(--c32-moon-y) - var(--c32-moon-s) * .75)/calc(var(--c32-moon-s) * 1.5) calc(var(--c32-moon-s) * 1.5) no-repeat}
@keyframes c32-flicker{0%,100%{opacity:.85}12%{opacity:1}23%{opacity:.72}37%{opacity:.95}52%{opacity:.8}66%{opacity:1}81%{opacity:.76}}
@keyframes c32-fire{0%,100%{opacity:.75}20%{opacity:1}40%{opacity:.82}60%{opacity:.98}80%{opacity:.7}}
@keyframes c32-breathe{0%,100%{opacity:.55}50%{opacity:1}}
/* the float of the Home ticket (hb2-float): up and a little to the right, a slight turn; it rests on its ledge */
@keyframes c32-float{0%,100%{transform:translate(0,0) rotate(-4deg)}25%{transform:translate(3%,-5%) rotate(-2.5deg)}50%{transform:translate(1%,-9%) rotate(-4deg)}75%{transform:translate(2.5%,-4%) rotate(-5deg)}}
html[data-motion=off] #app .acc-foxes::before,html[data-motion=off] #app .acc-foxes::after,html[data-motion=off] #app .acc-burn::before,html[data-motion=off] #app .acc-basket::before{animation-play-state:paused!important}
/* no second scene behind the windows: the workspace's own picture (with its moon) gives way on composed pages */
html[data-c32] #app .workspace-scenery12{visibility:hidden!important}
html[data-c32=account] #app [data-account-root] .acc-burn{background:linear-gradient(90deg,#0a0b26e6 0,#0a0b26cc 60%,#0a0b268c 100%) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-2-p)/var(--c32-2-z) no-repeat #080e24!important;background-origin:border-box!important}

/* ---------------------------------------------------------------- Trait Hunt */
html[data-c32=hunt] #app .page-trait-hunt .hunt-banner16{background:linear-gradient(90deg,#0a0b26d9 0,#0a0b2699 60%,#0a0b2640 100%) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important}
html[data-c32=hunt] #app .hunt16>.hunt-portrait08{background:linear-gradient(#0a0b268c,#0a0b2600 22%,#0a0b2600 70%,#0a0b26a6) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important}
html[data-c32=hunt] #app .hunt16>.hunt-week08{background:linear-gradient(#0a0b2640,#0a0b2640) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-2-p)/var(--c32-2-z) no-repeat #080e24!important}
html[data-c32=hunt] #app .hunt16>.hunt-pool16{background:linear-gradient(90deg,#0a0b26b3,#0a0b2680 60%,#0a0b2626) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-3-p)/var(--c32-3-z) no-repeat #080e24!important}
html[data-c32=hunt] #app .hunt16>.hunt-draws18{background:linear-gradient(#0a0b26a6,#0a0b26bf) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-4-p)/var(--c32-4-z) no-repeat #080e24!important}
html[data-c32=hunt] #app .page-trait-hunt .hunt-banner16,html[data-c32=hunt] #app .hunt16>section{background-origin:border-box!important}
/* each window's own picture gives way to the composition */
html[data-c32=hunt] #app .page-trait-hunt .hunt-strip18,html[data-c32=hunt] #app .hunt16 .hunt-set18,html[data-c32=hunt] #app .hunt16 .hunt-scene18{display:none!important}
/* Your Fennec, empty: no inner frame - the silhouette stands on the scene's pedestal (anchor --c32-pedestal: its top centre,
   relative to the Fennec square), the scene's own pedestal replaces the drawn one */
html[data-c32=hunt] #app#app .hunt-portrait08 .empty-fox30.hunt-square08{position:relative;background:none!important;border-color:transparent!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:center!important;padding:10px 12px 14px!important}
html[data-c32=hunt] #app#app .hunt-portrait08 .empty-fox30 .ef30-stage{position:absolute;width:calc(var(--c32-pedestal-s) * 1.05);left:calc(var(--c32-pedestal-x) - var(--c32-pedestal-s) * .525);
  top:calc(var(--c32-pedestal-y) - var(--c32-pedestal-s) * 1.05 * .84)}
html[data-c32=hunt] #app#app .hunt-portrait08 .empty-fox30 .ef30-pedestal{display:none}
html[data-c32=hunt] #app#app .hunt-portrait08 .empty-fox30 .ef30-line{position:relative;z-index:1;text-shadow:0 1px 2px #000,0 0 10px #07061a}

/* ---------------------------------------------------------------- My Fox > Rewards & Return */
html[data-c32=rewards] #app .rewards17>.identity15{background:linear-gradient(#0a0b26a6,#0a0b2640 30%,#0a0b2659) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important}
html[data-c32=rewards] #app .rewards17>.claimable16{background:linear-gradient(90deg,#0a0b2699,#0a0b2626 70%) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important}
html[data-c32=rewards] #app .rewards17>.return-tile15{background:linear-gradient(90deg,#0a0b26b3,#0a0b2626 55%) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-2-p)/var(--c32-2-z) no-repeat #080e24!important}
html[data-c32=rewards] #app .page-my-fox-rewards #main>section.section-gap{background:linear-gradient(#0a0b26b3,#0a0b26cc) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-3-p)/var(--c32-3-z) no-repeat #080e24!important}
html[data-c32=rewards] #app .rewards17>section,html[data-c32=rewards] #app .page-my-fox-rewards #main>section.section-gap{background-origin:border-box!important}
/* the tiles' own pictures give way; the tiles stay as frames over the one scene */
html[data-c32=rewards] #app .rewards17 .claim-art17,html[data-c32=rewards] #app .rewards17 .return-art18,html[data-c32=rewards] #app .rewards17 .return-illustration15{display:none!important}
html[data-c32=rewards] #app .rewards17 .claimable16 .claim-half17{background:linear-gradient(#0c0a2a8c,#0c0a2a26 45%,#0c0a2a8c)!important}
/* pass 33: the Rewards tiles carry text over the picture - no animation there (owner) */
html[data-motion=off] #app .rewards17>section::before{animation-play-state:paused!important}

/* ---------------------------------------------------------------- My Fox > Wardrobe */
html[data-c32=wardrobe] #app .page-my-fox #main section.wardrobe-preview{background:linear-gradient(#0a0b2659,#0a0b2626 40%,#0a0b2680) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32=wardrobe] #app .page-my-fox #main section.inventory{background:linear-gradient(90deg,#0a0b26cc,#0a0b26a6 70%,#0a0b2659) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important;background-origin:border-box!important}

/* ---------------------------------------------------------------- Tickets: the lagoon continues behind the side frames only.
   These frames are text columns: the picture is toned down (multiply = darker, color = one violet hue, calm silhouettes). */
html[data-c32=tickets] #app .page-tickets #main>.epoch-bar,html[data-c32=tickets] #app .tickets12>.ticket-select,html[data-c32=tickets] #app .tickets12>.reveal-summary,
html[data-c32=tickets] #app .page-tickets #main>section.section-gap{background-origin:border-box!important;background-blend-mode:multiply,color,normal!important}
html[data-c32=tickets] #app .page-tickets #main>.epoch-bar{background:linear-gradient(#5d5a86,#5d5a86),linear-gradient(#2a2160,#2a2160),var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important;background-blend-mode:multiply,color,normal!important}
html[data-c32=tickets] #app .tickets12>.ticket-select{background:linear-gradient(#56537e,#56537e),linear-gradient(#2a2160,#2a2160),var(--c32-img) var(--c32-1-p)/var(--c32-1-z) no-repeat #080e24!important;background-blend-mode:multiply,color,normal!important}
html[data-c32=tickets] #app .tickets12>.reveal-summary{background:linear-gradient(#56537e,#56537e),linear-gradient(#2a2160,#2a2160),var(--c32-img) var(--c32-3-p)/var(--c32-3-z) no-repeat #080e24!important;background-blend-mode:multiply,color,normal!important}
html[data-c32=tickets] #app .page-tickets #main>section.section-gap{background:linear-gradient(#56537e,#56537e),linear-gradient(#2a2160,#2a2160),var(--c32-img) var(--c32-4-p)/var(--c32-4-z) no-repeat #080e24!important;background-blend-mode:multiply,color,normal!important}

/* ---------------------------------------------------------------- pass 33: My Fox without a Fennec (Wardrobe / Rewards)
   The panel is the scene; the waiting silhouette stands on the dressing stage (Wardrobe) / on the night dune (Rewards); the
   line and the one action sit on a quiet caption plate over the dark curtain. */
html[data-c32=wardrobe-empty] #app .page-my-fox #main>.empty-fox-panel30,
html[data-c32=rewards-empty] #app .page-my-fox-rewards #main>.empty-fox-panel30{position:relative;overflow:hidden;
  background:linear-gradient(#0a0b2640,#0a0b2600 30%,#0a0b2600 70%,#0a0b2659) 0 0/100% 100% no-repeat,var(--c32-img) var(--c32-0-p)/var(--c32-0-z) no-repeat #080e24!important;background-origin:border-box!important}
html[data-c32$=-empty] #app #main>.empty-fox-panel30>h2{position:relative;z-index:2;text-shadow:0 1px 2px #000,0 0 12px #07061a}
html[data-c32$=-empty] #app #main>.empty-fox-panel30 .empty-fox30{position:absolute!important;inset:0!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;
  display:grid!important;grid-template-columns:1fr min(360px,38%) 9%;grid-template-rows:38% auto auto 1fr;min-height:0!important;gap:0!important;align-items:start}
html[data-c32$=-empty] #app #main>.empty-fox-panel30 .ef30-stage{position:absolute!important;width:calc(var(--c32-stand-s) * 1.05)!important;left:calc(var(--c32-stand-x) - var(--c32-stand-s) * .525);
  top:calc(var(--c32-stand-y) - var(--c32-stand-s) * 1.05 * .84)}
html[data-c32$=-empty] #app #main>.empty-fox-panel30 .ef30-pedestal{display:none}
html[data-c32$=-empty] #app #main>.empty-fox-panel30 .ef30-line{grid-area:2/2;margin:0;padding:18px 20px 70px;max-width:none;text-align:center;
  font:600 17px/1.4 Interface,sans-serif;color:#f3ecff;background:#0b0a26d9;border:1px solid #8a6cd8;border-radius:8px;box-shadow:0 10px 30px #02010c80}
html[data-c32$=-empty] #app #main>.empty-fox-panel30 .ef30-action{grid-area:3/2;justify-self:center;margin-top:-58px;min-width:190px;position:relative;z-index:1}
@media (max-width:959px){
  html[data-c32$=-empty] #app #main>.empty-fox-panel30{min-height:560px}
  html[data-c32$=-empty] #app #main>.empty-fox-panel30 .empty-fox30{grid-template-columns:16px 1fr 16px;grid-template-rows:1fr auto auto 18px}
  html[data-c32$=-empty] #app #main>.empty-fox-panel30 .ef30-line{padding:12px 14px 62px}
}
/* the empty Rewards scene takes the page's free height (Settled weeks keeps its own size below it) */
#app .page-my-fox-rewards #main>.empty-rewards33{flex:1 0 auto!important;min-height:max(460px,58%)!important}
#app .page-my-fox-rewards #main:has(>.empty-rewards33)>section.section-gap{flex:0 0 auto!important;height:auto!important;min-height:0!important}
html[data-c32=rewards-empty] #app #main>.empty-fox-panel30 .empty-fox30{grid-template-rows:20% auto auto 1fr}
@media (max-width:959px){html[data-c32=rewards-empty] #app #main>.empty-fox-panel30 .empty-fox30{grid-template-rows:1fr auto auto 18px}}
