/**
 * Super Mega Level block — infographic cards.
 * Layout only; the section header stays on .pokehub-block-header.
 */

.pokehub-super-mega-block-wrapper {
    --pokehub-super-mega-accent: var(--me5rine-lab-color-secondary, #0485c8);
}

.pokehub-super-mega-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pokehub-super-mega-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    margin: 0;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid #ead9a3;
    background: #fff;
    box-shadow: none;
}

.pokehub-super-mega-card__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

@media (min-width: 782px) {
    .pokehub-super-mega-card__layout {
        grid-template-columns: 13.5rem minmax(0, 1fr);
        gap: 1.15rem;
    }
}

.pokehub-super-mega-card__portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    padding: 1rem 0.75rem 1.1rem;
    border-radius: 14px;
    background: #f4f6fb;
    text-align: center;
}

.pokehub-super-mega-card__art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.5rem;
    height: 8.5rem;
    margin-bottom: 0.35rem;
}

.pokehub-super-mega-card__sprite {
    display: block;
    width: 8.5rem;
    height: 8.5rem;
    max-width: none;
    object-fit: contain;
}

.me5rine-article__content .pokehub-super-mega-card__name,
.pokehub-super-mega-card__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1c2748;
}

.pokehub-super-mega-card__level {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    color: #8b95a8;
}

.pokehub-super-mega-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
    padding: 0.35rem 0.15rem 0.15rem;
}

.pokehub-super-mega-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.pokehub-super-mega-card__kicker {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.25;
    color: #1c2748;
}

.pokehub-super-mega-card__attack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.pokehub-super-mega-card__attack-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1c2748;
}

.pokehub-super-mega-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pokehub-super-mega-stat {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.7rem 0.85rem 0.75rem;
    border-radius: 12px;
    background: #f4f6fb;
    border: 0;
}

.pokehub-super-mega-stat__kicker,
.pokehub-super-mega-facts__label,
.pokehub-super-mega-path__meta {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    color: #8b95a8;
}

.pokehub-super-mega-stat__value {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
}

.pokehub-super-mega-stat__num,
.pokehub-super-mega-facts__value {
    font-size: 1.55rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #1c2748;
}

.pokehub-super-mega-stat__unit {
    font-size: 0.82rem;
    font-weight: 500;
    color: #8b95a8;
}

.pokehub-super-mega-stat__buff,
.pokehub-super-mega-card__note {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--me5rine-lab-color-text, #11161e);
}

.pokehub-super-mega-path {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 782px) {
    .pokehub-super-mega-path {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
}

.pokehub-super-mega-path__step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    flex: 1 1 0;
}

.pokehub-super-mega-path__step:not(:last-child)::after {
    content: "";
    flex: 0 0 auto;
    align-self: center;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #b7c0ce;
    border-bottom: 2px solid #b7c0ce;
    transform: rotate(45deg);
}

@media (min-width: 782px) {
    .pokehub-super-mega-path__step {
        flex-direction: row;
        align-items: stretch;
    }

    .pokehub-super-mega-path__step:not(:last-child)::after {
        content: "";
        flex: 0 0 auto;
        align-self: center;
        width: 0.45rem;
        height: 0.45rem;
        margin: 0 0.35rem;
        border-right: 2px solid #b7c0ce;
        border-bottom: 2px solid #b7c0ce;
        transform: rotate(-45deg);
    }
}

.pokehub-super-mega-path__card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6ebf2;
    box-sizing: border-box;
}

.pokehub-super-mega-path__card--goal {
    border-color: #e4c56a;
    background: #fffdf6;
}

.pokehub-super-mega-path__index {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #f6e7a2;
    color: #3a3320;
    font-size: 0.95rem;
    font-weight: 800;
}

.pokehub-super-mega-path__gem {
    flex: 0 0 auto;
    display: block;
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
}

.pokehub-super-mega-path__copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.pokehub-super-mega-path__title {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1c2748;
}

.pokehub-super-mega-path__meta {
    font-weight: 500;
}

.pokehub-super-mega-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.15rem 0.15rem 0.1rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: #8b95a8;
}

.pokehub-super-mega-card__notice-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0.05rem;
    border: 1.5px solid #b7c0ce;
    border-radius: 999px;
    color: #8b95a8;
    font-size: 0.68rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.pokehub-super-mega-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pokehub-super-mega-facts__item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    margin: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.pokehub-super-mega-facts__label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
