
:root {
    --background: #07152f;
    --panel: #102849;
    --blue: #258bff;
    --cyan: #36dcff;
    --white: #f3f8ff;
    --muted: #91a9ca;
    --border: rgba(126, 177, 255, .15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(ellipse at 75% 0%, #153e78 0, transparent 35%),
        var(--background);
    color: var(--white);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* CABEÇALHO */

.header {
    height: 82px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 21, 47, .9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Orbitron;
    font-size: 14px;
    font-weight: 800;
}

.logo strong {
    color: var(--cyan);
}

.logo-icon {
    width: 43px;
    height: 43px;
    background: linear-gradient(135deg, #43d5ff, #2369ed);
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #07152f;
    box-shadow: 0 0 25px #258bff55;
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.navigation a:hover,
.navigation a.active {
    color: white;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.xp {
    background: #11294d;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 12px;
}

.xp span {
    color: #ffd66e;
    font-weight: 700;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: #174b80;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
}

/* CONTAINER */

.container {
    max-width: 1240px;
    margin: auto;
    padding: 0 30px;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 70px 0 50px;
    min-height: 420px;
}

.welcome {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #2c78bb66;
    background: #0d2a4c;
    border-radius: 30px;
    color: #7ee5ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42e6c2;
    box-shadow: 0 0 12px #42e6c2;
}

.hero h1 {
    font-family: Orbitron;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.2;
    margin: 23px 0 18px;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #42caff, #879bff);
    background-clip: text;
    color: transparent;
}

.hero-content p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
    max-width: 480px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: .3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(100deg, #43d5ff, #4a8dff);
    color: #04152e;
    box-shadow: 0 8px 28px #258bff3b;
}

.btn-secondary {
    background: #122b50;
    color: white;
    border: 1px solid #31547d;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

/* AVATAR */

.hero-avatar {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-glow {
    position: absolute;
    width: 310px;
    height: 310px;
    border: 1px solid #48baff36;
    border-radius: 50%;
    box-shadow:
        0 0 70px #168cff18,
        inset 0 0 50px #168cff12;
    animation: rotate 25s linear infinite;
}

.avatar-glow::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px dashed #49bfff55;
    border-radius: 50%;
}

.avatar-circle {
    width: 255px;
    height: 270px;
    border-radius: 32px;
    background: linear-gradient(155deg, #174a80, #102447);
    border: 1px solid #56cfff55;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 70px #0007;
    z-index: 1;
    overflow: hidden;
}

.avatar-character {
    font-size: 130px;
    filter: drop-shadow(0 10px 20px #0008);
    animation: float 3s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    z-index: 2;
    background: #0c2346;
    border: 1px solid #438fd477;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px #0005;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    color: var(--cyan);
    font-size: 14px;
}

.floating-card small {
    font-size: 10px;
    color: #c7e7ff;
    margin-top: 4px;
}

.card-left {
    left: 0;
    top: 45px;
}

.card-right {
    right: 0;
    bottom: 35px;
}

.star {
    position: absolute;
    color: var(--cyan);
    font-size: 25px;
}

.star-one {
    top: 15px;
    right: 15%;
}

.star-two {
    bottom: 20px;
    left: 12%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ESTATÍSTICAS */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin: 10px 0 55px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    background: linear-gradient(145deg, #102b51, #0b1d3a);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: .3s;
}

.stat-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
}

.stat-card > span {
    width: 42px;
    height: 42px;
    background: #1b4a78;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.stat-card h3 {
    font-family: Orbitron;
    font-size: 17px;
}

.stat-card p {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

/* TÍTULOS */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-heading h2,
.panel h2 {
    font-family: Orbitron;
    font-size: 20px;
    margin-bottom: 7px;
}

.section-heading p {
    color: var(--muted);
    font-size: 12px;
}

.game-count {
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 1px;
}

/* PESQUISA */

.search-game {
    width: 100%;
    max-width: 370px;
    padding: 13px 15px;
    margin-bottom: 17px;
    background: #0d2140;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: white;
    outline: none;
}

.search-game:focus {
    border-color: var(--cyan);
}

.search-game::placeholder {
    color: #91a9ca;
}

/* FILTROS */

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter {
    border: 1px solid var(--border);
    background: #0d2140;
    color: var(--muted);
    border-radius: 30px;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 700;
    transition: .3s;
}

.filter:hover,
.filter.active {
    background: #1c66ad;
    color: white;
    border-color: #3d9dff;
}

/* JOGOS */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.game-card {
    background: linear-gradient(155deg, #112c52, #0b1c38);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
    animation: appear .4s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #368bdc;
    box-shadow: 0 15px 35px #0004;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-image {
    height: 145px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.game-image::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border: 1px solid #ffffff28;
    border-radius: 50%;
    box-shadow: 0 0 0 25px #ffffff08;
}

.hardware {
    background: radial-gradient(circle, #236d9c, #172e67);
}

.logic {
    background: radial-gradient(circle, #7549bd, #292765);
}

.creative {
    background: radial-gradient(circle, #147e80, #123c65);
}

.quiz {
    background: radial-gradient(circle, #a45a2e, #512e56);
}

.programming {
    background: radial-gradient(circle, #3159b5, #172b5a);
}

.secret {
    background: radial-gradient(circle, #287a55, #163e53);
}

.level {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #07152fc9;
    border: 1px solid #ffffff2b;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 9px;
    z-index: 1;
}

.game-emoji {
    font-size: 58px;
    z-index: 1;
    filter: drop-shadow(0 8px 14px #0008);
    transition: .3s;
}

.game-card:hover .game-emoji {
    transform: scale(1.12) rotate(-5deg);
}

.game-info {
    padding: 16px;
}

.game-info h3 {
    font-size: 14px;
    margin-bottom: 7px;
}

.game-info p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    min-height: 36px;
    margin-bottom: 15px;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.game-footer span {
    color: #92aaca;
    font-size: 10px;
}

.play-button {
    border: none;
    background: #163d6c;
    color: #65d5ff;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
    transition: .3s;
}

.play-button:hover {
    background: #258bff;
    color: white;
}

/* MISSÕES E RANKING */

.bottom-section {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 17px;
    margin: 55px 0 65px;
}

.panel {
    background: linear-gradient(145deg, #10294c, #0b1d39);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 23px;
}

.panel h2 {
    font-size: 14px;
    margin-bottom: 20px;
}

.mission {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.mission:last-child {
    border: none;
}

.mission-icon {
    width: 40px;
    height: 40px;
    background: #193f68;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.mission-content {
    flex: 1;
}

.mission-content strong,
.mission-content small {
    display: block;
    font-size: 11px;
}

.mission-content small {
    color: var(--muted);
    margin-top: 5px;
}

.mission > b {
    font-size: 10px;
    color: #ffda75;
}

.progress {
    height: 5px;
    background: #203b5e;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #31c8ff, #797dff);
    border-radius: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ranking-item:last-child {
    border: none;
}

.ranking-item > span {
    font-family: Orbitron;
    color: #6d91bd;
    font-size: 11px;
}

.ranking-avatar {
    width: 34px;
    height: 34px;
    background: #204b78;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ranking-item strong {
    flex: 1;
    font-size: 11px;
}

.ranking-item b {
    font-size: 10px;
    color: #ffda75;
}

/* RODAPÉ */

footer {
    border-top: 1px solid var(--border);
    padding: 25px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #6f89ac;
    font-size: 10px;
}

footer strong {
    font-family: Orbitron;
    color: #b8d4f4;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #020916d9;
    backdrop-filter: blur(8px);
    z-index: 50;
    place-items: center;
    padding: 20px;
}

.modal.show {
    display: grid;
}

.modal-content {
    width: 100%;
    max-width: 420px;
    background: #10284a;
    border: 1px solid #4aaeff66;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    animation: appear .3s ease;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-content h2 {
    font-family: Orbitron;
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
}

/* RESPONSIVIDADE */

@media (max-width: 850px) {

    .navigation {
        gap: 14px;
    }

    .hero {
        grid-template-columns: 1fr .8fr;
    }

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 620px) {

    .header {
        height: 70px;
        padding: 0 15px;
    }

    .navigation {
        display: none;
    }

    .logo {
        font-size: 10px;
    }

    .xp {
        font-size: 10px;
        padding: 8px;
    }

    .container {
        padding: 0 17px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 45px 0 30px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-avatar {
        min-height: 300px;
    }

    .avatar-circle {
        transform: scale(.9);
    }

    .statistics {
        gap: 9px;
        margin-bottom: 40px;
    }

    .stat-card {
        padding: 12px;
        gap: 8px;
    }

    .stat-card h3 {
        font-size: 14px;
    }

    .stat-card p {
        font-size: 9px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-image {
        height: 115px;
    }

    .game-emoji {
        font-size: 42px;
    }

    .game-info {
        padding: 12px;
    }

    .game-info h3 {
        font-size: 12px;
    }

    .game-info p {
        font-size: 10px;
        min-height: 45px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
        margin: 40px 0;
    }

    footer {
        flex-direction: column;
    }

}

@media (max-width: 370px) {

    .games-grid {
        grid-template-columns: 1fr;
    }

}


/* ÁREA DE EXIBIÇÃO DOS JOGOS */

.game-player {
    width: 100%;
    margin: 35px 0;
    padding: 25px;
    background: rgba(10, 30, 65, 0.95);
    border: 1px solid rgba(75, 150, 255, 0.25);
    border-radius: 20px;
}

.game-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-player-header h2 {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
}

#gameFrame {
    display: block;
    width: 100%;
    height: 750px;
    border: none;
    border-radius: 14px;
    background: white;
}

@media (max-width: 768px) {

    .game-player {
        padding: 12px;
    }

    #gameFrame {
        height: 650px;
    }

}
