@font-face {
    font-family: Entry Icons;
    src: url('../../../../setting/helper/page/fonts/fontawesome-webfont.woff2') format('woff2');
    font-display: block;
}

.entry-snow {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

html:has(.channel-invite[open]) {
    overflow: hidden;
}

.channel-invite {
    box-sizing: border-box;
    width: min(418px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #90704c;
    border-radius: 16px;
    background: #f2ecdf;
    color: #2a241e;
    font: 400 16px/1.5 var(--site-body);
    box-shadow: 0 24px 78px #100c08c9;
    scrollbar-width: thin;
    scrollbar-color: #90704c #f2ecdf;
}

.channel-invite[open] {
    animation: entry-invite-reveal 280ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes entry-invite-reveal {
    from { opacity: .4; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.channel-invite::backdrop {
    background: rgb(25 21 17 / 77%);
    backdrop-filter: blur(5px);
}

.channel-invite-frame {
    position: relative;
    isolation: isolate;
    padding-bottom: 10px;
    background: #f2ecdf;
}

.channel-invite-frame::after {
    position: absolute;
    z-index: 1;
    inset: 7px;
    border: 1px solid #90704c55;
    border-radius: 10px;
    content: '';
    pointer-events: none;
}

.channel-invite-banner {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 164px;
    padding-top: 31px;
    border-bottom: 1px solid #90704c;
    background: linear-gradient(180deg, #19151178, #20191438 45%, #30241b 98%),
        url('../img/bg.jpg') 69% 23% / cover;
}

.channel-invite-brand {
    width: min(244px, 61%);
    filter: drop-shadow(0 3px 12px #0b0508);
}

.channel-invite-close {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #efcf96;
    border-radius: 5px;
    background: #d9b57a;
    color: #2a241e;
    font: inherit;
    cursor: pointer;
}

.channel-invite-close::before, .channel-invite-close::after {
    content: '';
    grid-area: 1 / 1;
    width: 15px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}

.channel-invite-close::after {
    transform: rotate(-45deg);
}

.channel-invite-emblem {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -42px 22px 0;
}

.channel-invite-emblem::before, .channel-invite-emblem::after {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c59a63);
    content: '';
}

.channel-invite-emblem::after {
    transform: scaleX(-1);
}

.channel-invite-medallion {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    border: 1px solid #e2bd7e;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 22%, #28aa62, #08703f 77%);
    color: #fff8e6;
    box-shadow: inset 0 0 0 4px #113c2b, 0 0 0 4px #271e1b, 0 0 0 5px #a68058, 0 8px 24px #090609b3;
}

.channel-invite-medallion .channel-invite-icon {
    display: grid;
    place-items: center;
    font-size: 42px;
}

.channel-invite-content {
    padding: 17px clamp(18px, 6vw, 27px) 12px;
    text-align: center;
}

.channel-invite-content h2 {
    margin: 0;
    color: #2a241e;
    font: 400 clamp(26px, 7vw, 33px)/1.18 var(--site-display);
    letter-spacing: -.025em;
    text-wrap: balance;
}

.channel-invite-content p {
    max-width: 27ch;
    margin: 8px auto 19px;
    color: #574b3e;
    text-wrap: balance;
}

.channel-invite .channel-invite-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 17px;
    padding: 0;
    border-block: 1px solid #d9ceba;
    list-style: none;
}

.channel-invite .channel-invite-topics li {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 0;
    padding: 11px 2px 10px;
    color: #674217;
    font: 700 15px/1.15 var(--site-section);
}

.channel-invite-topics li + li {
    border-left: 1px solid #d9ceba;
}

.channel-invite-topic-icon {
    color: #805825;
    font: 18px/1 Entry Icons;
}

.channel-invite .channel-invite-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font: 700 17px/1.2 var(--site-section);
    width: 100%;
    min-height: 52px;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #8cf5b0;
    background: linear-gradient(#68e59a, #36be73);
    color: #092818;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 #17604160, 0 5px 18px #0b8e3536;
}

.channel-invite .channel-invite-link:hover {
    background: linear-gradient(#8bedad, #4cd180);
    color: #092818;
}

.channel-invite-link .channel-invite-icon {
    font-size: 23px;
}

.channel-invite-icon::before {
    content: '\f232';
    font-family: Entry Icons;
    line-height: 1;
}

.channel-invite-close:hover {
    border-color: #f2e6d3;
    background: #efcf96;
}

.channel-invite-close:focus-visible {
    outline: 2px solid #fff1d6;
    outline-offset: 3px;
}

.channel-invite-link:focus-visible {
    outline: 2px solid #674217;
    outline-offset: 3px;
}

@media (max-height: 620px) {
    .channel-invite-banner {
        min-height: 133px;
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entry-snow {
        display: none;
    }

    .channel-invite[open] {
        animation: none;
    }
}
