/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0f2447 100%);
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Sections */
section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 8vh, 150px) clamp(20px, 6vw, 120px);
}

.section-content {
    width: 90%;
    animation: fadeInUp 1s ease-out;
}

#download {
    min-height: 100vh;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered entrance for multiple elements */
section:nth-of-type(2) .section-content { animation-delay: 0.1s; }
section:nth-of-type(3) .section-content { animation-delay: 0.1s; }
section:nth-of-type(4) .section-content { animation-delay: 0.1s; }
section:nth-of-type(5) .section-content { animation-delay: 0.1s; }
section:nth-of-type(6) .section-content { animation-delay: 0.1s; }
section:nth-of-type(7) .section-content { animation-delay: 0.1s; }
section:nth-of-type(8) .section-content { animation-delay: 0.1s; }
section:nth-of-type(9) .section-content { animation-delay: 0.1s; }
section:nth-of-type(10) .section-content { animation-delay: 0.1s; }

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--liquid-space-sm);
}

/* Game Card */
.game-card {
    position: relative;
    background: var(--liquid-glass-bg);
    border: var(--liquid-border-thin) solid var(--liquid-glass-border);
    border-radius: calc(var(--liquid-page-width) * 0.015);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--liquid-glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover effect */
.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.0),
        rgba(0, 0, 0, 0.7)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 50px var(--liquid-glass-shadow);
}

.game-card:hover::after {
    opacity: 1;
}

/* Play Button */
.game-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--liquid-font-md);
    color: #fff;
    background: radial-gradient(
        circle at center,
        rgba(167, 139, 250, 0.9),
        rgba(96, 165, 250, 0.9)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-card:hover .game-play-btn {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.liquid-feature-icon svg {
    width: 55%;
    height: 55%;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Floating PNG without frame */
.floating-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: liquidPhoneFloat 6s infinite ease-in-out;
}

.floating-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}
.liquid-feature-icon svg {
    width: 55%;
    height: 55%;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.payment-table-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.payment-table.active {
    display: table;
}

.payment-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: middle;
}

.pm-icon {
    width: 56px;
}

.pm-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}
.payment-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-tab {
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
}

.payment-tab.active {
    background: rgba(255,255,255,0.18);
}

.payment-table-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.payment-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
}

.payment-table.active {
    display: table;
}

.payment-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pm-icon svg {
    width: 52px;
    height: 52px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 14px 0;
    font-size: 16px;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.liquid-footer {
    margin-top: 80px;
    padding: 60px 20px 30px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(20px);
    color: rgba(255,255,255,0.85);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HEADER (DESKTOP + MOBILE)
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 25, 50, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.site-logo img {
    width: 34px;
    height: 34px;
}

/* Desktop Navigation */
.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
}

.site-nav a:hover {
    color: #ffffff;
}

/* Desktop CTA */
.header-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, #8b8cff, #6fa8ff);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* =========================
   MOBILE MENU
   ========================= */

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 30, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.mobile-nav nav a {
    font-size: 22px;
    color: #ffffff;
    text-decoration: none;
}

.mobile-cta {
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b8cff, #6fa8ff);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   RESPONSIVE RULES
   ========================= */

@media (max-width: 991px) {

    .site-nav,
    .header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    body.menu-open .mobile-nav {
        opacity: 1;
        pointer-events: auto;
    }
}
