@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #ffdde1, #ee9ca7, #b5ead7, #c9c9ff);
    background-size: 800% 800%;
    animation: surrealBackground 20s ease infinite;
    text-align: center;
    padding-top: 50px;
    color: #333;
    overflow-x: hidden;
}

/* Динамична магическа анимация на фона */
@keyframes surrealBackground {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

#main-container {
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.4);
    border: 4px double #ffb74d;
    animation: fadeIn 1.5s ease-in-out;
    backdrop-filter: blur(10px);
}

/* Анимация за плавно появяване */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ff6f61;
    text-shadow: 3px 3px 5px rgba(255, 105, 180, 0.4);
    animation: floatText 3s ease-in-out infinite;
}

/* Плаващо заглавие */
@keyframes floatText {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

p {
    font-size: 22px;
    margin-bottom: 30px;
    color: #444;
}

.game-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Бутоните като магически кристали */
.game-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #f06292, #ba68c8);
    padding: 14px;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 2px solid #fff;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    animation: popIn 0.7s ease-out backwards;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Ефект на поява */
@keyframes popIn {
    from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* Ефект при hover - неонова аура */
.game-links a:hover {
    transform: scale(1.12) rotate(1deg);
    background: linear-gradient(145deg, #ce93d8, #f48fb1);
    box-shadow: 0 0 20px #ff80ab, 0 0 40px #ea80fc;
}

/* Натискане - вибрация */
.game-links a:active {
    animation: shake 0.2s;
    transform: scale(0.95);
}

/* Вибрационен ефект */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}
