/* 2026-10-05: Ládák — jutalomládák, titkos ládák, nyitó-animáció (98-ladak.js) */
.mx-ld-ov { position: fixed; inset: 0; z-index: 8500; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.mx-ld-ov.hidden { display: none; }
.mx-ld-box { width: min(1000px, 96vw); height: min(86vh, 780px); display: flex; flex-direction: column; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); overflow: hidden; }
.mx-ld-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mx-ld-head h2 { margin: 0; font-size: 1.25rem; color: var(--accent); display: flex; align-items: center; gap: .45rem; }
.mx-ld-head .modal-x { margin-left: auto; }
.mx-ld-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.mx-ld-tab { border: 1px solid var(--border); background: var(--panel-raised, rgba(255,255,255,.04)); color: var(--text); border-radius: 999px; padding: .25rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.mx-ld-tab.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 700; }
.mx-ld-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.3rem 1.4rem; }
.mx-ld-note { margin: 0 0 .8rem; color: var(--narration, var(--text)); line-height: 1.5; }
.mx-ld-dim { color: var(--dim); font-size: .88rem; }
.mx-ld-h { margin: 1rem 0 .5rem; color: var(--accent); font-size: 1.05rem; }
.mx-ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.mx-ld-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .5rem .7rem; border: 1px solid var(--border); border-top: 4px solid var(--ldc, var(--border)); border-radius: 10px; background: var(--panel-raised, rgba(255,255,255,.03)); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.mx-ld-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--ldc, var(--accent)) 35%, transparent); }
.mx-ld-img { width: 120px; height: 120px; object-fit: contain; animation: mxLdIdle 3s ease-in-out infinite; }
.mx-ld-img.mx-ld-fb, .mx-ld-big.mx-ld-fb, .mx-ld-himg.mx-ld-fb { object-fit: cover; border-radius: 10px; }
.mx-ld-tile-t { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.mx-ld-tile-s { font-size: .78rem; color: var(--dim); }
.mx-ld-t1 { --ldc: #b07a45; } .mx-ld-t2 { --ldc: #b8bcc6; } .mx-ld-t3 { --ldc: #d4a84b; } .mx-ld-t4 { --ldc: #9b5de5; }
@keyframes mxLdIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.mx-ld-hist { margin-top: 1rem; }
.mx-ld-hist summary { cursor: pointer; color: var(--accent); }
.mx-ld-hrow { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--border); }
.mx-ld-himg { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
/* nyitás */
.mx-ld-open { position: fixed; inset: 0; z-index: 9800; background: rgba(5,4,8,.78); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: mxLdFade .25s ease; }
@keyframes mxLdFade { from { opacity: 0; } }
.mx-ld-stage { position: relative; width: min(560px, 96vw); max-height: 94vh; overflow-y: auto; text-align: center; padding: 1.2rem 1.2rem 1.4rem; border-radius: 16px; background: var(--panel); color: var(--text); border: 2px solid var(--ldc, var(--accent)); box-shadow: 0 0 40px color-mix(in srgb, var(--ldc, var(--accent)) 45%, transparent); }
.mx-ld-glow { position: absolute; left: 50%; top: 120px; width: 260px; height: 260px; margin-left: -130px; margin-top: -130px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--ldc, #d4a84b) 85%, white) 0%, transparent 65%); }
.mx-ld-open.opened .mx-ld-glow { animation: mxLdBurst 1.2s ease-out forwards; }
@keyframes mxLdBurst { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: .95; transform: scale(1.15); } 100% { opacity: .35; transform: scale(1); } }
.mx-ld-chest { position: relative; z-index: 1; }
.mx-ld-big { width: 220px; height: 220px; object-fit: contain; }
.mx-ld-open.shake .mx-ld-big { animation: mxLdShake .32s ease-in-out infinite; }
@keyframes mxLdShake { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-4deg) translateY(-2px); } 75% { transform: rotate(4deg) translateY(-2px); } }
.mx-ld-open.opened .mx-ld-big { animation: mxLdPop .5s ease-out; }
@keyframes mxLdPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.mx-ld-tier { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ldc, var(--accent)); font-weight: 700; }
.mx-ld-cap h3 { margin: .2rem 0 .3rem; font-size: 1.3rem; }
.mx-ld-cards { display: flex; flex-direction: column; gap: .45rem; margin: .9rem 0 .4rem; text-align: left; }
.mx-ld-card { display: grid; grid-template-columns: 7.5rem 1fr; gap: .1rem .6rem; align-items: baseline; padding: .55rem .8rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ldc, var(--accent)) 60%, var(--border));
  background: linear-gradient(color-mix(in srgb, var(--panel) 82%, transparent), color-mix(in srgb, var(--panel) 82%, transparent)), url(/static/ladak/targykartya.png) center / cover no-repeat, var(--panel-raised, var(--panel)); opacity: 0; transform: translateY(14px) scale(.96); animation: mxLdCard .45s ease-out forwards; }
