/* =========================================================================
   Etiyab — sistema visual
   Paleta fechada: leaf (verde), sun (amarelo-terra), river (azul), clay (terra)
   ========================================================================= */

/* -------------------------------------------------------------- 1. tokens */

:root {
    --night: #05110d;
    --forest: #0a1f18;
    --moss: #123529;
    --moss-line: #1d4a3a;

    --sand-50: #fcfaf4;
    --sand-100: #f5f0e4;
    --sand-200: #e9e0cd;
    --sand-300: #d8cdb4;

    --text: #17201c;
    --text-soft: #4c574f;
    --text-mute: #6f7a71;

    --leaf: #10855f;
    --leaf-bright: #1cb37f;
    --leaf-soft: #d3f0e3;

    --sun: #b8791a;
    --sun-bright: #e0a128;
    --sun-soft: #fbeccd;

    --river: #1f6fae;
    --river-bright: #2e93d8;
    --river-soft: #d7ecfb;

    --clay: #b0552f;
    --clay-bright: #d3703f;
    --clay-soft: #fae0d1;

    --accent: var(--leaf);
    --accent-bright: var(--leaf-bright);
    --accent-soft: var(--leaf-soft);

    --shell: min(1180px, 100% - 2.5rem);
    --shell-narrow: min(760px, 100% - 2.5rem);
    --radius-xs: 8px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 44px;

    --shadow-sm: 0 1px 2px rgba(11, 32, 24, .06), 0 4px 14px -6px rgba(11, 32, 24, .12);
    --shadow-md: 0 2px 4px rgba(11, 32, 24, .05), 0 18px 40px -20px rgba(11, 32, 24, .28);
    --shadow-lg: 0 40px 80px -40px rgba(5, 22, 16, .55), 0 8px 24px -12px rgba(5, 22, 16, .3);

    --ease: cubic-bezier(.2, .7, .3, 1);

    /* Distância mínima preservada em volta da área de respostas. */
    --answer-safe-gap: 3.5rem;

    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

[data-accent="leaf"] {
    --accent: var(--leaf);
    --accent-bright: var(--leaf-bright);
    --accent-soft: var(--leaf-soft);
}

[data-accent="sun"] {
    --accent: var(--sun);
    --accent-bright: var(--sun-bright);
    --accent-soft: var(--sun-soft);
}

[data-accent="river"] {
    --accent: var(--river);
    --accent-bright: var(--river-bright);
    --accent-soft: var(--river-soft);
}

[data-accent="clay"] {
    --accent: var(--clay);
    --accent-bright: var(--clay-bright);
    --accent-soft: var(--clay-soft);
}

/* ---------------------------------------------------------- 2. fundamentos */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--sand-50);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
    line-height: 1.62;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: color-mix(in srgb, var(--accent) 88%, var(--text));
    text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: .18em;
    transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}

a:hover {
    color: var(--accent-bright);
    text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--river-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: color-mix(in srgb, var(--accent-bright) 28%, transparent);
}

/* --------------------------------------------------------- 3. tipografia */

h1,
h2,
h3,
h4,
.display {
    font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.015em;
    font-variation-settings: "SOFT" 20, "WONK" 1;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.15rem, 1.45rem + 3.1vw, 4rem);
}

h2 {
    font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
    line-height: 1.2;
}

h4 {
    font-size: 1.05rem;
    line-height: 1.3;
}

p {
    text-wrap: pretty;
}

.eyebrow {
    align-items: center;
    color: color-mix(in srgb, var(--accent) 80%, var(--text));
    display: inline-flex;
    font-family: "Inter", system-ui, sans-serif;
    font-size: .74rem;
    font-weight: 650;
    gap: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before {
    background: currentColor;
    content: "";
    display: block;
    height: 2px;
    opacity: .55;
    width: 1.6rem;
}

.lead {
    color: var(--text-soft);
    font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem);
    line-height: 1.55;
    max-width: 62ch;
}

.small {
    font-size: .875rem;
}

.mute {
    color: var(--text-mute);
}

/* ------------------------------------------------------------- 4. layout */

.shell {
    margin-inline: auto;
    width: var(--shell);
}

.shell-narrow {
    margin-inline: auto;
    width: var(--shell-narrow);
}

.section {
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
    position: relative;
}

.section--tight {
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    justify-content: space-between;
    margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 3rem);
}

.section-head__text {
    max-width: 46ch;
}

.section-head h2 {
    margin-top: .6rem;
}

.section-head p {
    color: var(--text-soft);
    margin-top: .85rem;
}

.stack > * + * {
    margin-top: var(--stack-gap, 1.15rem);
}

.skip-link {
    background: var(--forest);
    border-radius: 0 0 var(--radius-sm) 0;
    color: var(--sand-50);
    font-weight: 600;
    left: 0;
    padding: .85rem 1.4rem;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform .2s var(--ease);
    z-index: 100;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.sr-only {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* ------------------------------------------------------------ 5. botões */

.btn {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-family: "Inter", system-ui, sans-serif;
    font-size: .97rem;
    font-weight: 600;
    gap: .6rem;
    justify-content: center;
    line-height: 1;
    padding: 1.05rem 1.9rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}

.btn svg {
    flex: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-bright), color-mix(in srgb, var(--accent) 82%, #000));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset,
        0 14px 34px -14px color-mix(in srgb, var(--accent-bright) 75%, transparent);
    color: #fff;
}

.btn--primary:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset,
        0 20px 44px -14px color-mix(in srgb, var(--accent-bright) 85%, transparent);
    color: #fff;
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    background: color-mix(in srgb, var(--sand-50) 70%, transparent);
    border: 1.5px solid var(--sand-300);
    color: var(--text);
}

.btn--ghost:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--sand-300));
    color: var(--text);
    transform: translateY(-2px);
}

