/* PC: Maden Ocağı (yeni toplama sistemi, 2026-11-26) — sayfa düzeni ve maden / mağara teması.
   Bileşenler ve belirteçler css/pc-toplama.css'tedir (toplama tasarım sistemi, tp-*). Burada yalnız ocağın düzeni,
   1280 / geniş ekran ölçüleri ve mağaraya özgü dokunuşlar var. Sayfa orta alanın kendisidir (pencere değil) ve kaymaz.
   En altta elle kazma mini oyununun (ayrı ajan) kullandığı eski .mn-btn ve .mg-* kuralları olduğu gibi durur. */
.app.desk .stage > .home > .pc-mine { display: flex !important; }
.app.desk .stage > .home > .pc-mine[hidden] { display: none !important; }
.pc-land[hidden] { display: none !important; }
.pc-mine { place-self: stretch; width: 100%; height: 100%; min-height: 0; flex-direction: column; gap: 10px; padding: 12px 14px 10px; container-type: inline-size; container-name: mine; }
/* ocak dışı içerik (elle kazma ekranı) eskisi gibi boşluksuz: iç boşluk yalnız ocak sayfasında */
.pc-mine:not(:has(> .tp-bg)) { padding: 0; gap: 12px; }

/* mağara teması: soğuk taş, sıcak fener */
.pc-mine.tp-maden { --tp-bg0: #0e0c0b; --tp-bg1: #1b1613; --tp-bg2: #2a2119; --tp-r0: #2a2624; --tp-r1: #413b36; --tp-r2: #5b534b; --tp-r3: #7c7267;
  --tp-stA: rgba(140, 110, 80, .09); --tp-stB: rgba(60, 50, 42, .22); --tp-stC: rgba(190, 150, 100, .05); }
.pc-mine.tp-maden .tp-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45)); }

/* 1280 × 720: ızgara 3 × 5, ayrıntı sağda */
.pc-mine .tp-main { --tp-det-w: 290px; --tp-gap: 16px; }
@container mine (max-width: 760px) { .pc-mine .tp-rg > small span { display: none; } .pc-mine .tp-rates { gap: 12px; } .pc-mine .tp-chip-tx em { font-size: 8.5px; } }

