@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #10091e;
    --panel: #1e1232;
    --text: #fcf6ff;
    --muted: #d1c5e0;
    --purple: #aa65ff;
    --orange: #ffb36b;
    --edge: rgba(216, 180, 255, .22)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% -20%, #48205f 0%, #1b1032 43%, #0d0a18 100%);
    color: var(--text);
    font-family: 'Nunito Sans', Arial, sans-serif;
    overflow-x: hidden
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: radial-gradient(#ead4ff 1px, transparent 1px);
    background-size: 79px 73px;
    background-position: 17px 23px;
    z-index: 0
}

.ambient {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(75px);
    opacity: .27
}

.ambient-one {
    width: 350px;
    height: 350px;
    background: #a42bc8;
    left: -180px;
    top: 20%
}

.ambient-two {
    width: 330px;
    height: 330px;
    background: #f07855;
    right: -220px;
    bottom: 8%
}

[hidden] {
    display: none !important
}

.topbar,
.page,
.footer {
    position: relative;
    z-index: 1
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 27px 25px
}

.brand {
    font-size: 1.04rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none
}

.brand>span {
    color: var(--orange);
    font-size: 1.4em;
    margin-right: 8px
}

.brand strong {
    color: #e6abff
}

.back-link {
    text-decoration: none;
    color: #ead3ff;
    font-weight: 700;
    border: 1px solid var(--edge);
    background: #ffffff0d;
    padding: 10px 16px;
    border-radius: 999px;
    transition: .2s
}

.back-link:hover {
    background: #a660ff2e;
    border-color: #c28aff
}

.page {
    max-width: 940px;
    margin: 24px auto 0;
    padding: 0 18px
}

.game-shell {
    position: relative;
    overflow: hidden;
    padding: 47px 62px 53px;
    border: 1px solid rgba(224, 170, 255, .35);
    border-radius: 26px;
    background: linear-gradient(147deg, rgba(40, 22, 64, .96), rgba(24, 15, 40, .98) 54%, rgba(46, 23, 57, .96));
    box-shadow: 0 30px 85px #080512ad, inset 0 1px #ffffff12
}

.game-shell:before,
.game-shell:after {
    position: absolute;
    pointer-events: none;
    font-size: 5rem;
    opacity: .1
}

.game-shell:before {
    content: '✧';
    top: 12px;
    left: 28px
}

.game-shell:after {
    content: '✦';
    bottom: 8px;
    right: 28px
}

.eyebrow {
    text-align: center;
    letter-spacing: .23em;
    font-size: .73rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 14px
}

.eyebrow-icon {
    color: #e8a1fa;
    margin: 0 12px
}

.screen {
    text-align: center;
    animation: rise .35s ease both
}

