/* looks/crown.css: the signature look + animation of EVERY crown item, one block per item, keyed by .it-<item id>
 * (shop.js adds it-<id> to every rendered item: Shop/Library cards, the preview, in-match names/tiles/podium).
 * Each item must look unlike every other item. Respect prefers-reduced-motion (calmer or no animation there).
 * Sizes are in em so the same look works on a card (2.6rem), the preview (1.7rem) and the podium (2.4rem).
 * Keyframes are prefixed cwn- so they never collide with other looks/*.css files. */

.crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart) { position: relative; isolation: isolate; }
.crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart)::before, .crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart)::after { position: absolute; pointer-events: none; }

/* 👑 Crown: a regal rise, a royal head-tilt, a settle, and golden glints popping on the points */
.crown-art.it-cr_crown { animation: cwnRoyal 3s cubic-bezier(.4, 0, .2, 1) infinite; filter: drop-shadow(0 0 .08em rgba(255, 211, 77, .55)); }
@keyframes cwnRoyal { 0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-.15em) rotate(-5deg); } 35% { transform: translateY(-.15em) rotate(5deg); }
  50% { transform: translateY(-.15em) rotate(0); } 70% { transform: translateY(0); } 77% { transform: scale(1.07, .93); } 85% { transform: scale(1); } }
