:root {
    --primary: #090000;
    --secondary: #090000;
    --accent: #600f0f;
    --highlight: #e94545;
    --fire: #ff0000;
    --light: #ff4d4d;
    --dark: #090000;
    --card-bg: #090000;
    --hero-logo-glow-color: #380000;
}


/* ===== FIRE EXPERIENCE LAYER ===== */
#fire-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0.85;
}

.fire-ambience {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        radial-gradient(circle at 50% 110%, rgba(255, 80, 0, 0.28), transparent 45%),
        radial-gradient(circle at 10% 0%, rgba(255, 30, 0, 0.09), transparent 40%),
        radial-gradient(circle at 90% 15%, rgba(255, 140, 0, 0.08), transparent 35%);
    mix-blend-mode: screen;
    animation: fireAmbienceShift 12s ease-in-out infinite alternate;
}

@keyframes fireAmbienceShift {
    0% { filter: saturate(1) brightness(1); }
    100% { filter: saturate(1.15) brightness(1.08); }
}

.fire-spark {
    position: fixed;
    bottom: -40px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #ffe8a8 0%, #ff8f1f 65%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 109, 22, 0.8);
    opacity: 0;
    z-index: 5;
    animation-name: floatSpark;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes floatSpark {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift-x, 30px), -120vh, 0) scale(0.15);
        opacity: 0;
    }
}

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

button,
a,
.big-button,
.cta-button,
.volume-btn,
.chapter-btn,
.read-btn,
.reading-method-btn,
.close-modal,
.character-card,
.gallery-item,
.music-card {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

button:focus,
a:focus,
.big-button:focus,
.cta-button:focus,
.volume-btn:focus,
.chapter-btn:focus,
.read-btn:focus,
.reading-method-btn:focus,
.close-modal:focus,
.character-card:focus,
.gallery-item:focus,
.music-card:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible,
.big-button:focus-visible,
.cta-button:focus-visible,
.volume-btn:focus-visible,
.chapter-btn:focus-visible,
.read-btn:focus-visible,
.reading-method-btn:focus-visible,
.close-modal:focus-visible,
.character-card:focus-visible,
.gallery-item:focus-visible,
.music-card:focus-visible {
    outline: 2px solid rgba(255, 77, 77, 0.85);
    outline-offset: 3px;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    animation: backgroundPulse 20s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0%, 100% { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
    50% { background: linear-gradient(135deg, #090000, #0c0000); }
}

/* Header com estilo de mangá */
header {
    background: rgba(5, 5, 10, 0.95);
    color: var(--light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--fire);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(20deg, var(--light), var(--fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    font-weight: 900;
    letter-spacing: 1px;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
    }
}

.logo i {
    color: var(--fire);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 104, 104, 0.5));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #ddd;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--fire);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--fire), var(--highlight));
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}

nav a:hover::after {
    width: 100%;
}

/* Hero com estilo de anime */
.hero {
    padding: 150px 40px 100px;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 53, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(5, 5, 10, 0.9), rgba(10, 10, 20, 0.9)), 
        url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        background-position: center 0px;
    }
    50% {
        background-position: center 20px;
    }
}

/* marca fundo animado principal --  fim*/

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

.hero-logo-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 0;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    filter:
        brightness(0)
        saturate(100%)
        drop-shadow(0 0 20px var(--hero-logo-glow-color))
        drop-shadow(0 0 40px var(--hero-logo-glow-color))
        drop-shadow(0 0 70px var(--hero-logo-glow-color));
    mix-blend-mode: screen;
    animation: fadeIn 1.5s ease, logoGlowPulse 4s ease-in-out infinite;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
    animation: fadeIn 1.5s ease, logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.3rem;
    opacity: 0.9;
    animation: fadeIn 2s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 3px solid var(--fire);
    transition: all 0.4s ease;
}

.hero p:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--fire), var(--highlight));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 69, 0.4);
    animation: fadeIn 2.5s ease, buttonPulse 2s ease-in-out infinite;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(233, 69, 69, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(233, 69, 69, 0.7);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 69, 69, 0.8);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Botões principais com estilo de visual novel */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 40px;
    max-width: 1300px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

.big-button {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    animation: cardFloat 6s ease-in-out infinite;
}

