:root {
    --bg: #08111f;
    --bg-soft: #101d31;
    --panel: rgba(16, 29, 49, 0.82);
    --panel-strong: rgba(22, 38, 64, 0.95);
    --gold: #d7ad52;
    --gold-soft: #f1d693;
    --text: #f4f0e8;
    --muted: #b5c0d0;
    --line: rgba(215, 173, 82, 0.22);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(215, 173, 82, 0.16), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(87, 121, 173, 0.18), transparent 32%),
        linear-gradient(180deg, #06101e 0%, #0b1425 45%, #050912 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.7; color: var(--muted); }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(5, 10, 18, 0.75);
    border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark { color: var(--gold); font-size: 1.4rem; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover { color: var(--gold-soft); }
.admin-link { border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.menu-toggle { display: none; background: none; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

.hero { padding: 92px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--gold-soft); font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 0.95; margin: 12px 0 20px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 14px; }
h3 { margin: 0 0 10px; font-size: 1.22rem; }
.lead { font-size: 1.18rem; max-width: 720px; }
.quote { color: var(--gold-soft); font-style: italic; }
.quote.small { font-size: 1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; padding: 13px 18px; border-radius: 999px; font-weight: 700; }
.btn.primary { background: linear-gradient(135deg, var(--gold), #f4d98d); color: #16110a; }
.btn.secondary { border: 1px solid var(--line); color: var(--gold-soft); }
.hero-card, .card, .book-card, .member-card, .side-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card { padding: 34px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.sigil { font-size: 6rem; color: var(--gold); text-shadow: 0 0 30px rgba(215, 173, 82, 0.25); }

.section { padding: 72px 0; }
.section.alt { background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 26px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.status { display: inline-flex; color: #17100a; background: var(--gold-soft); padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; margin-bottom: 12px; }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: start; }
.mini-list { display: grid; gap: 12px; }
.mini-list a, .side-item { display: grid; gap: 5px; padding: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 16px; }
.mini-list span, .side-item span { color: var(--muted); }
.text-link { color: var(--gold-soft); font-weight: 800; }

.page-hero { padding: 74px 0 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.book-list { display: grid; gap: 26px; }
.book-card { display: grid; grid-template-columns: 160px 1fr; gap: 26px; padding: 26px; }
.book-cover { min-height: 230px; border-radius: 18px; background: linear-gradient(160deg, rgba(215,173,82,.28), rgba(51,76,116,.24)); border: 1px solid var(--line); display: grid; place-items: center; }
.book-cover span { font-size: 5rem; color: var(--gold-soft); font-weight: 900; }
.gold-list { padding-left: 20px; color: var(--muted); line-height: 1.9; }
.gold-list li::marker { color: var(--gold); }
.story-card { min-height: 190px; }
.number { color: var(--gold-soft); font-weight: 900; letter-spacing: 0.1em; }
.member-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.member-card.compact { padding: 16px; }
.avatar { width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; color: #15100a; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-size: 1.8rem; font-weight: 900; }
.small-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 1.2rem; }
.spaced { margin-top: 44px; }
.encyclopedia-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.side-panel { padding: 22px; position: sticky; top: 96px; }
.side-panel h2 { font-size: 1.28rem; margin-top: 24px; }
.side-panel h2:first-child { margin-top: 0; }
.footer { padding: 34px 0; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.footer-right { text-align: right; }

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; left: 18px; right: 18px; top: 70px; flex-direction: column; align-items: stretch; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
    .nav-links.open { display: flex; }
    .hero-grid, .split, .book-card, .encyclopedia-layout, .footer-grid { grid-template-columns: 1fr; }
    .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .footer-right { text-align: left; }
    .hero { padding-top: 64px; }
}

.member-photo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(231, 198, 107, 0.45);
    box-shadow: 0 0 20px rgba(231, 198, 107, 0.18);
    flex-shrink: 0;
}

.small-photo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.reading-page {
    max-width: 880px;
    padding-top: 48px;
    padding-bottom: 80px;
}

.reading-page h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.chapter-summary {
    color: rgba(245, 235, 210, 0.78);
    font-size: 1.05rem;
    margin-bottom: 36px;
    border-left: 3px solid rgba(231, 198, 107, 0.6);
    padding-left: 18px;
}

.chapter-content {
    background: rgba(12, 16, 28, 0.72);
    border: 1px solid rgba(231, 198, 107, 0.18);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.chapter-content p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: rgba(255, 248, 230, 0.9);
    margin-bottom: 1.4rem;
}

.back-link-area {
    margin-top: 32px;
}


.book-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.book-cover {
    width: 100%;
    max-width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(231, 198, 107, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    margin-bottom: 8px;
}

.book-detail-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 36px;
    align-items: center;
}

.book-cover-large {
    width: 260px;
    height: 380px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(231, 198, 107, 0.45);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 800px) {
    .book-detail-hero {
        grid-template-columns: 1fr;
    }

    .book-cover-large {
        width: 220px;
        height: 320px;
    }
}


.home-crest-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.home-crest-text h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    margin-bottom: 18px;
}

.home-crest-text p {
    max-width: 680px;
    color: rgba(255, 248, 230, 0.82);
    line-height: 1.8;
    font-size: 1.08rem;
}

.home-crest-image-area {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.home-crest-image {
    width: 280px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(231, 198, 107, 0.45);
    box-shadow:
        0 0 30px rgba(231, 198, 107, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 850px) {
    .home-crest-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-crest-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-crest-image {
        width: 220px !important;
    }
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-crest {
    width: 34px !important;
    height: 34px !important;
    object-fit: cover !important;
    border-radius: 8px;
    border: 1px solid rgba(231, 198, 107, 0.45);
    flex-shrink: 0;
}

.home-crest-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.home-crest-image-area {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.home-crest-image {
    width: 280px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(231, 198, 107, 0.45);
    box-shadow:
        0 0 30px rgba(231, 198, 107, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.45);
}

.footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.95), rgba(3, 7, 14, 0.98));
}

.footer-enhanced {
    align-items: start;
}

.footer-brand-area strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.footer-quote {
    color: var(--gold-soft);
    font-style: italic;
    margin: 0;
    max-width: 420px;
}

.footer-legal-area {
    text-align: right;
    max-width: 620px;
    justify-self: end;
}

.footer-legal-area p {
    margin: 0 0 8px;
    line-height: 1.7;
    color: rgba(244, 240, 232, 0.78);
    font-size: 0.95rem;
}

.footer-copy {
    color: var(--gold-soft) !important;
    font-weight: 700;
}

.footer-warning {
    font-size: 0.9rem !important;
    color: rgba(244, 240, 232, 0.62) !important;
}

@media (max-width: 860px) {
    .footer-legal-area {
        text-align: left;
        justify-self: start;
    }
}

.footer-disclaimer {
    font-size: 0.82rem !important;
    color: rgba(244, 240, 232, 0.5) !important;
    margin-top: 10px !important;
}

.challenge-layout {
    display: grid;
    gap: 24px;
}

.challenge-intro {
    padding: 26px;
}

.challenge-form {
    display: grid;
    gap: 20px;
}

.quiz-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.quiz-card h3 {
    margin-bottom: 18px;
    color: var(--gold-soft);
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(215, 173, 82, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: 0.2s;
}

.quiz-option:hover {
    border-color: rgba(215, 173, 82, 0.5);
    background: rgba(215, 173, 82, 0.08);
}

.quiz-option input {
    margin-top: 4px;
    accent-color: var(--gold);
}

.quiz-option span {
    color: rgba(244, 240, 232, 0.86);
    line-height: 1.6;
}

.challenge-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.challenge-result {
    padding: 30px;
    border-color: rgba(241, 214, 147, 0.45);
    background:
        radial-gradient(circle at top left, rgba(215, 173, 82, 0.16), transparent 35%),
        var(--panel);
}

.challenge-result h2 {
    color: var(--gold-soft);
}

.challenge-result h3 {
    color: var(--gold-soft);
    margin-top: 0;
}

.result-divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}

.result-note {
    margin-top: 24px;
    font-size: 0.92rem;
    color: rgba(244, 240, 232, 0.58);
}

.hidden {
    display: none;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.guardian-type {
    color: var(--gold-soft);
    font-weight: 800;
    margin-top: -4px;
}

#resultGuardianManifestation {
    border-left: 3px solid rgba(215, 173, 82, 0.55);
    padding-left: 16px;
    margin-top: 18px;
    color: rgba(244, 240, 232, 0.78);
}

@media (max-width: 760px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
    }
}

.library-grid {
    display: grid;
    gap: 28px;
}

.library-book-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.library-cover-area {
    display: flex;
    justify-content: center;
}

.library-cover {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(231, 198, 107, 0.42);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.library-cover-placeholder {
    width: 220px;
    height: 320px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    border: 1px solid rgba(231, 198, 107, 0.35);
    background: linear-gradient(160deg, rgba(215,173,82,.24), rgba(51,76,116,.22));
}

.library-cover-placeholder span {
    font-size: 5rem;
    color: var(--gold-soft);
    font-weight: 900;
}

.library-book-content h2 {
    margin-top: 12px;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.book-meta span {
    border: 1px solid rgba(215, 173, 82, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(244, 240, 232, 0.74);
    font-size: 0.9rem;
}

.book-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 820px) {
    .library-book-card {
        grid-template-columns: 1fr;
    }

    .library-cover {
        width: 190px;
        height: 280px;
    }

    .library-cover-placeholder {
        width: 190px;
        height: 280px;
    }
}

.story-category {
    display: grid;
    gap: 22px;
}

.story-card {
    position: relative;
    overflow: hidden;
}

.story-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(215, 173, 82, 0.45), transparent);
}

.result-symbol-mark {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 10px 0 24px;
    border-radius: 24px;
    border: 1px solid rgba(215, 173, 82, 0.45);
    background:
        radial-gradient(circle, rgba(215, 173, 82, 0.28), rgba(255, 255, 255, 0.04));
    color: var(--gold-soft);
    font-size: 3rem;
    box-shadow:
        0 0 30px rgba(215, 173, 82, 0.18),
        0 20px 50px rgba(0, 0, 0, 0.35);
}

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

.result-instagram {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 173, 82, 0.22);
    background: rgba(255, 255, 255, 0.035);
}

.result-instagram p {
    margin-top: 0;
}

.story-type {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px;
    padding: 5px 10px;
    border: 1px solid rgba(215, 173, 82, 0.28);
    border-radius: 999px;
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(215, 173, 82, 0.08);
}

.challenge-result {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.challenge-result::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5, 10, 18, 0.92), rgba(5, 10, 18, 0.72)),
        radial-gradient(circle at top right, rgba(215, 173, 82, 0.16), transparent 35%);
    z-index: 0;
}

.challenge-result > * {
    position: relative;
    z-index: 1;
}

.challenge-result.guardian-bg-animal {
    background-image: url("../img/guardioes/fundos/fundo_animal_01.jpg");
}

.challenge-result.guardian-bg-exotico {
    background-image: url("../img/guardioes/fundos/fundo_exotico_01.jpg");
}

.challenge-result.guardian-bg-espiritual {
    background-image: url("../img/guardioes/fundos/fundo_espiritual_01.jpg");
}

.challenge-result.guardian-bg-astral {
    background-image: url("../img/guardioes/fundos/fundo_astral_01.jpg");
}

.story-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(215, 173, 82, 0.28);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.story-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 24px;
    margin: 28px 0;
    border: 1px solid rgba(215, 173, 82, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 760px) {
    .story-card-image {
        height: 150px;
    }

    .story-detail-image {
        max-height: 300px;
    }
}

/* Notícias / Novidades */
.news-card {
    overflow: hidden;
}

.news-card-image,
.news-card-video {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(215, 173, 82, 0.28);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.news-card-placeholder {
    width: 100%;
    min-height: 210px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 173, 82, 0.28);
    background:
        radial-gradient(circle at top, rgba(215, 173, 82, 0.18), transparent 42%),
        rgba(255, 255, 255, 0.04);
    color: var(--gold-soft);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.news-detail-video {
    width: 100%;
    max-height: 520px;
    border-radius: 24px;
    margin: 28px 0;
    border: 1px solid rgba(215, 173, 82, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    background: #000;
}

.news-detail-card .story-text {
    margin-top: 12px;
}

.section-action {
    margin-top: 26px;
    text-align: center;
}

@media (max-width: 760px) {
    .news-card-image,
    .news-card-video,
    .news-card-placeholder {
        height: 160px;
        min-height: 160px;
    }

    .news-detail-video {
        max-height: 340px;
    }
}

/* Language switcher */
.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.nav-links .language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-links .language-link.active {
    color: #111827;
    background: var(--gold);
}

@media (max-width: 860px) {
    .language-switch {
        justify-content: center;
        width: fit-content;
    }
}

/* Jogos */
.game-menu-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.game-menu-card::before {
    content: "";
    position: absolute;
    inset: -90px -90px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 173, 82, 0.18), transparent 68%);
    pointer-events: none;
}

.game-menu-card > * {
    position: relative;
    z-index: 1;
}

.game-menu-card-muted {
    opacity: 0.78;
}

.game-page-hero p {
    max-width: 820px;
}

.memory-game-section {
    padding-top: 34px;
}

.memory-game-shell {
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(215, 173, 82, 0.12), transparent 30%),
        radial-gradient(circle at 90% 25%, rgba(64, 108, 174, 0.14), transparent 28%),
        var(--panel);
}

.memory-game-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.memory-game-header p {
    max-width: 720px;
}

.memory-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.memory-stat {
    padding: 16px;
    border: 1px solid rgba(215, 173, 82, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.memory-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.memory-stat strong {
    display: block;
    color: var(--gold-soft);
    font-size: 1.45rem;
}

.memory-status {
    margin: 6px 0 22px;
    color: rgba(244, 240, 232, 0.82);
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    perspective: 1200px;
}

.memory-card {
    width: 100%;
    aspect-ratio: 1 / 2;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}

.memory-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    transform-style: preserve-3d;
    transition: transform 0.48s ease;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.memory-card-back {
    border: 1px solid rgba(215, 173, 82, 0.58);
    background:
        linear-gradient(135deg, rgba(215, 173, 82, 0.22), transparent 24%, rgba(215, 173, 82, 0.14) 74%, rgba(215, 173, 82, 0.32)),
        radial-gradient(circle at center, rgba(215, 173, 82, 0.18), transparent 52%),
        #070b13;
}

.memory-card-back::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(241, 214, 147, 0.54);
    border-radius: 12px;
}

.memory-back-mark {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(241, 214, 147, 0.7);
    color: var(--gold-soft);
    font-weight: 900;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 0 28px rgba(215, 173, 82, 0.22);
}

.memory-back-text {
    position: absolute;
    bottom: 16px;
    left: 10px;
    right: 10px;
    color: rgba(241, 214, 147, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.memory-card-front {
    transform: rotateY(180deg);
    border: 1px solid rgba(241, 214, 147, 0.5);
    background: #030711;
}

.memory-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memory-card.matched .memory-card-front {
    box-shadow:
        0 0 0 2px rgba(241, 214, 147, 0.28),
        0 0 35px rgba(215, 173, 82, 0.28),
        0 14px 34px rgba(0, 0, 0, 0.42);
}

.memory-result {
    max-width: 720px;
    margin: 32px auto 0;
    padding: 24px;
    border: 1px solid rgba(241, 214, 147, 0.42);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top, rgba(215, 173, 82, 0.16), transparent 40%),
        rgba(255, 255, 255, 0.04);
}

.memory-result h2 {
    color: var(--gold-soft);
}

@media (max-width: 760px) {
    .memory-game-shell {
        padding: 18px;
    }

    .memory-game-header {
        display: grid;
    }

    .memory-dashboard {
        grid-template-columns: 1fr;
    }

    .memory-board {
        gap: 8px;
    }

    .memory-card,
    .memory-card-inner,
    .memory-card-face {
        border-radius: 10px;
    }

    .memory-card-back::before {
        inset: 5px;
        border-radius: 8px;
    }

    .memory-back-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .memory-back-text {
        display: none;
    }
}

/* Defenda Sagittaria */
.game-menu-card-battle {
    background:
        radial-gradient(circle at top left, rgba(215, 173, 82, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(70, 117, 150, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.035);
}

.defense-game-section {
    padding-top: 16px;
}

.defense-game-shell {
    padding: 24px;
    overflow: hidden;
}

.defense-game-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.defense-game-header p {
    max-width: 780px;
}

.defense-game-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.defense-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.defense-stat {
    padding: 14px 16px;
    border: 1px solid rgba(241, 214, 147, 0.25);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.defense-stat span {
    display: block;
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.defense-stat strong {
    color: var(--gold-soft);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.defense-status {
    min-height: 28px;
    color: var(--text-soft);
    margin: 10px 0 16px;
}

.defense-canvas-frame {
    position: relative;
    border: 1px solid rgba(241, 214, 147, 0.36);
    border-radius: 18px;
    overflow: hidden;
    background: #050912;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.defense-canvas-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(215, 173, 82, 0.08), transparent 18%, transparent 82%, rgba(215, 173, 82, 0.08)),
        radial-gradient(circle at 16% 40%, rgba(230, 186, 82, 0.16), transparent 25%);
    z-index: 1;
}

#defenseCanvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    cursor: none;
    touch-action: none;
}

.defense-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.defense-info-card {
    border: 1px solid rgba(241, 214, 147, 0.22);
    border-radius: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.defense-info-card h3 {
    color: var(--gold-soft);
    margin-bottom: 8px;
}

.defense-orc-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.defense-orc-list li + li {
    margin-top: 6px;
}

.defense-result #defenseResultText {
    line-height: 1.75;
}

#memoryResultText {
    white-space: pre-line;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .defense-game-shell {
        padding: 18px;
    }

    .defense-game-header {
        display: grid;
    }

    .defense-game-actions {
        justify-content: flex-start;
    }

    .defense-dashboard,
    .defense-info-grid {
        grid-template-columns: 1fr;
    }

    .defense-stat strong {
        font-size: 1.4rem;
    }
}

/* Defenda Sagittaria — versão cinematográfica */
.defense-epic-page {
    padding: 42px 0 72px;
    background:
        radial-gradient(circle at 16% 12%, rgba(215, 173, 82, 0.12), transparent 28%),
        radial-gradient(circle at 74% 12%, rgba(49, 104, 151, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(3, 8, 15, 0.25), rgba(3, 8, 15, 0));
}

.defense-epic-page > .container {
    width: min(1580px, calc(100% - 36px));
}

.defense-epic-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 18px;
}

.defense-title-block,
.defense-orc-codex,
.defense-panel-card,
.defense-war-main {
    border: 1px solid rgba(241, 214, 147, 0.25);
    background: rgba(3, 9, 16, 0.64);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.defense-title-block {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 20px 28px;
    border-radius: 22px;
}

.defense-crest {
    width: 160px;
    max-width: 100%;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}

.defense-title-block h1 {
    margin: 8px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.65rem, 5.2vw, 5.4rem);
    line-height: 0.92;
    color: var(--gold-soft);
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.46), 0 0 24px rgba(215, 173, 82, 0.18);
}

.defense-subtitle {
    max-width: 760px;
    margin: 0;
    color: #dce7f3;
    font-size: 1.02rem;
}

.defense-orc-codex {
    border-radius: 22px;
    padding: 18px 20px;
}

.defense-orc-codex h2,
.defense-panel-card h2 {
    color: var(--gold-soft);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.18rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 12px;
}

.defense-orc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.defense-orc-cards article {
    min-height: 160px;
    display: grid;
    grid-template-rows: 1fr auto auto;
    justify-items: center;
    text-align: center;
    padding: 8px 8px 12px;
    border-left: 1px solid rgba(241, 214, 147, 0.13);
    background: radial-gradient(circle at center 36%, rgba(215, 173, 82, 0.12), transparent 45%);
}

.defense-orc-cards article:first-child {
    border-left: 0;
}

.defense-orc-cards img {
    height: 102px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.75));
}

.defense-orc-cards strong {
    color: var(--text);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.defense-orc-cards span {
    color: var(--gold-soft);
    font-weight: 800;
    margin-top: 4px;
}

.defense-war-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
    align-items: start;
}

.defense-war-main {
    border-radius: 22px;
    padding: 14px;
    overflow: hidden;
}

.defense-topbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.defense-status {
    min-height: 24px;
    margin: 0 0 10px;
    color: var(--gold-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.defense-cinematic-frame {
    border-radius: 14px;
    border: 1px solid rgba(241, 214, 147, 0.38);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.58),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 0 110px rgba(0, 0, 0, 0.30);
}

.defense-cinematic-frame::before {
    background:
        linear-gradient(90deg, rgba(215, 173, 82, 0.14), transparent 16%, transparent 86%, rgba(215, 173, 82, 0.1)),
        radial-gradient(circle at 16% 55%, rgba(230, 186, 82, 0.2), transparent 20%);
    z-index: 3;
}

#defenseCanvas {
    aspect-ratio: 1400 / 540;
    cursor: none;
}

.defense-hud {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(150px, 220px) minmax(130px, 170px);
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px 0;
    pointer-events: none;
}

.defense-hud-panel {
    min-height: 62px;
    padding: 9px 16px;
    background: linear-gradient(180deg, rgba(3, 8, 15, 0.88), rgba(3, 8, 15, 0.52));
    border: 1px solid rgba(241, 214, 147, 0.34);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.defense-hud-panel span {
    display: block;
    color: var(--gold-soft);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.defense-hud-panel strong {
    display: block;
    margin-top: 4px;
    color: #f5d875;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    line-height: 1;
}

.defense-hud-score,
.defense-hud-time {
    text-align: center;
}

.defense-ingame-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 4;
    width: min(460px, calc(100% - 36px));
    padding: 12px 20px;
    border: 1px solid rgba(241, 214, 147, 0.36);
    background: rgba(3, 8, 15, 0.58);
    color: var(--gold-soft);
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.defense-side-panel {
    display: grid;
    gap: 16px;
}

.defense-panel-card {
    border-radius: 16px;
    padding: 18px 16px;
}

.defense-panel-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.defense-rank-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.defense-rank-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(241, 214, 147, 0.12);
}

.defense-rank-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.defense-rank-list span {
    color: var(--gold-soft);
    font-weight: 800;
    font-size: 0.86rem;
}

.defense-rank-list strong {
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.defense-result {
    margin-top: 22px;
    max-width: 760px;
}

@media (max-width: 1120px) {
    .defense-epic-intro,
    .defense-war-layout {
        grid-template-columns: 1fr;
    }

    .defense-side-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .defense-epic-page > .container {
        width: min(100% - 24px, 1580px);
    }

    .defense-title-block {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 18px;
    }

    .defense-crest {
        width: 120px;
    }

    .defense-orc-cards {
        grid-template-columns: 1fr;
    }

    .defense-orc-cards article {
        border-left: 0;
        border-top: 1px solid rgba(241, 214, 147, 0.13);
    }

    .defense-orc-cards article:first-child {
        border-top: 0;
    }

    .defense-war-main {
        padding: 10px;
    }

    .defense-hud {
        position: relative;
        grid-template-columns: 1fr;
        padding: 0 0 10px;
    }

    .defense-hud-panel {
        min-height: auto;
        text-align: left;
    }

    .defense-ingame-hint {
        display: none;
    }

    .defense-side-panel {
        grid-template-columns: 1fr;
    }
}
