/* =========================================================
   GAMEVERSE
   RESPONSIVE DESIGN
   Desktop → Tablet → Mobile
========================================================= */


/* =========================================================
   GLOBAL RESPONSIVE SAFETY
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
input,
textarea,
select {
    max-width: 100%;
}


/* =========================================================
   TABLET / SMALL LAPTOP
   1000px and below
========================================================= */

@media (max-width: 1000px) {

    /* ---------- Global ---------- */

    main,
    section,
    header,
    footer {
        width: 100%;
        max-width: 100%;
    }


    /* ---------- Navbar ---------- */

    header {
        padding: 15px 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 14px;
    }


    /* ---------- Hero ---------- */

    .hero {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-content {
        max-width: 90%;
    }


    /* ---------- About Hero ---------- */

    .about-hero .hero-content {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
        transform: none;
    }


    /* ---------- News Hero ---------- */

    .news-hero .hero-content {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
        transform: none;
    }


    /* ---------- Games Hero ---------- */

    .games-hero .hero-content {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }


    /* ---------- Contact Hero ---------- */

    .contact-hero {
        max-width: 90%;
        margin: 0 auto;
    }


    /* ---------- Games / News Grid ---------- */

    .games-container,
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }


    /* ---------- Contact Cards ---------- */

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }


    /* ---------- Featured / CTA ---------- */

    .store-cta,
    .featured-news-box {
        width: calc(100% - 40px);
        max-width: 1000px;
    }


    /* ---------- About ---------- */

    .about-content {
        max-width: 900px;
    }


    /* ---------- Admin ---------- */

    .admin-order-header,
    .order-header,
    .order-detail-header {
        gap: 15px;
    }

}


