.ranked-code-modal-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(18rem, 32vw, 28rem);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(var(--bs-primary-rgb), 0.42), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(var(--bs-warning-rgb), 0.28), transparent 26%),
        linear-gradient(135deg, rgba(12, 18, 32, 0.96) 0%, rgba(28, 45, 74, 0.78) 48%, rgba(11, 18, 29, 0.95) 100%),
        var(--ranked-code-modal-hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0.85rem 2rem rgba(0, 0, 0, 0.18);
}

.ranked-code-modal-hero::before,
.ranked-code-modal-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.ranked-code-modal-hero::before {
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 72%);
    opacity: 0.45;
}

.ranked-code-modal-hero::after {
    right: -3.5rem;
    bottom: -5rem;
    width: 15rem;
    height: 15rem;
    border: 1.2rem solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.ranked-code-hero-step .ranked-code-modal-hero {
    margin-bottom: 0;
}

.ranked-code-modal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.ranked-code-modal-kicker {
    letter-spacing: 0.12em;
}

.ranked-code-modal-emblem {
    width: 4.25rem;
    height: 4.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--bs-warning);
    box-shadow: 0 0.85rem 1.8rem rgba(0, 0, 0, 0.22);
    font-size: 1.95rem;
}

.ranked-code-step {
    display: none;
}

.ranked-code-step.active {
    display: block;
}

.ranked-code-modal-step-card {
    position: relative;
    overflow: hidden;
    --ranked-code-accent: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
    border-radius: 18px;
    background: var(--bs-body-bg);
    box-shadow: 0 0.55rem 1.35rem rgba(0, 0, 0, 0.08);
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.ranked-code-modal-step-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--ranked-code-accent), var(--bs-warning));
}

.ranked-code-modal-step-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--ranked-code-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    font-size: 1.25rem;
}

.ranked-code-modal-step-badge {
    color: var(--ranked-code-accent);
    letter-spacing: 0.08em;
}

.ranked-code-modal-rule-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranked-code-modal-rule-list li {
    position: relative;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 12px;
    background: rgba(var(--bs-body-bg-rgb), 0.72);
    padding: 0.85rem 0.95rem;
}

.ranked-code-modal-rule-check {
    color: var(--bs-success);
    flex: 0 0 auto;
    line-height: 1.5;
}

.ranked-code-image-box {
    min-height: 160px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
}

.ranked-code-image-box img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
}

.ranked-code-image-box.ranked-code-banner img {
    min-height: clamp(170px, 25vw, 280px);
    height: clamp(170px, 25vw, 280px);
}

.ranked-code-image-box.ranked-code-screenshot img {
    min-height: auto;
    aspect-ratio: 16 / 10;
}

.ranked-code-image-box.ranked-code-side-panel img {
    min-height: clamp(240px, 40vw, 440px);
    height: clamp(240px, 40vw, 440px);
}
