* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #2f3138;
    --bg-card: #343741;
    --red: #ff4655;
    --white: #ffffff;
    --text-light: #e6e6e6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header fixo */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--red);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
}

.top-bar .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.top-bar h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

/* Botão menu */
#menu-btn {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 10px 6px;
    flex-shrink: 0;
}

/* Campo de busca (se existir) */
.search-box input {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    max-width: 220px;
    flex-shrink: 0;
}

/* Texto secundário (Catálogo completo...) */
.top-bar .subtitle,
.top-bar .description,
.top-bar p:not(h1 p),
.top-bar span.subtitle,
.top-bar .extra-text {
    font-size: clamp(11px, 3vw, 13px);
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.2;
}

/* Menu lateral */
.side-menu {
    position: fixed;
    inset-block: 0;
    left: -260px;
    width: 260px;
    background: #1f2230;
    padding: 70px 20px 40px;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.28s ease;
}

.side-menu.active {
    left: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 14px;
}

.side-menu a {
    text-decoration: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.side-menu a:hover,
.side-menu a.active {
    background: var(--red);
    transform: translateX(4px);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container principal */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px 16px 40px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 32px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.box.news {
    min-height: 420px;
}

.box h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 4.2vw, 20px);
    margin-bottom: 16px;
    color: var(--red);
}

/* News */
.news-card {
    display: flex;
    flex-direction: column;
    gap: px;
}

.news-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* ou remove completamente */
    border-radius: 10px;
    display: block;
    margin: 0 auto 16px;
}
.categories-grid {
    display: flex;
    flex-direction: column; /* força virar lista */
    gap: 48px; /* espaço entre notícias */
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.news-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-text h3 {
    font-size: 18px;
    color: var(--white);
}

.news-text p {
    font-size: 14px;
} 

.news-text a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}
/* Página individual de notícia */
.box.news {
    max-width: 900px;
    margin: 0 auto;
}


/* Collections */
.collection-card {
    display: block;
    text-decoration: none;
    color: var(--white);
}

.collection-card img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.collection-card span {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    text-align: center;
}

.highlight-collection .collection-card.large {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-collection img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card-item {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.card-item:hover {
    transform: scale(1.05);
}

.card-item h3 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.card-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    width: 100%;
    height: 160px; /* altura padrão */
    object-fit: cover; /* corta e padroniza */
    display: block;
}

/* Community */
.community {
    text-align: center;
    padding: 2rem 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: #0f0f1a;
    padding: 1rem 2rem;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff4655;
}

.community-banner {
    background: #ff4655;
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.btn-discord {
    background: #5865f2;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* Bundle */
.bundle-info-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.bundle-info-text {
    flex: 1;
    min-width: 220px;
}

.bundle-tier-icon-container {
    flex: 0 0 180px;
    text-align: center;
}

.bundle-tier-icon-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #3a506b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Night Market */
.night-market-header {
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    padding: 2rem 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.night-market-header h1 {
    color: #ff4655;
    margin-bottom: 0.5rem;
}

.night-market-info {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #ddd;
}

.night-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.night-skin-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.night-skin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 70, 85, 0.2);
}

.night-skin-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.night-skin-info {
    padding: 1rem;
}

.night-skin-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.night-skin-weapon {
    color: #aaa;
    font-size: 0.95rem;
}

.night-price {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.original-price {
    color: #888;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-price {
    color: #ff4655;
    font-weight: bold;
}

.night-cta {
    display: inline-block;
    background: #ff4655;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.night-cta:hover {
    background: #e03e4d;
}

.placeholder {
    background: #0f0f1a;
    color: #666;
    text-align: center;
    padding: 3rem 1rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-dark);
    padding: 20px;
    max-width: 900px;
    width: 95%;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--red);
    color: var(--text-light);
    max-height: 90vh; 
    overflow-y: auto;   
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--red);
}

#skin-video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.levels-list button {
    margin: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

/* Ads */
.ads {
    min-height: 600px;
    background: #1f2230;
    border-radius: 10px;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #a0a0b0;
}

/* ────────────────────────────────────────────────
   MEDIA QUERIES
───────────────────────────────────────────────── */

@media (min-width: 1024px) {
    .top-bar {
        padding: 0 24px;
        height: 70px;
    }
    
    .top-bar h1 {
        font-size: 22px;
    }
    
    .side-menu {
        left: 0;
        transition: none;
    }
    
    .container {
        padding-left: 280px;
        padding-right: 32px;
    }
    
    #menu-btn,
    .overlay {
        display: none !important;
    }
    
    /* Mostra o texto secundário só no desktop */
    .top-bar .subtitle,
    .top-bar .description,
    .top-bar p:not(h1 p),
    .top-bar span.subtitle,
    .top-bar .extra-text {
        display: block;
    }
}