/* =========================================================
   MOBILE
   768px and below
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       GLOBAL
    ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        min-width: 0;
    }

    main,
    section,
    header,
    footer {
        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       NAVBAR
    ===================================================== */

    header {
        width: 100%;
        padding: 15px 12px;
    }

    nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .logo h1 {
        font-size: 25px;
        margin: 0;
    }

    nav ul {
        width: 100%;
        padding: 0;
        margin: 0;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 9px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: inline-block;
        max-width: 100%;

        font-size: 14px;

        white-space: normal;
    }

    #themeBtn {
        margin: 0;
    }

    .login-btn,
    .logout-btn,
    .add-game-btn {
        margin: 0;
        width: auto;
        max-width: 90%;
    }


    /* =====================================================
       GENERAL SECTIONS
    ===================================================== */

    .hero,
    .featured-games,
    .news-section,
    .trailer,
    .music,
    .stats,
    .contact,
    .about-section,
    .team {
        width: 100%;
        padding: 55px 15px;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;

        transform: none !important;
    }

    .hero h1,
    .hero h2 {
        max-width: 100%;

        font-size: clamp(30px, 9vw, 42px);

        line-height: 1.15;

        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero p {
        max-width: 100%;

        font-size: 15px;

        line-height: 1.7;

        overflow-wrap: break-word;
    }

    .hero-buttons {
        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;

        width: 100%;
    }

    .hero-buttons .btn {
        max-width: 100%;
    }


    /* =====================================================
       GAMES HERO
    ===================================================== */

    .games-hero .hero-content {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;

        transform: none !important;
    }

    .games-hero h2 {
        font-size: clamp(34px, 9vw, 48px);
    }

    .games-hero p {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       NEWS HERO
    ===================================================== */

    .news-hero .hero-content {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;

        transform: none !important;
    }

    .news-hero h2 {
        font-size: clamp(34px, 9vw, 52px);
    }

    .news-hero p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.7;
    }


    /* =====================================================
       ABOUT HERO
    ===================================================== */

    .about-hero .hero-content {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;

        transform: none !important;
    }

    .about-hero h2 {
        font-size: clamp(34px, 9vw, 50px);
    }


    /* =====================================================
       CONTACT HERO
    ===================================================== */

    .contact-hero {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        text-align: center;
    }

    .contact-hero h1 {
        font-size: clamp(34px, 9vw, 52px);

        line-height: 1.15;
    }

    .contact-hero > p {
        width: 100%;
        max-width: 100%;

        font-size: 15px;
        line-height: 1.7;
    }


    /* =====================================================
       TITLES
    ===================================================== */

    .featured-games h2,
    .news-section h2,
    .news h2,
    .trailer h2,
    .music h2,
    .stats h2,
    .contact h2 {
        font-size: clamp(28px, 7vw, 38px);

        line-height: 1.2;

        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: clamp(28px, 7vw, 38px);
    }


    /* =====================================================
       SEARCH
    ===================================================== */

    #searchBox {
        display: block;

        width: 100% !important;
        max-width: 430px !important;

        margin: 25px auto;

        padding: 14px 17px;

        font-size: 14px;

        box-sizing: border-box;
    }


    /* =====================================================
       CATEGORY BUTTONS
    ===================================================== */

    .game-category-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 12px;

        margin: 20px auto;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
    }


    /* =====================================================
       GAMES / NEWS GRID
    ===================================================== */

    .games-container,
    .news-container {
        width: 100%;

        grid-template-columns: 1fr !important;

        gap: 22px;
    }


    /* =====================================================
       GAME CARDS
    ===================================================== */

    .game-card {
        width: 100%;
        max-width: 100%;
    }

    .game-card img {
        width: 100%;
        height: 210px;

        object-fit: cover;
    }

    .game-card h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .game-card p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* =====================================================
       NEWS CARDS
    ===================================================== */

    .news-card {
        width: 100%;
        max-width: 100%;
    }

    .news-card img {
        width: 100%;
        height: 210px;

        object-fit: cover;
    }

    .news-card h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .news-card p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* =====================================================
       CONTACT CARDS
    ===================================================== */

    .contact-info {
        width: 100%;

        grid-template-columns: 1fr !important;

        gap: 16px;
    }

    .info-card {
        width: 100%;
        max-width: 100%;

        min-height: 145px;
    }


    /* =====================================================
       CONTACT FINAL MESSAGE
    ===================================================== */

    .contact-final-message {
        width: 100%;
        max-width: 100%;

        margin: 60px auto 70px;

        padding: 15px;
    }

    .contact-final-message h2 {
        font-size: clamp(30px, 8vw, 48px);

        line-height: 1.1;
    }

    .contact-final-message > p {
        font-size: 14px;

        line-height: 1.7;
    }

    .contact-final-features {
        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 10px;
    }

    .contact-final-features div {
        width: 100%;
        max-width: 220px;
    }

    .contact-final-line {
        width: 180px;
        max-width: 80%;
    }

    .contact-brand-signature {
        margin-top: 40px;
    }

    .contact-brand-signature > span {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .contact-brand-signature p {
        font-size: 9px;
        letter-spacing: 2px;

        line-height: 1.6;
    }


    /* =====================================================
       STORE CTA
    ===================================================== */

    .store-cta,
    .featured-news-box {
        width: calc(100% - 30px);

        max-width: 100%;

        margin-left: auto;
        margin-right: auto;

        padding: 55px 18px;
    }

    .store-cta h2,
    .featured-news-box h2 {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.1;
    }

    .store-cta p,
    .featured-news-box p {
        font-size: 13px;
        line-height: 1.7;
    }

    .store-cta-features {
        flex-direction: column;

        gap: 12px;
    }

    .store-cta-btn {
        width: 100%;
        max-width: 320px;
    }


    /* =====================================================
       ABOUT CONTENT
    ===================================================== */

    .about-text,
    .about-content {
        width: 100%;
        max-width: 100%;

        padding: 22px 18px;

        box-sizing: border-box;
    }

    .about-content p {
        font-size: 14px;

        line-height: 1.8;
    }


    /* =====================================================
       TEAM / DEVELOPER
    ===================================================== */

    .team {
        width: 100%;
    }

    .team-card,
    .developer-card {
        width: 100%;
        max-width: 380px;

        margin-left: auto;
        margin-right: auto;

        box-sizing: border-box;
    }

    .team-card img,
    .developer-card img {
        max-width: 100%;
    }


    /* =====================================================
       FORMS
    ===================================================== */

    form,
    .contact-form,
    .game-form {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    input,
    textarea,
    select {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }


    /* =====================================================
       CHECKOUT / PAYMENT
    ===================================================== */

    .checkout-page,
    .payment-page {
        width: 100%;

        padding: 40px 15px;

        box-sizing: border-box;
    }

    .checkout-container,
    .payment-container {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        box-sizing: border-box;
    }

    .checkout-layout,
    .payment-layout {
        width: 100%;

        display: flex !important;

        flex-direction: column !important;

        gap: 20px;

        box-sizing: border-box;
    }

    .checkout-card,
    .payment-card {
        width: 100%;
        max-width: 100%;

        padding: 20px;

        box-sizing: border-box;
    }

    .checkout-container > h2,
    .payment-container > h2 {
        font-size: 27px;

        line-height: 1.2;
    }

    .checkout-subtitle,
    .payment-subtitle {
        font-size: 13px;

        line-height: 1.6;

        margin-bottom: 25px;
    }

    .checkout-form {
        width: 100%;
        max-width: 100%;
    }

    .checkout-form input,
    #cardPaymentForm input {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    .card-row {
        display: grid;

        grid-template-columns: 1fr !important;

        gap: 10px;
    }

    .payment-method {
        width: 100%;
        box-sizing: border-box;
    }

    #cardPaymentForm {
        width: 100%;
        max-width: 100%;
    }

    #continuePaymentBtn,
    #payNowBtn {
        width: 100%;

        box-sizing: border-box;
    }

    .payment-summary-item {
        flex-wrap: wrap;
    }


    /* =====================================================
       CHECKOUT ITEMS
    ===================================================== */

    .checkout-item {
        width: 100%;

        display: flex;

        align-items: center;

        gap: 14px;

        box-sizing: border-box;
    }

    .checkout-item img {
        width: 130px !important;
        height: 80px !important;

        flex-shrink: 0;

        object-fit: cover !important;
    }

    .checkout-item-info {
        min-width: 0;
    }

    .checkout-item-info h4 {
        font-size: 14px;

        overflow-wrap: break-word;
    }


    /* =====================================================
       CART
    ===================================================== */

    .cart-page,
    .orders-page,
    .order-details-page,
    .account-page,
    .wishlist-page {
        width: 100%;

        padding: 40px 15px;

        box-sizing: border-box;
    }

    .cart-container,
    .orders-container,
    .order-details-container,
    .account-container,
    .wishlist-container {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;

        box-sizing: border-box;
    }

    .cart-item {
        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

        padding: 18px;

        box-sizing: border-box;
    }

    .cart-item-image {
        width: 100%;
        height: 190px;

        object-fit: cover;
    }

    .cart-item-info {
        width: 100%;
        min-width: 0;
    }

    .cart-item-info h2 {
        font-size: 22px;

        overflow-wrap: break-word;
    }

    .quantity-control {
        justify-content: center;
    }

    .cart-summary {
        width: 100%;

        text-align: center;

        box-sizing: border-box;
    }

    .checkout-btn {
        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       ORDERS
    ===================================================== */

    .order-card,
    .order-detail-card {
        width: 100%;

        padding: 20px;

        box-sizing: border-box;
    }

    .order-header,
    .order-detail-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .order-status {
        align-self: flex-start;
    }

    .order-item,
    .order-detail-item {
        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .order-item-image,
    .order-detail-image {
        width: 100%;

        height: 190px;

        object-fit: cover;
    }

    .order-item-info,
    .order-detail-info {
        width: 100%;

        min-width: 0;
    }

    .order-item-info h3,
    .order-detail-info h2 {
        overflow-wrap: break-word;
    }

    .order-total,
    .order-detail-total {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        text-align: center;
    }


    /* =====================================================
       DELIVERED GAME ACCOUNT
    ===================================================== */

    .delivered-game-account {
        width: 100%;

        box-sizing: border-box;

        padding: 15px;
    }

    .game-account-credentials {
        width: 100%;

        overflow-wrap: break-word;
    }

    .game-account-credentials span {
        max-width: calc(100% - 20px);

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .copy-account-btn {
        margin-top: 5px;
    }


    /* =====================================================
       WISHLIST
    ===================================================== */

    .wishlist-item {
        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

        padding: 18px;

        box-sizing: border-box;
    }

    .wishlist-image {
        width: 100%;
        height: 190px;

        object-fit: cover;
    }

    .wishlist-info {
        width: 100%;
        min-width: 0;
    }

    .wishlist-info h2 {
        font-size: 22px;

        overflow-wrap: break-word;
    }

    .wishlist-actions {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }

    .wishlist-actions button,
    .wishlist-actions a {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }


    /* =====================================================
       ACCOUNT
    ===================================================== */

    .account-card {
        width: 100%;
        max-width: 100%;

        padding: 30px 20px;

        box-sizing: border-box;
    }

    .account-card h3 {
        font-size: 26px;

        overflow-wrap: break-word;
    }

    .account-actions {
        width: 100%;

        flex-direction: column;

        gap: 10px;
    }

    .account-actions a,
    .account-actions button {
        width: 100%;

        box-sizing: border-box;
    }


    /* =====================================================
       GAME DETAILS
    ===================================================== */

    .game-details-page {
        width: 100%;

        padding: 35px 15px;
    }

    #gameDetailsContainer {
        width: 100%;

        padding: 18px;

        box-sizing: border-box;
    }

    #gameDetailsContainer > img {
        width: 100%;

        height: 250px;

        object-fit: cover;
    }


    /* =====================================================
       GAME ACCOUNTS
    ===================================================== */

    #accountsContainer {
        width: 100%;

        grid-template-columns: 1fr !important;

        gap: 18px;
    }

    .game-account-card {
        width: 100%;

        box-sizing: border-box;
    }

    .game-account-form input {
        width: 100%;

        box-sizing: border-box;
    }

    .account-form-buttons {
        flex-direction: column;
    }

    .account-form-buttons button {
        width: 100%;
    }


    /* =====================================================
       ADMIN ORDERS
    ===================================================== */

    .admin-orders-page {
        width: 100%;

        padding: 35px 15px;
    }

    .admin-orders-container {
        width: 100%;
        max-width: 100%;
    }

    .admin-order-card {
        width: 100%;

        padding: 18px;

        box-sizing: border-box;
    }

    .admin-order-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .admin-order-item {
        width: 100%;

        flex-direction: column;

        align-items: flex-start;
    }

    .admin-order-item img {
        width: 100%;
        height: 190px;

        object-fit: cover;
    }

    .admin-order-item > div {
        width: 100%;
    }

    .admin-order-total {
        justify-content: center;

        flex-wrap: wrap;
    }


    /* =====================================================
       VIDEO
    ===================================================== */

    .trailer video {
        display: block;

        width: 100%;
        max-width: 100%;

        height: auto;
    }


    /* =====================================================
       AUDIO
    ===================================================== */

    .music audio {
        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       PROGRESS / METER
    ===================================================== */

    progress,
    meter {
        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       PAGINATION
    ===================================================== */

    #pagination {
        width: 100%;

        flex-wrap: wrap;

        gap: 10px;

        padding: 0 10px;
    }

    .pagination-btn {
        max-width: 100%;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    footer {
        width: 100%;

        padding: 20px 12px;

        font-size: 12px;

        line-height: 1.7;

        text-align: center;
    }

    footer p {
        max-width: 100%;

        overflow-wrap: break-word;
    }


    /* =====================================================
       TOP BUTTON
    ===================================================== */

    #topBtn {
        right: 14px !important;
        bottom: 14px !important;

        width: 48px;
        height: 48px;

        font-size: 19px;
    }

}


