@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Outfit:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- Start of styles.css --- */
:root {
    /* Zen Palette */
    --bg-color: #FDFCF0;
    --text-primary: #000000;
    --text-secondary: #222222;
    --accent-gold: #D4AF37;
    --accent-gold-light: #FFD700;

    /* V2 Premium Additions */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.2);
    --overlay-dark: rgba(26, 26, 26, 0.85);

    /* System Tokens */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-quick: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(120deg, #FDFCF0, #FFF5D0, #EAE5D5, #FDFCF0);
    background-size: 400% 400%;
    animation: magicBg 15s ease infinite;
    will-change: background-position;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@keyframes magicBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
    color: #000000;
}

/* Exceção: títulos dentro do Reader e overlays escuros não devem ser pretos */
.reader-v2-container h2 {
    color: inherit;
}

/* Header V2 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold-light);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    overflow: visible;
}

.header-logo-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

.header-title {
    font-family: 'Crimson Pro', serif;
    color: var(--accent-gold-light) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.header-spacer {
    width: 75px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}

#app-root {
    padding-top: 60px;
    min-height: 100vh;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

/* Shimmer Loading Animation */
.shimmer {
    background: linear-gradient(90deg, #ece7db 25%, #f5f0e6 50%, #ece7db 75%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.5s infinite;
}

@keyframes shimmerAnim {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-img.shimmer {
    width: 100%;
    height: 100%;
}


/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Padrão inteligente: Prioriza o topo/centro para evitar cortes em rostos */
    object-position: center 20%;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

/* Ajuste para telas ultra-wide (aspect ratio > 21:9) para evitar zoom excessivo no rosto */
@media (min-aspect-ratio: 21/9) {
    .hero-bg {
        object-position: center 15%;
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 5%;
    max-width: 800px;
}

.hero-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: #1a1a1a !important;
    margin-bottom: 32px;
    max-width: 600px;
}

.btn-premium {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-premium:hover {
    transform: scale(1.05);
    background: var(--text-secondary);
}

/* Categories & Carousels */
.category-section {
    position: relative;
    padding: 60px 0 20px 0;
    /* Fundo sutil radial para preencher o vazio nas proporções e dar ar premium */
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    margin-left: 5%;
    margin-bottom: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #1a1a1a, #6e552a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-section:hover .category-title::after {
    width: 80%;
}

.carousel-container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 2%;
    padding-right: 5%;
    scrollbar-width: none;
    /* 3D Properties */
    perspective: 1200px;
    transform-style: preserve-3d;
    scroll-behavior: smooth;
    align-items: center;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Carousel Navigation Buttons */
.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-quick);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn.prev {
    left: -24px;
}

.carousel-nav-btn.next {
    right: 3%;
}

@media (max-width: 600px) {
    .carousel-container {
        perspective: none;
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 16px;
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-nav-btn.prev {
        left: -10px;
    }
    
    .carousel-nav-btn.next {
        right: 1%;
    }
}

/* Vertical Book Cards - 3D Concave Carousel (Coverflow Style) */
.book-card-v2 {
    flex: 0 0 260px;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Repouso (quando o container não está sob hover) */
    transform-style: preserve-3d;
    transform: rotateY(0) scale(0.95);
    filter: brightness(0.9);
    margin: 0 8px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease, margin 0.6s ease, box-shadow 0.6s ease;
    transform-origin: center;
}

/* Quando o CARROSSEL está sob hover, todos os filhos que não estão sendo tocados...
   se comportam como elementos a DIREITA do foco, e rodam para a esquerda */
.carousel-container:hover .book-card-v2 {
    transform: rotateY(25deg) scale(0.85);
    filter: brightness(0.6) saturate(0.8);
    margin: 0 -12px;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.2);
}

/* Os itens ANTES do focado (a ESQUERDA do hover) - Magia do seletor moderno :has e irmãos (~) */
.carousel-container:hover .book-card-v2:has(~ .book-card-v2:hover) {
    transform: rotateY(-25deg) scale(0.85);
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.2);
}

/* O PRÓPRIO CARTÃO em HOVER: Planifica, aumenta e salta pra frente (translateZ) empurrando vizinhos com margem */
.carousel-container .book-card-v2:hover {
    transform: rotateY(0deg) scale(1.1) translateZ(60px);
    filter: brightness(1.1) saturate(1.1);
    z-index: 100;
    margin: 0 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Reset - Anula rotações cruzadas limitando a profundidade para manter a responsividade tátil */
@media (max-width: 600px) {
    .category-title {
        font-size: 2rem;
    }
    
    .book-card-v2 {
        flex: 0 0 180px !important;
    }

    .carousel-container:hover .book-card-v2,
    .carousel-container:hover .book-card-v2:has(~ .book-card-v2:hover),
    .carousel-container .book-card-v2:hover,
    .book-card-v2 {
        transform: none !important;
        filter: none !important;
        margin: 0 !important;
        z-index: 1 !important;
    }
    
    .carousel-container .book-card-v2:hover {
        transform: scale(1.05) translateY(-5px) !important;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(253, 252, 240, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: #333333;
    opacity: 0.8;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .card-desc {
        display: none !important;
    }
    .card-overlay {
        padding: 12px 10px;
        /* Gradiente mais forte embaixo para garantir leitura do título, mas bem mais curto */
        background: linear-gradient(to top, rgba(253, 252, 240, 0.85) 0%, rgba(253, 252, 240, 0.2) 100%);
    }
    .card-title {
        font-size: 1rem;
        margin-bottom: 0;
        text-align: center;
    }
}

/* Reader Overlay V2 */
.reader-v2-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-dark);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding-top: 20px;
}

.reader-header-bar {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.reader-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reader-v2-frame {
    width: 90%;
    height: 85%;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    background: white;
}

.btn-back-v2-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-quick);
    color: white;
    font-size: 1.2rem;
}

.btn-back-v2-nav:hover {
    transform: scale(1.1);
    background: white;
    color: var(--text-primary);
}

.reader-title-display {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFD700 0%, #FFF5CC 40%, #D4AF37 70%, #FFD700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.35));
    animation: titleShimmer 4s ease-in-out infinite;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.btn-voice-ai {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: var(--transition-quick);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-voice-ai:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--accent-gold-light);
}

.btn-voice-ai.pulse {
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@media (max-width: 600px) {
    .book-card-v2 {
        flex: 0 0 180px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .reader-title-display {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    .reader-v2-frame {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* --- Phase 6: Dual Interface (Narration Only) --- */

.btn-narrate-v2 {
    background: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-left: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-narrate-v2:hover {
    background: #222222;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none !important;
}

/* --- RPG & Branching Narratives --- */
.fz-choice-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: #FDFCF0; /* Cor Zen original */
    background-image: 
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(74, 53, 32, 0.05) 0px, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    animation: zenFadeIn 0.8s ease;
}

@keyframes zenFadeIn {
    from { opacity: 0; transform: scale(1.02); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.choice-prompt {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #4a3520 !important; /* Sepia */
    text-align: center;
    max-width: 85%;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    position: relative;
    padding-bottom: 20px;
}

.choice-prompt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.btn-choice-zen {
    background: white;
    border: 2px solid #e8dcc8;
    padding: 22px 44px;
    border-radius: 16px;
    color: #4a3520;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(74, 53, 32, 0.08);
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-choice-zen:hover {
    background: #fdf8f0;
    border-color: var(--accent-gold);
    color: #000;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.btn-choice-zen:active {
    transform: scale(0.95);
}

/* --- Review Mode & Staging --- */
.book-card-v2.review-mode {
    border: 2px dashed #ff9800;
    filter: brightness(0.9) grayscale(0.2);
}

.book-card-v2.review-mode:hover {
    border-color: #ff5722;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.review-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    z-index: 10;
    animation: reviewPulse 2s infinite;
}

@keyframes reviewPulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* --- Edição de Perfil (Premium) --- */
.fz-perfil-nome-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fz-btn-edit-nome {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fz-btn-edit-nome:hover {
    background: #D4AF37;
    color: #1a1a2e;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.fz-btn-edit-nome svg {
    width: 16px;
    height: 16px;
}

/* --- Edição de nome inline (Pergaminho) --- */
.fz-edit-nome-pergaminho {
    display: flex;
    align-items: center;
    gap: 8px;
    background:
        linear-gradient(135deg, #f5e6c8 0%, #e8d5a3 30%, #f2e4c4 60%, #dcc48e 100%);
    border: 2px solid #b8972f;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow:
        0 4px 16px rgba(184, 151, 47, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    animation: fzPergaminhoAbrir 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: left center;
    position: relative;
}

.fz-edit-nome-pergaminho::before {
    content: '✦';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 12px;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

.fz-input-nome-pergaminho {
    background: transparent;
    border: none;
    border-bottom: 2px dashed rgba(139, 109, 42, 0.4);
    color: #4a3520;
    font-family: 'Nunito', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 6px;
    width: 150px;
    max-width: 180px;
    outline: none;
    transition: border-color 0.3s ease;
}

.fz-input-nome-pergaminho:focus {
    border-bottom-color: #D4AF37;
    border-bottom-style: solid;
}

.fz-input-nome-pergaminho::placeholder {
    color: rgba(74, 53, 32, 0.4);
    font-style: italic;
}

.fz-edit-nome-acoes {
    display: flex;
    gap: 4px;
}

.fz-edit-nome-confirmar,
.fz-edit-nome-cancelar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.25s ease;
}

.fz-edit-nome-confirmar {
    background: linear-gradient(135deg, #5a8f3c, #4a7c2e);
    color: #fff;
    border-color: rgba(90, 143, 60, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fz-edit-nome-confirmar:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(90, 143, 60, 0.5);
}

.fz-edit-nome-cancelar {
    background: linear-gradient(135deg, #c44e3d, #a83e30);
    color: #fff;
    border-color: rgba(196, 78, 61, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fz-edit-nome-cancelar:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(196, 78, 61, 0.5);
}

/* Animações */
@keyframes fzPergaminhoAbrir {
    0% {
        opacity: 0;
        transform: scaleX(0) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scaleX(1) translateY(0);
    }
}

.fz-edit-nome-saindo {
    animation: fzPergaminhoFechar 0.25s ease-in forwards;
}

@keyframes fzPergaminhoFechar {
    0% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}
/* --- End of styles.css --- */

/* --- Start of avatar.css --- */
/* ─────────────────────────────────────────────────────────────────────────────
   avatar.css — Fabula-Zen
   Estilos do sistema de avatar: onboarding + seleção + perfil.
   Adicione no <head> do index.html após o styles.css principal.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Overlay base ──────────────────────────────────────────────────────────── */
#fz-onboarding,
#fz-perfil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#fz-onboarding.visivel,
#fz-perfil.visivel {
  opacity: 1;
}

#fz-onboarding.saindo,
#fz-perfil.saindo {
  opacity: 0;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.fz-onboarding-modal {
  background: #FDFCF0;          /* --paleta-zen: fundo pérola do projeto */
  border-radius: 24px;
  padding: 36px 32px 32px;
  width: min(560px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

#fz-onboarding.visivel .fz-onboarding-modal,
#fz-perfil.visivel .fz-onboarding-modal {
  transform: translateY(0) scale(1);
}

/* ── Topo do onboarding ────────────────────────────────────────────────────── */
.fz-onboarding-topo {
  text-align: center;
  margin-bottom: 28px;
}

.fz-onboarding-estrelas {
  font-size: 18px;
  color: #D4AF37;
  letter-spacing: 8px;
  margin-bottom: 12px;
}

.fz-onboarding-titulo {
  font-family: 'Playfair Display', serif;  /* tipografia do projeto */
  font-size: 26px;
  font-weight: 700;
  color: #1A1208;
  margin: 0 0 8px;
  line-height: 1.2;
}

.fz-onboarding-sub {
  font-size: 15px;
  color: #6B5A3E;
  margin: 0;
}

/* ── Passos ────────────────────────────────────────────────────────────────── */
.fz-onboarding-passo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fz-oculto {
  display: none !important;
}

/* ── Label ─────────────────────────────────────────────────────────────────── */
.fz-label {
  font-size: 14px;
  font-weight: 600;
  color: #4A3820;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Input de nome ─────────────────────────────────────────────────────────── */
.fz-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E8D5A3;
  border-radius: 14px;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  color: #1A1208;
  background: white;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fz-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.fz-input::placeholder {
  color: #B8A080;
}

/* ── Botões ────────────────────────────────────────────────────────────────── */
.fz-btn-proximo,
.fz-btn-confirmar {
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
  align-self: center;
}

.fz-btn-proximo {
  background: #D4AF37;
  color: #1A1208;
  min-width: 160px;
}

.fz-btn-proximo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fz-btn-proximo:not(:disabled):hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.fz-btn-confirmar {
  background: #2E7D50;
  color: white;
  width: 100%;
  margin-top: 8px;
}

.fz-btn-confirmar:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.fz-btn-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F0E8D0;
  color: #6B5A3E;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.fz-btn-fechar:hover {
  background: #E8D5A3;
}

/* ── Grid de avatares ──────────────────────────────────────────────────────── */
.fz-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 10px 0;
}

@media (max-width: 380px) {
  .fz-avatar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── Card de avatar ────────────────────────────────────────────────────────── */
.fz-avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 16px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.fz-avatar-card:hover {
  transform: translateY(-4px);
}

.fz-avatar-card.selecionado {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.05);
}

.fz-avatar-svg {
  width: 72px;
  height: 84px;
}

.fz-avatar-svg svg {
  width: 100%;
  height: 100%;
}

.fz-avatar-nome {
  font-size: 11px;
  font-weight: 600;
  color: #6B5A3E;
  text-align: center;
  line-height: 1.2;
}

/* ── Lock overlay (bloqueado) ──────────────────────────────────────────────── */
.fz-avatar-card.fz-avatar-locked {
  cursor: default;
}

.fz-avatar-card.fz-avatar-locked:hover {
  transform: none;
}

.fz-avatar-locked-overlay {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  z-index: 5;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

/* ── Topo do perfil ────────────────────────────────────────────────────────── */
.fz-perfil-topo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid #E8D5A3;
}

.fz-perfil-avatar-grande {
  width: 96px;
  height: 112px;
  flex-shrink: 0;
}

.fz-perfil-avatar-grande svg {
  width: 100%;
  height: 100%;
}

.fz-perfil-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fz-perfil-nome {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1208;
  margin: 0;
}

.fz-perfil-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #D4AF37;
  color: #1A1208;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.fz-perfil-secao {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* ── Mini-avatar no menu ───────────────────────────────────────────────────── */
#fz-menu-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  background: linear-gradient(135deg, #fff, #FFF5D0);
  cursor: pointer;
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.4);
  animation: avatarFloat 4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes avatarFloat {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

#fz-menu-avatar:hover {
  animation: none;
  transform: scale(1.15) rotate(5deg) translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
  border-color: #FFD700;
}

#fz-menu-avatar .fz-avatar-wrap {
  width: 100% !important;
  height: 100% !important;
}

#fz-menu-avatar svg {
  width: 100%;
  height: 100%;
}

/* --- End of avatar.css --- */

/* --- Start of gamification.css --- */
/* ─────────────────────────────────────────────────────────────────────────────
   gamification.css — Fabula-Zen
   Estilos do sistema de gamificação: toasts, level up, conquistas, avatar unlock.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Toast Container ──────────────────────────────────────────────────────── */
#fz-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999999; /* Sobrepõe todos os overlays (incluindo Quiz z-index 99999) */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* ── Toast Base ───────────────────────────────────────────────────────────── */
.fz-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 220px;
  max-width: 340px;
}

.fz-toast-visivel {
  opacity: 1;
  transform: translateX(0);
}

.fz-toast-saindo {
  opacity: 0;
  transform: translateX(80px) scale(0.9);
}

/* ── Toast XP ─────────────────────────────────────────────────────────────── */
.fz-toast-xp {
  background: linear-gradient(135deg, #1A1208 0%, #2A1E10 100%);
  border: 1.5px solid #D4AF37;
}

.fz-toast-xp .fz-toast-icone {
  font-size: 24px;
  animation: fz-pulse-star 0.6s ease;
}

.fz-toast-xp .fz-toast-texto strong {
  color: #FFD700 !important;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

.fz-toast-xp .fz-toast-texto span {
  color: #B8A080 !important;
  font-size: 12px;
  display: block;
}

/* ── Toast Conquista ──────────────────────────────────────────────────────── */
.fz-toast-conquista {
  background: linear-gradient(135deg, #1A1020 0%, #2A1535 100%);
  border: 1.5px solid #9B59B6;
}

.fz-toast-icone-conquista {
  font-size: 28px;
  animation: fz-bounce 0.7s ease;
}

.fz-toast-conquista .fz-toast-texto strong {
  color: #E8D0F0 !important;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.fz-toast-conquista .fz-toast-texto span {
  color: #C8A0E0 !important;
  font-size: 15px;
  font-weight: 600;
  display: block;
}

.fz-toast-xp-bonus {
  color: #FFD700 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* ── Toast Daily Cap ──────────────────────────────────────────────────────── */
.fz-toast-dailycap {
  background: linear-gradient(135deg, #0A1020 0%, #0D1A30 100%);
  border: 1.5px solid #4A90D9;
}

.fz-toast-dailycap .fz-toast-icone {
  font-size: 24px;
  animation: fz-pulse-star 0.6s ease;
}

.fz-toast-dailycap .fz-toast-texto strong {
  color: #90C8FF !important;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.fz-toast-dailycap .fz-toast-texto span {
  color: #6890B8 !important;
  font-size: 12px;
  display: block;
}

/* ── Avatar Raridade — Bordas de Brilho ───────────────────────────────────── */
.fz-avatar-raridade-comum {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(60, 180, 100, 0.6), 0 0 12px rgba(60, 180, 100, 0.25);
}

.fz-avatar-raridade-raro {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(80, 120, 255, 0.7), 0 0 18px rgba(80, 120, 255, 0.35);
  animation: fz-glow-raro 2.5s ease-in-out infinite;
}

.fz-avatar-raridade-lendario {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.9), 0 0 24px rgba(212, 175, 55, 0.5);
  animation: fz-glow-lendario 2s ease-in-out infinite;
}

@keyframes fz-glow-raro {
  0%, 100% { box-shadow: 0 0 0 3px rgba(80, 120, 255, 0.7), 0 0 18px rgba(80, 120, 255, 0.35); }
  50%       { box-shadow: 0 0 0 4px rgba(80, 120, 255, 0.9), 0 0 32px rgba(80, 120, 255, 0.55); }
}

@keyframes fz-glow-lendario {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.9), 0 0 24px rgba(212, 175, 55, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 215, 0, 1.0), 0 0 44px rgba(212, 175, 55, 0.8); }
}

/* ── Badge de Raridade ────────────────────────────────────────────────────── */
.fz-raridade-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.fz-raridade-comum {
  background: rgba(60, 180, 100, 0.15);
  border: 1px solid rgba(60, 180, 100, 0.5);
  color: #3CB464 !important;
}

.fz-raridade-raro {
  background: rgba(80, 120, 255, 0.15);
  border: 1px solid rgba(80, 120, 255, 0.5);
  color: #6090FF !important;
}

.fz-raridade-lendario {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: #D4AF37 !important;
  animation: fz-badge-shimmer 2s ease-in-out infinite;
}

@keyframes fz-badge-shimmer {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 1; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
}

/* ── Modal de Avatar — Variantes por Raridade ─────────────────────────────── */
.fz-avatar-unlock-raro {
  background: linear-gradient(160deg, #F0F4FF 0%, #E8EEFF 100%) !important;
  box-shadow: 0 0 60px rgba(80, 120, 255, 0.35), 0 24px 64px rgba(0, 0, 0, 0.3) !important;
}

.fz-avatar-unlock-lendario {
  background: linear-gradient(160deg, #FDFCF0 0%, #FFF8E0 100%) !important;
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.5), 0 24px 64px rgba(0, 0, 0, 0.3) !important;
}

.fz-avatar-unlock-btn-raro {
  background: linear-gradient(135deg, #4A70E8 0%, #6090FF 100%) !important;
  color: white !important;
}

.fz-avatar-unlock-btn-lendario {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%) !important;
  color: #1A1208 !important;
}


/* ── Overlay base (gamificação) ────────────────────────────────────────────── */
.fz-gamif-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000; /* Sobrepõe overlays normais como o Quiz (z-index 99999) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 2, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fz-gamif-overlay.visivel {
  opacity: 1;
}

.fz-gamif-overlay.saindo {
  opacity: 0;
}

/* ── Level Up Modal ───────────────────────────────────────────────────────── */
.fz-levelup-modal {
  background: linear-gradient(160deg, #FDFCF0 0%, #FFF8E0 100%);
  border-radius: 28px;
  padding: 48px 36px 36px;
  width: min(420px, 90vw);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.4), 0 24px 64px rgba(0, 0, 0, 0.3);
}

.fz-gamif-overlay.visivel .fz-levelup-modal {
  transform: scale(1) translateY(0);
}

.fz-levelup-particulas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fz-particula {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  animation: fz-confetti 2s ease-out forwards;
}

@keyframes fz-confetti {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-300px) translateX(var(--dx, 0px)) scale(0) rotate(720deg);
    opacity: 0;
  }
}

.fz-particula:nth-child(odd) { --dx: -60px; }
.fz-particula:nth-child(even) { --dx: 60px; }
.fz-particula:nth-child(3n) { --dx: -120px; }
.fz-particula:nth-child(3n+1) { --dx: 120px; }
.fz-particula:nth-child(5n) { --dx: 0px; width: 6px; height: 6px; }

.fz-levelup-estrela {
  font-size: 64px;
  animation: fz-spin-star 1s ease-out;
  margin-bottom: 12px;
}

.fz-levelup-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: #1A1208 !important;
  margin: 0 0 8px;
}

.fz-levelup-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #D4AF37 !important;
  margin: 0 0 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fz-levelup-msg {
  font-size: 14px;
  color: #6B5A3E !important;
  margin: 0 0 24px;
  line-height: 1.5;
}

.fz-levelup-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%) !important;
  color: #1A1208 !important;
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.fz-levelup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

/* ── Avatar Unlock Modal ──────────────────────────────────────────────────── */
.fz-avatar-unlock-modal {
  background: linear-gradient(160deg, #FDFCF0 0%, #F0F8FF 100%);
  border-radius: 28px;
  padding: 48px 36px 36px;
  width: min(400px, 90vw);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(100, 180, 255, 0.3), 0 24px 64px rgba(0, 0, 0, 0.3);
}

.fz-gamif-overlay.visivel .fz-avatar-unlock-modal {
  transform: scale(1) translateY(0);
}

.fz-avatar-unlock-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  animation: fz-glow-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

.fz-avatar-unlock-avatar {
  position: relative;
  width: 120px;
  height: 140px;
  margin: 0 auto 16px;
  animation: fz-avatar-appear 0.8s ease-out;
}

.fz-avatar-unlock-avatar svg {
  width: 100%;
  height: 100%;
}

.fz-avatar-unlock-nome {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1A1208 !important;
  margin: 0 0 8px;
}

.fz-avatar-unlock-msg {
  font-size: 15px;
  color: #6B5A3E !important;
  margin: 0 0 24px;
  line-height: 1.5;
  font-style: italic;
}

.fz-avatar-unlock-btn {
  background: #2E7D50 !important;
  color: white !important;
}

/* ── Conquista Grid ───────────────────────────────────────────────────────── */
.fz-conquistas-topo {
  text-align: center;
  margin-bottom: 20px;
}

.fz-conquista-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}

@media (max-width: 420px) {
  .fz-conquista-grid {
    grid-template-columns: 1fr;
  }
}

.fz-conquista-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  transition: transform 0.15s;
}

.fz-conquista-desbloqueada {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E0 100%);
  border: 1.5px solid #D4AF37;
}

.fz-conquista-bloqueada {
  background: #F5F0E8;
  border: 1.5px solid #E0D8C8;
  opacity: 0.65;
}

.fz-conquista-icone {
  font-size: 28px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.fz-conquista-bloqueada .fz-conquista-icone {
  filter: grayscale(100%);
}

.fz-conquista-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fz-conquista-info strong {
  color: #1A1208 !important;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.fz-conquista-data {
  color: #8B7A5E !important;
  font-size: 11px;
}

.fz-conquista-bonus {
  color: #D4AF37 !important;
  font-size: 11px;
  font-weight: 700;
}

/* ── XP Bar (para o perfil) ───────────────────────────────────────────────── */
.fz-xp-section {
  margin-bottom: 16px;
}

.fz-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fz-xp-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B5A3E !important;
  font-family: 'Inter', sans-serif;
}

.fz-xp-valor {
  font-size: 12px;
  font-weight: 700;
  color: #D4AF37 !important;
  font-family: 'Inter', sans-serif;
}

.fz-xp-bar-bg {
  width: 100%;
  height: 10px;
  background: #E8D5A3;
  border-radius: 5px;
  overflow: hidden;
}

.fz-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37 0%, #FFD700 100%);
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 0;
}

/* ── Botão Conquistas no Perfil ───────────────────────────────────────────── */
.fz-btn-conquistas {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #D4AF37;
  background: transparent;
  color: #D4AF37 !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 12px;
}

.fz-btn-conquistas:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

/* ── Magic Cards Presentation ────────────────────────────────────────────── */
.fz-avatar-magic-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4.2;
  background: #FFFDF5; /* Ivory / Paper effect */
  border-radius: 12px;
  border: 1.5px solid #E0D5B0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fz-avatar-magic-card.t-lg {
  max-width: 160px;
}

.fz-avatar-magic-card .fz-avatar-stage {
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: fz-avatar-float 4s ease-in-out infinite;
}

.fz-avatar-magic-card img, 
.fz-avatar-magic-card svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ── Auras de Raridade ────────────────────────────────────────────────────── */
.fz-avatar-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  filter: blur(20px);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.4;
}

.raridade-comum .fz-avatar-aura { background: radial-gradient(circle, #E0E0E0 0%, transparent 70%); }
.raridade-raro .fz-avatar-aura { background: radial-gradient(circle, #4A90D9 0%, transparent 70%); opacity: 0.6; }
.raridade-lendario .fz-avatar-aura { background: radial-gradient(circle, #FFD700 0%, transparent 70%); opacity: 0.7; }

/* ── Silhueta de Mistério (Bloqueados) ─────────────────────────────────────── */
.fz-avatar-card.fz-avatar-locked .fz-avatar-magic-card {
  background: #F0F0F0;
  border-color: #D0D0D0;
}

.fz-avatar-card.fz-avatar-locked .fz-avatar-stage {
  filter: brightness(0) contrast(1) opacity(0.2);
  animation: none; /* Silhuetas não flutuam para parecerem sem vida */
}

.fz-avatar-card.fz-avatar-locked:hover .fz-avatar-magic-card {
  transform: none;
}

/* ── Medalhão (Menu do Cabeçalho) ────────────────────────────────────────── */
.fz-avatar-medallion {
  position: relative;
  width: 75px;
  height: 75px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.9);
  padding: 6px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 0 15px rgba(255,255,255,0.5),
    0 0 15px rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1002;
}

.fz-avatar-medallion::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg, 
    transparent 45%, 
    rgba(255,255,255,0.6) 50%, 
    transparent 55%
  );
  animation: fz-shine-spin 4s ease-in-out infinite;
  pointer-events: none;
}

.fz-avatar-medallion img,
.fz-avatar-medallion svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transform: scale(1.1); /* Um pouco de zoom no personagem para preencher o medalhão */
}

.fz-avatar-medallion.raridade-lendario {
  border-width: 3px;
  border-color: #FFD700;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.4),
    inset 0 0 20px rgba(255, 215, 0, 0.3);
}

.fz-avatar-medallion:hover {
  transform: translateY(5px) scale(1.08) rotate(3deg);
  border-color: #FFD700;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.4),
    0 0 25px rgba(255, 215, 0, 0.4);
}

/* ── Missões de Desbloqueio (Tooltip) ────────────────────────────────────── */
.fz-avatar-mission-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: max-content;
  max-width: 180px;
  padding: 10px 12px;
  background: #FDFCF0;
  border: 1.5px solid #E0D5B0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  text-align: left;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Seta do tooltip */
.fz-avatar-mission-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #E0D5B0;
}

/* Mostra no hover e focus */
.fz-avatar-card.fz-avatar-locked:hover .fz-avatar-mission-box,
.fz-avatar-card.fz-avatar-locked:focus-within .fz-avatar-mission-box {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.fz-mission-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  color: #8B7A5E;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fz-mission-item {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #5D4037;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  line-height: 1.3;
}

.fz-mission-item span {
  font-size: 11px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* ── Animações ────────────────────────────────────────────────────────────── */
@keyframes fz-shine-spin {
  0% { transform: rotate(0deg) translate(-10%, -10%); }
  100% { transform: rotate(360deg) translate(-10%, -10%); }
}

@keyframes fz-avatar-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.fz-avatar-card:hover .fz-avatar-magic-card {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-color: #D4AF37;
}

/* ── Keyframe Animations ──────────────────────────────────────────────────── */
@keyframes fz-pulse-star {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fz-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes fz-spin-star {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(20deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes fz-glow-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -60%) scale(1.15); }
}

@keyframes fz-avatar-appear {
  0% { transform: translateY(30px) scale(0.5); opacity: 0; }
  60% { transform: translateY(-8px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

/* ── Quiz Mini-Game ───────────────────────────────────────────────────────── */
.fz-quiz-btn-container {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 2500;
  pointer-events: auto;
}

.fz-btn-start-quiz {
  background: rgba(26, 18, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #D4AF37 !important;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fz-btn-start-quiz .quiz-icon {
  font-size: 18px;
}

.fz-btn-start-quiz:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
  border-color: #D4AF37;
  background: rgba(26, 18, 8, 0.95);
}

@media (max-width: 600px) {
  .fz-quiz-btn-container {
    bottom: 60px;
    right: 50%;
    transform: translateX(50%);
    width: max-content;
  }
  .fz-btn-start-quiz {
    padding: 8px 16px;
    font-size: 12px;
  }
}

.book-wrap {
  background: #fdf8f0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8dcc8;
  display: flex;
  flex-direction: row;
  min-height: 480px;
  font-family: 'Lora', Georgia, serif;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 48px rgba(10, 6, 2, 0.08);
}

.book-image {
  width: 44%;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

.brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #f5c518;
  text-shadow:
    0 0 12px rgba(245,197,24,0.6),
    0 0 30px rgba(245,197,24,0.3),
    2px 2px 0px #8a6c00,
    4px 4px 0px #5a4600;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
  font-style: italic;
  transition: all 0.5s ease;
}

.brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: #8a7040;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
  transition: opacity 0.4s;
}

.feedback-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  display: none;
  animation: popIn 0.4s cubic-bezier(.36,.07,.19,.97);
}

@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.book-content-side {
  flex: 1;
  padding: 2rem 2.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9e8060;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.question-num {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9e8060;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.question-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3d2e1a;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.options-list { display: flex; flex-direction: column; gap: 8px; }

.option {
  background: #fff;
  border: 1.5px solid #e0d0b5;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 13.5px;
  color: #4a3520;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option:hover { border-color: #b5936b; background: #fdf3e3; }
.option.correct { border-color: #5a8a4a; background: #eaf5e4; color: #2d5a20; pointer-events: none;}
.option.wrong { border-color: #a03030; background: #fdeaea; color: #6a1f1f; pointer-events: none;}

.option-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
}

.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.8rem;
  border-top: 1px solid #e8dcc8;
}

.dots { display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d4c0a0; transition: all 0.2s; }
.dot.active { background: #8b5e2e; width: 22px; border-radius: 4px; }

.btn-next {
  background: #8b5e2e; color: #fff;
  border: none; padding: 10px 22px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-next:hover { background: #6d4820; }
.btn-next:active { transform: scale(0.97); }
.btn-next:disabled { background: #c9b89a; cursor: default; }

.result-view { text-align: center; padding: 1.5rem 1rem; }
.result-view h2 { font-family: 'Lora', serif; font-size: 1.5rem; color: #3d2e1a; margin: 0 0 0.4rem; }
.result-score { font-family: 'Nunito', sans-serif; font-size: 3rem; font-weight: 700; color: #8b5e2e; margin: 0.4rem 0; }
.result-view p { font-family: 'Lora', serif; font-size: 14px; color: #6a5030; margin: 0 0 1.2rem; }
.btn-restart { background: #8b5e2e; color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-restart:hover { background: #6d4820; }
.fz-quiz-loading-new {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #6a5030; font-family: 'Nunito', sans-serif;
  padding: 2rem;
}
@media (max-width: 768px) {
  .book-wrap { flex-direction: column; min-height: auto; }
  .book-image { width: 100%; height: 200px; }
  .book-content-side { padding: 1.5rem; }
}


/* Global Menu Overlay */
.global-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
}

.global-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.global-menu-content {
    background-color: var(--bg-color);
    width: 80%;
    max-width: 400px;
    height: 100vh;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.global-menu-overlay.open .global-menu-content {
    transform: translateX(0);
}

.global-menu-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold-light);
    background-color: #000;
}

.global-menu-title {
    font-family: 'Crimson Pro', serif;
    color: var(--accent-gold-light) !important;
    margin: 0;
    font-size: 1.5rem;
}

.btn-close-menu {
    background: transparent;
    border: none;
    color: white !important;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-close-menu:hover {
    transform: scale(1.1);
    color: var(--accent-gold-light) !important;
}

.global-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    flex: 1;
}

.global-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-primary) !important;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.global-menu-item i {
    color: var(--accent-gold);
}

.global-menu-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: #000 !important;
}

/* Header Global Menu Button */
.header-global-menu-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--accent-gold-light) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: menuStarPulse 2s infinite;
    will-change: filter, transform;
}

.header-global-menu-btn svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
    stroke: #FFD700;
    fill: rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 8px #FFD700);
}

@keyframes menuStarPulse {
    0% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)); transform: scale(1.15); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); transform: scale(1); }
}

.header-global-menu-btn:hover {
    transform: scale(1.25) rotate(15deg);
    animation: none;
    filter: drop-shadow(0 0 25px #FFD700);
}

/* Games Hub */
.games-hub-container {
    padding: 40px 5%;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.games-hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.games-hub-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.games-hub-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s;
    border-top: 5px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.game-card-icon i {
    width: 40px;
    height: 40px;
}

.game-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.game-card-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-play-game {
    color: white !important;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s;
    width: 100%;
}

.btn-play-game:hover {
    filter: brightness(1.1);
}

.btn-back-shelf {
    background: black;
    color: white !important;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.btn-back-shelf:hover {
    transform: scale(1.05);
}

/* Find Object Game Container */
.find-object-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-dark);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.find-object-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.btn-back-game {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-back-game:hover {
    background: white;
    color: black !important;
    transform: scale(1.1);
}

.find-object-title {
    color: white !important;
    font-size: 2rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin: 0;
}

.find-object-progress {
    background: var(--accent-gold);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.find-object-layout {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 24px;
    min-height: 0;
}

.find-object-image-area {
    flex: 2;
    position: relative;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
}

.game-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.hit-areas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to container */
}

/* Visualization for debugging / or just hidden logic */
.hit-area {
    position: absolute;
    /* Invisible by default */
}

.hit-feedback {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 4px solid var(--accent-gold-light);
    box-shadow: 0 0 20px var(--accent-gold), inset 0 0 20px var(--accent-gold);
}

@keyframes pulseGold {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.pulse-animation {
    animation: pulseGold 1s ease-out forwards;
}

.find-object-sidebar {
    flex: 1;
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.find-object-sidebar h3 {
    margin-bottom: 20px;
    color: black !important;
}

.objects-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.object-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition-quick);
}

.object-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
}

.object-item.found {
    opacity: 0.6;
    background: rgba(212, 175, 55, 0.1);
}

.object-item.found .object-checkbox {
    border-color: var(--accent-gold);
}

.object-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.victory-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
}

.victory-screen h2 {
    color: var(--accent-gold-light) !important;
    font-size: 3rem;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .find-object-layout {
        flex-direction: column;
    }
    .find-object-title {
        font-size: 1.5rem;
    }
}

/* Hit Feedback Colors */
.hit-feedback.success {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 20px #4CAF50, inset 0 0 20px #4CAF50 !important;
}

@keyframes pulseSuccess {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.pulse-animation.success {
    animation: pulseSuccess 1.5s ease-out forwards;
}

.hit-feedback.error {
    border-color: #F44336 !important;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.8), inset 0 0 15px rgba(244, 67, 54, 0.5) !important;
}

@keyframes pulseError {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pulse-animation.error {
    animation: pulseError 1s ease-out forwards;
}

.target-card {
    background: var(--bg-color);
    border: 2px dashed var(--accent-gold);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary) !important;
}

.target-hint {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
}

/* --- Botão Encontrar Objeto Especial --- */
.fz-btn-find-object {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2500;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #1A1208 !important;
    border: 3px solid #FFF5D0;
    padding: 16px 28px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fz-btn-find-object:hover {
    transform: scale(1.1) translateY(-8px) rotate(-1deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFF5D0 0%, #FFD700 100%);
}

.fz-btn-find-object:active {
    transform: scale(0.95);
}

.fz-btn-find-object i, 
.fz-btn-find-object svg {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

@media (max-width: 600px) {
    .fz-btn-find-object {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 12px;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   LOOPS VIRAIS — Cards de Compartilhamento (sessão 19/08/2026)
   Baseado na nota "pontos finais 19-08" — Loop 2 (Avatar) + Loop 3 (Streak)
   Paleta oficial reutilizada: --accent-gold/#D4AF37, --gold-gradient,
   --paper-bg (efeito pergaminho já usado em .book-page/ecommerce.css) e
   --zen-dark (fundo escuro "screenshot-worthy" pedido para o streak).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Botão "Compartilhar" — usado nos dois modais ─────────────────────────── */
.fz-btn-compartilhar {
  background: transparent;
  border: 2px solid #D4AF37;
  color: #D4AF37 !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.fz-btn-compartilhar:hover { background: rgba(212, 175, 55, 0.12); transform: translateY(-2px); }
.fz-btn-compartilhar:active { transform: scale(0.96); }

/* ── Card viral base — miniatura pensada para o screenshot/print ─────────── */
.fz-viral-card {
  position: relative;
  margin: 6px auto 22px;
  width: min(280px, 78vw);
  border-radius: 6px;
}

.fz-viral-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  z-index: 0;
}

.fz-viral-card-content {
  position: relative;
  z-index: 1;
  padding: 24px 18px 20px;
  text-align: center;
}

.fz-viral-card-logo {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.fz-viral-card-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-top: 8px;
  margin-top: 4px;
}

/* Variante padrão (Loop 2 — Avatar): estilo pergaminho premium */
.fz-viral-card:not(.fz-viral-card-streak) {
  background: var(--paper-bg, #fcf8f2);
  border-radius: 12px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.15), 
    inset 0 0 60px rgba(139, 107, 72, 0.15); /* Vintage shading */
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
  padding: 6px; /* Espaço para a moldura interna */
}

.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-bg {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  background: radial-gradient(circle at center, transparent 50%, rgba(139, 107, 72, 0.08) 100%);
  z-index: 0;
}

/* Cantoneiras douradas ornamentais (Parchment Corners) */
.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-bg::before,
.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-bg::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #D4AF37;
  z-index: 2;
}
.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-bg::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
}
.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-bg::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
}

.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-logo {
  color: #8b6b48;
  font-size: 16px;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.fz-viral-card:not(.fz-viral-card-streak) .fz-viral-card-tag {
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  display: block;
}

.fz-viral-card-avatar-center {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 3px solid #D4AF37;
  overflow: hidden;
  background: white;
}
.fz-viral-card-avatar-center svg,
.fz-viral-card-avatar-center img { width: 100%; height: 100%; object-fit: cover; }

.fz-viral-card-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: #3e2723;
  margin: 0 0 12px;
  line-height: 1.4;
  font-weight: 600;
}

.fz-viral-card-streak {
  border-radius: 18px;
}
.fz-viral-card-streak .fz-viral-card-bg {
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% -10%, #1c1c30 0%, var(--zen-dark, #0f0f1a) 68%);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.4),
    inset 0 0 44px rgba(212, 175, 55, 0.09),
    0 12px 32px rgba(0, 0, 0, 0.5);
}
.fz-viral-card-streak .fz-viral-card-logo { color: #D4AF37; opacity: 0.9; }
.fz-viral-streak-days {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
  margin: 4px 0 2px;
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fz-viral-streak-label {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #C9C4B8;
  margin: 0 0 12px;
}
.fz-viral-card-streak .fz-viral-card-tag {
  color: #D4AF37;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

/* ══════════════════════════════════════════════════════════════════════════
   Modal de Streak Milestone (Loop 3) — fundo Dark Zen "vale print"
   ══════════════════════════════════════════════════════════════════════════ */
.fz-streak-overlay { background: rgba(5, 5, 12, 0.82); backdrop-filter: blur(4px); }

.fz-streak-modal {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, var(--zen-dark, #0f0f1a) 72%);
  border-radius: 28px;
  padding: 42px 32px 32px;
  width: min(380px, 90vw);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(212, 175, 55, 0.18), 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fz-gamif-overlay.visivel .fz-streak-modal { transform: scale(1) translateY(0); }
.fz-gamif-overlay.saindo .fz-streak-modal,
.fz-gamif-overlay.saindo .fz-avatar-unlock-modal { transform: scale(0.85) translateY(10px); opacity: 0; }

.fz-streak-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fz-streak-star {
  position: absolute;
  color: #D4AF37;
  opacity: 0;
  font-size: 10px;
  animation: fz-star-twinkle 3s ease-in-out infinite;
}
.fz-streak-star:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s;    }
.fz-streak-star:nth-child(2)  { top: 15%; left: 82%; animation-delay: 0.3s;  }
.fz-streak-star:nth-child(3)  { top: 25%; left: 30%; animation-delay: 0.6s;  }
.fz-streak-star:nth-child(4)  { top: 5%;  left: 55%; animation-delay: 0.9s;  }
.fz-streak-star:nth-child(5)  { top: 40%; left: 8%;  animation-delay: 1.2s;  }
.fz-streak-star:nth-child(6)  { top: 12%; left: 68%; animation-delay: 1.5s;  }
.fz-streak-star:nth-child(7)  { top: 35%; left: 90%; animation-delay: 1.8s;  }
.fz-streak-star:nth-child(8)  { top: 48%; left: 45%; animation-delay: 2.1s;  }
.fz-streak-star:nth-child(9)  { top: 20%; left: 20%; animation-delay: 0.4s; font-size: 13px; }
.fz-streak-star:nth-child(10) { top: 60%; left: 15%; animation-delay: 0.7s;  }
.fz-streak-star:nth-child(11) { top: 65%; left: 85%; animation-delay: 1.0s;  }
.fz-streak-star:nth-child(12) { top: 3%;  left: 30%; animation-delay: 1.3s;  }
.fz-streak-star:nth-child(13) { top: 18%; left: 45%; animation-delay: 1.6s; font-size: 8px; }
.fz-streak-star:nth-child(14) { top: 50%; left: 70%; animation-delay: 1.9s;  }
.fz-streak-star:nth-child(15) { top: 30%; left: 60%; animation-delay: 2.2s;  }
.fz-streak-star:nth-child(16) { top: 42%; left: 25%; animation-delay: 0.2s;  }
.fz-streak-star:nth-child(17) { top: 10%; left: 90%; animation-delay: 0.5s;  }
.fz-streak-star:nth-child(18) { top: 55%; left: 50%; animation-delay: 0.8s; font-size: 8px; }
.fz-streak-star:nth-child(19) { top: 22%; left: 75%; animation-delay: 1.1s;  }
.fz-streak-star:nth-child(20) { top: 38%; left: 38%; animation-delay: 1.4s;  }

@keyframes fz-star-twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.6); }
  50%      { opacity: 0.9; transform: scale(1);   }
}

.fz-streak-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}
.fz-streak-icone { font-size: 40px; line-height: 1; filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.6)); }
.fz-streak-numero {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.05;
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fz-streak-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fz-streak-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.fz-streak-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9C4B8;
}

.fz-streak-titulo {
  position: relative; z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #FDFCF0 !important;
  margin: 12px 0 6px;
}
.fz-streak-subtitulo {
  position: relative; z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #A9A4B8 !important;
  margin: 0 0 22px;
  line-height: 1.5;
}
.fz-streak-subtitulo strong { color: #D4AF37; }

.fz-streak-actions {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fz-streak-btn {
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%)) !important;
  color: #1A1208 !important;
  font-weight: 700;
  border: none;
  padding: 14px 30px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease;
}
.fz-streak-btn:hover { transform: translateY(-2px); }
.fz-streak-btn:active { transform: scale(0.97); }

@media (max-width: 420px) {
  .fz-streak-numero { font-size: 52px; }
  .fz-streak-modal { padding: 34px 22px 26px; }
  .fz-viral-streak-days { font-size: 44px; }
}

/* ── Avatar Unlock — Container de ações (botões share + fechar) ───────────── */
.fz-avatar-unlock-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

/* --- End of gamification.css --- */

/* --- Start of build-scene.css --- */
/* ─────────────────────────────────────────────────────────────────────────────
   build-scene.css — Fabula-Zen
   Estilos do mini-jogo "Montar a Cena".
   Adicione no <head> do index.html após o gamification.css.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Overlay ───────────────────────────────────────────────────────────────── */
#fz-build-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 2, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px 48px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fz-build-overlay.visivel {
  opacity: 1;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.fz-build-modal {
  background: #FDFCF0;
  border-radius: 20px;
  padding: 32px 32px 40px;
  width: min(1000px, 95%);
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

#fz-build-overlay.visivel .fz-build-modal {
  transform: translateY(0);
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.fz-build-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.fz-build-voltar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F0E8D0;
  color: #4A3820;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fz-build-voltar:hover { background: #E8D5A3; }

.fz-build-titulo-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fz-build-label {
  font-size: 11px;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fz-build-livro {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1208;
  line-height: 1.2;
}

/* ── Instrução ─────────────────────────────────────────────────────────────── */
.fz-build-instrucao {
  font-size: 18px;
  color: #6B5A3E;
  margin: 16px 0 28px;
  text-align: center;
}

/* ── Grid de cards ─────────────────────────────────────────────────────────── */
.fz-build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 500px) {
  .fz-build-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.fz-build-card {
  position: relative;
  background: white;
  border-radius: 12px;
  border: 2px solid #E8D5A3;
  overflow: hidden;
  cursor: grab;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.fz-build-card:hover {
  border-color: #D4AF37;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.fz-build-card.arrastando {
  opacity: 0.45;
  cursor: grabbing;
  transform: scale(0.96);
}

.fz-build-card.sobre {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.3);
  transform: scale(1.03);
}

.fz-build-card.selecionado {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px #D4AF37, 0 6px 18px rgba(212, 175, 55, 0.45);
  transform: translateY(-4px) scale(1.02);
  animation: fzPulseGlow 1.8s infinite ease-in-out;
}

@keyframes fzPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px #D4AF37, 0 6px 18px rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px #F5D77F, 0 8px 22px rgba(212, 175, 55, 0.6);
  }
}

.fz-build-drag-clone {
  touch-action: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Resultado */
.fz-build-card.correta {
  border-color: #3B6D11;
  background: #EAF3DE;
}

.fz-build-card.errada {
  border-color: #A32D2D;
  background: #FCEBEB;
}

.fz-build-card.correto-final {
  border-color: #D4AF37;
}

/* ── Imagem do card ────────────────────────────────────────────────────────── */
.fz-build-card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F0E8D0;
}

.fz-build-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.2s;
}

.fz-build-card:hover .fz-build-card-img-wrap img {
  transform: scale(1.05);
}

/* ── Título do card ────────────────────────────────────────────────────────── */
.fz-build-card-titulo {
  font-size: 11px;
  color: #4A3820;
  text-align: center;
  padding: 6px 8px;
  margin: 0;
  line-height: 1.3;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Número do card ────────────────────────────────────────────────────────── */
.fz-build-card-num {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.55);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badge de resultado ────────────────────────────────────────────────────── */
.fz-build-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fz-build-card.correta .fz-build-card-badge {
  background: #3B6D11;
  color: white;
}

.fz-build-card.errada .fz-build-card-badge {
  background: #A32D2D;
  color: white;
}

/* ── Botão confirmar ───────────────────────────────────────────────────────── */
.fz-build-btn-confirmar {
  width: 100%;
  padding: 15px;
  background: #D4AF37;
  color: #1A1208;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}

.fz-build-btn-confirmar:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Tela de resultado ─────────────────────────────────────────────────────── */
.fz-build-resultado-topo {
  text-align: center;
  margin-bottom: 20px;
}

.fz-build-estrelas {
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.fz-build-resultado-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A1208;
  margin: 0 0 6px;
}

.fz-build-placar {
  font-size: 15px;
  color: #6B5A3E;
  margin: 0 0 6px;
}

.fz-build-xp {
  display: inline-block;
  background: #D4AF37;
  color: #1A1208;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}

.fz-build-grid-resultado {
  pointer-events: none;
  margin-bottom: 20px;
}

/* ── Ações finais ──────────────────────────────────────────────────────────── */
.fz-build-acoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fz-build-btn-novo,
.fz-build-btn-voltar-games {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  min-width: 140px;
}

.fz-build-btn-novo {
  background: #2E7D50;
  color: white;
}

.fz-build-btn-voltar-games {
  background: #F0E8D0;
  color: #4A3820;
}

.fz-build-btn-novo:hover,
.fz-build-btn-voltar-games:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Otimizações Mobile / Telas Pequenas ────────────────────────────────────── */
@media (max-width: 600px) {
  #fz-build-overlay {
    padding: 12px 10px 24px;
    align-items: center;
  }

  .fz-build-modal {
    padding: 18px 14px 20px;
    border-radius: 16px;
    width: 100%;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .fz-build-livro {
    font-size: 16px;
  }

  .fz-build-instrucao {
    font-size: 14px;
    margin: 10px 0 16px;
  }

  .fz-build-grid {
    gap: 10px;
    margin-bottom: 16px;
  }

  .fz-build-card-titulo {
    font-size: 11px;
    padding: 4px 6px;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fz-build-btn-confirmar {
    padding: 13px;
    font-size: 15px;
    border-radius: 12px;
  }
}

/* --- End of build-scene.css --- */

/* --- Start of selecao-livro.css --- */
/* ─────────────────────────────────────────────────────────────────────────────
   Estilos da tela de seleção de livro — Mundo dos Games
   Adicione no build-scene.css ou no styles.css principal.
   ───────────────────────────────────────────────────────────────────────────── */

.fz-games-selecao {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  animation: fadeIn 0.4s ease forwards;
}

.fz-games-selecao-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.fz-games-selecao-voltar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #F0E8D0;
  color: #4A3820;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.fz-games-selecao-voltar:hover { background: #E8D5A3; }

.fz-games-selecao-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1208;
  margin: 0;
}

.fz-games-selecao-sub {
  font-size: 15px;
  color: #6B5A3E;
  margin: 0 0 24px 54px;
}

/* ── Grid de livros usando o mesmo estilo da Shelf (Estante) ────────────────────────────────────────────────────────── */
.fz-games-livros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

/* ── Card de livro adaptado idêntico à Shelf ─────────────────────────────────────────────────────────── */
.fz-games-livro-card {
  width: 220px;
  background-color: var(--card-bg, #ffffff);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  cursor: pointer;
}

.fz-games-livro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fz-games-livro-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fz-games-livro-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
    text-align: center;
}

.fz-games-livro-titulo {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #333333);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Card bloqueado ────────────────────────────────────────────────────────── */
.fz-games-livro-card.bloqueado {
  cursor: default;
  opacity: 0.7;
}

.fz-games-livro-card.bloqueado:hover {
  transform: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.fz-games-livro-card.bloqueado img {
  filter: grayscale(80%) sepia(20%);
}

.fz-games-livro-card.bloqueado:hover img {
  transform: none !important;
}

.fz-games-livro-cadeado {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  z-index: 2;
}

.fz-games-livro-breve {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #888780;
  text-align: center;
  padding: 0 10px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- End of selecao-livro.css --- */

/* --- Start of games-hub.css --- */
/* ─────────────────────────────────────────────────────────────────────────────
   games-hub.css — Fabula-Zen
   Estilos específicos para a tela "Mundo dos Games".
   ───────────────────────────────────────────────────────────────────────────── */


.games-hub-container {
  /* Escopo de Variáveis */
  --gh-cream: #f5f0d0;
  --gh-cream-dark: #ede8c4;
  --gh-gold: #D4AF37;       /* Adaptado pro Zen Dourado */
  --gh-gold-light: #FFD700; /* Adaptado pro Zen Dourado */
  --gh-gold-glow: #f0d060;
  --gh-black: #000000;
  --gh-cyan: #2eb8c8;
  --gh-cyan-dark: #1a9aaa;
  --gh-purple: #9b72cf;
  --gh-green: #5cb85c;
  --gh-blue: #3b82f6;
  --gh-blue-dark: #1d4ed8;
  --gh-text: #2a2218;
  --gh-text-soft: #6b5f4a;
  --gh-card-bg: #ffffff;
  --gh-shadow: rgba(90, 60, 10, 0.13);

  background-color: var(--gh-cream);
  font-family: 'Nunito', sans-serif;
  color: var(--gh-text);
  min-height: 100vh;
  width: 100vw;
  padding-bottom: 2rem;
  /* Garante que role de forma isolada sem sumir elementos */
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* ── HERO SECTION ── */
.games-hub-container .hero {
  position: relative;
  text-align: center;
  padding: 52px 24px 36px;
  overflow: hidden;
  margin-top: 60px; /* Para descer do Header Global */
}

/* floating stars background */
.games-hub-container .hero::before {
  content: '★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★ ✦ ★';
  position: absolute;
  top: 0; left: -20px; right: -20px;
  font-size: 11px;
  color: var(--gh-gold);
  opacity: 0.18;
  letter-spacing: 18px;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.games-hub-container .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gh-black);
  color: var(--gh-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.games-hub-container .hero-badge span { font-size: 13px; }

.games-hub-container .hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  color: var(--gh-black);
  margin-bottom: 10px;
}

.games-hub-container .hero h1 em {
  font-style: normal;
  color: var(--gh-gold);
  -webkit-text-stroke: 1px var(--gh-gold);
}

.games-hub-container .hero-sub {
  font-size: 15px;
  color: var(--gh-text-soft);
  font-weight: 600;
  max-width: 420px;
  margin: 0 auto 10px;
}

/* XP strip */
.games-hub-container .xp-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gh-black) 0%, #2a2010 100%);
  border: 1.5px solid var(--gh-gold);
  border-radius: 30px;
  padding: 7px 20px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gh-gold-light);
  font-weight: 700;
}

.games-hub-container .xp-strip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gh-gold-glow);
  box-shadow: 0 0 8px var(--gh-gold-glow);
  animation: fzh-pulse 1.6s ease-in-out infinite;
}

@keyframes fzh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── TROPHY BANNER ── */
.games-hub-container .trophy-banner {
  margin: 0 28px 32px;
  max-width: 1044px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--gh-black) 0%, #1e1600 100%);
  border: 1.5px solid var(--gh-gold);
  border-radius: 20px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.games-hub-container .trophy-banner::before {
  content: '🌟';
  font-size: 80px;
  position: absolute;
  right: 24px;
  top: 50%; transform: translateY(-50%);
  opacity: 0.08;
}

.games-hub-container .trophy-icon { font-size: 32px; flex-shrink: 0; }

.games-hub-container .trophy-text h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--gh-gold-light) !important;
  font-size: 19px;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.games-hub-container .trophy-text p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.games-hub-container .trophy-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.games-hub-container .trophy-pill {
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gh-gold-light);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── GAME CARDS GRID ── */
.games-hub-container .games-section {
  padding: 0 28px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.games-hub-container .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Individual game card */
.games-hub-container .game-card {
  background: var(--gh-card-bg);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--gh-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.games-hub-container .game-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 40px rgba(90,60,10,0.2);
}

.games-hub-container .game-card.gold-theme { border-color: var(--gh-gold); }
.games-hub-container .game-card.cyan-theme { border-color: var(--gh-cyan); }
.games-hub-container .game-card.purple-theme { border-color: var(--gh-purple); }
.games-hub-container .game-card.green-theme { border-color: var(--gh-green); }
.games-hub-container .game-card.blue-theme { border-color: var(--gh-blue); }

/* card illustration area */
.games-hub-container .card-art {
  height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.games-hub-container .card-art-gold   { background: linear-gradient(145deg, #2a1f00 0%, #5a3e00 50%, #3d2b00 100%); }
.games-hub-container .card-art-cyan   { background: linear-gradient(145deg, #002830 0%, #005060 50%, #003040 100%); }
.games-hub-container .card-art-purple { background: linear-gradient(145deg, #1a0030 0%, #3a0060 50%, #220040 100%); }
.games-hub-container .card-art-green  { background: linear-gradient(145deg, #001a00 0%, #003a00 50%, #002200 100%); }
.games-hub-container .card-art-blue   { background: linear-gradient(145deg, #001a33 0%, #003366 50%, #001122 100%); }

/* glowing ring behind icon */
.games-hub-container .card-art-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.18;
  animation: fzh-glow-breathe 3s ease-in-out infinite;
}

.games-hub-container .gold-glow-el   { background: radial-gradient(circle, var(--gh-gold-glow), transparent 70%); }
.games-hub-container .cyan-glow-el   { background: radial-gradient(circle, #40e0ff, transparent 70%); }
.games-hub-container .purple-glow-el { background: radial-gradient(circle, #cc88ff, transparent 70%); }
.games-hub-container .green-glow-el  { background: radial-gradient(circle, #88ff88, transparent 70%); }
.games-hub-container .blue-glow-el   { background: radial-gradient(circle, #88c0ff, transparent 70%); }

@keyframes fzh-glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.3); opacity: 0.32; }
}

.games-hub-container .card-emoji {
  font-size: 72px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.games-hub-container .game-card:hover .card-emoji { transform: scale(1.12) rotate(-4deg); }

/* XP badge on card */
.games-hub-container .card-xp {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gh-black);
  color: var(--gh-gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--gh-gold);
  letter-spacing: 0.5px;
}

/* difficulty stars */
.games-hub-container .card-diff {
  position: absolute;
  bottom: 12px; left: 12px;
  display: flex;
  gap: 2px;
}

.games-hub-container .star-f { color: var(--gh-gold-glow); font-size: 13px; }
.games-hub-container .star-e { color: rgba(255,255,255,0.2); font-size: 13px; }

/* card body */
.games-hub-container .card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.games-hub-container .card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: max-content;
}

.games-hub-container .tag-gold   { background: #fff4d0; color: #8a6200; }
.games-hub-container .tag-cyan   { background: #d0f4f8; color: #006070; }
.games-hub-container .tag-purple { background: #f0d0ff; color: #600090; }
.games-hub-container .tag-green  { background: #d0f0d0; color: #005500; }
.games-hub-container .tag-blue   { background: #d0e8ff; color: #003388; }

.games-hub-container .card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--gh-black) !important;
  margin-bottom: 6px;
  line-height: 1.1;
}

.games-hub-container .card-desc {
  font-size: 13.5px;
  color: var(--gh-text-soft) !important;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

/* card features chips */
.games-hub-container .card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.games-hub-container .chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--gh-cream);
  color: var(--gh-text-soft);
}

/* play button */
.games-hub-container .btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  margin-top: auto;
}

.games-hub-container .btn-gold {
  background: linear-gradient(135deg, var(--gh-gold) 0%, var(--gh-gold-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}
.games-hub-container .btn-gold:hover {
  background: linear-gradient(135deg, var(--gh-gold-light) 0%, var(--gh-gold-glow) 100%);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

.games-hub-container .btn-cyan {
  background: linear-gradient(135deg, var(--gh-cyan-dark) 0%, var(--gh-cyan) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,184,200,0.4);
}
.games-hub-container .btn-cyan:hover {
  box-shadow: 0 6px 24px rgba(46,184,200,0.6);
  transform: translateY(-2px);
}

.games-hub-container .btn-purple {
  background: linear-gradient(135deg, #7a44b8 0%, #a060e8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(155,114,207,0.4);
}
.games-hub-container .btn-purple:hover {
  box-shadow: 0 6px 24px rgba(155,114,207,0.6);
  transform: translateY(-2px);
}

.games-hub-container .btn-green {
  background: linear-gradient(135deg, #3a8c3a 0%, #5cb85c 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(92,184,92,0.4);
}
.games-hub-container .btn-green:hover {
  box-shadow: 0 6px 24px rgba(92,184,92,0.6);
  transform: translateY(-2px);
}

.games-hub-container .btn-blue {
  background: linear-gradient(135deg, var(--gh-blue-dark) 0%, var(--gh-blue) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}
.games-hub-container .btn-blue:hover {
  box-shadow: 0 6px 24px rgba(59,130,246,0.6);
  transform: translateY(-2px);
}


/* ── MODAL TUTORIAL (Encontre o objeto) ── */
.games-hub-container .gh-tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 2, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.games-hub-container .gh-tutorial-overlay.visivel {
  opacity: 1;
  pointer-events: auto;
}

.games-hub-container .gh-tutorial-modal {
  background: linear-gradient(160deg, #FDFCF0 0%, #FFF8E0 100%);
  border-radius: 28px;
  padding: 40px;
  width: min(450px, 90vw);
  text-align: center;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.4), 0 24px 64px rgba(0,0,0,0.4);
}

.games-hub-container .gh-tutorial-overlay.visivel .gh-tutorial-modal {
  transform: scale(1) translateY(0);
}

.games-hub-container .gh-tutorial-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  animation: fzh-pulse 2s ease-in-out infinite;
}

.games-hub-container .gh-tutorial-title {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: var(--gh-black);
  margin-bottom: 15px;
}

.games-hub-container .gh-tutorial-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #6B5A3E;
  margin-bottom: 25px;
  line-height: 1.5;
}

.games-hub-container .gh-tutorial-btn {
  background: linear-gradient(135deg, var(--gh-gold) 0%, var(--gh-gold-light) 100%);
  color: #1A1208 !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.games-hub-container .gh-tutorial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

.games-hub-container .gh-tutorial-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.games-hub-container .gh-tutorial-close:hover {
  background: rgba(0,0,0,0.1);
}

/* ── BACK BUTTON ── */
.games-hub-container .back-area {
  text-align: center;
  padding-bottom: 52px;
}

.games-hub-container .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gh-black);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.games-hub-container .btn-back:hover {
  background: #2a2010;
  transform: translateX(-4px);
}

/* ── ENTRANCE ANIMATIONS ── */
@keyframes fzh-fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.games-hub-container .gh-hero { animation: fzh-fadeUp 0.5s ease both; }
.games-hub-container .trophy-banner { animation: fzh-fadeUp 0.55s 0.1s ease both; }
.games-hub-container .game-card:nth-child(1) { animation: fzh-fadeUp 0.5s 0.18s ease both; }
.games-hub-container .game-card:nth-child(2) { animation: fzh-fadeUp 0.5s 0.26s ease both; }
.games-hub-container .game-card:nth-child(3) { animation: fzh-fadeUp 0.5s 0.34s ease both; }
.games-hub-container .game-card:nth-child(4) { animation: fzh-fadeUp 0.5s 0.42s ease both; }
.games-hub-container .back-area    { animation: fzh-fadeUp 0.5s 0.50s ease both; }

@media (max-width: 640px) {
  .games-hub-container .games-grid { grid-template-columns: 1fr; }
  .games-hub-container .trophy-pills { display: none; }
  .games-hub-container .hero h1 { font-size: 36px; }
}

/* Ajustes na tela de seleção de Ebook que usa a grade fz-games-livros-grid */
.games-hub-container .fz-games-selecao {
  padding: 80px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.games-hub-container .fz-games-selecao-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.games-hub-container .fz-games-selecao-titulo, .games-hub-container .fz-games-selecao-sub {
  color: var(--gh-black);
}

.games-hub-container .fz-games-selecao-voltar {
  background: var(--gh-black);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  font-size: 1.2rem;
}

.games-hub-container .fz-games-selecao-voltar:hover { transform: scale(1.1); }

/* --- End of games-hub.css --- */

/* --- Start of quiz.css --- */
/* quiz.css - Estilo original importado de quiz_fabulazen.html */

#fz-quiz-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fz-quiz-overlay.visivel {
  opacity: 1;
}

.book-wrap {
  background: #fdf8f0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8dcc8;
  display: flex;
  flex-direction: row;
  min-height: 480px;
  max-width: 850px;
  width: 100%;
  font-family: 'Lora', Georgia, serif;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4a3520;
  color: #fff;
  border: 2px solid #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-img-container {
  width: 44%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.book-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.7);
  transform: scale(1.05);
  transition: filter 0.4s;
}

.book-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.4s;
  background-color: rgba(0,0,0,0.4);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
  transition: all 0.4s ease;
  z-index: 3;
}

.brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #f5c518;
  text-shadow:
    0 0 12px rgba(245,197,24,0.6),
    0 0 30px rgba(245,197,24,0.3),
    2px 2px 0px #8a6c00,
    4px 4px 0px #5a4600;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
  font-style: italic;
  transition: all 0.5s ease;
}

.brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.9;
  transition: opacity 0.4s;
}

.feedback-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  display: none;
  animation: popIn 0.4s cubic-bezier(.36,.07,.19,.97);
}

@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.book-content {
  flex: 1;
  padding: 2rem 2.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9e8060;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.question-num {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9e8060;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.question-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3d2e1a;
  margin: 0 0 1rem;
  line-height: 1.35;
}

/* Added feedback explanation inside the option container space */
.question-explanation {
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
  animation: popIn 0.3s;
}
.question-explanation.correct-exp {
  background: #eaf5e4;
  color: #2d5a20;
  border: 1px solid #5a8a4a;
}
.question-explanation.wrong-exp {
  background: #fdeaea;
  color: #6a1f1f;
  border: 1px solid #a03030;
}

.options-list { display: flex; flex-direction: column; gap: 8px; }

.option {
  background: #fff;
  border: 1.5px solid #e0d0b5;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 13.5px;
  color: #4a3520;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option:hover { border-color: #b5936b; background: #fdf3e3; }
.option.selected { border-color: #8b5e2e; background: #fde8c8; }
.option.correct { border-color: #5a8a4a; background: #eaf5e4; color: #2d5a20; }
.option.wrong { border-color: #a03030; background: #fdeaea; color: #6a1f1f; }

.option-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
}

.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.8rem;
  border-top: 1px solid #e8dcc8;
}

.dots { display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d4c0a0; transition: all 0.2s; }
.dot.active { background: #8b5e2e; width: 22px; border-radius: 4px; }

.btn-next {
  background: #8b5e2e; color: #fff;
  border: none; padding: 10px 22px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-next:hover:not(:disabled) { background: #6d4820; }
.btn-next:active:not(:disabled) { transform: scale(0.97); }
.btn-next:disabled { background: #c9b89a; cursor: default; }

.result-view { text-align: center; padding: 1.5rem 1rem; }
.result-view h2 { font-family: 'Lora', serif; font-size: 1.5rem; color: #3d2e1a; margin: 0 0 0.4rem; }
.result-score { font-family: 'Nunito', sans-serif; font-size: 3rem; font-weight: 700; color: #8b5e2e; margin: 0.4rem 0; }
.result-view p { font-family: 'Lora', serif; font-size: 14px; color: #6a5030; margin: 0 0 1.2rem; }
.btn-restart { background: #8b5e2e; color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; margin-right: 8px; }
.btn-close { background: #aaaaaa; color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-close:hover { background: #888; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .book-wrap { flex-direction: column; overflow-y: auto; max-height: 90vh; }
  .book-img-container { width: 100%; height: 180px; }
  .book-content { padding: 1.5rem; }
}

/* --- End of quiz.css --- */

/* --- Start of memory-game.css --- */
/* 
 * Memory Game - Epic RPG Parchment Style 
 */

.memory-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, #2b1b3d 0%, #0f0f1a 100%);
    color: #f8f0e0;
    font-family: 'Cinzel', serif;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==========================================================================
   Setup Screen (Parchment Menu)
   ========================================================================== */
.memory-setup {
    background: #fdf5e6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 20%);
    border: 4px solid #8b5a2b;
    border-radius: 10px;
    box-shadow: 
        inset 0 0 40px rgba(139, 69, 19, 0.2),
        0 20px 50px rgba(0,0,0,0.8);
    padding: 40px 50px;
    text-align: center;
    color: #4a2e15;
    max-width: 600px;
    margin: auto;
    position: relative;
}

/* Torn edges effect using box-shadows */
.memory-setup::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    pointer-events: none;
}

.memory-setup h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.memory-setup p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #5c3a21;
}

.setup-group {
    margin-bottom: 25px;
    text-align: left;
}

.setup-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    padding-bottom: 5px;
}

.setup-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.setup-btn {
    flex: 1;
    background: linear-gradient(to bottom, #f4e8d1, #e3cfa1);
    border: 2px solid #a67c52;
    padding: 12px 20px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #4a2e15;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.setup-btn:hover {
    background: linear-gradient(to bottom, #fdf5e6, #ebd7ad);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.setup-btn.active {
    background: linear-gradient(to bottom, #8a2b2b, #5c1818);
    color: #f8f0e0;
    border-color: #3a0d0d;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
}

.btn-start-game {
    display: inline-block;
    width: 100%;
    background: linear-gradient(to bottom, #d4af37, #aa8014);
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-start-game:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   Game Board
   ========================================================================== */
.memory-game-area {
    width: 100%;
    max-width: 900px;
    display: none; /* Hidden until started */
    flex-direction: column;
    gap: 20px;
}

.memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);
}

.player-stats {
    display: flex;
    gap: 30px;
}

.player-score {
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s, transform 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.player-score.active-turn {
    color: #FFD700;
    font-weight: bold;
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.timer-container {
    flex: 1;
    margin: 0 30px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: none; /* Only for 2P mode */
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4e50, #f9d423);
    transform-origin: left;
    transition: transform 0.1s linear;
}

.btn-quit {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255,0,0,0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */
.memory-grid {
    display: grid;
    gap: 12px;
    justify-content: center;
    perspective: 1000px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Grid sizes set by JS based on difficulty */
.memory-grid.grid-16 { grid-template-columns: repeat(4, 1fr); max-width: 520px; }
.memory-grid.grid-24 { grid-template-columns: repeat(6, 1fr); max-width: 780px; }
.memory-grid.grid-36 { grid-template-columns: repeat(6, 1fr); max-width: 780px; }

.memory-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

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

.memory-card.matched {
    transform: rotateY(180deg) scale(0.95);
    filter: brightness(0.7) contrast(1.2);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #5c3a21;
}

.card-back {
    background: #2a1616;
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0, rgba(0,0,0,0.1) 2px, transparent 2px, transparent 4px),
        radial-gradient(circle at center, #4a1f1f 0%, #1a0a0a 100%);
    color: #d4af37;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* O "verso" da carta no HTML é a frente da imagem */
.card-front {
    transform: rotateY(180deg);
    background: #f8f0e0;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Fallback para quando a imagem falha ao carregar */
.card-front.img-error img {
    opacity: 0;
    display: none;
}

.card-front.img-error::after {
    content: '✨';
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: #d4af37;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    animation: pulse-zen 2s infinite ease-in-out;
}

@keyframes pulse-zen {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .memory-container {
        padding: 10px;
    }

    .memory-grid {
        gap: 8px;
    }

    .memory-grid.grid-16 { grid-template-columns: repeat(4, 1fr); }
    .memory-grid.grid-24 { grid-template-columns: repeat(4, 1fr); }
    .memory-grid.grid-36 { grid-template-columns: repeat(6, 1fr); }

    .memory-setup {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .player-stats {
        flex-direction: column;
        gap: 5px;
    }

    .timer-container {
        margin: 10px 0;
    }

    .memory-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Loading Bar (Pre-validation)
   ========================================================================== */
.memory-loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.memory-loading-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    background-size: 200% 100%;
    animation: memory-loading-shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes memory-loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- End of memory-game.css --- */

/* --- Start of auth.css --- */
/* 
   Auth UI - Estilo Zen e Mágico
*/

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.auth-overlay.visible {
    opacity: 1;
}

/* Efeitos de partículas mágicas no fundo (opcional, via pseudo-elementos ou imagens) */
.auth-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    animation: drift 60s linear infinite;
    will-change: transform;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-overlay.visible .auth-card {
    transform: translateY(0);
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Botão do Google */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.auth-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.auth-google-btn:active {
    transform: translateY(0);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
}

.auth-footer {
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.auth-footer a:hover {
    color: #ffffff;
}

/* Spinner de Loading */
.auth-loading {
    display: none;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.auth-loading.active {
    display: block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- End of auth.css --- */

/* --- Start of ecommerce.css --- */
/* 
 * ecommerce.css — Fabula-Zen (Versão Mágica 2.0)
 * Estilos para o fluxo de Ebooks Personalizados e Pagamentos.
 */

:root {
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%);
    --zen-dark: #0f0f1a;
    --paper-bg: linear-gradient(to right, #f0e6d2 0%, #fbf8f1 5%, #fbf8f1 95%, #e8dcb8 100%);
}

/* O Efeito de Página de Livro / Pergaminho */
.book-page {
    background: var(--paper-bg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(212, 175, 55, 0.1);
    color: #2d261b;
}

/* Container de Pedidos */
.custom-order-container {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(circle at 50% 50%, #2a2a2d 0%, #111 100%);
    overflow-y: auto;
}

/* Inputs customizados */
.magic-input {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid #e2d5b5 !important;
    transition: all 0.3s ease;
}
.magic-input:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background-color: #fff !important;
}

/* Cards de Tema (Substituindo os Radio Buttons) */
.theme-card-input:checked + .theme-card-content {
    border-color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.theme-card-content {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* Área de Drag & Drop */
.drop-zone {
    border: 2px dashed #c8b99c;
    transition: all 0.3s ease;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.05);
}

/* Checkbox Customizado */
.magic-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #c8b99c;
    border-radius: 0.25rem;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.magic-checkbox:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}
.magic-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Efeito de brilho no botão */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Novos Estilos: Tesouraria Zen --- */

.magic-receipt {
    background: repeating-linear-gradient(
        #fdfbf7,
        #fdfbf7 29px,
        #e8dcb8 30px
    );
    background-position: 0 1.5rem;
    box-shadow: inset 0 0 15px rgba(138, 127, 106, 0.1);
}

.payment-card-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(200, 185, 156, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-card-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.payment-card-btn:hover .btn-shine-effect {
    animation: shine-fast 0.8s forwards;
}

@keyframes shine-fast {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Ajustes de Pagamentos (Reutilizando a estética glass) */
.payment-page-container {
    padding-top: 100px;
    background: radial-gradient(circle at 50% 50%, #2a2a2d 0%, #111 100%);
}
.payment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- End of ecommerce.css --- */

/* --- Start of reminder.css --- */
/* ════════════════════════════════════════════════
   Reminder Modal — Lembretes de Leitura (Pais)
   Tema: dark-glass + gold, pergaminho Fábula Zen
   ════════════════════════════════════════════════ */

/* Overlay */
.reminder-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    animation: reminderFadeIn 0.35s ease forwards;
}

@keyframes reminderFadeIn {
    to { opacity: 1; }
}

/* Modal Container */
.reminder-modal {
    background: linear-gradient(145deg, rgba(30, 28, 42, 0.97), rgba(20, 18, 32, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: reminderSlideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform: translateY(30px);
}

@keyframes reminderSlideUp {
    to { transform: translateY(0); }
}

/* Header */
.reminder-modal-header {
    position: relative;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.reminder-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 6px;
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.reminder-modal-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.4;
}

.reminder-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
}

.reminder-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

/* Body */
.reminder-modal-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Sections */
.reminder-section {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.reminder-section:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.reminder-section-night {
    background: linear-gradient(135deg, rgba(30, 30, 70, 0.5), rgba(20, 20, 50, 0.4));
}

.reminder-section-afternoon {
    background: linear-gradient(135deg, rgba(70, 50, 20, 0.35), rgba(50, 40, 15, 0.3));
}

.reminder-section-promo {
    background: linear-gradient(135deg, rgba(20, 60, 40, 0.35), rgba(15, 45, 30, 0.3));
}

.reminder-section-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

.reminder-section-content {
    flex: 1;
    min-width: 0;
}

.reminder-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.reminder-section-header h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.reminder-section-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
    margin: 0 0 12px;
}

/* Toggle Switch */
.reminder-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.reminder-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.reminder-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.reminder-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.reminder-toggle input:checked + .reminder-toggle-slider {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.reminder-toggle input:checked + .reminder-toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Time Options */
.reminder-time-options {
    display: flex;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.reminder-time-btn {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.reminder-time-btn:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
    color: #FFD700;
}

.reminder-time-btn.active {
    border-color: rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
    color: #FFD700;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

/* Save Button */
.reminder-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #1a1a2e;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    margin-top: 4px;
}

.reminder-save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
}

.reminder-save-btn:active:not(:disabled) {
    transform: translateY(0);
}

.reminder-save-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.reminder-save-btn.success {
    background: linear-gradient(135deg, #28a745, #34d058);
    color: #fff;
}

/* Privacy Note */
.reminder-privacy-note {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Unsupported / Denied states */
.reminder-unsupported,
.reminder-denied {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: rgba(255, 180, 180, 0.8);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

.reminder-unsupported i,
.reminder-denied i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #ff6b6b;
}

/* Scrollbar styling */
.reminder-modal::-webkit-scrollbar {
    width: 4px;
}

.reminder-modal::-webkit-scrollbar-track {
    background: transparent;
}

.reminder-modal::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .reminder-modal {
        max-height: 95vh;
        border-radius: 20px;
    }

    .reminder-modal-header {
        padding: 22px 20px 16px;
    }

    .reminder-modal-body {
        padding: 18px 20px 22px;
        gap: 14px;
    }

    .reminder-section {
        padding: 14px;
    }

    .reminder-modal-title {
        font-size: 1.25rem;
    }
}

/* ════════════════════════════════════════════════
   Parent Notification Soft-Prompt Toast
   ════════════════════════════════════════════════ */
.reminder-prompt-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(26, 24, 38, 0.98), rgba(16, 14, 26, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: reminderToastSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reminderToastSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reminder-prompt-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reminder-prompt-toast-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.reminder-prompt-toast-text strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #FFD700;
    margin-bottom: 4px;
}

.reminder-prompt-toast-text p {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
}

.reminder-prompt-toast-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reminder-prompt-btn-primary {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-prompt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.reminder-prompt-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-prompt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 480px) {
    .reminder-prompt-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}


/* --- End of reminder.css --- */

