/* Ranger Maple's den (rpg/ui-pet-fuse.js): the North's companion egg and its hatch (ceg-), and fusing three companions
   into one (cfz-). Navy and gold like the World's windows, pixel art scaled up pixelated, Titan One heads. */

/* ---------------------------------------------------------------- the egg in the Companions window */
.ceg-den { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 14px; margin: 6px 0 10px; padding: 10px 14px; border-radius: 10px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--elc) 50%, #2e3d74); background: radial-gradient(ellipse 40% 120% at 0% 50%, color-mix(in srgb, var(--elc) 22%, transparent), transparent 70%), linear-gradient(180deg, #13205c, #0a1340); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ceg-den.ceg-awake { border-color: var(--gold); box-shadow: 0 0 14px color-mix(in srgb, var(--elc) 35%, transparent), inset 0 0 0 1px rgba(255, 210, 63, 0.25); }
.ceg-mini-wrap { position: relative; display: grid; place-items: center; width: 60px; height: 72px; }
.ceg-mini-wrap::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--elc) 45%, transparent), transparent 68%); opacity: 0.5; }
.ceg-awake .ceg-mini-wrap::before { opacity: 1; animation: ceg-beat 1.6s ease-in-out infinite; }
.ceg-sealed .ceg-mini-wrap::before { opacity: 0.15; }
.ceg-mini { position: relative; width: 48px; height: 58px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4)); }
.ceg-awake .ceg-mini { animation: ceg-rock 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.ceg-den-txt { min-width: 0; }
.ceg-den h5 { margin: 0 0 3px; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.15; color: #fff; }
.ceg-den h5 small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); font-family: var(--ui-font); font-size: 12px; vertical-align: 2px; }
.ceg-awake h5 { color: var(--gold); }
.ceg-den p { margin: 0; font-size: 14px; line-height: 1.35; color: #cfd8f0; }
.ceg-den p.ceg-why { margin-top: 3px; color: var(--rs-orange); font-size: 13px; }
.ceg-go { white-space: nowrap; }
.pet-card small.ceg-tag { font-size: 11px; color: color-mix(in srgb, var(--elc) 60%, #fff); }
@keyframes ceg-beat { 0%, 100% { scale: 1; opacity: 0.75; } 12% { scale: 1.18; opacity: 1; } 24% { scale: 1.02; } 36% { scale: 1.12; opacity: 1; } }
@keyframes ceg-rock { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -6deg; } 86% { rotate: 5deg; } 93% { rotate: -2deg; } }
@media (max-width: 520px) {
  .ceg-den { grid-template-columns: auto 1fr; padding: 9px 10px; gap: 6px 10px; }
  .ceg-go { grid-column: 1 / -1; justify-self: stretch; }
  .ceg-mini-wrap { width: 48px; height: 58px; } .ceg-mini { width: 40px; height: 49px; }
  .ceg-den h5 { font-size: 16px; } .ceg-den p { font-size: 13px; }
}
.cfz-teaser { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.cfz-teaser .pane-note { flex: 1; margin: 0; }
.cfz-teaser .btn { flex: none; white-space: nowrap; }
@media (max-width: 520px) { .cfz-teaser { flex-direction: column; align-items: stretch; gap: 6px; } }

/* ---------------------------------------------------------------- the hatch */
.ceg-book { position: relative; text-align: center; }
.ceg-fx, .cfz-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.ceg-book h2 { justify-content: center; }
.ceg-h { display: inline-block; }
.ceg-h.pop { animation: ceg-title 0.55s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes ceg-title { from { scale: 0.6; } }
.ceg-stage { position: relative; height: 250px; margin: 6px 0 10px; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--egl) 45%, #2e3d74);
  background: radial-gradient(ellipse 60% 50% at 50% 62%, color-mix(in srgb, var(--egl) 26%, #1d2a6a), #0f1848 55%, #060b29); box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.65); }
.ceg-rays { position: absolute; left: 50%; top: 52%; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; z-index: 0;
  background: repeating-conic-gradient(color-mix(in srgb, var(--egc) 55%, transparent) 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 14%, transparent 62%); mask: radial-gradient(circle, #000 14%, transparent 62%);
  opacity: 0; scale: 0.4; transition: opacity 0.5s, scale 0.8s cubic-bezier(0.2, 1.4, 0.4, 1); animation: ceg-spin 16s linear infinite; }
.ceg-book[data-st="3"] .ceg-rays { opacity: 0.35; scale: 0.7; }
.ceg-book.charged .ceg-rays { opacity: 0.6; scale: 0.85; animation-duration: 3s; }
.ceg-book.hatched .ceg-rays { opacity: 1; scale: 1; animation-duration: 16s; }
@keyframes ceg-spin { to { rotate: 360deg; } }
.ceg-glow { position: absolute; left: 50%; top: 54%; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--egt) 85%, transparent), color-mix(in srgb, var(--egl) 40%, transparent) 40%, transparent 70%); opacity: 0.25; animation: ceg-heart 0.76s ease-in-out infinite; }
.ceg-book[data-st="1"] .ceg-glow { opacity: 0.4; }
.ceg-book[data-st="2"] .ceg-glow { opacity: 0.6; scale: 1.08; animation-duration: 0.5s; }
.ceg-book[data-st="3"] .ceg-glow { opacity: 0.8; scale: 1.18; animation-duration: 0.36s; }
.ceg-book.charged .ceg-glow { opacity: 1; scale: 1.45; animation: ceg-throb 0.16s ease-in-out infinite alternate; }
.ceg-book.hatched .ceg-glow { opacity: 0.7; scale: 1.3; animation: none; }
.ceg-book.hatched .ceg-glow.flick { animation: ceg-flick 0.22s ease-out; }
.ceg-book.hatched .ceg-glow.boom { animation: ceg-boom 0.7s ease-out; }
@keyframes ceg-flick { 0% { opacity: 1; scale: 1.55; } 100% { opacity: 0.7; scale: 1.3; } }
@keyframes ceg-boom { 0% { opacity: 1; scale: 2.2; } 100% { opacity: 0.7; scale: 1.3; } }
@keyframes ceg-heart { 0%, 100% { scale: 1; } 14% { scale: 1.12; } 28% { scale: 1.02; } 42% { scale: 1.09; } }
@keyframes ceg-throb { to { scale: 1.6; } }
.ceg-nest { position: absolute; left: 50%; top: 84%; width: 200px; height: 60px; translate: -50% -50%; z-index: 1; image-rendering: pixelated; }
.ceg-tap { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ceg-tap:focus-visible { outline: 2px dashed var(--gold); outline-offset: 6px; border-radius: 8px; }
.ceg-egg { display: block; width: 120px; height: 146px; image-rendering: pixelated; transform-origin: 50% 92%; animation: ceg-idle 1.5s ease-in-out infinite; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--egl) 70%, transparent)) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.ceg-book[data-st="2"] .ceg-egg { animation-duration: 0.9s; }
.ceg-book[data-st="3"] .ceg-egg { animation-duration: 0.5s; filter: drop-shadow(0 0 16px var(--egl)) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.ceg-book .ceg-egg.hit { animation: ceg-hit 0.38s ease-out; }
.ceg-book.charged .ceg-egg { animation: ceg-tremble 0.06s linear infinite; filter: brightness(1.35) drop-shadow(0 0 20px var(--egt)) drop-shadow(0 0 30px var(--egl)); }
.ceg-book.hatched .ceg-egg { animation: none; translate: 0 16px; transition: translate 0.4s ease-out; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); } /* what's left of the shell settles into the nest */
.ceg-book.hatched .ceg-tap { cursor: default; }
@keyframes ceg-idle { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
@keyframes ceg-hit { 0% { scale: 1.12 0.86; } 30% { scale: 0.94 1.08; rotate: -10deg; } 55% { scale: 1.03 0.97; rotate: 7deg; } 80% { rotate: -3deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes ceg-tremble { 0% { translate: -3px 0; } 50% { translate: 3px -1px; } 100% { translate: -1px 1px; } }
/* Its animal climbs out of the shell: a dark silhouette rimmed in the egg's light against the rays while the eight animals
   flick by (who's that?), then in its own colours. */
.ceg-baby { position: absolute; left: 50%; top: 30%; width: 160px; height: 160px; translate: -50% -50%; z-index: 2; image-rendering: pixelated; opacity: 0; pointer-events: none;
  filter: brightness(0) drop-shadow(0 0 2px var(--egt)) drop-shadow(0 0 10px var(--egc)); transition: filter 0.6s; }
.ceg-book.hatched .ceg-baby { animation: ceg-out 0.8s cubic-bezier(0.2, 1.5, 0.4, 1) forwards, ceg-bob 1.8s ease-in-out 1.2s infinite; }
.ceg-book.colour .ceg-baby { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--elc) 80%, transparent)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)); }
@keyframes ceg-out { 0% { opacity: 0; translate: -50% 10%; scale: 0.5; } 40% { opacity: 1; } 100% { opacity: 1; translate: -50% -50%; scale: 1; } }
@keyframes ceg-bob { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% -55%; } }
.ceg-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 255, 255, 0.85) 35%, color-mix(in srgb, var(--egt) 50%, transparent) 75%); }
.ceg-book.hatched .ceg-flash { animation: ceg-flash 0.65s ease-out; }
@keyframes ceg-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
/* While the eight animals flick by (.guess): who's in there? */
.ceg-book .ceg-who { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 4; margin: 0; font-family: var(--display); font-size: 17px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 10px var(--egl); opacity: 0; pointer-events: none; }
.ceg-book.guess .ceg-who { opacity: 1; animation: ceg-say 0.6s ease-in-out infinite; }
.ceg-book.guess .ceg-stage { cursor: pointer; }
.ceg-book .ceg-say { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 4; margin: 0; font-family: var(--display); font-size: 16px; line-height: 1.2; color: #fff; text-shadow: 0 2px 0 #000; pointer-events: none; animation: ceg-say 1s ease-in-out infinite; }
.ceg-book.hatched .ceg-say { opacity: 0; transition: opacity 0.2s; animation: none; }
@keyframes ceg-say { 50% { scale: 1.06; } }
.ceg-book [data-pop] { opacity: 0; visibility: hidden; }
.ceg-book [data-pop].on { visibility: visible; animation: ceg-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes ceg-pop { 0% { opacity: 0; scale: 0.6; translate: 0 10px; } 100% { opacity: 1; scale: 1; translate: 0 0; } }
.ceg-res { margin: 0 0 8px; }
.ceg-rib { display: inline-block; padding: 3px 14px 4px; border-radius: 7px; border: 2px solid #3a2a00; background: linear-gradient(180deg, #fff0a0, #ffd23f 48%, #e8b52a); color: var(--navy-900); font-family: var(--display); font-size: 15px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: inset 0 1px 0 #fff6c8, 0 3px 0 #000a2e, 0 0 16px color-mix(in srgb, var(--rc) 75%, transparent); }
.ceg-book .ceg-name { margin: 6px 0 0; font-family: var(--display); font-size: 34px; line-height: 1.05; color: #ffd23f; background: linear-gradient(180deg, #fffbe0 10%, #ffd23f 52%, #f0a020 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #3a2a00) drop-shadow(0 0 14px rgba(255, 210, 63, 0.35)); }
.ceg-book .ceg-sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.ceg-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; text-align: left; }
.ceg-lines li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; border: 1px solid #34468a; background: linear-gradient(180deg, #1a2663, #141e52); box-shadow: 0 2px 0 #000a2e; font-size: 15px; line-height: 1.3; color: #e6ebfa; }
.ceg-book .actions { justify-content: center; }
.ceg-lines li > i { flex: none; width: 24px; font-style: normal; font-size: 18px; text-align: center; }
@media (max-width: 520px) {
  .ceg-stage { height: 220px; }
  .ceg-egg { width: 96px; height: 120px; } .ceg-baby { width: 128px; height: 128px; } .ceg-nest { width: 170px; height: 51px; }
  .ceg-book .ceg-name { font-size: 28px; } .ceg-lines li { font-size: 14px; padding: 5px 9px; gap: 8px; }
}

/* ---------------------------------------------------------------- the fuse window */
.cfz-book h2 { margin-bottom: 6px; }
.cfz-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.cfz-how, .cfz-table { min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #2e3d74; background: linear-gradient(180deg, #121d58, #0a1340); }
.cfz-rules { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; }
.cfz-rules li { display: flex; gap: 8px; font-size: 14px; line-height: 1.3; color: #dfe5f7; }
.cfz-rules li > i { flex: none; width: 20px; font-style: normal; text-align: center; }
.cfz-odds { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfz-odds th { padding: 2px 4px 4px; text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; border-bottom: 1px solid #2e3d74; }
.cfz-odds td { padding: 5px 4px; border-bottom: 1px solid rgba(46, 61, 116, 0.6); vertical-align: middle; white-space: nowrap; }
.cfz-odds tr.on td { background: rgba(255, 210, 63, 0.1); }
.cfz-odds tr.on td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.cfz-odds .cfz-pct { font-family: var(--display); font-size: 16px; color: var(--gold); text-align: center; }
.cfz-odds .cfz-cost { white-space: normal; }
.cfz-arrow { color: var(--muted); }
.cfz-mat { display: inline-flex; align-items: center; gap: 3px; margin: 0 6px 0 0; white-space: nowrap; }
.cfz-mat .ri { width: 22px; height: 22px; image-rendering: pixelated; }
.cfz-mat b { font-weight: 700; color: #fff; font-size: 13px; }
.cfz-mat small { display: none; }
.cfz-mat.short b { color: #ff7a6a; }
.cfz-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.cfz-plus, .cfz-eq { font-style: normal; font-family: var(--display); font-size: 20px; color: var(--muted); }
.cfz-eq { color: var(--gold); margin: 0 2px; }
.cfz-slot { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; width: 92px; height: 112px; padding: 4px; box-sizing: border-box; border-radius: 10px; font: inherit; color: inherit; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--elc, #2e3d74) 55%, #2e3d74); background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--elc, #2e3d74) 28%, transparent), transparent 64%), #0b1445; }
.cfz-slot img { width: 64px; height: 64px; image-rendering: pixelated; }
.cfz-slot b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #fff; }
.cfz-slot small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cfz-slot.empty { cursor: default; border-style: dashed; border-color: #3a4e9a; background: rgba(4, 9, 32, 0.4); }
.cfz-slot.empty i { font-style: normal; font-family: var(--display); font-size: 26px; color: #3a4e9a; }
.cfz-slot.empty small { white-space: normal; text-align: center; }
.cfz-slot.r-uncommon { border-color: #7adf7a; } .cfz-slot.r-rare { border-color: #6ab4ff; } /* (the companions' rarity colours: world.css .pet-rar, rpg/rarity-colors.js) */
.cfz-out { display: grid; justify-items: center; align-content: center; gap: 1px; width: 116px; min-height: 140px; padding: 4px; box-sizing: border-box; border-radius: 12px; border: 2px solid var(--rc, #3a4e9a);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc, #3a4e9a) 30%, transparent), transparent 66%), #0b1445; box-shadow: 0 0 16px color-mix(in srgb, var(--rc, #3a4e9a) 35%, transparent); }
.cfz-out img { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 0 5px var(--rc)); }
.cfz-out b { font-size: 14px; color: #fff; }
.cfz-out small { font-size: 11px; color: var(--muted); text-align: center; }
.cfz-out.empty { border-style: dashed; box-shadow: none; }
.cfz-out.empty span { font-family: var(--display); font-size: 40px; color: #3a4e9a; }
.cfz-pickel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cfz-el { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; border-radius: 999px; border: 1px solid #3a4e9a; background: #0f1a52; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.cfz-el img { width: 28px; height: 28px; image-rendering: pixelated; }
.cfz-el.on { border-color: var(--gold); background: rgba(255, 210, 63, 0.14); box-shadow: 0 0 0 1px var(--gold); }
.cfz-chance { margin: 8px 0 0; }
.cfz-bar { position: relative; display: block; height: 12px; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, #3a4256, #262c3c); border: 1px solid #000a2e; }
.cfz-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 70%, #fff), var(--rc)); box-shadow: 0 0 8px var(--rc); }
.cfz-chance p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #cfd8f0; text-align: center; }
.cfz-win { color: var(--rc); } .cfz-lose { color: #a8b0c2; }
.cfz-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cfz-pay > span { margin-right: 4px; }
.cfz-pay > small { flex-basis: 100%; text-align: center; font-size: 11px; }
.cfz-book .cfz-card { color: #ffb347; } /* (a companion that came from a real card: fusing it can't be undone) */
.cfz-book .cfz-note, .cfz-book .cfz-why, .cfz-book .cfz-sure { margin: 6px 0 0; font-size: 13px; line-height: 1.3; text-align: center; color: #cfd8f0; }
.cfz-book .cfz-why { color: var(--rs-orange); }
.cfz-book .cfz-sure { color: var(--gold); }
.cfz-table .actions { justify-content: center; margin-top: 8px; }
.cfz-go { font-family: var(--display); font-weight: 400; font-size: 17px; padding: 7px 20px; }
.cfz-book h4 small { margin-left: 6px; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.cfz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cfz-pet { position: relative; display: grid; justify-items: center; gap: 1px; padding: 5px 3px 6px; border-radius: 9px; font: inherit; color: inherit; cursor: pointer; min-width: 0;
  border: 1px solid #2e3d74; background: radial-gradient(ellipse 80% 45% at 50% 34%, color-mix(in srgb, var(--elc) 18%, transparent), transparent 70%), #0b1445; transition: transform 0.12s; }
.cfz-pet:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.cfz-pet img { width: 64px; height: 64px; image-rendering: pixelated; }
.cfz-pet b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #fff; }
.cfz-pet small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cfz-pet.r-uncommon { border-color: #7adf7a; } .cfz-pet.r-rare { border-color: #6ab4ff; } .cfz-pet.r-epic { border-color: #c08aff; } .cfz-pet.r-legendary { border-color: #ffb43a; } .cfz-pet.r-mythic { border-color: #fff2a8; }
.cfz-pet.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255, 210, 63, 0.4); background-color: #1a2460; }
.cfz-pet.off { opacity: 0.42; filter: saturate(0.5); }
.cfz-pet.no { cursor: not-allowed; }
.cfz-n { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-style: normal; font-family: var(--display); font-size: 12px; }
.cfz-side, .cfz-no { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 13px; line-height: 1; }
.cfz-no { right: auto; left: 4px; }
.cfz-book .cfz-last { margin: -2px 0 8px; font-size: 13px; color: var(--muted); }
.cfz-back { justify-content: flex-start; margin-top: 8px; }
@media (max-width: 760px) {
  .cfz-top { grid-template-columns: minmax(0, 1fr); }
  .cfz-table { order: -1; }
}
@media (max-width: 520px) {
  .cfz-how, .cfz-table { padding: 8px; }
  .cfz-rules li { font-size: 13px; }
  .cfz-slot { width: 74px; height: 96px; } .cfz-slot img { width: 48px; height: 48px; } .cfz-slot b { font-size: 12px; }
  .cfz-out { width: 82px; min-height: 112px; } .cfz-out img { width: 64px; height: 64px; } .cfz-out b { font-size: 12px; }
  .cfz-plus, .cfz-eq { font-size: 15px; }
  .cfz-row { gap: 2px; }
  .cfz-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
  .cfz-pet img { width: 48px; height: 48px; } .cfz-pet b { font-size: 12px; }
  .cfz-odds { font-size: 12px; } .cfz-odds .cfz-cost .cfz-mat .ri { width: 18px; height: 18px; }
}

/* ---------------------------------------------------------------- the fuse show */
.cfz-show { position: relative; text-align: center; }
.cfz-show .cfz-kick { margin: 0 0 2px; color: var(--muted); font-size: 14px; }
.cfz-h { justify-content: center; }
.cfz-show.landed .cfz-h { animation: ceg-title 0.55s cubic-bezier(0.2, 1.6, 0.4, 1); }
.cfz-show.landed.won .cfz-h span { color: var(--rc); }
.cfz-show.landed.miss .cfz-h span { color: #a8b0c2; }
.cfz-stage { --r: 84px; position: relative; height: 260px; margin: 6px 0 10px; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid #2e3d74;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--rc0) 22%, #1d2a6a), #0e1746 55%, #060b29); box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.65); }
.cfz-stage:focus-visible { outline: 2px dashed var(--gold); outline-offset: -4px; }
.cfz-runes { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; z-index: 0;
  border: 2px dashed color-mix(in srgb, var(--rc0) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--rc0) 40%, transparent), inset 0 0 18px color-mix(in srgb, var(--rc0) 30%, transparent); animation: ceg-spin 12s linear infinite; }
.cfz-runes::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--rc0) 45%, transparent); background: repeating-conic-gradient(color-mix(in srgb, var(--rc0) 35%, transparent) 0 4deg, transparent 4deg 30deg); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); animation: ceg-spin 7s linear infinite reverse; }
.cfz-rays { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; z-index: 0; opacity: 0;
  background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 55%, transparent) 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 14%, transparent 62%); mask: radial-gradient(circle, #000 14%, transparent 62%); animation: ceg-spin 16s linear infinite; transition: opacity 0.5s; }
.cfz-show.landed.won .cfz-rays { opacity: 1; }
.cfz-orb { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; z-index: 2; image-rendering: pixelated;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); filter: drop-shadow(0 0 6px var(--elc)); }
.cfz-show.swirl .cfz-orb { animation: cfz-in 1.3s cubic-bezier(0.5, 0, 0.75, 0.4) forwards; }
@keyframes cfz-in { 0% { transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))) scale(1); } 100% { transform: rotate(calc(var(--a) + 540deg)) translate(0) rotate(calc(-1 * var(--a) - 540deg)) scale(0.3); opacity: 0.2; filter: brightness(3) drop-shadow(0 0 10px #fff); } }
.cfz-show.merged .cfz-orb { opacity: 0; animation: none; }
.cfz-core { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 2; border-radius: 50%; opacity: 0; scale: 0.2;
  background: radial-gradient(circle, #fff, color-mix(in srgb, var(--rc0) 80%, #fff) 45%, transparent 72%); box-shadow: 0 0 24px #fff, 0 0 40px var(--rc0); transition: opacity 0.25s, scale 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
.cfz-show.merged .cfz-core { opacity: 1; scale: 1.4; animation: ceg-throb 0.2s ease-in-out infinite alternate; }
.cfz-show.landed .cfz-core { opacity: 0; transition: opacity 0.15s; animation: none; }
.cfz-wheel { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; z-index: 3; opacity: 0; scale: 0.7; transition: opacity 0.3s, scale 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.cfz-show.spin .cfz-wheel, .cfz-show.spun .cfz-wheel { opacity: 1; scale: 1; }
.cfz-show.landed .cfz-wheel { opacity: 0.35; transition: opacity 0.6s 0.3s; }
.cfz-w0 { fill: none; stroke: #2a3146; stroke-width: 12; }
/* The lit arc is the odds, in the colour you're trying for, the same win or miss until it lands (nothing tells before). */
.cfz-w1 { fill: none; stroke: var(--rt); stroke-width: 12; filter: drop-shadow(0 0 4px var(--rt)); }
.cfz-show.landed.miss .cfz-w1 { stroke: #5a6378; filter: none; }
.cfz-ptr { transform-origin: 100px 100px; }
.cfz-ptr path { fill: var(--gold); stroke: #3a2a00; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255, 210, 63, 0.9)); }
.cfz-new { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; z-index: 4; image-rendering: pixelated; opacity: 0; scale: 0.3; filter: drop-shadow(0 0 8px var(--rc)); }
.cfz-show.landed.won .cfz-new { animation: cfz-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) forwards, cfz-bob 2s ease-in-out 0.9s infinite; }
.cfz-show.landed.miss .cfz-new { animation: cfz-drop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
@keyframes cfz-pop { 0% { opacity: 0; scale: 0.2; } 60% { opacity: 1; scale: 1.15; } 100% { opacity: 1; scale: 1; } }
@keyframes cfz-bob { 50% { translate: 0 -5px; } }
@keyframes cfz-drop { 0% { opacity: 0; translate: 0 -60px; } 100% { opacity: 1; scale: 1; translate: 0 0; } }
.cfz-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 255, 255, 0.8) 35%, color-mix(in srgb, var(--rc) 45%, transparent) 75%); }
.cfz-show.landed.won .cfz-flash { animation: ceg-flash 0.6s ease-out; }
.cfz-rib { position: absolute; left: 50%; bottom: 12px; z-index: 6; translate: -50% 0; padding: 3px 16px 4px; border-radius: 7px; white-space: nowrap; font-family: var(--display); font-size: 17px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
  border: 2px solid #3a2a00; background: linear-gradient(180deg, #fff0a0, #ffd23f 48%, #e8b52a); color: var(--navy-900); box-shadow: inset 0 1px 0 #fff6c8, 0 3px 0 #000a2e, 0 0 18px color-mix(in srgb, var(--rc) 60%, transparent); }
.cfz-show.miss .cfz-rib { background: linear-gradient(180deg, #d4d9e4, #9aa3b4 52%, #7a8396); border-color: #262c3c; box-shadow: inset 0 1px 0 #eef1f6, 0 3px 0 #000a2e; }
.cfz-show [data-pop] { opacity: 0; visibility: hidden; }
.cfz-show [data-pop].on { visibility: visible; animation: ceg-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
.cfz-show .cfz-rib[data-pop].on { animation: cfz-rib 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes cfz-rib { 0% { opacity: 0; scale: 0.6; } 100% { opacity: 1; scale: 1; } }
.cfz-show .cfz-say { margin: 0 0 8px; font-size: 15px; line-height: 1.35; color: #e6ebfa; }
.cfz-res { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cfz-res li { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 120px; padding: 8px 10px; box-sizing: border-box; border-radius: 10px; border: 1px solid #34468a; background: linear-gradient(180deg, #1a2663, #141e52); box-shadow: 0 3px 0 #000a2e; }
.cfz-res b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.1; color: #fff; }
.cfz-res small { font-size: 12px; line-height: 1.2; color: #bcc5ea; }
.cfz-show .actions { justify-content: center; }
.modal.cfz-boom { animation: egg-boom 0.45s ease-out; }
@media (max-width: 520px) {
  .cfz-stage { --r: 70px; height: 230px; }
  .cfz-orb { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cfz-runes { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
  .cfz-wheel { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .cfz-new { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .cfz-res li { min-width: 0; flex: 1 1 30%; padding: 6px; } .cfz-res b { font-size: 16px; }
  .cfz-res li:first-child { flex-basis: 100%; } /* the name on a row of its own: "Bouldermaw" ran past a third */
  .cfz-show .cfz-kick { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ceg-den *, .ceg-book *, .cfz-show *, .ceg-den *::before, .cfz-show *::before { animation: none !important; transition: none !important; }
  .ceg-book [data-pop].on, .cfz-show [data-pop].on { opacity: 1; }
  .ceg-book.hatched .ceg-baby { opacity: 1; translate: -50% -50%; }
  .cfz-show.landed .cfz-new { opacity: 1; scale: 1; }
}