/* =========================================================
   SMALL PHONES
   480px and below
========================================================= */

@media (max-width: 480px) {

    /* ---------- Navbar ---------- */

    header {
        padding: 12px 10px;
    }

    .logo h1 {
        font-size: 23px;
    }

    nav ul {
        gap: 7px;
    }

    nav ul li a {
        font-size: 13px;
    }


    /* ---------- Hero ---------- */

    .hero,
    .featured-games,
    .news-section,
    .trailer,
    .music,
    .stats,
    .contact,
    .about-section,
    .team {
        padding: 45px 12px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(28px, 10vw, 36px);
    }

    .hero p {
        font-size: 14px;
    }


    /* ---------- Buttons ---------- */

    .hero-buttons {
        flex-direction: column;

        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;

        text-align: center;
    }


    /* ---------- Search ---------- */

    #searchBox {
        width: 100% !important;

        padding: 13px 15px;

        font-size: 13px;
    }


    /* ---------- Category Buttons ---------- */

    .category-btn {
        width: 100%;
        max-width: 280px;

        padding: 12px 18px;

        font-size: 14px;
    }


    /* ---------- Titles ---------- */

    .featured-games h2,
    .news-section h2,
    .news h2,
    .trailer h2,
    .music h2,
    .stats h2,
    .contact h2,
    .contact h1 {
        font-size: 27px;
    }


    /* ---------- Game / News Cards ---------- */

    .game-card img,
    .news-card img {
        height: 185px;
    }

    .game-card h3,
    .news-card h3 {
        font-size: 19px;
    }

    .game-card p,
    .news-card p {
        font-size: 13px;
    }


    /* ---------- Contact ---------- */

    .contact-info {
        gap: 14px;
    }

    .info-card {
        min-height: 140px;

        padding: 22px 15px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p,
    .info-card a {
        font-size: 12px;

        overflow-wrap: anywhere;
    }


    /* ---------- Final Contact ---------- */

    .contact-final-message {
        margin: 50px auto 60px;

        padding: 10px;
    }

    .contact-final-badge {
        font-size: 9px;

        padding: 8px 13px;

        letter-spacing: 1.5px;
    }

    .contact-final-message h2 {
        font-size: clamp(27px, 9vw, 38px);
    }

    .contact-final-message > p {
        font-size: 13px;
    }

    .contact-final-features div {
        max-width: 200px;

        padding: 10px 14px;
    }

    .contact-brand-signature {
        margin-top: 45px;
    }

    .signature-line {
        width: 200px;
    }

    .signature-logo {
        width: 44px;
        height: 44px;

        font-size: 21px;
    }

    .contact-brand-signature > span {
        font-size: 13px;

        letter-spacing: 3px;
    }

    .contact-brand-signature p {
        font-size: 8px;

        letter-spacing: 1.8px;
    }


    /* ---------- Store CTA ---------- */

    .store-cta,
    .featured-news-box {
        width: calc(100% - 24px);

        padding: 45px 15px;
    }

    .store-cta h2,
    .featured-news-box h2 {
        font-size: 30px;
    }

    .store-cta-features div {
        font-size: 11px;
    }


    /* ---------- Checkout ---------- */

    .checkout-page,
    .payment-page,
    .cart-page,
    .orders-page,
    .order-details-page,
    .account-page,
    .wishlist-page {
        padding: 30px 12px;
    }

    .checkout-card,
    .payment-card {
        padding: 17px;
    }

    .checkout-container > h2,
    .payment-container > h2 {
        font-size: 24px;
    }

    .checkout-subtitle,
    .payment-subtitle {
        font-size: 12px;
    }


    /* ---------- Checkout Items ---------- */

    .checkout-item {
        gap: 10px;
    }

    .checkout-item img {
        width: 105px !important;
        height: 68px !important;
    }

    .checkout-item-info h4 {
        font-size: 13px;
    }

    .checkout-item-info p {
        font-size: 12px;
    }


    /* ---------- Cart ---------- */

    .cart-item {
        padding: 15px;
    }

    .cart-item-image {
        height: 175px;
    }

    .cart-item-info h2 {
        font-size: 20px;
    }

    .cart-item-info p {
        font-size: 14px;
    }

    .cart-summary h2 {
        font-size: 24px;
    }


    /* ---------- Orders ---------- */

    .order-card,
    .order-detail-card {
        padding: 16px;
    }

    .order-item-image,
    .order-detail-image {
        height: 175px;
    }

    .order-detail-total,
    .order-total {
        font-size: 20px;
    }


    /* ---------- Account ---------- */

    .account-card {
        padding: 25px 16px;
    }

    .account-avatar {
        width: 85px;
        height: 85px;

        font-size: 38px;
    }

    .account-card h3 {
        font-size: 24px;
    }


    /* ---------- Wishlist ---------- */

    .wishlist-item {
        padding: 15px;
    }

    .wishlist-image {
        height: 175px;
    }

    .wishlist-info h2 {
        font-size: 20px;
    }


    /* ---------- Game Details ---------- */

    #gameDetailsContainer {
        padding: 14px;
    }

    #gameDetailsContainer > img {
        height: 210px;
    }


    /* ---------- Top Button ---------- */

    #topBtn {
        width: 44px;
        height: 44px;

        right: 12px !important;
        bottom: 12px !important;

        font-size: 17px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   360px and below
