* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    color: #2d6a4f;
    margin: 3rem 0 1rem;
    font-size: 1.8rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.game-card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.game-card h2 {
    color: #2d6a4f;
    font-size: 1.4rem;
    border: none;
    padding: 0;
}

.game-card p {
    color: #6c757d;
    flex-grow: 1;
}

.game-card-btn {
    color: #52b788;
    font-weight: 600;
    margin-top: 0.5rem;
}

.sub-nav {
    background: #1b4332;
    padding: 1rem 0;
}

.sub-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home {
    color: #d8f3dc;
    text-decoration: none;
    font-weight: 500;
}

.back-home:hover {
    color: white;
}

.game-name {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

nav {
    background: #2d6a4f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #b7e4c7;
}

.update-banner {
    background: #ffd166;
    color: #774936;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

section {
    padding: 3rem 0;
}

h2 {
    color: #2d6a4f;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    border-bottom: 3px solid #52b788;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    color: #2d6a4f;
    margin: 1rem 0 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #2d6a4f;
    color: white;
}

.working {
    color: #2d6a4f;
    font-weight: 600;
}

.expired {
    color: #adb5bd;
    text-decoration: line-through;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tier-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.tier-card:hover {
    transform: translateY(-3px);
}

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tier-s { background: #ef476f; color: white; }
.tier-a { background: #ffd166; color: #774936; }
.tier-b { background: #06d6a0; color: white; }
.tier-c { background: #118ab2; color: white; }

.site-footer, footer {
    background: #1b4332;
    color: #d8f3dc;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .site-title { font-size: 1.8rem; }
    .nav-links { gap: 0.8rem; font-size: 0.9rem; }
    h2 { font-size: 1.4rem; }
    .logo { font-size: 1rem; }
}