.btn--onDark {
    background: rgba(255, 255, 255, .09);
    border: 1.5px solid rgba(255, 255, 255, .22);
    color: var(--sand-50);
}

.btn--onDark:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    transform: translateY(-2px);
}

.btn--sm {
    font-size: .88rem;
    padding: .72rem 1.25rem;
}

.btn--block {
    width: 100%;
}

.btn--quiet {
    background: none;
    color: var(--text-soft);
    padding: .6rem .4rem;
    text-decoration: underline;
    text-decoration-color: var(--sand-300);
}

.btn--quiet:hover {
    color: var(--text);
}

.link-arrow {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: .45rem;
    text-decoration: none;
}

.link-arrow::after {
    content: "→";
    transition: transform .2s var(--ease);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ------------------------------------------------------- 6. cabeçalho */

.site-header {
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 40;
}

.site-header--solid {
    background: color-mix(in srgb, var(--sand-50) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sand-200);
    position: sticky;
}

.site-header__bar {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding-block: 1.15rem;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: .85rem;
    text-decoration: none;
}

.brand__logo {
    height: 30px;
    width: auto;
    flex: none;
    transition: transform .25s var(--ease);
}

.brand:hover .brand__logo {
    transform: translateY(-1px) scale(1.02);
}

.brand__tag {
    border-left: 1px solid color-mix(in srgb, currentColor 32%, transparent);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    max-width: 6.5rem;
    line-height: 1.2;
    padding-left: .85rem;
    text-transform: uppercase;
}

.site-header--onDark .brand {
    color: var(--sand-50);
}

.site-header--onDark .brand__tag {
    color: rgba(255, 255, 255, .62);
}

.site-header--solid .brand {
    color: var(--text);
}

.site-header--solid .brand__tag {
    color: var(--text-mute);
}

.nav {
    align-items: center;
    display: flex;
    gap: .35rem;
}

.nav a {
    border-radius: 999px;
    font-size: .93rem;
    font-weight: 550;
    padding: .55rem .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-header--onDark .nav a {
    color: rgba(255, 255, 255, .84);
}

.site-header--onDark .nav a:hover,
.site-header--onDark .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.site-header--solid .nav a {
    color: var(--text-soft);
}

.site-header--solid .nav a:hover,
.site-header--solid .nav a[aria-current="page"] {
    background: var(--sand-100);
    color: var(--text);
}

.nav__cta {
    margin-left: .5rem;
}

.nav-toggle {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: none;
    font-size: .9rem;
    font-weight: 600;
    gap: .55rem;
    padding: .65rem 1.05rem;
}

.site-header--solid .nav-toggle {
    background: #fff;
    border-color: var(--sand-300);
    color: var(--text);
}

.nav-toggle__lines {
    display: grid;
    gap: 4px;
    width: 18px;
}

.nav-toggle__lines span {
    background: currentColor;
    border-radius: 2px;
    height: 2px;
}

.mobile-nav {
    background: var(--forest);
    background-image: radial-gradient(120% 80% at 90% 0%, rgba(28, 179, 127, .28), transparent 60%);
    color: var(--sand-50);
    inset: 0;
    overflow-y: auto;
    padding: 1.15rem 0 3rem;
    position: fixed;
    z-index: 60;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-nav__close {
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    padding: .65rem 1.15rem;
}

.mobile-nav h2 {
    color: rgba(255, 255, 255, .5);
    font-family: "Inter", sans-serif;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .16em;
    margin: 2rem 0 .75rem;
    text-transform: uppercase;
}

.mobile-nav ul {
    display: grid;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul a {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--sand-50);
    display: block;
    font-size: 1.05rem;
    padding: .85rem .25rem;
    text-decoration: none;
}

.mobile-nav ul a:hover {
    color: var(--leaf-bright);
}

/* ---------------------------------------------------------------- 7. hero */

.hero {
    background: var(--forest);
    color: var(--sand-50);
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(7.5rem, 6rem + 8vw, 11rem) clamp(3.5rem, 3rem + 4vw, 6rem);
    position: relative;
}

.hero::before {
    background:
        radial-gradient(70% 55% at 78% 18%, rgba(28, 179, 127, .42), transparent 62%),
        radial-gradient(60% 50% at 12% 8%, rgba(46, 147, 216, .3), transparent 60%),
        radial-gradient(85% 70% at 50% 118%, rgba(224, 161, 40, .26), transparent 58%),
        linear-gradient(180deg, #04120d 0%, #0a201a 48%, #061711 100%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -3;
}

.hero::after {
    background-image: var(--noise);
    content: "";
    inset: 0;
    mix-blend-mode: overlay;
    opacity: .3;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hero__glow {
    background: radial-gradient(circle, rgba(28, 179, 127, .55), transparent 68%);
    border-radius: 50%;
    filter: blur(30px);
    height: 46vw;
    pointer-events: none;
    position: absolute;
    right: -8vw;
    top: 6%;
    width: 46vw;
    z-index: -2;
}

.hero__grid {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.hero__title {
    font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);
    margin-top: 1.1rem;
}

.hero__title em {
    color: var(--leaf-bright);
    font-style: normal;
    position: relative;
    white-space: nowrap;
}

.hero__title em::after {
    background: linear-gradient(90deg, var(--leaf-bright), var(--sun-bright));
    border-radius: 2px;
    bottom: .06em;
    content: "";
    height: 4px;
    left: 0;
    opacity: .55;
    position: absolute;
    right: 0;
}

.hero .eyebrow {
    color: var(--leaf-bright);
}

.hero__text {
    color: rgba(252, 250, 244, .78);
    font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem);
    margin-top: 1.4rem;
    max-width: 52ch;
}

.hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2.2rem;
}

.hero__stats {
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 2.8rem;
    padding-top: 1.6rem;
}

.hero__stat strong {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
}

.hero__stat span {
    color: rgba(252, 250, 244, .6);
    font-size: .82rem;
    letter-spacing: .04em;
}

.hero__art {
    position: relative;
}

.hero__art img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.hero__art::before {
    background: conic-gradient(from 140deg, rgba(28, 179, 127, .6), rgba(46, 147, 216, .35), rgba(224, 161, 40, .5), rgba(28, 179, 127, .6));
    border-radius: calc(var(--radius-xl) + 14px);
    content: "";
    filter: blur(22px);
    inset: -18px;
    opacity: .45;
    position: absolute;
    z-index: -1;
}

.hero__badge {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(6, 20, 15, .74);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-md);
    bottom: -1.4rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: .85rem;
    left: -1.6rem;
    max-width: 17rem;
    padding: .95rem 1.15rem;
    position: absolute;
}

.hero__badge svg {
    color: var(--sun-bright);
    flex: none;
}

.hero__badge p {
    color: rgba(252, 250, 244, .82);
    font-size: .84rem;
    line-height: 1.4;
}

.hero__badge strong {
    color: #fff;
    display: block;
    font-size: .9rem;
}

/* faixa curva entre o hero e o conteúdo claro */
.wave-divider {
    display: block;
    fill: var(--sand-50);
    margin-top: -1px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero--compact {
    padding-block: clamp(6.5rem, 5.5rem + 5vw, 8.5rem) clamp(3rem, 2.5rem + 3vw, 4.5rem);
}

.hero--compact .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

/* ------------------------------------------------------- 8. breadcrumbs */

.breadcrumbs {
    font-size: .85rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.breadcrumbs li + li::before {
    content: "/";
    opacity: .4;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs--onDark {
    color: rgba(252, 250, 244, .6);
}

.breadcrumbs--onDark a {
    color: rgba(252, 250, 244, .82);
}

.breadcrumbs--onDark a:hover {
    color: #fff;
}

/* ------------------------------------------------------------- 9. cartões */

.card-grid {
    display: grid;
    gap: clamp(1.25rem, 1rem + 1vw, 2rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.card-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}

.quiz-card {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.quiz-card::after {
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 70%);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity .3s var(--ease);
    z-index: -1;
}

.quiz-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--sand-200));
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.quiz-card:hover::after {
    opacity: 1;
}

.quiz-card__media {
    aspect-ratio: 16 / 10;
    background: var(--moss);
    overflow: hidden;
    position: relative;
}

.quiz-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
    width: 100%;
}

.quiz-card:hover .quiz-card__media img {
    transform: scale(1.06);
}

.quiz-card__media::after {
    background: linear-gradient(180deg, transparent 35%, rgba(5, 17, 13, .72));
    content: "";
    inset: 0;
    position: absolute;
}

.quiz-card__tag {
    backdrop-filter: blur(8px);
    background: rgba(5, 17, 13, .62);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: var(--sand-50);
    font-size: .72rem;
    font-weight: 600;
    left: 1rem;
    letter-spacing: .08em;
    padding: .35rem .8rem;
    position: absolute;
    text-transform: uppercase;
    top: 1rem;
    z-index: 2;
}

.quiz-card__title {
    bottom: .95rem;
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    left: 1.15rem;
    line-height: 1.15;
    position: absolute;
    right: 1.15rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    z-index: 2;
}

.quiz-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1.45rem;
}

.quiz-card__body p {
    color: var(--text-soft);
    font-size: .93rem;
    line-height: 1.55;
}

.quiz-card__foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-top: auto;
}

.quiz-card__link {
    border-radius: var(--radius-md);
    inset: 0;
    position: absolute;
    z-index: 3;
}

.quiz-card__link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.quiz-card--featured {
    grid-column: 1 / -1;
    background: var(--forest);
    border-color: transparent;
    color: var(--sand-50);
}

.quiz-card--featured .quiz-card__body {
    padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem);
}