========================================================= */

@media (max-width: 360px) {

    .logo h1 {
        font-size: 21px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .hero h1,
    .hero h2 {
        font-size: 27px;
    }

    .hero p {
        font-size: 13px;
    }

    .game-card img,
    .news-card img {
        height: 165px;
    }

    .checkout-item img {
        width: 90px !important;
        height: 60px !important;
    }

    .contact-brand-signature > span {
        font-size: 11px;

        letter-spacing: 2.5px;
    }

    .contact-brand-signature p {
        font-size: 7px;

        letter-spacing: 1.3px;
    }

}

/* =========================================================
   GAMEVERSE CART - MOBILE
========================================================= */

@media (max-width: 768px) {

    /* Cart page */

    .cart-page {
        padding: 45px 15px 70px;
    }


    /* Cart title */

    .cart-page .section-title {
        margin-bottom: 35px;
        padding: 15px 10px 22px;
    }

    .cart-page .section-title h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .cart-page .section-title p {
        font-size: 12px;
    }


    /* Cart item */

    .cart-page .cart-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;

        padding: 15px;

        gap: 18px;
    }


    /* Game image */

    .cart-page .cart-item-image {
        width: 100%;
        height: 190px;

        grid-row: auto;

        object-fit: cover;
    }


    /* Game information */

    .cart-page .cart-item-info {
        width: 100%;

        align-items: center;

        text-align: center;
    }


    /* Game title */

    .cart-page .cart-item-info h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }


    /* Information */

    .cart-page .cart-item-info p {
        font-size: 13px;
    }


    /* Quantity */

    .cart-page .quantity-control {
        margin: 14px auto;
    }


    /* Remove */

    .cart-page .remove-cart-btn {
        margin: 12px auto 0;
    }


    /* Cart summary */

    .cart-page .cart-summary {
        flex-direction: column;

        align-items: stretch;

        text-align: center;

        padding: 22px 18px;

        gap: 18px;
    }


    /* Total */

    .cart-page .cart-summary h2 {
        font-size: 22px;
    }


    /* Checkout */

    .cart-page .checkout-btn {
        width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }


    /* Empty cart */

    .cart-page .empty-cart {
        width: 100%;

        min-height: 200px;

        padding: 45px 18px;

        box-sizing: border-box;
    }

}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .cart-page {
        padding: 35px 12px 60px;
    }


    .cart-page .section-title h1 {
        font-size: 26px;
    }


    .cart-page .cart-item {
        padding: 12px;
        border-radius: 13px;
    }


    .cart-page .cart-item-image {
        height: 170px;
    }


    .cart-page .cart-item-info h2 {
        font-size: 20px;
    }


    .cart-page .cart-item-info p {
        font-size: 12px;
    }


    .cart-page .cart-summary h2 {
        font-size: 20px;
    }

}

