/* Base Reset & Typography */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    color: #333;
    background-color: #9b7ebd;
    min-height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    overflow-x: hidden;
}

img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

/* Headings */
h1 {
    color: #f49bab;
    margin-top: 0;
    margin-bottom: 1.875rem;
    font-family: Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 3.25rem;
}

/* Layout Containers */
.w-layout-blockcontainer {
    max-width: 58.75rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 87.5rem;
    height: 4.375rem;
    display: flex;
    justify-content: center;
}

.container-2 {
    width: 95%;
    max-width: 87.5rem;
    height: 100%;
    margin-left: 1.875rem;
    margin-right: 1.875rem;
}

/* Navigation Section */
.nav-bar {
    background-color: #7f55b1;
    border-bottom-right-radius: 12.5rem;
    border-bottom-left-radius: 12.5rem;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    height: 4.375rem;
    padding-left: 3rem;
    padding-right: 3rem;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: var(--text-primary, #f49bab);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background-color: rgba(127, 85, 177, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    z-index: 9999;
    margin-top: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-menu.is-open {
    display: block;
    visibility: visible;
}

.mobile-menu.is-visible {
    opacity: 1;
}

.mobile-menu-backdrop.is-open {
    display: block;
    visibility: visible;
}

.mobile-menu-backdrop.is-visible {
    opacity: 1;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-menu-items .button-withoutbg {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 225, 224, 0.1);
}

.mobile-menu-items .button-withoutbg:last-child {
    border-bottom: none;
}

.mobile-menu-items .button-withoutbg:active {
    background-color: rgba(59, 2, 112, 0.3);
}

#mobile-menu,
#mobile-menu * {
    pointer-events: auto;
}

body.menu-open .mobile-menu-backdrop {
    pointer-events: auto;
}

body.menu-open .mobile-star-fixed,
body.menu-open #mobile-parallax-star,
body.menu-open .star-wrapper,
body.menu-open .image-big,
body.menu-open .image-3,
body.menu-open .main-content-wrapper,
body.menu-open .section-1,
body.menu-open .discord-wrapper,
body.menu-open .div-block-default,
body.menu-open .widget-block,
body.menu-open .body-main,
body.menu-open .widget-block .vote-container,
body.menu-open .discord-container,
body.menu-open .widgets-row,
body.menu-open .footer {
    pointer-events: none;
}

/* Logo Container */
.image {
    width: 11.25rem;
    min-width: 11.25rem;
    height: 100%;
    display: block;
    flex-shrink: 0;
    margin-right: auto;
}

.image-2 {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

/* Navigation Buttons */
.button-withoutbg {
    color: #f49bab !important;
    background-color: transparent !important;
    border: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Roboto, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    display: block !important;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Theme toggle alignment */
.theme-toggle {
    margin-left: auto;
    flex-shrink: 0;
}

/* Desktop nav items container */
.nav-items {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Main Content Wrapper */
.main-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Content Section */
.section-1 {
    width: 100%;
    height: auto;
    margin-top: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Content Blocks */
.body-main {
    background-color: #7f55b1;
    border-left: 0.5rem solid #ffe1e0;
    border-radius: 1.875rem;
    box-shadow: 0.1875rem 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    max-width: 56.25rem;
    width: 100%;
    height: auto;
    margin-right: 0;
    padding: 1.875rem 3.75rem 1.875rem 1.875rem;
    flex-shrink: 1;
    min-width: 0;
}

.div-block-default,
.widget-block {
    background-color: #7f55b1;
    border-left: 0.5rem solid #ffe1e0;
    border-radius: 1.875rem;
    box-shadow: 0.1875rem 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    height: auto;
    padding: 1.875rem 3.75rem 1.875rem 1.875rem;
    width: 25rem;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
}

.image-big {
    width: 32.5rem;
    height: 32.5rem;
    margin-left: 0;
    margin-right: 0;
    display: block;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    background-image: url('../images/pack.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #7f55b1;
    transition: background-position 0.3s ease-out;
    -webkit-mask-image: url('../images/star_masked.png');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../images/star_masked.png');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.star-wrapper {
    width: 32.5rem;
    height: 32.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-parallax-star {
    display: none;
}

.discord-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.image-3 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star-main {
    z-index: 1;
}

.star-glow {
    z-index: 1;
    transform: scale(1.05);
    filter: brightness(0) invert(1) blur(24px);
    opacity: 0.8;
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.copy-button-withbg {
    color: #f49bab !important;
    background-color: #3b0270 !important;
    border: none !important;
    border-radius: 1.875rem !important;
    margin-top: 3.75rem !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    font-family: Roboto, sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    line-height: 1.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-button-withbg:hover {
    background-color: #531e9c !important;
    color: #ffe1e0 !important;
}

.discord-container {
    width: 100%;
    max-width: 25rem;
    aspect-ratio: 350 / 500;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.discord-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px;
}

.image-big::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 155, 171, 0.6) 0%, rgba(249, 155, 171, 0.4) 40%, transparent 70%);
    z-index: -1;
    animation: subtle-glow 4s ease-in-out infinite;
    pointer-events: none;
    filter: blur(30px);
}

@keyframes subtle-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.text-block {
    color: #f49bab;
    font-family: Roboto, sans-serif;
    font-size: 1.25rem;
    line-height: 1.875rem;
}

.text-block strong {
    font-weight: 700;
}

.text-block-small {
    color: #f49bab;
    font-family: Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.75rem;
}

.text-block-small strong {
    font-weight: 600;
}

@media screen and (max-width: 991px) {
    .w-layout-blockcontainer {
        max-width: 45.5rem;
    }
    .nav-bar {
        border-bottom-right-radius: 2.8125rem;
        border-bottom-left-radius: 2.8125rem;
        gap: 1.2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .image {
        width: 8rem;
        min-width: 8rem;
    }
    .button-withoutbg {
        font-size: 1.15rem !important;
    }
    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .main-content-wrapper {
        padding: 0 2rem;
    }
}

@media screen and (max-width: 767px) {
    .w-layout-blockcontainer {
        max-width: none;
    }
    h1 {
        font-size: 1.75rem;
        line-height: 2rem;
        margin-bottom: 1.25rem;
    }
    .nav-bar {
        height: 3.5rem;
        padding: 0.5rem 1rem;
        border-bottom-right-radius: 1.25rem;
        border-bottom-left-radius: 1.25rem;
        gap: 0.75rem;
        max-width: 100%;
    }
    .nav-items {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu {
        top: 3.5rem;
        left: 16px;
        right: 16px;
        width: auto;
        border-radius: 20px;
        margin-top: 8px;
        background-color: rgba(127, 85, 177, 0.95);
        backdrop-filter: blur(10px);
        transform: none;
    }

    .mobile-menu {
        z-index: 9999;
    }

    .mobile-menu-backdrop {
        z-index: 9998;
    }
    .image {
        width: 7rem;
        min-width: 7rem;
        height: 2.5rem;
    }
    .image-2 {
        height: 100%;
        width: auto;
    }
    .theme-toggle {
        padding: 0.25rem !important;
        margin-left: auto !important;
    }
    .theme-toggle svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    .main-content-wrapper {
        padding: 0 !important;
        position: relative;
        padding-top: calc(min(100vw, 700px) + 4.5rem) !important;
    }
    .section-1 {
        flex-direction: column;
        margin-top: 0;
        gap: 0;
        align-items: center;
        position: relative;
        min-height: auto;
    }
    .mobile-star-fixed,
    #mobile-parallax-star {
        display: block;
        width: 100%;
        max-width: 700px;
        height: 0;
        padding-bottom: min(100vw, 700px);
        position: fixed;
        top: 3.5rem;
        left: 50%;
        transform: translate(-50%, var(--mobile-star-offset, 0px));
        z-index: 0;
        pointer-events: none;
        will-change: transform;
    }
    #mobile-parallax-star .star-wrapper {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        pointer-events: none;
    }
    .mobile-star-placeholder {
        display: none;
    }
    .main-content-wrapper,
    .section-1,
    .discord-wrapper,
    .div-block-default,
    .widget-block,
    .body-main,
    .widget-block .vote-container,
    .discord-container,
    .widgets-row {
        position: relative;
        z-index: 2;
    }

    .image-big {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        pointer-events: none;
        background-size: contain;
        background-image: none !important;
        background-color: transparent !important;
        opacity: 1;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .image-big::after {
        display: none;
    }
    .body-main {
        margin: 0 1rem 0 1rem;
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
        width: calc(100% - 2rem);
        max-width: 700px;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
    .text-block {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .text-block-small {
        font-size: 0.95rem;
        line-height: 1.4rem;
    }
    .copy-button-withbg {
        margin-top: 1.5rem !important;
        width: 100%;
    }
    .container-2 {
        margin-left: 0.9375rem;
        margin-right: 0.9375rem;
    }
    .discord-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        position: relative;
        z-index: 10;
    }
    .div-block-default {
        margin-top: 0;
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
    .discord-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 350 / 500;
    }
    .widget-block {
        margin-top: 0;
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
}

@media screen and (max-width: 479px) {
    .w-layout-blockcontainer {
        max-width: none;
    }
    h1 {
        font-size: 1.5rem;
        line-height: 1.75rem;
        margin-bottom: 1rem;
    }
    .nav-bar {
        height: 3rem;
        padding: 0.5rem 0.8rem;
        border-bottom-right-radius: 1.25rem;
        border-bottom-left-radius: 1.25rem;
        gap: 0.5rem;
        max-width: 100%;
    }
    .nav-items {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu {
        top: 3rem;
        left: 16px;
        right: 16px;
        width: auto;
        border-radius: 15px;
        margin-top: 8px;
        background-color: rgba(127, 85, 177, 0.95);
        backdrop-filter: blur(10px);
        transform: none;
    }
    .mobile-menu {
        z-index: 9999;
    }

    .mobile-menu-backdrop {
        z-index: 9998;
    }
    .image {
        width: 6rem;
        min-width: 6rem;
        height: 2rem;
    }
    .image-2 {
        height: 100%;
        width: auto;
    }
    .theme-toggle {
        padding: 0.25rem !important;
        margin-left: auto !important;
    }
    .theme-toggle svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    .main-content-wrapper {
        padding: 0 !important;
        position: relative;
        padding-top: calc(min(100vw, 600px) + 4rem) !important;
    }
    .section-1 {
        flex-direction: column;
        margin-top: 0;
        gap: 0;
        align-items: center;
        position: relative;
        min-height: auto;
    }
    .mobile-star-fixed,
    #mobile-parallax-star {
        display: block;
        width: 100%;
        max-width: 600px;
        height: 0;
        padding-bottom: min(100vw, 600px);
        position: fixed;
        top: 3rem;
        left: 50%;
        transform: translate(-50%, var(--mobile-star-offset, 0px));
        z-index: 0;
        pointer-events: none;
        will-change: transform;
    }
    #mobile-parallax-star .star-wrapper {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        pointer-events: none;
    }
    .mobile-star-placeholder {
        display: none;
    }
    .main-content-wrapper,
    .section-1,
    .discord-wrapper,
    .div-block-default,
    .widget-block,
    .body-main,
    .widget-block .vote-container,
    .discord-container,
    .widgets-row {
        position: relative;
        z-index: 2;
    }

    .image-big {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        pointer-events: none;
        background-size: contain;
        background-image: none !important;
        background-color: transparent !important;
        opacity: 1;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .image-big::after {
        display: none;
    }
    .body-main {
        margin: 0 0.5rem 0 0.5rem;
        padding: 1rem;
        width: calc(100% - 1rem);
        max-width: 600px;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
    .text-block {
        font-size: 0.875rem;
        line-height: 1.5rem;
    }
    .text-block-small {
        font-size: 0.8rem;
        line-height: 1.4rem;
    }
    .copy-button-withbg {
        margin-top: 1rem !important;
        width: 100%;
    }
    .container-2 {
        margin-left: 0.9375rem;
        margin-right: 0.9375rem;
    }
    .discord-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        position: relative;
        z-index: 10;
    }
    .div-block-default {
        margin-top: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
    .discord-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 350 / 500;
    }
    .widget-block {
        margin-top: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-left-width: 0.375rem;
        position: relative;
        z-index: 10;
        background-color: var(--bg-secondary);
    }
    .mobile-parallax-content {
        position: relative;
        z-index: 10;
    }
}
