/* AivanCrate — Гаунтлеты AivanLevels (Style V2) */
.gtx-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .8rem; margin: 0 auto 1rem; }
.gtx-mode {
    display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 1rem; text-align: left; cursor: pointer; color: var(--av2-ink);
    border-radius: 1.1rem; background: var(--av2-card); border: 1px solid var(--av2-line); box-shadow: 0 0 0 1px #000;
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.gtx-mode:hover { transform: translateY(-4px); border-color: rgba(143, 160, 255, .6); }
.gtx-mode.is-on { background: linear-gradient(160deg, rgba(59, 73, 255, .45), rgba(7, 10, 51, .9) 70%); border-color: var(--av2-sky); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--av2-blue-2), 0 18px 40px -18px rgba(59, 73, 255, .9); }
.gtx-mode b { font-size: 1.15rem; color: #fff; }
.gtx-mode > span:last-child { font-size: .85rem; color: var(--av2-muted); }
.gtx-mode-icons { display: flex; gap: .1rem; }
.gtx-mode-icons img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 0 #000); transition: transform .25s cubic-bezier(.2, .9, .3, 1.5); }
.gtx-mode-icons.is-all img { width: 24px; height: 24px; margin-left: -4px; }
.gtx-mode:hover .gtx-mode-icons img { transform: translateY(-4px); }
.gtx-mode:hover .gtx-mode-icons img:nth-child(2n) { transform: translateY(-7px) rotate(-8deg); }

.gtx-setup { display: flex; flex-direction: column; gap: .7rem; padding: .9rem 1rem; margin: 0 auto 1.2rem; }
.gtx-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.gtx-row .av2-label { min-width: 9rem; }
.gtx-row-end { justify-content: flex-end; }
.gtx-pool-hint { font-size: .8rem; color: var(--av2-muted); }
.gtx-diffs { display: flex; flex-wrap: wrap; gap: .35rem; }
.gtx-diffs button {
    position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: .8rem; cursor: pointer;
    background: rgba(2, 3, 20, .75); border: 1px solid var(--av2-line); transition: transform .15s, background .15s;
}
.gtx-diffs button img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 0 #000); }
.gtx-diffs button em { position: absolute; right: -4px; bottom: -6px; min-width: 1.3rem; padding: 0 .25rem; border-radius: 999px; font-style: normal; font-size: .65rem; font-weight: 900; color: #fff; background: var(--av2-blue); box-shadow: 0 0 0 1px #000; }
.gtx-diffs button:hover:not(:disabled) { transform: translateY(-3px); }
.gtx-diffs button.is-on { background: linear-gradient(180deg, var(--av2-blue-2), var(--av2-blue)); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--av2-gold); }
.gtx-diffs button.is-low { opacity: .35; cursor: not-allowed; filter: grayscale(.8); }
.gtx-diffs button.is-low em { background: #7f1d1d; }
.gtx-check { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; font-weight: 700; color: var(--av2-muted); cursor: pointer; }
.gtx-check input { accent-color: #3b49ff; width: 16px; height: 16px; }
.gtx-go { padding: .65rem 1.4rem; font-size: 1rem; animation: gtxPulse 2.4s ease-in-out infinite; }
@keyframes gtxPulse { 50% { box-shadow: 0 0 0 2px #000, 0 0 26px rgba(59, 73, 255, .85); } }
.gtx-error { margin: 0; padding: .5rem .8rem; border-radius: .7rem; color: #fecaca; background: rgba(127, 29, 29, .35); border: 1px solid rgba(248, 113, 113, .45); font-weight: 700; font-size: .85rem; }

.gtx-result { scroll-margin-top: 5rem; }
.gtx-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem; margin-bottom: .7rem; }
.gtx-title { margin: .1rem 0 0; color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.gtx-result-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.gtx-progress { position: relative; height: 1.4rem; border-radius: 999px; background: rgba(2, 3, 20, .7); box-shadow: 0 0 0 2px #000; overflow: hidden; margin-bottom: 1.2rem; }
.gtx-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--av2-blue), var(--av2-sky)); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.gtx-result.is-complete .gtx-progress i { background: linear-gradient(90deg, #b38600, var(--av2-gold)); }
.gtx-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 900; color: #fff; text-shadow: 0 1px 0 #000; }

.gtx-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 1.4rem 1rem; counter-reset: g; }
.gtx-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; transition: opacity .3s; }
.gtx-step.is-hidden { opacity: 0; transform: translateY(14px); }
.gtx-step.is-landed { animation: gtxLand .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes gtxLand { from { transform: scale(.85); } }
.gtx-step:not(:last-child)::after {
    content: "➜"; position: absolute; right: -.95rem; top: 46%; z-index: 2; font-size: 1rem; color: var(--av2-sky); text-shadow: 0 2px 0 #000;
}
.gtx-num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.1rem; color: #fff; background: linear-gradient(180deg, var(--av2-blue-2), var(--av2-blue)); box-shadow: 0 0 0 3px #000; }
.gtx-card { width: 100%; display: flex; flex-direction: column; border-radius: 1rem; overflow: hidden; background: var(--av2-card); border: 1px solid var(--av2-line); box-shadow: 0 0 0 1px #000; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gtx-card:hover { transform: translateY(-4px); border-color: rgba(143, 160, 255, .6); box-shadow: 0 0 0 1px #000, 0 18px 34px -18px rgba(59, 73, 255, .95); }
.gtx-step.is-rolling .gtx-card { border-color: var(--av2-gold); box-shadow: 0 0 0 2px var(--av2-gold), 0 0 30px rgba(255, 216, 74, .4); }
.gtx-step.is-next .gtx-card { border-color: var(--av2-sky); box-shadow: 0 0 0 2px var(--av2-sky), 0 0 26px rgba(59, 73, 255, .5); }
.gtx-step.is-next .gtx-num { animation: gtxPulse 1.6s ease-in-out infinite; }
.gtx-step.is-done .gtx-card { border-color: rgba(74, 222, 128, .6); }
.gtx-step.is-done .gtx-num { background: linear-gradient(180deg, #4ade80, #15803d); }
.gtx-step.is-done .gtx-thumb img.is-img { filter: saturate(.6) brightness(.8); }
.gtx-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.gtx-thumb img.is-bg, .gtx-thumb img.is-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gtx-thumb .is-bg { object-fit: cover; filter: blur(14px) brightness(.5); transform: scale(1.15); }
.gtx-thumb .is-img { object-fit: contain; }
.gtx-diff { position: absolute; left: .4rem; top: .35rem; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 6px rgba(0, 0, 0, .8)); }
.gtx-dname { position: absolute; right: .4rem; bottom: .4rem; padding: .1rem .45rem; border-radius: .4rem; font-size: .7rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .75); }
.gtx-step.is-done .gtx-thumb::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: #4ade80; text-shadow: 0 3px 0 #000; }
.gtx-body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem .7rem; }
.gtx-name { font-size: 1rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.gtx-body small { color: var(--av2-muted); font-size: .78rem; }
.gtx-mine { font-size: .72rem; font-weight: 800; color: #86efac; }
.gtx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .3rem; }
.gtx-tick { display: inline-flex; align-items: center; gap: .35rem; height: 1.75rem; padding: 0 .65rem; border-radius: 999px; cursor: pointer; font-size: .74rem; font-weight: 800; color: #fff; background: rgba(2, 3, 20, .8); border: 1px solid var(--av2-line); }
.gtx-tick i { width: .9rem; height: .9rem; border-radius: .25rem; border: 2px solid var(--av2-sky); }
.gtx-step.is-done .gtx-tick { background: linear-gradient(180deg, #4ade80, #15803d); border-color: #000; }
.gtx-step.is-done .gtx-tick i { background: #fff; border-color: #fff; }
.gtx-reroll { width: 1.9rem; height: 1.75rem; padding: 0; border-radius: .5rem; cursor: pointer; background: rgba(2, 3, 20, .8); border: 1px solid var(--av2-line); transition: transform .3s; }
.gtx-reroll:hover { transform: rotate(180deg); }
.gtx-reroll.is-bad { animation: rc-shake .4s ease; }
.gtx-actions .av2-copy { height: 1.75rem; font-size: .72rem; }
.gtx-note { margin-top: 1rem; color: var(--av2-muted); font-size: .8rem; text-align: center; }
.gtx-confetti { position: fixed; inset: 0; z-index: 1090; pointer-events: none; }
@keyframes rc-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 575.98px) { .gtx-step::after { display: none; } .gtx-row .av2-label { min-width: 0; width: 100%; } }