/* =========================================================
   GAMEVERSE PAYMENT - MOBILE
========================================================= */

@media (max-width: 768px) {

    .payment-page {
        padding: 45px 15px 70px;
    }

    .payment-container {
        width: 100%;
        max-width: 100%;
    }


    /* ---------- Title ---------- */

    .payment-container > h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .payment-subtitle {
        margin-bottom: 35px;
        font-size: 12px;
    }


    /* ---------- Layout ---------- */

    .payment-layout {
        display: flex !important;
        flex-direction: column !important;

        width: 100%;
        gap: 20px;
    }


    /* ---------- Cards ---------- */

    .payment-card {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        padding: 20px;

        border-radius: 15px;
    }


    .payment-card > h3 {
        font-size: 19px;
    }


    /* ---------- CliQ ---------- */

    .cliq-payment-box {
        padding: 18px;
    }

    .cliq-payment-box h4 {
        font-size: 18px;
    }

    .cliq-payment-box > p {
        font-size: 12px;
    }


    /* ---------- CliQ Details ---------- */

    .cliq-details {
        padding: 5px 10px;
    }

    .cliq-details > div {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;

        padding: 10px 0;
    }

    .cliq-details strong,
    .cliq-details span {
        font-size: 11px;

        text-align: left;
    }


    /* ---------- Screenshot ---------- */

    .cliq-proof-upload {
        padding: 15px;
    }

    .cliq-proof-upload input[type="file"] {
        font-size: 10px;
    }


    /* ---------- Pay Now ---------- */

    #payNowBtn {
        width: 100%;

        min-height: 52px;

        font-size: 13px;
    }


    /* ---------- Security ---------- */

    .payment-security {
        font-size: 10px;
    }

}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .payment-page {
        padding: 35px 12px 60px;
    }

    .payment-container > h2 {
        font-size: 26px;
    }

    .payment-card {
        padding: 16px;
    }

    .payment-card > h3 {
        font-size: 17px;
    }

    .cliq-payment-box {
        padding: 15px;
    }

    .cliq-details > div {
        padding: 9px 0;
    }

    .cliq-proof-upload {
        padding: 12px;
    }

}

