
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0877bd;
    --blue-dark: #075b96;
    --blue-light: #42a8ed;
    --white: #ffffff;
    --background: #edf1f5;
    --text: #263746;
    --muted: #718092;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* HEADER */

.topbar {
    height: 64px;
    background: #0866a8;
    display: flex;
    align-items: center;
    padding: 0 6%;
    gap: 45px;
    border-bottom: 3px solid #064d80;
    box-shadow: 0 2px 8px #00000018;
    position: relative;
    z-index: 10;
}

.brand {
    color: white;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -2px;
    text-decoration: none;
    text-shadow: 1px 2px #064d80;
}

.brand span,
.modal-logo span {
    color: #8ed3ff;
}

.navigation {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 7px;
}

.navigation a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #e8f5ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: .2s;
}

.navigation a:hover,
.navigation a.active {
    background: #ffffff12;
    border-bottom-color: #ffffff;
    color: white;
}

.top-actions {
    margin-left: auto;
    display: flex;
    gap: 9px;
}

.top-actions button {
    padding: 10px 19px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.btn-login {
    background: transparent;
    border: 1px solid #ffffffa8;
    color: white;
}

.btn-login:hover {
    background: #ffffff20;
}

.btn-register {
    background: white;
    border: 1px solid white;
    color: #0866a8;
}

.btn-register:hover {
    background: #dff1ff;
}

/* HERO */

.hero {
    min-height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(110deg, #063c70 0%, #0866a8 48%, #2298d8 100%);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(90deg, #062f59 0%, #063d70dd 42%, #0877bd55 100%),
        url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1800&q=85");
    background-size: cover;
    background-position: center;
    opacity: .92;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -100px;
    bottom: -280px;
    border: 2px solid #ffffff24;
    border-radius: 50%;
    box-shadow:
        0 0 0 45px #ffffff0b,
        0 0 0 90px #ffffff08;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #052d50aa, transparent 45%);
    z-index: -1;
}

.hero-content {
    width: min(1100px, 88%);
    margin: 0 auto;
    padding: 65px 0 75px;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid #ffffff50;
    background: #ffffff17;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: bold;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8be2ff;
    box-shadow: 0 0 9px #8be2ff;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: .99;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow: 2px 3px #06345c;
}

.hero h1 span {
    color: #9ddcff;
}

.hero-content > p {
    max-width: 510px;
    line-height: 1.7;
    color: #e2f2ff;
    font-size: 15px;
    margin-top: 22px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.btn-play,
.btn-explore {
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 3px;
    transition: .2s;
}

.btn-play {
    background: white;
    color: #0866a8;
    border: 1px solid white;
}

.btn-play:hover {
    background: #cdeaff;
    transform: translateY(-2px);
}

.btn-play span {
    font-size: 18px;
}

.btn-explore {
    color: white;
    border: 1px solid #ffffff9c;
    background: #ffffff14;
}

.btn-explore:hover {
    background: #ffffff2b;
}

.hero-note {
    margin-top: 28px;
    color: #c6e8ff;
    font-size: 12px;
}

.hero-note span {
    color: #a5e0ff;
}

.hero-decoration {
    position: absolute;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    border: 1px solid #ffffff70;
    background: #ffffff18;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 45px #001a3535;
}

.card-one {
    width: 100px;
    height: 100px;
    font-size: 50px;
    right: 20px;
    top: 10px;
    transform: rotate(12deg);
}

.card-two {
    width: 125px;
    height: 125px;
    font-size: 90px;
    left: 10px;
    bottom: 10px;
    transform: rotate(-10deg);
    background: #ffffff28;
}

.card-three {
    width: 58px;
    height: 58px;
    font-size: 35px;
    right: 0;
    bottom: 10px;
    transform: rotate(15deg);
}

/* QUICK INFO */

.quick-info {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: white;
    border-bottom: 1px solid #dce3e9;
}

.quick-info > div {
    width: 240px;
    padding: 13px 25px;
    border-right: 1px solid #e5eaf0;
}

.quick-info > div:last-child {
    border: 0;
}

.quick-info strong,
.quick-info span {
    display: block;
}

.quick-info strong {
    color: #0877bd;
    font-size: 12px;
    letter-spacing: 1px;
}

.quick-info span {
    margin-top: 5px;
    color: #84909c;
    font-size: 12px;
}

/* SECTIONS */

.content-section {
    width: min(1100px, 88%);
    margin: 55px auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow {
    color: #1685c6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.section-heading h2,
.community-banner h2 {
    margin-top: 8px;
    color: #263746;
    font-size: 28px;
    letter-spacing: -.8px;
}

.section-heading p {
    color: #82909e;
    font-size: 13px;
    margin-top: 7px;
}

.see-all {
    color: #0877bd;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.see-all:hover {
    text-decoration: underline;
}

/* GAME CARDS */

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    background: white;
    border: 1px solid #d9e0e7;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px #173d5b0a;
    transition: .2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px #173d5b18;
}

.game-thumb {
    height: 190px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.game-thumb::before,
.game-thumb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid #ffffff30;
}

.game-thumb::before {
    width: 240px;
    height: 240px;
}

.game-thumb::after {
    width: 170px;
    height: 170px;
}

.thumb-obby {
    background: linear-gradient(135deg, #1c91d0, #6bc7e8);
}

.thumb-city {
    background: linear-gradient(135deg, #354b86, #829bd5);
}

.thumb-race {
    background: linear-gradient(135deg, #c05a44, #f0a45c);
}

.game-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffffdc;
    color: #31516b;
    font-size: 9px;
    font-weight: 900;
    padding: 6px 9px;
    border-radius: 2px;
    z-index: 1;
}

.thumb-symbol {
    font-size: 76px;
    filter: drop-shadow(0 8px 8px #00000030);
    z-index: 1;
    transition: .2s;
}

.game-card:hover .thumb-symbol {
    transform: scale(1.1) rotate(-4deg);
}

.game-info {
    padding: 16px;
}

.game-info h3 {
    font-size: 17px;
    color: #2b3d4d;
}

.game-info p {
    min-height: 34px;
    margin-top: 7px;
    color: #84909c;
    font-size: 12px;
    line-height: 1.5;
}

.game-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-bottom span {
    font-size: 11px;
    color: #8a97a3;
}

.game-bottom button {
    background: #0877bd;
    color: white;
    border: 0;
    border-radius: 3px;
    padding: 8px 17px;
    font-size: 11px;
    font-weight: bold;
    opacity: .55;
    cursor: not-allowed;
}

/* COMMUNITY */

.community-banner {
    width: min(1100px, 88%);
    margin: 65px auto;
    padding: 38px 42px;
    background: linear-gradient(110deg, #075b96, #128bc9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border-radius: 5px;
    box-shadow: 0 8px 22px #075b9625;
}

.community-banner .eyebrow {
    color: #a8e0ff;
}

.community-banner h2 {
    color: white;
    line-height: 1.15;
}

.community-banner p {
    margin-top: 12px;
    color: #d6efff;
    font-size: 13px;
    line-height: 1.6;
}

.community-banner button {
    flex-shrink: 0;
    background: white;
    color: #0866a8;
    border: 0;
    border-radius: 3px;
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.community-banner button:hover {
    background: #d9f0ff;
}

.catalog-section {
    min-height: 120px;
}

/* FOOTER */

.footer {
    background: #123650;
    color: #c1d1dd;
    padding: 35px 6%;
    text-align: center;
    border-top: 4px solid #0877bd;
}

.footer-brand {
    display: inline-block;
}

.footer p {
    margin-top: 10px;
    font-size: 12px;
}

.footer small {
    display: block;
    margin-top: 20px;
    color: #8199aa;
    font-size: 10px;
}

/* MODALS */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    background: #071c2dcc;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 410px;
    position: relative;
    background: white;
    border-radius: 5px;
    padding: 34px;
    box-shadow: 0 15px 60px #00000045;
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: transparent;
    border: 0;
    color: #82909c;
    font-size: 27px;
    cursor: pointer;
}

.modal-logo {
    color: #0877bd;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -2px;
}

.modal-box h2 {
    margin-top: 15px;
    color: #263746;
    font-size: 23px;
}

.modal-box > p {
    margin-top: 7px;
    color: #82909c;
    font-size: 12px;
    line-height: 1.5;
}

.modal-box form {
    margin-top: 23px;
}

.modal-box label {
    display: block;
    margin: 14px 0 7px;
    color: #405466;
    font-size: 12px;
    font-weight: bold;
}

.modal-box input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #ccd6df;
    border-radius: 3px;
    outline: none;
    font-size: 13px;
}

.modal-box input:focus {
    border-color: #1685c6;
    box-shadow: 0 0 0 3px #1685c620;
}

.modal-submit {
    width: 100%;
    min-height: 45px;
    margin-top: 22px;
    background: #0877bd;
    color: white;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.modal-submit:hover {
    background: #075b96;
}

.modal-switch {
    margin-top: 20px;
    text-align: center;
    color: #82909c;
    font-size: 12px;
}

.modal-switch button {
    background: none;
    border: 0;
    color: #0877bd;
    font-weight: bold;
    cursor: pointer;
}

.modal-message {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    color: #0877bd;
}

/* RESPONSIVO */

@media (max-width: 850px) {
    .topbar {
        gap: 20px;
        padding: 0 3%;
    }

    .navigation a {
        padding: 0 9px;
        font-size: 12px;
    }

    .hero-decoration {
        right: 3%;
        opacity: .55;
    }

    .community-banner {
        padding: 30px;
    }
}

@media (max-width: 650px) {
    .topbar {
        min-height: 65px;
        height: auto;
        flex-wrap: wrap;
        padding: 12px 4%;
        gap: 10px;
    }

    .brand {
        font-size: 25px;
    }

    .top-actions {
        margin-left: auto;
    }

    .top-actions button {
        padding: 9px 12px;
        font-size: 11px;
    }

    .navigation {
        width: 100%;
        height: 39px;
        order: 3;
        justify-content: space-between;
        overflow-x: auto;
    }

    .navigation a {
        white-space: nowrap;
        padding: 0 8px;
    }

    .hero {
        min-height: 430px;
    }

    .hero-content {
        width: 90%;
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .hero-decoration {
        right: -70px;
        opacity: .25;
    }

    .hero-content > p {
        font-size: 13px;
    }

    .quick-info {
        flex-wrap: wrap;
        padding: 10px;
    }

    .quick-info > div {
        width: 33.33%;
        padding: 10px;
    }

    .quick-info strong {
        font-size: 10px;
    }

    .quick-info span {
        font-size: 10px;
    }

    .content-section,
    .community-banner {
        width: 90%;
        margin: 40px auto;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-thumb {
        height: 180px;
    }

    .community-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .community-banner h2 {
        font-size: 25px;
    }

    .modal-box {
        padding: 28px 22px;
    }
}