@keyframes rise {
    from {
        transform: translateY(8px);
        opacity: .3
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.moon {
    font-family: Georgia, serif;
    color: #ffc484;
    font-size: 5rem;
    line-height: 1.1;
    text-shadow: 0 0 35px #d9a0ff55
}

h1,
h2 {
    font-family: Cinzel, Georgia, serif;
    text-wrap: balance;
    letter-spacing: -.035em
}

h1 {
    max-width: 760px;
    margin: 10px auto 20px;
    font-size: clamp(2rem, 5.4vw, 3.55rem);
    line-height: 1.22
}

h1 em {
    font-style: normal;
    color: #d9a7ff
}

h2 {
    font-size: clamp(1.52rem, 3.8vw, 2.25rem);
    line-height: 1.35
}

.lead {
    max-width: 620px;
    margin: 0 auto;
    color: #e1d3ee;
    font-size: 1.07rem;
    line-height: 1.8
}

.creatures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 29px 0 24px
}

.creature {
    padding: 20px 10px 17px;
    border: 1px solid var(--edge);
    border-radius: 15px;
    background: linear-gradient(160deg, #ffffff12, #ffffff06);
    font-weight: 800;
    color: #ead9f8
}

.creature span {
    display: block
}

.creature span:first-child {
    font-size: 2.8rem;
    margin-bottom: 6px
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    color: #c3b4d5;
    font-size: .81rem;
    margin-bottom: 27px
}

.button {
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: .96rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border .2s
}

.button:focus-visible,
a:focus-visible,
.answer:focus-visible {
    outline: 3px solid #ffc482;
    outline-offset: 3px
}

.button:not(:disabled):hover {
    transform: translateY(-2px)
}

.button:disabled {
    opacity: .43;
    cursor: not-allowed
}

.primary {
    color: #1d0d24;
    border: 1px solid #e0a5ff;
    background: linear-gradient(115deg, #f5c2ff, #b88aff 65%, #f0a3cf);
    box-shadow: 0 8px 26px #a855f740
}

.primary:not(:disabled):hover {
    box-shadow: 0 10px 32px #b377ff77
}

.secondary {
    color: #eedbff;
    background: #ffffff0b;
    border: 1px solid #ffffff40
}

.secondary:hover {
    background: #ffffff1a
}

.progress-head {
    display: flex;
    justify-content: space-between;
    color: #e6cfff;
    font-size: .85rem;
    font-weight: 800;
    margin: 20px 0 11px
}

.progress-track {
    height: 9px;
    background: #ffffff19;
    border-radius: 20px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, #a45df0, #f7b3cc, #ffd28e);
    border-radius: 20px;
    transition: width .3s
}

.question-mark {
    font-size: 2rem;
    color: var(--orange);
    margin-top: 28px
}

.quiz-screen h2 {
    margin: 3px 0 10px
}

.question-hint {
    margin: 0 0 25px;
    color: var(--muted)
}

.answers {
    display: grid;
    gap: 12px;
    margin: 0 auto;
    max-width: 660px
}

.answer {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 21px;
    text-align: left;
    border: 1px solid #b793d54f;
    border-radius: 12px;
    background: #ffffff0a;
    color: #f9f1ff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

.answer:hover {
    background: #b174ff1b;
    border-color: #c7a0fd
}

.answer.selected {
    border-color: #ffc48c;
    background: #b076ff29;
    box-shadow: inset 0 0 0 1px #ffd29c55
}

.answer-icon {
    font-size: 1.65rem;
    flex: 0 0 35px;
    text-align: center
}

.answer-text {
    flex: 1
}

.answer-indicator {
    border: 1px solid #ffffff55;
    border-radius: 50%;
    height: 19px;
    width: 19px;
    flex: 0 0 19px
}

.answer.selected .answer-indicator {
    border: 6px solid #f6bf89;
    background: #2b1743
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    max-width: 660px;
    margin: 25px auto 0
}

.quiz-actions .button {
    min-width: 175px
}

.result-label {
    font-size: .78rem;
    letter-spacing: .19em;
    color: var(--orange);
    font-weight: 800;
    margin-top: 22px
}

/* Moldura maior e responsiva na tela de resultado */
.result-figure {
    position: relative;
    width: min(100%, 420px);
    margin: 23px auto 12px;
    padding: 14px;
    border: 3px solid #d7a6fa;
    border-radius: 27px;
    background: linear-gradient(145deg, #6e387e, #251637 36%, #592d68 72%, #301c42);
    box-shadow: 0 22px 47px #08051299, 0 0 0 5px #ffca8722, inset 0 0 0 2px #ffdca355;
}

.result-figure::before,
.result-figure::after {
    position: absolute;
    z-index: 2;
    top: -19px;
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px #000);
}

.result-figure::before {
    content: '🦇';
    left: 10px;
}

.result-figure::after {
    content: '🎃';
    right: 9px;
}

.result-image {
    display: block;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
    background: #110d24;
}

.result-image[hidden] {
    display: none;
}

.result-symbol {
    font-size: 6rem;
    line-height: 1.3;
    margin: 10px 0 0;
    filter: drop-shadow(0 0 15px #a666f799)
}

.result-screen h2 {
    font-size: clamp(2.3rem, 5.4vw, 3.5rem);
    margin: 0
}

.result-subtitle {
    color: #e9b5ff;
    font-size: 1.13rem;
    font-weight: 800;
    margin: 7px 0 19px
}

.result-description {
    max-width: 650px;
    margin: 0 auto;
    color: #e1d4eb;
    line-height: 1.83;
    font-size: 1.04rem
}

.result-info {
    max-width: 690px;
    margin: 30px auto 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.result-info>div {
    border: 1px solid var(--edge);
    border-radius: 13px;
    padding: 18px 12px;
    background: #ffffff0b
}

.result-info span {
    display: block;
    color: #beacd5;
    font-size: .78rem;
    margin-bottom: 8px
}

.result-info strong {
    font-size: .98rem;
    color: #fff
}

.result-tagline {
    color: var(--orange);
    font-style: italic;
    font-size: 1.02rem
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.share-feedback {
    min-height: 1.5rem;
    color: #cbb9ed;
    font-size: .87rem
}

.footer-note {
    text-align: center;
    color: #bca7d5;
    font-size: .85rem;
    margin: 23px 5px
}

.footer {
    text-align: center;
    color: #927fa7;
    font-size: .8rem;
    padding: 2px 15px 28px
}

@media(max-width:680px) {
    .topbar {
        padding: 18px;
        align-items: flex-start
    }

    .brand {
        font-size: .86rem
    }

    .back-link {
        font-size: .78rem;
        padding: 9px 10px
    }

    .game-shell {
        padding: 30px 19px 34px;
        border-radius: 20px
    }

    .eyebrow {
        letter-spacing: .12em;
        font-size: .67rem
    }

    .eyebrow-icon {
        margin: 0 5px
    }

    .creatures {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .creature {
        padding: 12px 8px
    }

    .creature span:first-child {
        font-size: 2.3rem
    }

    .lead {
        font-size: .98rem
    }

    .quiz-actions {
        flex-direction: column-reverse
    }

    .quiz-actions .button {
        width: 100%
    }

    .answer {
        padding: 13px;
        gap: 12px
    }

    .result-info {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .result-info>div {
        padding: 13px
    }

    .result-actions .button {
        width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* Tamanho padronizado das imagens dos personagens: 150 × 150 px. */
.creature img {
    display: block;
    width: 150px;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 10px;
}

.result-figure {
    width: fit-content;
    max-width: 100%;
}

.result-image {
    width: 150px;
    height: 150px;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
}
/* Fundo geek padronizado com escurecimento como no Quiz */
body{background:linear-gradient(rgba(9,5,23,.78),rgba(9,5,23,.86)),url("../imagem/geek-geral.webp") center center / cover fixed no-repeat !important}
body::before{background-image:none !important}
