/* === Reset & Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9fb;
    color: #222;
    line-height: 1.6;
}

/* === Header === */
.header-v2 {
    background: #ffc500;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.logo-container img {
    height: 80px;
    flex-shrink: 0;
}

.logo-container input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* === Navigation Scroll === */
.nav-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.scroll-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    padding: 0 0.5rem;
    z-index: 2;
    visibility: hidden;
}

.scroll-btn:hover {
    color: #888;
}

.nav-v2 {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    flex: 1;
    overflow: hidden;
}

.nav-v2::-webkit-scrollbar {
    height: 6px;
}

.nav-v2::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.nav-v2::-webkit-scrollbar-track {
    background: transparent;
}

.nav-v2 ul {
    display: inline-flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-v2 ul li a {
    color: #0072b5;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
    background-color: #f2f7fb;
    white-space: nowrap;
}

.nav-v2 ul li a:hover {
    background: #dcefff;
}

.mobile-menu {
    display: none;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.mobile-menu ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu ul li a {
    color: #0072b5;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu.show {
    display: block;
}

/* === Main === */
.main-content {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

/* === Game Cards === */
.card-v2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.card-v2:hover {
    transform: translateY(-4px);
}

.card-v2 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-v2 div {
    padding: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* === Footer === */
.footer-v2 {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    background: #f0f4f8;
    margin-top: 4rem;
}

.footer-v2 .footer-links {
    margin-bottom: 1rem;
}

.footer-v2 .footer-links a {
    margin: 0 0.8rem;
    text-decoration: none;
    color: #0072b5;
    font-weight: 500;
}

.footer-v2 .footer-links a:hover {
    text-decoration: underline;
}

/* === Game View === */
.game-view {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.game-view iframe {
    width: 100%;
    max-width: 1280px;
    height: 400px;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* === Game Info === */
.game-details {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.game-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.info-left h1 {
    font-size: 1.6rem;
    color: #0072b5;
    margin: 0;
}

.game-logo {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.game-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.game-actions button {
    background: #f2f7fb;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: #0072b5;
    transition: background 0.2s, color 0.2s;
}

.game-actions button:hover {
    background: #dcefff;
    color: #005a94;
}

.game-actions button.active {
    background: #e6f4ff;
    border-color: #0072b5;
    font-weight: bold;
}

/* === About Section === */
.about-section {
    background: #fff;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: #333;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0072b5;
}

.about-section h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #0072b5;
}

.about-section p {
    margin-bottom: 1rem;
}

.about-section ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.about-section ul li {
    margin-bottom: 0.4rem;
}

.about-section ul li a {
    color: #0072b5;
    text-decoration: none;
    font-weight: 500;
}

.about-section ul li a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-scroll-container {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .logo-container input {
        flex: 1;
        min-width: 0;
    }

    .game-view iframe {
        height: 480px;
    }

    .game-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .info-left {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .info-left h1 {
        font-size: 1.4rem;
    }

    .game-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .game-actions button {
        flex: 1 1 auto;
        text-align: center;
    }
}