.crown-art.it-cr_crown::before, .crown-art.it-cr_crown::after { content: "✦"; color: #fff6c4; text-shadow: 0 0 .3em #ffd34d, 0 0 .1em #fff; line-height: 1; }
.crown-art.it-cr_crown::after { top: -.15em; right: -.2em; font-size: .42em; animation: cwnGlint 3s ease-in-out infinite; }
.crown-art.it-cr_crown::before { top: .05em; left: -.25em; font-size: .3em; animation: cwnGlint 3s ease-in-out -1.4s infinite; }
@keyframes cwnGlint { 0%, 30%, 60%, 100% { transform: scale(0) rotate(0); opacity: 0; } 42% { transform: scale(1.25) rotate(90deg); opacity: 1; } 52% { transform: scale(.4) rotate(160deg); opacity: .6; } }

/* 🎩 Top Hat: a gentleman's hat-tip (lifts off and tilts), with silver magic puffing out of the brim */
.crown-art.it-cr_tophat { animation: cwnTip 2.6s ease-in-out infinite; filter: drop-shadow(0 0 .06em rgba(230, 240, 255, .7)); }
@keyframes cwnTip { 0%, 52%, 100% { transform: translateY(0) rotate(0); } 62%, 72% { transform: translateY(-.32em) rotate(-16deg); } 82% { transform: translateY(0) rotate(0); } 87% { transform: scale(1.06, .94); } 92% { transform: scale(1); } }
.crown-art.it-cr_tophat::after { content: "✧ ✦ ✧"; left: -.5em; right: -.5em; bottom: -.05em; text-align: center; white-space: nowrap; font-size: .3em;
  color: #eef4ff; text-shadow: 0 0 .4em #b9d4ff; opacity: 0; animation: cwnPuff 2.6s ease-out infinite; }
@keyframes cwnPuff { 0%, 58% { opacity: 0; transform: translateY(0) scale(.4); letter-spacing: 0; } 66% { opacity: 1; transform: translateY(-.6em) scale(1); }
  85% { opacity: 0; transform: translateY(-1.8em) scale(1.2); letter-spacing: .5em; } 100% { opacity: 0; } }

/* 🤠 Cowboy: gallops side to side while a rope lasso whirls above the hat */
.crown-art.it-cr_cowboy { animation: cwnGallop .9s ease-in-out infinite; }
@keyframes cwnGallop { 0%, 100% { transform: translateY(0) rotate(-7deg); } 25% { transform: translateY(-.12em) rotate(0); } 50% { transform: translateY(0) rotate(7deg); } 75% { transform: translateY(-.12em) rotate(0); } }
.crown-art.it-cr_cowboy::before { content: ""; z-index: -1; left: 50%; top: -.95em; width: 1.5em; height: 1.5em; margin-left: -.75em; border-radius: 50%;
  border: .07em dashed #d0964a; box-shadow: 0 0 0 .02em #7a4a1c; animation: cwnLasso .7s linear infinite; }
@keyframes cwnLasso { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }

/* 🧢 Cap: snaps a full 360 turnaround now and then, blue speed streaks and a squashing shadow */
.crown-art.it-cr_cap { animation: cwnFlip 3.2s cubic-bezier(.5, 0, .3, 1) infinite; transform-origin: center; }
@keyframes cwnFlip { 0%, 58%, 100% { transform: translateY(0) rotateY(0); } 68% { transform: translateY(-.18em) rotateY(200deg); } 76% { transform: translateY(-.1em) rotateY(360deg); }
  82% { transform: translateY(0) rotateY(360deg) scale(1.08, .92); } 88% { transform: rotateY(360deg) scale(1); } }
.crown-art.it-cr_cap::before { content: ""; z-index: -1; left: 50%; bottom: -.08em; width: .9em; height: .14em; margin-left: -.45em; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); animation: cwnShadow 3.2s ease-in-out infinite; }
@keyframes cwnShadow { 0%, 58%, 100% { transform: scaleX(1); opacity: .8; } 68% { transform: scaleX(.55); opacity: .4; } 82% { transform: scaleX(1.15); opacity: .9; } }
.crown-art.it-cr_cap::after { content: ""; top: 30%; left: -.45em; width: .4em; height: .32em; opacity: 0;
  background: linear-gradient(#4da3ff, #4da3ff) 0 0 / 100% .045em no-repeat, linear-gradient(#7fc4ff, #7fc4ff) .12em 50% / 70% .045em no-repeat, linear-gradient(#4da3ff, #4da3ff) .05em 100% / 85% .045em no-repeat;
  animation: cwnStreak 3.2s ease-out infinite; }
@keyframes cwnStreak { 0%, 60%, 100% { opacity: 0; transform: translateX(.2em); } 68% { opacity: 1; transform: translateX(0); } 80% { opacity: 0; transform: translateX(-.25em); } }

/* 🎓 Graduate: tossed sky-high with a full spin, a burst of navy + gold confetti at the top of the throw */
.crown-art.it-cr_grad { animation: cwnToss 2.8s cubic-bezier(.3, 0, .4, 1) infinite; transform-origin: center; }
@keyframes cwnToss { 0%, 38%, 100% { transform: translateY(0) rotate(0); } 54% { transform: translateY(-.5em) rotate(200deg); } 68% { transform: translateY(0) rotate(360deg); }
  72% { transform: rotate(360deg) scale(1.1, .9); } 78% { transform: rotate(360deg) scale(1); } }
.crown-art.it-cr_grad::before { content: ""; left: 50%; top: 50%; width: .1em; height: .1em; margin: -.05em; border-radius: 50%; background: #ffd34d; opacity: 0;
  box-shadow: .45em -.2em 0 #ffd34d, -.45em -.15em 0 #fff, .3em .35em 0 #3b5bdb, -.35em .3em 0 #ffd34d, 0 -.5em 0 #fff, .55em .15em 0 #3b5bdb, -.55em .1em 0 #3b5bdb, .15em -.45em 0 #ffd34d;
  animation: cwnBurst 2.8s ease-out infinite; }
@keyframes cwnBurst { 0%, 50% { opacity: 0; transform: translateY(-.5em) scale(.2); } 56% { opacity: 1; transform: translateY(-.5em) scale(1); } 74% { opacity: 0; transform: translateY(-.2em) scale(1.7); } 100% { opacity: 0; } }

/* ⛑️ Helmet: an emergency beacon (red + white light sweeping round) and a double alert hop */
.crown-art.it-cr_helmet { animation: cwnAlert 1.2s ease-out infinite, cwnSiren .6s steps(1) infinite; }
@keyframes cwnAlert { 0%, 40%, 100% { transform: translateY(0); } 10% { transform: translateY(-.14em); } 20% { transform: translateY(0); } 28% { transform: translateY(-.08em); } }
@keyframes cwnSiren { 0%, 100% { filter: drop-shadow(0 0 .14em #ff2d2d); } 50% { filter: drop-shadow(0 0 .14em #ffffff); } }
.crown-art.it-cr_helmet::before { content: ""; z-index: -1; left: 50%; top: 50%; width: 2.1em; height: 2.1em; margin: -1.05em; border-radius: 50%;
  background: conic-gradient(rgba(255, 40, 40, .85) 0 38deg, transparent 38deg 180deg, rgba(255, 255, 255, .7) 180deg 218deg, transparent 218deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 70%); mask: radial-gradient(circle, #000 18%, transparent 70%); animation: spin360 1.2s linear infinite; }

/* 🥳 Party Hat: squash-and-stretch boing while multicolor confetti rains down behind */
.crown-art.it-cr_party { animation: cwnBoing 1s cubic-bezier(.3, 0, .5, 1) infinite; }
@keyframes cwnBoing { 0%, 100% { transform: translateY(0) scale(1.16, .84); } 40% { transform: translateY(-.3em) scale(.9, 1.12); } 60% { transform: translateY(-.32em) scale(1); } 90% { transform: translateY(0) scale(1); } }
.crown-art.it-cr_party::before { content: ""; z-index: -1; left: 50%; top: -.4em; width: 1.9em; height: 1.7em; margin-left: -.95em;
  background-image: radial-gradient(circle, #ff2d95 .06em, transparent .075em), radial-gradient(circle, #ffd34d .05em, transparent .065em),
    radial-gradient(circle, #3dff9a .05em, transparent .065em), radial-gradient(circle, #4da3ff .065em, transparent .08em);
  background-size: .7em .9em, .9em .7em, .55em 1.1em, 1.1em .6em; background-position: 0 0, .3em .2em, .1em .5em, .5em .1em;
  -webkit-mask: linear-gradient(transparent, #000 25%, #000 70%, transparent); mask: linear-gradient(transparent, #000 25%, #000 70%, transparent);
  animation: cwnConfetti 1.3s linear infinite; }
@keyframes cwnConfetti { to { background-position: 0 .9em, .3em .9em, .1em 1.6em, .5em .7em; } }

/* 😇 Halo: serene breathing float under a glowing ring of light, a soft heaven-beam shining down */
.crown-art.it-cr_halo { animation: cwnBless 4s ease-in-out infinite; filter: drop-shadow(0 0 .12em rgba(255, 246, 196, .8)); }
@keyframes cwnBless { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-.14em) scale(1.04); } }
.crown-art.it-cr_halo::before { content: ""; left: 50%; top: -.32em; width: .95em; height: .3em; margin-left: -.475em; border-radius: 50%;
  border: .075em solid #fff3b0; box-shadow: 0 0 .25em #ffd34d, inset 0 0 .12em #ffd34d; animation: cwnRing 4s ease-in-out infinite; }
@keyframes cwnRing { 0%, 100% { transform: translateY(0) scaleX(1); opacity: .85; } 50% { transform: translateY(-.1em) scaleX(1.12); opacity: 1; } }
.crown-art.it-cr_halo::after { content: ""; z-index: -1; left: 50%; top: -1.1em; width: 1.5em; height: 2.3em; margin-left: -.75em;
  background: linear-gradient(rgba(255, 246, 196, 0), rgba(255, 246, 196, .4) 40%, rgba(255, 246, 196, 0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); animation: cwnBeam 4s ease-in-out infinite; }
@keyframes cwnBeam { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* 🔥 Flaming: fast flicker with two streams of embers rising off it */
.crown-art.it-cr_flame { animation: crFlicker .16s steps(2) infinite alternate; }
.crown-art.it-cr_flame::before, .crown-art.it-cr_flame::after { content: ""; left: 50%; top: .2em; width: .08em; height: .08em; border-radius: 50%; background: #ffd34d;
  box-shadow: .28em .1em 0 #ff6a1a, -.26em -.05em 0 #ffb13d, .1em -.22em 0 #ff4500, -.12em .18em 0 #ffd34d; animation: cwnEmber 1.1s ease-out infinite; }
.crown-art.it-cr_flame::after { left: 42%; top: .35em; animation-delay: -.55s; background: #ff6a1a; box-shadow: .2em -.1em 0 #ffd34d, -.3em .05em 0 #ff4500, .35em .2em 0 #ffb13d; }
@keyframes cwnEmber { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(.08em, -.9em) scale(.4); } }

/* 💎 Diamond: rocks in 3D to catch the light, a rotating prism glare behind and starry twinkles */
.crown-art.it-cr_diamond { animation: cwnFacet 1.8s ease-in-out infinite alternate, crTwinkle 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes cwnFacet { from { transform: translateY(0) rotateY(-28deg); } to { transform: translateY(-.15em) rotateY(28deg); } }
.crown-art.it-cr_diamond::before { content: ""; z-index: -1; left: 50%; top: 50%; width: 1.8em; height: 1.8em; margin: -.9em; border-radius: 50%; opacity: .5;
  background: conic-gradient(#ff6bd6, #ffd34d, #3dff9a, #4da3ff, #b16bff, #ff6bd6);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 68%); mask: radial-gradient(circle, #000 15%, transparent 68%); animation: spin360 4s linear infinite; }
.crown-art.it-cr_diamond::after { content: "✦"; top: -.1em; right: -.15em; font-size: .36em; line-height: 1; color: #fff;
  text-shadow: -2.4em 1.7em 0 #bff4ff, -.6em 2.6em 0 #fff, 0 0 .3em #7fe3ff; animation: cwnSparkle 1.4s ease-in-out infinite; }
@keyframes cwnSparkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }

/* 🌟 Superstar: pulses like a pop star with a comet orbiting round it, trail and all */
.crown-art.it-cr_star { animation: cwnShine 1.6s ease-in-out infinite, crTwinkle 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes cwnShine { 0%, 100% { transform: scale(1) rotate(-8deg); } 50% { transform: scale(1.14) rotate(8deg); } }
.crown-art.it-cr_star::before, .crown-art.it-cr_star::after { content: ""; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -.8em; border-radius: 50%; animation: spin360 1.8s linear infinite; }
.crown-art.it-cr_star::before { background: radial-gradient(circle at 50% 4%, #fff .05em, #ffe94d .09em, transparent .15em); }
.crown-art.it-cr_star::after { z-index: -1; background: conic-gradient(transparent 0 250deg, rgba(255, 233, 77, .75) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64% 70%, transparent 72%); mask: radial-gradient(circle, transparent 62%, #000 64% 70%, transparent 72%); }

/* 👻 Haunted: drifts and fades in and out, a see-through echo of itself trailing behind, mist below */
.crown-art.it-cr_ghost { animation: crHaunt 3.4s ease-in-out infinite, glowCyan 3s ease-in-out infinite; }
.crown-art.it-cr_ghost::after { content: "👻"; z-index: -1; left: 0; top: 0; opacity: .3; filter: blur(.02em); animation: cwnEcho 3.4s ease-in-out infinite; }
@keyframes cwnEcho { 0%, 100% { transform: translate(.15em, .1em); } 25% { transform: translate(.2em, .15em); } 50% { transform: translate(-.22em, .2em); } 75% { transform: translate(-.15em, .05em); } }
.crown-art.it-cr_ghost::before { content: ""; z-index: -1; left: 50%; bottom: -.15em; width: 1.4em; height: .4em; margin-left: -.7em; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200, 240, 255, .55), transparent 70%); animation: cwnMist 2.2s ease-in-out infinite alternate; }
@keyframes cwnMist { from { transform: scaleX(.8); opacity: .4; } to { transform: scaleX(1.2); opacity: .85; } }

/* 🏆 Trophy: hoisted overhead and shaken in victory, gold sunburst behind, camera flashes going off */
.crown-art.it-cr_trophy { animation: cwnHoist 2.4s ease-in-out infinite, glowGold 2.4s ease-in-out infinite; }
@keyframes cwnHoist { 0%, 30%, 100% { transform: translateY(0) scale(1) rotate(0); } 42% { transform: translateY(-.25em) scale(1.12) rotate(-7deg); } 50% { transform: translateY(-.25em) scale(1.12) rotate(7deg); }
  58% { transform: translateY(-.25em) scale(1.12) rotate(-5deg); } 66% { transform: translateY(-.25em) scale(1.12) rotate(0); } 84% { transform: translateY(0) scale(1); } }
.crown-art.it-cr_trophy::before { content: ""; z-index: -1; left: 50%; top: 50%; width: 2em; height: 2em; margin: -1em; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 211, 77, .6) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin360 9s linear infinite; }
.crown-art.it-cr_trophy::after { content: ""; left: 15%; top: -5%; width: .55em; height: .55em; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 15%, rgba(255, 255, 255, .7) 30%, transparent 70%); animation: cwnFlash 2.4s ease-out infinite; }
@keyframes cwnFlash { 0%, 40% { opacity: 0; transform: translate(0, 0) scale(.2); } 44% { opacity: 1; transform: translate(0, 0) scale(1.2); } 50% { opacity: 0; transform: translate(0, 0) scale(1.5); }
  56% { opacity: 0; transform: translate(.5em, .1em) scale(.2); } 60% { opacity: 1; transform: translate(.5em, .1em) scale(1); } 66% { opacity: 0; transform: translate(.5em, .1em) scale(1.4); } 100% { opacity: 0; } }

/* 💀 Ear Destroyer: thumps to a bass beat, rattling, with red + white shockwaves blasting out */
.crown-art.it-cr_skull { animation: cwnThump .6s ease-out infinite; filter: drop-shadow(0 0 .1em rgba(255, 61, 61, .7)); transform-origin: center; }
@keyframes cwnThump { 0%, 100% { transform: scale(1) rotate(0); } 10% { transform: scale(1.2) rotate(-6deg); } 25% { transform: scale(.95) rotate(5deg); } 45% { transform: scale(1.03) rotate(-2deg); } 60% { transform: scale(1) rotate(0); } }
.crown-art.it-cr_skull::before, .crown-art.it-cr_skull::after { content: ""; z-index: -1; left: 50%; top: 50%; width: 1em; height: 1em; margin: -.5em; border-radius: 50%;
  border: .06em solid rgba(255, 61, 61, .9); animation: cwnWave .6s ease-out infinite; }
.crown-art.it-cr_skull::after { border-color: rgba(255, 255, 255, .7); animation-delay: -.3s; }
@keyframes cwnWave { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* 🤑 Money Bags: ka-ching bounce, cash fluttering down one side and dollar signs floating up the other */
.crown-art.it-cr_money { animation: crCash 1.4s ease-in-out infinite, glowGreen 1.4s ease-in-out infinite; }
.crown-art.it-cr_money::before { content: "💵"; z-index: -1; left: -.25em; top: 0; font-size: .38em; line-height: 1; animation: cwnBills 1.8s linear infinite; }
@keyframes cwnBills { 0% { opacity: 0; transform: translate(0, -1.2em) rotate(-25deg); } 15% { opacity: 1; } 50% { transform: translate(.35em, .9em) rotate(20deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(0, 2.6em) rotate(-15deg); } }
.crown-art.it-cr_money::after { content: "$"; right: -.2em; top: .2em; font-size: .45em; font-weight: 900; line-height: 1; color: #3dff9a; text-shadow: 0 0 .25em #1f9c5a;
  animation: cwnDollar 1.4s ease-out infinite; }
@keyframes cwnDollar { 0% { opacity: 0; transform: translateY(.4em) scale(.5); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-1.4em) scale(.8); } }

/* 👽 Alien: a wobbly UFO hover with a scanning green tractor beam shining down on the winner */
.crown-art.it-cr_alien { animation: cwnUfo 1.8s ease-in-out infinite, glowGreen 1.2s ease-in-out infinite; transform-origin: center; }
@keyframes cwnUfo { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 25% { transform: translate(-.06em, -.12em) rotate(0); } 50% { transform: translate(0, -.2em) rotate(6deg); } 75% { transform: translate(.06em, -.12em) rotate(0); } }
.crown-art.it-cr_alien::before { content: ""; z-index: -1; left: 50%; top: 80%; width: 1.3em; height: 1.2em; margin-left: -.65em;
  background: repeating-linear-gradient(rgba(61, 255, 154, 0) 0 .06em, rgba(170, 255, 210, .35) .06em .1em), linear-gradient(rgba(61, 255, 154, .7), rgba(61, 255, 154, 0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); animation: cwnBeamScan .5s linear infinite, cwnBeamFlicker 1.8s steps(1) infinite; }
@keyframes cwnBeamScan { to { background-position: 0 .1em, 0 0; } }
@keyframes cwnBeamFlicker { 0%, 100% { opacity: .9; } 47% { opacity: .35; } 52% { opacity: .9; } 54% { opacity: .5; } 56% { opacity: .9; } }
.crown-art.it-cr_alien::after { content: ""; left: 50%; top: 1.7em; width: .1em; height: .1em; margin-left: -.05em; border-radius: 50%; background: #c9ffe3; box-shadow: 0 0 .15em #3dff9a;
  animation: cwnAbduct 1.6s ease-in infinite; }
@keyframes cwnAbduct { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1em) scale(.5); } }

/* 🃏 Jester: a zany skewed wobble while juggling a red and a yellow ball overhead */
.crown-art.it-cr_jester { animation: cwnZany 1.4s ease-in-out infinite; filter: drop-shadow(0 0 .08em rgba(255, 61, 120, .6)); }
@keyframes cwnZany { 0%, 100% { transform: skewX(0) rotate(0); } 25% { transform: skewX(10deg) rotate(-9deg); } 50% { transform: skewX(0) rotate(0) translateY(-.08em); } 75% { transform: skewX(-10deg) rotate(9deg); } }
.crown-art.it-cr_jester::before, .crown-art.it-cr_jester::after { content: ""; left: 50%; top: 0; width: .17em; height: .17em; margin-left: -.085em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9a9a, #e0182d); animation: cwnJuggle 1.4s linear infinite; }
.crown-art.it-cr_jester::after { background: radial-gradient(circle at 35% 35%, #fff4a8, #e8b100); animation-delay: -.7s; }
@keyframes cwnJuggle { 0% { transform: translate(-.5em, .15em); } 25% { transform: translate(0, -.5em); } 50% { transform: translate(.5em, .15em); } 75% { transform: translate(0, -.2em); } 100% { transform: translate(-.5em, .15em); } }

/* 🏵️ Laurels: swings like a medal hung from a ribbon, flanked by swaying laurel branches */
.crown-art.it-cr_laurel { animation: cwnMedal 2.4s ease-in-out infinite; transform-origin: center top; filter: drop-shadow(0 0 .08em rgba(120, 220, 120, .6)); }
@keyframes cwnMedal { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
.crown-art.it-cr_laurel::before, .crown-art.it-cr_laurel::after { content: "🌿"; z-index: -1; top: .3em; font-size: .5em; line-height: 1; animation: cwnBranch 1.2s ease-in-out infinite alternate; }
.crown-art.it-cr_laurel::before { left: -1.1em; transform-origin: right bottom; }
.crown-art.it-cr_laurel::after { right: -1.1em; transform-origin: left bottom; animation-name: cwnBranchR; }
@keyframes cwnBranch { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes cwnBranchR { from { transform: scaleX(-1) rotate(-10deg); } to { transform: scaleX(-1) rotate(14deg); } }

/* 😈 Devil Horns: an evil head-tilt lean-in over flickering hellfire, dark smoke curling up */
.crown-art.it-cr_horns { animation: cwnLurk 2s ease-in-out infinite, cwnHellGlow 1s ease-in-out infinite; transform-origin: center; }
@keyframes cwnLurk { 0%, 100% { transform: scale(1) rotate(0); } 40%, 62% { transform: scale(1.12) rotate(-10deg) translateY(.04em); } 80% { transform: scale(1) rotate(3deg); } }
@keyframes cwnHellGlow { 0%, 100% { filter: drop-shadow(0 0 .1em #ff2d2d); } 50% { filter: drop-shadow(0 0 .3em #ff0000); } }
.crown-art.it-cr_horns::before { content: ""; z-index: -1; left: 50%; bottom: -.15em; width: 1.5em; height: .75em; margin-left: -.75em; transform-origin: center bottom;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 60, 30, .9), rgba(140, 0, 0, .45) 45%, transparent 70%); animation: cwnHellfire .22s steps(2) infinite alternate; }
@keyframes cwnHellfire { from { transform: scale(1, .85); } to { transform: scale(1.1, 1.15); } }
.crown-art.it-cr_horns::after { content: ""; z-index: -1; left: 30%; top: -.1em; width: .5em; height: .5em; border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 0, 10, .7), transparent 70%); animation: cwnSmoke 2s ease-out infinite; }
@keyframes cwnSmoke { 0% { opacity: 0; transform: translate(0, .3em) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(.3em, -.7em) scale(1.6); } }

/* 🧙 Wizard: sways spell-casting inside a turning purple magic sigil, a sparkle spiralling off */
.crown-art.it-cr_wizard { animation: crMagic 2.4s ease-in-out infinite, glowPurple 1.8s ease-in-out infinite; }
.crown-art.it-cr_wizard::before { content: ""; z-index: -1; left: 50%; top: 50%; width: 1.8em; height: 1.8em; margin: -.9em; border-radius: 50%;
  border: .04em solid rgba(177, 107, 255, .75); background: repeating-conic-gradient(rgba(210, 170, 255, .9) 0 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54% 66%, transparent 68%); mask: radial-gradient(circle, transparent 52%, #000 54% 66%, transparent 68%);
  animation: spin360 6s linear infinite reverse; }
.crown-art.it-cr_wizard::after { content: "✨"; left: 50%; top: 40%; font-size: .38em; line-height: 1; animation: cwnSpell 2.4s ease-in-out infinite; }
@keyframes cwnSpell { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; transform: translate(1.3em, -.5em) scale(1); } 45% { transform: translate(-.2em, -1.6em) scale(.9); }
  70% { opacity: 1; transform: translate(-1.5em, -.8em) scale(.7); } 100% { opacity: 0; transform: translate(-.4em, -2.4em) scale(.3); } }

/* 🦄 Unicorn: leaps forward in a gallop as a rainbow arc draws itself behind, glimmers trailing */
.crown-art.it-cr_unicorn { animation: cwnLeap 1.6s ease-in-out infinite, crRainbow 2.4s linear infinite; }
@keyframes cwnLeap { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(.1em, -.35em) rotate(-12deg); } 55% { transform: translate(.15em, 0) rotate(4deg); }
  62% { transform: translate(.12em, 0) scale(1.08, .92); } 72% { transform: translate(.08em, 0) scale(1); } }
.crown-art.it-cr_unicorn::before { content: ""; z-index: -1; left: 50%; top: -.25em; width: 1.8em; height: .9em; margin-left: -.9em;
  background: radial-gradient(circle .9em at 50% 100%, transparent 55%, #b16bff 55% 62%, #4da3ff 62% 70%, #3dff9a 70% 78%, #ffd34d 78% 86%, #ff6bd6 86% 94%, transparent 94%);
  opacity: .8; animation: cwnArc 3.2s ease-in-out infinite; }
@keyframes cwnArc { 0% { clip-path: inset(0 100% 0 0); } 40%, 60% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
.crown-art.it-cr_unicorn::after { content: "✧"; left: -.2em; top: .5em; font-size: .35em; line-height: 1; color: #ffe0fa; text-shadow: 1.2em -1.6em 0 #c9f0ff, 0 0 .3em #ff6bd6;
  animation: cwnSparkle 1s ease-in-out infinite; }

/* 🛡️ Staff Shield: a shield bash that pulses a red hexagon force field, a scanner line sweeping it */
.crown-art.it-cr_staff { animation: cwnGuard 2.2s ease-out infinite, cwnStaffGlow 2.2s ease-out infinite; transform-origin: center; }
@keyframes cwnGuard { 0%, 50%, 100% { transform: scale(1) translateY(0); } 12% { transform: scale(1.15) translateY(-.08em); } 22% { transform: scale(.96); } 32% { transform: scale(1.04); } 42% { transform: scale(1); } }
@keyframes cwnStaffGlow { 0%, 50%, 100% { filter: drop-shadow(0 0 .08em #ff3d3d); } 12% { filter: drop-shadow(0 0 .3em #ff3d3d); } }
.crown-art.it-cr_staff::before { content: ""; z-index: -1; left: 50%; top: 50%; width: 1.55em; height: 1.75em; margin: -.875em 0 0 -.775em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle, rgba(255, 61, 61, .05) 40%, rgba(255, 61, 61, .5) 75%, rgba(255, 200, 200, .8) 100%); animation: cwnField 2.2s ease-out infinite; }
@keyframes cwnField { 0%, 50%, 100% { transform: scale(.9); opacity: .45; } 12% { transform: scale(1.12); opacity: 1; } 30% { transform: scale(1); opacity: .7; } }
.crown-art.it-cr_staff::after { content: ""; left: 50%; top: 0; width: 1.2em; height: .05em; margin-left: -.6em; border-radius: .05em;
  background: linear-gradient(90deg, transparent, #fff, #ff3d3d, #fff, transparent); box-shadow: 0 0 .15em #ff3d3d; animation: cwnScan 2.2s linear infinite; }
@keyframes cwnScan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(1em); opacity: 0; } }

/* Less motion asked for: everything holds still (the decorations stay as a static picture). */
@media (prefers-reduced-motion: reduce) {
  .crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart), .crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart)::before, .crown-art[class*="it-cr_"]:not(.it-cr_god):not(.it-cr_rock):not(.it-cr_spooky):not(.it-cr_heart)::after { animation: none !important; }
}
