* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0d0d0d;
    color: white;
}

/* PASSO 2 — Container principal para evitar colar nas bordas */
.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
}

header {
    height: 80px;
    background: #171717;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: #ff6600;
    font-size: 32px;
}

/* PASSO 6 — Menu responsivo que permite quebra de linha */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

nav button {
    padding: 10px 22px;
    background: #222;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
}

nav button:hover {
    background: #ff6600;
    transform: translateY(-2px);
}

.hero {
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(to right, #111, #202020);
    text-align: center;
}

.hero h2 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    opacity: .8;
    margin-bottom: 35px;
}

.hero button {
    padding: 16px 35px;
    font-size: 20px;
    background: #ff6600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.hero button:hover {
    background: #ff7f27;
}

section {
    padding: 40px;
}

.titulo {
    font-size: 32px;
    margin-bottom: 25px;
}

/* PASSO 4 — Cards responsivos usando auto-fit */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    background: #1b1b1b;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 24px;
    transition: .3s;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.card:hover {
    transform: scale(1.05);
    background: #ff6600;
}

/* PASSO 5 — Padronização de proporção da imagem do card */
.card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.card-banner {
    width: 100%;
    height: 170px;
    background: #2d2d2d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
}

.card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-info h2 {
    font-size: 22px;
}

/* PASSO 3 — Banner da coleção responsivo com aspect-ratio */
.banner-colecao {
    width: 100%;
    aspect-ratio: 16/4;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .4);
}

.banner-colecao img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#descricaoColecao {
    color: #bbbbbb;
    margin-bottom: 25px;
    font-size: 18px;
}

/* PASSO 7 — Regras de Responsividade para Celulares e Tablets */

/* ===========================
   MOBILE GLOBAL
=========================== */
@media(max-width: 768px) {
    .banner-colecao {
        aspect-ratio: 16/6;
    }

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

    h1 {
        font-size: 30px;
    }

    nav {
        justify-content: center;
    }

    button {
        width: 100%;
    }
}

/* ===========================
   TABLET
=========================== */
@media(min-width: 769px) and (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================== */
/* PÁGINA DO JOGO PREMIUM RETROPLAY */
/* ===================================== */

.pagina-jogo{
    width:95%;
    max-width:1200px;
    margin:40px auto;
}

/* Banner */

.banner-jogo{
    width:100%;
    height:300px;
    overflow:hidden;
    border-radius:20px;
    margin-bottom:35px;
    box-shadow:0 12px 35px rgba(0,0,0,.45);
}

.banner-jogo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* Área principal */

.info-jogo{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

/* Capa */

.capa-jogo{
    width:280px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.45);
}

/* Informações */

.dados-jogo{
    flex:1;
}

.dados-jogo h1{
    font-size:42px;
    color:#ffffff;
    margin-bottom:10px;
}

.dados-jogo h3{
    font-size:24px;
    color:#FFD54A;
    margin-bottom:20px;
}

.dados-jogo p{
    color:#cfcfcf;
    font-size:18px;
    line-height:1.8;
    margin-bottom:35px;
}

/* Botão Jogar */

.btn-jogar{
    width:100%;
    max-width:350px;
    padding:18px;
    background:#ff6600;
    color:white;
    font-size:24px;
    font-weight:bold;
    border:none;
    border-radius:15px;
    cursor:pointer;
    transition:.3s;
    margin-bottom:20px;
}

.btn-jogar:hover{
    background:#ff7f27;
    transform:translateY(-3px);
}

/* Botão Voltar */

.btn-voltar{
    width:100%;
    max-width:220px;
    padding:15px;
    background:#2b2b2b;
    color:white;
    font-size:18px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
}

.btn-voltar:hover{
    background:#444;
}

/* ===================================== */
/* RESPONSIVO JOGO */
/* ===================================== */

@media(max-width:900px){
    .info-jogo{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .capa-jogo{
        width:220px;
    }

    .dados-jogo h1{
        font-size:34px;
    }

    .dados-jogo h3{
        font-size:22px;
    }

    .dados-jogo p{
        font-size:17px;
    }

    .btn-jogar{
        max-width:100%;
        font-size:22px;
    }

    .btn-voltar{
        max-width:100%;
    }
}

@media(max-width:600px){
    .pagina-jogo{
        margin:15px auto;
    }

    .banner-jogo{
        height:140px;
        margin-bottom:15px;
    }

    .capa-jogo{
        width:140px;
    }

    .dados-jogo h1{
        font-size:28px;
    }

    .dados-jogo h3{
        font-size:20px;
    }

    .dados-jogo p{
        font-size:16px;
        margin-bottom:15px;
    }

    .btn-jogar{
        font-size:18px;
        padding:14px;
        margin-bottom:12px;
    }

    .btn-voltar{
        padding:12px;
        font-size:16px;
    }
}

/* ========================= */
/* PÁGINA DA COLEÇÃO PREMIUM */
/* ========================= */

.pagina-colecao{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:20px;
}

.banner-colecao{
    width:100%;
    height:280px;
    overflow:hidden;
    border-radius:18px;
    margin-bottom:25px;
    box-shadow:0 8px 30px rgba(0,0,0,.45);
}

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

.info-colecao{
    margin-bottom:30px;
}

.info-colecao h1{
    color:white;
    font-size:42px;
    margin-bottom:10px;
}

.info-colecao h3{
    color:#FFD54A;
    margin-bottom:15px;
}

.info-colecao p{
    color:#cfcfcf;
    max-width:900px;
    line-height:1.7;
}

/* GRID DOS JOGOS */

.cards-jogos{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:25px;
}

.card-jogo{
    background:#1d1d1d;
    border-radius:18px;
    overflow:hidden;
    cursor:pointer;
    transition:.25s;
}

.card-jogo:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 35px rgba(0,0,0,.5);
}

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

.card-jogo h2{
    color:white;
    font-size:18px;
    text-align:center;
    padding:15px;
}

/* ================================= */
/* HOME INSTITUCIONAL RETROPLAY      */
/* ================================= */

.home-premium{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:30px;
}

/* HERO */

.hero{
    text-align:center;
    padding:80px 20px;
    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.85)
    ),
    url("../images/banners/home.jpg");
    background-size:cover;
    background-position:center;
    border-radius:25px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.5);
}