/* MOBILE SESSION FLASH FIX */
body:not(.session-ready) #ordersNav,
body:not(.session-ready) #wishlistNav,
body:not(.session-ready) #adminDashboardNav,
body:not(.session-ready) .add-game-btn,
body:not(.session-ready) .logout-btn,
body:not(.session-ready) .login-btn,
body:not(.session-ready) #userBadge {
    display: none !important;
}

/* MOBILE NAVBAR FIX */
@media (max-width: 768px) {
    html,
    body {
        background: #050712 !important;
        overflow-x: hidden !important;
    }

    header nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 13px !important;
    }

    header nav > ul {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    header nav > ul li {
        width: 100% !important;
        text-align: center !important;
    }

    header nav > ul li a,
    header nav > .login-btn,
    header nav > .logout-btn,
    header nav > .add-game-btn,
    header nav > #userBadge {
        width: 86% !important;
        max-width: 270px !important;
        min-height: 44px !important;
        margin: 0 auto !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;
    }

    header nav > #userBadge {
        border: 1px solid rgba(0, 234, 255, 0.85) !important;
        border-radius: 12px !important;
        color: #00eaff !important;
        text-decoration: none !important;

        background:
            linear-gradient(
                135deg,
                rgba(8, 12, 32, 0.95),
                rgba(35, 10, 55, 0.95)
            ) !important;

        box-shadow:
            0 0 12px rgba(0, 234, 255, 0.45),
            0 0 25px rgba(123, 44, 255, 0.22) !important;
    }

    .orders-info-box {
        width: 94% !important;
        margin: 30px auto 45px !important;
        padding: 30px 18px !important;
    }

    .orders-info-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .orders-info-card {
        min-height: auto !important;
        padding: 22px 18px !important;
    }

    .orders-info-box h2 {
        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    .orders-info-card h3 {
        font-size: 16px !important;
    }

    .orders-info-card p {
        font-size: 13px !important;
        line-height: 1.75 !important;
    }
}

