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

body {
    background: #000;
    color: #fff;
    font-family: Montserrat, sans-serif;
    overflow-x: hidden;
    position: relative;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 10;
}

#homepage {
    padding: 260px 20px 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.homepage-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.homepage-text {
    max-width: 600px;
}

.homepage-text h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.homepage-text p {
    opacity: 0.6;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.homepage-buttons {
    display: flex;
    gap: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff1a1a, #ff4d4d);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255,0,0,0.5);
}

.btn-secondary {
    background: #0f0f12;
    border: 1px solid rgba(255,0,0,0.4);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,0,0,0.2);
}

#statistiky {
    position: absolute;
    bottom: 30px;
    right: 80px;
}

.statistiky-panely {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.celkem-hracu {
    padding: 16px 18px;
    border-radius: 14px;
    background: #0f0f12;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
}

.celkem-hracu:hover {
    border-color: rgba(255, 0, 0, 0.7);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
}

.pocet {
    font-size: 1.3rem;
    font-weight: 800;
}

.celkove-hracu {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-top: 2px;
}

.ikona span {
    font-size: 20px;
    color: rgba(255,255,255,0.4);
    transition: 0.2s ease;
}

.celkem-hracu:hover .ikona span {
    color: #ff1a1a;
}

#toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #0f0f12;
    border: 1px solid #ff1a1a;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 20px 50px rgba(255,0,0,0.4);
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    .homepage-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    #statistiky {
        position: static;
        margin-top: 40px;
    }

    .celkem-hracu {
        width: 100%;
    }
}