/* geniş orta alan (1000 px ve üstü): ayrıntı geniş, her şey bir boy büyük */
@container mine (min-width: 1000px) { .pc-mine .tp-main { --tp-det-w: 360px; --tp-gap: 22px; } .pc-mine .tp-grid { gap: 10px; } .pc-mine .tp-hd { padding-bottom: 14px; gap: 18px; } .pc-mine .tp-emb { width: 56px; height: 56px; border-radius: 15px; } .pc-mine .tp-emb img { width: 46px; height: 46px; } .pc-mine .tp-plate { padding: 8px 26px 8px 8px; gap: 14px; } .pc-mine .tp-plate-tx b { font-size: 30px; } .pc-mine .tp-plate-tx small { font-size: 10px; } .pc-mine .tp-chips { gap: 10px; } .pc-mine .tp-chip { padding: 7px 14px 7px 7px; gap: 10px; border-radius: 14px; } .pc-mine .tp-chip-tx small { font-size: 10.5px; } .pc-mine .tp-chip-tx b { font-size: 14px; } .pc-mine .tp-chip-tx em { font-size: 10.5px; } .pc-mine .tp-lvl-b, .pc-mine .tp-ring, .pc-mine .tp-if { width: 44px; height: 44px; } .pc-mine .tp-lvl-b b { font-size: 18px; } .pc-mine .tp-ring > i { font-size: 17px; } .pc-mine .tp-lvl .tp-chip-tx { width: 130px; } .pc-mine .tp-tool .tp-chip-tx { max-width: 160px; } .pc-mine .tp-bar { height: 6px; } .pc-mine .tp-node { border-radius: 18px; }  .pc-mine .tp-medal { width: 28px; height: 28px; font-size: 12px; left: 9px; top: 9px; } .pc-mine .tp-gem { width: 11px; height: 11px; right: 12px; top: 14px; } .pc-mine .tp-ninfo { left: 13px; right: 13px; bottom: 16px; gap: 3px; } .pc-mine .tp-seg { left: 13px; right: 13px; bottom: 8px; height: 5px; } .pc-mine .tp-lockb { padding: 9px 14px 8px; } .pc-mine .tp-lockb .ic { font-size: 20px; } .pc-mine .tp-lockb small { font-size: 11.5px; } .pc-mine .tp-det { padding: 16px; gap: 14px; border-radius: 22px; } .pc-mine .tp-tags .tp-medal { width: 34px; height: 34px; font-size: 13px; } .pc-mine .tp-rar { height: 26px; font-size: 13px; padding: 0 12px 0 9px; } .pc-mine .tp-tags { left: 12px; top: 12px; gap: 8px; } .pc-mine .tp-hero-tx small { font-size: 10px; } .pc-mine .tp-title { font-size: 26px; } .pc-mine .tp-stats { gap: 8px; } .pc-mine .tp-stat { padding: 9px 11px; border-radius: 12px; } .pc-mine .tp-stat small { font-size: 10.5px; } .pc-mine .tp-stat small .ic { font-size: 11px; } .pc-mine .tp-stat b { font-size: 16px; } .pc-mine .tp-stat.wide b { font-size: 18px; } .pc-mine .tp-stat em { font-size: 10px; } .pc-mine .tp-seg.lg { height: 9px; } .pc-mine .tp-sec { gap: 8px; } .pc-mine .tp-sec h5 { font-size: 10px; } .pc-mine .tp-sec h5 small { font-size: 11px; } .pc-mine .tp-dist { height: 11px; } .pc-mine .tp-legend em, .pc-mine .tp-legend em b { font-size: 11.5px; } .pc-mine .tp-legend .tp-gem { width: 9px; height: 9px; } .pc-mine .tp-loot { gap: 8px; } .pc-mine .tp-li { padding: 6px 9px 6px 6px; gap: 9px; } .pc-mine .tp-li .tp-if { width: 40px; height: 40px; } .pc-mine .tp-yield { right: 12px; top: 12px; padding: 4px 14px 4px 4px; gap: 15px; } .pc-mine .tp-yield .tp-if { width: 42px; height: 42px; } .pc-mine .tp-yield b { display: block; font-size: 13px; } .pc-mine .tp-yield small { display: block; font-size: 9px; } .pc-mine .tp-yield em { font-size: 11px; } .pc-mine .tp-li b { font-size: 11.5px; } .pc-mine .tp-li em { font-size: 13px; } .pc-mine .tp-stones { padding: 6px 10px; gap: 8px; } .pc-mine .tp-stones .tp-if.xs { width: 32px; height: 32px; } .pc-mine .tp-stones em { font-size: 10px; } .pc-mine .tp-stones > small { font-size: 10px; } .pc-mine .tp-acts { gap: 9px; } .pc-mine .tp-btn { padding: 13px 18px; gap: 14px; border-radius: 16px; } .pc-mine .tp-btn > .ic { font-size: 24px; } .pc-mine .tp-btn .tp-btx b { font-size: 19px; } .pc-mine .tp-btn .tp-btx small { font-size: 11.5px; } .pc-mine .tp-ribbon { font-size: 11px; padding: 4px 12px 4px 15px; } .pc-mine .tp-btn kbd { display: block; font-size: 9px; } .pc-mine .tp-btn.sm { padding: 8px 14px; font-size: 13px; } .pc-mine .tp-run { padding: 9px 10px 9px 9px; } .pc-mine .tp-ring.sm { width: 44px; height: 44px; } .pc-mine .tp-run small { font-size: 11px; } .pc-mine .tp-run b { font-size: 16px; } .pc-mine .tp-intro-tx small { font-size: 10px; } .pc-mine .tp-intro-tx p { font-size: 13px; } .pc-mine .tp-sum span { padding: 9px 6px 8px; } .pc-mine .tp-sum span b { font-size: 20px; } .pc-mine .tp-sum span small { font-size: 10.5px; } .pc-mine .tp-sug .tp-art { width: 86px; height: 68px; } .pc-mine .tp-sug b { font-size: 16px; } .pc-mine .tp-sug em { font-size: 11.5px; } .pc-mine .tp-sug small { font-size: 10px; } .pc-mine .tp-tips li { font-size: 12px; } .pc-mine .tp-tips li .ic { font-size: 12px; } .pc-mine .tp-rates { gap: 28px; padding: 6px 14px; } .pc-mine .tp-rg > small { font-size: 9.5px; } .pc-mine .tp-rc { font-size: 12px; gap: 5px; } .pc-mine .tp-rc .num { font-size: 11px; } .pc-mine .tp-medal.xs { width: 20px; height: 20px; font-size: 8.5px; } .pc-mine .tp-lantern { width: 30px; height: 58px; margin-left: -15px; top: 34px; } .pc-mine .tp-lglow { width: 220px; height: 220px; margin: -110px 0 0 -110px; top: 28px; }
}
/* çok geniş orta alan (1920 × 1080 ve üstü): ızgara 5 × 3 */
@container mine (min-width: 1250px) { .pc-mine .tp-main { --tp-det-w: 400px; --tp-gap: 26px; } .pc-mine .tp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
/* alçak pencere (720 px yükseklik): ayrıntı panelinde biraz daha sıkı */
@media (max-height: 800px) { .pc-mine .tp-det { gap: 8px; padding: 10px; } .pc-mine .tp-hero { min-height: 118px; gap: 4px; } .pc-mine .tp-stat { padding: 5px 7px; } .pc-mine .tp-tips { display: none; }
}

/* ---------- eski düğme sınıfı: elle kazma ekranı hâlâ .mn-btn kullanıyor ---------- */
.mn-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 7px 14px; border-radius: 12px; text-align: left;
  font: 700 13px var(--fb); color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: 0 0 0 1.5px #0b0a0a, inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s var(--spring), filter .15s; }
.mn-btn .ic { grid-row: 1 / 3; font-size: 15px; }
.mn-btn small { grid-column: 2; font: 500 9.5px var(--fb); opacity: .75; }
.mn-btn:hover { filter: brightness(1.08); transform: translateY(-1px); } .mn-btn:active { transform: scale(.97); }
.mn-btn.ghost { color: #e6dccb; background: #161412; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #3a3229; }
.mn-btn.sm { grid-template-columns: auto auto auto; padding: 6px 10px; font-size: 12px; } .mn-btn.sm .ic { grid-row: auto; font-size: 11px; }
.mn-btn kbd { font: 700 8.5px var(--fn); padding: 1px 4px; border-radius: 4px; background: #0f0d0c; box-shadow: inset 0 0 0 1px #3a3328; color: #8c8172; }

/* ---------- Elle kazma: Çatlak Vur ---------- */
.mg { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mg-hd { flex: none; display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #2a241e; }
.mg-tt { display: grid; gap: 2px; } .mg-tt small { font: 600 10.5px var(--fb); color: var(--muted); } .mg-tt small i { font-style: normal; } .mg-tt b { font: 700 20px var(--fs); color: #f2ead8; }
.mg-stats { margin-left: auto; display: flex; gap: 6px; }
.mg-stats span { display: grid; gap: 1px; padding: 5px 12px; border-radius: 10px; background: #141210; box-shadow: inset 0 0 0 1px #2e2925; }
.mg-stats small { font: 400 9.5px var(--fb); color: var(--muted); } .mg-stats b { font: 700 15px var(--fn); color: #f3d68e; }
.mg-field { position: relative; flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none;
  background: radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--qc) 10%, #231c16), #0e0b09 80%), #0e0b09; box-shadow: inset 0 0 0 1px #3a3229, inset 0 0 80px rgba(0, 0, 0, .8); }
.mg-field::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 230, 190, .015) 0 2px, transparent 2px 14px); pointer-events: none; }
.mg-rock { position: absolute; left: 50%; top: 52%; width: 300px; height: 260px; transform: translate(-50%, -50%); border-radius: 46% 54% 50% 50% / 52% 48% 55% 45%;
  background: radial-gradient(40% 35% at 38% 32%, #6b5a4a, transparent 70%), radial-gradient(70% 60% at 50% 55%, #4a3d31, #2a221b 70%, #1a1511);
  box-shadow: inset -18px -24px 50px rgba(0, 0, 0, .55), inset 10px 14px 30px rgba(255, 230, 190, .08), 0 30px 60px -20px #000, 0 0 60px -10px color-mix(in srgb, var(--qc) 40%, transparent); }
.mg-ore { position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); opacity: .55; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--qc) 70%, transparent)); }
.mg-crk { position: absolute; inset: 18%; background: linear-gradient(35deg, transparent 47%, rgba(0, 0, 0, .55) 48%, transparent 50%), linear-gradient(-60deg, transparent 60%, rgba(0, 0, 0, .45) 61%, transparent 63%); opacity: .7; }
.mg-rock.shake { animation: mgShake .18s ease-out; }
@keyframes mgShake { 30% { transform: translate(calc(-50% + 4px), calc(-50% - 2px)) rotate(.6deg); } 60% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)) rotate(-.5deg); } }
.mg-rock.burst { animation: mgBurst .5s ease-out; }
@keyframes mgBurst { 0% { transform: translate(-50%, -50%) scale(1); } 30% { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.8); } 60% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } 61% { transform: translate(-50%, -50%) scale(.85); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
/* çatlak: dış halka daralır, iç çekirdek sabit; halka çekirdeğe oturduğu an tıkla */
.mg-t { position: absolute; z-index: 3; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none; }
.mg-core { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, #fff6dc 0 18%, #f0c060 40%, rgba(240, 160, 60, .2) 72%, transparent 74%); box-shadow: 0 0 16px 2px rgba(255, 190, 90, .7); animation: mgCoreIn .2s ease-out both; }
@keyframes mgCoreIn { from { transform: scale(.2); opacity: 0; } }
.mg-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #ffe2a0; box-shadow: 0 0 10px rgba(255, 200, 110, .6); animation: mgRing var(--ap) linear both; }
@keyframes mgRing { from { transform: scale(2.7); opacity: .2; } 80% { opacity: 1; } to { transform: scale(.52); opacity: 1; } }
.mg-t.spark { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.mg-t.spark .mg-core { inset: 9px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, #e4c967 40%, #bb8f35); box-shadow: 0 0 18px 4px rgba(255, 220, 110, .9); animation: mgSparkSpin 1s linear infinite; }
@keyframes mgSparkSpin { to { transform: rotate(405deg); } }
.mg-t.spark .mg-ring { border-color: #fff3b0; }
.mg-t.hit .mg-ring { animation: none; opacity: 0; }
.mg-t.hit .mg-core { animation: mgHit .38s ease-out forwards; }
.mg-t.perf .mg-core { box-shadow: 0 0 30px 10px rgba(255, 230, 140, .95); }
@keyframes mgHit { to { transform: scale(2.2); opacity: 0; } }
.mg-t.gone { animation: mgGone .3s ease-out forwards; } @keyframes mgGone { to { opacity: 0; transform: scale(.6); } }
.mg-fx { position: absolute; z-index: 5; transform: translate(-50%, -50%); font: 800 15px var(--fs); letter-spacing: .08em; font-style: normal; pointer-events: none; white-space: nowrap; animation: mgFx .8s ease-out forwards; text-shadow: 0 2px 6px #000; }
@keyframes mgFx { from { opacity: 0; transform: translate(-50%, -40%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.1); } to { opacity: 0; transform: translate(-50%, -170%) scale(1); } }
.mg-fx.perf { color: #ffe27a; font-size: 17px; } .mg-fx.good { color: #a6e48f; } .mg-fx.miss { color: #ef7a5e; } .mg-fx.early { color: #e9b07a; font-size: 12px; } .mg-fx.spark { color: #fff3b0; font-size: 18px; } .mg-fx.tap { color: #6f665d; font-size: 18px; }
.mg-sp { position: absolute; z-index: 4; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #ffd890; box-shadow: 0 0 6px #ffb347; pointer-events: none; animation: mgSp .55s ease-out forwards; }
@keyframes mgSp { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.mg-combo { position: absolute; left: 22px; top: 18px; display: grid; justify-items: start; line-height: 1; pointer-events: none; }
.mg-combo b { font: 800 44px var(--fs); color: #f2ead8; text-shadow: 0 3px 10px #000; transition: color .2s; }
.mg-combo small { font: 700 10px var(--fs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mg-combo em { margin-top: 4px; font: 700 13px var(--fn); font-style: normal; color: var(--gold); }
.mg-combo.hot b { color: #ffd27a; } .mg-combo.fire b { color: #ff9b5a; text-shadow: 0 0 18px rgba(255, 140, 60, .8), 0 3px 10px #000; }
.mg-combo.mile { animation: mgMile .6s var(--spring); } @keyframes mgMile { 40% { transform: scale(1.35); } }
.mg-hp { position: absolute; left: 50%; bottom: 46px; width: min(40%, 320px); height: 10px; transform: translateX(-50%); border-radius: 6px; background: #0f0d0c; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #3a3229; }
.mg-hp i { position: absolute; inset: 2px; border-radius: 4px; transform-origin: 0 50%; background: linear-gradient(90deg, #8a6a2c, #f0d58c); transition: transform .15s; }
.mg-hp small { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font: 600 10px var(--fn); color: var(--muted); white-space: nowrap; }
.mg-loot { position: absolute; right: 16px; top: 16px; display: grid; gap: 6px; justify-items: end; pointer-events: none; }
.mg-li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 10px; background: rgba(20, 18, 16, .9); box-shadow: inset 0 0 0 1px #3a3229; animation: mgLi 2.6s ease-out forwards; }
@keyframes mgLi { 0% { opacity: 0; transform: translateX(16px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mg-li .mg-lif { width: 30px; height: 30px; } .mg-li b { font: 700 12px var(--fn); color: #f2ead8; }
.mg-help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 400 11px var(--fb); color: var(--dim); white-space: nowrap; pointer-events: none; }
.mg-help b { color: #d9c48e; } .mg-help kbd { padding: 1px 5px; border-radius: 4px; font: 700 9px var(--fn); background: #121010; box-shadow: inset 0 0 0 1px #3a3328; color: #bfb5a8; }
.mg-res { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(10, 8, 7, .82); animation: swapIn .35s var(--ease) both; }
.mg-res > small { font: 700 10px var(--fs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); } .mg-res > b { font: 700 26px var(--fs); color: #f2ead8; }
.mg-rk { display: flex; gap: 8px; } .mg-rk span { display: grid; gap: 2px; padding: 8px 14px; border-radius: 12px; background: #141210; box-shadow: inset 0 0 0 1px #3a3229; }
.mg-rk small { font: 400 10px var(--fb); color: var(--muted); } .mg-rk b { font: 700 18px var(--fn); color: #f3d68e; }
.mg-rl { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 520px; } .mg-rl .mg-li { animation: none; }
