@keyframes bgScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 10000px 5000px; /* направление и скорость */
    }
}

@font-face {
    font-family: 'InkVerse';
    src: url('font/InkVerse.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url('bg/cotat_infinite.webp');
    background-repeat: repeat;
    background-size: contain;
    animation: bgScroll 750s linear infinite;
    color: #4a3b3b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0px 20px;
}


h1 {
    font-family: 'InkVerse', sans-serif;
    font-size: 2.5em;
    color: #f78da7;
    margin-bottom: 10px;
    text-shadow: 1px 1px #fff;
}
@keyframes floatTiltLeft {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-3px, -5px) rotate(-1deg); }
    50%  { transform: translate(0, -8px) rotate(1deg); }
    75%  { transform: translate(3px, -5px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatTiltRight {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(3px, -5px) rotate(1deg); }
    50%  { transform: translate(0, -8px) rotate(-1deg); }
    75%  { transform: translate(-3px, -5px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.leaderboard {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 20px 30px;
    max-width: 700px;
    width: 100%;
    margin-top: 20px;
    transform-origin: center center;
    transition: transform 3s ease-in-out;
}

.leaderboard, #logo {
    animation: floatTilt 6s ease-in-out infinite;
}

.leaderboard:nth-child(odd) {
    animation-delay: 0.7s;
}

.leaderboard:nth-child(even) {
    animation-delay: 1.9s;
}

#leaderboard td:nth-child(2) {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#logo {
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(1px);
    transform-origin: center center;
    transition: transform 3s ease-in-out;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1em;
}

th, td {
    padding: 12px 10px;
    text-align: left;
}

th {
    color: #f78da7;
    border-bottom: 2px solid #f9c7d3;
}

tr:nth-child(even) {
    background-color: #fff4f4;
}

tr:hover {
    background-color: #ffecec;
}

tr.highlight {
    background-color: #ffe1ef !important;
    font-weight: bold;
}

.form-container {
    margin-top: 40px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #f9c7d3;
    border-radius: 10px;
    font-size: 1em;
    text-align: center;
}

button {
    background: #f78da7;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #ff9eb8;
}

footer {
    margin-top: auto;
    font-size: 0.9em;
    color: #a07777;
}
