

.cr-webs {
    --crw-pink:         var(--pink,         #E63888);
    --crw-cream:        var(--cream,        #FBE4B5);
    --crw-orange:       var(--orange,       #F26B38);
    --crw-ink:          var(--ink,          #1A1A1A);
    --crw-radius:       14px;
    --crw-font-display: var(--font-display, 'Boldonse', 'Inter', sans-serif);
    --crw-gap:          clamp(28px, 3vw, 44px);

    display: grid;
    grid-template-columns: repeat(var(--crw-cols, 2), 1fr);
    gap: var(--crw-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.cr-webs--cols-1 { --crw-cols: 1; }
.cr-webs--cols-2 { --crw-cols: 2; }
.cr-webs--cols-3 { --crw-cols: 3; }
.cr-webs--cols-4 { --crw-cols: 4; }

@media (max-width: 1024px) {
    .cr-webs--cols-3,
    .cr-webs--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .cr-webs--cols-3,
    .cr-webs--cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cr-webs { grid-template-columns: 1fr; }
}


.cr-webs__card {
    display: block;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .25s ease;
}
.cr-webs__card:hover { transform: translateY(-4px); }
.cr-webs__card:focus-visible {
    outline: 2px solid var(--crw-pink);
    outline-offset: 6px;
    border-radius: 4px;
}
.cr-webs__card--no-link { cursor: default; }
.cr-webs__card--no-link:hover { transform: none; }


.cr-webs__card .cr-webs__title {
    display: inline-block;
    margin: 0 0 20px;
    padding: 10px 22px;
    background: var(--crw-pink);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: var(--crw-font-display);
    font-weight: 400;
    font-size: clamp(.95rem, 1.3vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(230, 56, 136, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cr-webs__card:hover .cr-webs__title {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 56, 136, .35);
}


.cr-webs__browser {
    position: relative;
    background: #ECECEC;
    border-radius: var(--crw-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    container-type: inline-size;
    transition: box-shadow .25s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.cr-webs__card:hover .cr-webs__browser {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

.cr-webs__chrome {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #ECECEC;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.cr-webs__urlbar {
    background: #fff;
    border-radius: 999px;
    padding: 5px 14px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .05);
    max-width: 80%;
}


.cr-webs__frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}
.cr-webs__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 720px;
    border: 0;
    transform-origin: 0 0;
    transform: scale(calc(100cqw / 1280px));
    pointer-events: none; 
    background: #fff;
}


.cr-webs__brand {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: linear-gradient(135deg, var(--crw-pink), var(--crw-orange));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: clamp(20px, 4vw, 36px);
    text-align: center;
}
.cr-webs__brand-domain {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(11px, 1.1vw, 13px);
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .15);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
}
.cr-webs__brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--crw-font-display);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
}
.cr-webs__brand-cta svg { transition: transform .25s ease; }
.cr-webs__card:hover .cr-webs__brand-cta svg { transform: translateX(4px); }


.cr-webs__empty {
    text-align: center;
    color: rgba(26, 26, 26, .6);
    padding: 2rem 0;
    font-size: .95rem;
}


.cr-webs-modal[hidden] { display: none; }
.cr-webs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 12, 10, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 32px);
    animation: crwModalIn .22s ease-out;
}
@keyframes crwModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.cr-webs-modal__browser {
    position: relative;
    width: min(95vw, 850px, calc((85vh - 30px) * 4 / 3));
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    container-type: inline-size;
    animation: crwBrowserIn .32s cubic-bezier(.2, .7, .2, 1);
}
@keyframes crwBrowserIn {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}


.cr-webs-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    overflow: hidden;
}
.cr-webs-modal__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 1080px;
    border: 0;
    transform-origin: 0 0;
    transform: scale(calc(100cqw / 1440px));
    background: #fff;
}


.cr-webs-modal__close {
    position: absolute;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--crw-ink);
    border: 2px solid var(--crw-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .9);
    transition: transform .15s ease, background .15s ease;
    z-index: 10;
}
.cr-webs-modal__close:hover {
    background: var(--crw-pink);
    color: #fff;
    transform: scale(1.05);
}

.cr-webs-modal__sr-title {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}


@media (max-width: 768px) {
    .cr-webs-modal { padding: 0; }
    .cr-webs-modal__browser {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        container-type: normal;
    }
    .cr-webs-modal__frame {
        flex: 1 1 0;
        min-height: 0;
        aspect-ratio: auto;
        position: static;
        width: 100%;
    }
    .cr-webs-modal__frame iframe {
        position: static;
        display: block;
        width: 100%;
        height: 100%;
        transform: none;
    }
    .cr-webs__chrome { padding-right: 56px; }
}

@supports not (container-type: inline-size) {
    .cr-webs__iframe {
        position: relative;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .cr-webs-modal { padding: 0; }
    .cr-webs-modal__browser {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        border-radius: 0;
    }
}

@media (hover: none) {
    .cr-webs__card:hover,
    .cr-webs__card:hover .cr-webs__title,
    .cr-webs__card:hover .cr-webs__brand-cta svg,
    .cr-webs-modal__close:hover {
        transform: none;
    }
    .cr-webs__card:hover .cr-webs__browser {
        box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    }
    .cr-webs__card:hover .cr-webs__title {
        box-shadow: 0 6px 18px rgba(230, 56, 136, .25);
    }
    .cr-webs-modal__close:hover {
        background: #fff;
        color: var(--crw-ink);
    }
}
