
/* =========================================================
   MATEMATICAZ IDENTITY 1.2
   ========================================================= */


/* PUBLIC CHARACTER CARD */

.mz-math-card-page {
    max-width: 1050px;
    margin: 32px auto 65px;
}


.mz-character-card {
    position: relative;

    overflow: hidden;

    padding: 28px;

    border: 1px solid #cbd5e1;
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(99,102,241,.13),
            transparent 330px
        ),
        linear-gradient(
            145deg,
            #fff,
            #f8fafc
        );

    box-shadow:
        0 25px 65px
        rgba(15,23,42,.10);
}


.mz-card-background-symbols {
    position: absolute;

    right: -15px;
    top: 15px;

    color:
        rgba(37,99,235,.045);

    font-family: Georgia, serif;
    font-size: 54px;
    letter-spacing: 13px;

    pointer-events: none;
}


/* identity */

.mz-card-identity {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        110px
        minmax(0,1fr)
        150px;

    align-items: center;

    gap: 20px;

    padding-bottom: 22px;

    border-bottom:
        1px solid #e2e8f0;
}


.mz-card-avatar {
    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        3px solid #fff;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #7c3aed
        );

    box-shadow:
        0 12px 35px
        rgba(79,70,229,.25);

    color: #fff;

    font-family: Georgia, serif;
    font-size: 50px;
}


.mz-card-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.mz-card-name > span,
.mz-card-featured-award > span,
.mz-card-specialties header > span,
.mz-card-rarest header > span,
.mz-card-select-award header > span {
    color: #6366f1;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .14em;
}


.mz-card-name h1 {
    margin: 4px 0 2px;

    color: #0f172a;

    font-size:
        clamp(
            29px,
            5vw,
            44px
        );

    font-weight: 950;

    letter-spacing: -1px;
}


.mz-card-name > strong {
    color: #6d28d9;

    font-size: 13px;
}


.mz-card-name p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 9px;
}


.mz-card-featured-award {
    text-align: center;
}


.mz-card-featured-award > div {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 7px auto;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #1d4ed8,
            #7c3aed
        );

    color: #fff;

    box-shadow:
        0 10px 28px
        rgba(79,70,229,.25);

    font-size: 31px;
}


.mz-card-featured-award strong,
.mz-card-featured-award small {
    display: block;
}


.mz-card-featured-award strong {
    color: #0f172a;

    font-size: 9px;
}


.mz-card-featured-award small {
    margin-top: 2px;

    color: #8b5cf6;

    font-size: 7px;
}


/* level */

.mz-card-level {
    display: grid;

    grid-template-columns:
        100px
        minmax(0,1fr)
        100px;

    align-items: center;

    gap: 18px;

    padding: 20px 0;

    border-bottom:
        1px solid #e2e8f0;
}


.mz-card-level > div:first-child,
.mz-card-level > div:last-child {
    text-align: center;
}


.mz-card-level span {
    display: block;

    color: #94a3b8;

    font-size: 7px;
    font-weight: 850;
}


.mz-card-level strong {
    display: block;

    margin-top: 3px;

    color: #0f172a;

    font-size: 24px;
}


.mz-card-xp > div {
    height: 11px;

    overflow: hidden;

    border-radius: 999px;

    background: #e2e8f0;
}


.mz-card-xp > div > span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed,
            #ec4899
        );
}


.mz-card-xp small {
    display: block;

    margin-top: 6px;

    color: #64748b;

    text-align: center;
}


/* stats */

.mz-card-stats {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 8px;

    margin-top: 18px;
}


.mz-card-stats article {
    padding: 13px;

    border:
        1px solid #e2e8f0;

    border-radius: 13px;

    background:
        rgba(255,255,255,.8);

    text-align: center;
}


.mz-card-stats article > span {
    display: block;

    font-size: 17px;
}


.mz-card-stats strong {
    display: block;

    margin-top: 3px;

    color: #0f172a;

    font-size: 18px;
}


.mz-card-stats small {
    color: #94a3b8;

    font-size: 7px;
}


/* specialties */

.mz-card-specialties {
    margin-top: 28px;
}


.mz-card-specialties header h2,
.mz-card-rarest header h2,
.mz-card-select-award h2 {
    margin: 3px 0 13px;

    color: #0f172a;

    font-size: 21px;
}


.mz-card-specialty {
    display: grid;

    grid-template-columns:
        39px
        minmax(0,1fr);

    align-items: center;

    gap: 10px;

    margin-top: 8px;
}