@media (max-width: 1023px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    /* Esconde completamente o texto secundário no mobile */
    .top-bar .subtitle,
    .top-bar .description,
    .top-bar p:not(h1 p),
    .top-bar span.subtitle,
    .top-bar .extra-text {
        display: none !important;
    }
    
    /* Ajuste fino pro título principal */
    .top-bar h1 {
        font-size: clamp(17px, 4.6vw, 20px);
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 56px;
        padding: 0 10px;
    }
    
    .top-bar h1 {
        font-size: 17px;
    }
    
    #menu-btn {
        font-size: 24px;
    }
    
    .container {
        padding-top: 68px;
    }
    
    .search-box input {
        max-width: 160px;
    }
}

/* Toque mobile */
input,
button,
select,
textarea {
    font-size: 16px;
}

a, button, [role="button"] {
    touch-action: manipulation;
}

.logo a,
.logo a:visited,
.logo a:hover,
.logo a:active {
    color: inherit;
    text-decoration: none;
}
/* Ajustes específicos para páginas de notícia (mobile-first) */
.news-card {
    width: 100%;
    max-width: 100%;
    /* overflow-x: hidden;  ❌ REMOVIDO */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.news-img {
    width: 100%;
    height: auto;
    max-height: 350px;              /* reduz um pouco em mobile para não dominar */
    object-fit: cover;              /* corta bordas se necessário, mas mantém proporção */
    border-radius: 10px;
    display: block;
    margin: 0 auto 16px;
}

.news-text {
    width: 100%;
    font-size: 15px;                /* um pouco menor para caber melhor */
    line-height: 1.5;
}

.news-text p,
.news-text li,
.news-text blockquote {
    margin-bottom: 16px;
    word-break: break-word;         /* quebra palavras longas (ex: URLs) */
    overflow-wrap: break-word;
}

.news-text blockquote.twitter-tweet {
    width: 100% !important;         /* força o tweet a se adaptar */
    max-width: 100% !important;
    margin: 16px 0 !important;
}

/* Limita largura do tweet embed (X/Twitter widgets são teimosos) */
.twitter-tweet-rendered {
    width: 100% !important;
    max-width: 100% !important;
}

/* Em telas pequenas, mais agressivo */
@media (max-width: 768px) {
    .news-card {
        padding: 12px;
    }
    
    .news-img {
        max-height: 280px;
    }
    
    .news-text {
        font-size: 14.5px;
    }
    
    .news-text h3 {
        font-size: 18px;
    }
    
    .box.news {
        padding: 16px;              /* reduz padding interno */
    }
    
    .section-title {
    font-size: clamp(20px, 5vw, 26px);
    word-break: break-word; /* ✅ era break-all */
    }
}

/* Garante que nada estique o container principal */
main.container,
.content,
.box.news {
    overflow-x: hidden;
}
/* Carrossel de notícias - versão corrigida para um slide por vez */
.news-carousel {
    position: relative;
    display: flex; 
    width: 100%;
    height: 380px;                    /* altura fixa para manter proporção consistente */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* esconde scrollbar no Firefox */
    -ms-overflow-style: none;         /* esconde no IE/Edge */
}

.news-carousel::-webkit-scrollbar {
    display: none;                    /* esconde scrollbar no Chrome/Safari */
}

.news-slide {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;                   /* ← ESSA LINHA É A PRINCIPAL: cada slide ocupa 100% da largura */
    height: 100%;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--white);
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.news-slide:hover {
    transform: scale(1.015);
}

.news-slide img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #1f2230;
}

.news-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-cta {
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
}

/* Bolinhas */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--red);
    transform: scale(1.3);
}

/* Ajustes mobile */
@media (max-width: 768px) {
    .news-carousel {
        height: 340px;
    }
    
    .news-slide img {
        height: 180px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-desc {
        font-size: 13px;
    }
}
.box.news {
    max-width: 760px;
    margin: 0 auto;
}
.chromas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.chromas-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
ul {
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}
.news-text {
    word-break: break-word;
}
.footer a,
.footer a:visited {
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    color: var(--red);
    text-decoration: underline;
}
.box h3 {
    margin-top: 40px;
    margin-bottom: 16px;
}
.box h3:first-of-type {
    margin-top: 0;
}