.mx-ld-card span { color: var(--dim); font-size: .82rem; }
.mx-ld-card b { font-size: 1rem; }
.mx-ld-card small { grid-column: 2; color: var(--dim); font-size: .8rem; }
@keyframes mxLdCard { to { opacity: 1; transform: none; } }
.mx-ld-found { font-style: italic; padding: .5rem .8rem; border-left: 3px solid var(--ldc, var(--accent)); background: color-mix(in srgb, var(--ldc, var(--accent)) 10%, transparent); border-radius: 0 8px 8px 0; animation: mxLdFade .6s ease; }
.mx-ld-who { text-align: center; margin-top: .3rem; }
.mx-ld-err { color: #c0392b; text-align: center; }
.mx-ld-acts { display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.mx-ld-pick { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.mx-ld-pick select { padding: .3rem .5rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
@media (prefers-reduced-motion: reduce) { .mx-ld-img, .mx-ld-open.shake .mx-ld-big, .mx-ld-open.opened .mx-ld-glow, .mx-ld-card { animation: none !important; opacity: 1; transform: none; } }
/* titkos ládák */
.mx-ld-reg { margin: .7rem 0; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; }
.mx-ld-reg-h { display: flex; justify-content: space-between; margin-bottom: .45rem; }
.mx-ld-reg-h span { color: var(--accent); font-weight: 700; }
.mx-ld-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.mx-ld-slot { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: .2rem .6rem; padding: .5rem .7rem; border-radius: 8px; border: 1px dashed var(--border); border-left: 4px solid var(--ldc, var(--border)); font-size: .88rem; }
.mx-ld-slot small { color: var(--dim); line-height: 1.35; }
.mx-ld-slot.found { border-style: solid; background: color-mix(in srgb, var(--ldc, var(--accent)) 10%, transparent); }
.mx-ld-adm { margin: .35rem 0; padding: .45rem .7rem; border: 1px solid var(--border); border-left: 4px solid var(--ldc, var(--border)); border-radius: 8px; }
.mx-ld-adm summary { cursor: pointer; }
.mx-ld-adm > div { margin: .35rem 0; line-height: 1.45; font-size: .92rem; }
.mx-ld-mapic img { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #d4a84b; background: rgba(20,14,8,.85); box-shadow: 0 0 10px rgba(0,0,0,.6); }
/* gomb-jelvény */
#chestBtn { position: relative; }
.mx-ld-badge { display: inline-block; min-width: 1.25em; padding: 0 .3em; margin-left: .35em; border-radius: 999px; background: var(--accent); color: var(--panel); font-size: .75rem; font-weight: 700; line-height: 1.35; text-align: center; }
.mx-ld-badge[hidden] { display: none; }
.mx-ld-tc-acts { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
@media (max-width: 760px) {
  .mx-ld-ov { padding: 0; }
  .mx-ld-box { width: 100vw; height: 100dvh; border-radius: 0; }
  .mx-ld-big { width: 170px; height: 170px; }
}
.mx-ld-oth{color:var(--accent)!important;font-style:italic}

.mx-ld-slot-t { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mx-ld-slot-img { width: 64px; height: 64px; object-fit: contain; filter: grayscale(.85) brightness(.8); opacity: .65; }
.mx-ld-slot.found .mx-ld-slot-img { filter: none; opacity: 1; }

/* #977 (2026-10-07): az egér alatti / fókuszált kártya ne kapjon sötét gomb-hátteret (olvashatatlan felirat) */
.mx-ld-tile:hover,.mx-ld-tile:focus,.mx-ld-tile:active{background:var(--panel-raised, var(--panel))!important;color:var(--text)!important;border-color:var(--ldc, var(--accent))!important}
.mx-ld-tile:hover .mx-ld-tile-t,.mx-ld-tile:focus .mx-ld-tile-t{color:var(--text)!important}.mx-ld-tile:hover .mx-ld-tile-s{color:var(--dim)!important}
