/* Animated card zoom (market, shop). */
[data-cz] { cursor: zoom-in; }
[data-cz]:focus-visible { outline: 3px solid #e0a21b; outline-offset: 2px; }
body.cz-open { overflow: hidden; }
.cz-backdrop { --glow: #c9b78d; position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 40%, #0b1a2fcc, #050b16f2); backdrop-filter: blur(6px); }
.cz-backdrop[popover] { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; overflow: hidden; color: inherit; }
.cz-backdrop[popover]:not(:popover-open) { display: none; }
.cz-r-uncommon { --glow: #4f9a4f; } .cz-r-rare { --glow: #3a86d6; } .cz-r-epic { --glow: #a15be0; } .cz-r-legendary { --glow: #f0b429; }
.cz-panel { position: relative; display: grid; grid-template-columns: auto minmax(220px, 340px); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 960px; max-height: 94dvh; overflow: auto; padding: 8px; color: #f6efdc; }
.cz-close { position: absolute; top: 0; right: 0; z-index: 3; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: #f6efdc; background: #ffffff1a; border: 1px solid #ffffff33; border-radius: 50%; cursor: pointer; }
.cz-close:hover { background: #ffffff33; }
.cz-stage { position: relative; display: grid; place-items: center; padding: 20px; perspective: 1100px; }
.cz-glow { position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 72%); opacity: .55; filter: blur(26px); animation: cz-pulse 3.2s ease-in-out infinite; }
@keyframes cz-pulse { 50% { opacity: .85; scale: 1.06; } }
.cz-tilt { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%; position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .3, 1); border-radius: 14px; box-shadow: 0 30px 60px #000a, 0 0 0 2px color-mix(in srgb, var(--glow) 60%, transparent); }
.cz-tilt.is-tilting { transition: transform .08s linear; }
.cz-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--sx) var(--sy), #ffffff55, transparent 55%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .25s; }
.cz-tilt.is-tilting .cz-sheen { opacity: 1; }
.cz-info { display: grid; gap: 8px; align-content: center; }
.cz-tier { justify-self: start; padding: 3px 10px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #101c2e; background: var(--glow); border-radius: 20px; }
.cz-info h2 { margin: 4px 0 0; font: 800 clamp(26px, 4vw, 38px)/1.08 'Fraunces', Georgia, serif; letter-spacing: -.02em; }
.cz-meta { margin: 0; color: #cdbf9c; font-size: 13px; letter-spacing: .04em; }
.cz-text { margin: 8px 0 0; padding: 14px 16px; font-size: 15px; line-height: 1.65; background: #ffffff12; border-left: 4px solid var(--glow); }
.cz-hint { margin: 6px 0 0; font-size: 11px; color: #9fb0c5; }
@media (max-width: 700px) { .cz-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 34px; } .cz-info { justify-items: center; } .cz-text { text-align: left; } .cz-hint { display: none; } }
@media (hover: none) { .cz-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .cz-glow { animation: none; } .cz-tilt { transition: none; } }
