/* =========================================================================
   mining.css — მაინინგი (შახტა): ამოთხრის ბარი (H), ნაპოვნის ჩვენება, ხელში მადანი, ანაზღაურება
   ფერები: #FF4747 · #EAEAEA · მუქი შავი (როგორც interact.css-ში)
   პოზიციის შესაცვლელად: --mn-bottom (ეკრანის ქვემოდან დაშორება)
   ========================================================================= */
#mine-root {
  --mn-bottom: 170px;
  --mn-red: #ff4747; --mn-light: #eaeaea; --mn-dark: #0b0b0d;
  position: fixed; inset: 0; z-index: 24000; pointer-events: none;
  font-family: 'Noto Sans Georgian', 'Manrope', sans-serif; color: var(--mn-light);
}
body.cef-focused #mine-root { opacity: 0; }

/* ---------- ამოთხრის პანელი ---------- */
.mn-dig {
  position: absolute; left: 50%; bottom: var(--mn-bottom); width: 380px; max-width: calc(100vw - 32px);
  padding: 14px 18px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(14,14,17,.84), rgba(8,8,10,.84));
  border: 1px solid rgba(234,234,234,.10);
  box-shadow: 0 14px 38px rgba(0,0,0,.55), 0 0 28px rgba(255,71,71,.18);
  backdrop-filter: blur(8px) saturate(1.15); -webkit-backdrop-filter: blur(8px) saturate(1.15);
  opacity: 0; transform: translate(-50%, 24px) scale(.95); visibility: hidden;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.25,.4,1), visibility 0s .35s;
}
.mn-dig.show { opacity: 1; transform: translate(-50%, 0) scale(1); visibility: visible; transition-delay: 0s; }
.mn-dig.shake { animation: mnShake .12s linear; }

.mn-dig-top { display: flex; align-items: center; gap: 14px; }
.mn-dig-key {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', 'Manrope', sans-serif; font-size: 28px; font-weight: 700; line-height: 1;
  background: var(--mn-dark); border: 2px solid var(--mn-red);
  box-shadow: 0 4px 0 #b32d2d, 0 0 18px rgba(255,71,71,.45), inset 0 0 12px rgba(255,71,71,.18);
  text-shadow: 0 0 10px rgba(255,71,71,.8);
  animation: mnKey 1.1s ease-in-out infinite;
}
.mn-dig.busy .mn-dig-key, .mn-dig.done .mn-dig-key { animation: none; opacity: .45; }
.mn-dig-key.tap { animation: none; transform: translateY(4px); box-shadow: 0 0 0 #b32d2d, 0 0 26px rgba(255,71,71,.8), inset 0 0 14px rgba(255,71,71,.35); }
.mn-dig-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mn-dig-txt b { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.mn-dig-txt span { margin-top: 2px; font-size: 12px; font-weight: 600; color: rgba(234,234,234,.62); }
.mn-dig-txt span i { font-style: normal; font-weight: 800; color: var(--mn-red); }
.mn-dig-pct { font-family: 'Rajdhani', 'Manrope', sans-serif; font-size: 26px; font-weight: 700; min-width: 58px; text-align: right; }

.mn-dig-bar {
  position: relative; margin-top: 12px; height: 16px; border-radius: 10px; overflow: hidden;
  background: rgba(234,234,234,.08); border: 1px solid rgba(234,234,234,.12);
}
.mn-dig-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px;
  background: linear-gradient(90deg, #b32d2d, #ff4747 60%, #ff8a5c);
  box-shadow: 0 0 14px rgba(255,71,71,.7);
  transition: width .12s ease-out;
}
.mn-dig-bar em {
  position: absolute; top: 0; bottom: 0; width: 60px; left: -70px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: mnShine 1.6s linear infinite;
}
.mn-dig.done .mn-dig-bar i { background: linear-gradient(90deg, #2fa85a, #3ddc6c); box-shadow: 0 0 14px rgba(61,220,108,.7); }

/* ---------- ნაპოვნი ---------- */
.mn-dig-found { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 12px; align-items: center; gap: 12px;
  background: rgba(234,234,234,.06); border: 1px solid var(--rc, #c9ced4); box-shadow: 0 0 18px -4px var(--rc, #c9ced4); }
.mn-dig-found.on { display: flex; animation: mnPop .45s cubic-bezier(.2,1.4,.4,1); }
.mn-dig-found em { font-style: normal; font-size: 30px; line-height: 1; filter: drop-shadow(0 0 8px var(--rc, #c9ced4)); }
.mn-dig-found div { display: flex; flex-direction: column; }
.mn-dig-found small { font-size: 11px; font-weight: 700; color: rgba(234,234,234,.6); letter-spacing: .04em; }
.mn-dig-found b { font-size: 17px; font-weight: 800; color: var(--rc, #fff); }

/* ---------- ხელში მადანი ---------- */
.mn-carry {
  position: absolute; left: 50%; bottom: 96px; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,14,17,.84), rgba(8,8,10,.84));
  border: 1px solid var(--rc, rgba(234,234,234,.14)); box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 22px -6px var(--rc, #ff4747);
  opacity: 0; transform: translate(-50%, 16px); visibility: hidden; transition: opacity .25s, transform .35s cubic-bezier(.2,1.25,.4,1), visibility 0s .35s;
}
.mn-carry.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.mn-carry-ic { font-size: 28px; line-height: 1; filter: drop-shadow(0 0 8px var(--rc, #ff4747)); }
.mn-carry b { display: block; font-size: 14px; font-weight: 800; color: var(--rc, #fff); }
.mn-carry small { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; color: rgba(234,234,234,.6); }

/* ---------- ანაზღაურება ---------- */
.mn-pay {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, 0); text-align: center; white-space: nowrap;
  font-family: 'Rajdhani', 'Manrope', sans-serif; font-size: 40px; font-weight: 700; color: #3ddc6c;
  text-shadow: 0 0 22px rgba(61,220,108,.65), 0 3px 0 rgba(0,0,0,.5); opacity: 0;
}
.mn-pay small { display: block; font-family: 'Noto Sans Georgian', 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--mn-light); text-shadow: 0 2px 6px #000; }
.mn-pay.go { animation: mnPay 2.4s ease-out forwards; }

@keyframes mnKey { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes mnShine { from { left: -70px; } to { left: 110%; } }
@keyframes mnShake { 0% { transform: translate(-50%,0); } 30% { transform: translate(calc(-50% - 3px), 1px); } 70% { transform: translate(calc(-50% + 3px), -1px); } 100% { transform: translate(-50%,0); } }
@keyframes mnPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes mnPay { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
