@font-face {
    font-family: "Event Montserrat";
    src: url("../rbx2021/assets/montserrat-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Event Montserrat";
    src: url("../rbx2021/assets/montserrat-cyrillic.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

#container-main.edition-events-main > .content { width: auto; max-width: none; padding: 0; }
#container-main.edition-campaign-main { width: 100%; margin: 0; padding: 0; }
.edition-campaign-masthead { background: #232527; }
.edition-campaign-masthead > div {
    display: flex;
    align-items: center;
    width: min(100%, 1366px);
    min-height: 60px;
    margin-inline: auto;
    padding: 0 clamp(16px, 9.15vw, 125px);
}
.edition-campaign-home { display: grid; align-items: center; width: 150px; min-height: 44px; }
.edition-campaign-home img { display: block; width: 100%; }

#container-main .edition-events {
    --event-gutter: clamp(16px, 5vw, 72px);
    width: 100%;
    padding: 0 var(--event-gutter) clamp(36px, 6vw, 84px);
    background-color: #000;
    color: #fff;
    font: 400 16px/1.5 "Event Montserrat", Arial, sans-serif;
    overflow-wrap: anywhere;
}

#container-main .edition-events :is(h1, h2, h3, p) { font-family: inherit; }

.edition-event-header { padding: clamp(28px, 5vw, 72px) 0 clamp(20px, 4vw, 54px); }

.edition-event-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 8vw, 112px);
    font-weight: 600;
    line-height: 1;
}

.edition-event-section + .edition-event-section { margin-top: clamp(30px, 5vw, 64px); }

.edition-event-section > h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(24px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.15;
}

.edition-event-section > .jegg-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.edition-event-card { display: flex; min-width: 0; }

.edition-event-link {
    display: grid;
    align-content: center;
    width: 100%;
    min-width: 0;
    background: #191919;
    color: #fff;
}

.edition-event-link:focus-visible { outline: 2px solid #b7a5ff; outline-offset: -2px; }
.edition-event-link:hover h3, .edition-event-link:focus-visible h3 { text-decoration: underline; }

.edition-event-copy { padding: clamp(16px, 3vw, 40px); }

.edition-event-copy h3 {
    padding: 0;
    color: #fff;
    font-size: clamp(19px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.2;
}

.edition-event-copy p { margin: 8px 0 0; color: #e2e2e2; line-height: 1.5; }

.edition-event-copy .edition-event-when {
    margin-top: 16px;
    color: #b7a5ff;
    font-size: 13px;
    font-weight: 600;
}

.edition-event-campaign { grid-column: 1 / -1; }
.edition-event-campaign .edition-event-link { align-content: stretch; }

.edition-event-campaign h3 { font-size: clamp(25px, 4vw, 55px); }

.edition-event-art {
    display: block;
    width: 100%;
    height: auto;
}

.edition-event-empty {
    margin: 0;
    padding: 16px clamp(16px, 3vw, 40px);
    background: #191919;
    color: #e2e2e2;
}

@media (min-width: 768px) {
    .edition-event-campaign .edition-event-link { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); align-items: center; }
    .edition-event-art { max-height: 360px; object-fit: cover; object-position: center 42%; align-self: stretch; }
}

#container-main .edition-event-detail {
    --event-gutter: max(clamp(16px, 5vw, 72px), calc((100% - 1366px) / 2));
}
.edition-event-hero { padding: clamp(20px, 4vw, 56px) 0 clamp(32px, 6vw, 84px); }
.edition-event-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
#event-activities { scroll-margin-top: 110px; }
.edition-event-hero h1 {
    margin: 24px 0 0;
    color: #fff;
    font-size: clamp(34px, 7vw, 100px);
    font-weight: 600;
    line-height: 1.05;
}

.edition-event-hero-art {
    display: block;
    width: 100%;
    height: auto;
}

.edition-event-hero, .edition-event-overview { max-width: 960px; margin-inline: auto; }
.edition-event-overview { padding: 24px 0; border-top: 1px solid #494349; }
.edition-event-overview h2 { margin: 0 0 16px; padding: 0; color: #fff; font-size: clamp(24px, 4vw, 54px); }
.edition-event-overview p { margin: 0 0 12px; color: #e2e2e2; line-height: 1.55; }
.edition-event-overview .edition-event-detail-time { color: #b7a5ff; font-weight: 600; }
.edition-event-date-range, .edition-event-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.edition-event-description { white-space: pre-wrap; }
.edition-event-description a { color: #b7a5ff; text-decoration: underline; }
.edition-event-actions { margin-top: 20px; }

.edition-event-detail :is(.edition-event-back, .edition-event-action, .edition-event-winner-list a) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #fff;
}
:is(.edition-event-detail, .edition-campaign-masthead) a:focus-visible { outline: 2px solid #b7a5ff; outline-offset: 3px; }
.edition-event-action { padding: 8px 14px; border: 1px solid #b7a5ff; }
.edition-event-detail .edition-event-action.edition-event-action-primary {
    border-color: #fff;
    border-radius: 5px;
    background: #fff;
    color: #000;
}

.edition-event-activity-art,
.edition-event-end-art {
    display: block;
    width: 100%;
    height: auto;
}

.edition-event-activity-art { margin-bottom: clamp(24px, 4vw, 48px); }
.edition-event-end-art { max-width: 1080px; margin: clamp(24px, 5vw, 60px) auto 0; }
#container-main .edition-halloween-campaign {
    --event-gutter: clamp(16px, 9.15vw, 125px);
    padding-inline: 0;
}
.edition-halloween-campaign :is(.edition-event-hero, .edition-event-overview) {
    width: min(100%, 1366px);
    max-width: none;
    border-top: 0;
    padding-inline: var(--event-gutter);
}
.edition-halloween-campaign .edition-event-hero {
    padding-top: clamp(12px, 2.2vw, 50px);
    padding-bottom: clamp(48px, 18vw, 150px);
}
.edition-halloween-campaign .edition-event-hero h1 {
    max-inline-size: 9em;
    margin: 0;
    padding: 0;
    font-size: min(8vw, 112px);
    line-height: 1;
}
.edition-halloween-campaign :is(.edition-event-hero-art, .edition-event-activity-art) {
    width: calc(100% + 2 * var(--event-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--event-gutter));
}
.edition-halloween-campaign .edition-event-hero-art { margin-top: clamp(34px, 9.5vw, 125px); }
.edition-halloween-campaign .edition-event-activity-art {
    height: 737px;
    margin-bottom: 100px;
    object-fit: contain;
    pointer-events: none;
}
.edition-halloween-campaign .edition-event-overview { padding-block: 0 clamp(36px, 8vw, 100px); }
.edition-halloween-campaign .edition-event-overview > .edition-event-nav { justify-content: flex-start; }
.edition-halloween-campaign .edition-event-overview h2 {
    font-size: min(6.7vw, 92px);
    line-height: 1.08;
}
.edition-halloween-campaign .edition-event-overview p { max-width: 76ch; }
.edition-halloween-campaign .edition-event-overview .edition-event-kicker {
    margin: 0 0 4px;
    color: #9a82f9;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}
.edition-halloween-campaign .edition-event-end-art {
    max-width: 1366px;
    height: 821px;
    margin-top: 34px;
    object-fit: contain;
}
@media (max-width: 1366px) {
    .edition-halloween-campaign .edition-event-activity-art {
        height: 152vw;
        margin-block: -40.75vw -27.25vw;
    }
    .edition-halloween-campaign .edition-event-end-art { height: 90vw; margin-top: 0; }
}
.edition-event-featured .edition-event-featured-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #b7a5ff;
    text-decoration: underline;
}
.edition-event-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 15vw));
    grid-auto-rows: 15vw;
    justify-content: space-evenly;
    gap: 4vw 2vw;
    margin: 100px 0 0;
    padding: 0;
    list-style: none;
}
.edition-event-game-grid a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #fff;
    font-size: clamp(12px, 1.6vw, 20px);
    text-align: center;
}
.edition-event-game-grid img {
    display: block;
    width: 85%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid #9a82f9;
    border-radius: 10%;
}
.edition-event-game-grid a span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.edition-event-game-grid a:is(:hover, :focus-visible) span { text-decoration: underline; }
@media (max-width: 1366px) {
    .edition-event-game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 30vw;
        gap: 20vw 2.5vw;
        margin-top: 14.64129vw;
    }
}
@media (max-width: 700px) {
    .edition-event-game-grid { row-gap: 25vw; }
    .edition-event-game-grid img { width: 80%; border-width: max(1px, .5vw); }
}
.halloween-items-carousel {
    --item-size: min(16.42606vw, 220px);
    --arrow-size: min(5.85652vw, 80px);
    --arrow-target-size: max(44px, var(--arrow-size));
    position: relative;
    margin-top: clamp(24px, 8vw, 100px);
}
.halloween-item-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, var(--item-size)));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.halloween-item-list li {
    aspect-ratio: 1;
    border: 3px solid #9a82f9;
    border-radius: 10%;
    background: #9a82f9;
    overflow: hidden;
}
.halloween-item-list img { display: block; width: 100%; height: auto; }
.halloween-item-list a { display: block; position: relative; }
.halloween-item-list a:focus-visible { outline: none; }
.halloween-item-list a:focus-visible::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid #fff;
    border-radius: 8%;
    pointer-events: none;
}
.halloween-items-carousel[data-ready] .halloween-item-list {
    position: relative;
    display: block;
    height: var(--item-size);
    overflow: clip;
    perspective: 500px;
}
.halloween-items-carousel[data-ready] .halloween-item-list li {
    position: absolute;
    inset: 0 0 auto;
    width: var(--item-size);
    margin-inline: auto;
    transition: transform 150ms ease-in-out;
}
.halloween-items-carousel[data-ready] li:nth-child(1) { transform: translate3d(-450%, 0, -300px); }
.halloween-items-carousel[data-ready] li:nth-child(2) { transform: translateX(-140%); }
.halloween-items-carousel[data-ready] li:nth-child(4) { transform: translateX(140%); }
.halloween-items-carousel[data-ready] li:nth-child(5) { transform: translate3d(450%, 0, -300px); }
.halloween-items-carousel button {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: var(--arrow-target-size);
    height: var(--arrow-target-size);
    padding: 0;
    border: 0;
    background: transparent center / auto var(--arrow-size) no-repeat;
    transform: translateY(-50%);
    cursor: pointer;
}
.halloween-items-carousel .halloween-items-prev { left: 0; background-image: url("../rbx2021/halloween/arrow-left.webp"); }
.halloween-items-carousel .halloween-items-next { right: 0; background-image: url("../rbx2021/halloween/arrow-right.webp"); }
.halloween-items-carousel button:hover { filter: brightness(1.5); }
.halloween-items-carousel button:focus-visible { outline: 2px solid #b7a5ff; outline-offset: -2px; }
@media (max-width: 792px) {
    .halloween-items-carousel {
        --item-size: 20.42606vw;
        --arrow-offset: calc(max(0px, var(--arrow-size) - var(--arrow-target-size) / 2) - var(--event-gutter));
    }
    .halloween-item-list li { border-width: max(1px, .5vw); }
    .halloween-items-carousel .halloween-items-prev { left: var(--arrow-offset); }
    .halloween-items-carousel .halloween-items-next { right: var(--arrow-offset); }
}
@media (prefers-reduced-motion: reduce) {
    .halloween-items-carousel[data-ready] .halloween-item-list li { transition: none; }
}
.edition-halloween-campaign #event-activities { scroll-margin-top: 42px; }
.edition-event-activities .edition-event-actions { margin-block: 0 20px; }
.edition-event-sign-in { color: #b7a5ff; text-decoration: underline; }
.edition-event-quests { text-align: start; }
.edition-event-quest-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.edition-event-quest {
    min-width: 0;
    padding: 16px;
    background: #191919;
}
.edition-event-quest h3 { margin: 0 0 8px; padding: 0; color: #fff; font-size: 19px; }
.edition-event-quest p { margin-bottom: 8px; }
.edition-event-quest-progress { display: grid; gap: 4px; color: #e2e2e2; font-size: 14px; }
.edition-event-quest-progress progress { width: 100%; accent-color: #b7a5ff; }
.edition-event-quest .edition-event-quest-state { margin: 6px 0 0; color: #b7a5ff; font-weight: 600; }
.edition-event-quest-set { border-bottom: 1px solid #494349; }
.edition-event-quest-set summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.edition-event-quest-set[open] { padding-bottom: 12px; }

@media (max-width: 767px) {
    .edition-event-campaign .edition-event-art { grid-row: 1; }
}
@media (max-width: 792px) {
    .edition-halloween-campaign .edition-event-hero { padding-bottom: 24vw; }
    .edition-halloween-campaign .edition-event-hero h1 { font-size: 10vw; }
    .edition-halloween-campaign .edition-event-overview h2 { font-size: max(26px, 8.7vw); }
    .edition-halloween-campaign .edition-event-activity-art { height: 154vw; }
    .edition-halloween-campaign .edition-event-overview .edition-event-kicker { font-size: 12px; }
}
.edition-event-winner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(224px, 100%), 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}
.edition-event-detail .edition-event-winner-list a { width: 100%; padding: 10px 12px; background: #191919; }
.edition-event-winner-list img { flex: none; border-radius: 50%; }
.edition-event-winner-list small { display: block; color: #e2e2e2; }
