* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html, body {
    height: 100%;
    color: #fff;
    overflow-x: hidden;
}

/* Container real do fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient( rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82) ), url("../images/artwork2.png") center / cover no-repeat;
    z-index: -1;
    /* EVITA BUG MOBILE */
    transform: translateZ(0);
    will-change: transform;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.insta-icon {
    font-size: 28px;
    color: #fff;
    transition: 0.3s ease;
}

.insta-icon:hover {
    color: #ff0066;
    /* Pode trocar pela cor que quiser */
    transform: scale(1.15);
}

/* HERO */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px 10px 20px;
}

.logo {
    width: 350px;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.tagline {
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 25px;
}

.tagline-description {
    max-width: 1000px;
    margin-top: 20px;
    opacity: 0.9;
}

/* BOTÃO STEAM */
.steam-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff6a00;
    padding: 14px 30px;
    border-radius: 40px;
    color: #000;
    text-decoration: none;
    margin-top: 40px;
    font-weight: 700;
    transition: 0.3s;
}

.steam-wishlist-btn:hover {
    transform: scale(1.06);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff6a00;
    padding: 14px 30px;
    border-radius: 40px;
    color: #000;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 700;
    transition: 0.3s;
}

.instagram-btn:hover {
    transform: scale(1.06);
}

/* Ícones dentro dos botões */
.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* garante que o botão alinhe texto + ícone certinho */
.steam-wishlist-btn,.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* espaçamento perfeito */
    text-decoration: none;
}

/* SEÇÃO GERAL */
.section-container {
    padding: 60px;
    text-align: center;
}

/* SEÇÃO GALERIAS */
.section-gallery-container {
    padding: 60px;
    text-align: center;
}

/* MOBILE — remove padding lateral */
@media (max-width: 600px) {
    .section-gallery-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.section-trailer-container {
    padding: 60px;
    text-align: center;
}

/* MOBILE — remove padding lateral */
@media (max-width: 600px) {
    .section-trailer-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* TRAILER */
.trailer-box video {
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 20px #000;
}

/* CARROSSEL */
.carousel {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
}

.video-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-carousel .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-video {
    min-width: 100%;
    max-width: 100%;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    border-radius: 12px;
}

.close-btn {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 40px;
    cursor: pointer;
    color: white;
}

/* INFO */
.glass-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin: 80px auto;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* INFO ABOUT*/
.about-box {
    padding: 40px;
    margin: 0px auto;
    max-width: 800px;
}

/* INSTAGRAM BOTÃO */
.instagram-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ff7828;
    padding: 12px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    z-index: 999;
}

.trailer-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.trailer-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-carousel .carousel-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
}

.news-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;
    /* responsivo */
}

.news-card {
    width: 300px;
    height: 140px;
    background: #111;
    border: 2px solid #444;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    box-shadow: 0 0 10px #000;
}

.news-card h3 {
    font-size: 18px;
    text-align: center;
    padding: 0 10px;
    opacity: 0.9;
    transition: 0.3s;
}

/* Hover brutal */
.news-card:hover {
    border-color: #ff6a00;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 20px #ef904c;
    ;}

.news-card:hover h3 {
    opacity: 1;
    color: #ff6a00;
}

/* Responsivo */
@media (max-width: 480px) {
    .news-card {
        width: 90%;
        height: 130px;
    }

    .news-card h3 {
        font-size: 16px;
    }
}

.tag {
    padding: 4px 10px;
    margin-left: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.disponivel {
    background: #0f0;
    color: #000;
}

.dev {
    background: #ff0066;
    color: #fff;
}

.atualizacao {
    background: #00aaff;
    color: #fff;
}

/* lista */
.info-list {
    margin-top: 10px;
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 6px;
}

.mode-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* permite realocar no mobile */
    gap: 6px;
}

.title-text {
    font-size: 1.6rem;
    font-weight: bold;
}

.title-status {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    /* impede quebrar cada palavra separada */
}

/* ---------- Estilo geral dos títulos ---------- */
.mode-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* permite reorganizar no mobile */
    font-size: 1.6rem;
    font-weight: bold;
}

/* ---------- TAGS (os quadradinhos) ---------- */
.mode-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: inline-block;
    white-space: nowrap;
    /* impede quebrar no meio */
}

/* cores */
.mode-tag.available {
    background: #00ff0a2a;
    border: 1px solid #00ff0a;
    color: #00ff0a;
    margin-bottom: 5px;
}

.mode-tag.dev {
    background: #ffcc0030;
    border: 1px solid #ffcc00;
    color: #ffcc00;
    margin-bottom: 5px;
}

.mode-tag.coop {
    background: #00aaff30;
    border: 1px solid #00aaff;
    color: #00aaff;
    margin-bottom: 5px;
}

/* ---------- Mobile (empilha título e tag) ---------- */
@media (max-width: 600px) {
    .mode-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.site-footer {
    background: #0000001f;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 80px;
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
}

.site-footer strong {
    color: #fff;
    opacity: 1;
}

.footer-year {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* MOBILE */
@media (max-width: 600px) {
    .site-footer {
        padding: 25px 10px;
    }
}

/* ========================= PERSONAGENS ========================= */
.characters-section {
    margin-top: 80px;
    text-align: center;
}

.characters-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.character-card {
    width: 280px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.character-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.character-card:active {
    transform: scale(0.98);
}

.character-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.character-card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.character-story {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.character-story {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.3s ease;
    opacity: 0;
}

.character-card.active .character-story {
    max-height: 500px;
    /* grande o suficiente */
    opacity: 1;
}

.character-image {
    width: 100%;
    height: 320px;
    /* ALTURA PADRÃO */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- MODAL ---------- */
.character-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.character-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

/* Conteúdo */
.modal-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    background: rgba(20,20,20,0.95);
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.modal-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

.modal-content h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.modal-story {
    margin-top: 10px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Mobile ajustes */
@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
        margin-top: 3vh;
    }

    .modal-image img {
        height: 220px;
    }

    @keyframes modalIn {
        from {
            transform: scale(0.96);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }
}

.character-story p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #e5e5e5;
}

.story-list {
    margin: 12px 0 20px 20px;
}

.story-list li {
    margin-bottom: 6px;
    color: #cfcfcf;
}

.character-story blockquote {
    margin: 16px 0;
    padding-left: 16px;
    border-left: 3px solid #9b5cff;
    font-style: italic;
    color: #d6c8ff;
}

.final-quote {
    margin-top: 24px;
    font-size: 1.1rem;
    color: #ffffff;
}