.quiz-card--featured .quiz-card__body p {
    color: rgba(252, 250, 244, .75);
    font-size: 1.02rem;
    max-width: 52ch;
}

@media (min-width: 52rem) {
    .quiz-card--featured {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    }

    .quiz-card--featured .quiz-card__media {
        aspect-ratio: auto;
        height: 100%;
        order: 2;
    }

    .quiz-card--featured .quiz-card__media::after {
        background: linear-gradient(90deg, var(--forest) 2%, rgba(10, 31, 24, .25) 45%, transparent);
    }

    .quiz-card--featured .quiz-card__title {
        display: none;
    }
}

/* medidor de dificuldade: cor + barras + texto */
.difficulty {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
}

.difficulty__bars {
    display: flex;
    gap: 3px;
}

.difficulty__bars i {
    background: var(--sand-300);
    border-radius: 2px;
    display: block;
    height: 12px;
    width: 4px;
}

.difficulty--1 i:nth-child(-n+1),
.difficulty--2 i:nth-child(-n+2),
.difficulty--3 i:nth-child(-n+3) {
    background: var(--accent-bright);
}

.difficulty--1 {
    --accent-bright: var(--leaf-bright);
    color: var(--leaf);
}

.difficulty--2 {
    --accent-bright: var(--river-bright);
    color: var(--river);
}