.mz-card-spec-symbol {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eef2ff;

    color: #4f46e5;

    font-family: Georgia, serif;
    font-size: 19px;
}


.mz-card-specialty strong {
    color: #0f172a;

    font-size: 10px;
}


.mz-card-specialty small {
    float: right;

    color: #94a3b8;

    font-size: 7px;
}


.mz-card-specialty div > div {
    height: 6px;

    margin-top: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #e2e8f0;
}


.mz-card-specialty div > div > span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #8b5cf6
        );
}


/* season */

.mz-card-season {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;

    padding: 16px;

    border: 1px solid #ddd6fe;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #faf5ff
        );
}


.mz-card-season span {
    display: block;

    color: #7c3aed;

    font-size: 7px;
    font-weight: 900;
}


.mz-card-season strong {
    display: block;

    margin-top: 3px;

    color: #0f172a;
}


.mz-card-season b {
    color: #6d28d9;

    font-size: 18px;
}


/* rare achievements */

.mz-card-rarest {
    margin-top: 27px;
}


.mz-card-rarest > div {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 9px;
}


.mz-card-rarest article {
    padding: 16px;

    border: 1px solid #ddd6fe;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf5ff
        );

    text-align: center;
}


.mz-card-rarest article > span {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 7px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #312e81,
            #7c3aed
        );

    color: #fff;

    font-size: 25px;
}


.mz-card-rarest strong,
.mz-card-rarest small {
    display: block;
}


.mz-card-rarest strong {
    color: #0f172a;
}


.mz-card-rarest small {
    margin-top: 3px;

    color: #8b5cf6;

    font-size: 7px;
}


/* footer */

.mz-card-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 28px;

    padding-top: 13px;

    border-top:
        1px solid #e2e8f0;

    color: #94a3b8;

    font-size: 7px;
    font-weight: 850;

    letter-spacing: .08em;
}


.mz-card-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 13px;
}


.mz-card-actions a {
    padding: 9px 12px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: #fff;

    color: #475569 !important;

    font-size: 8px;
    font-weight: 800;

    text-decoration: none !important;
}


/* choose award */

.mz-card-select-award {
    margin-top: 35px;
}


.mz-card-select-award header p {
    color: #64748b;
}


.mz-card-select-award > div {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 8px;
}


.mz-card-award-choice {
    align-items: center;

    text-align: center;
}


.mz-card-award-choice > span {
    font-size: 25px;
}


/* PROFILE PREVIEW */

.mz-profile-character-card {
    display: grid;

    grid-template-columns:
        60px
        minmax(0,1fr)
        auto;

    gap: 13px;

    align-items: center;

    margin: 24px 0;

    padding: 17px;

    border: 1px solid #ddd6fe;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fff,
            #eef2ff,
            #faf5ff
        );
}


.mz-profile-character-symbol {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #1d4ed8,
            #7c3aed
        );

    color: #fff;

    font-family: Georgia, serif;
    font-size: 31px;
}


.mz-profile-character-main > span {
    color: #6d28d9;

    font-size: 7px;
    font-weight: 900;
}


.mz-profile-character-main h2 {
    margin: 3px 0;

    color: #0f172a;

    font-size: 17px;
}


.mz-profile-character-main p {
    margin: 0;

    color: #64748b;

    font-size: 8px;
}


.mz-profile-character-progress {
    max-width: 330px;
    height: 6px;

    margin-top: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: #ddd6fe;
}


.mz-profile-character-progress span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #8b5cf6
        );
}


.mz-profile-featured-medal {
    text-align: center;
}


.mz-profile-featured-medal > span {
    display: block;

    font-size: 25px;
}


.mz-profile-featured-medal strong {
    display: block;

    margin-top: 3px;

    font-size: 8px;
}


.mz-profile-six {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
        repeat(6,1fr);

    gap: 4px;
}


.mz-profile-six > span {
    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background: #e2e8f0;
}


.mz-profile-six i {
    display: block;

    height: 100%;

    background: #6366f1;
}


.mz-profile-character-stats {
    grid-column: 1 / -1;

    display: flex;

    gap: 7px;
}


.mz-profile-character-stats span {
    padding: 5px 8px;

    border-radius: 999px;

    background: #fff;

    color: #64748b;

    font-size: 8px;
}


.mz-profile-character-card > a {
    grid-column: 1 / -1;

    color: #2563eb !important;

    font-size: 8px;
    font-weight: 850;

    text-decoration: none !important;
}


