@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

:root {
    --verde-claro: #aaffc4;
    --verde-neon: #00ff80;
    --verde: #00ff66;
    --verde-escuro: #00cc55;
    --verde-vibrante: #00ff00;
    --verde-two: #33ff33;
    --preto-bg: #050805;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--preto-bg);
    color: var(--verde);
    background-image: linear-gradient(rgba(0, 255, 100, .15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 100, .15) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: 'Orbitron', sans-serif;
}

.actions {
    margin-top: 30px;
}

.brand {
    display: flex;
    align-items: center;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    color: var(--verde);
}

.brand img {
  width: 150px;
  transition: transform 0.5s ease;
}

.brand img:hover {
  transform: scale(1.05);
}

.btn_cadastro {
    display: flex;
}

.btn {
    display: block;
    margin: 30px auto;
    padding: 18px 36px;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-decoration: none;
    border-radius: 6px;
    transition: .3s;
    background: var(--verde-neon);
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--verde-neon);
}

.btn.green {
    background: var(--verde);
    color: #001a0a;
    box-shadow: 0 0 20px var(--verde);
}

.btn.outline {
    border: 2px solid var(--verde);
    color: #020802;
    background: var(--verde-escuro);
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--verde-neon);
}

.btn_back {
    display: block;
    text-align: center;
    width: 30%;
    margin: 30px auto;
    padding: 18px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-decoration: none;
    border-radius: 6px;
    transition: .3s;
    background: var(--verde-neon);
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--verde-neon)
}

.btn_back:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--verde-neon);
}

.btn_upload {
    display: block;
    text-align: center;
    width: 30%;
    margin: 30px auto;
    padding: 18px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-decoration: none;
    border-radius: 6px;
    transition: .3s;
    background: var(--verde-neon);
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--verde-neon)
}

.btn_upload:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--verde-neon);
}

.card {
    background-color: #111;
    border: 2px solid var(--verde-neon);
    width: 250px;
    padding: 15px;
    box-shadow: 0 0 15px var(--verde-neon);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.card_img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
}

.card p {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}

.card_back {
    transform: rotateY(180deg);
    text-align: center;
    color: var(--verde-vibrante);
}

.card_front,
.card_back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--preto-bg);
    color: white;
    box-sizing: border-box;
}

.card_inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.copy {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--verde);
}

.footer {
    background: #020802;
    border-top: 2px solid var(--verde);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 25px;
}

.footer h3 {
    color: var(--verde);
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    color: var(--verde-claro);
}

.form-container {
    margin: 50px auto;
    width: 400px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--verde-vibrante);
    padding: 20px;
    border-radius: 8px;
}

.form_file {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.game_card {
    cursor: pointer;
    width: 250px;
    height: 350px;
    perspective: 1000px;
    background: #0a120a;
    border: 2px solid var(--verde);
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 100, .3);
}

.game_card.flipped .card_inner {
    transform: rotateY(180deg);
}

.game_card,
.sinopse_text {
    margin-bottom: 5px;
}

.game_card:hover .card_front {
    box-shadow:
        0 0 15px var(--verde-neon),
        0 0 30px var(--verde-neon),
        inset 0 0 15px var(--verde-neon);
}

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

.hero {
    min-height: calc(100vh - 90px);
    background:
        linear-gradient(transparent 95%, rgba(0, 255, 100, .2) 100%),
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 100, .15) 100%);
    background-size: 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero_content {
    text-align: center;
    max-width: 700px;
    padding: 40px;
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 56px;
    color: var(--verde);
    text-shadow: 0 0 20px var(--verde);
}

.hero h2 {
    margin-top: 15px;
    letter-spacing: 4px;
    color: #7dffb2;
}

.hero_logo {
    width: 120px;
    animation: girar 5s linear infinite;
    transform-style: preserve-3d;
    perspective: 800px;
}

.hero_logo {
    width: 350px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px var(--verde));
}

.hero p {
    margin: 40px auto;
    color: #b5ffcf;
    font-size: 16px;
}

h1 {
    text-align: center;
    font-size: 26px;
    text-shadow: 0 0 10px var(--verde-neon);
    margin: 40px 0;
}

.input_login,
select {
    width: 100%;
    padding: 10px;
    background: black;
    border: 2px solid var(--verde-vibrante);
    color: var(--verde-vibrante);
    font-family: 'Press Start 2P', cursive;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input_file::before {
    content: 'FOTO_NICKNAME.jpeg';
    display: block;
    justify-content: center;
    text-align: center;
    width: 55%;
    margin: 10px auto;
    padding: 18px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-decoration: none;
    border-radius: 6px;
    border: solid 1px var(--verde-two);
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

.input_file:hover::before {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--verde-neon);
}

.input_file::-webkit-file-upload-button {
    visibility: hidden;
}

.input_file {
    justify-content: center;
    width: 50%;
}

.img_upload {
    gap: 32px;
    margin: -2px;
    width: 20px;
}

label {
    display: block;
    margin: 15px 0 5px;
    font-size: 12px;
}

nav a {
    margin-left: 20px;
    color: var(--verde);
    text-decoration: none;
}

nav a.active,
nav a:hover {
    text-shadow: 0 0 10px var(--verde);
}

.reservation-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-form button {
    padding: 15px;
    background: var(--verde);
    color: black;
    border: none;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px var(--verde);
}

.reservation-form button:hover {
    background: var(--verde-escuro);
}

.secao {
    margin-bottom: 50px;
}

.secao h2 {
    text-align: center;
    font-size: 20px;
    text-shadow: 0 0 8px var(--verde-neon);
    margin-bottom: 20px;
}

.section_title {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 40px;
    font-size: 26px;
}

.sinopse_text {
    color: var(--verde-escuro);
}

.sinopse_title {
    color: var(--verde-vibrante);
}

.titulo_principal {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--verde);
    text-decoration: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background: #020802;
    border-bottom: 2px solid var(--verde);
}


th,
td {
    border: 1px solid var(--verde-vibrante);
    padding: 15px;
    text-align: center;

}

td {
    color: var(--verde-claro);
}

.table_player {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 3rem;
}

.table_listar {
    width: 111%;
    background-color: var(--preto-bg);
    text-align: center;
    border-collapse: collapse;
}

.titulo_listar {
    font-size: 25px;
    margin-top: 3rem;
    text-align: center;
}


@keyframes girar {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }

}

@media (max-width: 768px) {

    .topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-logo {
        width: 110px;
    }

    .games_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game_card {
        width: 100%;
        max-width: 320px;
        margin: auto;
        height: 380px;
    }

    .card_front img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .form-container {
        width: 90%;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn {
        width: 90%;
        font-size: 10px;
        padding: 14px;
    }
}


/* ============================= */
/* 📲 TABLET */
/* ============================= */
@media (min-width: 769px) and (max-width: 1024px) {

    .games_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 40px;
    }

    .game_card {
        height: 360px;
    }

    .card_front img {
        height: 180px;
    }
}


/* ============================= */
/* 💻 TELAS GRANDES */
/* ============================= */
@media (min-width: 1400px) {

    .container {
        max-width: 1300px;
    }

    .games_grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 64px;
    }
}