/* Disable heavy animated background on mobile */
@media (max-width: 768px) {
    #gameRain,
    .game-rain,
    .game-particle {
        display: none !important;
    }
}

/* Final mobile navbar visibility override */
@media (max-width: 768px) {
    body.session-ready #ordersNav[style*="display: none"],
    body.session-ready #wishlistNav[style*="display: none"],
    body.session-ready #adminDashboardNav[style*="display: none"],
    body.session-ready .add-game-btn[style*="display: none"],
    body.session-ready .logout-btn[style*="display: none"],
    body.session-ready .login-btn[style*="display: none"],
    body.session-ready #userBadge[style*="display: none"] {
        display: none !important;
    }
}

/* Final mobile orders info polish */
@media (max-width: 768px) {
    .orders-info-box {
        width: calc(100% - 28px) !important;
        margin: 28px auto 45px !important;
        padding: 28px 16px !important;
        border-radius: 16px !important;
        text-align: center !important;
    }

    .orders-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .orders-info-card {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 18px 16px !important;

        background:
            linear-gradient(
                145deg,
                rgba(6, 14, 35, 0.94),
                rgba(34, 8, 53, 0.9)
            ) !important;

        border: 1px solid rgba(0, 234, 255, 0.28) !important;
        border-radius: 14px !important;

        text-align: left !important;
        box-sizing: border-box !important;
    }

    .orders-info-box h2 {
        font-size: 23px !important;
        line-height: 1.25 !important;
        margin-bottom: 24px !important;
    }

    .orders-info-box h2::after {
        width: 170px !important;
    }

    .orders-info-card h3 {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .orders-info-card p {
        font-size: 12px !important;
        line-height: 1.75 !important;
    }
}

/* Final auth navbar state on mobile */
@media (max-width: 768px) {
    html body:not(.auth-ready) header nav #ordersNav,
    html body:not(.auth-ready) header nav #wishlistNav,
    html body:not(.auth-ready) header nav #adminDashboardNav,
    html body:not(.auth-ready) header nav .add-game-btn,
    html body:not(.auth-ready) header nav .logout-btn,
    html body:not(.auth-ready) header nav .login-btn,
    html body:not(.auth-ready) header nav #userBadge {
        display: none !important;
    }

    html body.auth-ready header nav #ordersNav,
    html body.auth-ready header nav #wishlistNav,
    html body.auth-ready header nav #adminDashboardNav,
    html body.auth-ready header nav .add-game-btn,
    html body.auth-ready header nav .logout-btn,
    html body.auth-ready header nav .login-btn,
    html body.auth-ready header nav #userBadge {
        display: none !important;
    }

    html body.auth-guest header nav .login-btn {
        display: inline-flex !important;
    }

    html body.auth-user header nav #ordersNav,
    html body.auth-user header nav #wishlistNav,
    html body.auth-admin header nav #ordersNav,
    html body.auth-admin header nav #wishlistNav,
    html body.auth-admin header nav #adminDashboardNav {
        display: list-item !important;
    }

    html body.auth-user header nav .logout-btn,
    html body.auth-user header nav #userBadge,
    html body.auth-admin header nav .logout-btn,
    html body.auth-admin header nav .add-game-btn,
    html body.auth-admin header nav #userBadge {
        display: inline-flex !important;
    }
}