/* Q&A CARD LINK */

.mz-post-math-card {
    display: inline-flex;

    margin-top: 5px;

    padding: 4px 7px;

    border-radius: 999px;

    background: #eef2ff;

    color: #4f46e5 !important;

    font-size: 7px;
    font-weight: 850;

    text-decoration: none !important;
}


/* EXPLORER CARD LINK */

.mz-explorer-card {
    position: relative;
}


.mz-explorer-math-card {
    position: absolute;

    z-index: 8;

    left: 10px;
    top: 10px;

    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;

    background:
        rgba(255,255,255,.92);

    color: #4f46e5 !important;

    box-shadow:
        0 5px 18px
        rgba(15,23,42,.12);

    font-family: Georgia, serif;
    font-size: 17px;

    text-decoration: none !important;
}


/* =========================================================
   GAMIFICATION GUIDE
   ========================================================= */

.mz-game-guide {
    max-width: 1150px;

    margin: 30px auto 70px;
}


.mz-guide-hero {
    padding:
        clamp(
            28px,
            6vw,
            65px
        );

    border-radius: 27px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(255,255,255,.15),
            transparent 300px
        ),
        linear-gradient(
            125deg,
            #0f172a,
            #1d4ed8,
            #6d28d9
        );

    color: #fff;

    box-shadow:
        0 25px 70px
        rgba(30,64,175,.22);
}


.mz-guide-hero > span,
.mz-guide-section header > span,
.mz-guide-journey header > span,
.mz-guide-final > span {
    font-size: 8px;
    font-weight: 900;

    letter-spacing: .14em;
}


.mz-guide-hero h1 {
    max-width: 730px;

    margin: 8px 0;

    color: #fff;

    font-size:
        clamp(
            36px,
            7vw,
            67px
        );

    line-height: .98;

    letter-spacing: -2px;
}


.mz-guide-hero p {
    max-width: 650px;

    color:
        rgba(255,255,255,.72);

    font-size: 12px;
    line-height: 1.7;
}


.mz-guide-hero > div,
.mz-guide-final > div {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


.mz-guide-hero a,
.mz-guide-final a {
    padding: 11px 15px;

    border-radius: 10px;

    background: #fff;

    color: #1e3a8a !important;

    font-size: 9px;
    font-weight: 850;

    text-decoration: none !important;
}


/* journey */

.mz-guide-journey,
.mz-guide-section {
    margin-top: 42px;
}


.mz-guide-journey h2,
.mz-guide-section h2 {
    margin: 5px 0 16px;

    color: #0f172a;

    font-size:
        clamp(
            25px,
            4vw,
            38px
        );
}


.mz-guide-journey > div {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;
}


.mz-guide-journey article {
    position: relative;

    padding: 20px;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    background: #fff;
}


.mz-guide-journey article > b {
    position: absolute;

    right: 13px;
    top: 10px;

    color: #e2e8f0;

    font-size: 27px;
}


.mz-guide-journey article > span {
    font-size: 26px;
}


.mz-guide-journey h3 {
    margin: 8px 0 4px;

    color: #0f172a;
}


.mz-guide-journey p {
    margin: 0;

    color: #64748b;

    line-height: 1.55;
}


/* XP */

.mz-guide-xp {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 8px;
}


.mz-guide-xp article {
    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    background: #fff;
}


.mz-guide-xp strong {
    display: block;

    color: #6d28d9;

    font-size: 18px;
}


.mz-guide-xp span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 8px;
}


/* level timeline */

.mz-guide-levels {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.mz-guide-levels article {
    min-width: 120px;

    padding: 10px;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    background: #fff;
}


.mz-guide-levels strong {
    display: block;

    color: #2563eb;

    font-size: 18px;
}


.mz-guide-levels span {
    color: #64748b;

    font-size: 8px;
}


.mz-guide-formula {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    margin-top: 15px;

    padding: 13px 16px;

    border-radius: 12px;

    background: #eef2ff;
}


.mz-guide-formula span {
    color: #64748b;
}


.mz-guide-formula strong {
    color: #4338ca;

    font-size: 17px;
}


/* specialty guide */

.mz-guide-specialties {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 8px;
}


.mz-guide-specialties article {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #fff;
}


.mz-guide-specialties article > span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef2ff;

    color: #4f46e5;

    font-family: Georgia, serif;
    font-size: 19px;
}


/* feature */

