/* ===== Player Market + Mythos Coin (js/market-ui.js) ===== */
/* Baut auf den Clan-Flaechen auf (.clan, .clan-card, .clan-tabs, .clan-intro) - hier nur Gold statt Blau. */
.market-side-btn { position: relative; border-color: rgba(246,196,83,.9); background: linear-gradient(155deg, #b7791f, #5a3a0c 62%, #231a0d); }
.market-side-btn .side-ico3d { filter: drop-shadow(0 2px 4px rgba(246,196,83,.55)); }
.market-side-btn.is-locked .side-ico3d { filter: saturate(.45) brightness(.85); }
.market-side-btn .badge.is-new { min-width: 28px; padding: 0 4px; font-size: 7px; background: #ffd447; color: #3a2a00; }
.market-side-btn .badge.is-lock { min-width: 18px; padding: 0 2px; font-size: 9px; background: #0d1522; border: 1px solid rgba(255,255,255,.35); }
/* Minen laeuft: goldener Fortschrittsring um den Knopf */
.market-side-btn.is-mining::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(#ffd66b var(--mine, 0deg), rgba(255,214,107,.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }

.mkt { --c-gold: #f6c453; --c-coin: #ffd66b; background: radial-gradient(120% 60% at 50% 0%, #3a2a0e 0%, var(--c-bg) 62%); }
.mkt .lb-btn.primary { color: #2b1d00; background: linear-gradient(180deg, #ffe08a, #f2b536); box-shadow: 0 4px 12px rgba(242,181,54,.3); }
.mkt .clan-tabs button.is-active { background: linear-gradient(180deg, #6b4a12, #4a320b); }
.mkt .clan-progress i { background: linear-gradient(90deg, #f6c453, #ffe39a); }
.mkt-coins { display: inline-flex; align-items: center; gap: 4px; color: var(--c-coin); font-size: 13px; font-weight: 900; white-space: nowrap; }
.mkt-coins img { width: 18px; height: 18px; object-fit: contain; }
.mkt-coins.is-big { font-size: 18px; }
.mkt-coins.is-big img { width: 26px; height: 26px; }
.mkt-coins.is-price { font-size: 16px; }
.mkt-coins.is-price img { width: 22px; height: 22px; }
.mkt-note { margin: 8px 0 0; color: var(--c-dim); font-size: 11.5px; line-height: 1.45; }

/* Kopf: Wallet */
.mkt-wallet { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 44px 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(246,196,83,.18), rgba(17,25,37,.9) 60%); border: 1px solid rgba(246,196,83,.35); }
.mkt-wallet-coin { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(246,196,83,.45)); animation: mkt-spin 6s ease-in-out infinite; }
@keyframes mkt-spin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(360deg); } }
.mkt-balance { display: block; color: #fff; font-size: 26px; font-weight: 900; line-height: 1.05; }
.mkt-balance small { color: var(--c-coin); font-size: 13px; letter-spacing: 1px; }
.mkt-ring { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(closest-side, #111925 78%, transparent 80% 100%), conic-gradient(#ffd66b var(--deg), #2a3446 0); }
.mkt-ring span { color: #fff; font-size: 15px; font-weight: 900; }
.mkt-ring small { color: var(--c-dim); font-size: 9px; }
.mkt-ring.is-done { background: radial-gradient(closest-side, #0f2a1a 78%, transparent 80% 100%), conic-gradient(#22c55e 360deg, #22c55e 0); }
.mkt-ring.is-done span { color: #6ee7a0; }
.mkt-wallet .clan-help { position: absolute; top: 8px; right: 8px; }

/* Minen heute */
.mkt-mine-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.mkt-mine-head h3 { margin: 1px 0 0; font-size: 16px; }
.mkt-rig { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 42px; height: 42px; padding: 5px 7px; border-radius: 9px; background: #0b121c; border: 1px solid rgba(255,255,255,.12); }
.mkt-rig i { height: 5px; border-radius: 2px; background: #2a3446; }
.mkt-mine.is-running .mkt-rig i { animation: mkt-led 1.1s ease-in-out infinite; }
.mkt-mine.is-running .mkt-rig i:nth-child(2) { animation-delay: .25s; }
.mkt-mine.is-running .mkt-rig i:nth-child(3) { animation-delay: .5s; }
.mkt-mine.is-done .mkt-rig i { background: #22c55e; }
@keyframes mkt-led { 50% { background: #ffd66b; box-shadow: 0 0 6px #ffd66b; } }
.mkt-bar { height: 12px; margin: 10px 0 8px; border-radius: 99px; overflow: hidden; background: #1c2838; }
.mkt-bar i { display: block; height: 100%; border-radius: inherit; transition: width .9s linear;
  background: repeating-linear-gradient(-45deg, #f6c453 0 10px, #ffd97a 10px 20px); background-size: 28px 28px; animation: mkt-stripes 1s linear infinite; }
.mkt-mine.is-done .mkt-bar i { background: linear-gradient(90deg, #22c55e, #6ee7a0); animation: none; }
@keyframes mkt-stripes { to { background-position: 28px 0; } }
.mkt-mine p { margin: 0; color: #c7d2e0; font-size: 12.5px; line-height: 1.45; }
.mkt-mine p b { color: #fff; }

/* Vorrat */
.mkt-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mkt-sec-head b { color: #fff; font-size: 13px; }
.mkt-supply-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0; }
.mkt-supply-row div { padding: 7px 6px; border-radius: 10px; background: var(--c-card2); text-align: center; }
.mkt-supply-row small { display: block; color: var(--c-dim); font-size: 8.5px; font-weight: 900; letter-spacing: 1px; }
.mkt-supply-row b { color: #fff; font-size: 15px; font-weight: 900; }
.mkt-supply-row b.gold { color: var(--c-coin); }
.mkt-supply-bar { position: relative; height: 16px; border-radius: 99px; overflow: hidden; background: #1c2838; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.mkt-supply-bar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, #b7791f, #f6c453 70%, #fff3c4); box-shadow: 0 0 12px rgba(246,196,83,.6); }

/* Halving-Zeitleiste: Breite je Phase = ihr Anteil am Gesamtvorrat */
.mkt-timeline { position: relative; display: flex; gap: 3px; height: 34px; margin: 12px 0 6px; }
.mkt-seg { position: relative; flex: 0 0 calc(var(--w) - 3px); border-radius: 7px; overflow: hidden; background: #1c2838; }
.mkt-seg i { position: absolute; inset: 0 auto 0 0; width: var(--f); background: linear-gradient(180deg, #ffe08a, #d99a26); }
.mkt-seg span { position: relative; display: grid; place-items: center; height: 100%; color: #fff; font-size: 13px; font-weight: 900; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.mkt-seg.is-now { box-shadow: 0 0 0 2px #ffd66b; }
.mkt-seg.is-done i { background: linear-gradient(180deg, #8a6a2a, #5b4318); }
.mkt-marker { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.mkt-marker::before { content: ''; position: absolute; top: -5px; left: 50%; border: 5px solid transparent; border-top-color: #fff; transform: translateX(-50%); }
.mkt-timeline-legend { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; color: var(--c-dim); font-size: 10px; font-weight: 800; }
.mkt-timeline-legend small { font-size: 9.5px; font-weight: 700; text-align: center; }
.mkt-halving-next { margin: 8px 0; color: #c7d2e0; font-size: 12.5px; line-height: 1.45; }
.mkt-halving-next b { color: #fff; }
.mkt-phases { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.mkt-phases li { display: grid; grid-template-columns: 26px 1fr auto auto 72px; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; background: var(--c-card2); border: 1px solid transparent; }
.mkt-phases li.is-now { border-color: rgba(255,214,107,.6); background: linear-gradient(90deg, rgba(246,196,83,.16), var(--c-card2)); }
.mkt-phases li.is-done { opacity: .55; }
.mkt-ph { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2a3446; color: #fff; font-size: 12px; font-weight: 900; }
.is-now .mkt-ph { background: #f6c453; color: #2b1d00; }
.mkt-ph-range { color: #fff; font-size: 12px; font-weight: 800; }
.mkt-ph-range small { display: block; color: var(--c-dim); font-size: 10px; font-weight: 700; }
.mkt-ph-day { color: var(--c-dim); font-size: 10px; font-weight: 800; margin-left: -4px; }
.mkt-phases em { justify-self: end; padding: 2px 7px; border-radius: 99px; background: #2a3446; color: #cbd5e1; font-size: 8.5px; font-style: normal; font-weight: 900; letter-spacing: 1px; }
.is-now em { background: #f6c453; color: #2b1d00; }
.is-done em { background: #1f3b2a; color: #6ee7a0; }
.mkt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mkt-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--c-card); border: 1px solid var(--c-line); }
.mkt-stats small { color: var(--c-dim); font-size: 8.5px; font-weight: 900; letter-spacing: .8px; text-align: center; }

/* Kaufen / Verkaufen */
.mkt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mkt-filters span { flex: 1; }
.mkt-filters button { padding: 6px 9px; border: 1px solid var(--c-line); border-radius: 99px; background: var(--c-card); color: var(--c-dim); font: inherit; font-size: 10.5px; font-weight: 900; letter-spacing: .6px; cursor: pointer; }
.mkt-filters button.on { color: #2b1d00; background: #f6c453; border-color: #f6c453; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mkt-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--c-card); border: 1px solid var(--c-line); }
.mkt-card.is-mine, .mkt-card.is-listed { border-color: rgba(246,196,83,.45); }
.mkt-card.is-locked { opacity: .7; }
.mkt-art { position: relative; height: 150px; overflow: hidden; background: radial-gradient(circle at 50% 76%, rgba(255,214,107,.28), transparent 40%), linear-gradient(145deg, #101b2d, #263b57); }
.mkt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Typ-Label (.shop-kind) wie auf den Shop-Karten: unten links */
.mkt-card-copy { padding: 8px 9px 4px; }
.mkt-card-copy h3 { margin: 0; font-size: 13.5px; line-height: 1.2; }
.mkt-card-copy small { display: block; margin-top: 2px; color: var(--c-dim); font-size: 10.5px; }
.mkt-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding: 6px 9px 9px; }
.mkt-card-foot .lb-btn { padding: 7px 10px; font-size: 11px; }
.mkt-card-foot .lb-btn:only-child { flex: 1; }
.mkt-tag { flex: 1; padding: 6px 8px; border-radius: 9px; background: #1c2838; color: var(--c-dim); font-size: 9.5px; font-weight: 900; letter-spacing: .5px; text-align: center; }
.mkt-tag.is-listed { background: rgba(246,196,83,.15); color: var(--c-coin); }
.mkt-price { display: flex; gap: 4px; width: 100%; }
.mkt-price label { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0 6px; border-radius: 9px; background: #0b121c; border: 1px solid rgba(246,196,83,.45); }
.mkt-price label img { width: 16px; height: 16px; }
.mkt-price input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 900; }
.mkt-price .lb-btn { padding: 7px 8px; }
.mkt-warn { padding: 9px 12px; border-radius: 11px; background: rgba(246,196,83,.1); border: 1px solid rgba(246,196,83,.35); color: #f3e2b8; font-size: 12px; line-height: 1.45; }
.mkt-warn b { color: #ffd66b; }
.mkt-rows { display: flex; flex-direction: column; gap: 6px; }
.mkt-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--c-card); border: 1px solid var(--c-line); }
.mkt-row img { width: 34px; height: 34px; object-fit: contain; }
.mkt-row b { display: block; color: #fff; font-size: 13px; }
.mkt-row small { color: var(--c-dim); font-size: 11px; }
.mkt-row .lb-btn { padding: 7px 10px; font-size: 11px; }
.mkt-row.is-sold .mkt-coins { color: #6ee7a0; }
.mkt-hero .clan-hero-img { object-position: 50% 40%; }

/* ----- Erklaerbilder ----- */
.market-intro .ci-card { border-color: rgba(246,196,83,.35); background: linear-gradient(180deg, #1d1609, #0a0f17); }
.market-intro .ci-stage::after { background: linear-gradient(180deg, transparent 72%, #1d1609); }
.market-intro .ci-kicker { background: #d99a26; color: #2b1d00; }
.market-intro .ci-copy p b { color: #ffd66b; }
.market-intro .ci-dots i.on { background: #ffd66b; }
.market-intro .ci-next { background: linear-gradient(180deg, #ffe08a, #f2b536); color: #2b1d00; box-shadow: 0 4px 14px rgba(242,181,54,.35); }
.mi-cap-n.bump, .mi-reward-n.bump { animation: ci-bump .25s ease-out; }

/* Bild 1: begrenzter Vorrat */
.mi-rays { position: absolute; left: 50%; top: 45%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,107,.16) 0 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); }
.mi-vault { position: absolute; left: 50%; bottom: 8%; height: 80%; transform: translate(-50%, 12%); opacity: 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.55)); }
.mi-rain { position: absolute; left: calc(14% + var(--i) * 14.5%); top: -12%; width: 9%; opacity: 0; filter: drop-shadow(0 0 8px rgba(255,214,107,.7)); }
.mi-cap { position: absolute; left: 4%; top: 5%; display: flex; flex-direction: column; padding: 6px 10px 7px; border-radius: 12px; background: rgba(8,14,26,.8); border: 1px solid rgba(246,196,83,.45); opacity: 0; }
.mi-cap small, .mi-cap em { color: #cdb57e; font-size: 8.5px; font-style: normal; font-weight: 900; letter-spacing: 1px; }
.mi-cap b { color: #ffd66b; font-size: 21px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.is-playing .mi-rays { animation: ci-in .6s .1s ease-out forwards, ci-rays 16s linear infinite; }
.is-playing .mi-vault { animation: mi-rise .8s .15s cubic-bezier(.22,1.2,.36,1) forwards; }
.is-playing .mi-cap { animation: ci-in .4s .4s ease-out forwards; }
.is-playing .mi-rain { animation: mi-rain 2.2s calc(.8s + var(--i) * .33s) cubic-bezier(.45,0,.8,.6) infinite; }
@keyframes mi-rise { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes mi-rain { 0% { opacity: 0; transform: translateY(0) rotate(0); } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(560%) rotate(260deg); } }

/* Bild 2: Minen mit 10-Minuten-Uhr */
.mi-miner { position: absolute; left: 50%; bottom: -2%; height: 100%; transform: translate(-50%, 10%); opacity: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.mi-timer { position: absolute; right: 3%; top: 4%; width: 22%; aspect-ratio: 1; display: grid; place-items: center; align-content: center; opacity: 0;
  border-radius: 50%; background: rgba(8,14,26,.82); }
.mi-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mi-timer circle { fill: none; stroke: #2a3446; stroke-width: 7; }
.mi-timer .mi-timer-fill { stroke: #ffd66b; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; }
.mi-timer b { position: relative; color: #fff; font-size: 5.2cqw; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mi-timer small { position: relative; color: var(--c-dim, #8594a8); font-size: 2.6cqw; font-weight: 800; }
.mi-pop { position: absolute; right: 3%; top: 38%; display: flex; align-items: center; gap: 4px; opacity: 0; transform: scale(.4); }
.mi-pop img { width: 9cqw; filter: drop-shadow(0 0 10px rgba(255,214,107,.9)); }
.mi-pop b { color: #ffd66b; font-size: 7cqw; font-weight: 900; text-shadow: 0 2px 6px #000; }
.is-playing .mi-miner { animation: mi-rise .75s .1s cubic-bezier(.22,1.2,.36,1) forwards; }
.is-playing .mi-timer { animation: ci-in .4s .3s ease-out forwards; }
.is-playing .mi-timer-fill { animation: mi-dash 1.8s .4s linear forwards; }
.is-playing .mi-pop { animation: mi-pop .6s 2.3s cubic-bezier(.34,1.56,.64,1) forwards, ci-float 2.4s 3s ease-in-out infinite; }
@keyframes mi-dash { to { stroke-dashoffset: 0; } }
@keyframes mi-pop { to { opacity: 1; transform: scale(1); } }

/* Bild 3: Halving */
.mi-split { position: absolute; left: 50%; top: 2%; height: 56%; transform: translateX(-50%); opacity: 0; filter: drop-shadow(0 0 22px rgba(255,214,107,.45)); }
.mi-phases { position: absolute; left: 5%; right: 5%; bottom: 9%; display: flex; gap: 3px; height: 17%; }
.mi-phase { position: relative; flex: 0 0 calc(var(--w) - 3px); display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: rgba(28,40,56,.9); opacity: 0; }
.mi-phase i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(180deg, #ffe08a, #d99a26); }
.mi-phase b { position: relative; color: #fff; font-size: 5cqw; font-weight: 900; text-shadow: 0 1px 3px #000; line-height: 1; }
.mi-phase small { position: absolute; right: 4px; bottom: 2px; color: #fff; font-size: 2.2cqw; font-weight: 900; opacity: .75; }
.mi-reward { position: absolute; right: 5%; top: 6%; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 5px; padding: 5px 10px 6px 6px; border-radius: 12px;
  background: rgba(8,14,26,.8); border: 1px solid rgba(246,196,83,.45); opacity: 0; }
.mi-reward img { width: 30px; height: 30px; grid-row: span 2; }
.mi-reward b { color: #ffd66b; font-size: 21px; font-weight: 900; line-height: 1; }
.mi-reward small { color: #cdb57e; font-size: 8.5px; font-weight: 900; letter-spacing: 1px; }
.is-playing .mi-split { animation: ci-in .5s .1s ease-out forwards, mi-wobble 3s 1s ease-in-out infinite; }
.is-playing .mi-phase { animation: ci-in .3s calc(.3s + var(--i) * .12s) ease-out forwards; }
.is-playing .mi-phase i { animation: mi-fill .9s calc(.7s + var(--i) * .9s) linear forwards; }
.is-playing .mi-reward { animation: ci-in .4s .4s ease-out forwards; }
@keyframes mi-fill { to { inset: 0 0 0 0; } }
@keyframes mi-wobble { 0%,100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(-3deg) translateY(-3px); } }

/* Bild 4: Handel */
.mi-trade { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translate(-50%, 25%); opacity: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.mi-tag { position: absolute; left: 3%; top: 4%; display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; padding: 5px 11px 6px 6px; border-radius: 12px;
  background: rgba(8,14,26,.85); border: 1px solid rgba(246,196,83,.5); transform: translateY(-10px); opacity: 0; }
.mi-tag > img { width: 30px; height: 30px; grid-row: span 2; }
.mi-tag b { color: #fff; font-size: 12px; font-weight: 900; }
.mi-tag span { display: flex; align-items: center; gap: 3px; color: #ffd66b; font-size: 13px; font-weight: 900; }
.mi-tag span img { width: 15px; height: 15px; }
.mi-swap { position: absolute; top: 34%; color: #ffd66b; font-size: 8cqw; font-weight: 900; text-shadow: 0 0 10px rgba(255,214,107,.7); opacity: 0; }
.mi-swap-a { left: 40%; }
.mi-swap-b { left: 52%; transform: scaleX(-1); top: 44%; color: #7fd7ff; text-shadow: 0 0 10px rgba(127,215,255,.7); }
.is-playing .mi-trade { animation: mi-trade .75s .1s cubic-bezier(.22,1.2,.36,1) forwards, ci-bob 2.4s 1.1s ease-in-out infinite; }
.is-playing .mi-tag { animation: mi-tag .45s .7s cubic-bezier(.34,1.56,.64,1) forwards; }
.is-playing .mi-swap-a { animation: mi-swap-a 1.6s 1.2s ease-in-out infinite; }
.is-playing .mi-swap-b { animation: mi-swap-b 1.6s 1.2s ease-in-out infinite; }
@keyframes mi-trade { to { opacity: 1; transform: translate(-50%, 4%); } }
@keyframes mi-tag { to { opacity: 1; transform: none; } }
@keyframes mi-swap-a { 0% { opacity: 0; translate: -10px 0; } 30%,70% { opacity: 1; } 100% { opacity: 0; translate: 16px 0; } }
@keyframes mi-swap-b { 0% { opacity: 0; translate: 10px 0; } 30%,70% { opacity: 1; } 100% { opacity: 0; translate: -16px 0; } }

/* Bild 5: Besitz wandert - beim Verkaeufer weg */
.mi-owner { position: absolute; bottom: 4%; width: 42%; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.mi-owner > img { width: 86%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.mi-owner small { margin-top: 2px; padding: 2px 8px; border-radius: 99px; background: rgba(8,14,26,.85); color: #fff; font-size: 2.6cqw; font-weight: 900; letter-spacing: 1px; }
.mi-owner-a { left: 2%; }
.mi-owner-b { right: 2%; }
.mi-card { position: absolute; top: -4%; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 12px; background: rgba(8,14,26,.85); border: 2px solid #ffd66b; }
.mi-card img { width: 78%; }
.mi-owner-a .mi-card { right: -6%; }
.mi-owner-b .mi-card { left: -6%; opacity: 0; transform: scale(.3); border-color: #6ee7a0; }
.mi-flycard { position: absolute; left: 30%; top: 22%; width: 10%; opacity: 0; filter: drop-shadow(0 0 10px rgba(255,214,107,.8)); }
.mi-flycoin { position: absolute; left: 64%; top: 30%; width: 7%; opacity: 0; filter: drop-shadow(0 0 8px rgba(255,214,107,.8)); }
.mi-stamp { position: absolute; left: 8%; top: 8%; padding: 2px 10px; border: 3px solid #ef4444; border-radius: 8px; color: #ef4444; font-size: 6cqw; font-weight: 900; letter-spacing: 2px; transform: rotate(-14deg) scale(2); opacity: 0; }
.is-playing .mi-owner { animation: ci-in .4s .15s ease-out forwards; }
.is-playing .mi-owner-a .mi-card { animation: mi-lose 3.4s 1s ease-in-out infinite; }
.is-playing .mi-owner-b .mi-card { animation: mi-gain 3.4s 1s ease-in-out infinite; }
.is-playing .mi-flycard { animation: mi-flycard 3.4s 1s ease-in-out infinite; }
.is-playing .mi-flycoin { animation: mi-flycoin 3.4s calc(1s + var(--i) * .12s) ease-in-out infinite; }
.is-playing .mi-stamp { animation: mi-stamp 3.4s 1s ease-out infinite; }
@keyframes mi-lose { 0%, 12% { opacity: 1; transform: none; } 30%, 88% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
@keyframes mi-gain { 0%, 42% { opacity: 0; transform: scale(.3); } 55%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.3); } }
@keyframes mi-flycard { 0%, 12% { opacity: 0; left: 30%; top: 22%; } 18% { opacity: 1; } 45% { opacity: 1; left: 60%; top: 14%; } 52%, 100% { opacity: 0; left: 64%; top: 22%; } }
@keyframes mi-flycoin { 0%, 14% { opacity: 0; left: 64%; top: 30%; } 20% { opacity: 1; } 46% { opacity: 1; left: 30%; top: 40%; } 52%, 100% { opacity: 0; left: 28%; top: 44%; } }
@keyframes mi-stamp { 0%, 26% { opacity: 0; transform: rotate(-14deg) scale(2); } 32% { opacity: 1; transform: rotate(-14deg) scale(1); } 86% { opacity: 1; transform: rotate(-14deg) scale(1); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mi-rays, .mi-vault, .mi-cap, .mi-miner, .mi-timer, .mi-pop, .mi-split, .mi-phase, .mi-reward, .mi-trade, .mi-tag, .mi-owner, .mi-owner-b .mi-card { opacity: 1 !important; transform: none !important; }
  .mi-vault, .mi-miner, .mi-split { transform: translateX(-50%) !important; }
  .mi-trade { transform: translate(-50%, 4%) !important; }
  .mi-phase i { inset: 0 !important; }
  .mi-owner-a .mi-card, .mi-rain, .mi-flycard, .mi-flycoin, .mi-swap { opacity: 0 !important; }
  .mkt-wallet-coin, .mkt-bar i { animation: none !important; }
}

