body {
    background: radial-gradient(circle at top, #141420, #0e0e10);
    min-height: 100vh;
}

.rank-card {
    max-width: 820px;
    margin: auto;
    border-radius: 18px;
    padding: 18px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    
    height: 100%;
    display: flex;
    flex-direction: column;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.name-text {
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.4rem);
    font-weight: 600;
}

.sub-text {
    font-size: clamp(0.6rem, 0.6vw + 0.4rem, 0.9rem);
    color: #6b7280;
}

.rank-text {
    font-size: clamp(0.75rem, 1vw + 0.6rem, 1.05rem);
    font-weight: 700;
}

.quote-text {
    font-size: clamp(0.65rem, 1vw + 0.5rem, 0.95rem);
    margin-top: 10px;
}

.text-accent {
    color: #E9133F;
}

.pfp {
    width: clamp(45px, 5vw, 55px);
    height: clamp(45px, 5vw, 55px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(233,19,63,0.4);
}

.role-icon {
    width: 14px;
    height: 14px;
    margin: 0 2px;
    vertical-align: -2px;
}

.rank-icon {
    width: clamp(55px, 5vw, 65px);
    height: auto;
}

.arrow {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: #E9133F;
}

.soft-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
    margin: 10px 0;
}

.stats-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 700px;
    margin: auto;
    margin-top: auto;
}

.stats-block {
    flex: 1;
    background: linear-gradient(135deg, #031330, #0a1b3d);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: white;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.preview-wrapper {
    position: relative;
    display: inline-block;
}

.preview-img {
    width: 150px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.preview-img:hover {
    transform: scale(1.03);
}

.zoom-overlay {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;

    width: fit-content;
    margin: 0 auto;
}

.carousel-button {
    border: none;
    background: transparent;
    color: #fff;

    font-size: 2rem;
    padding: 6px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1 !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.carousel-button i {
    font-size: 1.8rem;
}

.carousel-button:hover {
    color: var(--primary-accent-color);
    transform: scale(1.1);
}

#testimonialContainer {
    align-items: stretch;
}

#testimonialContainer > div {
    display: flex;
}

.modal-header {
    z-index: 10;
}
.modal-dialog {
    width: auto;
    max-width: 95vw; /* prevents overflow on small screens */
}

.modal-content {
    display: inline-block;
}