.big-button:nth-child(1) { animation-delay: 0s; }
.big-button:nth-child(2) { animation-delay: 0.2s; }
.big-button:nth-child(3) { animation-delay: 0.4s; }
.big-button:nth-child(4) { animation-delay: 0.6s; }

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.big-button:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 53, 53, 0.3);
    border-color: var(--fire);
}

.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.big-button:hover .button-bg {
    transform: scale(1.15) rotate(2deg);
}

.button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    text-align: left;
    padding: 30px;
    transition: background 0.4s ease;
}

.big-button:hover .button-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.9));
}

.button-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--fire);
    background: rgba(0, 0, 0, 0.7);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.big-button:hover .button-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.8);
}

.button-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}

.big-button:hover .button-title {
    transform: translateX(5px);
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.6);
}

.button-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 90%;
    transition: all 0.4s ease;
}

.big-button:hover .button-desc {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== SEÇÃO CURIOSIDADES ===== */
.curiosities-section {
    padding: 80px 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 1.2s ease;
}

.curiosities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(233, 69, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 15s ease-in-out infinite;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: slideUp 1s ease;
}

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

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--light), var(--fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    animation: titleGlow 3s ease-in-out infinite;
}

.section-header h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--light), var(--fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 77, 77, 0.6));
    }
}

.section-header h2 i {
    font-size: 2.5rem;
    animation: iconSpin 4s ease-in-out infinite;
}

.section-header h3 i {
    font-size: 2.5rem;
    animation: iconSpin 4s ease-in-out infinite;
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 3px solid var(--fire);
    transition: all 0.4s ease;
}

.section-subtitle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.curiosities-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.curiosity-card {
    display: flex;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.8s ease;
    animation-fill-mode: both;
}

.curiosity-card:nth-child(1) { animation-delay: 0.1s; }
.curiosity-card:nth-child(2) { animation-delay: 0.2s; }
.curiosity-card:nth-child(3) { animation-delay: 0.3s; }
.curiosity-card:nth-child(4) { animation-delay: 0.4s; }
.curiosity-card:nth-child(5) { animation-delay: 0.5s; }

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

.curiosity-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 53, 53, 0.2);
    border-color: rgba(255, 53, 53, 0.4);
}

.curiosity-card.reverse {
    flex-direction: row-reverse;
}

.curiosity-card.full-width {
    flex-direction: column;
}

.curiosity-img {
    flex: 1;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.curiosity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.curiosity-card:hover .curiosity-img img {
    transform: scale(1.08) rotate(1deg);
}

.img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-top: 2px solid var(--fire);
    transition: all 0.4s ease;
}

.curiosity-card:hover .img-label {
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.curiosity-text {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.curiosity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.curiosity-card:hover .curiosity-header {
    border-bottom-color: rgba(255, 53, 53, 0.3);
}

.curiosity-header h3 {
    font-size: 1.6rem;
    color: var(--fire);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.curiosity-card:hover .curiosity-header h3 {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.curiosity-date {
    background: rgba(255, 53, 53, 0.2);
    color: var(--fire);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.curiosity-card:hover .curiosity-date {
    background: rgba(255, 53, 53, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 53, 53, 0.4);
}

.curiosity-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.curiosity-card:hover .curiosity-text p {
    opacity: 1;
}

.curiosity-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.curiosity-text li {
    margin-bottom: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 10px;
}

.curiosity-text li:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--light);
}

.curiosity-text strong {
    color: var(--fire);
    transition: all 0.3s ease;
}

.curiosity-text strong:hover {
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

.curiosity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: rgba(255, 53, 53, 0.15);
    color: var(--fire);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 53, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag:hover {
    background: rgba(255, 53, 53, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 53, 53, 0.4);
}

/* Timeline para a curiosidade de evolução */
.evolution-timeline {
    position: relative;
    padding: 20px 0;
}

.evolution-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--fire), transparent);
    animation: timelineGlow 3s ease-in-out infinite;
}

@keyframes timelineGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    }
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--fire);
    box-shadow: 0 0 10px rgba(255, 53, 53, 0.7);
    transition: all 0.4s ease;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 53, 53, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 53, 53, 1);
    }
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 53, 53, 1);
}

