body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b1020;
    color: #e5e7eb;
}

header {
    background: #020617;
    color: #f9fafb;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: radial-gradient(circle at top left, #1f2937, #020617);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.game-image {
    width: 100%;
    /*height: 140px;*/
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #111; /* fallback */
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.game-desc {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease, border-color 0.08s ease;
}

.btn-primary {
    background: #22c55e;
    color: #022c22;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.55);
}

.btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.15);
    transform: translateY(-1px);
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 1.5rem 1rem 2rem;
}