/* =====================================================
   base.css — Reset, globální styl, typografie
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #f4f6f9;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ─── Status messages ──────────────────────────────── */

.status-message {
    padding: 10px 14px;
    border-radius: 6px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn .2s ease;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-message.warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Overlay (intro + completion) ────────────────── */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.overlay-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.overlay-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.overlay-card p,
.overlay-card .intro-text {
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

/* ─── Buttons ─────────────────────────────────────── */

.btn-start-game {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: opacity .15s, transform .1s;
    letter-spacing: .3px;
}

.btn-start-game:hover {
    opacity: .9;
}

.btn-start-game:active {
    transform: scale(.97);
}

/* ─── Animations ──────────────────────────────────── */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.completion-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    animation: bounceIn .5s ease-out;
}

.completion-text {
    color: #374151;
    line-height: 1.7;
    text-align: left;
    font-size: 14px;
}