.timeline-date {
    font-weight: 600;
    color: var(--fire);
    margin-bottom: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--light);
    margin-bottom: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content h4 {
    color: var(--fire);
}

.timeline-content p {
    opacity: 0.8;
    margin: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content p {
    opacity: 1;
}

/* CTA da seção de curiosidades */
.curiosities-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 53, 53, 0.3);
    transition: all 0.4s ease;
    animation: fadeIn 1.5s ease;
}

.curiosities-cta:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 53, 53, 0.3);
}

.curiosities-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.curiosities-cta:hover p {
    opacity: 1;
    transform: scale(1.02);
}

.curiosities-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}


/* ===== PAINEL DE PRÉVIA DO READER IMERSIVO ===== */
.reader-preview-panel {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    background: #000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.reader-preview-panel.active {
    display: block;
    opacity: 1;
}

.reader-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.reader-preview-back {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 12001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 70, 70, 0.75);
    border-radius: 999px;
    background: rgba(10, 0, 0, 0.78);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.reader-preview-back:hover {
    transform: translateY(-2px);
    background: rgba(120, 0, 0, 0.82);
    border-color: var(--fire);
}

/* ===== MODAIS - CORREÇÕES PRINCIPAIS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--fire);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
    animation: modalBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounce {
    0% {
        transform: scale(0.7) translateY(-30px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-full {
    max-width: 95%;
    width: 95%;
}

/* Ajuste para a ficha de personagem específica */
#modal-character .modal-content {
    width: 95%;
    max-width: 1200px;
}

.modal-header {
    background: rgba(10, 10, 20, 0.9);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-header:hover {
    background: rgba(10, 10, 20, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    margin: 0;
    color: var(--fire);
    font-size: 1.8rem;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.close-modal {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--fire);
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(90deg) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 53, 53, 0.5);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    animation: fadeIn 0.8s ease;
}

/* Estilo para seleção de volume e capítulo */
.volume-selection, .chapter-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.volume-btn, .chapter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.volume-btn::before, .chapter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 53, 53, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.volume-btn:hover::before, .chapter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.volume-btn:hover, .chapter-btn:hover {
    background: rgba(255, 53, 53, 0.2);
    border-color: var(--fire);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 53, 53, 0.4);
}

.volume-btn.active, .chapter-btn.active {
    background: rgba(255, 107, 53, 0.3);
    border-color: var(--fire);
    box-shadow: 0 0 10px rgba(255, 53, 53, 0.5);
    animation: activeButton 0.5s ease;
}

@keyframes activeButton {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.volume-btn.disabled, .chapter-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.volume-btn.disabled:hover, .chapter-btn.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

.selection-title {
    margin-bottom: 10px;
    color: var(--fire);
    font-size: 1.2rem;
    animation: slideUp 0.6s ease;
}

.read-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--fire), var(--highlight));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.read-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.read-btn:hover::before {
    width: 500px;
    height: 500px;
}

.read-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.6);
}

.read-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reading-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.reading-method-btn {
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    padding: 20px 16px;
    text-align: left;
    display: grid;
    gap: 10px;
    align-content: start;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.reading-method-btn i {
    font-size: 1.8rem;
    color: var(--fire);
}

.reading-method-btn span {
    font-size: 1.15rem;
    font-weight: 700;
}

.reading-method-btn small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
    font-size: 0.9rem;
}

.reading-method-btn:hover {
    transform: translateY(-6px);
    border-color: var(--fire);
    box-shadow: 0 12px 26px rgba(233, 69, 96, 0.35);
}

.reading-method-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
    box-shadow: none;
}

.reading-method-btn.pdf {
    background: linear-gradient(180deg, rgba(89, 26, 26, 0.48), rgba(17, 8, 8, 0.5));
}

.reading-method-btn.docs {
    background: linear-gradient(180deg, rgba(23, 35, 64, 0.5), rgba(12, 14, 26, 0.5));
}

.reading-method-btn.immersive {
    background: linear-gradient(180deg, rgba(64, 20, 20, 0.58), rgba(21, 8, 8, 0.55));
}

@media (max-width: 900px) {
    .reading-method-grid {
        grid-template-columns: 1fr;
    }

    .reading-method-btn {
        min-height: 130px;
    }
}

/* Estilo para personagens */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.character-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 53, 53, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--fire);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 53, 53, 0.3);
}

