* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

body {
    background: #fff;
    margin: 0;
    font-family: sans-serif;
}

.navbar {
    border-bottom: 1px solid #eaeaea;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu .menu-list {
    display: flex;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
}

.list {
    position: relative;
    flex-shrink: 0;
    margin-inline-start: 25px;
}

.list:nth-child(1) {
    margin-inline-start: 0;
}

.list .list-item {
    position: relative;
    text-decoration: none;
    display: block;
    line-height: 1;
    padding: 20px 0 14px;
    color: #000;
    font-size: 14px;
    line-height: 21px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: sans-serif;
    transition: color 0.3s ease;
}

.list .list-item {
    --bs-link-hover-color: #006CFF;
}

.list.active .list-item,
.list:hover .list-item {
    font-weight: 600;
    color: #006CFF !important;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.header-right img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

:root {
    --bg: rgba(255, 255, 255, 0.85);
    --text: #111;
    --muted: #6b7280;
    --card: rgba(255, 255, 255, 0.75);
}

.search-area {
    position: relative;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn svg {
    stroke: var(--text);
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.search-panel {
    position: absolute;
    top: 160%;
    right: 0;
    width: 520px;
    backdrop-filter: blur(18px);
    background: var(--bg);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(.96);
    pointer-events: none;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 1000;
}

.search-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.search-panel.active~.search-btn svg {
    transform: rotate(90deg) scale(1.2);
}

.search-input {
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    gap: 10px;
}

.search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text);
    outline: none;
}

.search-input .esc {
    font-size: 12px;
    background: rgba(0, 0, 0, .08);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
}

.results-grid {
    padding: 18px;
    max-height: 650px;
    overflow-y: auto;
}

.results-grid::-webkit-scrollbar {
    width: 6px;
}

.results-grid::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.results-grid::-webkit-scrollbar-track {
    background: transparent;
}

.results-grid.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.result-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease;
}

.result-card:hover {
    transform: translateY(-4px);
}

.result-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.result-card p {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text);
    margin: 0;
}

.no-results {
    text-align: center;
    font-size: 14px;
    color: #9aa4b2;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    transition: right 0.35s ease;
}

.sidebar.open {
    right: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
    color: #121212;
    transition: 0.3s;
}

.close-btn:hover {
    color: #006CFF;
}

