* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e0e0e0;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.warning {
    text-align: left;
    color: #666;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.logo-section {
    margin-bottom: 10px;
}

.logo {
    margin-bottom: 2px;
    display: inline-block;
}

.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

.slogan {
    font-size: 13px;
    color: #666;
    margin-top: 0;
}

.nav-divider {
    height: 2px;
    background-color: #4CAF50;
    margin: 10px 0;
    width: 100%;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 0;
    padding-bottom: 0;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    color: #1976D2;
    border: none;
    margin-right: 0;
    box-shadow: none;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.tab.active {
    background-color: #f5f5f5;
    color: #1976D2;
    font-weight: bold;
    border: none;
    box-shadow: none;
    transform: none;
}

.tab-icon-img {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}

.tab:not(.active) {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.tab:not(.active):hover {
    background-color: #eeeeee;
    transform: none;
    box-shadow: none;
}


/* Games List */
.games-list {
    margin-top: 0;
}

.game-item {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.game-item:last-child {
    margin-bottom: 0;
}

.game-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-content {
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.title-icon {
    font-size: 11px;
    opacity: 0.4;
    margin-left: 5px;
    font-weight: normal;
}

.title-icon-img {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}

.game-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.game-icon {
    flex-shrink: 0;
}

.icon-placeholder {
    width: 55px;
    height: 55px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.icon-placeholder:hover {
    transform: scale(1.05);
}

.game-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.dragon-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
}

.goku-icon {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    border: none;
}

.pirate-icon {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: white;
    border: none;
    font-size: 24px;
}

.knight-icon {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
    color: white;
    border: none;
}

.music-icon {
    background: linear-gradient(135deg, #ec407a 0%, #c2185b 100%);
    color: white;
    border: none;
}

.army-icon {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    border: none;
}

.ninja-icon {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    color: white;
    border: none;
}

.avatar-icon {
    background: linear-gradient(135deg, #ff7043 0%, #e64a19 100%);
    color: white;
    border: none;
}

.game-details {
    flex: 1;
    min-width: 0;
}

.game-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
    padding: 4px 0;
}

.rating {
    display: flex;
    gap: 2px;
    padding-top: 4px;
}

.star {
    font-size: 18px;
    color: #ddd;
    line-height: 1;
    transition: transform 0.2s ease;
}

.star.filled {
    color: #4CAF50;
    text-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
}

.star:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        background-color: #e0e0e0;
    }

    .container {
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .logo {
        font-size: 36px;
    }

    .game-info {
        gap: 10px;
    }

    .icon-placeholder {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 10px;
    }

    .game-title {
        font-size: 15px;
    }

    .game-description {
        font-size: 12px;
    }

    .tab {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 6px;
    }

    .game-item {
        border-radius: 8px;
        padding: 12px;
    }
}

/* Game Detail Page */
.game-detail {
    margin-top: 0;
}

.detail-rating {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.game-detail-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    align-items: flex-start;
}

.detail-game-icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-game-icon .icon-placeholder {
    width: 80px;
    height: 80px;
    font-size: 40px;
    overflow: hidden;
}

.detail-game-icon .detail-rating {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    justify-content: center;
}

.detail-description {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.detail-description p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.detail-description p:last-child {
    margin-bottom: 0;
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.detail-tab {
    padding: 10px 25px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-tab.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.detail-tab:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
}

.detail-tab.active:hover {
    background-color: #45a049;
}

.detail-tab-link {
    text-decoration: none;
    display: inline-block;
}

.detail-tab-link:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
}

.tab-content {
    margin-top: 15px;
    display: block;
    width: 100%;
}

.tab-content[style*="display: none"] {
    display: none !important;
}

.image-section {
    margin-bottom: 12px;
    padding-bottom: 8px;
    width: 100%;
}

.image-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.gallery-item {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Download Section */
.download-section {
    margin-bottom: 15px;
}

.download-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.download-item:last-child {
    border-bottom: none;
}

.download-info {
    flex: 1;
}

.download-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.download-version {
    font-size: 12px;
    color: #666;
}

.download-buttons {
    display: flex;
    gap: 8px;
}

.btn-download {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3);
    min-width: 60px;
}

.btn-download:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.4);
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
}

.footer-link {
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-link a {
    color: #2196F3;
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 11px;
    color: #666;
}

/* Responsive for Detail Page */
@media (max-width: 640px) {

    .detail-game-icon .icon-placeholder {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .detail-description p {
        font-size: 12px;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .download-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-download {
        flex: 1;
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .gallery-item {
        border-radius: 4px;
    }
}