.difficulty--3 {
    --accent-bright: var(--clay-bright);
    color: var(--clay);
}

.chip {
    align-items: center;
    background: var(--sand-100);
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    color: var(--text-soft);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 600;
    gap: .4rem;
    padding: .35rem .75rem;
    white-space: nowrap;
}

.chip--accent {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    color: color-mix(in srgb, var(--accent) 85%, #000);
}

.chip--onDark {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    color: rgba(252, 250, 244, .85);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* cartões de conteúdo e utilidades */
.tile {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: clamp(1.35rem, 1.1rem + .8vw, 2rem);
    position: relative;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.tile--link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tile h3 {
    margin-bottom: .55rem;
}

.tile p {
    color: var(--text-soft);
    font-size: .95rem;
}

.tile__icon {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 14px;
    color: color-mix(in srgb, var(--accent) 88%, #000);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 46px;
}

.tile__num {
    color: color-mix(in srgb, var(--accent) 70%, transparent);
    font-family: "Fraunces", Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: .5rem;
}

/* --------------------------------------------------- 10. blocos de apoio */

.panel {
    background: linear-gradient(180deg, #fff, var(--sand-50));
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.75rem);
}

.panel--dark {
    background:
        radial-gradient(90% 80% at 85% 0%, rgba(28, 179, 127, .28), transparent 60%),
        linear-gradient(180deg, #0b2219, #061510);
    border-color: rgba(255, 255, 255, .1);
    color: var(--sand-50);
}

.panel--dark p {
    color: rgba(252, 250, 244, .78);
}

.callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent-bright);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.15rem 1.4rem;
}

.callout strong {
    display: block;
    margin-bottom: .3rem;
}

.callout p {
    color: color-mix(in srgb, var(--text) 85%, var(--accent));
    font-size: .95rem;
}

.fact-list {
    display: grid;
    gap: 1px;
    background: var(--sand-200);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fact-list div {
    background: #fff;
    padding: 1rem 1.15rem;
}

.fact-list dt {
    color: var(--text-mute);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fact-list dd {
    font-weight: 600;
    margin: .25rem 0 0;
}

@media (min-width: 40rem) {
    .fact-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.species-grid {
    display: grid;
    gap: 1px;
    background: var(--sand-200);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (min-width: 40rem) {
    .species-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .species-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.species-grid article {
    background: #fff;
    padding: 1.2rem 1.3rem;
}

.species-grid h3 {
    font-size: 1.05rem;
}

.species-grid p {
    color: var(--text-soft);
    font-size: .9rem;
    margin-top: .35rem;
}

.check-list {
    display: grid;
    gap: .8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li {
    display: flex;
    gap: .75rem;
}

.check-list svg {
    color: var(--accent-bright);
    flex: none;
    margin-top: .2rem;
}

.source-list {
    display: grid;
    gap: .9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.source-list li {
    border-left: 3px solid var(--sand-300);
    padding-left: 1rem;
}

.source-list strong {
    display: block;
    font-size: .98rem;
}

.source-list span {
    color: var(--text-mute);
    display: block;
    font-size: .85rem;
}

.updated-note {
    align-items: center;
    color: var(--text-mute);
    display: inline-flex;
    font-size: .84rem;
    gap: .5rem;
}

.updated-note svg {
    flex: none;
}

/* ---------------------------------------------------- 11. texto editorial */

.prose {
    font-size: 1.06rem;
    max-width: 68ch;
}

.prose > * + * {
    margin-top: 1.25rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    margin-top: 2.75rem;
    scroll-margin-top: 6rem;
}

.prose h3 {
    margin-top: 2rem;
}

.prose ul,
.prose ol {
    display: grid;
    gap: .6rem;
    padding-left: 1.35rem;
}

.prose li::marker {
    color: var(--accent-bright);
}

.prose blockquote {
    border-left: 4px solid var(--accent-bright);
    color: var(--text-soft);
    font-style: italic;
    padding-left: 1.25rem;
}

.prose a {
    font-weight: 550;
}

.prose figure {
    margin: 2rem 0;
}

.prose figure img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.prose figcaption {
    color: var(--text-mute);
    font-size: .85rem;
    margin-top: .6rem;
}

.article-layout {
    display: grid;
    gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

@media (min-width: 68rem) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 19rem;
        align-items: start;
    }

    .article-aside {
        position: sticky;
        top: 6rem;
    }
}

.article-aside {
    display: grid;
    gap: 1.25rem;
}

.aside-box {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.4rem;
}

.aside-box h2 {
    font-family: "Inter", sans-serif;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .14em;
    margin-bottom: .9rem;
    text-transform: uppercase;
    color: var(--text-mute);
}

.aside-box ul {
    display: grid;
    gap: .65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aside-box a {
    font-size: .93rem;
    font-weight: 550;
    text-decoration: none;
}

.byline {
    align-items: center;
    border-block: 1px solid var(--sand-200);
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: .5rem 1.5rem;
    margin-top: 2rem;
    padding-block: 1rem;
}

/* ------------------------------------------------- 12. seleção da partida */

.setup {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--text);
    overflow: hidden;
    /* O formulário se organiza pela largura da própria caixa, e não pela
       da janela: ele aparece dentro de uma coluna estreita. */
    container-type: inline-size;
}

.setup h2 {
    color: var(--text);
}

.setup__head {
    border-bottom: 1px solid var(--sand-200);
    padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}

.setup__body {
    display: grid;
    gap: 1.75rem;
    padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}

.field > legend,
.field__label {
    display: block;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .1em;
    margin-bottom: .3rem;
    text-transform: uppercase;
    color: var(--text-mute);
}

.field {
    border: 0;
    margin: 0;
    padding: 0;
}

.field__hint {
    color: var(--text-soft);
    font-size: .88rem;
    margin-bottom: .9rem;
}

.option-row {
    display: grid;
    gap: .7rem;
    grid-template-columns: minmax(0, 1fr);
}

/* As faixas usam minmax(0, 1fr) para poderem encolher: com 1fr puro, a
   linha nunca fica menor que o conteúdo e vaza para fora do cartão. */
@container (min-width: 19rem) {
    .option-row--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .option-row--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 44rem) {
    .option-row--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pick {
    cursor: pointer;
    display: block;
    position: relative;
}

.pick input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.pick__box {
    background: var(--sand-50);
    border: 1.5px solid var(--sand-200);
    border-radius: var(--radius-sm);
    display: block;
    height: 100%;
    padding: .95rem 1.1rem;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.pick:hover .pick__box {
    border-color: var(--sand-300);
    transform: translateY(-2px);
}

.pick input:checked + .pick__box {
    background: var(--accent-soft);
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 18%, transparent);
}

.pick input:focus-visible + .pick__box {
    outline: 3px solid var(--river-bright);
    outline-offset: 2px;
}

.pick input:disabled + .pick__box {
    cursor: not-allowed;
    opacity: .45;
}

.pick__title {
    align-items: center;
    display: flex;
    font-weight: 650;
    gap: .5rem;
    justify-content: space-between;
}

/* Três opções lado a lado deixam a caixa estreita: o rótulo acompanha. */
@container (min-width: 19rem) {
    .option-row--3 .pick__box {
        padding: .9rem .95rem;
    }

    .option-row--3 .pick__title {
        font-size: .9rem;
        gap: .3rem;
    }

    .option-row--3 .pick__meta {
        font-size: .78rem;
    }
}

.pick__meta {
    color: var(--text-mute);
    display: block;
    font-size: .82rem;
    margin-top: .25rem;
}

.pick__count {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    color: var(--text-mute);
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .5rem;
}

/* ------------------------------------------------------- 13. tela do quiz */

body.playing {
    background: #061510;
    color: var(--sand-50);
}

.play {
    background:
        radial-gradient(65% 50% at 80% 0%, rgba(28, 179, 127, .22), transparent 60%),
        radial-gradient(55% 45% at 10% 10%, rgba(46, 147, 216, .18), transparent 60%),
        radial-gradient(75% 60% at 50% 110%, rgba(224, 161, 40, .16), transparent 60%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.play::after {
    background-image: var(--noise);
    content: "";
    inset: 0;
    mix-blend-mode: overlay;
    opacity: .22;
    pointer-events: none;
    position: absolute;
}

.play__topbar {
    backdrop-filter: blur(12px);
    background: rgba(6, 21, 16, .78);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    position: sticky;
    top: 0;
    z-index: 20;
}

.play__topbar-inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-block: .9rem;
}

.play__quizname {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.02rem;
    font-weight: 600;
}

.play__meta {
    color: rgba(252, 250, 244, .55);
    font-size: .78rem;
    letter-spacing: .04em;
}

.play__scores {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.score-chip {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 600;
    gap: .4rem;
    padding: .45rem .85rem;
}

.score-chip strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1rem;
}

.progress {
    display: grid;
    gap: .5rem;
    padding-block: 1.5rem .5rem;
}

.progress__meta {
    align-items: baseline;
    color: rgba(252, 250, 244, .62);
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
}

.progress__meta strong {
    color: var(--sand-50);
}

.progress__track {
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress__fill {
    background: linear-gradient(90deg, var(--leaf-bright), var(--sun-bright));
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(28, 179, 127, .55);
    height: 100%;
    transition: width .5s var(--ease);
}

.progress__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.progress__dots i {
    background: rgba(255, 255, 255, .16);
    border-radius: 2px;
    flex: 1 1 6px;
    height: 4px;
    max-width: 22px;
}

.progress__dots i.is-hit {
    background: var(--river-bright);
}

.progress__dots i.is-miss {
    background: var(--clay-bright);
}

.progress__dots i.is-current {
    background: var(--sand-50);
}

.question {
    margin-inline: auto;
    padding-block: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem) 1rem;
    width: min(46rem, 100% - 2.5rem);
}

.question__label {
    align-items: center;
    color: rgba(252, 250, 244, .55);
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 600;
    gap: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.question__text {
    font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem);
    margin-top: .9rem;
}

.answers {
    display: grid;
    gap: .75rem;
    /* margem de segurança em volta das alternativas */
    margin-block: 1.75rem var(--answer-safe-gap);
    margin-inline: auto;
    width: min(46rem, 100% - 2.5rem);
}

.answer {
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1.5px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
    color: var(--sand-50);
    cursor: pointer;
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    text-align: left;
    transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    width: 100%;
}

.answer:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .32);
    transform: translateX(4px);
}

.answer:disabled {
    cursor: default;
}

.answer__key {
    align-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    display: flex;
    flex: none;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.answer__text {
    font-size: 1.04rem;
    line-height: 1.4;
}

.answer__mark {
    flex: none;
    margin-left: auto;
    opacity: 0;
}

/* Acerto = azul + ícone de confirmação; erro = terracota + ícone e faixa.
   A cor nunca é o único sinal. */
.answer.is-correct {
    background: rgba(46, 147, 216, .2);
    border-color: var(--river-bright);
    box-shadow: 0 0 0 3px rgba(46, 147, 216, .22);
}

.answer.is-correct .answer__key {
    background: var(--river-bright);
    border-color: var(--river-bright);
    color: #04121c;
}

.answer.is-wrong {
    background:
        repeating-linear-gradient(135deg, rgba(211, 112, 63, .16) 0 8px, rgba(211, 112, 63, .05) 8px 16px);
    border-color: var(--clay-bright);
}

.answer.is-wrong .answer__key {
    background: var(--clay-bright);
    border-color: var(--clay-bright);
    color: #1b0c04;
}

.answer.is-correct .answer__mark,
.answer.is-wrong .answer__mark {
    opacity: 1;
}

.answer.is-correct .answer__mark {
    color: var(--river-bright);
}

.answer.is-wrong .answer__mark {
    color: var(--clay-bright);
}

.answer.is-dim {
    opacity: .5;
}

/* Enquanto a resposta é registrada, a área para de aceitar novos cliques. */
.answers.is-locked {
    pointer-events: none;
}

.answers.is-locked .answer {
    opacity: .74;
}

.answers.is-locked .answer:focus,
.answers.is-locked .answer:active {
    opacity: 1;
}

.kbd-hint {
    color: rgba(252, 250, 244, .45);
    font-size: .8rem;
    margin-inline: auto;
    text-align: center;
    width: min(46rem, 100% - 2.5rem);
}

kbd {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    font-family: inherit;
    font-size: .78rem;
    padding: .1rem .38rem;
}

/* --------------------------------------------------------- 14. devolutiva */

.feedback {
    margin-inline: auto;
    width: min(46rem, 100% - 2.5rem);
}

.feedback__verdict {
    align-items: center;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
}

.feedback__verdict h2 {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.feedback__verdict p {
    font-size: .88rem;
    opacity: .85;
}

.feedback__verdict svg {
    flex: none;
}

.feedback__verdict--hit {
    background: rgba(46, 147, 216, .18);
    border: 1px solid rgba(46, 147, 216, .45);
    color: #cfe8fb;
}

.feedback__verdict--miss {
    background:
        repeating-linear-gradient(135deg, rgba(211, 112, 63, .18) 0 10px, rgba(211, 112, 63, .06) 10px 20px);
    border: 1px solid rgba(211, 112, 63, .5);
    color: #f8ddcc;
}

.feedback__blocks {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

.feedback__block {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
}

.feedback__block h3 {
    align-items: center;
    color: var(--sand-50);
    display: flex;
    font-family: "Inter", sans-serif;
    font-size: .74rem;
    font-weight: 650;
    gap: .55rem;
    letter-spacing: .14em;
    margin-bottom: .6rem;
    text-transform: uppercase;
}

.feedback__block h3 svg {
    color: var(--leaf-bright);
}

.feedback__block--fact h3 svg {
    color: var(--sun-bright);
}

.feedback__block p {
    color: rgba(252, 250, 244, .84);
    font-size: 1rem;
}

.feedback__source {
    align-items: center;
    color: rgba(252, 250, 244, .55);
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .45rem;
    margin-top: .8rem;
}

.feedback__source a {
    color: rgba(252, 250, 244, .8);
}

.feedback__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-block: 1.75rem var(--answer-safe-gap);
}

.play__foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: auto;
    padding-block: 1.25rem 2rem;
}

.play__foot-inner {
    align-items: center;
    color: rgba(252, 250, 244, .45);
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .75rem 1.5rem;
    justify-content: space-between;
}

.play__foot-inner a {
    color: rgba(252, 250, 244, .7);
}

/* --------------------------------------------------------- 15. resultado */

.result-hero {
    background: var(--forest);
    color: var(--sand-50);
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(6.5rem, 5.5rem + 5vw, 8.5rem) clamp(3rem, 2.5rem + 3vw, 5rem);
    position: relative;
}

.result-hero::before {
    background:
        radial-gradient(60% 55% at 22% 12%, rgba(28, 179, 127, .34), transparent 62%),
        radial-gradient(65% 55% at 82% 25%, rgba(46, 147, 216, .3), transparent 62%),
        linear-gradient(180deg, #04120d, #0a201a 55%, #061711);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.result-hero::after {
    background-image: var(--noise);
    content: "";
    inset: 0;
    mix-blend-mode: overlay;
    opacity: .28;
    position: absolute;
    z-index: -1;
}

.result-grid {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 54rem) {
    .result-grid {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

.dial {
    align-items: center;
    aspect-ratio: 1;
    background: conic-gradient(var(--dial-color) calc(var(--dial) * 1%), rgba(255, 255, 255, .1) 0);
    border-radius: 50%;
    display: grid;
    justify-items: center;
    margin-inline: auto;
    place-content: center;
    position: relative;
    width: clamp(11rem, 9rem + 8vw, 14.5rem);
}

.dial::before {
    background: #071b14;
    border-radius: 50%;
    content: "";
    inset: 12px;
    position: absolute;
}

.dial::after {
    background: radial-gradient(circle, var(--dial-color), transparent 70%);
    border-radius: 50%;
    content: "";
    filter: blur(24px);
    inset: -12%;
    opacity: .35;
    position: absolute;
    z-index: -1;
}

.dial__value {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    position: relative;
}

.dial__label {
    color: rgba(252, 250, 244, .6);
    font-size: .78rem;
    letter-spacing: .12em;
    position: relative;
    text-transform: uppercase;
}

.result-stats {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    margin-top: 1.75rem;
    overflow: hidden;
}

@media (min-width: 30rem) {
    .result-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.result-stats div {
    background: rgba(6, 21, 16, .75);
    padding: 1rem 1.15rem;
}

.result-stats dt {
    color: rgba(252, 250, 244, .55);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.result-stats dd {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: .2rem 0 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.share-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.share-row__label {
    color: rgba(252, 250, 244, .6);
    font-size: .82rem;
    margin-right: .3rem;
}

.share-btn {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--sand-50);
    cursor: pointer;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 600;
    gap: .45rem;
    padding: .6rem 1.05rem;
    text-decoration: none;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.share-btn:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    transform: translateY(-2px);
}

/* revisão */
.review {
    display: grid;
    gap: .85rem;
}

.review__item {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-left: 5px solid var(--review-color, var(--sand-300));
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.review__item--hit {
    --review-color: var(--river-bright);
}

.review__item--miss {
    --review-color: var(--clay-bright);
}

.review__summary {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: .9rem;
    list-style: none;
    padding: 1.05rem 1.25rem;
}

.review__summary::-webkit-details-marker {
    display: none;
}

.review__summary:hover {
    background: var(--sand-50);
}

.review__num {
    align-items: center;
    background: var(--sand-100);
    border-radius: 8px;
    display: flex;
    flex: none;
    font-size: .82rem;
    font-weight: 700;
    height: 1.85rem;
    justify-content: center;
    width: 1.85rem;
}

.review__q {
    flex: 1;
    font-weight: 550;
    line-height: 1.4;
}

.review__badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: none;
    font-size: .74rem;
    font-weight: 700;
    gap: .3rem;
    padding: .3rem .7rem;
}

.review__item--hit .review__badge {
    background: var(--river-soft);
    color: var(--river);
}

.review__item--miss .review__badge {
    background: var(--clay-soft);
    color: var(--clay);
}

.review__body {
    border-top: 1px solid var(--sand-200);
    padding: 1.15rem 1.25rem 1.35rem;
}

.review__options {
    display: grid;
    gap: .45rem;
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
}

.review__options li {
    align-items: center;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-xs);
    display: flex;
    font-size: .95rem;
    gap: .65rem;
    padding: .6rem .8rem;
}

.review__options li.is-correct {
    background: var(--river-soft);
    border-color: color-mix(in srgb, var(--river) 35%, transparent);
    font-weight: 600;
}

.review__options li.is-chosen-wrong {
    background:
        repeating-linear-gradient(135deg, rgba(211, 112, 63, .14) 0 8px, rgba(211, 112, 63, .04) 8px 16px);
    border-color: color-mix(in srgb, var(--clay) 40%, transparent);
}

.review__options .tagette {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-left: auto;
    text-transform: uppercase;
    white-space: nowrap;
}

.review__options li.is-correct .tagette {
    color: var(--river);
}

.review__options li.is-chosen-wrong .tagette {
    color: var(--clay);
}

.review__note {
    color: var(--text-soft);
    font-size: .96rem;
}

.review__note + .review__note {
    margin-top: .8rem;
}

.review__note strong {
    color: var(--text);
}

/* --------------------------------------------------------- 16. histórico */

.history-empty {
    background: var(--sand-100);
    border: 1px dashed var(--sand-300);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.history-table {
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.history-list {
    display: grid;
    gap: .75rem;
}

.history-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: 1rem 1.15rem;
}

.history-item__score {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    min-width: 4.5rem;
}

.history-item__name {
    flex: 1;
    font-weight: 600;
    min-width: 12rem;
}

.history-item__meta {
    color: var(--text-mute);
    font-size: .85rem;
}

/* ------------------------------------------------------------ 17. rodapé */

.site-footer {
    background: var(--night);
    color: rgba(252, 250, 244, .68);
    margin-top: clamp(3rem, 2.5rem + 3vw, 5rem);
    padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem) 2rem;
    position: relative;
}

.site-footer::before {
    background: linear-gradient(90deg, var(--leaf-bright), var(--sun-bright), var(--river-bright), var(--clay-bright));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.site-footer a {
    color: rgba(252, 250, 244, .78);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--leaf-bright);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 44rem) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    }
}

.footer-grid h2 {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-grid ul {
    display: grid;
    gap: .55rem;
    font-size: .92rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-about p {
    font-size: .92rem;
    margin-top: 1rem;
    max-width: 34ch;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    font-size: .84rem;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    margin-top: 2.75rem;
    padding-top: 1.5rem;
}

/* ------------------------------------------------- 18. aviso de consentimento */

.consent {
    backdrop-filter: blur(14px);
    background: rgba(6, 21, 16, .95);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-md);
    bottom: 1.25rem;
    box-shadow: var(--shadow-lg);
    color: var(--sand-50);
    left: 1.25rem;
    max-width: 26rem;
    padding: 1.25rem 1.35rem;
    position: fixed;
    z-index: 70;
}

.consent[hidden] {
    display: none;
}

.consent p {
    color: rgba(252, 250, 244, .78);
    font-size: .88rem;
    margin-bottom: 1rem;
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* ------------------------------------------------------- 19. utilidades */

.split {
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 56rem) {
    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .split--wide-left {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    }
}

.media-frame {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.media-frame img {
    width: 100%;
}

.media-frame--offset {
    transform: rotate(-1.2deg);
}

.decor-leaf {
    color: color-mix(in srgb, var(--leaf) 12%, transparent);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.section--sand {
    background: linear-gradient(180deg, var(--sand-100), var(--sand-50));
}

.section--sand::before,
.section--sand::after {
    background: var(--sand-200);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.section--sand::before {
    top: 0;
}

.section--sand::after {
    bottom: 0;
}

.center {
    text-align: center;
}

.center .lead,
.center .section-head__text {
    margin-inline: auto;
}

.page-head {
    background: var(--forest);
    color: var(--sand-50);
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(6.5rem, 5.5rem + 5vw, 8.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
    position: relative;
}

.page-head::before {
    background:
        radial-gradient(70% 60% at 85% 10%, color-mix(in srgb, var(--accent-bright) 32%, transparent), transparent 62%),
        linear-gradient(180deg, #04120d, #0a201a 60%, #071811);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.page-head::after {
    background-image: var(--noise);
    content: "";
    inset: 0;
    mix-blend-mode: overlay;
    opacity: .26;
    position: absolute;
    z-index: -1;
}

.page-head h1 {
    margin-top: 1rem;
}

.page-head .lead {
    color: rgba(252, 250, 244, .78);
    margin-top: 1.1rem;
}

.page-head__meta {
    align-items: center;
    color: rgba(252, 250, 244, .55);
    display: flex;
    flex-wrap: wrap;
    font-size: .84rem;
    gap: .6rem 1.5rem;
    margin-top: 1.75rem;
}

.page-head .eyebrow {
    color: color-mix(in srgb, var(--accent-bright) 92%, #fff);
}

.toc {
    background: var(--sand-100);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
}

.toc h2 {
    font-family: "Inter", sans-serif;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .14em;
    margin-bottom: .75rem;
    text-transform: uppercase;
    color: var(--text-mute);
}

.toc ol {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.toc a {
    font-size: .93rem;
    text-decoration: none;
}

.not-found {
    padding-block: clamp(5rem, 4rem + 6vw, 9rem);
    text-align: center;
}

.not-found__code {
    color: color-mix(in srgb, var(--leaf) 25%, transparent);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(5rem, 3rem + 12vw, 10rem);
    font-weight: 600;
    line-height: .85;
}

/* --------------------------------------------------------- 20. responsivo */

@media (max-width: 60rem) {
    .hero__grid,
    .hero--compact .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__art {
        order: -1;
        max-width: 32rem;
    }

    .hero__badge {
        left: auto;
        right: 0;
        bottom: -1rem;
    }

    .hero__stats {
        gap: 1.5rem;
    }
}

@media (max-width: 56rem) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 40rem) {
    :root {
        --shell: min(1180px, 100% - 1.75rem);
        --answer-safe-gap: 2.5rem;
    }

    .site-header .brand__tag {
        display: none;
    }

    .brand__logo {
        height: 26px;
    }

    .hero__art::before {
        display: none;
    }

    .hero__badge {
        display: none;
    }

    .hero__stat strong {
        font-size: 1.5rem;
    }

    .answer {
        gap: .8rem;
        padding: 1rem 1.05rem;
    }

    .answer__key {
        height: 2rem;
        width: 2rem;
    }

    .kbd-hint {
        display: none;
    }

    .feedback__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .feedback__actions .btn {
        width: 100%;
    }

    .consent {
        left: .75rem;
        right: .75rem;
        max-width: none;
    }

    .review__summary {
        flex-wrap: wrap;
    }

    .review__q {
        order: 3;
        flex-basis: 100%;
    }
}

/* ------------------------------------------------------ 21. preferências */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .consent,
    .share-row,
    .result-actions {
        display: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