.hero h1{
    font-size:55px;
    color:white;
    margin-bottom:20px;
}

.hero p{
    font-size:22px;
    color:#ddd;
    max-width:700px;
    margin:auto;
    line-height:1.6;
}

.hero button{
    margin-top:30px;
    padding:15px 35px;
    border:none;
    border-radius:30px;
    background:#ffcc00;
    color:#111;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.hero button:hover{
    transform:scale(1.05);
}

/* CONSOLES */

.consoles-home{
    margin-top:60px;
    text-align:center;
}

.consoles-home h2{
    color:white;
    font-size:35px;
}

.cards-home{
    margin-top:35px;
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.console-card{
    background:#171717;
    padding:35px 20px;
    border-radius:20px;
    color:white;
    transition:.3s;
    box-shadow:
    0 10px 25px rgba(0,0,0,.35);
    overflow:hidden;
    cursor:pointer;
}

.console-card:hover{
    transform:translateY(-10px);
}

.icone-console{
    font-size:55px;
    margin-bottom:15px;
}

.console-card h3{
    font-size:25px;
    color:#ffcc00;
}

.console-card p{
    color:#ccc;
}

/* COMO FUNCIONA */

.como-funciona{
    margin-top:70px;
    text-align:center;
}

.como-funciona h2{
    color:white;
    font-size:35px;
}

.passos{
    margin-top:35px;
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.passo{
    background:#111;
    padding:25px;
    border-radius:18px;
    color:white;
}

.passo span{
    font-size:40px;
    color:#ffcc00;
}

.passo p{
    color:#ddd;
}

.imagem-console{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:15px;
    display:block;
}

/* Página Premium dos Consoles */

.console-page{
    width:90%;
    max-width:1200px;
    margin:auto;
}

.banner-console{
    width:100%;
    height:350px;
    overflow:hidden;
    border-radius:20px;
    margin-bottom:30px;
}

.banner-console img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.console-actions{
    display:flex;
    gap:20px;
    margin:30px 0;
    flex-wrap:wrap;
}

.console-actions button{
    padding:14px 25px;
    border:none;
    border-radius:12px;
    background:#222;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.console-actions button:hover{
    transform:translateY(-3px);
}

.btn-comprar{
    background:#00c853 !important;
    color:#000 !important;
    font-weight:bold;
}