body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        linear-gradient(rgba(8, 10, 15, 0.35), rgba(8, 10, 15, 0.72)),
        url('./assets/bg-maintenance.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

.wrapper {
    flex: 1;
    width: min(1320px, calc(100% - clamp(1.5rem, 5vw, 4rem)));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
    display: flex;
    justify-content: center;
}

.panel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding:
        clamp(1.5rem, 3vw, 2.5rem)
        clamp(340px, 31vw, 440px)
        clamp(1.5rem, 3vw, 2.5rem)
        clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(10, 12, 18, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.status {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: #12131a;
    background: #d4af37;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.character {
    position: absolute;
    right: clamp(-1.5rem, -1vw, -0.5rem);
    bottom: 0;
    width: auto;
    max-width: 100%;
    height: 88%;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

h1,
h2 {
    margin: 0;
}

h1 {
    color: #f6f0df;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.02;
    text-shadow:
        -1px -1px 0 #d4af37,
         1px -1px 0 #d4af37,
        -1px  1px 0 #d4af37,
         1px  1px 0 #d4af37,
         0    0 18px rgba(212, 175, 55, 0.3);
}

.description,
.detail-card p {
    margin: 1rem 0 0;
    color: rgba(243, 241, 237, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.widget-card {
    display: flex;
    flex-direction: column;
}

.detail-card h2 {
    color: #f6f0df;
    font-size: 1rem;
}

.detail-card p {
    margin-top: 0.6rem;
}

.invite {
    background: linear-gradient(
        to right,
        #212224,
        #462022,
        #6B1F20,
        #8F1D1E,
        #B41C1C,
        #D91A1A,
        #212224
    );
    white-space: nowrap;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invite:hover,
.invite:focus-visible {
    text-decoration: underline;
}

.discord-widget {
    height: clamp(180px, 28dvh, 320px);
    margin-top: 0.75rem;
    border: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.widget-note {
    margin-top: 0.65rem;
    color: rgba(243, 241, 237, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .details {
        grid-template-columns: 1fr;
    }

    .panel {
        padding-right: clamp(1.25rem, 3vw, 2rem);
    }

    .character {
        position: static;
        display: block;
        width: min(320px, 60vw);
        max-height: 420px;
        margin: 1.25rem auto 0;
    }
}

@media (max-width: 640px) {
    .wrapper {
        width: min(100%, calc(100% - 1rem));
        padding: 1rem 0 2rem;
        gap: 1rem;
    }

    .status {
        margin-bottom: 0.75rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.72rem;
    }

    h1 {
        font-size: clamp(1.7rem, 7vw, 2.5rem);
    }

    .description,
    .detail-card p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .details {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .panel {
        padding: 0.9rem;
    }

    .panel,
    .detail-card {
        padding: 0.9rem;
        border-radius: 22px;
    }

    .discord-widget {
        height: clamp(140px, 24dvh, 220px);
    }

    .widget-note {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .character {
        width: min(240px, 70vw);
        max-height: 300px;
    }
}
