.lots-fusion .lots-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 174px;
    gap: 18px;
    padding: 24px;
    background: radial-gradient(ellipse at 100% 20%, #a855f72b, transparent 60%), radial-gradient(ellipse at 85% 100%, #f59e0b24, transparent 60%), #10141d;
}
.lots-fusion .lots-hero > h1 { grid-column: 1 / -1; }
.fusion-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fusion-stats .lots-panel { text-align: center; gap: 2px; }
.fusion-stats strong { font-size: 22px; }
.fusion-stats span { font-size: 12px; color: var(--lots-muted); }
.fusion-recipe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; padding: 14px 8px; }
.fusion-item { display: grid; justify-items: center; gap: 5px; min-width: 66px; padding: 10px 7px; border: 1px solid #60a5fa66; border-radius: 9px; background: #60a5fa0c; }
.fusion-item img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.lots .fusion-rare { color: #93c5fd; }
.lots .fusion-epic { color: #d8b4fe; }
.lots .fusion-legendary { color: #fbbf24; }
.fusion-item.fusion-epic { border-color: #c084fc88; background: #a855f712; }
.fusion-item.fusion-legendary { border-color: #fbbf2488; background: #f59e0b12; }
.fusion-item span { font-size: 12px; font-weight: 700; }
.fusion-symbol { color: var(--lots-muted); font-size: 20px; }
.fusion-bonuses :where(th, td) { text-align: center; }
.fusion-bonuses tbody th { font-weight: 500; }
.fusion-errors { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.lots-fusion .lots-hero-link { margin-top: 3px; }
/* Instrukcja ze zdjeciami: naturalne proporcje i czytelne podpisy. */
.lots-fusion .fusion-guide-shot { gap: 12px; }
.lots-fusion .fusion-guide-shot > a {
    display: block;
    max-width: 100%;
    justify-self: center;
    line-height: 0;
    border-radius: 5px;
}
.lots-fusion .fusion-guide-shot img {
    max-width: 100%;
    height: auto;
}
.lots-fusion .fusion-guide-shot > a:hover img,
.lots-fusion .fusion-guide-shot > a:focus-visible img {
    outline: 2px solid var(--lots-gold);
    outline-offset: 2px;
}
.lots-fusion .fusion-guide-shot figcaption {
    display: grid;
    gap: 7px;
    padding: 2px 8px 8px;
    text-align: left;
}
.lots-fusion .fusion-guide-pair { align-items: stretch; }
.lots-fusion .fusion-guide-pair .fusion-guide-shot {
    align-content: start;
}

/* Galeria po prawej stronie naglowka. */
.lots-fusion .lots-hero > .fusion-hero-copy {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 18px;
}
.lots-fusion .lots-hero > .fusion-featured {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid var(--lots-border);
    border-radius: 10px;
    background: linear-gradient(155deg, #a855f710, #f59e0b0a), #10141d;
    text-align: center;
}
.lots-fusion .fusion-featured h2 {
    font: 700 14px/1.35 Cinzel, Georgia, serif;
}
.fusion-featured__world {
    margin-top: 4px !important;
    color: var(--lots-muted);
    font-size: 11px;
}
.lots-fusion .fusion-featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    margin: 12px 0;
    list-style: none;
}
.lots-fusion .fusion-featured__grid > li { min-width: 0; }
.lots-fusion .fusion-featured__item {
    display: grid;
    align-content: start;
    height: 100%;
    padding: 5px 2px 7px;
    gap: 5px;
    border: 1px solid #d4af3738;
    border-radius: 7px;
    background: #0b0e14;
    color: var(--lots-text);
    text-decoration: none;
}
.lots-fusion .fusion-featured__item:hover,
.lots-fusion .fusion-featured__item:focus-visible {
    border-color: var(--lots-gold);
    background: #272033;
    color: var(--lots-heading);
}
.fusion-featured__visual {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 64px;
}
.fusion-featured__visual img {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}
.fusion-featured__name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: normal;
}
.lots-fusion .fusion-featured__all {
    display: inline-block;
    font-size: 12px;
}

/* Zdjecie z zaokraglona ramka i podpisami nad kazda z trzech broni. */
.fusion-hero-photo {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--lots-border);
    border-radius: 14px;
    background: #0b0e14;
    overflow: hidden;
}
.fusion-hero-photo > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    line-height: 0;
    isolation: isolate;
}
.fusion-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}
.fusion-hero-photo > a:hover,
.fusion-hero-photo > a:focus-visible {
    outline: 2px solid var(--lots-gold);
    outline-offset: -2px;
}
.lots-fusion .fusion-rarity-label {
    position: absolute;
    z-index: 1;
    top: 78%;
    left: var(--rarity-x);
    display: block;
    width: max-content;
    max-width: 40%;
    margin: 0;
    color: #ff2828;
    font: 900 clamp(12px, 1.5vw, 16px)/1.15 Inter, Arial, sans-serif;
    white-space: nowrap;
    text-shadow: -1px -1px 0 #180000, 1px -1px 0 #180000, -1px 1px 0 #180000, 1px 1px 0 #180000;
    transform: translate(-50%, -25%);
    opacity: 0;
    pointer-events: none;
}
.fusion-rarity-label--rare { --rarity-x: 32%; --rarity-delay: 0s; }
.fusion-rarity-label--epic { --rarity-x: 56%; --rarity-delay: 3s; }
.fusion-rarity-label--legendary { --rarity-x: 80%; --rarity-delay: 6s; }
.fusion-hero-photo.is-rarity-intro .fusion-rarity-label {
    animation: fusion-rarity-popup 3s ease-out var(--rarity-delay) 1;
}
@keyframes fusion-rarity-popup {
    0% { opacity: 1; transform: translate(-50%, 5%) scale(.75); }
    12% { opacity: 1; transform: translate(-50%, -40%) scale(1.08); }
    22% { opacity: 1; transform: translate(-50%, -25%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -115%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .fusion-hero-photo.is-rarity-intro .fusion-rarity-label {
        animation-name: fusion-rarity-static;
    }
}
@keyframes fusion-rarity-static {
    0%, 95% { opacity: 1; }
    100% { opacity: 0; }
}
/* Powiekszenie zdjec z przyciskiem zamkniecia i obsluga Escape. */
html.fusion-photo-open { overflow: hidden; }
.fusion-lightbox {
    position: fixed;
    inset: 0;
    width: fit-content;
    height: fit-content;
    min-width: 120px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 58px 16px 16px;
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #d4af3766;
    border-radius: 12px;
    background: #10141d;
    color: #f8e9bf;
}
.fusion-lightbox::backdrop { background: #000d; }
.fusion-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 68px);
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    margin: auto;
    object-fit: contain;
}
.fusion-lightbox__close {
    position: absolute;
    top: 7px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d4af3777;
    border-radius: 8px;
    background: #24202c;
    color: #fbbf24;
    font: 400 34px/1 Arial, sans-serif;
    cursor: pointer;
}
.fusion-lightbox__close:hover { background: #fbbf24; color: #17110a; }
.fusion-lightbox__close:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