.character-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.character-card:hover .character-img {
    transform: scale(1.1);
}

.character-info {
    padding: 20px;
    transition: all 0.4s ease;
}

.character-card:hover .character-info {
    background: rgba(255, 53, 53, 0.1);
}

.character-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--fire);
    transition: all 0.4s ease;
}

.character-card:hover .character-name {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

/* Barra de pesquisa */
.search-bar {
    margin-bottom: 20px;
    position: relative;
    animation: fadeIn 0.8s ease;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.4s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--fire);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Ficha de personagem */
.character-sheet {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    animation: slideInLeft 0.8s ease;
}

.character-portrait {
    flex: 0 0 250px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 2px solid var(--fire);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.character-portrait:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 53, 53, 0.5);
}

.character-details {
    flex: 1;
}

.character-details h3 {
    color: var(--fire);
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.character-details h3:hover {
    border-bottom-color: var(--fire);
    transform: translateX(5px);
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 53, 53, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 53, 53, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--fire);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
    transform: scale(1.1);
}

/* ===== GALERIA DE ARTES MELHORADA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}


.art-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.art-filter-btn {
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid #2d2d44;
    color: #ccc;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.art-filter-btn:hover {
    border-color: rgba(255, 53, 53, 0.4);
    color: #fff;
}

.art-filter-btn.active {
    color: #fff;
    border-color: rgba(255, 53, 53, 0.8);
    background: rgba(255, 53, 53, 0.2);
}


.art-search-bar,
.character-gallery-search-bar {
    margin-bottom: 12px;
}


.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 53, 53, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--fire);
    box-shadow: 0 20px 40px rgba(255, 53, 53, 0.3);
}

.gallery-img {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Estilos para carregamento de imagem */
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 20, 0.8);
    color: #999;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

/* Quando a imagem carregar, o loading some */
.gallery-img.loaded .image-loading {
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    background: rgba(0, 0, 0, 0.85);
}

.gallery-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.3;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-title {
    color: var(--fire);
    transform: translateX(3px);
}

.gallery-year {
    color: var(--fire);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s ease;
}


.gallery-art-type {
    margin-top: 8px;
    font-size: 0.75rem;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 53, 53, 0.15);
    border: 1px solid rgba(255, 53, 53, 0.35);
    color: #ff9f9f;
}


.gallery-item:hover .gallery-year {
    transform: scale(1.1);
}

/* ===== MODAL DE IMAGEM CORRIGIDO SEM LIMITES ===== */
#modal-image {
    background: rgba(0, 0, 0, 0.98);
    z-index: 11050;
}

#modal-image .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

#modal-image .modal-header {
    background: rgba(10, 10, 20, 0.95);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    flex-shrink: 0;
    height: 70px;
    transition: transform 0.3s ease;
}

.image-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s ease;
}

.image-action-btn:hover {
    background: rgba(255, 40, 40, 0.35);
    border-color: rgba(255, 96, 96, 0.7);
}

#modal-image .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow: auto;
    width: 100%;
    height: 100vh;
}

/* Container para imagem expandida SEM LIMITES - COM PADDING PARA BARRA DE DETALHES */
.image-expanded-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 0;
    touch-action: none;
}

#expanded-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
    animation: imageReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Detalhes da imagem fixos no rodapé */
.image-details {
    background: rgba(10, 10, 20, 0.95);
    padding: 20px;
    width: 100%;
    border-top: 2px solid var(--fire);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

#modal-image.ui-collapsed .modal-header {
    transform: translateY(-100%);
}

#modal-image.ui-collapsed .image-details {
    transform: translateY(100%);
}

#modal-image.ui-collapsed .image-expanded-container {
    padding: 0;
}

#modal-image.ui-collapsed #expanded-image {
    max-height: 100vh;
}

.image-ui-toggle-floating {
    position: fixed;
    top: 14px;
    right: 74px;
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#modal-image.ui-collapsed .image-ui-toggle-floating {
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideUpImage {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-details-content {
    max-width: 1000px;
    margin: 0 auto;
}

.image-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    animation: titleFade 1.2s ease;
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-description {
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    padding: 0 20px;
}

.image-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.image-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fire);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 53, 53, 0.3);
    transition: all 0.4s ease;
    animation: metaFadeIn 1.4s ease;
}