.mz-guide-feature,
.mz-guide-card-demo {
    display: grid;

    grid-template-columns:
        72px
        minmax(0,1fr);

    align-items: center;

    gap: 17px;

    padding: 20px;

    border: 1px solid #ddd6fe;
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #fff,
            #f5f3ff
        );
}


.mz-guide-feature > div:first-child,
.mz-guide-card-demo > div:first-child {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #7c3aed
        );

    color: #fff;

    font-size: 35px;
}


.mz-guide-feature h3,
.mz-guide-card-demo h3 {
    margin: 0;

    color: #0f172a;

    font-size: 18px;
}


.mz-guide-feature p {
    color: #64748b;
}


/* three */

.mz-guide-three {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 9px;
}


.mz-guide-three article {
    padding: 18px;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    background: #fff;
}


.mz-guide-three article > span {
    font-size: 27px;
}


.mz-guide-three h3 {
    color: #0f172a;
}


.mz-guide-three p {
    color: #64748b;
}


/* rarities */

.mz-guide-rarities {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.mz-guide-rarities span {
    padding: 7px 10px;

    border-radius: 999px;

    background: #f8fafc;

    color: #475569;

    font-size: 8px;
    font-weight: 850;
}


.mz-guide-rarities span:nth-child(4) {
    background: #f5f3ff;
    color: #7c3aed;
}


.mz-guide-rarities span:nth-child(5) {
    background: #fef3c7;
    color: #b45309;
}


.mz-guide-rarities span:nth-child(6) {
    background: #fae8ff;
    color: #a21caf;
}


.mz-guide-rarities span:nth-child(7) {
    background: #0f172a;
    color: #fff;
}


.mz-guide-note {
    margin-top: 13px;

    padding: 13px;

    border-left: 3px solid #6366f1;

    background: #f8fafc;

    color: #64748b;

    line-height: 1.5;
}


/* card demo */

.mz-guide-card-demo span {
    color: #6366f1;

    font-size: 7px;
    font-weight: 900;
}


.mz-guide-card-demo strong {
    color: #7c3aed;
}


/* final CTA */

.mz-guide-final {
    margin-top: 50px;

    padding: 35px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #312e81
        );

    color: #fff;
}


.mz-guide-final h2 {
    max-width: 700px;

    margin: 7px 0;

    color: #fff;

    font-size:
        clamp(
            28px,
            5vw,
            48px
        );
}


.mz-guide-final p {
    max-width: 650px;

    color:
        rgba(255,255,255,.65);
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .mz-card-identity {
        grid-template-columns:
            85px
            minmax(0,1fr);
    }


    .mz-card-avatar {
        width: 82px;
        height: 82px;

        border-radius: 22px;
    }


    .mz-card-featured-award {
        grid-column:
            1 / -1;

        display: grid;

        grid-template-columns:
            58px
            minmax(0,1fr);

        text-align: left;
    }


    .mz-card-featured-award > span {
        grid-column:
            1 / -1;
    }


    .mz-card-featured-award > div {
        margin: 5px 0;

        width: 53px;
        height: 53px;
    }


    .mz-card-stats {
        grid-template-columns:
            repeat(2,1fr);
    }


    .mz-card-rarest > div {
        grid-template-columns: 1fr;
    }


    .mz-card-select-award > div {
        grid-template-columns:
            repeat(2,1fr);
    }


    .mz-guide-journey > div,
    .mz-guide-xp,
    .mz-guide-specialties,
    .mz-guide-three {
        grid-template-columns:
            repeat(2,1fr);
    }

}


@media (max-width: 520px) {

    .mz-character-card {
        padding: 17px;

        border-radius: 20px;
    }


    .mz-card-level {
        grid-template-columns:
            65px
            minmax(0,1fr)
            65px;
    }


    .mz-card-stats {
        grid-template-columns:
            repeat(2,1fr);
    }


    .mz-card-select-award > div,
    .mz-guide-journey > div,
    .mz-guide-xp,
    .mz-guide-specialties,
    .mz-guide-three {
        grid-template-columns: 1fr;
    }


    .mz-profile-character-card {
        grid-template-columns:
            52px
            minmax(0,1fr);
    }


    .mz-profile-featured-medal {
        grid-column: 1 / -1;
    }


    .mz-profile-six {
        grid-template-columns:
            repeat(3,1fr);
    }


    .mz-guide-feature,
    .mz-guide-card-demo {
        grid-template-columns: 1fr;
    }

}

