﻿:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-color: #38bdf8;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container {
    max-width: 1000px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

header h1 span {
    color: var(--accent-color);
}

header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Karta hry */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(56, 189, 248, 0.2);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Toto vynutí dokonalý čtverec */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #334155;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.card-content span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 1px;
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .main-logo { 
        max-width: 240px;
    }
    header h1 { font-size: 2rem; }
    .grid { gap: 1.5rem; }
}

.main-logo {
    max-width: 320px;
    width: 90%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.header-info {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.sub-tagline {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.safety-info {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    background: rgba(56, 189, 248, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}