@keyframes metaFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-meta-item:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 53, 53, 0.4);
}

.image-meta-item i {
    font-size: 1.2rem;
}

#modal-image .close-modal {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#modal-image .close-modal:hover {
    color: var(--fire);
    background: rgba(255, 107, 53, 0.1);
    transform: rotate(90deg) scale(1.2);
}

/* Músicas */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.music-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--fire);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 53, 53, 0.3);
}

.music-thumb {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.music-card:hover .music-thumb {
    transform: scale(1.1);
}

.music-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.music-card:hover .music-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.music-info {
    padding: 15px;
    transition: all 0.4s ease;
}

.music-card:hover .music-info {
    background: rgba(255, 53, 53, 0.1);
}

.music-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--fire);
    transition: all 0.4s ease;
}

.music-card:hover .music-title {
    transform: translateX(5px);
}

.music-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.music-card:hover .music-desc {
    opacity: 1;
}

/* Footer */
footer {
    margin-top: 60px;
    background: rgba(5, 5, 10, 0.95);
    color: #ccc;
    padding: 40px;
    text-align: center;
    border-top: 2px solid var(--fire);
    animation: fadeIn 1.5s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    color: var(--fire);
    transform: translateY(-5px) scale(1.2) rotate(360deg);
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.8);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsividade */
@media (max-width: 1024px) {
    .curiosity-card:not(.full-width) {
        flex-direction: column;
    }
    
    .curiosity-img {
        min-height: 250px;
    }
    
    .hero-logo,
    .hero-logo-glow {
        max-width: 500px;
    }
    
    .character-sheet {
        grid-template-columns: 1fr;
    }
    
    .photo-frame {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 120px 20px 80px;
        min-height: 60vh;
    }
    
    .hero-logo,
    .hero-logo-glow {
        max-width: 400px;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header h3 {
        font-size: 2.2rem;
    }
    
    .curiosities-section {
        padding: 60px 20px;
    }
    
    .curiosity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .curiosity-date {
        align-self: flex-start;
    }
    
    .volume-selection, .chapter-selection {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .character-grid, .gallery-grid, .music-grid {
        grid-template-columns: 1fr;
    }
    
    .character-profile {
        flex-direction: column;
    }
    
    .character-portrait {
        width: 100%;
        flex: none;
    }
    
    .modal-full {
        width: 98%;
        max-width: 98%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .character-details {
        grid-template-columns: 1fr;
    }
    
    .relationships-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    .gallery-img {
        height: 160px;
    }
    
    .gallery-info {
        padding: 12px;
    }
    
    .gallery-title {
        font-size: 0.9rem;
    }
    
    #modal-image .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    #expanded-image {
        max-height: 50vh;
    }
    
    .image-expanded-container {
        padding: 10px 10px 100px;
    }
    
    .image-details {
        padding: 15px;
        height: auto;
    }
    
    .image-title {
        font-size: 1.4rem;
    }
    
    .image-description {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .image-meta {
        gap: 20px;
    }
    
    .image-meta-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .star-chart-container {
        max-width: 100%;
    }
    
    .star-chart {
        width: 240px;
        height: 240px;
    }
    
    .legend-bar {
        width: 50px;
    }
    
    .legend-value {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-logo,
    .hero-logo-glow {
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .curiosity-text {
        padding: 20px;
    }
    
    .curiosities-cta {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-img {
        height: 150px;
    }
    
    #expanded-image {
        max-height: 40vh;
    }
    
    .image-expanded-container {
        padding: 5px 5px 90px;
    }
    
    .image-details {
        padding: 10px;
    }
    
    .image-title {
        font-size: 1.2rem;
    }
    
    .image-description {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .image-meta {
        gap: 10px;
    }
    
    .image-meta-item {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .star-chart {
        width: 220px;
        height: 220px;
    }
    
    .star-label {
        font-size: 0.7rem;
        width: 80px;
        padding: 3px 6px;
    }
    
    .star-label-value {
        font-size: 0.9rem;
    }
}

/* ===== NOVA FICHA DE PERSONAGEM ===== */
.character-sheet {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border-radius: 15px;
    border: 2px solid #2d2d44;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.character-sheet.active {
    opacity: 1;
    transform: translateY(0);
}

.character-sheet-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff3535;
    animation: slideDown 0.8s ease;
}

.character-sheet-header h2 {
    color: #ff3535;
    font-size: 2.2rem;
    margin-bottom: 5px;
    animation: textGlow 3s ease-in-out infinite;
}

.character-sheet-header h3 {
    color: #ff3535;
    font-size: 2.2rem;
    margin-bottom: 5px;
    animation: textGlow 3s ease-in-out infinite;
}

.character-sheet-header .character-role {
    color: #e94560;
    font-style: italic;
    font-size: 1.1rem;
}

/* Foto 3x4 no estilo de documento */
.character-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideInLeft 1s ease;
}

.photo-frame {
    width: 250px;
    height: 300px;
    border: 8px solid #0a0a12;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #000;
    transition: all 0.4s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 53, 53, 0.4);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-frame:hover img {
    transform: scale(1.08);
}

.portrait-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.portrait-nav.prev { left: 8px; }
.portrait-nav.next { right: 8px; }

.portrait-counter {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-label {
    text-align: center;
    color: #ff3535;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Informações básicas */
.character-basic-info {
    background: rgba(10, 10, 18, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2d2d44;
    transition: all 0.4s ease;
}

.character-basic-info:hover {
    border-color: rgba(255, 53, 53, 0.3);
    box-shadow: 0 5px 20px rgba(255, 53, 53, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ff3535;
    transition: all 0.4s ease;
}

.info-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(255, 53, 53, 0.3);
}

.info-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-item:hover .info-value {
    color: var(--fire);
}

/* Seções de conteúdo */
.character-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}


.character-content-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.character-tabs {
    display: flex;
    gap: 10px;
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid #2d2d44;
    border-radius: 10px;
    padding: 8px;
}

.character-tab-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    background: transparent;
    color: #ddd;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 53, 53, 0.4);
}

.character-tab-btn.active {
    background: rgba(255, 53, 53, 0.2);
    border-color: rgba(255, 53, 53, 0.8);
    color: #fff;
}

.character-tab-pane {
    display: none;
}

.character-tab-pane.active {
    display: block;
}

.character-gallery-header {
    margin-bottom: 15px;
}

.character-gallery-header h3 {
    color: #ff3535;
    margin-bottom: 6px;
}

.character-gallery-header p {
    color: #bbb;
    font-size: 0.95rem;
}

.character-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}


.character-art-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.character-art-filter-btn {
    border: 1px solid #2d2d44;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    background: rgba(10, 10, 18, 0.8);
    color: #ccc;
    transition: all 0.3s ease;
}

.character-art-filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 53, 53, 0.4);
}

.character-art-filter-btn.active {
    color: #fff;
    border-color: rgba(255, 53, 53, 0.8);
    background: rgba(255, 53, 53, 0.2);
}


.character-gallery-item {
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid #2d2d44;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 53, 53, 0.5);
    box-shadow: 0 6px 18px rgba(255, 53, 53, 0.2);
}

.character-gallery-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.character-gallery-meta {
    padding: 10px;
}

.character-gallery-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.character-gallery-subtitle {
    color: #aaa;
    font-size: 0.85rem;
}


.character-gallery-type {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #ff9f9f;
}


.character-gallery-empty {
    border: 1px dashed #2d2d44;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #999;
}

.character-gallery-empty i {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.detail-section {
    background: rgba(10, 10, 18, 0.7);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #2d2d44;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
    transition: all 0.4s ease;
}

.detail-section:hover {
    border-color: rgba(255, 53, 53, 0.3);
    box-shadow: 0 5px 20px rgba(255, 53, 53, 0.2);
}

.detail-section h3 {
    color: #ff3535;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 53, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.detail-section:hover h3 {
    transform: translateX(5px);
}

.detail-section h3 i {
    font-size: 1.1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.detail-section p {
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 10px;
}

/* Lista de habilidades */
.abilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ability-tag {
    background: rgba(255, 107, 53, 0.15);
    color: #ff3535;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 53, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ability-tag:hover {
    background: rgba(255, 53, 53, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 53, 53, 0.4);
}

/* Relações */
.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.relationship-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #e94545;
    transition: all 0.4s ease;
}

.relationship-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(255, 53, 53, 0.3);
}

.relationship-name {
    font-weight: bold;
    color: #e94545;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.relationship-item:hover .relationship-name {
    color: var(--fire);
}

.relationship-type {
    color: #aaa;
    font-size: 0.9rem;
}

/* Curiosidades */
.trivia-list {
    list-style-type: none;
    padding-left: 0;
}

.trivia-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.trivia-list li:hover {
    border-bottom-color: rgba(255, 53, 53, 0.3);
    transform: translateX(5px);
    color: var(--light);
}

.trivia-list li:before {
    content: "•";
    color: #ff3535;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    animation: dotPulse 2s ease-in-out infinite;
}

/* Status do personagem */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

.status-badge:hover {
    transform: scale(1.1);
}

.status-alive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-deceased {
    background: rgba(244, 67, 54, 0.2);
    color: #f43636;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-unknown {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

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

/* Adicionar atrasos de animação para cada seção */
.detail-section:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) { animation-delay: 0.2s; }
.detail-section:nth-child(3) { animation-delay: 0.3s; }
.detail-section:nth-child(4) { animation-delay: 0.4s; }
.detail-section:nth-child(5) { animation-delay: 0.5s; }
.detail-section:nth-child(6) { animation-delay: 0.6s; }
.detail-section:nth-child(7) { animation-delay: 0.7s; }
.detail-section:nth-child(8) { animation-delay: 0.8s; }

/* ===== GRÁFICO DE ESTRELA (RADAR CHART) ===== */
.star-chart-container {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    position: relative;
    transition: all 0.4s ease;
}

.star-chart-container:hover {
    border-color: rgba(255, 53, 53, 0.5);
    box-shadow: 0 5px 20px rgba(255, 53, 53, 0.3);
}

.total-score {
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.total-score:hover {
    background: rgba(255, 107, 53, 0.15);
}

.score-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.score-value {
    font-size: 1.2rem;
    color: #ff3535;
    font-weight: bold;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.star-chart-title {
    text-align: center;
    color: #ff3535;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.star-chart {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 0 auto;
}

.star-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-18deg);
}

.star-background {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.star-grid-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.star-grid-line:nth-child(5) {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.star-grid-line:nth-child(10) {
    stroke: rgba(255, 107, 53, 0.3);
    stroke-width: 1.5;
}

.star-axis-line {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
    stroke-dasharray: 3,3;
}

.star-polygon {
    fill: rgba(255, 107, 53, 0.3);
    stroke: #ff3535;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(255, 53, 53, 0.5));
    animation: starPulse 2s ease-in-out infinite alternate;
}

.level-marker {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: bold;
    text-anchor: start;
}

@keyframes starPulse {
    from {
        fill: rgba(255, 53, 53, 0.2);
    }
    to {
        fill: rgba(255, 53, 53, 0.4);
    }
}

.star-label {
    position: absolute;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
    width: 90px;
    transform: translateX(-50%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(10, 10, 18, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.star-label:hover {
    background: rgba(255, 53, 53, 0.2);
    transform: translateX(-50%) scale(1.1);
}

.star-label-value {
    display: block;
    font-size: 1rem;
    color: #ff3535;
    margin-top: 2px;
    font-weight: bold;
}

.star-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 53, 53, 0.1);
    transform: translateX(5px);
}

.legend-item:last-child {
    border-bottom: none;
}

.legend-name {
    font-size: 0.85rem;
    color: #ddd;
    flex: 1;
}

.legend-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.legend-bar {
    width: 70px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.legend-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        transparent 10%, 
        rgba(255, 255, 255, 0.1) 10%, 
        rgba(255, 255, 255, 0.1) 20%, 
        transparent 20%, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 30%, 
        rgba(255, 255, 255, 0.1) 40%, 
        transparent 40%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 60%, 
        transparent 60%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.1) 70%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 80%, 
        transparent 90%, 
        rgba(255, 255, 255, 0.1) 90%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

.legend-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3535, #e94560);
    border-radius: 5px;
    transition: width 0.8s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 53, 53, 0.5);
}

.legend-number {
    font-size: 0.9rem;
    color: #ff3535;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

/* Indicador de nível máximo */
.max-level-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff3535;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(255, 53, 53, 0.3);
}

@keyframes drawStar {
    from {
        stroke-dasharray: 0, 1000;
    }
    to {
        stroke-dasharray: 1000, 0;
    }
}

.star-polygon {
    animation: drawStar 1.5s ease-out forwards, starPulse 2s ease-in-out infinite alternate 1.5s;
}

.star-chart-container {
    position: relative;
    overflow: hidden;
}

.star-chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal genérico (caso não exista) */
#modal-contato {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal-contato .modal-content {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    color: white;
}

/* ===== CORREÇÃO DO SCROLL ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== PERSONAGENS - BARRA DE PESQUISA ===== */
.search-bar {
    margin: 20px 0;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #ff3535;
    box-shadow: 0 0 20px rgba(255, 53, 53, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.search-bar input:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== BOTÕES DO MODAL LER ===== */
.volume-btn, .chapter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ddd;
    font-weight: 500;
}

.volume-btn:hover, .chapter-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 53, 53, 0.5);
    transform: translateY(-5px);
}

.volume-btn.active, .chapter-btn.active {
    background: rgba(255, 107, 53, 0.3);
    border-color: #ff3535;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 53, 53, 0.3);
}

.volume-btn.disabled, .chapter-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.volume-btn.disabled:hover, .chapter-btn.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

/* ===== REFINO VISUAL: STATUS DA FICHA DE PERSONAGEM ===== */
.star-chart-container {
    max-width: 360px;
    padding: 18px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(20, 14, 34, 0.95), rgba(10, 8, 20, 0.95));
    border: 1px solid rgba(255, 76, 76, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.star-chart-title {
    font-size: 1.45rem;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.total-score {
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(88, 25, 25, 0.35), rgba(35, 12, 18, 0.5));
    border: 1px solid rgba(255, 86, 86, 0.35);
}

.score-label {
    font-size: 0.82rem;
    color: #d6c8c8;
}

.score-value {
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    color: #ff4242;
}

.star-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0 14px;
}

.star-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(14, 16, 30, 0.9);
    border: 1px solid rgba(255, 86, 86, 0.25);
    border-left: 4px solid rgba(255, 72, 72, 0.8);
    border-radius: 8px;
    padding: 9px 10px;
}

.star-status-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bdb6c9;
}