/* Final mobile orders info layout */
@media (max-width: 768px) {
    .orders-info-box {
        width: calc(100% - 28px) !important;
        max-width: 420px !important;
        margin: 28px auto 48px !important;
        padding: 28px 16px !important;

        border-radius: 18px !important;
        text-align: center !important;

        background:
            radial-gradient(circle at top left, rgba(0, 234, 255, 0.10), transparent 34%),
            radial-gradient(circle at bottom right, rgba(255, 32, 200, 0.10), transparent 36%),
            linear-gradient(145deg, rgba(5, 8, 24, 0.98), rgba(20, 8, 38, 0.98)) !important;

        border: 1px solid rgba(0, 234, 255, 0.35) !important;

        box-shadow:
            0 14px 35px rgba(0, 0, 0, 0.38),
            0 0 22px rgba(0, 234, 255, 0.08) !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .orders-info-box::before {
        display: none !important;
    }

    .orders-info-box h2 {
        max-width: 100% !important;
        margin: 0 auto 24px !important;

        font-size: 24px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        letter-spacing: 0 !important;
    }

    .orders-info-box h2::after {
        width: 160px !important;
        height: 3px !important;
        margin-top: 13px !important;
    }

    .orders-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .orders-info-card {
        width: 100% !important;
        min-height: auto !important;
        padding: 18px 16px !important;

        display: block !important;

        background:
            linear-gradient(
                145deg,
                rgba(6, 14, 35, 0.96),
                rgba(34, 8, 53, 0.92)
            ) !important;

        border: 1px solid rgba(0, 234, 255, 0.28) !important;
        border-radius: 14px !important;

        text-align: left !important;
        box-sizing: border-box !important;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.28),
            inset 0 0 14px rgba(0, 234, 255, 0.035) !important;
    }

    .orders-info-card h3 {
        margin: 0 0 10px !important;

        font-size: 15px !important;
        line-height: 1.3 !important;
        color: #00eaff !important;
        white-space: normal !important;
    }

    .orders-info-card p {
        margin: 0 !important;

        font-size: 12px !important;
        line-height: 1.75 !important;
        color: #cbd5e1 !important;
    }
}

/* Force profile visible after auth check on mobile */
@media (max-width: 768px) {
    body:not(.auth-loading) #userBadge {
        display: inline-flex !important;
    }
}

/* Final mobile profile button style */
@media (max-width: 768px) {
    header nav > #userBadge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: 115px !important;
        max-width: 260px !important;
        min-height: 44px !important;

        padding: 0 18px !important;
        margin: 2px auto 0 !important;

        border: 1px solid rgba(0, 234, 255, 0.9) !important;
        border-radius: 14px !important;

        background:
            linear-gradient(
                135deg,
                rgba(8, 12, 32, 0.97),
                rgba(35, 10, 55, 0.97)
            ) !important;

        color: #00eaff !important;
        text-decoration: none !important;

        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1 !important;

        box-shadow:
            0 0 14px rgba(0, 234, 255, 0.50),
            0 0 28px rgba(123, 44, 255, 0.25),
            inset 0 0 12px rgba(0, 234, 255, 0.08) !important;

        white-space: nowrap !important;
    }

    header nav > #userBadge::after {
        content: "" !important;

        position: absolute !important;
        left: 50% !important;
        bottom: -8px !important;

        width: 58px !important;
        height: 2px !important;

        transform: translateX(-50%) !important;

        border-radius: 50px !important;

        background:
            linear-gradient(90deg, #00eaff, #ff20c8) !important;

        box-shadow:
            0 0 10px rgba(0, 234, 255, 0.85),
            0 0 16px rgba(255, 32, 200, 0.55) !important;
    }

    header nav > #userBadge {
        position: relative !important;
    }
}