.sidebar .menu-list {
    list-style: none;
    padding: 35px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .list {
    margin: 0;
}

.sidebar .list-item {
    padding: 10px 0;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.title {
    font-weight: 300;
    font-style: italic;
    color: #222;
    text-align: center;
    text-transform: uppercase;
    font-family: sans-serif;
}

.title span {
    font-weight: 600;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 20px;
    row-gap: 30px;
}

.grid-ad-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
}

.custom-grid .card {
    cursor: pointer;
    border: none;
    background: transparent;
}

.card-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.card-thumb .game-icon {
    width: 100%;
    height: auto;
    display: block;
}

.game-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.game-favorite-btn i {
    font-size: 16px;
    line-height: 1;
    color: #fff;
    position: relative;
    top: 1px;
}

.game-card-info {
    display: block;
    color: #111;
    font-family: sans-serif;
    line-height: 1.4;
}

.game-name {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.game-coins {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.game-coins img {
    object-fit: contain;
    flex-shrink: 0;
}

.gaming-footer {
    background: #ffffff;
    color: #000000;
    border-top: 1px solid #eaeaea;
    font-family: sans-serif;
}

.footer-logo img {
    max-width: 120px;
}

.footer-text {
    margin-top: 18px;
    font-size: 15px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #0d6efd;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0d6efd;
    padding-left: 6px;
}

.footer-bottom {
    background: #fff;
    color: #000;
    font-size: 14px;
    border-top: 1px solid #eaeaea;
}

.footer-bottom p {
    margin: 0;
}


/* About page */

.about-hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.about-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0d6efd;
}

.about-subheading {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #0d6efd;
}

.about-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.about-flow p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.ipr-list {
    padding-left: 1.25rem;
    margin-top: 1.25rem;
    margin-left: 20px;
}

.ipr-list li {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: #212529;
}


/* Game Page */

.game-detail-icon {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.game-detail-name {
    font-size: 36px;
    color: #111;
}

.game-mobile-name {
    font-size: 20px;
    color: #111;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3D6BFF;
    border: 2px solid #3D6BFF;
    color: #fff;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background-color: #2f5bea;
    border-color: #2f5bea;
    color: #fff;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    display: inline-block;
}

.coin-pill {
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    background-color: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
}

.coin-pill img {
    object-fit: contain;
}

#gameDetails p {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

#gameTags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#gameTags span {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #eaeaea;
    border-radius: 50px;
    color: #000;
}

/* Contact Form */

.contact-form {
    padding: 50px 0;
    margin: 30px 0;
}

.contact-form h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0d6efd;
}

.contact-form .form-control,
.contact-form .btn {
    min-height: 38px;
    border-radius: 2px;
}

.contact-form .btn-primary {
    min-width: 150px;
    background: #0d6efd;
    border: none;
}

.contact-form .btn-primary:hover {
    background: #0446aa;
}

.contact-form label {
    opacity: 0.9;
}

.contact-form textarea {
    resize: vertical;
}

.hint-text {
    font-size: 15px;
    padding-bottom: 15px;
    opacity: 0.8;
}

.bs-example {
    margin: 20px;
}

.box-card {
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 25px;
    background: #f7f7f7;
    max-width: 653px;
    width: 100%;
}

.coin-btn {
    background: linear-gradient(90deg, #2b74d8, #2f6bd9);
    color: white;
    border-radius: 40px;
    padding: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    outline: none;
}

.coin-btn:hover {
    color: #fff;
}

.category-btn {
    border: 2px solid #2f6bd9;
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.category-btn:hover {
    background: #2f6bd9;
    color: white;
}

.view-more-games-btn {
    border: none;
    outline: none;
    padding: 14px 32px;
    min-width: 190px;
    border-radius: 40px;
    background: linear-gradient(90deg, #2b74d8, #2f6bd9);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    animation: viewMorePulse 0.8s ease-in-out infinite;
}

@keyframes viewMorePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

.view-more-games-btn:hover:not(:disabled) {
    transform: scale(1.09);
}

.view-more-games-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
    animation: none;
    transform: scale(1);
}


/* Responsive Media Query */

@media (max-width: 1024px) {
    .custom-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) {
    .sidebar {
        display: none;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .list .list-item {
        padding: 20px 0px 12px;
    }

    .custom-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .results-grid.grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero-unique img {
        height: 260px;
    }

    .about-heading {
        font-size: 28px;
    }

    .about-subheading {
        font-size: 22px;
    }

    #gameName {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .title {
        font-size: 26px;
    }

    .custom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    #mobileStartGame {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .search-panel {
        width: 400px;
    }
}

@media (max-width: 500px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .heading {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .title {
        font-size: 20px;
    }
}

@media (max-width: 430px) {
    #gameName {
        font-size: 28px;
    }

    .search-panel {
        width: 340px;
    }
}

@media (max-width: 386px) {
    .about-hero img {
        width: 270px;
        height: 270px;
    }

    #startGame {
        width: 280px;
    }
}

@media (max-width: 370px) {
    .search-panel {
        width: 290px;
    }
}

@media (max-width: 368px) {
    .category-btn {
        padding: 12px 9px;
    }
}

@media (max-width: 360px) {
    .box-card {
        padding: 15px;
    }

    .coin-btn {
        font-size: 14px;
        padding: 11px;
    }

    .coin-btn img {
        width: 18px !important;
    }

    .box-card h5 {
        margin-bottom: 15px !important;
        font-size: 18px;
    }

    .category-btn {
        padding: 9px;
        font-size: 14px;
    }
}

@media (max-width: 350px) {
    .title {
        font-size: 17px
    }
}

@media (max-width: 341px) {
    #gameName {
        font-size: 22px;
    }
}

@media (max-width: 320px) {
    .category-btn {
        font-size: 14px;
    }
}

@media (max-width: 316px) {
    #startGame {
        width: 244px;
    }
}

@media (max-width: 300px) {
    .about-hero img {
        width: 225px;
        height: 225px;
    }
}

@media (max-width: 280px) {
    .custom-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 230px) {
    #startGame {
        padding: 12px 36px;
        font-size: 16px;
    }
}