.star-status-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.star-chart {
    width: 285px;
    height: 285px;
}

.star-label {
    font-size: 0.72rem;
    background: rgba(8, 10, 18, 0.92);
    border-color: rgba(255, 76, 76, 0.4);
    border-radius: 7px;
    padding: 6px 8px;
}

.star-label-value {
    font-size: 1.15rem;
}

.star-legend {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(12, 10, 19, 0.85);
    border: 1px solid rgba(255, 77, 77, 0.25);
}

.legend-item {
    padding: 8px 4px;
}

.legend-name {
    font-size: 0.9rem;
    color: #f0e9e9;
    letter-spacing: 0.4px;
}

.legend-bar {
    width: 88px;
    height: 11px;
    background: rgba(255, 255, 255, 0.12);
}

.legend-number {
    font-size: 1.05rem;
    min-width: 30px;
}


body,
body * {
    cursor: url("../assets/cursor/cursor.png") 32 32, auto;
}

a,
button,
.big-button,
.modal,
.close-modal,
input,
.cta-button,
.volume-btn,
.chapter-btn,
.character-card,
.gallery-item,
.music-card {
    cursor: url("../assets/cursor/cursor.png") 32 32, pointer;
}

header,
.hero,
.buttons-grid,
.curiosities-section,
footer,
.modal-content {
    position: relative;
    z-index: 6;
}

header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 64, 0, 0.2);
}

.logo i,
.button-icon,
.section-header h2 i,
.section-header h3 i {
    color: #ff6a00;
    text-shadow: 0 0 12px rgba(255, 95, 0, 0.8);
}

.big-button {
    border: 1px solid rgba(255, 90, 0, 0.45);
}

.big-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 15%, rgba(255, 90, 0, 0.28) 50%, transparent 85%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.big-button:hover::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #fire-particles,
    .fire-spark,
    .fire-ambience {
        display: none !important;
    }
}


@keyframes logoGlowPulse {
    0%, 100% {
        opacity: 0.65;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translateY(-8px) scale(1.03);
    }
}
