

/* Page Loader */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

b {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
    cursor: pointer;
}

b:hover {
    color: var(--color-link-hover);
    outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
b:focus {
    /* Provide a fallback style for browsers
	 that don't support :focus-visible */
    outline: none;
    background: lightgrey;
}

b:focus:not(:focus-visible) {
    /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
    background: transparent;
}

b:focus-visible {
    /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
    outline: 2px solid red;
    background: transparent;
}





.grid {
position: fixed;
    bottom: 10px;
    left: 10px;
    width: 200px;
    height: 200px;
    background: #2a2b3a;
    border-radius: 1.6rem;

}

.grid__item {
position: relative;
    background: var(--color-bg);
    align-content: start;
    margin-left: 3px;
    margin-top: 3px;
}

.grid__item-img {
    width: 200px;
    height: 200px;
    border-radius: 1.6rem;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    --x: 0px;
    --y: 0px;
}

.grid__item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgb(23, 24, 37) 40%, rgb(102, 51, 238) 50%, rgb(142, 100, 255), rgb(249, 38, 114));
    mix-blend-mode: darken;
}

.grid__item-img-deco {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    font-family: "input-mono", monospace;
    font-size: 0.85rem;
    word-wrap: break-word;
    line-height: 1.15;
    color: #fff;
    opacity: 0;
    -webkit-mask-image: radial-gradient(300px circle at var(--x) var(--y), black 20%, rgba(0, 0, 0, 0.25), transparent);
    mask-image: radial-gradient(300px circle at var(--x) var(--y), black 20%, rgba(0, 0, 0, 0.25), transparent);
}

.grid__item-img svg {
    width: 75%;
    max-width: 180px;
    position: fixed;
    z-index: 1;
}

.grid__item-label {
    line-height: 1.4;
    margin: 0;
}

.grid__item-tag {
    align-self: end;
    justify-self: start;
    border: 1px solid #2a2b3a;
    border-radius: 1em;
    line-height: 0.75;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

@media screen and (max-width: 33em) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 53em) {
    .frame {
        grid-template-columns: auto 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: 'title title sponsor' 'back prev ...';
        align-content: space-between;
        justify-items: start;
        grid-row-gap: 1.5rem;
    }

        .grid {
            position: fixed;
            bottom: 10px;
            left: 10px;
            width: 120px;
            height: 120px;
            background: #2a2b3a;
            border-radius: 1.6rem;

        }

        .grid__item {
            position: relative;
            background: var(--color-bg);
            align-content: start;
            margin-left: 3px;
            margin-top: 3px;
        }

        .grid__item-img {
            width: 120px;
            height: 120px;
            border-radius: 1.6rem;
            position: relative;
            overflow: hidden;
            display: grid;
            place-items: center;
            --x: 0px;
            --y: 0px;
        }

                .grid__item-img svg {
                    width: 75%;
                    max-width: 120px;
                    position: fixed;
                    margin-bottom: 20px;
                    z-index: 1;
                }

    body #cdawrap {
        justify-self: end;
    }

}