* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #59327e;
    font-family: 'Segoe UI', sans-serif;
}
.top-bar {
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 1%;
    background-color: #59327e;
}
.top-bar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}
.main-div {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.main-content {
    width: 600px;
    max-width: 100%;
    color: #ffffff;
    text-align: center;
}
.game-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.message-title {
    font-size: 400%;
    font-weight: bold;
    line-height: 1.1;
}
.message-info {
    margin-top: 15px;
    font-size: 180%;
    font-weight: bold;
    line-height: 1.3;
}
.search-block {
    width: 550px;
    max-width: 100%;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-block {
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border-radius: 40px;
}
.input-block input {
    width: 100%;
    height: 100%;
    padding: 0 25px;
    border: none;
    outline: none;
    border-radius: 40px;
    background: transparent;
    color: #333333;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.input-block input::placeholder {
    color: #777777;
}
.find-button {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: none;
    outline: none;
    border-radius: 40px;
    background-color: #794ca3;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
.find-button:hover {
    background-color: #875bb0;
}
.find-button:active {
    transform: scale(0.98);
}
.form-error {
    min-height: 20px;
    margin-top: 8px;
    color: #ff4a4a;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
.find-button.error-shake {
    animation: error-shake 0.6s ease;
}
@keyframes error-shake {
    0% {
        transform: translateX(0);
        background-color: #794ca3;
    }
    10% {
        transform: translateX(-8px);
        background-color: #e53935;
    }
    20% {
        transform: translateX(8px);
        background-color: #e53935;
    }
    30% {
        transform: translateX(-7px);
        background-color: #e53935;
    }
    40% {
        transform: translateX(7px);
        background-color: #e53935;
    }
    50% {
        transform: translateX(-5px);
        background-color: #e53935;
    }
    60% {
        transform: translateX(5px);
        background-color: #e53935;
    }
    70% {
        transform: translateX(-3px);
        background-color: #e53935;
    }
    80% {
        transform: translateX(3px);
        background-color: #e53935;
    }
    100% {
        transform: translateX(0);
        background-color: #794ca3;
    }
}
@media (max-width: 768px) {
    .top-bar {
        height: 55px;
        padding-left: 18px;
    }
    .main-div {
        padding: 25px 20px;
    }
    .message-title {
        font-size: 280%;
    }
    .message-info {
        margin-top: 12px;
        font-size: 140%;
    }
    .search-block {
        margin-top: 50px;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .top-bar {
        height: 50px;
        padding-left: 15px;
    }
    .top-bar a {
        font-size: 13px;
    }
    .main-div {
        padding: 20px 15px;
    }
    .message-title {
        font-size: 220%;
    }
    .message-info {
        font-size: 120%;
    }
    .search-block {
        margin-top: 40px;
    }
    .input-block,
    .find-button {
        height: 48px;
    }
    .input-block input {
        font-size: 16px;
    }
    .find-button {
        font-size: 16px;
    }
}