/* ===== GLOBAL ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;

    /* PLYNULÝ GRADIENT */
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== HEADER ===== */
h1 {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 30px;
}

/* ===== START SCREEN ===== */
#startScreen {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.start-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    width: 380px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: fadeIn 0.5s ease;
}

/* ===== CONTENT ===== */
#content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

/* ===== GAME ===== */
#game {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== LEADERBOARD ===== */
.leaderboard-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== RESULT ===== */
#result {
    display: none;
    justify-content: center;
    margin-top: 60px;
}

.result-wrapper {
    display: flex;
    gap: 40px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== TEXT ===== */
#message {
    font-size: 30px;
    font-weight: bold;
    margin: 20px 0;
}

.score-big {
    font-size: 24px;
    font-weight: bold;
}

/* ===== INPUT ===== */
input {
    padding: 12px;
    width: 80%;
    border-radius: 8px;
    border: 2px solid #ccc;
}

/* ===== BUTTON ===== */
button {
    margin-top: 10px;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: scale(1.05);
    background: #2980b9;
}

/* ===== LIST ===== */
#leaderboard li,
#leaderboardResult li {
    background: #f1f1f1;
    margin: 6px 0;
    padding: 10px;
    border-radius: 8px;
}

/* ===== ANIMACE ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}