.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
.fx-burst > * { position: absolute; pointer-events: none; }
.fx-ring {
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--fx);
  box-shadow: 0 0 12px var(--fx), inset 0 0 8px var(--fx); opacity: 0; animation: fx-ring .65s cubic-bezier(.2, .7, .3, 1) forwards;
}
.fx-ring.late { border-width: 1px; animation-delay: .12s; animation-duration: .8s; }
.fx-spark {
  width: 2px; height: 9px; margin: -4.5px 0 0 -1px; border-radius: 2px; background: var(--fx); box-shadow: 0 0 6px var(--fx);
  opacity: 0; transform: rotate(var(--a)) translateY(0); animation: fx-spark .6s cubic-bezier(.15, .8, .3, 1) forwards;
}
.fx-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .8rem .32rem .55rem; white-space: nowrap;
  font-family: "Orbitron", sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--fx);
  background: linear-gradient(180deg, rgba(8, 16, 30, .96), rgba(4, 9, 18, .96)); border: 1px solid var(--fx); border-radius: 3px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--fx) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--fx) 18%, transparent);
  opacity: 0; transform: translate(-50%, -50%) scale(1.7) rotate(-4deg); animation: fx-chip 1.35s cubic-bezier(.2, .9, .3, 1) forwards;
}
.fx-chip b {
  display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .7rem; letter-spacing: 0;
  color: #04101c; background: var(--fx); box-shadow: 0 0 8px var(--fx);
}
@keyframes fx-ring { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(7); } }
@keyframes fx-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-6px) scaleY(1.4); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scaleY(.4); }
}
@keyframes fx-chip {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7) rotate(-4deg); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(.94) rotate(-1deg); }
  22% { transform: translate(-50%, -50%) scale(1.03) rotate(-1deg); }
  30%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 26px)) scale(.98) rotate(-1deg); }
}
.fx-burst.calm .fx-ring, .fx-burst.calm .fx-spark { display: none; }
.fx-burst.calm .fx-chip { animation-name: fx-fade; }
@keyframes fx-fade { 0% { opacity: 0; transform: translate(-50%, -50%); } 15%, 75% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }

.mk-front { position: relative; display: grid; gap: .45rem; }
.mk-front.sold-out > .mk-line { filter: grayscale(1) brightness(.55); transition: filter .6s ease .35s; }
.mk-front.sold-out.mine .mk-buttons { position: relative; z-index: 3; filter: none; }
.mk-front.sold-out.mine > .mk-meta { filter: none; }
.mk-front.sold-out.mine > .mk-meta > .mk-chips { filter: grayscale(1) brightness(.55); }
.mk-listing { overflow: hidden; }
.mk-shutter {
  --t: 0ms; position: absolute; inset: -.45rem -.55rem; z-index: 2; pointer-events: none; display: grid; place-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 8%, transparent 92%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(180deg, rgba(64, 73, 88, .86) 0 6px, rgba(40, 46, 57, .88) 6px 8px, rgba(22, 26, 33, .9) 8px 9px, rgba(92, 104, 122, .8) 9px 10px);
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, .35);
}
.mk-shutter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(180deg, #8c97a8, #4a5262 45%, transparent 45%), repeating-linear-gradient(135deg, #ffd166 0 6px, #1b1e24 6px 12px);
  background-size: 100% 100%, 100% 100%; box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.mk-shutter-sign {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: .28rem .9rem .3rem;
  transform: rotate(-2.5deg); border: 1px solid rgba(255, 93, 93, .75); border-radius: 2px; background: rgba(10, 6, 10, .88);
  box-shadow: 0 0 14px rgba(255, 70, 70, .3), inset 0 0 10px rgba(255, 70, 70, .18);
}
.mk-shutter-sign::before, .mk-shutter-sign::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 5px; background: #8c97a8;
}
.mk-shutter-sign::before { left: 18%; }
.mk-shutter-sign::after { right: 18%; }
.mk-shutter-sign strong {
  font-family: "Orbitron", sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255, 80, 80, .9), 0 0 16px rgba(255, 60, 60, .5);
}
.mk-shutter-sign small { font-size: .62rem; letter-spacing: .08em; color: #c3a9a9; }
.mk-shutter.closing { animation: mk-drop .9s cubic-bezier(.5, 0, .75, 0) both; animation-delay: var(--t); }
.mk-shutter.closing .mk-shutter-sign { animation: mk-sign-on .7s steps(1, end) both; animation-delay: calc(var(--t) + .6s); }
.mk-shutter.closing .mk-shutter-dust { animation: mk-dust .55s ease-out both; animation-delay: calc(var(--t) + .52s); }
.mk-shutter-dust {
  position: absolute; left: 10%; right: 10%; bottom: -4px; height: 10px; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(190, 200, 215, .55), transparent 70%);
}
.mk-shutter.opening { animation: mk-rise 1s ease-in-out both; animation-delay: var(--t); }
.mk-shutter.opening .mk-shutter-sign { border-color: rgba(91, 228, 155, .8); box-shadow: 0 0 14px rgba(91, 228, 155, .35); animation: mk-sign-off .5s ease both; animation-delay: var(--t); }
.mk-shutter.opening .mk-shutter-sign strong { color: #5be49b; text-shadow: 0 0 6px rgba(91, 228, 155, .9), 0 0 16px rgba(91, 228, 155, .5); }
@keyframes mk-drop {
  0% { transform: translateY(-104%); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  58% { transform: translateY(0); animation-timing-function: ease-out; }
  68% { transform: translateY(-7%); animation-timing-function: ease-in; }
  78% { transform: translateY(0); animation-timing-function: ease-out; }
  86% { transform: translateY(-2%); animation-timing-function: ease-in; }
  94%, 100% { transform: translateY(0); }
}
@keyframes mk-rise {
  0% { transform: translateY(0); }
  8% { transform: translateY(-3%); }
  14% { transform: translateY(0); }
  20% { transform: translateY(-2%); }
  26% { transform: translateY(0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { transform: translateY(-104%); }
}
@keyframes mk-sign-on { 0% { opacity: 0; } 12% { opacity: .9; } 18% { opacity: .1; } 30% { opacity: 1; } 40% { opacity: .25; } 52%, 100% { opacity: 1; } }
@keyframes mk-sign-off { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mk-dust { 0% { opacity: 0; transform: scaleX(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.25) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .mk-shutter.closing, .mk-shutter.closing .mk-shutter-sign, .mk-shutter.closing .mk-shutter-dust { animation: none; }
  .mk-shutter.opening { animation: mk-sign-off .3s ease both; }
}
